Interface RouteMatrixElementOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      RouteMatrixElementCondition getCondition()
      Indicates whether the route was found or not.
      int getConditionValue()
      Indicates whether the route was found or not.
      int getDestinationIndex()
      Zero-based index of the destination in the request.
      int getDistanceMeters()
      The travel distance of the route, in meters.
      com.google.protobuf.Duration getDuration()
      The length of time needed to navigate the route.
      com.google.protobuf.DurationOrBuilder getDurationOrBuilder()
      The length of time needed to navigate the route.
      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.
      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.
      RouteMatrixElement.LocalizedValues getLocalizedValues()
      Text representations of properties of the `RouteMatrixElement`.
      RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
      Text representations of properties of the `RouteMatrixElement`.
      int getOriginIndex()
      Zero-based index of the origin in the request.
      com.google.protobuf.Duration getStaticDuration()
      The duration of traveling through the route without taking traffic conditions into consideration.
      com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
      The duration of traveling through the route without taking traffic conditions into consideration.
      com.google.rpc.Status getStatus()
      Error status code for this element.
      com.google.rpc.StatusOrBuilder getStatusOrBuilder()
      Error status code for this element.
      RouteTravelAdvisory getTravelAdvisory()
      Additional information about the route.
      RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
      Additional information about the route.
      boolean hasDestinationIndex()
      Zero-based index of the destination in the request.
      boolean hasDuration()
      The length of time needed to navigate the route.
      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.
      boolean hasLocalizedValues()
      Text representations of properties of the `RouteMatrixElement`.
      boolean hasOriginIndex()
      Zero-based index of the origin in the request.
      boolean hasStaticDuration()
      The duration of traveling through the route without taking traffic conditions into consideration.
      boolean hasStatus()
      Error status code for this element.
      boolean hasTravelAdvisory()
      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 Detail

      • 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

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

        com.google.rpc.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

        RouteMatrixElementCondition 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

        RouteMatrixElement.LocalizedValues 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;