diff options
Diffstat (limited to 'third_party/googleapis/google/maps/routes')
20 files changed, 0 insertions, 2401 deletions
diff --git a/third_party/googleapis/google/maps/routes/v1/BUILD.bazel b/third_party/googleapis/google/maps/routes/v1/BUILD.bazel deleted file mode 100644 index a46ceb2..0000000 --- a/third_party/googleapis/google/maps/routes/v1/BUILD.bazel +++ /dev/null @@ -1,226 +0,0 @@ -# This file was automatically generated by BuildFileGenerator - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") -load("@com_google_googleapis_imports//:imports.bzl", "proto_library_with_info") -load("//google/maps:postprocessing.bzl", "maps_assembly_pkg") - -proto_library( - name = "routes_proto", - srcs = [ - "compute_custom_routes_request.proto", - "compute_custom_routes_response.proto", - "compute_route_matrix_request.proto", - "compute_routes_request.proto", - "compute_routes_response.proto", - "custom_route.proto", - "fallback_info.proto", - "polyline.proto", - "route.proto", - "route_matrix_element.proto", - "route_service.proto", - "toll_passes.proto", - "vehicle_emission_type.proto", - "waypoint.proto", - ], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/api:field_behavior_proto", - "//google/geo/type:viewport_proto", - "//google/rpc:status_proto", - "//google/type:latlng_proto", - "//google/type:money_proto", - "@com_google_protobuf//:duration_proto", - "@com_google_protobuf//:struct_proto", - "@com_google_protobuf//:timestamp_proto", - "@com_google_protobuf//:wrappers_proto", - ], -) - -proto_library_with_info( - name = "routes_proto_with_info", - deps = [ - ":routes_proto", - "//google/cloud:common_resources_proto", - ], -) - -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_gapic_assembly_gradle_pkg", - "java_grpc_library", - "java_proto_library", -) - -java_proto_library( - name = "routes_java_proto", - deps = [":routes_proto"], -) - -java_grpc_library( - name = "routes_java_grpc", - srcs = [":routes_proto"], - deps = [":routes_java_proto"], -) - -java_gapic_assembly_gradle_pkg( - name = "google-maps-routes-v1-java", - transport = "grpc+rest", - deps = [ - "//google/maps/routes/v1:routes_java_grpc", - "//google/maps/routes/v1:routes_java_proto", - "//google/maps/routes/v1:routes_proto", - ], -) - -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_proto_library", - "go_test", -) - -go_proto_library( - name = "routes_go_proto", - compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/maps/routes/v1", - protos = [":routes_proto"], - deps = [ - "//google/api:annotations_go_proto", - "//google/geo/type:viewport_go_proto", - "//google/rpc:status_go_proto", - "//google/type:latlng_go_proto", - "//google/type:money_go_proto", - ], -) - -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "py_gapic_library", - "py_test", -) - -py_gapic_library( - name = "routes_py_gapic", - srcs = [":routes_proto"], - grpc_service_config = "routes_grpc_service_config.json", - transport = "grpc", - deps = [ - "//google/geo/type:viewport_py_proto", - ], -) - -py_test( - name = "routes_py_gapic_test", - srcs = [ - "routes_py_gapic_pytest.py", - "routes_py_gapic_test.py", - ], - legacy_create_init = False, - deps = [":routes_py_gapic"], -) - -############################################################################## -# PHP -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "php_grpc_library", - "php_proto_library", -) - -php_proto_library( - name = "routes_php_proto", - deps = [":routes_proto"], -) - -php_grpc_library( - name = "routes_php_grpc", - srcs = [":routes_proto"], - deps = [":routes_php_proto"], -) - -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_grpc_library", - "ruby_proto_library", -) - -ruby_proto_library( - name = "routes_ruby_proto", - deps = [":routes_proto"], -) - -ruby_grpc_library( - name = "routes_ruby_grpc", - srcs = [":routes_proto"], - deps = [":routes_ruby_proto"], -) - -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_grpc_library", - "csharp_proto_library", -) - -csharp_proto_library( - name = "routes_csharp_proto", - deps = [":routes_proto"], -) - -csharp_grpc_library( - name = "routes_csharp_grpc", - srcs = [":routes_proto"], - deps = [":routes_csharp_proto"], -) - -############################################################################## -# C++ -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "cc_grpc_library", - "cc_proto_library", -) - -cc_proto_library( - name = "routes_cc_proto", - deps = [":routes_proto"], -) - -cc_grpc_library( - name = "routes_cc_grpc", - srcs = [":routes_proto"], - generate_mocks = True, - grpc_only = True, - deps = [":routes_cc_proto"], -) diff --git a/third_party/googleapis/google/maps/routes/v1/compute_custom_routes_request.proto b/third_party/googleapis/google/maps/routes/v1/compute_custom_routes_request.proto deleted file mode 100644 index ee8cb0d..0000000 --- a/third_party/googleapis/google/maps/routes/v1/compute_custom_routes_request.proto +++ /dev/null @@ -1,141 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/api/field_behavior.proto"; -import "google/maps/routes/v1/compute_routes_request.proto"; -import "google/maps/routes/v1/polyline.proto"; -import "google/maps/routes/v1/waypoint.proto"; -import "google/protobuf/timestamp.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "ComputeCustomRoutesRequestProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// ComputeCustomRoutes request message. -message ComputeCustomRoutesRequest { - // Required. Origin waypoint. - Waypoint origin = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Destination waypoint. - Waypoint destination = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. A set of waypoints along the route (excluding terminal points), for either - // stopping at or passing by. Up to 25 intermediate waypoints are supported. - repeated Waypoint intermediates = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the mode of transportation. Only DRIVE is supported now. - RouteTravelMode travel_mode = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies how to compute the route. The server attempts to use the selected - // routing preference to compute the route. If the routing preference results - // in an error or an extra long latency, then an error is returned. In the - // future, we might implement a fallback mechanism to use a different option - // when the preferred option does not give a valid result. You can specify - // this option only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, - // otherwise the request fails. - RoutingPreference routing_preference = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies your preference for the quality of the polyline. - PolylineQuality polyline_quality = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the preferred encoding for the polyline. - PolylineEncoding polyline_encoding = 13 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The departure time. If you don't set this value, then this value - // defaults to the time that you made the request. If you set this value to a - // time that has already occurred, then the request fails. - google.protobuf.Timestamp departure_time = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A set of conditions to satisfy that affect the way routes are calculated. - RouteModifiers route_modifiers = 11 [(google.api.field_behavior) = OPTIONAL]; - - // Required. A route objective to optimize for. - RouteObjective route_objective = 12 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more - // information, see - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See - // [Language Support](https://developers.google.com/maps/faq#languagesupport) - // for the list of supported languages. When you don't provide this value, the - // display language is inferred from the location of the route request. - string language_code = 9 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies the units of measure for the display fields. This includes the - // `instruction` field in `NavigationInstruction`. The units of measure used - // for the route, leg, step distance, and duration are not affected by this - // value. If you don't provide this value, then the display units are inferred - // from the location of the request. - Units units = 10 [(google.api.field_behavior) = OPTIONAL]; -} - -// Encapsulates an objective to optimize for by ComputeCustomRoutes. -message RouteObjective { - // Encapsulates a RateCard route objective. - message RateCard { - // Encapsulates the cost used in the rate card. - message MonetaryCost { - // Required. The cost value in local currency inferred from the request. - double value = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // Optional. Cost per minute. - MonetaryCost cost_per_minute = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Cost per kilometer. - MonetaryCost cost_per_km = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether to include toll cost in the overall cost. - bool include_tolls = 4 [(google.api.field_behavior) = OPTIONAL]; - } - - // Customized data layer that customers use to generated route annotations or - // influence the generated route. - message CustomLayer { - // Information about a dataset that customers uploaded in advance. The - // dataset information will be used for generating route annotations or to - // influence routing. - message DatasetInfo { - // Required. ID of a customer uploaded dataset for which will be used to annotate or - // influence the route. If the dataset does not exist or is not yet ready, - // the request will fail. - string dataset_id = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // Required. A dataset that the customer uploaded in advance. - DatasetInfo dataset_info = 1 [(google.api.field_behavior) = REQUIRED]; - } - - // The route objective. - oneof objective { - // The RateCard objective. - RateCard rate_card = 1; - } - - // Optional. Specifies the custom data layer being used to affect generated routes. - // Customers can turn off the custom layer by not setting this field. Once a - // custom layer is being set, the custom layer will be used to generate route - // annotations (CustomLayerInfo) in the returned routes, the annotations can - // be turned off using `X-Goog-FieldMask` header (see - // https://cloud.google.com/apis/docs/system-parameters). - CustomLayer custom_layer = 2 [(google.api.field_behavior) = OPTIONAL]; -} diff --git a/third_party/googleapis/google/maps/routes/v1/compute_custom_routes_response.proto b/third_party/googleapis/google/maps/routes/v1/compute_custom_routes_response.proto deleted file mode 100644 index 10fcb67..0000000 --- a/third_party/googleapis/google/maps/routes/v1/compute_custom_routes_response.proto +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/maps/routes/v1/custom_route.proto"; -import "google/maps/routes/v1/fallback_info.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "ComputeCustomRoutesResponseProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// ComputeCustomRoutes response message. -message ComputeCustomRoutesResponse { - // Encapsulates fallback info for ComputeCustomRoutes. ComputeCustomRoutes - // performs two types of fallbacks: - // - // 1. If it cannot compute the route using the routing_preference requested by - // the customer, it will fallback to another routing mode. In this case - // fallback_routing_mode and routing_mode_fallback_reason are used to - // communicate the fallback routing mode used, as well as the reason for - // fallback. - // - // 2. If it cannot compute a 'best' route for the route objective specified by - // the customer, it might fallback to another objective. - // fallback_route_objective is used to communicate the fallback route - // objective. - message FallbackInfo { - // RouteObjective used for the response. - enum FallbackRouteObjective { - // Fallback route objective unspecified. - FALLBACK_ROUTE_OBJECTIVE_UNSPECIFIED = 0; - - // If customer requests RateCard and sets include_tolls to true, and - // Google does not have toll price data for the route, the API falls back - // to RateCard without considering toll price. - FALLBACK_RATECARD_WITHOUT_TOLL_PRICE_DATA = 1; - } - - // Routing mode used for the response. If fallback was triggered, the mode - // may be different from routing preference set in the original client - // request. - FallbackRoutingMode routing_mode = 1; - - // The reason why fallback response was used instead of the original - // response. - // This field is only populated when the fallback mode is triggered and - // the fallback response is returned. - FallbackReason routing_mode_reason = 2; - - // The route objective used for the response. If fallback was triggered, the - // objective may be different from the route objective provided in the - // original client request. - FallbackRouteObjective route_objective = 3; - } - - // The ‘best’ routes for the input route objective. - repeated CustomRoute routes = 7; - - // The fastest reference route. - CustomRoute fastest_route = 5; - - // The shortest reference route. - CustomRoute shortest_route = 6; - - // Fallback info for custom routes. - FallbackInfo fallback_info = 8; -} diff --git a/third_party/googleapis/google/maps/routes/v1/compute_route_matrix_request.proto b/third_party/googleapis/google/maps/routes/v1/compute_route_matrix_request.proto deleted file mode 100644 index 82c95aa..0000000 --- a/third_party/googleapis/google/maps/routes/v1/compute_route_matrix_request.proto +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/api/field_behavior.proto"; -import "google/maps/routes/v1/compute_routes_request.proto"; -import "google/maps/routes/v1/waypoint.proto"; -import "google/protobuf/timestamp.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "ComputeRouteMatrixRequestProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// ComputeRouteMatrix request message -message ComputeRouteMatrixRequest { - // Required. Array of origins, which determines the rows of the response matrix. - // Several size restrictions apply to the cardinality of origins and - // destinations: - // - // * The number of elements (origins × destinations) must be no greater than - // 625 in any case. - // * The number of elements (origins × destinations) must be no greater than - // 100 if routing_preference is set to `TRAFFIC_AWARE_OPTIMAL`. - // * The number of waypoints (origins + destinations) specified as `place_id` - // must be no greater than 50. - repeated RouteMatrixOrigin origins = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. Array of destinations, which determines the columns of the response matrix. - repeated RouteMatrixDestination destinations = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Specifies the mode of transportation. - RouteTravelMode travel_mode = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Specifies how to compute the route. The server attempts to use the selected - // routing preference to compute the route. If the routing preference results - // in an error or an extra long latency, an error is returned. In the future, - // we might implement a fallback mechanism to use a different option when the - // preferred option does not give a valid result. You can specify this option - // only when the `travel_mode` is `DRIVE` or `TWO_WHEELER`, otherwise the - // request fails. - RoutingPreference routing_preference = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The departure time. If you don't set this value, this defaults to the time - // that you made the request. If you set this value to a time that has already - // occurred, the request fails. - google.protobuf.Timestamp departure_time = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// A single origin for ComputeRouteMatrixRequest -message RouteMatrixOrigin { - // Required. Origin waypoint - Waypoint waypoint = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Modifiers for every route that takes this as the origin - RouteModifiers route_modifiers = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// A single destination for ComputeRouteMatrixRequest -message RouteMatrixDestination { - // Required. Destination waypoint - Waypoint waypoint = 1 [(google.api.field_behavior) = REQUIRED]; -} diff --git a/third_party/googleapis/google/maps/routes/v1/compute_routes_request.proto b/third_party/googleapis/google/maps/routes/v1/compute_routes_request.proto deleted file mode 100644 index 2d72da7..0000000 --- a/third_party/googleapis/google/maps/routes/v1/compute_routes_request.proto +++ /dev/null @@ -1,204 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/maps/routes/v1/polyline.proto"; -import "google/maps/routes/v1/toll_passes.proto"; -import "google/maps/routes/v1/vehicle_emission_type.proto"; -import "google/maps/routes/v1/waypoint.proto"; -import "google/protobuf/timestamp.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "ComputeRoutesRequestProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// ComputeRoutes request message. -message ComputeRoutesRequest { - // Required. Origin waypoint. - Waypoint origin = 1; - - // Required. Destination waypoint. - Waypoint destination = 2; - - // Optional. A set of waypoints along the route (excluding terminal points), - // for either stopping at or passing by. Up to 25 intermediate waypoints are - // supported. - repeated Waypoint intermediates = 3; - - // Optional. Specifies the mode of transportation. - RouteTravelMode travel_mode = 4; - - // Optional. Specifies how to compute the route. The server - // attempts to use the selected routing preference to compute the route. If - // the routing preference results in an error or an extra long latency, then - // an error is returned. In the future, we might implement a fallback - // mechanism to use a different option when the preferred option does not give - // a valid result. You can specify this option only when the `travel_mode` is - // `DRIVE` or `TWO_WHEELER`, otherwise the request fails. - RoutingPreference routing_preference = 5; - - // Optional. Specifies your preference for the quality of the polyline. - PolylineQuality polyline_quality = 6; - - // Optional. Specifies the preferred encoding for the polyline. - PolylineEncoding polyline_encoding = 12; - - // Optional. The departure time. If you don't set this value, then this value - // defaults to the time that you made the request. If you set this value to a - // time that has already occurred, then the request fails. - google.protobuf.Timestamp departure_time = 7; - - // Specifies whether to calculate alternate routes in addition to the route. - bool compute_alternative_routes = 8; - - // Optional. A set of conditions to satisfy that affect the way routes are - // calculated. - RouteModifiers route_modifiers = 9; - - // Optional. The BCP-47 language code, such as "en-US" or "sr-Latn". For more - // information, see - // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. See - // [Language Support](https://developers.google.com/maps/faq#languagesupport) - // for the list of supported languages. When you don't provide this value, the - // display language is inferred from the location of the route request. - string language_code = 10; - - // Optional. Specifies the units of measure for the display fields. This - // includes the `instruction` field in `NavigationInstruction`. The units of - // measure used for the route, leg, step distance, and duration are not - // affected by this value. If you don't provide this value, then the display - // units are inferred from the location of the request. - Units units = 11; - - // If optimizeWaypointOrder is set to true, an attempt is made to re-order the - // specified intermediate waypoints to minimize the overall cost of the route. - // If any of the intermediate waypoints is via waypoint the request fails. Use - // ComputeRoutesResponse.Routes.optimized_intermediate_waypoint_index to find - // the new ordering. If routes.optimized_intermediate_waypoint_index is not - // requested in the `X-Goog-FieldMask` header, the request fails. If - // optimizeWaypointOrder is set to false, - // ComputeRoutesResponse.optimized_intermediate_waypoint_index is empty. - bool optimize_waypoint_order = 13; -} - -// Encapsulates a set of optional conditions to satisfy when calculating the -// routes. -message RouteModifiers { - // Specifies whether to avoid toll roads where reasonable. Preference will be - // given to routes not containing toll roads. Applies only to the `DRIVE` and - // `TWO_WHEELER` travel modes. - bool avoid_tolls = 1; - - // Specifies whether to avoid highways where reasonable. Preference will be - // given to routes not containing highways. Applies only to the `DRIVE` and - // `TWO_WHEELER` travel modes. - bool avoid_highways = 2; - - // Specifies whether to avoid ferries where reasonable. Preference will be - // given to routes not containing travel by ferries. - // Applies only to the `DRIVE` and`TWO_WHEELER` travel modes. - bool avoid_ferries = 3; - - // Specifies whether to avoid navigating indoors where reasonable. Preference - // will be given to routes not containing indoor navigation. - // Applies only to the `WALK` travel mode. - bool avoid_indoor = 4; - - // Specifies the vehicle information. - VehicleInfo vehicle_info = 5; - - // Encapsulates information about toll passes. - // If toll passes are provided, the API tries to return the pass price. If - // toll passes are not provided, the API treats the toll pass as unknown and - // tries to return the cash price. - // Applies only to the DRIVE and TWO_WHEELER travel modes. - repeated TollPass toll_passes = 6; -} - -// Encapsulates the vehicle information, such as the license plate last -// character. -message VehicleInfo { - // Specifies the license plate last character. Could be a digit or a letter. - string license_plate_last_character = 1; - - // Describes the vehicle's emission type. - // Applies only to the DRIVE travel mode. - VehicleEmissionType emission_type = 2; -} - -// A set of values used to specify the mode of travel. -enum RouteTravelMode { - // No travel mode specified. Defaults to `DRIVE`. - TRAVEL_MODE_UNSPECIFIED = 0; - - // Travel by passenger car. - DRIVE = 1; - - // Travel by bicycle. - BICYCLE = 2; - - // Travel by walking. - WALK = 3; - - // Two-wheeled, motorized vehicle. For example, motorcycle. Note that this - // differs from the `BICYCLE` travel mode which covers human-powered mode. - TWO_WHEELER = 4; - - // Travel by licensed taxi, which may allow the vehicle to travel on - // designated taxi lanes in some areas. - TAXI = 5; -} - -// A set of values that specify factors to take into consideration when -// calculating the route. -enum RoutingPreference { - // No routing preference specified. Default to `TRAFFIC_AWARE`. - ROUTING_PREFERENCE_UNSPECIFIED = 0; - - // Computes routes without taking traffic conditions into consideration. - // Suitable when traffic conditions don't matter. Using this value produces - // the lowest latency. - TRAFFIC_UNAWARE = 1; - - // Calculates routes taking traffic conditions into consideration. In contrast - // to `TRAFFIC_AWARE_OPTIMAL`, some optimizations are applied to significantly - // reduce latency. - TRAFFIC_AWARE = 2; - - // Calculates the routes taking traffic conditions into consideration, - // without applying most performance optimizations. Using this value produces - // the highest latency. - TRAFFIC_AWARE_OPTIMAL = 3; -} - -// A set of values that specify the unit of measure used in the display. -enum Units { - // Units of measure not specified. Defaults to the unit of measure inferred - // from the request. - UNITS_UNSPECIFIED = 0; - - // Metric units of measure. - METRIC = 1; - - // Imperial (English) units of measure. - IMPERIAL = 2; -} diff --git a/third_party/googleapis/google/maps/routes/v1/compute_routes_response.proto b/third_party/googleapis/google/maps/routes/v1/compute_routes_response.proto deleted file mode 100644 index d7ed342..0000000 --- a/third_party/googleapis/google/maps/routes/v1/compute_routes_response.proto +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/maps/routes/v1/fallback_info.proto"; -import "google/maps/routes/v1/route.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "ComputeRoutesResponseProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// ComputeRoutes the response message. -message ComputeRoutesResponse { - // Contains an array of computed routes (up to three) when you specify - // compute_alternatives_routes, and contains just one route when you don't. - // When this array contains multiple entries, the first one is the most - // recommended route. If the array is empty, then it means no route could be - // found. - repeated Route routes = 1; - - // In some cases when the server is not able to compute the route results with - // all of the input preferences, it may fallback to using a different way of - // computation. When fallback mode is used, this field contains detailed info - // about the fallback response. Otherwise this field is unset. - FallbackInfo fallback_info = 2; -} diff --git a/third_party/googleapis/google/maps/routes/v1/custom_route.proto b/third_party/googleapis/google/maps/routes/v1/custom_route.proto deleted file mode 100644 index 9b80f7f..0000000 --- a/third_party/googleapis/google/maps/routes/v1/custom_route.proto +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/maps/routes/v1/route.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "CustomRouteProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// Encapsulates a custom route computed based on the route objective specified -// by the customer. CustomRoute contains a route and a route token, which can be -// passed to NavSDK to reconstruct the custom route for turn by turn navigation. -message CustomRoute { - // The route considered 'best' for the input route objective. - Route route = 11; - - // Web-safe base64 encoded route token that can be passed to NavSDK, which - // allows NavSDK to reconstruct the route during navigation, and in the event - // of rerouting honor the original intention when RoutesPreferred - // ComputeCustomRoutes is called. Customers should treat this token as an - // opaque blob. - string token = 12; -} diff --git a/third_party/googleapis/google/maps/routes/v1/fallback_info.proto b/third_party/googleapis/google/maps/routes/v1/fallback_info.proto deleted file mode 100644 index ef88f91..0000000 --- a/third_party/googleapis/google/maps/routes/v1/fallback_info.proto +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "FallbackInfoProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// Information related to how and why a fallback result was used. If this field -// is set, then it means the server used a different routing mode from your -// preferred mode as fallback. -message FallbackInfo { - // Routing mode used for the response. If fallback was triggered, the mode - // may be different from routing preference set in the original client - // request. - FallbackRoutingMode routing_mode = 1; - - // The reason why fallback response was used instead of the original response. - // This field is only populated when the fallback mode is triggered and the - // fallback response is returned. - FallbackReason reason = 2; -} - -// Reasons for using fallback response. -enum FallbackReason { - // No fallback reason specified. - FALLBACK_REASON_UNSPECIFIED = 0; - - // A server error happened while calculating routes with your preferred - // routing mode, but we were able to return a result calculated by an - // alternative mode. - SERVER_ERROR = 1; - - // We were not able to finish the calculation with your preferred routing mode - // on time, but we were able to return a result calculated by an alternative - // mode. - LATENCY_EXCEEDED = 2; -} - -// Actual routing mode used for returned fallback response. -enum FallbackRoutingMode { - // Not used. - FALLBACK_ROUTING_MODE_UNSPECIFIED = 0; - - // Indicates the "TRAFFIC_UNAWARE" routing mode was used to compute the - // response. - FALLBACK_TRAFFIC_UNAWARE = 1; - - // Indicates the "TRAFFIC_AWARE" routing mode was used to compute the - // response. - FALLBACK_TRAFFIC_AWARE = 2; -} diff --git a/third_party/googleapis/google/maps/routes/v1/polyline.proto b/third_party/googleapis/google/maps/routes/v1/polyline.proto deleted file mode 100644 index d858516..0000000 --- a/third_party/googleapis/google/maps/routes/v1/polyline.proto +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/protobuf/struct.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "PolylineProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// Encapsulates an encoded polyline. -message Polyline { - // Encapsulates the type of polyline. Defaults to encoded_polyline. - oneof polyline_type { - // The string encoding of the polyline using the [polyline encoding - // algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm) - string encoded_polyline = 1; - - // Specifies a polyline using the [GeoJSON LineString - // format](https://tools.ietf.org/html/rfc7946#section-3.1.4) - google.protobuf.Struct geo_json_linestring = 2; - } -} - -// A set of values that specify the quality of the polyline. -enum PolylineQuality { - // No polyline quality preference specified. Defaults to `OVERVIEW`. - POLYLINE_QUALITY_UNSPECIFIED = 0; - - // Specifies a high-quality polyline - which is composed using more points - // than `OVERVIEW`, at the cost of increased response size. Use this value - // when you need more precision. - HIGH_QUALITY = 1; - - // Specifies an overview polyline - which is composed using a small number of - // points. Use this value when displaying an overview of the route. Using this - // option has a lower request latency compared to using the - // `HIGH_QUALITY` option. - OVERVIEW = 2; -} - -// Specifies the preferred type of polyline to be returned. -enum PolylineEncoding { - // No polyline type preference specified. Defaults to `ENCODED_POLYLINE`. - POLYLINE_ENCODING_UNSPECIFIED = 0; - - // Specifies a polyline encoded using the [polyline encoding - // algorithm](https://developers.google.com/maps/documentation/utilities/polylinealgorithm). - ENCODED_POLYLINE = 1; - - // Specifies a polyline using the [GeoJSON LineString - // format](https://tools.ietf.org/html/rfc7946#section-3.1.4) - GEO_JSON_LINESTRING = 2; -} diff --git a/third_party/googleapis/google/maps/routes/v1/route.proto b/third_party/googleapis/google/maps/routes/v1/route.proto deleted file mode 100644 index 9da1033..0000000 --- a/third_party/googleapis/google/maps/routes/v1/route.proto +++ /dev/null @@ -1,386 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/geo/type/viewport.proto"; -import "google/maps/routes/v1/polyline.proto"; -import "google/maps/routes/v1/waypoint.proto"; -import "google/protobuf/duration.proto"; -import "google/type/money.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "RouteProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// Encapsulates a route, which consists of a series of connected road segments -// that join beginning, ending, and intermediate waypoints. -message Route { - // A collection of legs (path segments between waypoints) that make-up the - // route. Each leg corresponds to the trip between two non-`via` Waypoints. - // For example, a route with no intermediate waypoints has only one leg. A - // route that includes one non-`via` intermediate waypoint has two legs. A - // route that includes one `via` intermediate waypoint has one leg. The order - // of the legs matches the order of Waypoints from `origin` to `intermediates` - // to `destination`. - repeated RouteLeg legs = 1; - - // The travel distance of the route, in meters. - int32 distance_meters = 2; - - // The length of time needed to navigate the route. If you set the - // `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 = 3; - - // The duration of traveling through the route without taking traffic - // conditions into consideration. - google.protobuf.Duration static_duration = 4; - - // The overall route polyline. This polyline will be the combined polyline of - // all `legs`. - Polyline polyline = 5; - - // A description of the route. - string description = 6; - - // An array of warnings to show when displaying the route. - repeated string warnings = 7; - - // The viewport bounding box of the polyline. - google.geo.type.Viewport viewport = 8; - - // Additional information about the route. - RouteTravelAdvisory travel_advisory = 9; - - // If ComputeRoutesRequest.optimize_waypoint_order is set to true, this field - // contains the optimized ordering of intermediates waypoints. - // otherwise, this field is empty. - // For example, suppose the input is Origin: LA; Intermediates: Dallas, - // Bangor, Phoenix; Destination: New York; and the optimized intermediate - // waypoint order is: Phoenix, Dallas, Bangor. Then this field contains the - // values [2, 0, 1]. The index starts with 0 for the first intermediate - // waypoint. - repeated int32 optimized_intermediate_waypoint_index = 10; -} - -// Encapsulates the additional information that the user should be informed -// about, such as possible traffic zone restriction etc. -message RouteTravelAdvisory { - // The traffic restriction that applies to the route. A vehicle that is - // subject to the restriction is not allowed to travel on the route. As of - // October 2019, only Jakarta, Indonesia takes into consideration. - TrafficRestriction traffic_restriction = 1; - - // Encapsulates information about tolls on the Route. - // This field is only populated if we expect there are tolls on the Route. - // If this field is set but the estimated_price subfield is not populated, - // we expect that road contains tolls but we do not know an estimated price. - // If this field is not set, then we expect there is no toll on the Route. - TollInfo toll_info = 2; - - // Speed reading intervals detailing traffic density. Applicable in case of - // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. - // The intervals cover the entire polyline of the route without overlap. - // The start point of a specified interval is the same as the end point of the - // preceding interval. - // - // Example: - // - // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G - // speed_reading_intervals: [A,C), [C,D), [D,G). - repeated SpeedReadingInterval speed_reading_intervals = 3; - - // Information related to the custom layer data that the customer specified - // (e.g. time spent in a customer specified area). - CustomLayerInfo custom_layer_info = 4; -} - -// Encapsulates the additional information that the user should be informed -// about, such as possible traffic zone restriction etc. on a route leg. -message RouteLegTravelAdvisory { - // Encapsulates information about tolls on the specific RouteLeg. - // This field is only populated if we expect there are tolls on the RouteLeg. - // If this field is set but the estimated_price subfield is not populated, - // we expect that road contains tolls but we do not know an estimated price. - // If this field does not exist, then there is no toll on the RouteLeg. - TollInfo toll_info = 1; - - // Speed reading intervals detailing traffic density. Applicable in case of - // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. - // The intervals cover the entire polyline of the RouteLg without overlap. - // The start point of a specified interval is the same as the end point of the - // preceding interval. - // - // Example: - // - // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G - // speed_reading_intervals: [A,C), [C,D), [D,G). - repeated SpeedReadingInterval speed_reading_intervals = 2; - - // Information related to the custom layer data that the customer specified - // (e.g. time spent in a customer specified area). - CustomLayerInfo custom_layer_info = 3; -} - -// Encapsulates the additional information that the user should be informed -// about, such as possible traffic zone restriction on a leg step. -message RouteLegStepTravelAdvisory { - // Speed reading intervals detailing traffic density. Applicable in case of - // `TRAFFIC_AWARE` and `TRAFFIC_AWARE_OPTIMAL` routing preferences. - // The intervals cover the entire polyline of the RouteLegStep without - // overlap. The start point of a specified interval is the same as the end - // point of the preceding interval. - // - // Example: - // - // polyline: A ---- B ---- C ---- D ---- E ---- F ---- G - // speed_reading_intervals: [A,C), [C,D), [D,G). - repeated SpeedReadingInterval speed_reading_intervals = 1; -} - -// Encapsulates the traffic restriction applied to the route. As of October -// 2019, only Jakarta, Indonesia takes into consideration. -message TrafficRestriction { - // The restriction based on the vehicle's license plate last character. If - // this field does not exist, then no restriction on route. - LicensePlateLastCharacterRestriction - license_plate_last_character_restriction = 1; -} - -// Encapsulates the license plate last character restriction. -message LicensePlateLastCharacterRestriction { - // The allowed last character of a license plate of a vehicle. Only vehicles - // whose license plate's last characters match these are allowed to travel on - // the route. If empty, no vehicle is allowed. - repeated string allowed_last_characters = 1; -} - -// Encapsulates a segment between non-`via` waypoints. -message RouteLeg { - // The travel distance of the route leg, in meters. - int32 distance_meters = 1; - - // The length of time needed to navigate the leg. If the `route_preference` - // is set to `TRAFFIC_UNAWARE`, then this value is the same as - // `static_duration`. If the `route_preference` is either `TRAFFIC_AWARE` or - // `TRAFFIC_AWARE_OPTIMAL`, then this value is calculated taking traffic - // conditions into account. - google.protobuf.Duration duration = 2; - - // The duration of traveling through the leg, calculated without taking - // traffic conditions into consideration. - google.protobuf.Duration static_duration = 3; - - // The overall polyline for this leg. This includes that each `step`'s - // polyline. - Polyline polyline = 4; - - // The start location of this leg. This might be different from the provided - // `origin`. For example, when the provided `origin` is not near a road, this - // is a point on the road. - Location start_location = 5; - - // The end location of this leg. This might be different from the provided - // `destination`. For example, when the provided `destination` is not near a - // road, this is a point on the road. - Location end_location = 6; - - // An array of steps denoting segments within this leg. Each step represents - // one navigation instruction. - repeated RouteLegStep steps = 7; - - // Encapsulates the additional information that the user should be informed - // about, such as possible traffic zone restriction etc. on a route leg. - RouteLegTravelAdvisory travel_advisory = 8; -} - -// Encapsulates toll information on a `Route` or on a `RouteLeg`. -message TollInfo { - // The monetary amount of tolls for the corresponding Route or RouteLeg. - // This list contains a money amount for each currency that is expected - // to be charged by the toll stations. Typically this list will contain only - // one item for routes with tolls in one currency. For international trips, - // this list may contain multiple items to reflect tolls in different - // currencies. - repeated google.type.Money estimated_price = 1; -} - -// Encapsulates a segment of a `RouteLeg`. A step corresponds to a single -// navigation instruction. Route legs are made up of steps. -message RouteLegStep { - // The travel distance of this step, in meters. In some circumstances, this - // field might not have a value. - int32 distance_meters = 1; - - // The duration of travel through this step without taking traffic conditions - // into consideration. In some circumstances, this field might not have a - // value. - google.protobuf.Duration static_duration = 2; - - // The polyline associated with this step. - Polyline polyline = 3; - - // The start location of this step. - Location start_location = 4; - - // The end location of this step. - Location end_location = 5; - - // Navigation instructions. - NavigationInstruction navigation_instruction = 6; - - // Encapsulates the additional information that the user should be informed - // about, such as possible traffic zone restriction on a leg step. - RouteLegStepTravelAdvisory travel_advisory = 7; -} - -message NavigationInstruction { - // Encapsulates the navigation instructions for the current step (e.g., turn - // left, merge, straight, etc.). This field determines which icon to display. - Maneuver maneuver = 1; - - // Instructions for navigating this step. - string instructions = 2; -} - -// A set of values that specify the navigation action to take for the current -// step (e.g., turn left, merge, straight, etc.). -enum Maneuver { - // Not used. - MANEUVER_UNSPECIFIED = 0; - - // Turn slightly to the left. - TURN_SLIGHT_LEFT = 1; - - // Turn sharply to the left. - TURN_SHARP_LEFT = 2; - - // Make a left u-turn. - UTURN_LEFT = 3; - - // Turn left. - TURN_LEFT = 4; - - // Turn slightly to the right. - TURN_SLIGHT_RIGHT = 5; - - // Turn sharply to the right. - TURN_SHARP_RIGHT = 6; - - // Make a right u-turn. - UTURN_RIGHT = 7; - - // Turn right. - TURN_RIGHT = 8; - - // Go straight. - STRAIGHT = 9; - - // Take the left ramp. - RAMP_LEFT = 10; - - // Take the right ramp. - RAMP_RIGHT = 11; - - // Merge into traffic. - MERGE = 12; - - // Take the left fork. - FORK_LEFT = 13; - - // Take the right fork. - FORK_RIGHT = 14; - - // Take the ferry. - FERRY = 15; - - // Take the train leading onto the ferry. - FERRY_TRAIN = 16; - - // Turn left at the roundabout. - ROUNDABOUT_LEFT = 17; - - // Turn right at the roundabout. - ROUNDABOUT_RIGHT = 18; -} - -// Traffic density indicator on a contiguous segment of a polyline or path. -// Given a path with points P_0, P_1, ... , P_N (zero-based index), the -// SpeedReadingInterval defines an interval and describes its traffic using the -// following categories. -message SpeedReadingInterval { - // The classification of polyline speed based on traffic data. - enum Speed { - // Default value. This value is unused. - SPEED_UNSPECIFIED = 0; - - // Normal speed, no slowdown is detected. - NORMAL = 1; - - // Slowdown detected, but no traffic jam formed. - SLOW = 2; - - // Traffic jam detected. - TRAFFIC_JAM = 3; - } - - // The starting index of this interval in the polyline. - // In JSON, when the index is 0, the field appears to be unpopulated. - int32 start_polyline_point_index = 1; - - // The ending index of this interval in the polyline. - // In JSON, when the index is 0, the field appears to be unpopulated. - int32 end_polyline_point_index = 2; - - // Traffic speed in this interval. - Speed speed = 3; -} - -// Encapsulates statistics about the time spent and distance travelled in a -// custom area. -message CustomLayerInfo { - // Encapsulates areas related information on a `Route` or on a `RouteLeg`. - message AreaInfo { - // ID of an area inside a customer provided dataset. An area represents a - // collection of polygons on the map that are of concern to the customer. - // For example, the customer may be interested in knowing whether a - // returned route is traveling through multiple busy city blocks during - // a predefined period of time. An area ID is unique within a single - // dataset uploaded by a customer. That is, a (customer_id, dataset_id, - // area_id) triplet should uniquely identify a set of polygons on the map - // that "activates" following a common schedule. - string area_id = 1; - - // Total distance traveled in the area (in meters). - float distance_in_area_meters = 2; - - // Total time spent in the area. - google.protobuf.Duration duration_in_area = 3; - } - - // Encapsulates information about areas in the custom layer on the Route. - // This field is only populated if a route travels through areas in the - // custom layer. - repeated AreaInfo area_info = 1; -} diff --git a/third_party/googleapis/google/maps/routes/v1/route_matrix_element.proto b/third_party/googleapis/google/maps/routes/v1/route_matrix_element.proto deleted file mode 100644 index db77f4a..0000000 --- a/third_party/googleapis/google/maps/routes/v1/route_matrix_element.proto +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/maps/routes/v1/fallback_info.proto"; -import "google/maps/routes/v1/route.proto"; -import "google/protobuf/duration.proto"; -import "google/rpc/status.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "ComputeRouteMatrixElementProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// Encapsulates route information computed for an origin/destination pair in the -// ComputeRouteMatrix API. This proto can be streamed to the client. -message RouteMatrixElement { - // Zero-based index of the origin in the request. - int32 origin_index = 1; - - // Zero-based index of the destination in the request. - int32 destination_index = 2; - - // 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; - - // The length of time needed to navigate the route. If you set the - // `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; - - // The duration of traveling through the route without taking traffic - // conditions into consideration. - google.protobuf.Duration static_duration = 6; - - // Additional information about the route. For example: restriction - // information and toll information - RouteTravelAdvisory travel_advisory = 7; - - // 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. - FallbackInfo fallback_info = 8; -} - -// The condition of the route being returned. -enum RouteMatrixElementCondition { - // Only used when the `status` of the element is not OK. - 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; -} diff --git a/third_party/googleapis/google/maps/routes/v1/route_service.proto b/third_party/googleapis/google/maps/routes/v1/route_service.proto deleted file mode 100644 index 5aa3f0c..0000000 --- a/third_party/googleapis/google/maps/routes/v1/route_service.proto +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/maps/routes/v1/compute_custom_routes_request.proto"; -import "google/maps/routes/v1/compute_custom_routes_response.proto"; -import "google/maps/routes/v1/compute_route_matrix_request.proto"; -import "google/maps/routes/v1/compute_routes_request.proto"; -import "google/maps/routes/v1/compute_routes_response.proto"; -import "google/maps/routes/v1/route_matrix_element.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "RoutesServiceProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// The Routes Preferred API. -service RoutesPreferred { - option (google.api.default_host) = "routespreferred.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/maps-platform.routespreferred"; - - // Returns the primary route along with optional alternate routes, given a set - // of terminal and intermediate waypoints. - // - // **NOTE:** This method requires that you specify a response field mask in - // the input. You can provide the response field mask by using URL parameter - // `$fields` or `fields`, or by using an HTTP/gRPC header `X-Goog-FieldMask` - // (see the [available URL parameters and - // headers](https://cloud.google.com/apis/docs/system-parameters). The value - // is a comma separated list of field paths. See detailed documentation about - // [how to construct the field - // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). - // - // For example, in this method: - // - // * Field mask of all available fields (for manual inspection): - // `X-Goog-FieldMask: *` - // * Field mask of Route-level duration, distance, and polyline (an example - // production setup): - // `X-Goog-FieldMask: - // routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline` - // - // Google discourage the use of the wildcard (`*`) response field mask, or - // specifying the field mask at the top level (`routes`), because: - // - // * Selecting only the fields that you need helps our server save computation - // cycles, allowing us to return the result to you with a lower latency. - // * Selecting only the fields that you need - // in your production job ensures stable latency performance. We might add - // more response fields in the future, and those new fields might require - // extra computation time. If you select all fields, or if you select all - // fields at the top level, then you might experience performance degradation - // because any new field we add will be automatically included in the - // response. - // * Selecting only the fields that you need results in a smaller response - // size, and thus higher network throughput. - rpc ComputeRoutes(ComputeRoutesRequest) returns (ComputeRoutesResponse) { - option (google.api.http) = { - post: "/v1:computeRoutes" - body: "*" - }; - } - - // Takes in a list of origins and destinations and returns a stream containing - // route information for each combination of origin and destination. - // - // **NOTE:** This method requires that you specify a response field mask in - // the input. You can provide the response field mask by using the URL - // parameter `$fields` or `fields`, or by using the HTTP/gRPC header - // `X-Goog-FieldMask` (see the [available URL parameters and - // headers](https://cloud.google.com/apis/docs/system-parameters). The value - // is a comma separated list of field paths. See this detailed documentation - // about [how to construct the field - // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). - // - // For example, in this method: - // - // * Field mask of all available fields (for manual inspection): - // `X-Goog-FieldMask: *` - // * Field mask of route durations, distances, element status, condition, and - // element indices (an example production setup): - // `X-Goog-FieldMask: - // originIndex,destinationIndex,status,condition,distanceMeters,duration` - // - // It is critical that you include `status` in your field mask as otherwise - // all messages will appear to be OK. Google discourages the use of the - // wildcard (`*`) response field mask, because: - // - // * Selecting only the fields that you need helps our server save computation - // cycles, allowing us to return the result to you with a lower latency. - // * Selecting only the fields that you need in your production job ensures - // stable latency performance. We might add more response fields in the - // future, and those new fields might require extra computation time. If you - // select all fields, or if you select all fields at the top level, then you - // might experience performance degradation because any new field we add will - // be automatically included in the response. - // * Selecting only the fields that you need results in a smaller response - // size, and thus higher network throughput. - rpc ComputeRouteMatrix(ComputeRouteMatrixRequest) returns (stream RouteMatrixElement) { - option (google.api.http) = { - post: "/v1:computeRouteMatrix" - body: "*" - }; - } - - // Given a set of terminal and intermediate waypoints, and a route objective, - // computes the best route for the route objective. Also returns fastest route - // and shortest route as reference routes. - // - // **NOTE:** This method requires that you specify a response field mask in - // the input. You can provide the response field mask by using the URL - // parameter `$fields` or `fields`, or by using the HTTP/gRPC header - // `X-Goog-FieldMask` (see the [available URL parameters and - // headers](https://cloud.google.com/apis/docs/system-parameters). The value - // is a comma separated list of field paths. See this detailed documentation - // about [how to construct the field - // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). - // - // For example, in this method: - // - // * Field mask of all available fields (for manual inspection): - // `X-Goog-FieldMask: *` - // * Field mask of route distances, durations, token and toll info: - // `X-Goog-FieldMask: - // routes.route.distanceMeters,routes.route.duration,routes.token,routes.route.travelAdvisory.tollInfo` - // - // Google discourages the use of the wildcard (`*`) response field mask, or - // specifying the field mask at the top level (`routes`), because: - // - // * Selecting only the fields that you need helps our server save computation - // cycles, allowing us to return the result to you with a lower latency. - // * Selecting only the fields that you need in your production job ensures - // stable latency performance. We might add more response fields in the - // future, and those new fields might require extra computation time. If you - // select all fields, or if you select all fields at the top level, then you - // might experience performance degradation because any new field we add will - // be automatically included in the response. - // * Selecting only the fields that you need results in a smaller response - // size, and thus higher network throughput. - rpc ComputeCustomRoutes(ComputeCustomRoutesRequest) returns (ComputeCustomRoutesResponse) { - option (google.api.http) = { - post: "/v1:computeCustomRoutes" - body: "*" - }; - } -} diff --git a/third_party/googleapis/google/maps/routes/v1/routes_grpc_service_config.json b/third_party/googleapis/google/maps/routes/v1/routes_grpc_service_config.json deleted file mode 100644 index 4f0d92a..0000000 --- a/third_party/googleapis/google/maps/routes/v1/routes_grpc_service_config.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "methodConfig": [ - { - "name": [{"service": "google.maps.routes.v1.RoutesPreferred" }], - "timeout": "60s" - } - ] -} diff --git a/third_party/googleapis/google/maps/routes/v1/routespreferred.yaml b/third_party/googleapis/google/maps/routes/v1/routespreferred.yaml deleted file mode 100644 index a092a19..0000000 --- a/third_party/googleapis/google/maps/routes/v1/routespreferred.yaml +++ /dev/null @@ -1,19 +0,0 @@ -type: google.api.Service -config_version: 3 -name: routespreferred.googleapis.com -title: Routes Preferred API - -apis: -- name: google.maps.routes.v1.RoutesPreferred -- name: google.maps.routes.v1alpha.RoutesAlpha - -authentication: - rules: - - selector: 'google.maps.routes.v1.RoutesPreferred.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/maps-platform.routespreferred - - selector: 'google.maps.routes.v1alpha.RoutesAlpha.*' - oauth: - canonical_scopes: |- - https://www.googleapis.com/auth/maps-platform.routespreferred diff --git a/third_party/googleapis/google/maps/routes/v1/toll_passes.proto b/third_party/googleapis/google/maps/routes/v1/toll_passes.proto deleted file mode 100644 index 64b39ed..0000000 --- a/third_party/googleapis/google/maps/routes/v1/toll_passes.proto +++ /dev/null @@ -1,303 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "TollPassesProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// List of toll passes around the world that we support. -enum TollPass { - // Not used. If this value is used, then the request fails. - TOLL_PASS_UNSPECIFIED = 0; - - // One of many Sydney toll pass providers. - // https://www.myetoll.com.au - AU_ETOLL_TAG = 82; - - // One of many Sydney toll pass providers. - // https://www.tollpay.com.au/ - AU_EWAY_TAG = 83; - - // Australia-wide toll pass. - // See additional details at https://www.linkt.com.au/. - AU_LINKT = 2; - - // Argentina toll pass. See additional details at https://telepase.com.ar - AR_TELEPASE = 3; - - // Brazil toll pass. See additional details at https://www.autoexpreso.com - BR_AUTO_EXPRESO = 81; - - // Brazil toll pass. See additional details at https://conectcar.com. - BR_CONECTCAR = 7; - - // Brazil toll pass. See additional details at https://movemais.com. - BR_MOVE_MAIS = 8; - - // Brazil toll pass. See additional details at https://pasorapido.gob.do/ - BR_PASSA_RAPIDO = 88; - - // Brazil toll pass. See additional details at https://www.semparar.com.br. - BR_SEM_PARAR = 9; - - // Brazil toll pass. See additional details at https://taggy.com.br. - BR_TAGGY = 10; - - // Brazil toll pass. See additional details at - // https://veloe.com.br/site/onde-usar. - BR_VELOE = 11; - - // Canada to United States border crossing. - CA_US_AKWASASNE_SEAWAY_CORPORATE_CARD = 84; - - // Canada to United States border crossing. - CA_US_AKWASASNE_SEAWAY_TRANSIT_CARD = 85; - - // Ontario, Canada to Michigan, United States border crossing. - CA_US_BLUE_WATER_EDGE_PASS = 18; - - // Ontario, Canada to Michigan, United States border crossing. - CA_US_CONNEXION = 19; - - // Canada to United States border crossing. - CA_US_NEXUS_CARD = 20; - - // Indonesia. - // E-card provided by multiple banks used to pay for tolls. All e-cards - // via banks are charged the same so only one enum value is needed. E.g. - // Bank Mandiri https://www.bankmandiri.co.id/e-money - // BCA https://www.bca.co.id/flazz - // BNI https://www.bni.co.id/id-id/ebanking/tapcash - ID_E_TOLL = 16; - - // India. - IN_FASTAG = 78; - - // India, HP state plate exemption. - IN_LOCAL_HP_PLATE_EXEMPT = 79; - - // Mexico toll pass. - MX_TAG_IAVE = 12; - - // Mexico toll pass company. One of many operating in Mexico City. See - // additional details at https://www.televia.com.mx. - MX_TAG_TELEVIA = 13; - - // Mexico toll pass. See additional details at - // https://www.viapass.com.mx/viapass/web_home.aspx. - MX_VIAPASS = 14; - - // AL, USA. - US_AL_FREEDOM_PASS = 21; - - // AK, USA. - US_AK_ANTON_ANDERSON_TUNNEL_BOOK_OF_10_TICKETS = 22; - - // CA, USA. - US_CA_FASTRAK = 4; - - // Indicates driver has any FasTrak pass in addition to the DMV issued Clean - // Air Vehicle (CAV) sticker. - // https://www.bayareafastrak.org/en/guide/doINeedFlex.shtml - US_CA_FASTRAK_CAV_STICKER = 86; - - // CO, USA. - US_CO_EXPRESSTOLL = 23; - - // CO, USA. - US_CO_GO_PASS = 24; - - // DE, USA. - US_DE_EZPASSDE = 25; - - // FL, USA. - US_FL_BOB_SIKES_TOLL_BRIDGE_PASS = 65; - - // FL, USA. - US_FL_DUNES_COMMUNITY_DEVELOPMENT_DISTRICT_EXPRESSCARD = 66; - - // FL, USA. - US_FL_EPASS = 67; - - // FL, USA. - US_FL_GIBA_TOLL_PASS = 68; - - // FL, USA. - US_FL_LEEWAY = 69; - - // FL, USA. - US_FL_SUNPASS = 70; - - // FL, USA. - US_FL_SUNPASS_PRO = 71; - - // IL, USA. - US_IL_EZPASSIL = 73; - - // IL, USA. - US_IL_IPASS = 72; - - // IN, USA. - US_IN_EZPASSIN = 26; - - // KS, USA. - US_KS_BESTPASS_HORIZON = 27; - - // KS, USA. - US_KS_KTAG = 28; - - // KS, USA. - US_KS_NATIONALPASS = 29; - - // KS, USA. - US_KS_PREPASS_ELITEPASS = 30; - - // KY, USA. - US_KY_RIVERLINK = 31; - - // LA, USA. - US_LA_GEAUXPASS = 32; - - // LA, USA. - US_LA_TOLL_TAG = 33; - - // MA, USA. - US_MA_EZPASSMA = 6; - - // MD, USA. - US_MD_EZPASSMD = 34; - - // ME, USA. - US_ME_EZPASSME = 35; - - // MI, USA. - US_MI_AMBASSADOR_BRIDGE_PREMIER_COMMUTER_CARD = 36; - - // MI, USA. - US_MI_GROSSE_ILE_TOLL_BRIDGE_PASS_TAG = 37; - - // MI, USA. - US_MI_IQ_PROX_CARD = 38; - - // MI, USA. - US_MI_MACKINAC_BRIDGE_MAC_PASS = 39; - - // MI, USA. - US_MI_NEXPRESS_TOLL = 40; - - // MN, USA. - US_MN_EZPASSMN = 41; - - // NC, USA. - US_NC_EZPASSNC = 42; - - // NC, USA. - US_NC_PEACH_PASS = 87; - - // NC, USA. - US_NC_QUICK_PASS = 43; - - // NH, USA. - US_NH_EZPASSNH = 80; - - // NJ, USA. - US_NJ_DOWNBEACH_EXPRESS_PASS = 75; - - // NJ, USA. - US_NJ_EZPASSNJ = 74; - - // NY, USA. - US_NY_EXPRESSPASS = 76; - - // NY, USA. - US_NY_EZPASSNY = 77; - - // OH, USA. - US_OH_EZPASSOH = 44; - - // PA, USA. - US_PA_EZPASSPA = 45; - - // RI, USA. - US_RI_EZPASSRI = 46; - - // SC, USA. - US_SC_PALPASS = 47; - - // TX, USA. - US_TX_BANCPASS = 48; - - // TX, USA. - US_TX_DEL_RIO_PASS = 49; - - // TX, USA. - US_TX_EFAST_PASS = 50; - - // TX, USA. - US_TX_EAGLE_PASS_EXPRESS_CARD = 51; - - // TX, USA. - US_TX_EPTOLL = 52; - - // TX, USA. - US_TX_EZ_CROSS = 53; - - // TX, USA. - US_TX_EZTAG = 54; - - // TX, USA. - US_TX_LAREDO_TRADE_TAG = 55; - - // TX, USA. - US_TX_PLUSPASS = 56; - - // TX, USA. - US_TX_TOLLTAG = 57; - - // TX, USA. - US_TX_TXTAG = 58; - - // TX, USA. - US_TX_XPRESS_CARD = 59; - - // UT, USA. - US_UT_ADAMS_AVE_PARKWAY_EXPRESSCARD = 60; - - // VA, USA. - US_VA_EZPASSVA = 61; - - // WA, USA. - US_WA_BREEZEBY = 17; - - // WA, USA. - US_WA_GOOD_TO_GO = 1; - - // WV, USA. - US_WV_EZPASSWV = 62; - - // WV, USA. - US_WV_MEMORIAL_BRIDGE_TICKETS = 63; - - // WV, USA. - US_WV_NEWELL_TOLL_BRIDGE_TICKET = 64; -} diff --git a/third_party/googleapis/google/maps/routes/v1/vehicle_emission_type.proto b/third_party/googleapis/google/maps/routes/v1/vehicle_emission_type.proto deleted file mode 100644 index 2a098f0..0000000 --- a/third_party/googleapis/google/maps/routes/v1/vehicle_emission_type.proto +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "VehicleEmissionTypeProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// A set of values describing the vehicle's emission type. -// Applies only to the DRIVE travel mode. -enum VehicleEmissionType { - // No emission type specified. Default to GASOLINE. - VEHICLE_EMISSION_TYPE_UNSPECIFIED = 0; - - // Gasoline/petrol fueled vehicle. - GASOLINE = 1; - - // Electricity powered vehicle. - ELECTRIC = 2; - - // Hybrid fuel (such as gasoline + electric) vehicle. - HYBRID = 3; -} diff --git a/third_party/googleapis/google/maps/routes/v1/waypoint.proto b/third_party/googleapis/google/maps/routes/v1/waypoint.proto deleted file mode 100644 index 25de06a..0000000 --- a/third_party/googleapis/google/maps/routes/v1/waypoint.proto +++ /dev/null @@ -1,83 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1; - -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1;routes"; -option java_multiple_files = true; -option java_outer_classname = "WaypointProto"; -option java_package = "com.google.maps.routes.v1"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1"; - -// Encapsulates a waypoint. Waypoints mark both the beginning and end of a -// route, and include intermediate stops along the route. -message Waypoint { - // Different ways to represent a location. - oneof location_type { - // A point specified using geographic coordinates, including an optional - // heading. - Location location = 1; - - // The POI Place ID associated with the waypoint. - string place_id = 2; - } - - // Marks this waypoint as a milestone rather a stopping point. For - // each non-via waypoint in the request, the response appends an entry to the - // `legs` array to provide the details for stopovers on that leg of the - // trip. Set this value to true when you want the route to pass through this - // waypoint without stopping over. Via waypoints don't cause an entry to be - // added to the `legs` array, but they do route the journey through the - // waypoint. You can only set this value on waypoints that are intermediates. - // The request fails if you set this field on terminal waypoints. - // If ComputeRoutesRequest.optimize_waypoint_order is set to true then - // this field cannot be set to true; otherwise, the request fails. - bool via = 3; - - // Indicates that the waypoint is meant for vehicles to stop at, where the - // intention is to either pickup or drop-off. When you set this value, the - // calculated route won't include non-`via` waypoints on roads that are - // unsuitable for pickup and drop-off. This option works only for `DRIVE` and - // `TWO_WHEELER` travel modes, and when the `location_type` is `location`. - bool vehicle_stopover = 4; - - // Indicates that the location of this waypoint is meant to have a preference - // for the vehicle to stop at a particular side of road. When you set this - // value, the route will pass through the location so that the vehicle can - // stop at the side of road that the location is biased towards from the - // center of the road. This option works only for 'DRIVE' and 'TWO_WHEELER' - // travel modes, and when the 'location_type' is set to 'location'. - bool side_of_road = 5; -} - -// Encapsulates a location (a geographic point, and an optional heading). -message Location { - // The waypoint's geographic coordinates. - google.type.LatLng lat_lng = 1; - - // The compass heading associated with the direction of the flow of traffic. - // This value is used to specify the side of the road to use for pickup and - // drop-off. Heading values can be from 0 to 360, where 0 specifies a heading - // of due North, 90 specifies a heading of due East, etc. You can use this - // field only for `DRIVE` and `TWO_WHEELER` travel modes. - google.protobuf.Int32Value heading = 2; -} diff --git a/third_party/googleapis/google/maps/routes/v1alpha/BUILD.bazel b/third_party/googleapis/google/maps/routes/v1alpha/BUILD.bazel deleted file mode 100644 index e5321c5..0000000 --- a/third_party/googleapis/google/maps/routes/v1alpha/BUILD.bazel +++ /dev/null @@ -1,166 +0,0 @@ -# This file was automatically generated by BuildFileGenerator - -# This is an API workspace, having public visibility by default makes perfect sense. -package(default_visibility = ["//visibility:public"]) - -############################################################################## -# Common -############################################################################## -load("@rules_proto//proto:defs.bzl", "proto_library") - -proto_library( - name = "routes_proto", - srcs = [ - "route_service.proto", - ], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/maps/routes/v1:routes_proto", - ], -) - -############################################################################## -# Java -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "java_grpc_library", - "java_proto_library", -) - -java_proto_library( - name = "routes_java_proto", - deps = [":routes_proto"], -) - -java_grpc_library( - name = "routes_java_grpc", - srcs = [":routes_proto"], - deps = [":routes_java_proto"], -) - -############################################################################## -# Go -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "go_proto_library", -) - -go_proto_library( - name = "routes_go_proto", - compilers = ["@io_bazel_rules_go//proto:go_grpc"], - importpath = "google.golang.org/genproto/googleapis/maps/routes/v1alpha", - protos = [":routes_proto"], - deps = [ - "//google/api:annotations_go_proto", - "//google/maps/routes/v1:routes_go_proto", - ], -) - -############################################################################## -# Python -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "moved_proto_library", - "py_grpc_library", - "py_proto_library", -) - -moved_proto_library( - name = "routes_moved_proto", - srcs = [":routes_proto"], - deps = [ - "//google/api:annotations_proto", - "//google/api:client_proto", - "//google/maps/routes/v1:routes_proto", - ], -) - -py_proto_library( - name = "routes_py_proto", - deps = [":routes_moved_proto"], -) - -py_grpc_library( - name = "routes_py_grpc", - srcs = [":routes_moved_proto"], - deps = [":routes_py_proto"], -) - -############################################################################## -# PHP -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "php_grpc_library", - "php_proto_library", -) - -php_proto_library( - name = "routes_php_proto", - deps = [":routes_proto"], -) - -php_grpc_library( - name = "routes_php_grpc", - srcs = [":routes_proto"], - deps = [":routes_php_proto"], -) - -############################################################################## -# Node.js -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "nodejs_gapic_assembly_pkg", - "nodejs_gapic_library", -) - - -############################################################################## -# Ruby -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "ruby_grpc_library", - "ruby_proto_library", -) - -ruby_proto_library( - name = "routes_ruby_proto", - deps = [":routes_proto"], -) - -ruby_grpc_library( - name = "routes_ruby_grpc", - srcs = [":routes_proto"], - deps = [":routes_ruby_proto"], -) - -############################################################################## -# C# -############################################################################## -load( - "@com_google_googleapis_imports//:imports.bzl", - "csharp_grpc_library", - "csharp_proto_library", -) - -csharp_proto_library( - name = "routes_csharp_proto", - deps = [":routes_proto"], -) - -csharp_grpc_library( - name = "routes_csharp_grpc", - srcs = [":routes_proto"], - deps = [":routes_csharp_proto"], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ code here diff --git a/third_party/googleapis/google/maps/routes/v1alpha/route_service.proto b/third_party/googleapis/google/maps/routes/v1alpha/route_service.proto deleted file mode 100644 index fb2167a..0000000 --- a/third_party/googleapis/google/maps/routes/v1alpha/route_service.proto +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.maps.routes.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/maps/routes/v1/compute_custom_routes_request.proto"; -import "google/maps/routes/v1/compute_custom_routes_response.proto"; -import "google/maps/routes/v1/compute_route_matrix_request.proto"; -import "google/maps/routes/v1/compute_routes_request.proto"; -import "google/maps/routes/v1/compute_routes_response.proto"; -import "google/maps/routes/v1/route_matrix_element.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routes.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/routes/v1alpha;routes"; -option java_multiple_files = true; -option java_outer_classname = "RoutesServiceAlphaProto"; -option java_package = "com.google.maps.routes.v1alpha"; -option objc_class_prefix = "GMRS"; -option php_namespace = "Google\\Maps\\Routes\\V1alpha"; - -// The Routes Preferred API. -service RoutesAlpha { - option (google.api.default_host) = "routespreferred.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/maps-platform.routespreferred"; - - // Returns the primary route along with optional alternate routes, given a set - // of terminal and intermediate waypoints. - // - // **NOTE:** This method requires that you specify a response field mask in - // the input. You can provide the response field mask by using the URL - // parameter `$fields` or `fields`, or by using the HTTP/gRPC header - // `X-Goog-FieldMask` (see the [available URL parameters and - // headers](https://cloud.google.com/apis/docs/system-parameters). The value - // is a comma separated list of field paths. See this detailed documentation - // about [how to construct the field - // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). - // - // For example, in this method: - // - // * Field mask of all available fields (for manual inspection): - // `X-Goog-FieldMask: *` - // * Field mask of Route-level duration, distance, and polyline (an example - // production setup): - // `X-Goog-FieldMask: - // routes.duration,routes.distanceMeters,routes.polyline.encodedPolyline` - // - // Google discourages the use of the wildcard (`*`) response field mask, or - // specifying the field mask at the top level (`routes`), because: - // - // * Selecting only the fields that you need helps our server save computation - // cycles, allowing us to return the result to you with a lower latency. - // * Selecting only the fields that you need in your production job ensures - // stable latency performance. We might add more response fields in the - // future, and those new fields might require extra computation time. If you - // select all fields, or if you select all fields at the top level, then you - // might experience performance degradation because any new field we add will - // be automatically included in the response. - // * Selecting only the fields that you need results in a smaller response - // size, and thus higher network throughput. - rpc ComputeRoutes(google.maps.routes.v1.ComputeRoutesRequest) returns (google.maps.routes.v1.ComputeRoutesResponse) { - option (google.api.http) = { - post: "/v1alpha:computeRoutes" - body: "*" - }; - } - - // Takes in a list of origins and destinations and returns a stream containing - // route information for each combination of origin and destination. - // - // **NOTE:** This method requires that you specify a response field mask in - // the input. You can provide the response field mask by using the URL - // parameter `$fields` or `fields`, or by using the HTTP/gRPC header - // `X-Goog-FieldMask` (see the [available URL parameters and - // headers](https://cloud.google.com/apis/docs/system-parameters). The value - // is a comma separated list of field paths. See this detailed documentation - // about [how to construct the field - // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). - // - // For example, in this method: - // - // * Field mask of all available fields (for manual inspection): - // `X-Goog-FieldMask: *` - // * Field mask of route durations, distances, element status, condition, and - // element indices (an example production setup): - // `X-Goog-FieldMask: - // originIndex,destinationIndex,status,condition,distanceMeters,duration` - // - // It is critical that you include `status` in your field mask as otherwise - // all messages will appear to be OK. Google discourages the use of the - // wildcard (`*`) response field mask, because: - // - // * Selecting only the fields that you need helps our server save computation - // cycles, allowing us to return the result to you with a lower latency. - // * Selecting only the fields that you need in your production job ensures - // stable latency performance. We might add more response fields in the - // future, and those new fields might require extra computation time. If you - // select all fields, or if you select all fields at the top level, then you - // might experience performance degradation because any new field we add will - // be automatically included in the response. - // * Selecting only the fields that you need results in a smaller response - // size, and thus higher network throughput. - rpc ComputeRouteMatrix(google.maps.routes.v1.ComputeRouteMatrixRequest) returns (stream google.maps.routes.v1.RouteMatrixElement) { - option (google.api.http) = { - post: "/v1alpha:computeRouteMatrix" - body: "*" - }; - } - - // Given a set of terminal and intermediate waypoints, and a route objective, - // computes the best route for the route objective. Also returns fastest route - // and shortest route as reference routes. - // - // **NOTE:** This method requires that you specify a response field mask in - // the input. You can provide the response field mask by using the URL - // parameter `$fields` or `fields`, or by using the HTTP/gRPC header - // `X-Goog-FieldMask` (see the [available URL parameters and - // headers](https://cloud.google.com/apis/docs/system-parameters). The value - // is a comma separated list of field paths. See this detailed documentation - // about [how to construct the field - // paths](https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/field_mask.proto). - // - // For example, in this method: - // - // * Field mask of all available fields (for manual inspection): - // `X-Goog-FieldMask: *` - // * Field mask of route distances, durations, token and toll info: - // `X-Goog-FieldMask: - // routes.route.distanceMeters,routes.route.duration,routes.token,routes.route.travelAdvisory.tollInfo` - // - // Google discourages the use of the wildcard (`*`) response field mask, or - // specifying the field mask at the top level (`routes`), because: - // - // * Selecting only the fields that you need helps our server save computation - // cycles, allowing us to return the result to you with a lower latency. - // * Selecting only the fields that you need in your production job ensures - // stable latency performance. We might add more response fields in the - // future, and those new fields might require extra computation time. If you - // select all fields, or if you select all fields at the top level, then you - // might experience performance degradation because any new field we add will - // be automatically included in the response. - // * Selecting only the fields that you need results in a smaller response - // size, and thus higher network throughput. - rpc ComputeCustomRoutes(google.maps.routes.v1.ComputeCustomRoutesRequest) returns (google.maps.routes.v1.ComputeCustomRoutesResponse) { - option (google.api.http) = { - post: "/v1alpha:computeCustomRoutes" - body: "*" - }; - } -} diff --git a/third_party/googleapis/google/maps/routes/v1alpha/routespreferred_v1alpha.yaml b/third_party/googleapis/google/maps/routes/v1alpha/routespreferred_v1alpha.yaml deleted file mode 100644 index 6d87f36..0000000 --- a/third_party/googleapis/google/maps/routes/v1alpha/routespreferred_v1alpha.yaml +++ /dev/null @@ -1,7 +0,0 @@ -type: google.api.Service -config_version: 3 -name: routespreferred.googleapis.com -title: Routes Preferred API - -apis: -- name: google.maps.routes.v1alpha.RoutesAlpha |
