Package com.google.maps.routing.v2
Class RouteMatrixElement.LocalizedValues.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.Builder>
-
- com.google.maps.routing.v2.RouteMatrixElement.LocalizedValues.Builder
-
- All Implemented Interfaces:
RouteMatrixElement.LocalizedValuesOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- RouteMatrixElement.LocalizedValues
public static final class RouteMatrixElement.LocalizedValues.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.Builder> implements RouteMatrixElement.LocalizedValuesOrBuilder
Text representations of certain properties.
Protobuf typegoogle.maps.routing.v2.RouteMatrixElement.LocalizedValues
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RouteMatrixElement.LocalizedValues.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteMatrixElement.LocalizedValues
build()
RouteMatrixElement.LocalizedValues
buildPartial()
RouteMatrixElement.LocalizedValues.Builder
clear()
RouteMatrixElement.LocalizedValues.Builder
clearDistance()
Travel distance represented in text form.RouteMatrixElement.LocalizedValues.Builder
clearDuration()
Duration represented in text form taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
RouteMatrixElement.LocalizedValues.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
RouteMatrixElement.LocalizedValues.Builder
clearStaticDuration()
Duration represented in text form without taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
clearTransitFare()
Transit fare represented in text form.RouteMatrixElement.LocalizedValues.Builder
clone()
RouteMatrixElement.LocalizedValues
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.type.LocalizedText
getDistance()
Travel distance represented in text form.com.google.type.LocalizedText.Builder
getDistanceBuilder()
Travel distance represented in text form.com.google.type.LocalizedTextOrBuilder
getDistanceOrBuilder()
Travel distance represented in text form.com.google.type.LocalizedText
getDuration()
Duration represented in text form taking traffic conditions into consideration.com.google.type.LocalizedText.Builder
getDurationBuilder()
Duration represented in text form taking traffic conditions into consideration.com.google.type.LocalizedTextOrBuilder
getDurationOrBuilder()
Duration represented in text form taking traffic conditions into consideration.com.google.type.LocalizedText
getStaticDuration()
Duration represented in text form without taking traffic conditions into consideration.com.google.type.LocalizedText.Builder
getStaticDurationBuilder()
Duration represented in text form without taking traffic conditions into consideration.com.google.type.LocalizedTextOrBuilder
getStaticDurationOrBuilder()
Duration represented in text form without taking traffic conditions into consideration.com.google.type.LocalizedText
getTransitFare()
Transit fare represented in text form.com.google.type.LocalizedText.Builder
getTransitFareBuilder()
Transit fare represented in text form.com.google.type.LocalizedTextOrBuilder
getTransitFareOrBuilder()
Transit fare represented in text form.boolean
hasDistance()
Travel distance represented in text form.boolean
hasDuration()
Duration represented in text form taking traffic conditions into consideration.boolean
hasStaticDuration()
Duration represented in text form without taking traffic conditions into consideration.boolean
hasTransitFare()
Transit fare represented in text form.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
RouteMatrixElement.LocalizedValues.Builder
mergeDistance(com.google.type.LocalizedText value)
Travel distance represented in text form.RouteMatrixElement.LocalizedValues.Builder
mergeDuration(com.google.type.LocalizedText value)
Duration represented in text form taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
mergeFrom(RouteMatrixElement.LocalizedValues other)
RouteMatrixElement.LocalizedValues.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
RouteMatrixElement.LocalizedValues.Builder
mergeFrom(com.google.protobuf.Message other)
RouteMatrixElement.LocalizedValues.Builder
mergeStaticDuration(com.google.type.LocalizedText value)
Duration represented in text form without taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
mergeTransitFare(com.google.type.LocalizedText value)
Transit fare represented in text form.RouteMatrixElement.LocalizedValues.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
RouteMatrixElement.LocalizedValues.Builder
setDistance(com.google.type.LocalizedText value)
Travel distance represented in text form.RouteMatrixElement.LocalizedValues.Builder
setDistance(com.google.type.LocalizedText.Builder builderForValue)
Travel distance represented in text form.RouteMatrixElement.LocalizedValues.Builder
setDuration(com.google.type.LocalizedText value)
Duration represented in text form taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
setDuration(com.google.type.LocalizedText.Builder builderForValue)
Duration represented in text form taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
RouteMatrixElement.LocalizedValues.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
RouteMatrixElement.LocalizedValues.Builder
setStaticDuration(com.google.type.LocalizedText value)
Duration represented in text form without taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
setStaticDuration(com.google.type.LocalizedText.Builder builderForValue)
Duration represented in text form without taking traffic conditions into consideration.RouteMatrixElement.LocalizedValues.Builder
setTransitFare(com.google.type.LocalizedText value)
Transit fare represented in text form.RouteMatrixElement.LocalizedValues.Builder
setTransitFare(com.google.type.LocalizedText.Builder builderForValue)
Transit fare represented in text form.RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
clear
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
getDefaultInstanceForType
public RouteMatrixElement.LocalizedValues getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public RouteMatrixElement.LocalizedValues build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RouteMatrixElement.LocalizedValues buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
setField
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
clearField
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
clearOneof
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
setRepeatedField
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
addRepeatedField
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
-
mergeFrom
public RouteMatrixElement.LocalizedValues.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<RouteMatrixElement.LocalizedValues.Builder>
-
mergeFrom
public RouteMatrixElement.LocalizedValues.Builder mergeFrom(RouteMatrixElement.LocalizedValues other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.Builder>
-
mergeFrom
public RouteMatrixElement.LocalizedValues.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<RouteMatrixElement.LocalizedValues.Builder>
- Throws:
IOException
-
hasDistance
public boolean hasDistance()
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
- Specified by:
hasDistance
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- Whether the distance field is set.
-
getDistance
public com.google.type.LocalizedText getDistance()
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
- Specified by:
getDistance
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- The distance.
-
setDistance
public RouteMatrixElement.LocalizedValues.Builder setDistance(com.google.type.LocalizedText value)
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
-
setDistance
public RouteMatrixElement.LocalizedValues.Builder setDistance(com.google.type.LocalizedText.Builder builderForValue)
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
-
mergeDistance
public RouteMatrixElement.LocalizedValues.Builder mergeDistance(com.google.type.LocalizedText value)
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
-
clearDistance
public RouteMatrixElement.LocalizedValues.Builder clearDistance()
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
-
getDistanceBuilder
public com.google.type.LocalizedText.Builder getDistanceBuilder()
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
-
getDistanceOrBuilder
public com.google.type.LocalizedTextOrBuilder getDistanceOrBuilder()
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;
- Specified by:
getDistanceOrBuilder
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
-
hasDuration
public boolean hasDuration()
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
- Specified by:
hasDuration
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.type.LocalizedText getDuration()
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
- Specified by:
getDuration
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- The duration.
-
setDuration
public RouteMatrixElement.LocalizedValues.Builder setDuration(com.google.type.LocalizedText value)
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
-
setDuration
public RouteMatrixElement.LocalizedValues.Builder setDuration(com.google.type.LocalizedText.Builder builderForValue)
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
-
mergeDuration
public RouteMatrixElement.LocalizedValues.Builder mergeDuration(com.google.type.LocalizedText value)
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
-
clearDuration
public RouteMatrixElement.LocalizedValues.Builder clearDuration()
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
-
getDurationBuilder
public com.google.type.LocalizedText.Builder getDurationBuilder()
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
-
getDurationOrBuilder
public com.google.type.LocalizedTextOrBuilder getDurationOrBuilder()
Duration represented in text form taking traffic conditions into consideration. Note: If traffic information was not requested, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;
- Specified by:
getDurationOrBuilder
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
-
hasStaticDuration
public boolean hasStaticDuration()
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
- Specified by:
hasStaticDuration
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
public com.google.type.LocalizedText getStaticDuration()
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
- Specified by:
getStaticDuration
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- The staticDuration.
-
setStaticDuration
public RouteMatrixElement.LocalizedValues.Builder setStaticDuration(com.google.type.LocalizedText value)
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
-
setStaticDuration
public RouteMatrixElement.LocalizedValues.Builder setStaticDuration(com.google.type.LocalizedText.Builder builderForValue)
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
-
mergeStaticDuration
public RouteMatrixElement.LocalizedValues.Builder mergeStaticDuration(com.google.type.LocalizedText value)
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
-
clearStaticDuration
public RouteMatrixElement.LocalizedValues.Builder clearStaticDuration()
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
-
getStaticDurationBuilder
public com.google.type.LocalizedText.Builder getStaticDurationBuilder()
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
-
getStaticDurationOrBuilder
public com.google.type.LocalizedTextOrBuilder getStaticDurationOrBuilder()
Duration represented in text form without taking traffic conditions into consideration.
.google.type.LocalizedText static_duration = 3;
- Specified by:
getStaticDurationOrBuilder
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
-
hasTransitFare
public boolean hasTransitFare()
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
- Specified by:
hasTransitFare
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- Whether the transitFare field is set.
-
getTransitFare
public com.google.type.LocalizedText getTransitFare()
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
- Specified by:
getTransitFare
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
- Returns:
- The transitFare.
-
setTransitFare
public RouteMatrixElement.LocalizedValues.Builder setTransitFare(com.google.type.LocalizedText value)
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
-
setTransitFare
public RouteMatrixElement.LocalizedValues.Builder setTransitFare(com.google.type.LocalizedText.Builder builderForValue)
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
-
mergeTransitFare
public RouteMatrixElement.LocalizedValues.Builder mergeTransitFare(com.google.type.LocalizedText value)
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
-
clearTransitFare
public RouteMatrixElement.LocalizedValues.Builder clearTransitFare()
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
-
getTransitFareBuilder
public com.google.type.LocalizedText.Builder getTransitFareBuilder()
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
-
getTransitFareOrBuilder
public com.google.type.LocalizedTextOrBuilder getTransitFareOrBuilder()
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;
- Specified by:
getTransitFareOrBuilder
in interfaceRouteMatrixElement.LocalizedValuesOrBuilder
-
setUnknownFields
public final RouteMatrixElement.LocalizedValues.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.Builder>
-
mergeUnknownFields
public final RouteMatrixElement.LocalizedValues.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<RouteMatrixElement.LocalizedValues.Builder>
-
-