Package com.google.maps.routing.v2
Class RouteLeg.RouteLegLocalizedValues.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RouteLeg.RouteLegLocalizedValues.Builder>
com.google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues.Builder
- All Implemented Interfaces:
RouteLeg.RouteLegLocalizedValuesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RouteLeg.RouteLegLocalizedValues
public static final class RouteLeg.RouteLegLocalizedValues.Builder
extends com.google.protobuf.GeneratedMessage.Builder<RouteLeg.RouteLegLocalizedValues.Builder>
implements RouteLeg.RouteLegLocalizedValuesOrBuilder
Text representations of certain properties.Protobuf type
google.maps.routing.v2.RouteLeg.RouteLegLocalizedValues-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Travel distance represented in text form.Duration, represented in text form and localized to the region of the query.Duration without taking traffic conditions into consideration, represented in text form.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorTravel distance represented in text form.Travel distance represented in text form.Travel distance represented in text form.Duration, represented in text form and localized to the region of the query.Duration, represented in text form and localized to the region of the query.Duration, represented in text form and localized to the region of the query.Duration without taking traffic conditions into consideration, represented in text form.Duration without taking traffic conditions into consideration, represented in text form.Duration without taking traffic conditions into consideration, represented in text form.booleanTravel distance represented in text form.booleanDuration, represented in text form and localized to the region of the query.booleanDuration without taking traffic conditions into consideration, represented in text form.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeDistance(LocalizedText value) Travel distance represented in text form.mergeDuration(LocalizedText value) Duration, represented in text form and localized to the region of the query.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStaticDuration(LocalizedText value) Duration without taking traffic conditions into consideration, represented in text form.setDistance(LocalizedText value) Travel distance represented in text form.setDistance(LocalizedText.Builder builderForValue) Travel distance represented in text form.setDuration(LocalizedText value) Duration, represented in text form and localized to the region of the query.setDuration(LocalizedText.Builder builderForValue) Duration, represented in text form and localized to the region of the query.setStaticDuration(LocalizedText value) Duration without taking traffic conditions into consideration, represented in text form.setStaticDuration(LocalizedText.Builder builderForValue) Duration without taking traffic conditions into consideration, represented in text form.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<RouteLeg.RouteLegLocalizedValues.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<RouteLeg.RouteLegLocalizedValues.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.GeneratedMessage.Builder<RouteLeg.RouteLegLocalizedValues.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RouteLeg.RouteLegLocalizedValues.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<RouteLeg.RouteLegLocalizedValues.Builder>
-
mergeFrom
public RouteLeg.RouteLegLocalizedValues.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<RouteLeg.RouteLegLocalizedValues.Builder>- Throws:
IOException
-
hasDistance
public boolean hasDistance()Travel distance represented in text form.
.google.type.LocalizedText distance = 1;- Specified by:
hasDistancein interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder- Returns:
- Whether the distance field is set.
-
getDistance
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;- Specified by:
getDistancein interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder- Returns:
- The distance.
-
setDistance
Travel distance represented in text form.
.google.type.LocalizedText distance = 1; -
setDistance
Travel distance represented in text form.
.google.type.LocalizedText distance = 1; -
mergeDistance
Travel distance represented in text form.
.google.type.LocalizedText distance = 1; -
clearDistance
Travel distance represented in text form.
.google.type.LocalizedText distance = 1; -
getDistanceBuilder
Travel distance represented in text form.
.google.type.LocalizedText distance = 1; -
getDistanceOrBuilder
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;- Specified by:
getDistanceOrBuilderin interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder
-
hasDuration
public boolean hasDuration()Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;- Specified by:
hasDurationin interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder- Returns:
- Whether the duration field is set.
-
getDuration
Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;- Specified by:
getDurationin interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder- Returns:
- The duration.
-
setDuration
Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2; -
setDuration
Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2; -
mergeDuration
Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2; -
clearDuration
Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2; -
getDurationBuilder
Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2; -
getDurationOrBuilder
Duration, represented in text form and localized to the region of the query. Takes traffic conditions into consideration. Note: If you did not request traffic information, this value is the same value as static_duration.
.google.type.LocalizedText duration = 2;- Specified by:
getDurationOrBuilderin interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder
-
hasStaticDuration
public boolean hasStaticDuration()Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3;- Specified by:
hasStaticDurationin interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3;- Specified by:
getStaticDurationin interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder- Returns:
- The staticDuration.
-
setStaticDuration
Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3; -
setStaticDuration
public RouteLeg.RouteLegLocalizedValues.Builder setStaticDuration(LocalizedText.Builder builderForValue) Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3; -
mergeStaticDuration
Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3; -
clearStaticDuration
Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3; -
getStaticDurationBuilder
Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3; -
getStaticDurationOrBuilder
Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3;- Specified by:
getStaticDurationOrBuilderin interfaceRouteLeg.RouteLegLocalizedValuesOrBuilder
-