Added a RouteMatrixElementCondition enum for RouteMatrixElement.

PiperOrigin-RevId: 322181375
This commit is contained in:
Google APIs 2020-07-20 11:03:03 -07:00 committed by Copybara-Service
parent 4ceb9b6ff4
commit 9ecb768fc3
1 changed files with 17 additions and 0 deletions

View File

@ -42,6 +42,9 @@ message RouteMatrixElement {
// Error status code for this element.
google.rpc.Status status = 3;
// Indicates whether the route was found or not. Independent of status.
RouteMatrixElementCondition condition = 9;
// The travel distance of the route, in meters.
int32 distance_meters = 4;
@ -67,3 +70,17 @@ message RouteMatrixElement {
// Otherwise this field is unset.
FallbackInfo fallback_info = 8;
}
// The condition of the route being returned.
enum RouteMatrixElementCondition {
// Not used.
ROUTE_MATRIX_ELEMENT_CONDITION_UNSPECIFIED = 0;
// A route was found, and the corresponding information was filled out for the
// element.
ROUTE_EXISTS = 1;
// No route could be found. Fields containing route information, such as
// distance_meters or duration, will not be filled out in the element.
ROUTE_NOT_FOUND = 2;
}