public interface RouteMatrixElementOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and 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.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasOriginIndex()
Zero-based index of the origin in the request.
optional int32 origin_index = 1;int getOriginIndex()
Zero-based index of the origin in the request.
optional int32 origin_index = 1;boolean hasDestinationIndex()
Zero-based index of the destination in the request.
optional int32 destination_index = 2;int getDestinationIndex()
Zero-based index of the destination in the request.
optional int32 destination_index = 2;boolean hasStatus()
Error status code for this element.
.google.rpc.Status status = 3;com.google.rpc.Status getStatus()
Error status code for this element.
.google.rpc.Status status = 3;com.google.rpc.StatusOrBuilder getStatusOrBuilder()
Error status code for this element.
.google.rpc.Status status = 3;int getConditionValue()
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;RouteMatrixElementCondition getCondition()
Indicates whether the route was found or not. Independent of status.
.google.maps.routing.v2.RouteMatrixElementCondition condition = 9;int getDistanceMeters()
The travel distance of the route, in meters.
int32 distance_meters = 4;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;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;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;boolean hasStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;com.google.protobuf.Duration getStaticDuration()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;com.google.protobuf.DurationOrBuilder getStaticDurationOrBuilder()
The duration of traveling through the route without taking traffic conditions into consideration.
.google.protobuf.Duration static_duration = 6;boolean hasTravelAdvisory()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;RouteTravelAdvisory getTravelAdvisory()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;RouteTravelAdvisoryOrBuilder getTravelAdvisoryOrBuilder()
Additional information about the route. For example: restriction information and toll information
.google.maps.routing.v2.RouteTravelAdvisory travel_advisory = 7;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;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;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;boolean hasLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;RouteMatrixElement.LocalizedValues getLocalizedValues()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;RouteMatrixElement.LocalizedValuesOrBuilder getLocalizedValuesOrBuilder()
Text representations of properties of the `RouteMatrixElement`.
.google.maps.routing.v2.RouteMatrixElement.LocalizedValues localized_values = 10;Copyright © 2025 Google LLC. All rights reserved.