compute_routes_response.proto 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.maps.routes.v1;
  16. import "google/maps/routes/v1/fallback_info.proto";
  17. import "google/maps/routes/v1/route.proto";
  18. option cc_enable_arenas = true;
  19. option csharp_namespace = "Google.Maps.Routes.V1";
  20. option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "ComputeRoutesResponseProto";
  23. option java_package = "com.google.maps.routes.v1";
  24. option objc_class_prefix = "GMRS";
  25. option php_namespace = "Google\\Maps\\Routes\\V1";
  26. // ComputeRoutes the response message.
  27. message ComputeRoutesResponse {
  28. // Contains an array of computed routes (up to three) when you specify
  29. // compute_alternatives_routes, and contains just one route when you don't.
  30. // When this array contains multiple entries, the first one is the most
  31. // recommended route. If the array is empty, then it means no route could be
  32. // found.
  33. repeated Route routes = 1;
  34. // In some cases when the server is not able to compute the route results with
  35. // all of the input preferences, it may fallback to using a different way of
  36. // computation. When fallback mode is used, this field contains detailed info
  37. // about the fallback response. Otherwise this field is unset.
  38. FallbackInfo fallback_info = 2;
  39. }