Package com.google.maps.routing.v2
Class Route
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.maps.routing.v2.Route
-
- All Implemented Interfaces:
RouteOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class Route extends com.google.protobuf.GeneratedMessageV3 implements RouteOrBuilder
Contains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.
Protobuf typegoogle.maps.routing.v2.Route
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Route.Builder
Contains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.static class
Route.RouteLocalizedValues
Text representations of certain properties.static interface
Route.RouteLocalizedValuesOrBuilder
-
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 int
DESCRIPTION_FIELD_NUMBER
static int
DISTANCE_METERS_FIELD_NUMBER
static int
DURATION_FIELD_NUMBER
static int
LEGS_FIELD_NUMBER
static int
LOCALIZED_VALUES_FIELD_NUMBER
static int
OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER
static int
POLYLINE_FIELD_NUMBER
static int
ROUTE_LABELS_FIELD_NUMBER
static int
ROUTE_TOKEN_FIELD_NUMBER
static int
STATIC_DURATION_FIELD_NUMBER
static int
TRAVEL_ADVISORY_FIELD_NUMBER
static int
VIEWPORT_FIELD_NUMBER
static int
WARNINGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static Route
getDefaultInstance()
Route
getDefaultInstanceForType()
String
getDescription()
A description of the route.com.google.protobuf.ByteString
getDescriptionBytes()
A description of the route.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
int
getDistanceMeters()
The travel distance of the route, in meters.com.google.protobuf.Duration
getDuration()
The length of time needed to navigate the route.com.google.protobuf.DurationOrBuilder
getDurationOrBuilder()
The length of time needed to navigate the route.RouteLeg
getLegs(int index)
A collection of legs (path segments between waypoints) that make up the route.int
getLegsCount()
A collection of legs (path segments between waypoints) that make up the route.List<RouteLeg>
getLegsList()
A collection of legs (path segments between waypoints) that make up the route.RouteLegOrBuilder
getLegsOrBuilder(int index)
A collection of legs (path segments between waypoints) that make up the route.List<? extends RouteLegOrBuilder>
getLegsOrBuilderList()
A collection of legs (path segments between waypoints) that make up the route.Route.RouteLocalizedValues
getLocalizedValues()
Text representations of properties of the `Route`.Route.RouteLocalizedValuesOrBuilder
getLocalizedValuesOrBuilder()
Text representations of properties of the `Route`.int
getOptimizedIntermediateWaypointIndex(int index)
If you set [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints.int
getOptimizedIntermediateWaypointIndexCount()
If you set [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints.List<Integer>
getOptimizedIntermediateWaypointIndexList()
If you set [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints.com.google.protobuf.Parser<Route>
getParserForType()
Polyline
getPolyline()
The overall route polyline.PolylineOrBuilder
getPolylineOrBuilder()
The overall route polyline.RouteLabel
getRouteLabels(int index)
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.int
getRouteLabelsCount()
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.List<RouteLabel>
getRouteLabelsList()
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.int
getRouteLabelsValue(int index)
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.List<Integer>
getRouteLabelsValueList()
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.String
getRouteToken()
A web-safe, base64-encoded route token that can be passed to the Navigation SDK, that allows the Navigation SDK to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when you created the route by calling ComputeRoutes.com.google.protobuf.ByteString
getRouteTokenBytes()
A web-safe, base64-encoded route token that can be passed to the Navigation SDK, that allows the Navigation SDK to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when you created the route by calling ComputeRoutes.int
getSerializedSize()
com.google.protobuf.Duration
getStaticDuration()
The duration of travel through the route without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuilder
getStaticDurationOrBuilder()
The duration of travel through the route without taking traffic conditions into consideration.RouteTravelAdvisory
getTravelAdvisory()
Additional information about the route.RouteTravelAdvisoryOrBuilder
getTravelAdvisoryOrBuilder()
Additional information about the route.com.google.geo.type.Viewport
getViewport()
The viewport bounding box of the polyline.com.google.geo.type.ViewportOrBuilder
getViewportOrBuilder()
The viewport bounding box of the polyline.String
getWarnings(int index)
An array of warnings to show when displaying the route.com.google.protobuf.ByteString
getWarningsBytes(int index)
An array of warnings to show when displaying the route.int
getWarningsCount()
An array of warnings to show when displaying the route.com.google.protobuf.ProtocolStringList
getWarningsList()
An array of warnings to show when displaying the route.boolean
hasDuration()
The length of time needed to navigate the route.int
hashCode()
boolean
hasLocalizedValues()
Text representations of properties of the `Route`.boolean
hasPolyline()
The overall route polyline.boolean
hasStaticDuration()
The duration of travel through the route without taking traffic conditions into consideration.boolean
hasTravelAdvisory()
Additional information about the route.boolean
hasViewport()
The viewport bounding box of the polyline.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Route.Builder
newBuilder()
static Route.Builder
newBuilder(Route prototype)
Route.Builder
newBuilderForType()
protected Route.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Route
parseDelimitedFrom(InputStream input)
static Route
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(byte[] data)
static Route
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(com.google.protobuf.ByteString data)
static Route
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(com.google.protobuf.CodedInputStream input)
static Route
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(InputStream input)
static Route
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Route
parseFrom(ByteBuffer data)
static Route
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Route>
parser()
Route.Builder
toBuilder()
void
writeTo(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
-
ROUTE_LABELS_FIELD_NUMBER
public static final int ROUTE_LABELS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LEGS_FIELD_NUMBER
public static final int LEGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISTANCE_METERS_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DURATION_FIELD_NUMBER
public static final int DURATION_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
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
- See Also:
- Constant Field Values
-
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
VIEWPORT_FIELD_NUMBER
public static final int VIEWPORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TRAVEL_ADVISORY_FIELD_NUMBER
public static final int TRAVEL_ADVISORY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER
public static final int OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOCALIZED_VALUES_FIELD_NUMBER
public static final int LOCALIZED_VALUES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ROUTE_TOKEN_FIELD_NUMBER
public static final int ROUTE_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getRouteLabelsList
public List<RouteLabel> getRouteLabelsList()
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.
repeated .google.maps.routing.v2.RouteLabel route_labels = 13;
- Specified by:
getRouteLabelsList
in interfaceRouteOrBuilder
- Returns:
- A list containing the routeLabels.
-
getRouteLabelsCount
public int getRouteLabelsCount()
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.
repeated .google.maps.routing.v2.RouteLabel route_labels = 13;
- Specified by:
getRouteLabelsCount
in interfaceRouteOrBuilder
- Returns:
- The count of routeLabels.
-
getRouteLabels
public RouteLabel getRouteLabels(int index)
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.
repeated .google.maps.routing.v2.RouteLabel route_labels = 13;
- Specified by:
getRouteLabels
in interfaceRouteOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The routeLabels at the given index.
-
getRouteLabelsValueList
public List<Integer> getRouteLabelsValueList()
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.
repeated .google.maps.routing.v2.RouteLabel route_labels = 13;
- Specified by:
getRouteLabelsValueList
in interfaceRouteOrBuilder
- Returns:
- A list containing the enum numeric values on the wire for routeLabels.
-
getRouteLabelsValue
public int getRouteLabelsValue(int index)
Labels for the `Route` that are useful to identify specific properties of the route to compare against others.
repeated .google.maps.routing.v2.RouteLabel route_labels = 13;
- Specified by:
getRouteLabelsValue
in interfaceRouteOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The enum numeric value on the wire of routeLabels at the given index.
-
getLegsList
public List<RouteLeg> getLegsList()
A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non-`via` [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no intermediate waypoints has only one leg. A route that includes one non-`via` intermediate waypoint has two legs. A route that includes one `via` intermediate waypoint has one leg. The order of the legs matches the order of waypoints from `origin` to `intermediates` to `destination`.
repeated .google.maps.routing.v2.RouteLeg legs = 1;
- Specified by:
getLegsList
in interfaceRouteOrBuilder
-
getLegsOrBuilderList
public List<? extends RouteLegOrBuilder> getLegsOrBuilderList()
A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non-`via` [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no intermediate waypoints has only one leg. A route that includes one non-`via` intermediate waypoint has two legs. A route that includes one `via` intermediate waypoint has one leg. The order of the legs matches the order of waypoints from `origin` to `intermediates` to `destination`.
repeated .google.maps.routing.v2.RouteLeg legs = 1;
- Specified by:
getLegsOrBuilderList
in interfaceRouteOrBuilder
-
getLegsCount
public int getLegsCount()
A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non-`via` [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no intermediate waypoints has only one leg. A route that includes one non-`via` intermediate waypoint has two legs. A route that includes one `via` intermediate waypoint has one leg. The order of the legs matches the order of waypoints from `origin` to `intermediates` to `destination`.
repeated .google.maps.routing.v2.RouteLeg legs = 1;
- Specified by:
getLegsCount
in interfaceRouteOrBuilder
-
getLegs
public RouteLeg getLegs(int index)
A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non-`via` [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no intermediate waypoints has only one leg. A route that includes one non-`via` intermediate waypoint has two legs. A route that includes one `via` intermediate waypoint has one leg. The order of the legs matches the order of waypoints from `origin` to `intermediates` to `destination`.
repeated .google.maps.routing.v2.RouteLeg legs = 1;
- Specified by:
getLegs
in interfaceRouteOrBuilder
-
getLegsOrBuilder
public RouteLegOrBuilder getLegsOrBuilder(int index)
A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non-`via` [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no intermediate waypoints has only one leg. A route that includes one non-`via` intermediate waypoint has two legs. A route that includes one `via` intermediate waypoint has one leg. The order of the legs matches the order of waypoints from `origin` to `intermediates` to `destination`.
repeated .google.maps.routing.v2.RouteLeg legs = 1;
- Specified by:
getLegsOrBuilder
in interfaceRouteOrBuilder
-
getDistanceMeters
public int getDistanceMeters()
The travel distance of the route, in meters.
int32 distance_meters = 2;
- Specified by:
getDistanceMeters
in interfaceRouteOrBuilder
- Returns:
- The distanceMeters.
-
hasDuration
public boolean hasDuration()
The length of time needed to navigate the route. If you set the `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 3;
- Specified by:
hasDuration
in interfaceRouteOrBuilder
- Returns:
- Whether the duration field is set.
-
getDuration
public com.google.protobuf.Duration getDuration()
The length of time needed to navigate the route. If you set the `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 3;
- Specified by:
getDuration
in interfaceRouteOrBuilder
- Returns:
- The duration.
-
getDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
The length of time needed to navigate the route. If you set the `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as `static_duration`. If you set the `routing_preference` to either `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic conditions into account.
.google.protobuf.Duration duration = 3;
- Specified by:
getDurationOrBuilder
in interfaceRouteOrBuilder
-
hasStaticDuration
public boolean hasStaticDuration()
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;
- Specified by:
hasStaticDuration
in interfaceRouteOrBuilder
- Returns:
- Whether the staticDuration field is set.
-
getStaticDuration
public com.google.protobuf.Duration getStaticDuration()
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;
- Specified by:
getStaticDuration
in interfaceRouteOrBuilder
- Returns:
- The staticDuration.
-
getStaticDurationOrBuilder
public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;
- Specified by:
getStaticDurationOrBuilder
in interfaceRouteOrBuilder
-
hasPolyline
public boolean hasPolyline()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
- Specified by:
hasPolyline
in interfaceRouteOrBuilder
- Returns:
- Whether the polyline field is set.
-
getPolyline
public Polyline getPolyline()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
- Specified by:
getPolyline
in interfaceRouteOrBuilder
- Returns:
- The polyline.
-
getPolylineOrBuilder
public PolylineOrBuilder getPolylineOrBuilder()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
- Specified by:
getPolylineOrBuilder
in interfaceRouteOrBuilder
-
getDescription
public String getDescription()
A description of the route.
string description = 6;
- Specified by:
getDescription
in interfaceRouteOrBuilder
- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()
A description of the route.
string description = 6;
- Specified by:
getDescriptionBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for description.
-
getWarningsList
public com.google.protobuf.ProtocolStringList getWarningsList()
An array of warnings to show when displaying the route.
repeated string warnings = 7;
- Specified by:
getWarningsList
in interfaceRouteOrBuilder
- Returns:
- A list containing the warnings.
-
getWarningsCount
public int getWarningsCount()
An array of warnings to show when displaying the route.
repeated string warnings = 7;
- Specified by:
getWarningsCount
in interfaceRouteOrBuilder
- Returns:
- The count of warnings.
-
getWarnings
public String getWarnings(int index)
An array of warnings to show when displaying the route.
repeated string warnings = 7;
- Specified by:
getWarnings
in interfaceRouteOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The warnings at the given index.
-
getWarningsBytes
public com.google.protobuf.ByteString getWarningsBytes(int index)
An array of warnings to show when displaying the route.
repeated string warnings = 7;
- Specified by:
getWarningsBytes
in interfaceRouteOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the warnings at the given index.
-
hasViewport
public boolean hasViewport()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
- Specified by:
hasViewport
in interfaceRouteOrBuilder
- Returns:
- Whether the viewport field is set.
-
getViewport
public com.google.geo.type.Viewport getViewport()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
- Specified by:
getViewport
in interfaceRouteOrBuilder
- Returns:
- The viewport.
-
getViewportOrBuilder
public com.google.geo.type.ViewportOrBuilder getViewportOrBuilder()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
- Specified by:
getViewportOrBuilder
in interfaceRouteOrBuilder
-
hasTravelAdvisory
public boolean hasTravelAdvisory()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
- Specified by:
hasTravelAdvisory
in interfaceRouteOrBuilder
- Returns:
- Whether the travelAdvisory field is set.
-
getTravelAdvisory
public RouteTravelAdvisory getTravelAdvisory()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
- Specified by:
getTravelAdvisory
in interfaceRouteOrBuilder
- Returns:
- The travelAdvisory.
-
getTravelAdvisoryOrBuilder
public RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
- Specified by:
getTravelAdvisoryOrBuilder
in interfaceRouteOrBuilder
-
getOptimizedIntermediateWaypointIndexList
public List<Integer> getOptimizedIntermediateWaypointIndexList()
If you set [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints. Otherwise, this field is empty. For example, if you give an input of Origin: LA; Intermediate waypoints: Dallas, Bangor, Phoenix; Destination: New York; and the optimized intermediate waypoint order is Phoenix, Dallas, Bangor, then this field contains the values [2, 0, 1]. The index starts with 0 for the first intermediate waypoint provided in the input.
repeated int32 optimized_intermediate_waypoint_index = 10;
- Specified by:
getOptimizedIntermediateWaypointIndexList
in interfaceRouteOrBuilder
- Returns:
- A list containing the optimizedIntermediateWaypointIndex.
-
getOptimizedIntermediateWaypointIndexCount
public int getOptimizedIntermediateWaypointIndexCount()
If you set [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints. Otherwise, this field is empty. For example, if you give an input of Origin: LA; Intermediate waypoints: Dallas, Bangor, Phoenix; Destination: New York; and the optimized intermediate waypoint order is Phoenix, Dallas, Bangor, then this field contains the values [2, 0, 1]. The index starts with 0 for the first intermediate waypoint provided in the input.
repeated int32 optimized_intermediate_waypoint_index = 10;
- Specified by:
getOptimizedIntermediateWaypointIndexCount
in interfaceRouteOrBuilder
- Returns:
- The count of optimizedIntermediateWaypointIndex.
-
getOptimizedIntermediateWaypointIndex
public int getOptimizedIntermediateWaypointIndex(int index)
If you set [optimize_waypoint_order][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints. Otherwise, this field is empty. For example, if you give an input of Origin: LA; Intermediate waypoints: Dallas, Bangor, Phoenix; Destination: New York; and the optimized intermediate waypoint order is Phoenix, Dallas, Bangor, then this field contains the values [2, 0, 1]. The index starts with 0 for the first intermediate waypoint provided in the input.
repeated int32 optimized_intermediate_waypoint_index = 10;
- Specified by:
getOptimizedIntermediateWaypointIndex
in interfaceRouteOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The optimizedIntermediateWaypointIndex at the given index.
-
hasLocalizedValues
public boolean hasLocalizedValues()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
- Specified by:
hasLocalizedValues
in interfaceRouteOrBuilder
- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
public Route.RouteLocalizedValues getLocalizedValues()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
- Specified by:
getLocalizedValues
in interfaceRouteOrBuilder
- Returns:
- The localizedValues.
-
getLocalizedValuesOrBuilder
public Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
- Specified by:
getLocalizedValuesOrBuilder
in interfaceRouteOrBuilder
-
getRouteToken
public String getRouteToken()
A web-safe, base64-encoded route token that can be passed to the Navigation SDK, that allows the Navigation SDK to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when you created the route by calling ComputeRoutes. Customers should treat this token as an opaque blob. It is not meant for reading or mutating. NOTE: `Route.route_token` is only available for requests that have set `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests that have Via waypoints.
string route_token = 12;
- Specified by:
getRouteToken
in interfaceRouteOrBuilder
- Returns:
- The routeToken.
-
getRouteTokenBytes
public com.google.protobuf.ByteString getRouteTokenBytes()
A web-safe, base64-encoded route token that can be passed to the Navigation SDK, that allows the Navigation SDK to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when you created the route by calling ComputeRoutes. Customers should treat this token as an opaque blob. It is not meant for reading or mutating. NOTE: `Route.route_token` is only available for requests that have set `ComputeRoutesRequest.routing_preference` to `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`. `Route.route_token` is not supported for requests that have Via waypoints.
string route_token = 12;
- Specified by:
getRouteTokenBytes
in interfaceRouteOrBuilder
- Returns:
- The bytes for routeToken.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static Route parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Route parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Route parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Route parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static Route parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static Route parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static Route parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public Route.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static Route.Builder newBuilder()
-
newBuilder
public static Route.Builder newBuilder(Route prototype)
-
toBuilder
public Route.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Route.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static Route getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<Route> parser()
-
getParserForType
public com.google.protobuf.Parser<Route> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Route getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-