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| Modifier and Type | Method and 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.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(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(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].
|
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 |
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 |
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.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
TollInfo.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
TollInfo.Builder |
mergeFrom(com.google.protobuf.Message other) |
TollInfo.Builder |
mergeFrom(TollInfo other) |
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.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 |
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].
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>public TollInfo.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>public TollInfo getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic TollInfo build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic TollInfo buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic TollInfo.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>public TollInfo.Builder mergeFrom(TollInfo other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<TollInfo.Builder>public TollInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>IOExceptionpublic 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;getEstimatedPriceList in interface TollInfoOrBuilderpublic 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;getEstimatedPriceCount in interface TollInfoOrBuilderpublic 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;getEstimatedPrice in interface TollInfoOrBuilderpublic 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;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;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;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;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;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;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;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;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;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;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;getEstimatedPriceOrBuilder in interface TollInfoOrBuilderpublic 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;getEstimatedPriceOrBuilderList in interface TollInfoOrBuilderpublic 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;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;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;Copyright © 2026 Google LLC. All rights reserved.