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| 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.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(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 |
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.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].
|
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>public TollInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>public TollInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>public TollInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>public TollInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>public TollInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>public 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.GeneratedMessageV3.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;public final TollInfo.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>public final TollInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>Copyright © 2025 Google LLC. All rights reserved.