Package com.google.maps.routing.v2
Class RouteLegStep
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
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 typegoogle.maps.routing.v2.RouteLegStep- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRouteLegStep.BuilderContains a segment of a [RouteLeg][google.maps.routing.v2.RouteLeg].static classRouteLegStep.RouteLegStepLocalizedValuesText representations of certain properties.static interfaceRouteLegStep.RouteLegStepLocalizedValuesOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
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
-
-
Field Summary
Fields Modifier and Type Field Description static intDISTANCE_METERS_FIELD_NUMBERstatic intEND_LOCATION_FIELD_NUMBERstatic intLOCALIZED_VALUES_FIELD_NUMBERstatic intNAVIGATION_INSTRUCTION_FIELD_NUMBERstatic intPOLYLINE_FIELD_NUMBERstatic intSTART_LOCATION_FIELD_NUMBERstatic intSTATIC_DURATION_FIELD_NUMBERstatic intTRANSIT_DETAILS_FIELD_NUMBERstatic intTRAVEL_ADVISORY_FIELD_NUMBERstatic intTRAVEL_MODE_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static RouteLegStepgetDefaultInstance()RouteLegStepgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetDistanceMeters()The travel distance of this step, in meters.LocationgetEndLocation()The end location of this step.LocationOrBuildergetEndLocationOrBuilder()The end location of this step.RouteLegStep.RouteLegStepLocalizedValuesgetLocalizedValues()Text representations of properties of the `RouteLegStep`.RouteLegStep.RouteLegStepLocalizedValuesOrBuildergetLocalizedValuesOrBuilder()Text representations of properties of the `RouteLegStep`.NavigationInstructiongetNavigationInstruction()Navigation instructions.NavigationInstructionOrBuildergetNavigationInstructionOrBuilder()Navigation instructions.com.google.protobuf.Parser<RouteLegStep>getParserForType()PolylinegetPolyline()The polyline associated with this step.PolylineOrBuildergetPolylineOrBuilder()The polyline associated with this step.intgetSerializedSize()LocationgetStartLocation()The start location of this step.LocationOrBuildergetStartLocationOrBuilder()The start location of this step.com.google.protobuf.DurationgetStaticDuration()The duration of travel through this step without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuildergetStaticDurationOrBuilder()The duration of travel through this step without taking traffic conditions into consideration.RouteLegStepTransitDetailsgetTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTransitDetailsOrBuildergetTransitDetailsOrBuilder()Details pertaining to this step if the travel mode is `TRANSIT`.RouteLegStepTravelAdvisorygetTravelAdvisory()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteLegStepTravelAdvisoryOrBuildergetTravelAdvisoryOrBuilder()Contains the additional information that the user should be informed about, such as possible traffic zone restrictions, on a leg step.RouteTravelModegetTravelMode()The travel mode used for this step.intgetTravelModeValue()The travel mode used for this step.booleanhasEndLocation()The end location of this step.inthashCode()booleanhasLocalizedValues()Text representations of properties of the `RouteLegStep`.booleanhasNavigationInstruction()Navigation instructions.booleanhasPolyline()The polyline associated with this step.booleanhasStartLocation()The start location of this step.booleanhasStaticDuration()The duration of travel through this step without taking traffic conditions into consideration.booleanhasTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.booleanhasTravelAdvisory()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static RouteLegStep.BuildernewBuilder()static RouteLegStep.BuildernewBuilder(RouteLegStep prototype)RouteLegStep.BuildernewBuilderForType()protected RouteLegStep.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()RouteLegStep.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
DISTANCE_METERS_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
STATIC_DURATION_FIELD_NUMBER
public static final int STATIC_DURATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
POLYLINE_FIELD_NUMBER
public static final int POLYLINE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
START_LOCATION_FIELD_NUMBER
public static final int START_LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
END_LOCATION_FIELD_NUMBER
public static final int END_LOCATION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
NAVIGATION_INSTRUCTION_FIELD_NUMBER
public static final int NAVIGATION_INSTRUCTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_ADVISORY_FIELD_NUMBER
public static final int TRAVEL_ADVISORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCALIZED_VALUES_FIELD_NUMBER
public static final int LOCALIZED_VALUES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRANSIT_DETAILS_FIELD_NUMBER
public static final int TRANSIT_DETAILS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_MODE_FIELD_NUMBER
public static final int TRAVEL_MODE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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
public Polyline getPolyline()
The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Specified by:
getPolylinein interfaceRouteLegStepOrBuilder- Returns:
- The polyline.
-
getPolylineOrBuilder
public PolylineOrBuilder 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
public Location getStartLocation()
The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Specified by:
getStartLocationin interfaceRouteLegStepOrBuilder- Returns:
- The startLocation.
-
getStartLocationOrBuilder
public LocationOrBuilder 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
public Location getEndLocation()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationin interfaceRouteLegStepOrBuilder- Returns:
- The endLocation.
-
getEndLocationOrBuilder
public LocationOrBuilder getEndLocationOrBuilder()
The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Specified by:
getEndLocationOrBuilderin interfaceRouteLegStepOrBuilder
-
hasNavigationInstruction
public boolean hasNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;- Specified by:
hasNavigationInstructionin interfaceRouteLegStepOrBuilder- Returns:
- Whether the navigationInstruction field is set.
-
getNavigationInstruction
public NavigationInstruction getNavigationInstruction()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;- Specified by:
getNavigationInstructionin interfaceRouteLegStepOrBuilder- Returns:
- The navigationInstruction.
-
getNavigationInstructionOrBuilder
public NavigationInstructionOrBuilder getNavigationInstructionOrBuilder()
Navigation instructions.
.google.maps.routing.v2.NavigationInstruction navigation_instruction = 6;- Specified by:
getNavigationInstructionOrBuilderin 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
public 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;- Specified by:
getTravelAdvisoryin interfaceRouteLegStepOrBuilder- Returns:
- The travelAdvisory.
-
getTravelAdvisoryOrBuilder
public 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;- 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
public RouteLegStep.RouteLegStepLocalizedValues 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
public RouteLegStep.RouteLegStepLocalizedValuesOrBuilder 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
public RouteLegStepTransitDetails 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
public RouteLegStepTransitDetailsOrBuilder 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
public RouteTravelMode 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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
public static RouteLegStep parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteLegStep parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouteLegStep parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static RouteLegStep parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteLegStep parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static RouteLegStep parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public RouteLegStep.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static RouteLegStep.Builder newBuilder()
-
newBuilder
public static RouteLegStep.Builder newBuilder(RouteLegStep prototype)
-
toBuilder
public RouteLegStep.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected RouteLegStep.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static RouteLegStep getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<RouteLegStep> parser()
-
getParserForType
public com.google.protobuf.Parser<RouteLegStep> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public RouteLegStep getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-