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.GeneratedMessageV3.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.GeneratedMessageV3.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 typegoogle.maps.routing.v2.Route
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Route.BuilderaddAllLegs(Iterable<? extends RouteLeg> values)A collection of legs (path segments between waypoints) that make up the route.Route.BuilderaddAllOptimizedIntermediateWaypointIndex(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.Route.BuilderaddAllRouteLabels(Iterable<? extends RouteLabel> values)Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Route.BuilderaddAllRouteLabelsValue(Iterable<Integer> values)Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Route.BuilderaddAllWarnings(Iterable<String> values)An array of warnings to show when displaying the route.Route.BuilderaddLegs(int index, RouteLeg value)A collection of legs (path segments between waypoints) that make up the route.Route.BuilderaddLegs(int index, RouteLeg.Builder builderForValue)A collection of legs (path segments between waypoints) that make up the route.Route.BuilderaddLegs(RouteLeg value)A collection of legs (path segments between waypoints) that make up the route.Route.BuilderaddLegs(RouteLeg.Builder builderForValue)A collection of legs (path segments between waypoints) that make up the route.RouteLeg.BuilderaddLegsBuilder()A collection of legs (path segments between waypoints) that make up the route.RouteLeg.BuilderaddLegsBuilder(int index)A collection of legs (path segments between waypoints) that make up the route.Route.BuilderaddOptimizedIntermediateWaypointIndex(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.Route.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Route.BuilderaddRouteLabels(RouteLabel value)Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Route.BuilderaddRouteLabelsValue(int value)Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Route.BuilderaddWarnings(String value)An array of warnings to show when displaying the route.Route.BuilderaddWarningsBytes(com.google.protobuf.ByteString value)An array of warnings to show when displaying the route.Routebuild()RoutebuildPartial()Route.Builderclear()Route.BuilderclearDescription()A description of the route.Route.BuilderclearDistanceMeters()The travel distance of the route, in meters.Route.BuilderclearDuration()The length of time needed to navigate the route.Route.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)Route.BuilderclearLegs()A collection of legs (path segments between waypoints) that make up the route.Route.BuilderclearLocalizedValues()Text representations of properties of the `Route`.Route.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)Route.BuilderclearOptimizedIntermediateWaypointIndex()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.Route.BuilderclearPolyline()The overall route polyline.Route.BuilderclearRouteLabels()Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Route.BuilderclearRouteToken()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.Route.BuilderclearStaticDuration()The duration of travel through the route without taking traffic conditions into consideration.Route.BuilderclearTravelAdvisory()Additional information about the route.Route.BuilderclearViewport()The viewport bounding box of the polyline.Route.BuilderclearWarnings()An array of warnings to show when displaying the route.Route.Builderclone()RoutegetDefaultInstanceForType()StringgetDescription()A description of the route.com.google.protobuf.ByteStringgetDescriptionBytes()A description of the route.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()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.Duration.BuildergetDurationBuilder()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.RouteLeg.BuildergetLegsBuilder(int index)A collection of legs (path segments between waypoints) that make up the route.List<RouteLeg.Builder>getLegsBuilderList()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.RouteLocalizedValues.BuildergetLocalizedValuesBuilder()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.PolylinegetPolyline()The overall route polyline.Polyline.BuildergetPolylineBuilder()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.com.google.protobuf.DurationgetStaticDuration()The duration of travel through the route without taking traffic conditions into consideration.com.google.protobuf.Duration.BuildergetStaticDurationBuilder()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.RouteTravelAdvisory.BuildergetTravelAdvisoryBuilder()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.Viewport.BuildergetViewportBuilder()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.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()Route.BuildermergeDuration(com.google.protobuf.Duration value)The length of time needed to navigate the route.Route.BuildermergeFrom(Route other)Route.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)Route.BuildermergeFrom(com.google.protobuf.Message other)Route.BuildermergeLocalizedValues(Route.RouteLocalizedValues value)Text representations of properties of the `Route`.Route.BuildermergePolyline(Polyline value)The overall route polyline.Route.BuildermergeStaticDuration(com.google.protobuf.Duration value)The duration of travel through the route without taking traffic conditions into consideration.Route.BuildermergeTravelAdvisory(RouteTravelAdvisory value)Additional information about the route.Route.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Route.BuildermergeViewport(com.google.geo.type.Viewport value)The viewport bounding box of the polyline.Route.BuilderremoveLegs(int index)A collection of legs (path segments between waypoints) that make up the route.Route.BuildersetDescription(String value)A description of the route.Route.BuildersetDescriptionBytes(com.google.protobuf.ByteString value)A description of the route.Route.BuildersetDistanceMeters(int value)The travel distance of the route, in meters.Route.BuildersetDuration(com.google.protobuf.Duration value)The length of time needed to navigate the route.Route.BuildersetDuration(com.google.protobuf.Duration.Builder builderForValue)The length of time needed to navigate the route.Route.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)Route.BuildersetLegs(int index, RouteLeg value)A collection of legs (path segments between waypoints) that make up the route.Route.BuildersetLegs(int index, RouteLeg.Builder builderForValue)A collection of legs (path segments between waypoints) that make up the route.Route.BuildersetLocalizedValues(Route.RouteLocalizedValues value)Text representations of properties of the `Route`.Route.BuildersetLocalizedValues(Route.RouteLocalizedValues.Builder builderForValue)Text representations of properties of the `Route`.Route.BuildersetOptimizedIntermediateWaypointIndex(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.Route.BuildersetPolyline(Polyline value)The overall route polyline.Route.BuildersetPolyline(Polyline.Builder builderForValue)The overall route polyline.Route.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)Route.BuildersetRouteLabels(int index, RouteLabel value)Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Route.BuildersetRouteLabelsValue(int index, int value)Labels for the `Route` that are useful to identify specific properties of the route to compare against others.Route.BuildersetRouteToken(String value)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.Route.BuildersetRouteTokenBytes(com.google.protobuf.ByteString value)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.Route.BuildersetStaticDuration(com.google.protobuf.Duration value)The duration of travel through the route without taking traffic conditions into consideration.Route.BuildersetStaticDuration(com.google.protobuf.Duration.Builder builderForValue)The duration of travel through the route without taking traffic conditions into consideration.Route.BuildersetTravelAdvisory(RouteTravelAdvisory value)Additional information about the route.Route.BuildersetTravelAdvisory(RouteTravelAdvisory.Builder builderForValue)Additional information about the route.Route.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)Route.BuildersetViewport(com.google.geo.type.Viewport value)The viewport bounding box of the polyline.Route.BuildersetViewport(com.google.geo.type.Viewport.Builder builderForValue)The viewport bounding box of the polyline.Route.BuildersetWarnings(int index, String value)An array of warnings to show when displaying the route.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
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.Builder<Route.Builder>
-
clear
public Route.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<Route.Builder>
-
getDefaultInstanceForType
public Route getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public Route build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public Route buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public Route.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
setField
public Route.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
clearField
public Route.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
clearOneof
public Route.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
setRepeatedField
public Route.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
addRepeatedField
public Route.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
mergeFrom
public Route.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Route.Builder>
-
mergeFrom
public Route.Builder mergeFrom(Route other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
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.
-
setRouteLabels
public Route.Builder setRouteLabels(int index, RouteLabel value)
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
public Route.Builder addRouteLabels(RouteLabel value)
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
public Route.Builder addAllRouteLabels(Iterable<? extends RouteLabel> values)
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
public Route.Builder 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
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.
-
setRouteLabelsValue
public Route.Builder setRouteLabelsValue(int index, int value)
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
public Route.Builder addRouteLabelsValue(int value)
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
public Route.Builder addAllRouteLabelsValue(Iterable<Integer> values)
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
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
-
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
-
setLegs
public Route.Builder setLegs(int index, RouteLeg value)
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
public Route.Builder setLegs(int index, RouteLeg.Builder builderForValue)
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
public Route.Builder addLegs(RouteLeg value)
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
public Route.Builder addLegs(int index, RouteLeg value)
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
public Route.Builder addLegs(RouteLeg.Builder builderForValue)
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
public Route.Builder addLegs(int index, RouteLeg.Builder builderForValue)
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
public Route.Builder addAllLegs(Iterable<? extends RouteLeg> values)
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
public Route.Builder 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
public Route.Builder removeLegs(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;
-
getLegsBuilder
public RouteLeg.Builder getLegsBuilder(int index)
A collection of legs (path segments between waypoints) that make up the route. Each leg corresponds to the trip between two non-`via` [Waypoints][google.maps.routing.v2.Waypoint]. For example, a route with no intermediate waypoints has only one leg. A route that includes one non-`via` intermediate waypoint has two legs. A route that includes one `via` intermediate waypoint has one leg. The order of the legs matches the order of waypoints from `origin` to `intermediates` to `destination`.
repeated .google.maps.routing.v2.RouteLeg legs = 1;
-
getLegsOrBuilder
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
-
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
-
addLegsBuilder
public RouteLeg.Builder 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
public RouteLeg.Builder addLegsBuilder(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;
-
getLegsBuilderList
public List<RouteLeg.Builder> 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
public Route.Builder setDistanceMeters(int value)
The travel distance of the route, in meters.
int32 distance_meters = 2;- Parameters:
value- The distanceMeters to set.- Returns:
- This builder for chaining.
-
clearDistanceMeters
public Route.Builder 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
public Route.Builder setDuration(com.google.protobuf.Duration value)
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
public Route.Builder setDuration(com.google.protobuf.Duration.Builder builderForValue)
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
public Route.Builder mergeDuration(com.google.protobuf.Duration value)
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
public Route.Builder 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
public Route.Builder setStaticDuration(com.google.protobuf.Duration value)
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;
-
setStaticDuration
public Route.Builder setStaticDuration(com.google.protobuf.Duration.Builder builderForValue)
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;
-
mergeStaticDuration
public Route.Builder mergeStaticDuration(com.google.protobuf.Duration value)
The duration of travel through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 4;
-
clearStaticDuration
public Route.Builder 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
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.
-
setPolyline
public Route.Builder setPolyline(Polyline value)
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
-
setPolyline
public Route.Builder setPolyline(Polyline.Builder builderForValue)
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
-
mergePolyline
public Route.Builder mergePolyline(Polyline value)
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
-
clearPolyline
public Route.Builder clearPolyline()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
-
getPolylineBuilder
public Polyline.Builder getPolylineBuilder()
The overall route polyline. This polyline is the combined polyline of all `legs`.
.google.maps.routing.v2.Polyline polyline = 5;
-
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.
-
setDescription
public Route.Builder setDescription(String value)
A description of the route.
string description = 6;- Parameters:
value- The description to set.- Returns:
- This builder for chaining.
-
clearDescription
public Route.Builder clearDescription()
A description of the route.
string description = 6;- Returns:
- This builder for chaining.
-
setDescriptionBytes
public Route.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
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
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.
-
setWarnings
public Route.Builder setWarnings(int index, String value)
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
public Route.Builder addWarnings(String value)
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
public Route.Builder addAllWarnings(Iterable<String> values)
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
public Route.Builder clearWarnings()
An array of warnings to show when displaying the route.
repeated string warnings = 7;- Returns:
- This builder for chaining.
-
addWarningsBytes
public Route.Builder addWarningsBytes(com.google.protobuf.ByteString value)
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
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.
-
setViewport
public Route.Builder setViewport(com.google.geo.type.Viewport value)
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
-
setViewport
public Route.Builder setViewport(com.google.geo.type.Viewport.Builder builderForValue)
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
-
mergeViewport
public Route.Builder mergeViewport(com.google.geo.type.Viewport value)
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
-
clearViewport
public Route.Builder clearViewport()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
-
getViewportBuilder
public com.google.geo.type.Viewport.Builder getViewportBuilder()
The viewport bounding box of the polyline.
.google.geo.type.Viewport viewport = 8;
-
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.
-
setTravelAdvisory
public Route.Builder setTravelAdvisory(RouteTravelAdvisory value)
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
-
setTravelAdvisory
public Route.Builder setTravelAdvisory(RouteTravelAdvisory.Builder builderForValue)
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
-
mergeTravelAdvisory
public Route.Builder mergeTravelAdvisory(RouteTravelAdvisory value)
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
-
clearTravelAdvisory
public Route.Builder clearTravelAdvisory()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
-
getTravelAdvisoryBuilder
public RouteTravelAdvisory.Builder getTravelAdvisoryBuilder()
Additional information about the route.
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
-
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.
-
setOptimizedIntermediateWaypointIndex
public Route.Builder 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. 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
public Route.Builder 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. 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
public Route.Builder 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. 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
public Route.Builder 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
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.
-
setLocalizedValues
public Route.Builder setLocalizedValues(Route.RouteLocalizedValues value)
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
-
setLocalizedValues
public Route.Builder setLocalizedValues(Route.RouteLocalizedValues.Builder builderForValue)
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
-
mergeLocalizedValues
public Route.Builder mergeLocalizedValues(Route.RouteLocalizedValues value)
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
-
clearLocalizedValues
public Route.Builder clearLocalizedValues()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
-
getLocalizedValuesBuilder
public Route.RouteLocalizedValues.Builder getLocalizedValuesBuilder()
Text representations of properties of the `Route`.
.google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
-
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.
-
setRouteToken
public Route.Builder setRouteToken(String value)
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;- Parameters:
value- The routeToken to set.- Returns:
- This builder for chaining.
-
clearRouteToken
public Route.Builder clearRouteToken()
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;- Returns:
- This builder for chaining.
-
setRouteTokenBytes
public Route.Builder setRouteTokenBytes(com.google.protobuf.ByteString value)
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;- Parameters:
value- The bytes for routeToken to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final Route.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
mergeUnknownFields
public final Route.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<Route.Builder>
-
-