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.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 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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
clear
public TollInfo.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
getDefaultInstanceForType
public TollInfo getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public TollInfo build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public TollInfo buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public TollInfo.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
setField
public TollInfo.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
clearField
public TollInfo.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
clearOneof
public TollInfo.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
addRepeatedField
public TollInfo.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
mergeFrom
public TollInfo.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<TollInfo.Builder>
-
mergeFrom
public TollInfo.Builder mergeFrom(TollInfo other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getEstimatedPriceList
in 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:
getEstimatedPriceCount
in 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:
getEstimatedPrice
in 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:
getEstimatedPriceOrBuilder
in 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:
getEstimatedPriceOrBuilderList
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
mergeUnknownFields
public final TollInfo.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<TollInfo.Builder>
-
-