Package com.google.maps.routing.v2
Class Route
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class Route
extends com.google.protobuf.GeneratedMessage
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- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classContains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.static final classText representations of certain properties.static interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RouteA description of the route.com.google.protobuf.ByteStringA description of the route.static final com.google.protobuf.Descriptors.DescriptorintThe travel distance of the route, in meters.com.google.protobuf.DurationThe length of time needed to navigate the route.com.google.protobuf.DurationOrBuilderThe length of time needed to navigate the route.getLegs(int index) A collection of legs (path segments between waypoints) that make up the route.intA collection of legs (path segments between waypoints) that make up the route.A collection of legs (path segments between waypoints) that make up the route.getLegsOrBuilder(int index) A collection of legs (path segments between waypoints) that make up the route.List<? extends RouteLegOrBuilder>A collection of legs (path segments between waypoints) that make up the route.Text representations of properties of the `Route`.Text representations of properties of the `Route`.intgetOptimizedIntermediateWaypointIndex(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.intIf you set [`optimize_waypoint_order`][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints.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>The overall route polyline.Contains information about details along the polyline.Contains information about details along the polyline.The overall route polyline.getRouteLabels(int index) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.intLabels for the `Route` that are useful to identify specific properties of the route to compare against others.Labels for the `Route` that are useful to identify specific properties of the route to compare against others.intgetRouteLabelsValue(int index) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Labels for the `Route` that are useful to identify specific properties of the route to compare against others.An opaque token that can be passed to [Navigation SDK](https://developers.google.com/maps/documentation/mobility/driver-sdk/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.ByteStringAn opaque token that can be passed to [Navigation SDK](https://developers.google.com/maps/documentation/mobility/driver-sdk/navigation) to reconstruct the route during navigation, and, in the event of rerouting, honor the original intention when the route was created.intcom.google.protobuf.DurationThe duration of travel through the route without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuilderThe duration of travel through the route without taking traffic conditions into consideration.Additional information about the route.Additional information about the route.The viewport bounding box of the polyline.The viewport bounding box of the polyline.getWarnings(int index) An array of warnings to show when displaying the route.com.google.protobuf.ByteStringgetWarningsBytes(int index) An array of warnings to show when displaying the route.intAn array of warnings to show when displaying the route.com.google.protobuf.ProtocolStringListAn array of warnings to show when displaying the route.booleanThe length of time needed to navigate the route.inthashCode()booleanText representations of properties of the `Route`.booleanThe overall route polyline.booleanContains information about details along the polyline.booleanThe duration of travel through the route without taking traffic conditions into consideration.booleanAdditional information about the route.booleanThe viewport bounding box of the polyline.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic Route.Builderstatic Route.BuildernewBuilder(Route prototype) protected Route.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static RouteparseDelimitedFrom(InputStream input) static RouteparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteparseFrom(byte[] data) static RouteparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteparseFrom(com.google.protobuf.ByteString data) static RouteparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteparseFrom(com.google.protobuf.CodedInputStream input) static RouteparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteparseFrom(InputStream input) static RouteparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static RouteparseFrom(ByteBuffer data) static RouteparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Route>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
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, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ROUTE_LABELS_FIELD_NUMBER
public static final int ROUTE_LABELS_FIELD_NUMBER- See Also:
-
LEGS_FIELD_NUMBER
public static final int LEGS_FIELD_NUMBER- See Also:
-
DISTANCE_METERS_FIELD_NUMBER
public static final int DISTANCE_METERS_FIELD_NUMBER- See Also:
-
DURATION_FIELD_NUMBER
public static final int DURATION_FIELD_NUMBER- See Also:
-
STATIC_DURATION_FIELD_NUMBER
public static final int STATIC_DURATION_FIELD_NUMBER- See Also:
-
POLYLINE_FIELD_NUMBER
public static final int POLYLINE_FIELD_NUMBER- See Also:
-
DESCRIPTION_FIELD_NUMBER
public static final int DESCRIPTION_FIELD_NUMBER- See Also:
-
WARNINGS_FIELD_NUMBER
public static final int WARNINGS_FIELD_NUMBER- See Also:
-
VIEWPORT_FIELD_NUMBER
public static final int VIEWPORT_FIELD_NUMBER- See Also:
-
TRAVEL_ADVISORY_FIELD_NUMBER
public static final int TRAVEL_ADVISORY_FIELD_NUMBER- See Also:
-
OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER
public static final int OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER- See Also:
-
LOCALIZED_VALUES_FIELD_NUMBER
public static final int LOCALIZED_VALUES_FIELD_NUMBER- See Also:
-
ROUTE_TOKEN_FIELD_NUMBER
public static final int ROUTE_TOKEN_FIELD_NUMBER- See Also:
-
POLYLINE_DETAILS_FIELD_NUMBER
public static final int POLYLINE_DETAILS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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:
getRouteLabelsListin 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:
getRouteLabelsCountin interfaceRouteOrBuilder- Returns:
- The count of routeLabels.
-
getRouteLabels
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:
getRouteLabelsin interfaceRouteOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The routeLabels at the given index.
-
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:
getRouteLabelsValueListin 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:
getRouteLabelsValuein 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
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:
getLegsListin interfaceRouteOrBuilder
-
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:
getLegsOrBuilderListin 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:
getLegsCountin interfaceRouteOrBuilder
-
getLegs
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:
getLegsin interfaceRouteOrBuilder
-
getLegsOrBuilder
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:
getLegsOrBuilderin interfaceRouteOrBuilder
-
getDistanceMeters
public int getDistanceMeters()The travel distance of the route, in meters.
int32 distance_meters = 2;- Specified by:
getDistanceMetersin 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:
hasDurationin 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:
getDurationin 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:
getDurationOrBuilderin 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:
hasStaticDurationin 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:
getStaticDurationin 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:
getStaticDurationOrBuilderin 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:
hasPolylinein interfaceRouteOrBuilder- Returns:
- Whether the polyline field is set.
-
getPolyline
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;- Specified by:
getPolylinein interfaceRouteOrBuilder- Returns:
- The polyline.
-
getPolylineOrBuilder
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;- Specified by:
getPolylineOrBuilderin interfaceRouteOrBuilder
-
getDescription
A description of the route.
string description = 6;- Specified by:
getDescriptionin interfaceRouteOrBuilder- Returns:
- The description.
-
getDescriptionBytes
public com.google.protobuf.ByteString getDescriptionBytes()A description of the route.
string description = 6;- Specified by:
getDescriptionBytesin 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:
getWarningsListin 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:
getWarningsCountin interfaceRouteOrBuilder- Returns:
- The count of warnings.
-
getWarnings
An array of warnings to show when displaying the route.
repeated string warnings = 7;- Specified by:
getWarningsin 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:
getWarningsBytesin 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:
hasViewportin interfaceRouteOrBuilder- Returns:
- Whether the viewport field is set.
-
getViewport
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;- Specified by:
getViewportin interfaceRouteOrBuilder- Returns:
- The viewport.
-
getViewportOrBuilder
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;- Specified by:
getViewportOrBuilderin interfaceRouteOrBuilder
-
hasTravelAdvisory
public boolean hasTravelAdvisory()Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;- Specified by:
hasTravelAdvisoryin interfaceRouteOrBuilder- Returns:
- Whether the travelAdvisory field is set.
-
getTravelAdvisory
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;- Specified by:
getTravelAdvisoryin interfaceRouteOrBuilder- Returns:
- The travelAdvisory.
-
getTravelAdvisoryOrBuilder
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;- Specified by:
getTravelAdvisoryOrBuilderin interfaceRouteOrBuilder
-
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:
getOptimizedIntermediateWaypointIndexListin 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:
getOptimizedIntermediateWaypointIndexCountin 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:
getOptimizedIntermediateWaypointIndexin 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:
hasLocalizedValuesin interfaceRouteOrBuilder- Returns:
- Whether the localizedValues field is set.
-
getLocalizedValues
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;- Specified by:
getLocalizedValuesin interfaceRouteOrBuilder- Returns:
- The localizedValues.
-
getLocalizedValuesOrBuilder
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;- Specified by:
getLocalizedValuesOrBuilderin interfaceRouteOrBuilder
-
getRouteToken
An opaque token that can be passed to [Navigation SDK](https://developers.google.com/maps/documentation/mobility/driver-sdk/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;- Specified by:
getRouteTokenin interfaceRouteOrBuilder- Returns:
- The routeToken.
-
getRouteTokenBytes
public com.google.protobuf.ByteString getRouteTokenBytes()An opaque token that can be passed to [Navigation SDK](https://developers.google.com/maps/documentation/mobility/driver-sdk/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;- Specified by:
getRouteTokenBytesin interfaceRouteOrBuilder- Returns:
- The bytes for routeToken.
-
hasPolylineDetails
public boolean hasPolylineDetails()Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14;- Specified by:
hasPolylineDetailsin interfaceRouteOrBuilder- Returns:
- Whether the polylineDetails field is set.
-
getPolylineDetails
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14;- Specified by:
getPolylineDetailsin interfaceRouteOrBuilder- Returns:
- The polylineDetails.
-
getPolylineDetailsOrBuilder
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14;- Specified by:
getPolylineDetailsOrBuilderin interfaceRouteOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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 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
- Throws:
IOException
-
parseFrom
public static Route parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Route parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Route parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-