Package com.google.maps.routing.v2
Class RouteLegStep
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.maps.routing.v2.RouteLegStep
- All Implemented Interfaces:
RouteLegStepOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class RouteLegStep
extends com.google.protobuf.GeneratedMessage
implements RouteLegStepOrBuilder
Contains a segment of a [`RouteLeg`][google.maps.routing.v2.RouteLeg]. A step corresponds to a single navigation instruction. Route legs are made up of steps.Protobuf type
google.maps.routing.v2.RouteLegStep- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains a segment of a [`RouteLeg`][google.maps.routing.v2.RouteLeg].static final classText representations of certain properties.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RouteLegStepstatic final com.google.protobuf.Descriptors.DescriptorintThe travel distance of this step, in meters.The end location of this step.The end location of this step.Text representations of properties of the `RouteLegStep`.Text representations of properties of the `RouteLegStep`.Navigation instructions.Navigation instructions.com.google.protobuf.Parser<RouteLegStep>The polyline associated with this step.The polyline associated with this step.intThe start location of this step.The start location of this step.com.google.protobuf.DurationThe duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuilderThe duration of travel through this step without taking traffic conditions into consideration.Details pertaining to this step if the travel mode is `TRANSIT`.Details pertaining to this step if the travel mode is `TRANSIT`.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.The travel mode used for this step.intThe travel mode used for this step.booleanThe end location of this step.inthashCode()booleanText representations of properties of the `RouteLegStep`.booleanNavigation instructions.booleanThe polyline associated with this step.booleanThe start location of this step.booleanThe duration of travel through this step without taking traffic conditions into consideration.booleanDetails pertaining to this step if the travel mode is `TRANSIT`.booleanContains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic RouteLegStep.Builderstatic RouteLegStep.BuildernewBuilder(RouteLegStep prototype) protected RouteLegStep.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RouteLegStepparseDelimitedFrom(InputStream input) static RouteLegStepparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteLegStepparseFrom(byte[] data) static RouteLegStepparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteLegStepparseFrom(com.google.protobuf.ByteString data) static RouteLegStepparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteLegStepparseFrom(com.google.protobuf.CodedInputStream input) static RouteLegStepparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteLegStepparseFrom(InputStream input) static RouteLegStepparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteLegStepparseFrom(ByteBuffer data) static RouteLegStepparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<RouteLegStep>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
DISTANCE_METERS_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBER- See Also:
-
STATIC_DURATION_FIELD_NUMBER
public static final int STATIC_DURATION_FIELD_NUMBER- See Also:
-
POLYLINE_FIELD_NUMBER
public static final int POLYLINE_FIELD_NUMBER- See Also:
-
START_LOCATION_FIELD_NUMBER
public static final int START_LOCATION_FIELD_NUMBER- See Also:
-
END_LOCATION_FIELD_NUMBER
public static final int END_LOCATION_FIELD_NUMBER- See Also:
-
NAVIGATION_INSTRUCTION_FIELD_NUMBER
public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER- See Also:
-
TRAVEL_ADVISORY_FIELD_NUMBER
public static final int TRAVEL_ADVISORY_FIELD_NUMBER- See Also:
-
LOCALIZED_VALUES_FIELD_NUMBER
public static final int LOCALIZED_VALUES_FIELD_NUMBER- See Also:
-
TRANSIT_DETAILS_FIELD_NUMBER
public static final int TRANSIT_DETAILS_FIELD_NUMBER- See Also:
-
TRAVEL_MODE_FIELD_NUMBER
public static final int TRAVEL_MODE_FIELD_NUMBER- See Also:
-
-
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
-
getDistanceMeters
public int getDistanceMeters()The travel distance of this step, in meters. In some circumstances, this field might not have a value.
int32 distance_meters = 1;- Specified by:
getDistanceMetersin interfaceRouteLegStepOrBuilder- Returns:
- The distanceMeters.
-
hasStaticDuration
public boolean hasStaticDuration()The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2;- Specified by:
hasStaticDurationin interfaceRouteLegStepOrBuilder- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
public com.google.protobuf.Duration getStaticDuration()The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2;- Specified by:
getStaticDurationin interfaceRouteLegStepOrBuilder- Returns:
- The staticDuration.
-
getStaticDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()The duration of travel through this step without taking traffic conditions into consideration. In some circumstances, this field might not have a value.
.google.protobuf.Duration static_duration = 2;- Specified by:
getStaticDurationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasPolyline
public boolean hasPolyline()The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
hasPolylinein interfaceRouteLegStepOrBuilder- Returns:
- Whether the polyline field is set.
-
getPolyline
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
getPolylinein interfaceRouteLegStepOrBuilder- Returns:
- The polyline.
-
getPolylineOrBuilder
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
getPolylineOrBuilderin interfaceRouteLegStepOrBuilder
-
hasStartLocation
public boolean hasStartLocation()The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
hasStartLocationin interfaceRouteLegStepOrBuilder- Returns:
- Whether the startLocation field is set.
-
getStartLocation
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
getStartLocationin interfaceRouteLegStepOrBuilder- Returns:
- The startLocation.
-
getStartLocationOrBuilder
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
getStartLocationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasEndLocation
public boolean hasEndLocation()The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
hasEndLocationin interfaceRouteLegStepOrBuilder- Returns:
- Whether the endLocation field is set.
-
getEndLocation
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationin interfaceRouteLegStepOrBuilder- Returns:
- The endLocation.
-
getEndLocationOrBuilder
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasTravelAdvisory
public boolean hasTravelAdvisory()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;- Specified by:
hasTravelAdvisoryin interfaceRouteLegStepOrBuilder- Returns:
- Whether the travelAdvisory field is set.
-
getTravelAdvisory
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;- Specified by:
getTravelAdvisoryin interfaceRouteLegStepOrBuilder- Returns:
- The travelAdvisory.
-
getTravelAdvisoryOrBuilder
Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.
.google.maps.routing.v2.RouteLegStepTravelAdvisory travel_advisory = 7;- Specified by:
getTravelAdvisoryOrBuilderin interfaceRouteLegStepOrBuilder
-
hasLocalizedValues
public boolean hasLocalizedValues()Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Specified by:
hasLocalizedValuesin interfaceRouteLegStepOrBuilder- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Specified by:
getLocalizedValuesin interfaceRouteLegStepOrBuilder- Returns:
- The localizedValues.
-
getLocalizedValuesOrBuilder
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Specified by:
getLocalizedValuesOrBuilderin interfaceRouteLegStepOrBuilder
-
hasTransitDetails
public boolean hasTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Specified by:
hasTransitDetailsin interfaceRouteLegStepOrBuilder- Returns:
- Whether the transitDetails field is set.
-
getTransitDetails
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Specified by:
getTransitDetailsin interfaceRouteLegStepOrBuilder- Returns:
- The transitDetails.
-
getTransitDetailsOrBuilder
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Specified by:
getTransitDetailsOrBuilderin interfaceRouteLegStepOrBuilder
-
getTravelModeValue
public int getTravelModeValue()The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Specified by:
getTravelModeValuein interfaceRouteLegStepOrBuilder- Returns:
- The enum numeric value on the wire for travelMode.
-
getTravelMode
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Specified by:
getTravelModein interfaceRouteLegStepOrBuilder- Returns:
- The travelMode.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static RouteLegStep parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLegStep parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLegStep parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLegStep parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLegStep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static RouteLegStep parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RouteLegStep parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static RouteLegStep parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static RouteLegStep parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouteLegStep.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-