Package com.google.maps.routing.v2
Class Route.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
com.google.maps.routing.v2.Route.Builder
- All Implemented Interfaces:
RouteOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Route
public static final class Route.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Route.Builder>
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-
Method Summary
Modifier and TypeMethodDescriptionaddAllLegs(Iterable<? extends RouteLeg> values) A collection of legs (path segments between waypoints) that make up the route.addAllOptimizedIntermediateWaypointIndex(Iterable<? extends Integer> values) 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.addAllRouteLabels(Iterable<? extends RouteLabel> values) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.addAllRouteLabelsValue(Iterable<Integer> values) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.addAllWarnings(Iterable<String> values) An array of warnings to show when displaying the route.A collection of legs (path segments between waypoints) that make up the route.addLegs(int index, RouteLeg.Builder builderForValue) A 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.addLegs(RouteLeg.Builder builderForValue) A 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.addLegsBuilder(int index) A collection of legs (path segments between waypoints) that make up the route.addOptimizedIntermediateWaypointIndex(int value) 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.addRouteLabels(RouteLabel value) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.addRouteLabelsValue(int value) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.addWarnings(String value) An array of warnings to show when displaying the route.addWarningsBytes(com.google.protobuf.ByteString value) An array of warnings to show when displaying the route.build()clear()A description of the route.The travel distance of the route, in meters.The length of time needed to navigate the route.A collection of legs (path segments between waypoints) that make up the route.Text representations of properties of the `Route`.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.The overall route polyline.Contains information about details along the polyline.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.The duration of travel through the route without taking traffic conditions into consideration.Additional information about the route.The viewport bounding box of the polyline.An array of warnings to show when displaying the route.A description of the route.com.google.protobuf.ByteStringA description of the route.static final com.google.protobuf.Descriptors.Descriptorcom.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.Duration.BuilderThe 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.getLegsBuilder(int index) A 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.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`.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.The overall route polyline.The overall route polyline.Contains information about details along the 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.com.google.protobuf.DurationThe duration of travel through the route without taking traffic conditions into consideration.com.google.protobuf.Duration.BuilderThe 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.Additional information about the route.The viewport bounding box of the polyline.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.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 booleanmergeDuration(com.google.protobuf.Duration value) The length of time needed to navigate the route.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Text representations of properties of the `Route`.mergePolyline(Polyline value) The overall route polyline.Contains information about details along the polyline.mergeStaticDuration(com.google.protobuf.Duration value) The duration of travel through the route without taking traffic conditions into consideration.Additional information about the route.mergeViewport(Viewport value) The viewport bounding box of the polyline.removeLegs(int index) A collection of legs (path segments between waypoints) that make up the route.setDescription(String value) A description of the route.setDescriptionBytes(com.google.protobuf.ByteString value) A description of the route.setDistanceMeters(int value) The travel distance of the route, in meters.setDuration(com.google.protobuf.Duration value) The length of time needed to navigate the route.setDuration(com.google.protobuf.Duration.Builder builderForValue) The length of time needed to navigate the route.A collection of legs (path segments between waypoints) that make up the route.setLegs(int index, RouteLeg.Builder builderForValue) A collection of legs (path segments between waypoints) that make up the route.Text representations of properties of the `Route`.setLocalizedValues(Route.RouteLocalizedValues.Builder builderForValue) Text representations of properties of the `Route`.setOptimizedIntermediateWaypointIndex(int index, int value) 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.setPolyline(Polyline value) The overall route polyline.setPolyline(Polyline.Builder builderForValue) The overall route polyline.Contains information about details along the polyline.setPolylineDetails(PolylineDetails.Builder builderForValue) Contains information about details along the polyline.setRouteLabels(int index, RouteLabel value) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.setRouteLabelsValue(int index, int value) Labels for the `Route` that are useful to identify specific properties of the route to compare against others.setRouteToken(String value) 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.setRouteTokenBytes(com.google.protobuf.ByteString value) 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.setStaticDuration(com.google.protobuf.Duration value) The duration of travel through the route without taking traffic conditions into consideration.setStaticDuration(com.google.protobuf.Duration.Builder builderForValue) The duration of travel through the route without taking traffic conditions into consideration.Additional information about the route.setTravelAdvisory(RouteTravelAdvisory.Builder builderForValue) Additional information about the route.setViewport(Viewport value) The viewport bounding box of the polyline.setViewport(Viewport.Builder builderForValue) The viewport bounding box of the polyline.setWarnings(int index, String value) An array of warnings to show when displaying the route.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<Route.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Route.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Route.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Route.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Route.Builder>
-
mergeFrom
public Route.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Route.Builder>- Throws:
IOException
-
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.
-
setRouteLabels
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;- Parameters:
index- The index to set the value at.value- The routeLabels to set.- Returns:
- This builder for chaining.
-
addRouteLabels
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;- Parameters:
value- The routeLabels to add.- Returns:
- This builder for chaining.
-
addAllRouteLabels
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;- Parameters:
values- The routeLabels to add.- Returns:
- This builder for chaining.
-
clearRouteLabels
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;- Returns:
- This builder for chaining.
-
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.
-
setRouteLabelsValue
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;- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for routeLabels to set.- Returns:
- This builder for chaining.
-
addRouteLabelsValue
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;- Parameters:
value- The enum numeric value on the wire for routeLabels to add.- Returns:
- This builder for chaining.
-
addAllRouteLabelsValue
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;- Parameters:
values- The enum numeric values on the wire for routeLabels to add.- Returns:
- This builder for chaining.
-
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
-
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
-
setLegs
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; -
setLegs
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; -
addLegs
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; -
addLegs
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; -
addLegs
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; -
addLegs
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; -
addAllLegs
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; -
clearLegs
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; -
removeLegs
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; -
getLegsBuilder
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
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
-
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
-
addLegsBuilder
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; -
addLegsBuilder
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; -
getLegsBuilderList
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; -
getDistanceMeters
public int getDistanceMeters()The travel distance of the route, in meters.
int32 distance_meters = 2;- Specified by:
getDistanceMetersin interfaceRouteOrBuilder- Returns:
- The distanceMeters.
-
setDistanceMeters
The travel distance of the route, in meters.
int32 distance_meters = 2;- Parameters:
value- The distanceMeters to set.- Returns:
- This builder for chaining.
-
clearDistanceMeters
The travel distance of the route, in meters.
int32 distance_meters = 2;- Returns:
- This builder for chaining.
-
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.
-
setDuration
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; -
setDuration
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; -
mergeDuration
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; -
clearDuration
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; -
getDurationBuilder
public com.google.protobuf.Duration.Builder getDurationBuilder()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
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.
-
setStaticDuration
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4; -
setStaticDuration
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4; -
mergeStaticDuration
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4; -
clearStaticDuration
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4; -
getStaticDurationBuilder
public com.google.protobuf.Duration.Builder getStaticDurationBuilder()The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4; -
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.
-
setPolyline
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5; -
setPolyline
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5; -
mergePolyline
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5; -
clearPolyline
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5; -
getPolylineBuilder
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5; -
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.
-
setDescription
A description of the route.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
A description of the route.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
A description of the route.
string description = 6;- Parameters:
value- The bytes for description to set.- Returns:
- This builder for chaining.
-
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.
-
setWarnings
An array of warnings to show when displaying the route.
repeated string warnings = 7;- Parameters:
index- The index to set the value at.value- The warnings to set.- Returns:
- This builder for chaining.
-
addWarnings
An array of warnings to show when displaying the route.
repeated string warnings = 7;- Parameters:
value- The warnings to add.- Returns:
- This builder for chaining.
-
addAllWarnings
An array of warnings to show when displaying the route.
repeated string warnings = 7;- Parameters:
values- The warnings to add.- Returns:
- This builder for chaining.
-
clearWarnings
An array of warnings to show when displaying the route.
repeated string warnings = 7;- Returns:
- This builder for chaining.
-
addWarningsBytes
An array of warnings to show when displaying the route.
repeated string warnings = 7;- Parameters:
value- The bytes of the warnings to add.- Returns:
- This builder for chaining.
-
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.
-
setViewport
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8; -
setViewport
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8; -
mergeViewport
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8; -
clearViewport
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8; -
getViewportBuilder
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8; -
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.
-
setTravelAdvisory
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; -
setTravelAdvisory
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; -
mergeTravelAdvisory
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; -
clearTravelAdvisory
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; -
getTravelAdvisoryBuilder
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9; -
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.
-
setOptimizedIntermediateWaypointIndex
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;- Parameters:
index- The index to set the value at.value- The optimizedIntermediateWaypointIndex to set.- Returns:
- This builder for chaining.
-
addOptimizedIntermediateWaypointIndex
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;- Parameters:
value- The optimizedIntermediateWaypointIndex to add.- Returns:
- This builder for chaining.
-
addAllOptimizedIntermediateWaypointIndex
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;- Parameters:
values- The optimizedIntermediateWaypointIndex to add.- Returns:
- This builder for chaining.
-
clearOptimizedIntermediateWaypointIndex
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;- Returns:
- This builder for chaining.
-
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.
-
setLocalizedValues
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; -
setLocalizedValues
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; -
mergeLocalizedValues
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; -
clearLocalizedValues
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; -
getLocalizedValuesBuilder
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11; -
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.
-
setRouteToken
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;- Parameters:
value- The routeToken to set.- Returns:
- This builder for chaining.
-
clearRouteToken
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;- Returns:
- This builder for chaining.
-
setRouteTokenBytes
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;- Parameters:
value- The bytes for routeToken to set.- Returns:
- This builder for chaining.
-
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.
-
setPolylineDetails
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14; -
setPolylineDetails
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14; -
mergePolylineDetails
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14; -
clearPolylineDetails
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14; -
getPolylineDetailsBuilder
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14; -
getPolylineDetailsOrBuilder
Contains information about details along the polyline.
.google.maps.routing.v2.PolylineDetails polyline_details = 14;- Specified by:
getPolylineDetailsOrBuilderin interfaceRouteOrBuilder
-