Package com.google.maps.routing.v2
Class Route.RouteLocalizedValues.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Route.RouteLocalizedValues.Builder>
com.google.maps.routing.v2.Route.RouteLocalizedValues.Builder
- All Implemented Interfaces:
Route.RouteLocalizedValuesOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Route.RouteLocalizedValues
public static final class Route.RouteLocalizedValues.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Route.RouteLocalizedValues.Builder>
implements Route.RouteLocalizedValuesOrBuilder
Text representations of certain properties.Protobuf type
google.maps.routing.v2.Route.RouteLocalizedValues-
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.Transit fare 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.Transit fare represented in text form.Transit fare represented in text form.Transit fare 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.booleanTransit fare 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.mergeTransitFare(LocalizedText value) Transit fare 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.setTransitFare(LocalizedText value) Transit fare represented in text form.setTransitFare(LocalizedText.Builder builderForValue) Transit fare 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<Route.RouteLocalizedValues.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<Route.RouteLocalizedValues.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<Route.RouteLocalizedValues.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<Route.RouteLocalizedValues.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Route.RouteLocalizedValues.Builder>
-
mergeFrom
public Route.RouteLocalizedValues.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<Route.RouteLocalizedValues.Builder>- Throws:
IOException
-
hasDistance
public boolean hasDistance()Travel distance represented in text form.
.google.type.LocalizedText distance = 1;- Specified by:
hasDistancein interfaceRoute.RouteLocalizedValuesOrBuilder- Returns:
- Whether the distance field is set.
-
getDistance
Travel distance represented in text form.
.google.type.LocalizedText distance = 1;- Specified by:
getDistancein interfaceRoute.RouteLocalizedValuesOrBuilder- 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 interfaceRoute.RouteLocalizedValuesOrBuilder
-
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 interfaceRoute.RouteLocalizedValuesOrBuilder- 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 interfaceRoute.RouteLocalizedValuesOrBuilder- 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 interfaceRoute.RouteLocalizedValuesOrBuilder
-
hasStaticDuration
public boolean hasStaticDuration()Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3;- Specified by:
hasStaticDurationin interfaceRoute.RouteLocalizedValuesOrBuilder- 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 interfaceRoute.RouteLocalizedValuesOrBuilder- Returns:
- The staticDuration.
-
setStaticDuration
Duration without taking traffic conditions into consideration, represented in text form.
.google.type.LocalizedText static_duration = 3; -
setStaticDuration
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 interfaceRoute.RouteLocalizedValuesOrBuilder
-
hasTransitFare
public boolean hasTransitFare()Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;- Specified by:
hasTransitFarein interfaceRoute.RouteLocalizedValuesOrBuilder- Returns:
- Whether the transitFare field is set.
-
getTransitFare
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;- Specified by:
getTransitFarein interfaceRoute.RouteLocalizedValuesOrBuilder- Returns:
- The transitFare.
-
setTransitFare
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4; -
setTransitFare
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4; -
mergeTransitFare
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4; -
clearTransitFare
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4; -
getTransitFareBuilder
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4; -
getTransitFareOrBuilder
Transit fare represented in text form.
.google.type.LocalizedText transit_fare = 4;- Specified by:
getTransitFareOrBuilderin interfaceRoute.RouteLocalizedValuesOrBuilder
-