public final class RouteLegStep extends com.google.protobuf.GeneratedMessageV3 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| Modifier and Type | Class and Description |
|---|---|
static class |
RouteLegStep.Builder
Contains a segment of a [`RouteLeg`][google.maps.routing.v2.RouteLeg].
|
static class |
RouteLegStep.RouteLegStepLocalizedValues
Text representations of certain properties.
|
static interface |
RouteLegStep.RouteLegStepLocalizedValuesOrBuilder |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DISTANCE_METERS_FIELD_NUMBER |
static int |
END_LOCATION_FIELD_NUMBER |
static int |
LOCALIZED_VALUES_FIELD_NUMBER |
static int |
NAVIGATION_INSTRUCTION_FIELD_NUMBER |
static int |
POLYLINE_FIELD_NUMBER |
static int |
START_LOCATION_FIELD_NUMBER |
static int |
STATIC_DURATION_FIELD_NUMBER |
static int |
TRANSIT_DETAILS_FIELD_NUMBER |
static int |
TRAVEL_ADVISORY_FIELD_NUMBER |
static int |
TRAVEL_MODE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static RouteLegStep |
getDefaultInstance() |
RouteLegStep |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
int |
getDistanceMeters()
The travel distance of this step, in meters.
|
Location |
getEndLocation()
The end location of this step.
|
LocationOrBuilder |
getEndLocationOrBuilder()
The end location of this step.
|
RouteLegStep.RouteLegStepLocalizedValues |
getLocalizedValues()
Text representations of properties of the `RouteLegStep`.
|
RouteLegStep.RouteLegStepLocalizedValuesOrBuilder |
getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLegStep`.
|
NavigationInstruction |
getNavigationInstruction()
Navigation instructions.
|
NavigationInstructionOrBuilder |
getNavigationInstructionOrBuilder()
Navigation instructions.
|
com.google.protobuf.Parser<RouteLegStep> |
getParserForType() |
Polyline |
getPolyline()
The polyline associated with this step.
|
PolylineOrBuilder |
getPolylineOrBuilder()
The polyline associated with this step.
|
int |
getSerializedSize() |
Location |
getStartLocation()
The start location of this step.
|
LocationOrBuilder |
getStartLocationOrBuilder()
The start location of this step.
|
com.google.protobuf.Duration |
getStaticDuration()
The duration of travel through this step without taking traffic conditions
into consideration.
|
com.google.protobuf.DurationOrBuilder |
getStaticDurationOrBuilder()
The duration of travel through this step without taking traffic conditions
into consideration.
|
RouteLegStepTransitDetails |
getTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.
|
RouteLegStepTransitDetailsOrBuilder |
getTransitDetailsOrBuilder()
Details pertaining to this step if the travel mode is `TRANSIT`.
|
RouteLegStepTravelAdvisory |
getTravelAdvisory()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a leg step.
|
RouteLegStepTravelAdvisoryOrBuilder |
getTravelAdvisoryOrBuilder()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a leg step.
|
RouteTravelMode |
getTravelMode()
The travel mode used for this step.
|
int |
getTravelModeValue()
The travel mode used for this step.
|
boolean |
hasEndLocation()
The end location of this step.
|
int |
hashCode() |
boolean |
hasLocalizedValues()
Text representations of properties of the `RouteLegStep`.
|
boolean |
hasNavigationInstruction()
Navigation instructions.
|
boolean |
hasPolyline()
The polyline associated with this step.
|
boolean |
hasStartLocation()
The start location of this step.
|
boolean |
hasStaticDuration()
The duration of travel through this step without taking traffic conditions
into consideration.
|
boolean |
hasTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.
|
boolean |
hasTravelAdvisory()
Contains the additional information that the user should be informed
about, such as possible traffic zone restrictions, on a leg step.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static RouteLegStep.Builder |
newBuilder() |
static RouteLegStep.Builder |
newBuilder(RouteLegStep prototype) |
RouteLegStep.Builder |
newBuilderForType() |
protected RouteLegStep.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static RouteLegStep |
parseDelimitedFrom(InputStream input) |
static RouteLegStep |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegStep |
parseFrom(byte[] data) |
static RouteLegStep |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegStep |
parseFrom(ByteBuffer data) |
static RouteLegStep |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegStep |
parseFrom(com.google.protobuf.ByteString data) |
static RouteLegStep |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegStep |
parseFrom(com.google.protobuf.CodedInputStream input) |
static RouteLegStep |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static RouteLegStep |
parseFrom(InputStream input) |
static RouteLegStep |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<RouteLegStep> |
parser() |
RouteLegStep.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
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, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int DISTANCE_METERS_FIELD_NUMBER
public static final int STATIC_DURATION_FIELD_NUMBER
public static final int POLYLINE_FIELD_NUMBER
public static final int START_LOCATION_FIELD_NUMBER
public static final int END_LOCATION_FIELD_NUMBER
public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER
public static final int TRAVEL_ADVISORY_FIELD_NUMBER
public static final int LOCALIZED_VALUES_FIELD_NUMBER
public static final int TRANSIT_DETAILS_FIELD_NUMBER
public static final int TRAVEL_MODE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public int getDistanceMeters()
The travel distance of this step, in meters. In some circumstances, this field might not have a value.
int32 distance_meters = 1;getDistanceMeters in interface RouteLegStepOrBuilderpublic 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;hasStaticDuration in interface RouteLegStepOrBuilderpublic 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;getStaticDuration in interface RouteLegStepOrBuilderpublic 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;getStaticDurationOrBuilder in interface RouteLegStepOrBuilderpublic boolean hasPolyline()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;hasPolyline in interface RouteLegStepOrBuilderpublic Polyline getPolyline()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;getPolyline in interface RouteLegStepOrBuilderpublic PolylineOrBuilder getPolylineOrBuilder()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;getPolylineOrBuilder in interface RouteLegStepOrBuilderpublic boolean hasStartLocation()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;hasStartLocation in interface RouteLegStepOrBuilderpublic Location getStartLocation()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;getStartLocation in interface RouteLegStepOrBuilderpublic LocationOrBuilder getStartLocationOrBuilder()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;getStartLocationOrBuilder in interface RouteLegStepOrBuilderpublic boolean hasEndLocation()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;hasEndLocation in interface RouteLegStepOrBuilderpublic Location getEndLocation()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;getEndLocation in interface RouteLegStepOrBuilderpublic LocationOrBuilder getEndLocationOrBuilder()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;getEndLocationOrBuilder in interface RouteLegStepOrBuilderpublic boolean hasNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;hasNavigationInstruction in interface RouteLegStepOrBuilderpublic NavigationInstruction getNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;getNavigationInstruction in interface RouteLegStepOrBuilderpublic NavigationInstructionOrBuilder getNavigationInstructionOrBuilder()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;getNavigationInstructionOrBuilder in interface RouteLegStepOrBuilderpublic 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;hasTravelAdvisory in interface RouteLegStepOrBuilderpublic RouteLegStepTravelAdvisory 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;getTravelAdvisory in interface RouteLegStepOrBuilderpublic RouteLegStepTravelAdvisoryOrBuilder 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;getTravelAdvisoryOrBuilder in interface RouteLegStepOrBuilderpublic boolean hasLocalizedValues()
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;
hasLocalizedValues in interface RouteLegStepOrBuilderpublic RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues()
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;
getLocalizedValues in interface RouteLegStepOrBuilderpublic RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;
getLocalizedValuesOrBuilder in interface RouteLegStepOrBuilderpublic boolean hasTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;hasTransitDetails in interface RouteLegStepOrBuilderpublic RouteLegStepTransitDetails getTransitDetails()
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;getTransitDetails in interface RouteLegStepOrBuilderpublic RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder()
Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;getTransitDetailsOrBuilder in interface RouteLegStepOrBuilderpublic int getTravelModeValue()
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;getTravelModeValue in interface RouteLegStepOrBuilderpublic RouteTravelMode getTravelMode()
The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;getTravelMode in interface RouteLegStepOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static RouteLegStep parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegStep parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegStep parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegStep parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegStep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegStep parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static RouteLegStep parseFrom(InputStream input) throws IOException
IOExceptionpublic static RouteLegStep parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteLegStep parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static RouteLegStep parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static RouteLegStep parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static RouteLegStep parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic RouteLegStep.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static RouteLegStep.Builder newBuilder()
public static RouteLegStep.Builder newBuilder(RouteLegStep prototype)
public RouteLegStep.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected RouteLegStep.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static RouteLegStep getDefaultInstance()
public static com.google.protobuf.Parser<RouteLegStep> parser()
public com.google.protobuf.Parser<RouteLegStep> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public RouteLegStep getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.