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 classRoute.BuilderContains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.static classRoute.RouteLocalizedValuesText representations of certain properties.static interfaceRoute.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 intDESCRIPTION_FIELD_NUMBERstatic intDISTANCE_METERS_FIELD_NUMBERstatic intDURATION_FIELD_NUMBERstatic intLEGS_FIELD_NUMBERstatic intLOCALIZED_VALUES_FIELD_NUMBERstatic intOPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBERstatic intPOLYLINE_FIELD_NUMBERstatic intROUTE_LABELS_FIELD_NUMBERstatic intROUTE_TOKEN_FIELD_NUMBERstatic intSTATIC_DURATION_FIELD_NUMBERstatic intTRAVEL_ADVISORY_FIELD_NUMBERstatic intVIEWPORT_FIELD_NUMBERstatic intWARNINGS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static RoutegetDefaultInstance()RoutegetDefaultInstanceForType()StringgetDescription()A description of the route.com.google.protobuf.ByteStringgetDescriptionBytes()A description of the route.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()intgetDistanceMeters()The travel distance of the route, in meters.com.google.protobuf.DurationgetDuration()The length of time needed to navigate the route.com.google.protobuf.DurationOrBuildergetDurationOrBuilder()The length of time needed to navigate the route.RouteLeggetLegs(int index)A collection of legs (path segments between waypoints) that make up the route.intgetLegsCount()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.RouteLegOrBuildergetLegsOrBuilder(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.RouteLocalizedValuesgetLocalizedValues()Text representations of properties of the `Route`.Route.RouteLocalizedValuesOrBuildergetLocalizedValuesOrBuilder()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.intgetOptimizedIntermediateWaypointIndexCount()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()PolylinegetPolyline()The overall route polyline.PolylineOrBuildergetPolylineOrBuilder()The overall route polyline.RouteLabelgetRouteLabels(int index)Labels for the `Route` that are useful to identify specific properties of the route to compare against others.intgetRouteLabelsCount()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.intgetRouteLabelsValue(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.StringgetRouteToken()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.ByteStringgetRouteTokenBytes()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.intgetSerializedSize()com.google.protobuf.DurationgetStaticDuration()The duration of travel through the route without taking traffic conditions into consideration.com.google.protobuf.DurationOrBuildergetStaticDurationOrBuilder()The duration of travel through the route without taking traffic conditions into consideration.RouteTravelAdvisorygetTravelAdvisory()Additional information about the route.RouteTravelAdvisoryOrBuildergetTravelAdvisoryOrBuilder()Additional information about the route.com.google.geo.type.ViewportgetViewport()The viewport bounding box of the polyline.com.google.geo.type.ViewportOrBuildergetViewportOrBuilder()The viewport bounding box of the polyline.StringgetWarnings(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.intgetWarningsCount()An array of warnings to show when displaying the route.com.google.protobuf.ProtocolStringListgetWarningsList()An array of warnings to show when displaying the route.booleanhasDuration()The length of time needed to navigate the route.inthashCode()booleanhasLocalizedValues()Text representations of properties of the `Route`.booleanhasPolyline()The overall route polyline.booleanhasStaticDuration()The duration of travel through the route without taking traffic conditions into consideration.booleanhasTravelAdvisory()Additional information about the route.booleanhasViewport()The viewport bounding box of the polyline.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Route.BuildernewBuilder()static Route.BuildernewBuilder(Route prototype)Route.BuildernewBuilderForType()protected Route.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()Route.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
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:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
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:
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
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:
getRouteLabelsin 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:
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
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:
getLegsListin 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:
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
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:
getLegsin 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:
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
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:
getPolylinein 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:
getPolylineOrBuilderin interfaceRouteOrBuilder
-
getDescription
public String 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
public String getWarnings(int index)
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
public com.google.geo.type.Viewport getViewport()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;- Specified by:
getViewportin 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:
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
public RouteTravelAdvisory getTravelAdvisory()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;- Specified by:
getTravelAdvisoryin interfaceRouteOrBuilder- Returns:
- The travelAdvisory.
-
getTravelAdvisoryOrBuilder
public RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;- Specified by:
getTravelAdvisoryOrBuilderin 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:
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
public Route.RouteLocalizedValues 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
public Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;- Specified by:
getLocalizedValuesOrBuilderin 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:
getRouteTokenin 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:
getRouteTokenBytesin interfaceRouteOrBuilder- Returns:
- The bytes for routeToken.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static 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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Route.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein 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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Route getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-