Interface RouteMatrixElementOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RouteMatrixElement, RouteMatrixElement.Builder

@Generated public interface RouteMatrixElementOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Indicates whether the route was found or not.
    int
    Indicates whether the route was found or not.
    int
    Zero-based index of the destination in the request.
    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.
    In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.
    In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.
    Text representations of properties of the `RouteMatrixElement`.
    Text representations of properties of the `RouteMatrixElement`.
    int
    Zero-based index of the origin in the request.
    com.google.protobuf.Duration
    The duration of traveling through the route without taking traffic conditions into consideration.
    com.google.protobuf.DurationOrBuilder
    The duration of traveling through the route without taking traffic conditions into consideration.
    Error status code for this element.
    Error status code for this element.
    Additional information about the route.
    Additional information about the route.
    boolean
    Zero-based index of the destination in the request.
    boolean
    The length of time needed to navigate the route.
    boolean
    In some cases when the server is not able to compute the route with the given preferences for this particular origin/destination pair, it may fall back to using a different mode of computation.
    boolean
    Text representations of properties of the `RouteMatrixElement`.
    boolean
    Zero-based index of the origin in the request.
    boolean
    The duration of traveling through the route without taking traffic conditions into consideration.
    boolean
    Error status code for this element.
    boolean
    Additional information about the route.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

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

    • hasOriginIndex

      boolean hasOriginIndex()
       Zero-based index of the origin in the request.
       
      optional int32 origin_index = 1;
      Returns:
      Whether the originIndex field is set.
    • getOriginIndex

      int getOriginIndex()
       Zero-based index of the origin in the request.
       
      optional int32 origin_index = 1;
      Returns:
      The originIndex.
    • hasDestinationIndex

      boolean hasDestinationIndex()
       Zero-based index of the destination in the request.
       
      optional int32 destination_index = 2;
      Returns:
      Whether the destinationIndex field is set.
    • getDestinationIndex

      int getDestinationIndex()
       Zero-based index of the destination in the request.
       
      optional int32 destination_index = 2;
      Returns:
      The destinationIndex.
    • hasStatus

      boolean hasStatus()
       Error status code for this element.
       
      .google.rpc.Status status = 3;
      Returns:
      Whether the status field is set.
    • getStatus

      Status getStatus()
       Error status code for this element.
       
      .google.rpc.Status status = 3;
      Returns:
      The status.
    • getStatusOrBuilder

      StatusOrBuilder getStatusOrBuilder()
       Error status code for this element.
       
      .google.rpc.Status status = 3;
    • getConditionValue

      int getConditionValue()
       Indicates whether the route was found or not. Independent of status.
       
      .google.maps.routing.v2.RouteMatrixElementCondition condition = 9;
      Returns:
      The enum numeric value on the wire for condition.
    • getCondition

       Indicates whether the route was found or not. Independent of status.
       
      .google.maps.routing.v2.RouteMatrixElementCondition condition = 9;
      Returns:
      The condition.
    • getDistanceMeters

      int getDistanceMeters()
       The travel distance of the route, in meters.
       
      int32 distance_meters = 4;
      Returns:
      The distanceMeters.
    • hasDuration

      boolean hasDuration()
       The length of time needed to navigate the route. If you set the
       [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.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 = 5;
      Returns:
      Whether the duration field is set.
    • getDuration

      com.google.protobuf.Duration getDuration()
       The length of time needed to navigate the route. If you set the
       [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.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 = 5;
      Returns:
      The duration.
    • getDurationOrBuilder

      com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
       The length of time needed to navigate the route. If you set the
       [routing_preference][google.maps.routing.v2.ComputeRouteMatrixRequest.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 = 5;
    • hasStaticDuration

      boolean hasStaticDuration()
       The duration of traveling through the route without taking traffic
       conditions into consideration.
       
      .google.protobuf.Duration static_duration = 6;
      Returns:
      Whether the staticDuration field is set.
    • getStaticDuration

      com.google.protobuf.Duration getStaticDuration()
       The duration of traveling through the route without taking traffic
       conditions into consideration.
       
      .google.protobuf.Duration static_duration = 6;
      Returns:
      The staticDuration.
    • getStaticDurationOrBuilder

      com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
       The duration of traveling through the route without taking traffic
       conditions into consideration.
       
      .google.protobuf.Duration static_duration = 6;
    • hasTravelAdvisory

      boolean hasTravelAdvisory()
       Additional information about the route. For example: restriction
       information and toll information
       
      .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
      Returns:
      Whether the travelAdvisory field is set.
    • getTravelAdvisory

      RouteTravelAdvisory getTravelAdvisory()
       Additional information about the route. For example: restriction
       information and toll information
       
      .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
      Returns:
      The travelAdvisory.
    • getTravelAdvisoryOrBuilder

      RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
       Additional information about the route. For example: restriction
       information and toll information
       
      .google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;
    • hasFallbackInfo

      boolean hasFallbackInfo()
       In some cases when the server is not able to compute the route with the
       given preferences for this particular origin/destination pair, it may
       fall back to using a different mode of computation. When fallback mode is
       used, this field contains detailed information about the fallback response.
       Otherwise this field is unset.
       
      .google.maps.routing.v2.FallbackInfo fallback_info = 8;
      Returns:
      Whether the fallbackInfo field is set.
    • getFallbackInfo

      FallbackInfo getFallbackInfo()
       In some cases when the server is not able to compute the route with the
       given preferences for this particular origin/destination pair, it may
       fall back to using a different mode of computation. When fallback mode is
       used, this field contains detailed information about the fallback response.
       Otherwise this field is unset.
       
      .google.maps.routing.v2.FallbackInfo fallback_info = 8;
      Returns:
      The fallbackInfo.
    • getFallbackInfoOrBuilder

      FallbackInfoOrBuilder getFallbackInfoOrBuilder()
       In some cases when the server is not able to compute the route with the
       given preferences for this particular origin/destination pair, it may
       fall back to using a different mode of computation. When fallback mode is
       used, this field contains detailed information about the fallback response.
       Otherwise this field is unset.
       
      .google.maps.routing.v2.FallbackInfo fallback_info = 8;
    • hasLocalizedValues

      boolean hasLocalizedValues()
       Text representations of properties of the `RouteMatrixElement`.
       
      .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
      Returns:
      Whether the localizedValues field is set.
    • getLocalizedValues

       Text representations of properties of the `RouteMatrixElement`.
       
      .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;
      Returns:
      The localizedValues.
    • getLocalizedValuesOrBuilder

      RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
       Text representations of properties of the `RouteMatrixElement`.
       
      .google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;