Package com.google.maps.routing.v2
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 TypeMethodDescriptionaddAllEstimatedPrice(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].addEstimatedPrice(Money value) The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].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].The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].addEstimatedPriceBuilder(int index) The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].build()clear()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.Descriptorcom.google.protobuf.Descriptors.DescriptorgetEstimatedPrice(int index) The monetary amount of tolls for the corresponding [`Route`][google.maps.routing.v2.Route] or [`RouteLeg`][google.maps.routing.v2.RouteLeg].getEstimatedPriceBuilder(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].intThe 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].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 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.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeEstimatedPrice(int index) 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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods 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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>- Throws:
IOException
-
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:
getEstimatedPriceListin interfaceTollInfoOrBuilder
-
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:
getEstimatedPriceCountin interfaceTollInfoOrBuilder
-
getEstimatedPrice
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:
getEstimatedPricein interfaceTollInfoOrBuilder
-
setEstimatedPrice
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
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
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
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
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
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
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
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
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
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
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:
getEstimatedPriceOrBuilderin interfaceTollInfoOrBuilder
-
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:
getEstimatedPriceOrBuilderListin interfaceTollInfoOrBuilder
-
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
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
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;
-