Package com.google.maps.routing.v2
Interface RouteLegStepOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
RouteLegStep,RouteLegStep.Builder
@Generated
public interface RouteLegStepOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionintThe 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.The polyline associated with this step.The polyline associated with this step.The 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.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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDistanceMeters
int getDistanceMeters()The travel distance of this step, in meters. In some circumstances, this field might not have a value.
int32 distance_meters = 1;- Returns:
- The distanceMeters.
-
hasStaticDuration
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;- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
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;- Returns:
- The staticDuration.
-
getStaticDurationOrBuilder
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; -
hasPolyline
boolean hasPolyline()The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Returns:
- Whether the polyline field is set.
-
getPolyline
Polyline getPolyline()The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3;- Returns:
- The polyline.
-
getPolylineOrBuilder
PolylineOrBuilder getPolylineOrBuilder()The polyline associated with this step.
.google.maps.routing.v2.Polyline polyline = 3; -
hasStartLocation
boolean hasStartLocation()The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Returns:
- Whether the startLocation field is set.
-
getStartLocation
Location getStartLocation()The start location of this step.
.google.maps.routing.v2.Location start_location = 4;- Returns:
- The startLocation.
-
getStartLocationOrBuilder
LocationOrBuilder getStartLocationOrBuilder()The start location of this step.
.google.maps.routing.v2.Location start_location = 4; -
hasEndLocation
boolean hasEndLocation()The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Returns:
- Whether the endLocation field is set.
-
getEndLocation
Location getEndLocation()The end location of this step.
.google.maps.routing.v2.Location end_location = 5;- Returns:
- The endLocation.
-
getEndLocationOrBuilder
LocationOrBuilder getEndLocationOrBuilder()The end location of this step.
.google.maps.routing.v2.Location end_location = 5; -
hasTravelAdvisory
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;- Returns:
- Whether the travelAdvisory field is set.
-
getTravelAdvisory
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;- Returns:
- The travelAdvisory.
-
getTravelAdvisoryOrBuilder
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; -
hasLocalizedValues
boolean hasLocalizedValues()Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
RouteLegStep.RouteLegStepLocalizedValues getLocalizedValues()Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8;- Returns:
- The localizedValues.
-
getLocalizedValuesOrBuilder
RouteLegStep.RouteLegStepLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()Text representations of properties of the `RouteLegStep`.
.google.maps.routing.v2.RouteLegStep.RouteLegStepLocalizedValues localized_values = 8; -
hasTransitDetails
boolean hasTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Returns:
- Whether the transitDetails field is set.
-
getTransitDetails
RouteLegStepTransitDetails getTransitDetails()Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9;- Returns:
- The transitDetails.
-
getTransitDetailsOrBuilder
RouteLegStepTransitDetailsOrBuilder getTransitDetailsOrBuilder()Details pertaining to this step if the travel mode is `TRANSIT`.
.google.maps.routing.v2.RouteLegStepTransitDetails transit_details = 9; -
getTravelModeValue
int getTravelModeValue()The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Returns:
- The enum numeric value on the wire for travelMode.
-
getTravelMode
RouteTravelMode getTravelMode()The travel mode used for this step.
.google.maps.routing.v2.RouteTravelMode travel_mode = 10;- Returns:
- The travelMode.
-