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 type
google.maps.routing.v2.Route| Modifier and Type | Class and 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 |
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 |
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_DETAILS_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 |
| Modifier and Type | Method and 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.
|
PolylineDetails |
getPolylineDetails()
Contains information about details along the polyline.
|
PolylineDetailsOrBuilder |
getPolylineDetailsOrBuilder()
Contains information about details along the 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()
An opaque token that can be passed to [Navigation
SDK](https://developers.google.com/maps/documentation/navigation) to
reconstruct the route during navigation, and, in the event of rerouting,
honor the original intention when the route was created.
|
com.google.protobuf.ByteString |
getRouteTokenBytes()
An opaque token that can be passed to [Navigation
SDK](https://developers.google.com/maps/documentation/navigation) to
reconstruct the route during navigation, and, in the event of rerouting,
honor the original intention when the route was created.
|
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 |
hasPolylineDetails()
Contains information about details along the 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(ByteBuffer data) |
static Route |
parseFrom(ByteBuffer 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 com.google.protobuf.Parser<Route> |
parser() |
Route.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 ROUTE_LABELS_FIELD_NUMBER
public static final int LEGS_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER
public static final int STATIC_DURATION_FIELD_NUMBER
public static final int POLYLINE_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER
public static final int VIEWPORT_FIELD_NUMBER
public static final int TRAVEL_ADVISORY_FIELD_NUMBER
public static final int OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER
public static final int LOCALIZED_VALUES_FIELD_NUMBER
public static final int ROUTE_TOKEN_FIELD_NUMBER
public static final int POLYLINE_DETAILS_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 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;getRouteLabelsList in interface RouteOrBuilderpublic 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;getRouteLabelsCount in interface RouteOrBuilderpublic 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;getRouteLabels in interface RouteOrBuilderindex - The index of the element to return.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;getRouteLabelsValueList in interface RouteOrBuilderpublic 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;getRouteLabelsValue in interface RouteOrBuilderindex - The index of the value to return.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;getLegsList in interface RouteOrBuilderpublic 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;getLegsOrBuilderList in interface RouteOrBuilderpublic 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;getLegsCount in interface RouteOrBuilderpublic 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;getLegs in interface RouteOrBuilderpublic 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;getLegsOrBuilder in interface RouteOrBuilderpublic int getDistanceMeters()
The travel distance of the route, in meters.
int32 distance_meters = 2;getDistanceMeters in interface RouteOrBuilderpublic 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;hasDuration in interface RouteOrBuilderpublic 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;getDuration in interface RouteOrBuilderpublic 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;getDurationOrBuilder in interface RouteOrBuilderpublic boolean hasStaticDuration()
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;hasStaticDuration in interface RouteOrBuilderpublic com.google.protobuf.Duration getStaticDuration()
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;getStaticDuration in interface RouteOrBuilderpublic com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;getStaticDurationOrBuilder in interface RouteOrBuilderpublic boolean hasPolyline()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;hasPolyline in interface RouteOrBuilderpublic Polyline getPolyline()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;getPolyline in interface RouteOrBuilderpublic PolylineOrBuilder getPolylineOrBuilder()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;getPolylineOrBuilder in interface RouteOrBuilderpublic String getDescription()
A description of the route.
string description = 6;getDescription in interface RouteOrBuilderpublic com.google.protobuf.ByteString getDescriptionBytes()
A description of the route.
string description = 6;getDescriptionBytes in interface RouteOrBuilderpublic com.google.protobuf.ProtocolStringList getWarningsList()
An array of warnings to show when displaying the route.
repeated string warnings = 7;getWarningsList in interface RouteOrBuilderpublic int getWarningsCount()
An array of warnings to show when displaying the route.
repeated string warnings = 7;getWarningsCount in interface RouteOrBuilderpublic String getWarnings(int index)
An array of warnings to show when displaying the route.
repeated string warnings = 7;getWarnings in interface RouteOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getWarningsBytes(int index)
An array of warnings to show when displaying the route.
repeated string warnings = 7;getWarningsBytes in interface RouteOrBuilderindex - The index of the value to return.public boolean hasViewport()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;hasViewport in interface RouteOrBuilderpublic com.google.geo.type.Viewport getViewport()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;getViewport in interface RouteOrBuilderpublic com.google.geo.type.ViewportOrBuilder getViewportOrBuilder()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;getViewportOrBuilder in interface RouteOrBuilderpublic boolean hasTravelAdvisory()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;hasTravelAdvisory in interface RouteOrBuilderpublic RouteTravelAdvisory getTravelAdvisory()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;getTravelAdvisory in interface RouteOrBuilderpublic RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;getTravelAdvisoryOrBuilder in interface RouteOrBuilderpublic 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;getOptimizedIntermediateWaypointIndexList in interface RouteOrBuilderpublic 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;getOptimizedIntermediateWaypointIndexCount in interface RouteOrBuilderpublic 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;getOptimizedIntermediateWaypointIndex in interface RouteOrBuilderindex - The index of the element to return.public boolean hasLocalizedValues()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;hasLocalizedValues in interface RouteOrBuilderpublic Route.RouteLocalizedValues getLocalizedValues()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;getLocalizedValues in interface RouteOrBuilderpublic Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;getLocalizedValuesOrBuilder in interface RouteOrBuilderpublic String getRouteToken()
An opaque token that can be passed to [Navigation SDK](https://developers.google.com/maps/documentation/navigation) to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when the route was created. Treat this token as an opaque blob. Don't compare its value across requests as its value may change even if the service returns the exact same route. 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;getRouteToken in interface RouteOrBuilderpublic com.google.protobuf.ByteString getRouteTokenBytes()
An opaque token that can be passed to [Navigation SDK](https://developers.google.com/maps/documentation/navigation) to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when the route was created. Treat this token as an opaque blob. Don't compare its value across requests as its value may change even if the service returns the exact same route. 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;getRouteTokenBytes in interface RouteOrBuilderpublic boolean hasPolylineDetails()
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14;hasPolylineDetails in interface RouteOrBuilderpublic PolylineDetails getPolylineDetails()
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14;getPolylineDetails in interface RouteOrBuilderpublic PolylineDetailsOrBuilder getPolylineDetailsOrBuilder()
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14;getPolylineDetailsOrBuilder in interface RouteOrBuilderpublic 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 Route parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Route parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Route parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Route parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Route parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static Route parseFrom(InputStream input) throws IOException
IOExceptionpublic static Route parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Route parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static Route parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static Route parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static Route parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic Route.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static Route.Builder newBuilder()
public static Route.Builder newBuilder(Route prototype)
public Route.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected Route.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static Route getDefaultInstance()
public static com.google.protobuf.Parser<Route> parser()
public com.google.protobuf.Parser<Route> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public Route getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.