Class Route

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.maps.routing.v2.Route
All Implemented Interfaces:
RouteOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class Route extends com.google.protobuf.GeneratedMessage implements RouteOrBuilder
 Contains a route, which consists of a series of connected road segments
 that join beginning, ending, and intermediate waypoints.
 
Protobuf type google.maps.routing.v2.Route
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Contains a route, which consists of a series of connected road segments that join beginning, ending, and intermediate waypoints.
    static final class 
    Text representations of certain properties.
    static interface 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    static Route
     
     
    A description of the route.
    com.google.protobuf.ByteString
    A description of the route.
    static final com.google.protobuf.Descriptors.Descriptor
     
    int
    The travel distance of the route, in meters.
    com.google.protobuf.Duration
    The length of time needed to navigate the route.
    com.google.protobuf.DurationOrBuilder
    The length of time needed to navigate the route.
    getLegs(int index)
    A collection of legs (path segments between waypoints) that make up the route.
    int
    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.
    getLegsOrBuilder(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.
    Text representations of properties of the `Route`.
    Text representations of properties of the `Route`.
    int
    If you set [`optimize_waypoint_order`][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints.
    int
    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.
    If you set [`optimize_waypoint_order`][google.maps.routing.v2.ComputeRoutesRequest.optimize_waypoint_order] to true, this field contains the optimized ordering of intermediate waypoints.
    com.google.protobuf.Parser<Route>
     
    The overall route polyline.
    Contains information about details along the polyline.
    Contains information about details along the polyline.
    The overall route polyline.
    getRouteLabels(int index)
    Labels for the `Route` that are useful to identify specific properties of the route to compare against others.
    int
    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.
    int
    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.ByteString
    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.
    int
     
    com.google.protobuf.Duration
    The duration of travel through the route without taking traffic conditions into consideration.
    com.google.protobuf.DurationOrBuilder
    The duration of travel through the route without taking traffic conditions into consideration.
    Additional information about the route.
    Additional information about the route.
    The viewport bounding box of the polyline.
    The viewport bounding box of the polyline.
    getWarnings(int index)
    An array of warnings to show when displaying the route.
    com.google.protobuf.ByteString
    getWarningsBytes(int index)
    An array of warnings to show when displaying the route.
    int
    An array of warnings to show when displaying the route.
    com.google.protobuf.ProtocolStringList
    An array of warnings to show when displaying the route.
    boolean
    The length of time needed to navigate the route.
    int
     
    boolean
    Text representations of properties of the `Route`.
    boolean
    The overall route polyline.
    boolean
    Contains information about details along the polyline.
    boolean
    The duration of travel through the route without taking traffic conditions into consideration.
    boolean
    Additional information about the route.
    boolean
    The viewport bounding box of the polyline.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    newBuilder(Route prototype)
     
     
    protected Route.Builder
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
    static Route
     
    static Route
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Route
    parseFrom(byte[] data)
     
    static Route
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Route
    parseFrom(com.google.protobuf.ByteString data)
     
    static Route
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Route
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    static Route
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Route
     
    static Route
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static Route
     
    static Route
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Route>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

    • ROUTE_LABELS_FIELD_NUMBER

      public static final int ROUTE_LABELS_FIELD_NUMBER
      See Also:
    • LEGS_FIELD_NUMBER

      public static final int LEGS_FIELD_NUMBER
      See Also:
    • DISTANCE_METERS_FIELD_NUMBER

      public static final int DISTANCE_METERS_FIELD_NUMBER
      See Also:
    • DURATION_FIELD_NUMBER

      public static final int DURATION_FIELD_NUMBER
      See Also:
    • STATIC_DURATION_FIELD_NUMBER

      public static final int STATIC_DURATION_FIELD_NUMBER
      See Also:
    • POLYLINE_FIELD_NUMBER

      public static final int POLYLINE_FIELD_NUMBER
      See Also:
    • DESCRIPTION_FIELD_NUMBER

      public static final int DESCRIPTION_FIELD_NUMBER
      See Also:
    • WARNINGS_FIELD_NUMBER

      public static final int WARNINGS_FIELD_NUMBER
      See Also:
    • VIEWPORT_FIELD_NUMBER

      public static final int VIEWPORT_FIELD_NUMBER
      See Also:
    • TRAVEL_ADVISORY_FIELD_NUMBER

      public static final int TRAVEL_ADVISORY_FIELD_NUMBER
      See Also:
    • OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER

      public static final int OPTIMIZED_INTERMEDIATE_WAYPOINT_INDEX_FIELD_NUMBER
      See Also:
    • LOCALIZED_VALUES_FIELD_NUMBER

      public static final int LOCALIZED_VALUES_FIELD_NUMBER
      See Also:
    • ROUTE_TOKEN_FIELD_NUMBER

      public static final int ROUTE_TOKEN_FIELD_NUMBER
      See Also:
    • POLYLINE_DETAILS_FIELD_NUMBER

      public static final int POLYLINE_DETAILS_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • 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:
      getRouteLabelsList in interface RouteOrBuilder
      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:
      getRouteLabelsCount in interface RouteOrBuilder
      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:
      getRouteLabels in interface RouteOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The routeLabels at the given index.
    • getRouteLabelsValueList

      public List<Integer> getRouteLabelsValueList()
       Labels for the `Route` that are useful to identify specific properties
       of the route to compare against others.
       
      repeated .google.maps.routing.v2.RouteLabel route_labels = 13;
      Specified by:
      getRouteLabelsValueList in interface RouteOrBuilder
      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:
      getRouteLabelsValue in interface RouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of routeLabels at the given index.
    • getLegsList

      public List<RouteLeg> getLegsList()
       A collection of legs (path segments between waypoints) that make up the
       route. Each leg corresponds to the trip between two non-`via`
       [`Waypoints`][google.maps.routing.v2.Waypoint]. For example, a route with
       no intermediate waypoints has only one leg. A route that includes one
       non-`via` intermediate waypoint has two legs. A route that includes one
       `via` intermediate waypoint has one leg. The order of the legs matches the
       order of waypoints from `origin` to `intermediates` to `destination`.
       
      repeated .google.maps.routing.v2.RouteLeg legs = 1;
      Specified by:
      getLegsList in interface RouteOrBuilder
    • 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:
      getLegsOrBuilderList in interface RouteOrBuilder
    • 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:
      getLegsCount in interface RouteOrBuilder
    • 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:
      getLegs in interface RouteOrBuilder
    • 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:
      getLegsOrBuilder in interface RouteOrBuilder
    • getDistanceMeters

      public int getDistanceMeters()
       The travel distance of the route, in meters.
       
      int32 distance_meters = 2;
      Specified by:
      getDistanceMeters in interface RouteOrBuilder
      Returns:
      The distanceMeters.
    • hasDuration

      public boolean hasDuration()
       The length of time needed to navigate the route. If you set the
       `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
       `static_duration`. If you set the `routing_preference` to either
       `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
       taking traffic conditions into account.
       
      .google.protobuf.Duration duration = 3;
      Specified by:
      hasDuration in interface RouteOrBuilder
      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:
      getDuration in interface RouteOrBuilder
      Returns:
      The duration.
    • getDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       The length of time needed to navigate the route. If you set the
       `routing_preference` to `TRAFFIC_UNAWARE`, then this value is the same as
       `static_duration`. If you set the `routing_preference` to either
       `TRAFFIC_AWARE` or `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated
       taking traffic conditions into account.
       
      .google.protobuf.Duration duration = 3;
      Specified by:
      getDurationOrBuilder in interface RouteOrBuilder
    • 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:
      hasStaticDuration in interface RouteOrBuilder
      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:
      getStaticDuration in interface RouteOrBuilder
      Returns:
      The staticDuration.
    • getStaticDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
       The duration of travel through the route without taking traffic
       conditions into consideration.
       
      .google.protobuf.Duration static_duration = 4;
      Specified by:
      getStaticDurationOrBuilder in interface RouteOrBuilder
    • 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:
      hasPolyline in interface RouteOrBuilder
      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:
      getPolyline in interface RouteOrBuilder
      Returns:
      The polyline.
    • getPolylineOrBuilder

      public PolylineOrBuilder getPolylineOrBuilder()
       The overall route polyline. This polyline is the combined polyline of
       all `legs`.
       
      .google.maps.routing.v2.Polyline polyline = 5;
      Specified by:
      getPolylineOrBuilder in interface RouteOrBuilder
    • getDescription

      public String getDescription()
       A description of the route.
       
      string description = 6;
      Specified by:
      getDescription in interface RouteOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A description of the route.
       
      string description = 6;
      Specified by:
      getDescriptionBytes in interface RouteOrBuilder
      Returns:
      The bytes for description.
    • getWarningsList

      public com.google.protobuf.ProtocolStringList getWarningsList()
       An array of warnings to show when displaying the route.
       
      repeated string warnings = 7;
      Specified by:
      getWarningsList in interface RouteOrBuilder
      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:
      getWarningsCount in interface RouteOrBuilder
      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:
      getWarnings in interface RouteOrBuilder
      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:
      getWarningsBytes in interface RouteOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the warnings at the given index.
    • hasViewport

      public boolean hasViewport()
       The viewport bounding box of the polyline.
       
      .google.geo.type.Viewport viewport = 8;
      Specified by:
      hasViewport in interface RouteOrBuilder
      Returns:
      Whether the viewport field is set.
    • getViewport

      public Viewport getViewport()
       The viewport bounding box of the polyline.
       
      .google.geo.type.Viewport viewport = 8;
      Specified by:
      getViewport in interface RouteOrBuilder
      Returns:
      The viewport.
    • getViewportOrBuilder

      public ViewportOrBuilder getViewportOrBuilder()
       The viewport bounding box of the polyline.
       
      .google.geo.type.Viewport viewport = 8;
      Specified by:
      getViewportOrBuilder in interface RouteOrBuilder
    • hasTravelAdvisory

      public boolean hasTravelAdvisory()
       Additional information about the route.
       
      .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
      Specified by:
      hasTravelAdvisory in interface RouteOrBuilder
      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:
      getTravelAdvisory in interface RouteOrBuilder
      Returns:
      The travelAdvisory.
    • getTravelAdvisoryOrBuilder

      public RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
       Additional information about the route.
       
      .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 9;
      Specified by:
      getTravelAdvisoryOrBuilder in interface RouteOrBuilder
    • 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:
      getOptimizedIntermediateWaypointIndexList in interface RouteOrBuilder
      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:
      getOptimizedIntermediateWaypointIndexCount in interface RouteOrBuilder
      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:
      getOptimizedIntermediateWaypointIndex in interface RouteOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The optimizedIntermediateWaypointIndex at the given index.
    • hasLocalizedValues

      public boolean hasLocalizedValues()
       Text representations of properties of the `Route`.
       
      .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
      Specified by:
      hasLocalizedValues in interface RouteOrBuilder
      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:
      getLocalizedValues in interface RouteOrBuilder
      Returns:
      The localizedValues.
    • getLocalizedValuesOrBuilder

      public Route.RouteLocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
       Text representations of properties of the `Route`.
       
      .google.maps.routing.v2.Route.RouteLocalizedValues localized_values = 11;
      Specified by:
      getLocalizedValuesOrBuilder in interface RouteOrBuilder
    • getRouteToken

      public String 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:
      getRouteToken in interface RouteOrBuilder
      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:
      getRouteTokenBytes in interface RouteOrBuilder
      Returns:
      The bytes for routeToken.
    • hasPolylineDetails

      public boolean hasPolylineDetails()
       Contains information about details along the polyline.
       
      .google.maps.routing.v2.PolylineDetails polyline_details = 14;
      Specified by:
      hasPolylineDetails in interface RouteOrBuilder
      Returns:
      Whether the polylineDetails field is set.
    • getPolylineDetails

      public PolylineDetails getPolylineDetails()
       Contains information about details along the polyline.
       
      .google.maps.routing.v2.PolylineDetails polyline_details = 14;
      Specified by:
      getPolylineDetails in interface RouteOrBuilder
      Returns:
      The polylineDetails.
    • getPolylineDetailsOrBuilder

      public PolylineDetailsOrBuilder getPolylineDetailsOrBuilder()
       Contains information about details along the polyline.
       
      .google.maps.routing.v2.PolylineDetails polyline_details = 14;
      Specified by:
      getPolylineDetailsOrBuilder in interface RouteOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Route parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Route parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Route parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Route parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Route parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Route parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Route parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Route parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Route parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Route parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Route parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Route parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public Route.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Route.Builder newBuilder()
    • newBuilder

      public static Route.Builder newBuilder(Route prototype)
    • toBuilder

      public Route.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Route.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Route getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Route> parser()
    • getParserForType

      public com.google.protobuf.Parser<Route> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Route getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder