Class TollInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
com.google.maps.routing.v2.TollInfo.Builder
All Implemented Interfaces:
TollInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TollInfo

public static final class TollInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder> implements TollInfoOrBuilder
 Encapsulates toll information on a [`Route`][google.maps.routing.v2.Route] or
 on a [`RouteLeg`][google.maps.routing.v2.RouteLeg].
 
Protobuf type google.maps.routing.v2.TollInfo
  • Method Summary

    Modifier and Type
    Method
    Description
    addAllEstimatedPrice(Iterable<? extends Money> values)
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    addEstimatedPrice(int index, Money value)
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    addEstimatedPrice(int index, Money.Builder builderForValue)
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
     
     
     
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    getEstimatedPrice(int index)
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    int
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    List<? extends MoneyOrBuilder>
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    setEstimatedPrice(int index, Money value)
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].
    setEstimatedPrice(int index, Money.Builder builderForValue)
    The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
    • clear

      public TollInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
    • getDefaultInstanceForType

      public TollInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TollInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TollInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TollInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>
    • mergeFrom

      public TollInfo.Builder mergeFrom(TollInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
    • mergeFrom

      public TollInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>
      Throws:
      IOException
    • getEstimatedPriceList

      public List<Money> getEstimatedPriceList()
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
      Specified by:
      getEstimatedPriceList in interface TollInfoOrBuilder
    • getEstimatedPriceCount

      public int getEstimatedPriceCount()
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
      Specified by:
      getEstimatedPriceCount in interface TollInfoOrBuilder
    • getEstimatedPrice

      public Money getEstimatedPrice(int index)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
      Specified by:
      getEstimatedPrice in interface TollInfoOrBuilder
    • setEstimatedPrice

      public TollInfo.Builder setEstimatedPrice(int index, Money value)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • setEstimatedPrice

      public TollInfo.Builder setEstimatedPrice(int index, Money.Builder builderForValue)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • addEstimatedPrice

      public TollInfo.Builder addEstimatedPrice(Money value)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • addEstimatedPrice

      public TollInfo.Builder addEstimatedPrice(int index, Money value)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • addEstimatedPrice

      public TollInfo.Builder addEstimatedPrice(Money.Builder builderForValue)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • addEstimatedPrice

      public TollInfo.Builder addEstimatedPrice(int index, Money.Builder builderForValue)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • addAllEstimatedPrice

      public TollInfo.Builder addAllEstimatedPrice(Iterable<? extends Money> values)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • clearEstimatedPrice

      public TollInfo.Builder clearEstimatedPrice()
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • removeEstimatedPrice

      public TollInfo.Builder removeEstimatedPrice(int index)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • getEstimatedPriceBuilder

      public Money.Builder getEstimatedPriceBuilder(int index)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • getEstimatedPriceOrBuilder

      public MoneyOrBuilder getEstimatedPriceOrBuilder(int index)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
      Specified by:
      getEstimatedPriceOrBuilder in interface TollInfoOrBuilder
    • getEstimatedPriceOrBuilderList

      public List<? extends MoneyOrBuilder> getEstimatedPriceOrBuilderList()
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
      Specified by:
      getEstimatedPriceOrBuilderList in interface TollInfoOrBuilder
    • addEstimatedPriceBuilder

      public Money.Builder addEstimatedPriceBuilder()
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • addEstimatedPriceBuilder

      public Money.Builder addEstimatedPriceBuilder(int index)
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;
    • getEstimatedPriceBuilderList

      public List<Money.Builder> getEstimatedPriceBuilderList()
       The monetary amount of tolls for the corresponding
       [`Route`][google.maps.routing.v2.Route] or
       [`RouteLeg`][google.maps.routing.v2.RouteLeg]. This list contains a money
       amount for each currency that is expected to be charged by the toll
       stations. Typically this list will contain only one item for routes with
       tolls in one currency. For international trips, this list may contain
       multiple items to reflect tolls in different currencies.
       
      repeated .google.type.Money estimated_price = 1;