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.GeneratedMessageV3.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.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 typegoogle.maps.routing.v2.TollInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TollInfo.BuilderaddAllEstimatedPrice(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.BuilderaddEstimatedPrice(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.BuilderaddEstimatedPrice(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.BuilderaddEstimatedPrice(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.BuilderaddEstimatedPrice(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.BuilderaddEstimatedPriceBuilder()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.BuilderaddEstimatedPriceBuilder(int index)The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].TollInfo.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TollInfobuild()TollInfobuildPartial()TollInfo.Builderclear()TollInfo.BuilderclearEstimatedPrice()The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].TollInfo.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)TollInfo.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)TollInfo.Builderclone()TollInfogetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.type.MoneygetEstimatedPrice(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.BuildergetEstimatedPriceBuilder(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].intgetEstimatedPriceCount()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.MoneyOrBuildergetEstimatedPriceOrBuilder(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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()TollInfo.BuildermergeFrom(TollInfo other)TollInfo.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)TollInfo.BuildermergeFrom(com.google.protobuf.Message other)TollInfo.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)TollInfo.BuilderremoveEstimatedPrice(int index)The monetary amount of tolls for the corresponding [Route][google.maps.routing.v2.Route] or [RouteLeg][google.maps.routing.v2.RouteLeg].TollInfo.BuildersetEstimatedPrice(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.BuildersetEstimatedPrice(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)TollInfo.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)TollInfo.BuildersetUnknownFields(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 class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
clear
public TollInfo.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<TollInfo.Builder>
-
getDefaultInstanceForType
public TollInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public TollInfo build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TollInfo buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TollInfo.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
setField
public TollInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
clearField
public TollInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
clearOneof
public TollInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
setRepeatedField
public TollInfo.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
addRepeatedField
public TollInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
mergeFrom
public TollInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>
-
mergeFrom
public TollInfo.Builder mergeFrom(TollInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
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
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:
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
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:
getEstimatedPricein interfaceTollInfoOrBuilder
-
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:
getEstimatedPriceOrBuilderin interfaceTollInfoOrBuilder
-
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:
getEstimatedPriceOrBuilderListin interfaceTollInfoOrBuilder
-
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
mergeUnknownFields
public final TollInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
-