Class 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.GeneratedMessageV3.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

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      TollInfo.Builder addAllEstimatedPrice​(Iterable<? extends com.google.type.Money> values)
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      TollInfo.Builder addEstimatedPrice​(int index, com.google.type.Money value)
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      TollInfo.Builder addEstimatedPrice​(int index, com.google.type.Money.Builder builderForValue)
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      TollInfo.Builder addEstimatedPrice​(com.google.type.Money value)
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      TollInfo.Builder addEstimatedPrice​(com.google.type.Money.Builder builderForValue)
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      com.google.type.Money.Builder addEstimatedPriceBuilder()
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      com.google.type.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].
      TollInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      TollInfo build()  
      TollInfo buildPartial()  
      TollInfo.Builder clear()  
      TollInfo.Builder clearEstimatedPrice()
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      TollInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)  
      TollInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)  
      TollInfo.Builder clone()  
      TollInfo getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      com.google.type.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].
      com.google.type.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].
      List<com.google.type.Money.Builder> getEstimatedPriceBuilderList()
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      int getEstimatedPriceCount()
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      List<com.google.type.Money> getEstimatedPriceList()
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      com.google.type.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].
      List<? extends com.google.type.MoneyOrBuilder> getEstimatedPriceOrBuilderList()
      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.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      TollInfo.Builder mergeFrom​(TollInfo other)  
      TollInfo.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      TollInfo.Builder mergeFrom​(com.google.protobuf.Message other)  
      TollInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      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].
      TollInfo.Builder setEstimatedPrice​(int index, com.google.type.Money value)
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      TollInfo.Builder setEstimatedPrice​(int index, com.google.type.Money.Builder builderForValue)
      The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].
      TollInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)  
      TollInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)  
      TollInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)  
      • Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder

        getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, 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 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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public TollInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
      • setField

        public TollInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                         Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
      • clearField

        public TollInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
      • clearOneof

        public TollInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
      • setRepeatedField

        public TollInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 int index,
                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
      • addRepeatedField

        public TollInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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<com.google.type.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 com.google.type.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,
                                                  com.google.type.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,
                                                  com.google.type.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​(com.google.type.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,
                                                  com.google.type.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​(com.google.type.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,
                                                  com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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 com.google.type.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<com.google.type.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;
      • setUnknownFields

        public final TollInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
      • mergeUnknownFields

        public final TollInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>