diff options
| author | n1c00o <n@nc0.fr> | 2023-02-05 11:29:53 +0100 | 
|---|---|---|
| committer | Nicolas <34602094+n1c00o@users.noreply.github.com> | 2023-02-06 22:35:54 +0100 | 
| commit | 24cd243c8768452d77df349b1f0988bcab497ff1 (patch) | |
| tree | ff49e4ee9a2378481d25b36c8fb8b037212598cd /third_party/googleapis/google/maps | |
| parent | ad8afa40ffeea085e1705b455abf4379a06a5a83 (diff) | |
Deleting current code
Diffstat (limited to 'third_party/googleapis/google/maps')
103 files changed, 0 insertions, 13796 deletions
diff --git a/third_party/googleapis/google/maps/BUILD.bazel b/third_party/googleapis/google/maps/BUILD.bazel deleted file mode 100644 index d796eca..0000000 --- a/third_party/googleapis/google/maps/BUILD.bazel +++ /dev/null @@ -1,11 +0,0 @@ -package(default_visibility = ["//google/maps:__subpackages__"]) - -sh_binary( -    name = "postprocessing_java", -    srcs = ["postprocessing_java.sh"], -) - -sh_binary( -    name = "postprocessing_py", -    srcs = ["postprocessing_py.sh"], -) diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/BUILD.bazel b/third_party/googleapis/google/maps/addressvalidation/v1/BUILD.bazel deleted file mode 100644 index cab92c4..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/BUILD.bazel +++ /dev/null @@ -1,378 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# 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") - -proto_library( -    name = "addressvalidation_proto", -    srcs = [ -        "address.proto", -        "address_validation_service.proto", -        "geocode.proto", -        "metadata.proto", -        "usps_data.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/geo/type:viewport_proto", -        "//google/type:latlng_proto", -        "//google/type:postal_address_proto", -    ], -) - -proto_library_with_info( -    name = "addressvalidation_proto_with_info", -    deps = [ -        ":addressvalidation_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "addressvalidation_java_proto", -    deps = [":addressvalidation_proto"], -) - -java_grpc_library( -    name = "addressvalidation_java_grpc", -    srcs = [":addressvalidation_proto"], -    deps = [":addressvalidation_java_proto"], -) - -java_gapic_library( -    name = "addressvalidation_java_gapic", -    srcs = [":addressvalidation_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "addressvalidation_grpc_service_config.json", -    service_yaml = "addressvalidation_v1.yaml", -    test_deps = [ -        ":addressvalidation_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":addressvalidation_java_proto", -        "//google/api:api_java_proto", -    ], -) - -java_gapic_test( -    name = "addressvalidation_java_gapic_test_suite", -    test_classes = [ -        "com.google.maps.addressvalidation.v1.AddressValidationClientHttpJsonTest", -        "com.google.maps.addressvalidation.v1.AddressValidationClientTest", -    ], -    runtime_deps = [":addressvalidation_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-cloud-maps-addressvalidation-v1-java", -    include_samples = True, -    transport = "grpc+rest", -    deps = [ -        ":addressvalidation_java_gapic", -        ":addressvalidation_java_grpc", -        ":addressvalidation_java_proto", -        ":addressvalidation_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "addressvalidation_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/addressvalidation/v1", -    protos = [":addressvalidation_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/geo/type:viewport_go_proto", -        "//google/type:latlng_go_proto", -        "//google/type:postaladdress_go_proto", -    ], -) - -go_gapic_library( -    name = "addressvalidation_go_gapic", -    srcs = [":addressvalidation_proto_with_info"], -    grpc_service_config = "addressvalidation_grpc_service_config.json", -    importpath = "google.golang.org/google/maps/addressvalidation/v1;addressvalidation", -    metadata = True, -    rest_numeric_enums = True, -    service_yaml = "addressvalidation_v1.yaml", -    transport = "grpc+rest", -    deps = [ -        ":addressvalidation_go_proto", -    ], -) - -go_test( -    name = "addressvalidation_go_gapic_test", -    srcs = [":addressvalidation_go_gapic_srcjar_test"], -    embed = [":addressvalidation_go_gapic"], -    importpath = "google.golang.org/google/maps/addressvalidation/v1", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-cloud-maps-addressvalidation-v1-go", -    deps = [ -        ":addressvalidation_go_gapic", -        ":addressvalidation_go_gapic_srcjar-metadata.srcjar", -        ":addressvalidation_go_gapic_srcjar-test.srcjar", -        ":addressvalidation_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "addressvalidation_py_gapic", -    srcs = [":addressvalidation_proto"], -    grpc_service_config = "addressvalidation_grpc_service_config.json", -    service_yaml = "addressvalidation_v1.yaml", -    transport = "grpc", -    deps = [ -    ], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "maps-addressvalidation-v1-py", -    deps = [ -        ":addressvalidation_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "addressvalidation_php_proto", -    deps = [":addressvalidation_proto"], -) - -php_grpc_library( -    name = "addressvalidation_php_grpc", -    srcs = [":addressvalidation_proto"], -    deps = [":addressvalidation_php_proto"], -) - -php_gapic_library( -    name = "addressvalidation_php_gapic", -    srcs = [":addressvalidation_proto_with_info"], -    grpc_service_config = "addressvalidation_grpc_service_config.json", -    service_yaml = "addressvalidation_v1.yaml", -    deps = [ -        ":addressvalidation_php_grpc", -        ":addressvalidation_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-cloud-maps-addressvalidation-v1-php", -    deps = [ -        ":addressvalidation_php_gapic", -        ":addressvalidation_php_grpc", -        ":addressvalidation_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "addressvalidation_nodejs_gapic", -    package_name = "@google-cloud/addressvalidation", -    src = ":addressvalidation_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "addressvalidation_grpc_service_config.json", -    package = "google.maps.addressvalidation.v1", -    service_yaml = "addressvalidation_v1.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "maps-addressvalidation-v1-nodejs", -    deps = [ -        ":addressvalidation_nodejs_gapic", -        ":addressvalidation_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "addressvalidation_ruby_proto", -    deps = [":addressvalidation_proto"], -) - -ruby_grpc_library( -    name = "addressvalidation_ruby_grpc", -    srcs = [":addressvalidation_proto"], -    deps = [":addressvalidation_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "addressvalidation_ruby_gapic", -    srcs = [":addressvalidation_proto_with_info"], -    extra_protoc_parameters = [ -        "ruby-cloud-api-id=addressvalidation.googleapis.com", -        "ruby-cloud-api-shortname=addressvalidation", -        "ruby-cloud-gem-name=google-maps-address_validation-v1", -        "ruby-cloud-product-url=https://developers.google.com/maps/documentation/address-validation/", -    ], -    grpc_service_config = "addressvalidation_grpc_service_config.json", -    ruby_cloud_description = "Address Validation is an API that accepts an address, identifies its components, validates them, normalizes the address for mailing and finds the best known location for it. It can help understand if an address refers to a real place. If the address does not refer to a real place, it can identify possibly wrong components, enabling users to correct them.", -    ruby_cloud_title = "Address Validation V1", -    service_yaml = "addressvalidation_v1.yaml", -    deps = [ -        ":addressvalidation_ruby_grpc", -        ":addressvalidation_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-cloud-maps-addressvalidation-v1-ruby", -    deps = [ -        ":addressvalidation_ruby_gapic", -        ":addressvalidation_ruby_grpc", -        ":addressvalidation_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "addressvalidation_csharp_proto", -    deps = [":addressvalidation_proto"], -) - -csharp_grpc_library( -    name = "addressvalidation_csharp_grpc", -    srcs = [":addressvalidation_proto"], -    deps = [":addressvalidation_csharp_proto"], -) - -csharp_gapic_library( -    name = "addressvalidation_csharp_gapic", -    srcs = [":addressvalidation_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "addressvalidation_grpc_service_config.json", -    service_yaml = "addressvalidation_v1.yaml", -    deps = [ -        ":addressvalidation_csharp_grpc", -        ":addressvalidation_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-cloud-maps-addressvalidation-v1-csharp", -    deps = [ -        ":addressvalidation_csharp_gapic", -        ":addressvalidation_csharp_grpc", -        ":addressvalidation_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "addressvalidation_cc_proto", -    deps = [":addressvalidation_proto"], -) - -cc_grpc_library( -    name = "addressvalidation_cc_grpc", -    srcs = [":addressvalidation_proto"], -    grpc_only = True, -    deps = [":addressvalidation_cc_proto"], -) diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/address.proto b/third_party/googleapis/google/maps/addressvalidation/v1/address.proto deleted file mode 100644 index eacff58..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/address.proto +++ /dev/null @@ -1,145 +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.addressvalidation.v1; - -import "google/api/field_behavior.proto"; -import "google/type/postal_address.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.AddressValidation.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/addressvalidation/v1;addressvalidation"; -option java_multiple_files = true; -option java_outer_classname = "AddressProto"; -option java_package = "com.google.maps.addressvalidation.v1"; -option objc_class_prefix = "GMPAVV1"; -option php_namespace = "Google\\Maps\\AddressValidation\\V1"; -option ruby_package = "Google::Maps::AddressValidation::V1"; - -// Details of the address parsed from the input. -message Address { -  // The corrected address, formatted as a single-line address following the -  // address formatting rules of the region where the address is located. -  string formatted_address = 2; - -  // The validated address represented as a postal address. -  google.type.PostalAddress postal_address = 3; - -  // The individual address components of the formatted and corrected address, -  // along with validation information. This provides information on the -  // validation status of the individual components. -  // -  // Address components are not ordered in a particular way. DO NOT make any -  // assumptions on the ordering of the address components in the list. -  repeated AddressComponent address_components = 4 -      [(google.api.field_behavior) = UNORDERED_LIST]; - -  // The types of components that were expected to be present in a correctly -  // formatted mailing address but were not found in the input AND could -  // not be inferred. Components of this type are not present in -  // `formatted_address`, `postal_address`, or `address_components`. An -  // example might be `['street_number', 'route']` for an input like -  // "Boulder, Colorado, 80301, USA." The list of possible types can be found -  // [here](https://developers.google.com/maps/documentation/geocoding/overview#Types). -  repeated string missing_component_types = 5; - -  // The types of the components that are present in the `address_components` -  // but could not be confirmed to be correct. This field is provided for the -  // sake of convenience: its contents are equivalent to iterating through the -  // `address_components` to find the types of all the components where the -  // [confirmation_level][google.maps.addressvalidation.v1.AddressComponent.confirmation_level] -  // is not -  // [CONFIRMED][google.maps.addressvalidation.v1.AddressComponent.ConfirmationLevel.CONFIRMED] -  // or the -  // [inferred][google.maps.addressvalidation.v1.AddressComponent.inferred] -  // flag is not set to `true`.The list of possible types can be found -  // [here](https://developers.google.com/maps/documentation/geocoding/overview#Types). -  repeated string unconfirmed_component_types = 6; - -  // Any tokens in the input that could not be resolved. This might be an -  // input that was not recognized as a valid part of an address (for example -  // in an input like "123235253253 Main St, San Francisco, CA, 94105", the -  // unresolved tokens may look like `["123235253253"]` since that does not -  // look like a valid street number. -  repeated string unresolved_tokens = 7; -} - -// Represents an address component, such as a street, city, or state. -message AddressComponent { -  // The different possible values for confirmation levels. -  enum ConfirmationLevel { -    // Default value. This value is unused. -    CONFIRMATION_LEVEL_UNSPECIFIED = 0; - -    // We were able to verify that this component exists and makes sense in the -    // context of the rest of the address. -    CONFIRMED = 1; - -    // This component could not be confirmed, but it is plausible that it -    // exists. For example, a street number within a known valid range of -    // numbers on a street where specific house numbers are not known. -    UNCONFIRMED_BUT_PLAUSIBLE = 2; - -    // This component was not confirmed and is likely to be wrong. For -    // example, a neighborhood that does not fit the rest of the address. -    UNCONFIRMED_AND_SUSPICIOUS = 3; -  } - -  // The name for this component. -  ComponentName component_name = 1; - -  // The type of the address component. See -  // [Table 2: Additional types returned by the Places -  // service](https://developers.google.com/places/web-service/supported_types#table2) -  // for a list of possible types. -  string component_type = 2; - -  // Indicates the level of certainty that we have that the component -  // is correct. -  ConfirmationLevel confirmation_level = 3; - -  // Indicates that the component was not part of the input, but we -  // inferred it for the address location and believe it should be provided -  // for a complete address. -  bool inferred = 4; - -  // Indicates the spelling of the component name was corrected in a minor way, -  // for example by switching two characters that appeared in the wrong order. -  // This indicates a cosmetic change. -  bool spell_corrected = 5; - -  // Indicates the name of the component was replaced with a completely -  // different one, for example a wrong postal code being replaced with one that -  // is correct for the address. This is not a cosmetic change, the input -  // component has been changed to a different one. -  bool replaced = 6; - -  // Indicates an address component that is not expected to be present in a -  // postal address for the given region. We have retained it only because it -  // was part of the input. -  bool unexpected = 7; -} - -// A wrapper for the name of the component. -message ComponentName { -  // The name text. For example, "5th Avenue" for a street name or "1253" for a -  // street number. -  string text = 1; - -  // The BCP-47 language code. This will not be present if the component name is -  // not associated with a language, such as a street number. -  string language_code = 2; -} diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/address_validation_service.proto b/third_party/googleapis/google/maps/addressvalidation/v1/address_validation_service.proto deleted file mode 100644 index 4ccbc7e..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/address_validation_service.proto +++ /dev/null @@ -1,275 +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.addressvalidation.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/maps/addressvalidation/v1/address.proto"; -import "google/maps/addressvalidation/v1/geocode.proto"; -import "google/maps/addressvalidation/v1/metadata.proto"; -import "google/maps/addressvalidation/v1/usps_data.proto"; -import "google/type/postal_address.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.AddressValidation.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/addressvalidation/v1;addressvalidation"; -option java_multiple_files = true; -option java_outer_classname = "AddressValidationServiceProto"; -option java_package = "com.google.maps.addressvalidation.v1"; -option objc_class_prefix = "GMPAVV1"; -option php_namespace = "Google\\Maps\\AddressValidation\\V1"; -option ruby_package = "Google::Maps::AddressValidation::V1"; - -// The service for validating addresses. -service AddressValidation { -  option (google.api.default_host) = "addressvalidation.googleapis.com"; - -  // Validates an address. -  rpc ValidateAddress(ValidateAddressRequest) returns (ValidateAddressResponse) { -    option (google.api.http) = { -      post: "/v1:validateAddress" -      body: "*" -    }; -  } - -  // Feedback about the outcome of the sequence of validation attempts. This -  // should be the last call made after a sequence of validation calls for the -  // same address, and should be called once the transaction is concluded. This -  // should only be sent once for the sequence of `ValidateAddress` requests -  // needed to validate an address fully. -  rpc ProvideValidationFeedback(ProvideValidationFeedbackRequest) returns (ProvideValidationFeedbackResponse) { -    option (google.api.http) = { -      post: "/v1:provideValidationFeedback" -      body: "*" -    }; -  } -} - -// The request for validating an address. -message ValidateAddressRequest { -  // Required. The address being validated. Unformatted addresses should be -  // submitted via [`address_lines`][google.type.PostalAddress.address_lines]. -  // -  // The total length of the fields in this input must not exceed 300 -  // characters. -  // -  // Supported regions can be found in the -  // [FAQ](https://developers.google.com/maps/documentation/address-validation/faq#which_regions_are_currently_supported). -  // -  // The [language_code][google.type.PostalAddress.language_code] value in the -  // input address is reserved for future uses and is ignored today. The -  // validated address result will be populated based on the preferred language -  // for the given address, as identified by the system. -  // -  // The Address Validation API ignores the values in -  // [recipients][google.type.PostalAddress.recipients] and -  // [organization][google.type.PostalAddress.organization]. Any values in those -  // fields will be discarded and not returned. Please do not set them. -  google.type.PostalAddress address = 1 [(google.api.field_behavior) = REQUIRED]; - -  // This field must be empty for the first address validation request. If -  // more requests are necessary to fully validate a single address (for -  // example if the changes the user makes after the initial validation need to -  // be re-validated), then each followup request must populate this field with -  // the -  // [response_id][google.maps.addressvalidation.v1.ValidateAddressResponse.response_id] -  // from the very first response in the validation sequence. -  string previous_response_id = 2; - -  // Enables USPS CASS compatible mode. This affects _only_ the -  // [google.maps.addressvalidation.v1.ValidationResult.usps_data] field of -  // [google.maps.addressvalidation.v1.ValidationResult]. Note: for USPS CASS -  // enabled requests for addresses in Puerto Rico, a -  // [google.type.PostalAddress.region_code] of the `address` must be provided -  // as "PR", or an [google.type.PostalAddress.administrative_area] of the -  // `address` must be provided as "Puerto Rico" (case-insensitive) or "PR". -  // -  // It's recommended to use a componentized `address`, or alternatively specify -  // at least two [google.type.PostalAddress.address_lines] where the first line -  // contains the street number and name and the second line contains the city, -  // state, and zip code. -  bool enable_usps_cass = 3; -} - -// The response to an address validation request. -message ValidateAddressResponse { -  // The result of the address validation. -  ValidationResult result = 1; - -  // The UUID that identifies this response. If the address needs to be -  // re-validated, this UUID *must* accompany the new request. -  string response_id = 2; -} - -// The request for sending validation feedback. -message ProvideValidationFeedbackRequest { -  // The possible final outcomes of the sequence of address validation requests -  // needed to validate an address. -  enum ValidationConclusion { -    // This value is unused. -    // If the `ProvideValidationFeedbackRequest.conclusion` field is set to -    // `VALIDATION_CONCLUSION_UNSPECIFIED`, an `INVALID_ARGUMENT` error will be -    // returned. -    VALIDATION_CONCLUSION_UNSPECIFIED = 0; - -    // The version of the address returned by the Address Validation API was -    // used for the transaction. -    VALIDATED_VERSION_USED = 1; - -    // The version of the address provided by the user was used for the -    // transaction -    USER_VERSION_USED = 2; - -    // A version of the address that was entered after the last validation -    // attempt but that was not re-validated was used for the transaction. -    UNVALIDATED_VERSION_USED = 3; - -    // The transaction was abandoned and the address was not used. -    UNUSED = 4; -  } - -  // Required. The outcome of the sequence of validation attempts. -  // -  // If this field is set to `VALIDATION_CONCLUSION_UNSPECIFIED`, an -  // `INVALID_ARGUMENT` error will be returned. -  ValidationConclusion conclusion = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The ID of the response that this feedback is for. This should be the -  // [response_id][google.maps.addressvalidation.v1.ValidateAddressRequest.response_id] -  // from the first response in a series of address validation attempts. -  string response_id = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// The response for validation feedback. -// -// The response is empty if the feedback is sent successfully. -message ProvideValidationFeedbackResponse { - -} - -// The result of validating an address. -message ValidationResult { -  // Overall verdict flags -  Verdict verdict = 1; - -  // Information about the address itself as opposed to the geocode. -  Address address = 2; - -  // Information about the location and place that the address geocoded to. -  Geocode geocode = 3; - -  // Other information relevant to deliverability. -  AddressMetadata metadata = 4; - -  // Extra deliverability flags provided by USPS. Only provided in region `US` -  // and `PR`. -  UspsData usps_data = 5; -} - -// High level overview of the address validation result and geocode. -message Verdict { -  // The various granularities that an address or a geocode can have. -  // When used to indicate granularity for an *address*, these values indicate -  // with how fine a granularity the address identifies a mailing destination. -  // For example, an address such as "123 Main Street, Redwood City, CA, 94061" -  // identifies a `PREMISE` while something like "Redwood City, CA, 94061" -  // identifies a `LOCALITY`. However, if we are unable to find a geocode for -  // "123 Main Street" in Redwood City, the geocode returned might be of -  // `LOCALITY` granularity even though the address is more granular. -  enum Granularity { -    // Default value. This value is unused. -    GRANULARITY_UNSPECIFIED = 0; - -    // Below-building level result, such as an apartment. -    SUB_PREMISE = 1; - -    // Building-level result. -    PREMISE = 2; - -    // A geocode that should be very close to the building-level location of -    // the address. Only used for geocodes and not for addresses. -    PREMISE_PROXIMITY = 3; - -    // The address or geocode indicates a block. Only used in regions which -    // have block-level addressing, such as Japan. -    BLOCK = 4; - -    // The geocode or address is granular to route, such as a street, road, or -    // highway. -    ROUTE = 5; - -    // All other granularities, which are bucketed together since they are not -    // deliverable. -    OTHER = 6; -  } - -  // The granularity of the **input** address. This is the result of parsing the -  // input address and does not give any validation signals. For validation -  // signals, refer to `validation_granularity` below. -  // -  // For example, if the input address includes a specific apartment number, -  // then the `input_granularity` here will be `SUB_PREMISE`. If we cannot match -  // the apartment number in the databases or the apartment number is invalid, -  // the `validation_granularity` will likely be `PREMISE` or below. -  Granularity input_granularity = 1; - -  // The granularity level that the API can fully **validate** the address to. -  // For example, an `validation_granularity` of `PREMISE` indicates all address -  // components at the level of `PREMISE` or more coarse can be validated. -  // -  // Per address component validation result can be found in -  // [google.maps.addressvalidation.v1.Address.address_components]. -  Granularity validation_granularity = 2; - -  // Information about the granularity of the -  // [`geocode`][google.maps.addressvalidation.v1.ValidationResult.geocode]. -  // This can be understood as the semantic meaning of how coarse or fine the -  // geocoded location is. -  // -  // This can differ from the `validation_granularity` above occasionally. For -  // example, our database might record the existence of an apartment number but -  // do not have a precise location for the apartment within a big apartment -  // complex. In that case, the `validation_granularity` will be `SUB_PREMISE` -  // but the `geocode_granularity` will be `PREMISE`. -  Granularity geocode_granularity = 3; - -  // The address is considered complete if there are no unresolved tokens, no -  // unexpected or missing address components. See -  // [`missing_component_types`][google.maps.addressvalidation.v1.Address.missing_component_types], -  // [`unresolved_tokens`][google.maps.addressvalidation.v1.Address.unresolved_tokens] -  // or -  // [`unexpected`][google.maps.addressvalidation.v1.AddressComponent.unexpected] -  // fields for more details. -  bool address_complete = 4; - -  // At least one address component cannot be categorized or validated, see -  // [google.maps.addressvalidation.v1.Address.address_components] for -  // details. -  bool has_unconfirmed_components = 5; - -  // At least one address component was inferred (added) that wasn't in the -  // input, see -  // [google.maps.addressvalidation.v1.Address.address_components] for -  // details. -  bool has_inferred_components = 6; - -  // At least one address component was replaced, see -  // [google.maps.addressvalidation.v1.Address.address_components] for -  // details. -  bool has_replaced_components = 7; -} diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/addressvalidation_grpc_service_config.json b/third_party/googleapis/google/maps/addressvalidation/v1/addressvalidation_grpc_service_config.json deleted file mode 100644 index 994e35d..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/addressvalidation_grpc_service_config.json +++ /dev/null @@ -1,15 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [ -      { "service": "google.maps.addressvalidation.v1.AddressValidation" } -    ], -    "timeout": "60s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "10s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }] -} diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/addressvalidation_v1.yaml b/third_party/googleapis/google/maps/addressvalidation/v1/addressvalidation_v1.yaml deleted file mode 100644 index b053120..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/addressvalidation_v1.yaml +++ /dev/null @@ -1,15 +0,0 @@ -type: google.api.Service -config_version: 3 -name: addressvalidation.googleapis.com -title: Address Validation API - -apis: -- name: google.maps.addressvalidation.v1.AddressValidation - -documentation: -  summary: |- -    The Address Validation API allows developers to verify the accuracy of -    addresses. Given an address, it returns information about the correctness -    of the components of the parsed address, a geocode, and a verdict on the -    deliverability of the parsed address. -  overview: The Address Validation API allows developers to ... diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/geocode.proto b/third_party/googleapis/google/maps/addressvalidation/v1/geocode.proto deleted file mode 100644 index 2a7f86c..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/geocode.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.addressvalidation.v1; - -import "google/geo/type/viewport.proto"; -import "google/type/latlng.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.AddressValidation.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/addressvalidation/v1;addressvalidation"; -option java_multiple_files = true; -option java_outer_classname = "GeocodeProto"; -option java_package = "com.google.maps.addressvalidation.v1"; -option objc_class_prefix = "GMPAVV1"; -option php_namespace = "Google\\Maps\\AddressValidation\\V1"; -option ruby_package = "Google::Maps::AddressValidation::V1"; - -// Contains information about the place the input was geocoded to. -message Geocode { -  // The geocoded location of the input. -  // -  // Using place IDs is preferred over using addresses, -  // latitude/longitude coordinates, or plus codes. Using coordinates when -  // routing or calculating driving directions will always result in the point -  // being snapped to the road nearest to those coordinates. This may not be a -  // road that will quickly or safely lead to the destination and may not be -  // near an access point to the property. Additionally, when a location is -  // reverse geocoded, there is no guarantee that the returned address will -  // match the original. -  google.type.LatLng location = 1; - -  // The plus code corresponding to the `location`. -  PlusCode plus_code = 2; - -  // The bounds of the geocoded place. -  google.geo.type.Viewport bounds = 4; - -  // The size of the geocoded place, in meters. This is another measure of the -  // coarseness of the geocoded location, but in physical size rather than in -  // semantic meaning. -  float feature_size_meters = 5; - -  // The PlaceID of the place this input geocodes to. -  // -  // For more information about Place IDs see -  // [here](https://developers.google.com/maps/documentation/places/web-service/place-id). -  string place_id = 6; - -  // The type(s) of place that the input geocoded to. For example, -  // `['locality', 'political']`. The full list of types can be found -  // [here](https://developers.google.com/maps/documentation/geocoding/overview#Types). -  repeated string place_types = 7; -} - -// Plus code (http://plus.codes) is a location reference with two formats: -// global code defining a 14mx14m (1/8000th of a degree) or smaller rectangle, -// and compound code, replacing the prefix with a reference location. -message PlusCode { -  // Place's global (full) code, such as "9FWM33GV+HQ", representing an -  // 1/8000 by 1/8000 degree area (~14 by 14 meters). -  string global_code = 1; - -  // Place's compound code, such as "33GV+HQ, Ramberg, Norway", containing -  // the suffix of the global code and replacing the prefix with a formatted -  // name of a reference entity. -  string compound_code = 2; -} diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/metadata.proto b/third_party/googleapis/google/maps/addressvalidation/v1/metadata.proto deleted file mode 100644 index 625b324..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/metadata.proto +++ /dev/null @@ -1,56 +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.addressvalidation.v1; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.AddressValidation.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/addressvalidation/v1;addressvalidation"; -option java_multiple_files = true; -option java_outer_classname = "MetadataProto"; -option java_package = "com.google.maps.addressvalidation.v1"; -option objc_class_prefix = "GMPAVV1"; -option php_namespace = "Google\\Maps\\AddressValidation\\V1"; -option ruby_package = "Google::Maps::AddressValidation::V1"; - -// The metadata for the address. -message AddressMetadata { -  // Indicates that this address is a high-rise building. -  // If unset, indicates that the value is unknown. -  // -  // DEPRECATED: Please use -  // [`address_record_type`](google.maps.addressvalidation.v1.ValidationResult.usps_data.address_record_type) -  // instead. This field will be removed with the GA release. -  optional bool highrise = 1 [deprecated = true]; - -  // Indicates that this is the address of a business. -  // If unset, indicates that the value is unknown. -  optional bool business = 2; - -  // Indicates that the address of a PO box. -  // If unset, indicates that the value is unknown. -  optional bool po_box = 3; - -  // Indicates that the address is of a multi-family building. -  // If unset, indicates that the value is unknown. -  // -  // DEPRECATED: this field will be removed with the GA release. -  optional bool multi_family = 4 [deprecated = true]; - -  // Indicates that this is the address of a residence. -  // If unset, indicates that the value is unknown. -  optional bool residential = 6; -} diff --git a/third_party/googleapis/google/maps/addressvalidation/v1/usps_data.proto b/third_party/googleapis/google/maps/addressvalidation/v1/usps_data.proto deleted file mode 100644 index 8bd0cd5..0000000 --- a/third_party/googleapis/google/maps/addressvalidation/v1/usps_data.proto +++ /dev/null @@ -1,218 +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.addressvalidation.v1; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.AddressValidation.V1"; -option go_package = "google.golang.org/genproto/googleapis/maps/addressvalidation/v1;addressvalidation"; -option java_multiple_files = true; -option java_outer_classname = "UspsDataProto"; -option java_package = "com.google.maps.addressvalidation.v1"; -option objc_class_prefix = "GMPAVV1"; -option php_namespace = "Google\\Maps\\AddressValidation\\V1"; -option ruby_package = "Google::Maps::AddressValidation::V1"; - -// USPS representation of a US address. -message UspsAddress { -  // First address line. -  string first_address_line = 1; - -  // Firm name. -  string firm = 2; - -  // Second address line. -  string second_address_line = 3; - -  // Puerto Rican urbanization name. -  string urbanization = 4; - -  // City + state + postal code. -  string city_state_zip_address_line = 5; - -  // City name. -  string city = 6; - -  // 2 letter state code. -  string state = 7; - -  // Postal code e.g. 10009. -  string zip_code = 8; - -  // 4-digit postal code extension e.g. 5023. -  string zip_code_extension = 9; -} - -// The USPS data for the address. -message UspsData { -  // USPS standardized address. -  UspsAddress standardized_address = 1; - -  // 2 digit delivery point code -  string delivery_point_code = 2; - -  // The delivery point check digit. This number is added to the end of the -  // delivery_point_barcode for mechanically scanned mail. Adding all the -  // digits of the delivery_point_barcode, delivery_point_check_digit, postal -  // code, and ZIP+4 together should yield a number divisible by 10. -  string delivery_point_check_digit = 3; - -  // The possible values for DPV confirmation. Returns a single character. -  // -  // * `Y`: Address was DPV confirmed for primary and any secondary numbers. -  // * `N`: Primary and any secondary number information failed to -  // DPV confirm. -  // * `S`: Address was DPV confirmed for the primary number only, and the -  // secondary number information was present by not confirmed. -  // * `D`: Address was DPV confirmed for the primary number only, and the -  // secondary number information was missing. -  string dpv_confirmation = 4; - -  // The footnotes from delivery point validation. -  // Multiple footnotes may be strung together in the same string. -  // -  // * `AA`: Input address matched to the ZIP+4 file -  // * `A1`: Input address was not matched to the ZIP+4 file -  // * `BB`: Matched to DPV (all components) -  // * `CC`: Secondary number not matched (present but invalid) -  // * `N1`: High-rise address missing secondary number -  // * `M1`: Primary number missing -  // * `M3`: Primary number invalid -  // * `P1`: Input address RR or HC box number missing -  // * `P3`: Input address PO, RR, or HC Box number invalid -  // * `F1`: Input address matched to a military address -  // * `G1`: Input address matched to a general delivery address -  // * `U1`: Input address matched to a unique ZIP code -  // * `PB`: Input address matched to PBSA record -  // * `RR`: DPV confirmed address with PMB information -  // * `R1`: DPV confirmed address without PMB information -  // * `R7`: Carrier Route R777 or R779 record -  string dpv_footnote = 5; - -  // Indicates if the address is a CMRA (Commercial Mail Receiving Agency)--a -  // private business receiving mail for clients. Returns a single character. -  // -  // * `Y`: The address is a CMRA -  // * `N`: The address is not a CMRA -  string dpv_cmra = 6; - -  // Is this place vacant? -  // Returns a single character. -  // -  // * `Y`: The address is vacant -  // * `N`: The address is not vacant -  string dpv_vacant = 7; - -  // Is this a no stat address or an active address? -  // No stat addresses are ones which are not continuously occupied or addresses -  // that the USPS does not service. Returns a single character. -  // -  // * `Y`: The address is not active -  // * `N`: The address is active -  string dpv_no_stat = 8; - -  // The carrier route code. -  // A four character code--a one letter prefix and a three digit route -  // designator. -  // -  // Prefixes: -  // -  // * `C`: Carrier route (or city route) -  // * `R`: Rural route -  // * `H`: Highway Contract Route -  // * `B`: Post Office Box Section -  // * `G`: General delivery unit -  string carrier_route = 9; - -  // Carrier route rate sort indicator. -  string carrier_route_indicator = 10; - -  // The delivery address is matchable, but the EWS file indicates that an exact -  // match will be available soon. -  bool ews_no_match = 11; - -  // Main post office city. -  string post_office_city = 12; - -  // Main post office state. -  string post_office_state = 13; - -  // Abbreviated city. -  string abbreviated_city = 14; - -  // FIPS county code. -  string fips_county_code = 15; - -  // County name. -  string county = 16; - -  // Enhanced Line of Travel (eLOT) number. -  string elot_number = 17; - -  // eLOT Ascending/Descending Flag (A/D). -  string elot_flag = 18; - -  // LACSLink return code. -  string lacs_link_return_code = 19; - -  // LACSLink indicator. -  string lacs_link_indicator = 20; - -  // PO Box only postal code. -  bool po_box_only_postal_code = 21; - -  // Footnotes from matching a street or highrise record to suite information. -  // If business name match is found, the secondary number is returned. -  // -  // * `A`: SuiteLink record match, business address improved. -  // * `00`: No match, business address is not improved. -  string suitelink_footnote = 22; - -  // PMB (Private Mail Box) unit designator. -  string pmb_designator = 23; - -  // PMB (Private Mail Box) number; -  string pmb_number = 24; - -  // Type of the address record that matches the input address. -  // -  // * `F`: FIRM. This is a match to a Firm Record, which is the finest level of -  // match available for an address. -  // * `G`: GENERAL DELIVERY. This is a match to a General Delivery record. -  // * `H`: BUILDING / APARTMENT. This is a match to a Building or Apartment -  // record. -  // * `P`: POST OFFICE BOX. This is a match to a Post Office Box. -  // * `R`: RURAL ROUTE or HIGHWAY CONTRACT: This is a match to either a Rural -  // Route or a Highway Contract record, both of which may have associated Box -  // Number ranges. -  // * `S`: STREET RECORD: This is a match to a Street record containing a valid -  // primary number range. -  string address_record_type = 25; - -  // Indicator that a default address was found, but more specific addresses -  // exists. -  bool default_address = 26; - -  // Error message for USPS data retrieval. This is populated when USPS -  // processing is suspended because of the detection of artificially created -  // addresses. -  // -  // The USPS data fields may not be populated when this error is present. -  string error_message = 27; - -  // Indicator that the request has been CASS processed. -  bool cass_processed = 28; -} diff --git a/third_party/googleapis/google/maps/fleetengine/delivery/v1/BUILD.bazel b/third_party/googleapis/google/maps/fleetengine/delivery/v1/BUILD.bazel deleted file mode 100644 index 469e183..0000000 --- a/third_party/googleapis/google/maps/fleetengine/delivery/v1/BUILD.bazel +++ /dev/null @@ -1,370 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# 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") - -proto_library( -    name = "delivery_proto", -    srcs = [ -        "common.proto", -        "delivery_api.proto", -        "delivery_vehicles.proto", -        "header.proto", -        "tasks.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/api:resource_proto", -        "//google/api:routing_proto", -        "//google/geo/type:viewport_proto", -        "//google/type:latlng_proto", -        "@com_google_protobuf//:duration_proto", -        "@com_google_protobuf//:field_mask_proto", -        "@com_google_protobuf//:timestamp_proto", -        "@com_google_protobuf//:wrappers_proto", -    ], -) - -proto_library_with_info( -    name = "delivery_proto_with_info", -    deps = [ -        ":delivery_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "delivery_java_proto", -    deps = [":delivery_proto"], -) - -java_grpc_library( -    name = "delivery_java_grpc", -    srcs = [":delivery_proto"], -    deps = [":delivery_java_proto"], -) - -java_gapic_library( -    name = "delivery_java_gapic", -    srcs = [":delivery_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json", -    service_yaml = "fleetengine.yaml", -    test_deps = [ -        ":delivery_java_grpc", -        "//google/maps/fleetengine/v1:fleetengine_java_proto", -    ], -    transport = "grpc+rest", -    deps = [ -        ":delivery_java_proto", -        "//google/api:api_java_proto", -    ], -) - -java_gapic_test( -    name = "delivery_java_gapic_test_suite", -    test_classes = [ -        "google.maps.fleetengine.delivery.v1.DeliveryServiceClientHttpJsonTest", -        "google.maps.fleetengine.delivery.v1.DeliveryServiceClientTest", -    ], -    runtime_deps = [":delivery_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-maps-fleetengine-delivery-v1-java", -    transport = "grpc+rest", -    deps = [ -        ":delivery_java_gapic", -        ":delivery_java_grpc", -        ":delivery_java_proto", -        ":delivery_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "delivery_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1", -    protos = [":delivery_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/geo/type:viewport_go_proto", -        "//google/type:latlng_go_proto", -    ], -) - -go_gapic_library( -    name = "delivery_go_gapic", -    srcs = [":delivery_proto_with_info"], -    grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json", -    importpath = "google.golang.org/maps/fleetengine/delivery/v1;delivery", -    metadata = True, -    service_yaml = "fleetengine.yaml", -    transport = "grpc+rest", -    deps = [ -        ":delivery_go_proto", -        "@io_bazel_rules_go//proto/wkt:duration_go_proto", -    ], -) - -go_test( -    name = "delivery_go_gapic_test", -    srcs = [":delivery_go_gapic_srcjar_test"], -    embed = [":delivery_go_gapic"], -    importpath = "google.golang.org/maps/fleetengine/delivery/v1", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-maps-fleetengine-delivery-v1-go", -    deps = [ -        ":delivery_go_gapic", -        ":delivery_go_gapic_srcjar-metadata.srcjar", -        ":delivery_go_gapic_srcjar-test.srcjar", -        ":delivery_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -) - -py_gapic_library( -    name = "delivery_py_gapic", -    srcs = [":delivery_proto"], -    grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json", -    transport = "grpc", -    deps = [ -        "//google/geo/type:viewport_py_proto", -    ], -) - -# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1371 is fixed -#py_test( -#    name = "delivery_py_gapic_test", -#    srcs = [ -#        "delivery_py_gapic_pytest.py", -#        "delivery_py_gapic_test.py", -#    ], -#    legacy_create_init = False, -#    deps = [":delivery_py_gapic"], -#) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "maps-fleetengine-delivery-v1-py", -    deps = [ -        ":delivery_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "delivery_php_proto", -    deps = [":delivery_proto"], -) - -php_grpc_library( -    name = "delivery_php_grpc", -    srcs = [":delivery_proto"], -    deps = [":delivery_php_proto"], -) - -php_gapic_library( -    name = "delivery_php_gapic", -    srcs = [":delivery_proto_with_info"], -    grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json", -    service_yaml = "fleetengine.yaml", -    deps = [ -        ":delivery_php_grpc", -        ":delivery_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-maps-fleetengine-delivery-v1-php", -    deps = [ -        ":delivery_php_gapic", -        ":delivery_php_grpc", -        ":delivery_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "delivery_nodejs_gapic", -    package_name = "@googlemaps/fleetengine-delivery", -    src = ":delivery_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json", -    package = "maps.fleetengine.delivery.v1", -    service_yaml = "fleetengine.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "maps-fleetengine-delivery-v1-nodejs", -    deps = [ -        ":delivery_nodejs_gapic", -        ":delivery_proto", -        "//google/geo/type:viewport_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "delivery_ruby_proto", -    deps = [":delivery_proto"], -) - -ruby_grpc_library( -    name = "delivery_ruby_grpc", -    srcs = [":delivery_proto"], -    deps = [":delivery_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "delivery_ruby_gapic", -    srcs = [":delivery_proto_with_info"], -    extra_protoc_parameters = [ -        "ruby-cloud-gem-name=google-maps-fleetengine-delivery-v1", -    ], -    grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json", -    deps = [ -        ":delivery_ruby_grpc", -        ":delivery_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-maps-fleetengine-delivery-v1-ruby", -    deps = [ -        ":delivery_ruby_gapic", -        ":delivery_ruby_grpc", -        ":delivery_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "delivery_csharp_proto", -    deps = [":delivery_proto"], -) - -csharp_grpc_library( -    name = "delivery_csharp_grpc", -    srcs = [":delivery_proto"], -    deps = [":delivery_csharp_proto"], -) - -csharp_gapic_library( -    name = "delivery_csharp_gapic", -    srcs = [":delivery_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "//google/maps/fleetengine/v1:fleetengine_grpc_service_config.json", -    deps = [ -        ":delivery_csharp_grpc", -        ":delivery_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-maps-fleetengine-delivery-v1-csharp", -    deps = [ -        ":delivery_csharp_gapic", -        ":delivery_csharp_grpc", -        ":delivery_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here diff --git a/third_party/googleapis/google/maps/fleetengine/delivery/v1/common.proto b/third_party/googleapis/google/maps/fleetengine/delivery/v1/common.proto deleted file mode 100644 index b6eb280..0000000 --- a/third_party/googleapis/google/maps/fleetengine/delivery/v1/common.proto +++ /dev/null @@ -1,178 +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 maps.fleetengine.delivery.v1; - -import "google/api/field_behavior.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1;delivery"; -option java_multiple_files = true; -option java_outer_classname = "Common"; -option java_package = "google.maps.fleetengine.delivery.v1"; -option objc_class_prefix = "CFED"; - -// Describes a vehicle attribute as a key-value pair. The "key:value" string -// length cannot exceed 256 characters. -message DeliveryVehicleAttribute { -  // The attribute's key. Keys may not contain the colon character (:). -  string key = 1; - -  // The attribute's value. -  string value = 2; -} - -// The location, speed, and heading of a vehicle at a point in time. -message DeliveryVehicleLocation { -  // The location of the vehicle. -  // When it is sent to Fleet Engine, the vehicle's location is a GPS location. -  // When you receive it in a response, the vehicle's location can be either a -  // GPS location, a supplemental location, or some other estimated location. -  // The source is specified in `location_sensor`. -  google.type.LatLng location = 1; - -  // Deprecated: Use `latlng_accuracy` instead. -  google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - -  // Accuracy of `location` in meters as a radius. -  google.protobuf.DoubleValue latlng_accuracy = 22; - -  // Direction the vehicle is moving in degrees.  0 represents North. -  // The valid range is [0,360). -  google.protobuf.Int32Value heading = 2; - -  // Deprecated: Use `heading_accuracy` instead. -  google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - -  // Accuracy of `heading` in degrees. -  google.protobuf.DoubleValue heading_accuracy = 23; - -  // Altitude in meters above WGS84. -  google.protobuf.DoubleValue altitude = 5; - -  // Deprecated: Use `altitude_accuracy` instead. -  google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - -  // Accuracy of `altitude` in meters. -  google.protobuf.DoubleValue altitude_accuracy = 24; - -  // Speed of the vehicle in kilometers per hour. -  // Deprecated: Use `speed` instead. -  google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - -  // Speed of the vehicle in meters/second -  google.protobuf.DoubleValue speed = 6; - -  // Accuracy of `speed` in meters/second. -  google.protobuf.DoubleValue speed_accuracy = 7; - -  // The time when `location` was reported by the sensor according to the -  // sensor's clock. -  google.protobuf.Timestamp update_time = 4; - -  // Output only. The time when the server received the location information. -  google.protobuf.Timestamp server_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Provider of location data (for example, `GPS`). -  DeliveryVehicleLocationSensor location_sensor = 11; - -  // Whether `location` is snapped to a road. -  google.protobuf.BoolValue is_road_snapped = 27; - -  // Input only. Indicates whether the GPS sensor is enabled on the mobile device. -  google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Time (in seconds) since this location was first sent to the server. -  // This will be zero for the first update. If the time is unknown -  // (for example, when the app restarts), this value resets to zero. -  google.protobuf.Int32Value time_since_update = 14 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Number of additional attempts to send this location to the server. -  // If this value is zero, then it is not stale. -  google.protobuf.Int32Value num_stale_updates = 15 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Raw vehicle location (unprocessed by road-snapper). -  google.type.LatLng raw_location = 16; - -  // Input only. Timestamp associated with the raw location. -  google.protobuf.Timestamp raw_location_time = 17 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Source of the raw location. -  DeliveryVehicleLocationSensor raw_location_sensor = 28 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Accuracy of `raw_location` as a radius, in meters. -  google.protobuf.DoubleValue raw_location_accuracy = 25 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Supplemental location provided by the integrating app. -  google.type.LatLng supplemental_location = 18 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Timestamp associated with the supplemental location. -  google.protobuf.Timestamp supplemental_location_time = 19 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Source of the supplemental location. -  DeliveryVehicleLocationSensor supplemental_location_sensor = 20 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Accuracy of `supplemental_location` as a radius, in meters. -  google.protobuf.DoubleValue supplemental_location_accuracy = 21 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Deprecated: Use `is_road_snapped` instead. -  bool road_snapped = 26 [deprecated = true]; -} - -// The sensor or methodology used to determine the location. -enum DeliveryVehicleLocationSensor { -  // The sensor is unspecified or unknown. -  UNKNOWN_SENSOR = 0; - -  // GPS or Assisted GPS. -  GPS = 1; - -  // Assisted GPS, cell tower ID, or WiFi access point. -  NETWORK = 2; - -  // Cell tower ID or WiFi access point. -  PASSIVE = 3; - -  // A location signal snapped to the best road position. -  ROAD_SNAPPED_LOCATION_PROVIDER = 4; - -  // The fused location provider in Google Play services. -  FUSED_LOCATION_PROVIDER = 100; - -  // The location provider on Apple operating systems. -  CORE_LOCATION = 200; -} - -// The vehicle's navigation status. -enum DeliveryVehicleNavigationStatus { -  // Unspecified navigation status. -  UNKNOWN_NAVIGATION_STATUS = 0; - -  // The Driver app's navigation is in `FREE_NAV` mode. -  NO_GUIDANCE = 1; - -  // Turn-by-turn navigation is available and the Driver app navigation has -  // entered `GUIDED_NAV` mode. -  ENROUTE_TO_DESTINATION = 2; - -  // The vehicle has gone off the suggested route. -  OFF_ROUTE = 3; - -  // The vehicle is within approximately 50m of the destination. -  ARRIVED_AT_DESTINATION = 4; -} diff --git a/third_party/googleapis/google/maps/fleetengine/delivery/v1/delivery_api.proto b/third_party/googleapis/google/maps/fleetengine/delivery/v1/delivery_api.proto deleted file mode 100644 index 8b2b402..0000000 --- a/third_party/googleapis/google/maps/fleetengine/delivery/v1/delivery_api.proto +++ /dev/null @@ -1,543 +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 maps.fleetengine.delivery.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/routing.proto"; -import "google/geo/type/viewport.proto"; -import "google/maps/fleetengine/delivery/v1/delivery_vehicles.proto"; -import "google/maps/fleetengine/delivery/v1/header.proto"; -import "google/maps/fleetengine/delivery/v1/tasks.proto"; -import "google/protobuf/field_mask.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1;delivery"; -option java_multiple_files = true; -option java_outer_classname = "DeliveryApi"; -option java_package = "google.maps.fleetengine.delivery.v1"; -option objc_class_prefix = "CFED"; -option (google.api.resource_definition) = { -  type: "fleetengine.googleapis.com/Provider" -  pattern: "providers/{provider}" -}; - -// The Last Mile Delivery service. -service DeliveryService { -  option (google.api.default_host) = "fleetengine.googleapis.com"; - -  // Creates and returns a new `DeliveryVehicle`. -  rpc CreateDeliveryVehicle(CreateDeliveryVehicleRequest) returns (DeliveryVehicle) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/deliveryVehicles" -      body: "delivery_vehicle" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "parent,delivery_vehicle,delivery_vehicle_id"; -  } - -  // Returns the specified `DeliveryVehicle` instance. -  rpc GetDeliveryVehicle(GetDeliveryVehicleRequest) returns (DeliveryVehicle) { -    option (google.api.http) = { -      get: "/v1/{name=providers/*/deliveryVehicles/*}" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Writes updated `DeliveryVehicle` data to Fleet Engine, and assigns -  // `Tasks` to the `DeliveryVehicle`. You cannot update the name of the -  // `DeliveryVehicle`. You *can* update `remaining_vehicle_journey_segments` -  // though, but it must contain all of the `VehicleJourneySegment`s currently -  // on the `DeliveryVehicle`. The `task_id`s are retrieved from -  // `remaining_vehicle_journey_segments`, and their corresponding `Tasks` are -  // assigned to the `DeliveryVehicle` if they have not yet been assigned. -  rpc UpdateDeliveryVehicle(UpdateDeliveryVehicleRequest) returns (DeliveryVehicle) { -    option (google.api.http) = { -      patch: "/v1/{delivery_vehicle.name=providers/*/deliveryVehicles/*}" -      body: "delivery_vehicle" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "delivery_vehicle.name" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "delivery_vehicle,update_mask"; -  } - -  // Creates and returns a batch of new `Task` objects. -  rpc BatchCreateTasks(BatchCreateTasksRequest) returns (BatchCreateTasksResponse) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/tasks:batchCreate" -      body: "*" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Creates and returns a new `Task` object. -  rpc CreateTask(CreateTaskRequest) returns (Task) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/tasks" -      body: "task" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "parent,task,task_id"; -  } - -  // Gets information about a `Task`. -  rpc GetTask(GetTaskRequest) returns (Task) { -    option (google.api.http) = { -      get: "/v1/{name=providers/*/tasks/*}" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Gets all `Task`s with a particular `tracking_id`. -  rpc SearchTasks(SearchTasksRequest) returns (SearchTasksResponse) { -    option (google.api.http) = { -      get: "/v1/{parent=providers/*}/tasks:search" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Updates `Task` data. -  rpc UpdateTask(UpdateTaskRequest) returns (Task) { -    option (google.api.http) = { -      patch: "/v1/{task.name=providers/*/tasks/*}" -      body: "task" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "task.name" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "task,update_mask"; -  } - -  // Gets all `Task`s that meet the specified filtering criteria. -  rpc ListTasks(ListTasksRequest) returns (ListTasksResponse) { -    option (google.api.http) = { -      get: "/v1/{parent=providers/*}/tasks" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Gets all `DeliveryVehicle`s that meet the specified filtering criteria. -  rpc ListDeliveryVehicles(ListDeliveryVehiclesRequest) returns (ListDeliveryVehiclesResponse) { -    option (google.api.http) = { -      get: "/v1/{parent=providers/*}/deliveryVehicles" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -    option (google.api.method_signature) = "parent"; -  } -} - -// The `CreateDeliveryVehicle` request message. -message CreateDeliveryVehicleRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Must be in the format `providers/{provider}`. The provider must be the -  // Google Cloud Project ID. For example, `sample-cloud-project`. -  string parent = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The Delivery Vehicle ID must be unique and subject to the following -  // restrictions: -  // -  // * Must be a valid Unicode string. -  // * Limited to a maximum length of 64 characters. -  // * Normalized according to [Unicode Normalization Form C] -  // (http://www.unicode.org/reports/tr15/). -  // * May not contain any of the following ASCII characters: '/', ':', '?', -  // ',', or '#'. -  string delivery_vehicle_id = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The `DeliveryVehicle` entity to create. When creating a new delivery -  // vehicle, you may set the following optional fields: -  // -  // * last_location -  // * attributes -  // -  // Note: The DeliveryVehicle's `name` field is ignored. All other -  // DeliveryVehicle fields must not be set; otherwise, an error is returned. -  DeliveryVehicle delivery_vehicle = 5 [(google.api.field_behavior) = REQUIRED]; -} - -// The `GetDeliveryVehicle` request message. -// Next id: 4 -message GetDeliveryVehicleRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Must be in the format -  // `providers/{provider}/deliveryVehicles/{delivery_vehicle}`. -  // The `provider` must be the Google Cloud Project ID. For example, -  // `sample-cloud-project`. -  string name = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "fleetengine.googleapis.com/DeliveryVehicle" -    } -  ]; -} - -// The `ListDeliveryVehicles` request message. -message ListDeliveryVehiclesRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Must be in the format `providers/{provider}`. -  // The `provider` must be the Google Cloud Project ID. -  // For example, `sample-cloud-project`. -  string parent = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "fleetengine.googleapis.com/DeliveryVehicle" -    } -  ]; - -  // Optional. The maximum number of vehicles to return. The service may return fewer than -  // this number. If you don't specify this number, then the server determines -  // the number of results to return. -  int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. A page token, received from a previous `ListDeliveryVehicles` call. You -  // must provide this in order to retrieve the subsequent page. -  // -  // When paginating, all other parameters provided to `ListDeliveryVehicles` -  // must match the call that provided the page token. -  string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. A filter query to apply when listing delivery vehicles. See -  // http://aip.dev/160 for examples of the filter syntax. If you don't specify -  // a value, or if you specify an empty string for the filter, then all -  // delivery vehicles are returned. -  // -  // Note that the only queries supported for `ListDeliveryVehicles` are -  // on vehicle attributes (for example, `attributes.<key> = <value>` or -  // `attributes.<key1> = <value1> AND attributes.<key2> = <value2>`). Also, all -  // attributes are stored as strings, so the only supported comparisons against -  // attributes are string comparisons. In order to compare against number or -  // boolean values, the values must be explicitly quoted to be treated as -  // strings (for example, `attributes.<key> = "10"` or -  // `attributes.<key> = "true"`). -  string filter = 6 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. A filter that limits the search area to a rectangle defined by the -  // northeast and southwest corner points. -  // -  // When defined, only vehicles located within the search area are returned. -  google.geo.type.Viewport viewport = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// The `ListDeliveryVehicles` response message. -message ListDeliveryVehiclesResponse { -  // The set of delivery vehicles that meet the requested filtering criteria. -  // When no filter is specified, the request returns all delivery vehicles. A -  // successful response can also be empty. An empty response indicates that no -  // delivery vehicles were found meeting the requested filter criteria. -  repeated DeliveryVehicle delivery_vehicles = 1; - -  // You can pass this token in the `ListDeliveryVehiclesRequest` to continue to -  // list results. When all of the results are returned, this field won't be in -  // the response, or it will be an empty string. -  string next_page_token = 2; - -  // The total number of delivery vehicles that match the request criteria, -  // across all pages. -  int64 total_size = 3; -} - -// The `UpdateDeliveryVehicle` request message. -message UpdateDeliveryVehicleRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. The `DeliveryVehicle` entity update to apply. -  // Note: You cannot update the name of the `DeliveryVehicle`. -  DeliveryVehicle delivery_vehicle = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. A field mask that indicates which `DeliveryVehicle` fields to -  // update. Note that the update_mask must contain at least one field. -  // -  // This is a comma-separated list of fully qualified names of fields. Example: -  // `"remaining_vehicle_journey_segments"`. -  google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// The `BatchCreateTask` request message. -message BatchCreateTasksRequest { -  // Optional. The standard Delivery API request header. -  // Note: If you set this field, then the header field in the -  // `CreateTaskRequest` messages must either be empty, or it must match this -  // field. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. The parent resource shared by all tasks. This value must be in the format -  // `providers/{provider}`. The `provider` must be the Google Cloud Project ID. -  // For example, `sample-cloud-project`. The parent field in the -  // `CreateTaskRequest` messages must either  be empty, or it must match this -  // field. -  string parent = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "fleetengine.googleapis.com/Task" -    } -  ]; - -  // Required. The request message that specifies the resources to create. -  // Note: You can create a maximum of 500 tasks in a batch. -  repeated CreateTaskRequest requests = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// The `BatchCreateTask` response message. -message BatchCreateTasksResponse { -  // The created Tasks. -  repeated Task tasks = 1; -} - -// The `CreateTask` request message. -message CreateTaskRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Must be in the format `providers/{provider}`. The `provider` must be the -  // Google Cloud Project ID. For example, `sample-cloud-project`. -  string parent = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The Task ID must be unique, but it should be not a shipment tracking ID. To -  // store a shipment tracking ID, use the `tracking_id` field. Note that -  // multiple tasks can have the same `tracking_id`. Task IDs are subject to the -  // following restrictions: -  // -  // * Must be a valid Unicode string. -  // * Limited to a maximum length of 64 characters. -  // * Normalized according to [Unicode Normalization Form C] -  // (http://www.unicode.org/reports/tr15/). -  // * May not contain any of the following ASCII characters: '/', ':', '?', -  // ',', or '#'. -  string task_id = 5 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The Task entity to create. -  // When creating a Task, the following fields are required: -  // -  // * `type` -  // * `state` (must be set to `OPEN`) -  // * `tracking_id` (must not be set for `UNAVAILABLE` or `SCHEDULED_STOP` -  // tasks, but required for all other task types) -  // * `planned_location` (optional for `UNAVAILABLE` tasks) -  // * `task_duration` -  // -  // Note: The Task's `name` field is ignored. All other Task fields must not be -  // set; otherwise, an error is returned. -  Task task = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// The `GetTask` request message. -message GetTaskRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Must be in the format `providers/{provider}/tasks/{task}`. The `provider` -  // must be the Google Cloud Project ID. For example, `sample-cloud-project`. -  string name = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "fleetengine.googleapis.com/Task" -    } -  ]; -} - -// The `SearchTasks` request message that contains the `tracking_id`. -message SearchTasksRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Must be in the format `providers/{provider}`. -  // The provider must be the Google Cloud Project ID. For example, -  // `sample-cloud-project`. -  string parent = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The identifier of the set of related Tasks being requested. Tracking IDs -  // are subject to the following restrictions: -  // -  // * Must be a valid Unicode string. -  // * Limited to a maximum length of 64 characters. -  // * Normalized according to [Unicode Normalization Form C] -  // (http://www.unicode.org/reports/tr15/). -  // * May not contain any of the following ASCII characters: '/', ':', '?', -  // ',', or '#'. -  string tracking_id = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Optional. The maximum number of Tasks to return. The service may return fewer than -  // this value. If you don't specify this value, then the server determines the -  // number of results to return. -  int32 page_size = 5 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. A page token, received from a previous `SearchTasks` call. You must -  // provide this value to retrieve the subsequent page. -  // -  // When paginating, all other parameters provided to `SearchTasks` must match -  // the call that provided the page token. -  string page_token = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// The `SearchTasks` response. It contains the set of Tasks that meet the search -// criteria in the `SearchTasksRequest`. -message SearchTasksResponse { -  // The set of Tasks for the requested `tracking_id`. A successful response can -  // also be empty. An empty response indicates that no Tasks are associated -  // with the supplied `tracking_id`. -  repeated Task tasks = 1; - -  // Pass this token in the `SearchTasksRequest` to continue to -  // list results. If all results have been returned, then this field is either -  // an empty string, or it doesn't appear in the response. -  string next_page_token = 2; -} - -// The `UpdateTask` request message. -message UpdateTaskRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. The Task associated with the update. -  // The following fields are maintained by Fleet Engine. Do not update -  // them using `Task.update`. -  // -  //   * `last_location`. -  //   * `last_location_snappable`. -  //   * `name`. -  //   * `remaining_vehicle_journey_segments`. -  //   * `task_outcome_location_source`. -  // -  // Note: You cannot change the value of `task_outcome` once you set it. -  // -  // If the Task has been assigned to a delivery vehicle, then don't set the -  // Task state to CLOSED using `Task.update`. Instead, remove the `VehicleStop` -  // that contains the Task from the delivery vehicle, which automatically sets -  // the Task state to CLOSED. -  Task task = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The field mask that indicates which Task fields to update. -  // Note: The `update_mask` must contain at least one field. -  // -  // This is a comma-separated list of fully qualified names of fields. Example: -  // `"task_outcome,task_outcome_time,task_outcome_location"`. -  google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// The `ListTasks` request message. -message ListTasksRequest { -  // Optional. The standard Delivery API request header. -  DeliveryRequestHeader header = 1 [(google.api.field_behavior) = OPTIONAL]; - -  // Required. Must be in the format `providers/{provider}`. -  // The `provider` must be the Google Cloud Project ID. For example, -  // `sample-cloud-project`. -  string parent = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      child_type: "fleetengine.googleapis.com/Task" -    } -  ]; - -  // Optional. The maximum number of Tasks to return. The service may return fewer than -  // this value. If you don't specify this value, then the server determines the -  // number of results to return. -  int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. A page token received from a previous `ListTasks` call. -  // You can provide this to retrieve the subsequent page. -  // -  // When paginating, all other parameters provided to `ListTasks` must match -  // the call that provided the page token. -  string page_token = 5 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. A filter query to apply when listing Tasks. See http://aip.dev/160 for -  // examples of filter syntax. If you don't specify a value, or if you filter -  // on an empty string, then all Tasks are returned. For information about the -  // Task properties that you can filter on, see -  // [Task -  // list](/maps/documentation/transportation-logistics/last-mile-fleet-solution/fleet-performance/fleet-engine/deliveries_api#list_tasks). -  string filter = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// The `ListTasks` response that contains the set of Tasks that meet the filter -// criteria in the `ListTasksRequest`. -message ListTasksResponse { -  // The set of Tasks that meet the requested filtering criteria. When no filter -  // is specified, the request returns all tasks. A successful response can also -  // be empty. An empty response indicates that no Tasks were found meeting the -  // requested filter criteria. -  repeated Task tasks = 1; - -  // Pass this token in the `ListTasksRequest` to continue to list results. -  // If all results have been returned, then this field is either an empty -  // string, or it doesn't appear in the response. -  string next_page_token = 2; - -  // The total number of Tasks that match the request criteria, across all -  // pages. -  int64 total_size = 3; -} diff --git a/third_party/googleapis/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto b/third_party/googleapis/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto deleted file mode 100644 index c8e759a..0000000 --- a/third_party/googleapis/google/maps/fleetengine/delivery/v1/delivery_vehicles.proto +++ /dev/null @@ -1,234 +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 maps.fleetengine.delivery.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/maps/fleetengine/delivery/v1/common.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1;delivery"; -option java_multiple_files = true; -option java_outer_classname = "DeliveryVehicles"; -option java_package = "google.maps.fleetengine.delivery.v1"; -option objc_class_prefix = "CFED"; - -// The `DeliveryVehicle` message. A delivery vehicle transports shipments from a -// depot to a delivery location, and from a pickup location to the depot. In -// some cases, delivery vehicles also transport shipments directly from the -// pickup location to the delivery location. -// -// Note: gRPC and REST APIs use different field naming conventions. For example, -// the `DeliveryVehicle.current_route_segment` field in the gRPC API and the -// `DeliveryVehicle.currentRouteSegment` field in the REST API refer to the same -// field. -message DeliveryVehicle { -  option (google.api.resource) = { -    type: "fleetengine.googleapis.com/DeliveryVehicle" -    pattern: "providers/{provider}/deliveryVehicles/{vehicle}" -  }; - -  // The unique name of this Delivery Vehicle. -  // The format is `providers/{provider}/deliveryVehicles/{vehicle}`. -  string name = 1; - -  // The last reported location of the Delivery Vehicle. -  DeliveryVehicleLocation last_location = 2; - -  // The Delivery Vehicle's navigation status. -  DeliveryVehicleNavigationStatus navigation_status = 3; - -  // The encoded polyline specifying the route that the navigation recommends -  // taking to the next waypoint. Your driver app updates this when a -  // stop is reached or passed, and when the navigation reroutes. These LatLngs -  // are returned in -  // `Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path` -  // (gRPC) or `Task.journeySharingInfo.remainingVehicleJourneySegments[0].path` -  // (REST) for all active Tasks assigned to the Vehicle. -  // -  // There are a few cases where this field might not be used to populate -  // `Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path` -  // (gRPC) or `Task.journeySharingInfo.remainingVehicleJourneySegments[0].path` -  // (REST): -  // -  // * The endpoint of the `current_route_segment` does not match -  // `DeliveryVehicle.remaining_vehicle_journey_segments[0].stop` (gRPC) or -  // `DeliveryVehicle.remainingVehicleJourneySegments[0].stop` (REST). -  // -  // * The driver app has not updated its location recently, so the last -  // updated value for this field might be stale. -  // -  // * The driver app has recently updated its location, but the -  // `current_route_segment` is stale, and points to a previous vehicle stop. -  // -  // In these cases, Fleet Engine populates this field with a route from the -  // most recently passed VehicleStop to the upcoming VehicleStop to ensure that -  // the consumer of this field has the best available information on the -  // current path of the Delivery Vehicle. -  bytes current_route_segment = 4; - -  // The location where the `current_route_segment` ends. This is not currently -  // populated by the driver app, but you can supply it on -  // `UpdateDeliveryVehicle` calls. It is either the LatLng from the upcoming -  // vehicle stop, or the last LatLng of the `current_route_segment`. Fleet -  // Engine will then do its best to interpolate to an actual `VehicleStop`. -  // -  // This field is ignored in `UpdateDeliveryVehicle` calls if the -  // `current_route_segment` field is empty. -  google.type.LatLng current_route_segment_end_point = 5; - -  // The remaining driving distance for the `current_route_segment`. -  // This value is usually updated by the driver app because it is considered to -  // have more accurate information about the current route than Fleet Engine. -  // However, it might be populated by Fleet Engine. For more information, see -  // [DeliveryVehicle.current_route_segment][maps.fleetengine.delivery.v1.DeliveryVehicle.current_route_segment]. This field is returned in -  // `Task.remaining_vehicle_journey_segments[0].driving_distance_meters` (gRPC) -  // or `Task.remainingVehicleJourneySegments[0].drivingDistanceMeters` (REST) -  // for all active Tasks assigned to the Delivery Vehicle. -  // -  // This field is ignored in `UpdateDeliveryVehicle` calls if the -  // `current_route_segment` field is empty. -  google.protobuf.Int32Value remaining_distance_meters = 6; - -  // The remaining driving time for the `current_route_segment`. -  // This value is usually updated by the driver app because it is considered to -  // have more accurate information about the current route than Fleet Engine. -  // However, it might be populated by Fleet Engine. For more information, see -  // [DeliveryVehicle.current_route_segment][maps.fleetengine.delivery.v1.DeliveryVehicle.current_route_segment]. This field is -  // returned in `Task.remaining_vehicle_journey_segments[0].driving_duration` -  // (gRPC) or `Task.remainingVehicleJourneySegments[0].drivingDuration` (REST) -  // for all active tasks assigned to the Delivery Vehicle. -  // -  // This field is ignored in `UpdateDeliveryVehicle` calls if the -  // `current_route_segment` field is empty. -  google.protobuf.Duration remaining_duration = 7; - -  // The journey segments assigned to this Delivery Vehicle, starting from the -  // Vehicle's most recently reported location. -  repeated VehicleJourneySegment remaining_vehicle_journey_segments = 8; - -  // A list of custom Delivery Vehicle attributes. A Delivery Vehicle can have -  // at most 50 attributes, and each attribute must have a unique key. -  repeated DeliveryVehicleAttribute attributes = 9; -} - -// A location with any additional identifiers. -message LocationInfo { -  // The location's coordinates. -  google.type.LatLng point = 1; -} - -// Represents a Vehicle’s travel segment - from its previous stop to the -// current stop. If it is the first active stop, then it is from the -// Vehicle’s current location to this stop. -message VehicleJourneySegment { -  // Specifies the stop location, along with the Tasks associated with -  // the stop. Some fields of the VehicleStop might not be present if this -  // journey segment is part of `JourneySharingInfo`. -  VehicleStop stop = 1; - -  // Output only. The travel distance from the previous stop to this stop. -  // If the current stop is the first stop in the list of journey -  // segments, then the starting point is the vehicle's location recorded -  // at the time that this stop was added to the list. This field might not be -  // present if this journey segment is part of `JourneySharingInfo`. -  google.protobuf.Int32Value driving_distance_meters = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The travel time from the previous stop to this stop. -  // If the current stop is the first stop in the list of journey -  // segments, then the starting point is the Vehicle's location recorded -  // at the time that this stop was added to the list. -  // -  // If this field is defined in the path -  // `Task.remaining_vehicle_journey_segments[0].driving_duration` (gRPC) or -  // `Task.remainingVehicleJourneySegments[0].drivingDuration` (REST), -  // then it may be populated with the value from -  // `DeliveryVehicle.remaining_duration` (gRPC) or -  // `DeliveryVehicle.remainingDuration` (REST). -  // This provides the remaining driving duration from the driver app's latest -  // known location rather than the driving time from the previous stop. -  google.protobuf.Duration driving_duration = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The path from the previous stop to this stop. If the current stop is the -  // first stop in the list of journey segments, then this is the path from the -  // vehicle's current location to this stop at the time that the stop was -  // added to the list. This field might not be present if this journey segment -  // is part of `JourneySharingInfo`. -  // -  // If this field is defined in the path -  // `Task.journey_sharing_info.remaining_vehicle_journey_segments[0].path` -  // (gRPC) or `Task.journeySharingInfo.remainingVehicleJourneySegments[0].path` -  // (REST), then it may be populated with the LatLngs decoded from -  // `DeliveryVehicle.current_route_segment` (gRPC) or -  // `DeliveryVehicle.currentRouteSegment` (REST). This provides the driving -  // path from the driver app's latest known location rather than the path from -  // the previous stop. -  repeated google.type.LatLng path = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Describes a point where a Vehicle stops to perform one or more Tasks. -message VehicleStop { -  // Additional information about the Task performed at this stop. -  message TaskInfo { -    // The Task ID. This field won't be populated in the response of either a -    // `GetTask`, or a `SearchTasks` call. Task IDs are subject to the following -    // restrictions: -    // -    // * Must be a valid Unicode string. -    // * Limited to a maximum length of 64 characters. -    // * Normalized according to [Unicode Normalization Form C] -    // (http://www.unicode.org/reports/tr15/). -    // * May not contain any of the following ASCII characters: '/', ':', '?', -    // ',', or '#'. -    string task_id = 1; - -    // The time required to perform the Task. -    google.protobuf.Duration task_duration = 2; -  } - -  // The current state of a `VehicleStop`. -  enum State { -    // Unknown. -    STATE_UNSPECIFIED = 0; - -    // Created, but not actively routing. -    NEW = 1; - -    // Assigned and actively routing. -    ENROUTE = 2; - -    // Arrived at stop. Assumes that when the Vehicle is routing to the next -    // stop, that all previous stops have been completed. -    ARRIVED = 3; -  } - -  // Required. The location of the stop. Note that the locations in the Tasks might not -  // exactly match this location, but will be within a short distance of it. -  // This field won't be populated in the response of either a `GetTask`, or a -  // `SearchTasks` call. -  LocationInfo planned_location = 1 [(google.api.field_behavior) = REQUIRED]; - -  // The list of Tasks to be performed at this stop. This field won't be -  // populated in the response of either a `GetTask`, or a `SearchTasks` call. -  repeated TaskInfo tasks = 2; - -  // The state of the `VehicleStop`. This field won't be populated in the -  // response of either a `GetTask`, or a `SearchTasks` call. -  State state = 3; -} diff --git a/third_party/googleapis/google/maps/fleetengine/delivery/v1/fleetengine.yaml b/third_party/googleapis/google/maps/fleetengine/delivery/v1/fleetengine.yaml deleted file mode 100644 index 8f22a94..0000000 --- a/third_party/googleapis/google/maps/fleetengine/delivery/v1/fleetengine.yaml +++ /dev/null @@ -1,39 +0,0 @@ -type: google.api.Service -config_version: 3 -name: fleetengine.googleapis.com -title: Local Rides and Deliveries API - -apis: -- name: maps.fleetengine.delivery.v1.DeliveryService -- name: maps.fleetengine.v1.TripService -- name: maps.fleetengine.v1.VehicleService - -documentation: -  summary: |- -    Enables Fleet Engine for access to the On Demand Rides and Deliveries and -    Last Mile Fleet Solution APIs.  Customer's use of Google Maps Content in -    the Cloud Logging Services is subject to the Google Maps Platform Terms of -    Service located at https://cloud.google.com/maps-platform/terms. - -backend: -  rules: -  - selector: 'maps.fleetengine.delivery.v1.DeliveryService.*' -    deadline: 10.0 -  - selector: maps.fleetengine.delivery.v1.DeliveryService.BatchCreateTasks -    deadline: 60.0 -  - selector: maps.fleetengine.delivery.v1.DeliveryService.GetDeliveryVehicle -    deadline: 4.0 -  - selector: maps.fleetengine.delivery.v1.DeliveryService.GetTask -    deadline: 4.0 -  - selector: maps.fleetengine.delivery.v1.DeliveryService.ListDeliveryVehicles -    deadline: 60.0 -  - selector: maps.fleetengine.delivery.v1.DeliveryService.ListTasks -    deadline: 60.0 -  - selector: maps.fleetengine.delivery.v1.DeliveryService.SearchTasks -    deadline: 60.0 -  - selector: 'maps.fleetengine.v1.TripService.*' -    deadline: 10.0 -  - selector: 'maps.fleetengine.v1.VehicleService.*' -    deadline: 10.0 -  - selector: maps.fleetengine.v1.VehicleService.UpdateVehicleLocation -    deadline: 3.0 diff --git a/third_party/googleapis/google/maps/fleetengine/delivery/v1/header.proto b/third_party/googleapis/google/maps/fleetengine/delivery/v1/header.proto deleted file mode 100644 index 17d9f67..0000000 --- a/third_party/googleapis/google/maps/fleetengine/delivery/v1/header.proto +++ /dev/null @@ -1,103 +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 maps.fleetengine.delivery.v1; - -import "google/api/field_behavior.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1;delivery"; -option java_multiple_files = true; -option java_outer_classname = "Headers"; -option java_package = "google.maps.fleetengine.delivery.v1"; -option objc_class_prefix = "CFED"; - -// A RequestHeader contains fields common to all Delivery RPC requests. -message DeliveryRequestHeader { -  // Possible types of SDK. -  enum SdkType { -    // The default value. This value is used if the `sdk_type` is omitted. -    SDK_TYPE_UNSPECIFIED = 0; - -    // The calling SDK is Consumer. -    CONSUMER = 1; - -    // The calling SDK is Driver. -    DRIVER = 2; - -    // The calling SDK is JavaScript. -    JAVASCRIPT = 3; -  } - -  // The platform of the calling SDK. -  enum Platform { -    // The default value. This value is used if the platform is omitted. -    PLATFORM_UNSPECIFIED = 0; - -    // The request is coming from Android. -    ANDROID = 1; - -    // The request is coming from iOS. -    IOS = 2; - -    // The request is coming from the web. -    WEB = 3; -  } - -  // 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. If none -  // is specified, the response may be in any language, with a preference for -  // English if such a name exists. Field value example: `en-US`. -  string language_code = 1; - -  // Required. CLDR region code of the region where the request originates. -  // Field value example: `US`. -  string region_code = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Version of the calling SDK, if applicable. -  // The version format is "major.minor.patch", example: `1.1.2`. -  string sdk_version = 3; - -  // Version of the operating system on which the calling SDK is running. -  // Field value examples: `4.4.1`, `12.1`. -  string os_version = 4; - -  // Model of the device on which the calling SDK is running. -  // Field value examples: `iPhone12,1`, `SM-G920F`. -  string device_model = 5; - -  // The type of SDK sending the request. -  SdkType sdk_type = 6; - -  // Version of the MapSDK which the calling SDK depends on, if applicable. -  // The version format is "major.minor.patch", example: `5.2.1`. -  string maps_sdk_version = 7; - -  // Version of the NavSDK which the calling SDK depends on, if applicable. -  // The version format is "major.minor.patch", example: `2.1.0`. -  string nav_sdk_version = 8; - -  // Platform of the calling SDK. -  Platform platform = 9; - -  // Manufacturer of the Android device from the calling SDK, only applicable -  // for the Android SDKs. -  // Field value example: `Samsung`. -  string manufacturer = 10; - -  // Android API level of the calling SDK, only applicable for the Android SDKs. -  // Field value example: `23`. -  int32 android_api_level = 11; -} diff --git a/third_party/googleapis/google/maps/fleetengine/delivery/v1/tasks.proto b/third_party/googleapis/google/maps/fleetengine/delivery/v1/tasks.proto deleted file mode 100644 index b56132c..0000000 --- a/third_party/googleapis/google/maps/fleetengine/delivery/v1/tasks.proto +++ /dev/null @@ -1,210 +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 maps.fleetengine.delivery.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/maps/fleetengine/delivery/v1/common.proto"; -import "google/maps/fleetengine/delivery/v1/delivery_vehicles.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/delivery/v1;delivery"; -option java_multiple_files = true; -option java_outer_classname = "Tasks"; -option java_package = "google.maps.fleetengine.delivery.v1"; -option objc_class_prefix = "CFED"; - -// A Task in the Delivery API represents a single action to track. In general, -// there is a distinction between shipment-related Tasks and break Tasks. A -// shipment can have multiple Tasks associated with it. For example, there could -// be one Task for the pickup, and one for the drop-off or transfer. Also, -// different Tasks for a given shipment can be handled by different vehicles. -// For example, one vehicle could handle the pickup, driving the shipment to the -// hub, while another vehicle drives the same shipment from the hub to the -// drop-off location. -// -// Note: gRPC and REST APIs use different field naming conventions. For example, -// the `Task.journey_sharing_info` field in the gRPC API and the -// `DeliveryVehicle.journeySharingInfo` field in the REST API refer to the same -// field. -message Task { -  option (google.api.resource) = { -    type: "fleetengine.googleapis.com/Task" -    pattern: "providers/{provider}/tasks/{task}" -  }; - -  // The type of Task. -  enum Type { -    // Default, the Task type is unknown. -    TYPE_UNSPECIFIED = 0; - -    // A pickup Task is the action taken for picking up a shipment from a -    // customer. Depot or feeder vehicle pickups should use the `SCHEDULED_STOP` -    // type. -    PICKUP = 1; - -    // A delivery Task is the action taken for delivering a shipment to an end -    // customer. Depot or feeder vehicle dropoffs should use the -    // `SCHEDULED_STOP` type. -    DELIVERY = 2; - -    // A scheduled stop Task is used for planning purposes. For example, it -    // could represent picking up or dropping off shipments from feeder vehicles -    // or depots. It shouldn't be used for any shipments that are picked up or -    // dropped off from an end customer. -    SCHEDULED_STOP = 3; - -    // A Task that means the Vehicle is not available for service. For example, -    // this can happen when the driver takes a break, or when the vehicle -    // is being refueled. -    UNAVAILABLE = 4; -  } - -  // The state of a Task. This indicates the Tasks's progress. -  enum State { -    // Default. Used for an unspecified or unrecognized Task state. -    STATE_UNSPECIFIED = 0; - -    // Either the Task has not yet been assigned to a delivery vehicle, or the -    // delivery vehicle has not yet passed the Task's assigned vehicle stop. -    OPEN = 1; - -    // When the vehicle passes the vehicle stop for this Task. -    CLOSED = 2; -  } - -  // The outcome of attempting to execute a Task. When `TaskState` is closed, -  // `TaskOutcome` indicates whether it was completed successfully. -  enum TaskOutcome { -    // The Task outcome before its value is set. -    TASK_OUTCOME_UNSPECIFIED = 0; - -    // The Task completed successfully. -    SUCCEEDED = 1; - -    // Either the Task couldn't be completed, or it was cancelled. -    FAILED = 2; -  } - -  // The identity of the source that populated the `task_outcome_location`. -  enum TaskOutcomeLocationSource { -    // The Task outcome before it is set. -    TASK_OUTCOME_LOCATION_SOURCE_UNSPECIFIED = 0; - -    // The provider-specified the `task_outcome_location`. -    PROVIDER = 2; - -    // The provider didn't specify the `task_outcome_location`, so Fleet Engine -    // used the last known vehicle location. -    LAST_VEHICLE_LOCATION = 3; -  } - -  // Journey sharing specific fields. -  message JourneySharingInfo { -    // Tracking information for the stops that the assigned vehicle will make -    // before it completes this Task. Note that this list can contain stops -    // from other tasks. -    // -    // The first segment, -    // `Task.journey_sharing_info.remaining_vehicle_journey_segments[0]` (gRPC) -    // or `Task.journeySharingInfo.remainingVehicleJourneySegments[0]` (REST), -    // contains route information from the driver's last known location to the -    // upcoming `VehicleStop`. Current route information usually comes from the -    // driver app, except for some cases noted in the documentation for -    // [DeliveryVehicle.current_route_segment][maps.fleetengine.delivery.v1.DeliveryVehicle.current_route_segment]. The other segments in -    // `Task.journey_sharing_info.remaining_vehicle_journey_segments` (gRPC) or -    // `Task.journeySharingInfo.remainingVehicleJourneySegments` (REST) are -    // populated by Fleet Engine. They provide route information between the -    // remaining `VehicleStops`. -    repeated VehicleJourneySegment remaining_vehicle_journey_segments = 1; - -    // Indicates the vehicle's last reported location of the assigned vehicle. -    DeliveryVehicleLocation last_location = 2; - -    // Indicates whether the vehicle's lastLocation can be snapped to -    // the `current_route_segment`. This value is False if either -    // `last_location` or `current_route_segment` don't exist. This value is -    // computed by Fleet Engine. Updates from clients are ignored. -    bool last_location_snappable = 3; -  } - -  // Must be in the format `providers/{provider}/tasks/{task}`. -  string name = 1; - -  // Required. Immutable. Defines the type of the Task. For example, a break or shipment. -  Type type = 2 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.field_behavior) = IMMUTABLE -  ]; - -  // Required. The current execution state of the Task. -  State state = 3 [(google.api.field_behavior) = REQUIRED]; - -  // The outcome of the Task. -  TaskOutcome task_outcome = 9; - -  // The timestamp that indicates when the Task's outcome was set by the -  // provider. -  google.protobuf.Timestamp task_outcome_time = 10; - -  // The location where the Task's outcome was set. This value is updated as -  // part of `UpdateTask`. If this value isn't explicitly updated by the -  // provider, then Fleet Engine populates it by default with the last known -  // vehicle location (the *raw* location). -  LocationInfo task_outcome_location = 11; - -  // Indicates where the value of the `task_outcome_location` came from. -  TaskOutcomeLocationSource task_outcome_location_source = 12; - -  // Immutable. This field facilitates the storing of an ID so you can avoid using a -  // complicated mapping. You cannot set `tracking_id` for Tasks of type -  // `UNAVAILABLE` and `SCHEDULED_STOP`. These IDs are subject to the -  // following restrictions: -  // -  // * Must be a valid Unicode string. -  // * Limited to a maximum length of 64 characters. -  // * Normalized according to [Unicode Normalization Form C] -  // (http://www.unicode.org/reports/tr15/). -  // * May not contain any of the following ASCII characters: '/', ':', '?', -  // ',', or '#'. -  string tracking_id = 4 [(google.api.field_behavior) = IMMUTABLE]; - -  // Output only. The ID of the vehicle that is executing this Task. Delivery Vehicle IDs are -  // subject to the following restrictions: -  // -  // * Must be a valid Unicode string. -  // * Limited to a maximum length of 64 characters. -  // * Normalized according to [Unicode Normalization Form C] -  // (http://www.unicode.org/reports/tr15/). -  // * May not contain any of the following ASCII characters: '/', ':', '?', -  // ',', or '#'. -  string delivery_vehicle_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Immutable. The location where the Task will be completed. -  // Optional for `UNAVAILABLE` Tasks, but required for all other Tasks. -  LocationInfo planned_location = 6 [(google.api.field_behavior) = IMMUTABLE]; - -  // Required. Immutable. The time needed to execute a Task at this location. -  google.protobuf.Duration task_duration = 7 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.field_behavior) = IMMUTABLE -  ]; - -  // Output only. Journey sharing-specific fields. Not populated when state is `CLOSED`. -  JourneySharingInfo journey_sharing_info = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; -} diff --git a/third_party/googleapis/google/maps/fleetengine/v1/BUILD.bazel b/third_party/googleapis/google/maps/fleetengine/v1/BUILD.bazel deleted file mode 100644 index fb29fc4..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/BUILD.bazel +++ /dev/null @@ -1,361 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# 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") - -proto_library( -    name = "fleetengine_proto", -    srcs = [ -        "fleetengine.proto", -        "header.proto", -        "traffic.proto", -        "trip_api.proto", -        "trips.proto", -        "vehicle_api.proto", -        "vehicles.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/api:resource_proto", -        "//google/api:routing_proto", -        "//google/type:latlng_proto", -        "@com_google_protobuf//:duration_proto", -        "@com_google_protobuf//:empty_proto", -        "@com_google_protobuf//:field_mask_proto", -        "@com_google_protobuf//:timestamp_proto", -        "@com_google_protobuf//:wrappers_proto", -    ], -) - -proto_library_with_info( -    name = "fleetengine_proto_with_info", -    deps = [ -        ":fleetengine_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "fleetengine_java_proto", -    deps = [":fleetengine_proto"], -) - -java_grpc_library( -    name = "fleetengine_java_grpc", -    srcs = [":fleetengine_proto"], -    deps = [":fleetengine_java_proto"], -) - -java_gapic_library( -    name = "fleetengine_java_gapic", -    srcs = [":fleetengine_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "fleetengine_grpc_service_config.json", -    service_yaml = "fleetengine.yaml", -    test_deps = [ -        ":fleetengine_java_grpc", -    ], -    deps = [ -        ":fleetengine_java_proto", -        "//google/api:api_java_proto", -    ], -) - -java_gapic_test( -    name = "fleetengine_java_gapic_test_suite", -    test_classes = [ -        "google.maps.fleetengine.v1.TripServiceClientTest", -        "google.maps.fleetengine.v1.VehicleServiceClientTest", -    ], -    runtime_deps = [":fleetengine_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-maps-fleetengine-v1-java", -    deps = [ -        ":fleetengine_java_gapic", -        ":fleetengine_java_grpc", -        ":fleetengine_java_proto", -        ":fleetengine_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "fleetengine_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/fleetengine/v1", -    protos = [":fleetengine_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/type:latlng_go_proto", -    ], -) - -go_gapic_library( -    name = "fleetengine_go_gapic", -    srcs = [":fleetengine_proto_with_info"], -    grpc_service_config = "fleetengine_grpc_service_config.json", -    importpath = "google.golang.org/maps/fleetengine/v1;fleetengine", -    metadata = True, -    service_yaml = "fleetengine.yaml", -    deps = [ -        ":fleetengine_go_proto", -        "@io_bazel_rules_go//proto/wkt:duration_go_proto", -    ], -) - -go_test( -    name = "fleetengine_go_gapic_test", -    srcs = [":fleetengine_go_gapic_srcjar_test"], -    embed = [":fleetengine_go_gapic"], -    importpath = "google.golang.org/maps/fleetengine/v1", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-maps-fleetengine-v1-go", -    deps = [ -        ":fleetengine_go_gapic", -        ":fleetengine_go_gapic_srcjar-metadata.srcjar", -        ":fleetengine_go_gapic_srcjar-test.srcjar", -        ":fleetengine_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -) - -py_gapic_library( -    name = "fleetengine_py_gapic", -    srcs = [":fleetengine_proto"], -    grpc_service_config = "fleetengine_grpc_service_config.json", -    transport = "grpc", -) - -# Uncomment once https://github.com/googleapis/gapic-generator-python/issues/1371 is fixed -#py_test( -#    name = "fleetengine_py_gapic_test", -#    srcs = [ -#        "fleetengine_py_gapic_pytest.py", -#        "fleetengine_py_gapic_test.py", -#    ], -#    legacy_create_init = False, -#    deps = [":fleetengine_py_gapic"], -#) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "maps-fleetengine-v1-py", -    deps = [ -        ":fleetengine_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "fleetengine_php_proto", -    deps = [":fleetengine_proto"], -) - -php_grpc_library( -    name = "fleetengine_php_grpc", -    srcs = [":fleetengine_proto"], -    deps = [":fleetengine_php_proto"], -) - -php_gapic_library( -    name = "fleetengine_php_gapic", -    srcs = [":fleetengine_proto_with_info"], -    grpc_service_config = "fleetengine_grpc_service_config.json", -    service_yaml = "fleetengine.yaml", -    deps = [ -        ":fleetengine_php_grpc", -        ":fleetengine_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-maps-fleetengine-v1-php", -    deps = [ -        ":fleetengine_php_gapic", -        ":fleetengine_php_grpc", -        ":fleetengine_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "fleetengine_nodejs_gapic", -    package_name = "@googlemaps/fleetengine", -    src = ":fleetengine_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "fleetengine_grpc_service_config.json", -    package = "maps.fleetengine.v1", -    service_yaml = "fleetengine.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "maps-fleetengine-v1-nodejs", -    deps = [ -        ":fleetengine_nodejs_gapic", -        ":fleetengine_proto", -        "//google/geo/type:viewport_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "fleetengine_ruby_proto", -    deps = [":fleetengine_proto"], -) - -ruby_grpc_library( -    name = "fleetengine_ruby_grpc", -    srcs = [":fleetengine_proto"], -    deps = [":fleetengine_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "fleetengine_ruby_gapic", -    srcs = [":fleetengine_proto_with_info"], -    extra_protoc_parameters = ["ruby-cloud-gem-name=google-maps-fleetengine-v1"], -    grpc_service_config = "fleetengine_grpc_service_config.json", -    deps = [ -        ":fleetengine_ruby_grpc", -        ":fleetengine_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-maps-fleetengine-v1-ruby", -    deps = [ -        ":fleetengine_ruby_gapic", -        ":fleetengine_ruby_grpc", -        ":fleetengine_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "fleetengine_csharp_proto", -    deps = [":fleetengine_proto"], -) - -csharp_grpc_library( -    name = "fleetengine_csharp_grpc", -    srcs = [":fleetengine_proto"], -    deps = [":fleetengine_csharp_proto"], -) - -csharp_gapic_library( -    name = "fleetengine_csharp_gapic", -    srcs = [":fleetengine_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "fleetengine_grpc_service_config.json", -    deps = [ -        ":fleetengine_csharp_grpc", -        ":fleetengine_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-maps-fleetengine-v1-csharp", -    deps = [ -        ":fleetengine_csharp_gapic", -        ":fleetengine_csharp_grpc", -        ":fleetengine_csharp_proto", -    ], -) -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here diff --git a/third_party/googleapis/google/maps/fleetengine/v1/fleetengine.proto b/third_party/googleapis/google/maps/fleetengine/v1/fleetengine.proto deleted file mode 100644 index 2e659c9..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/fleetengine.proto +++ /dev/null @@ -1,293 +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 maps.fleetengine.v1; - -import "google/api/field_behavior.proto"; -import "google/maps/fleetengine/v1/traffic.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine"; -option java_multiple_files = true; -option java_outer_classname = "FleetEngine"; -option java_package = "google.maps.fleetengine.v1"; -option objc_class_prefix = "CFE"; - -// Identifies a terminal point. -message TerminalPointId { -  // Deprecated. -  oneof Id { -    // Deprecated. -    string place_id = 2 [deprecated = true]; - -    // Deprecated. -    string generated_id = 3 [deprecated = true]; -  } - -  // Unique ID of the terminal point. -  string value = 4; -} - -// Describes the location of a waypoint. -message TerminalLocation { -  // Required. Denotes the location of a trip waypoint. -  google.type.LatLng point = 1 [(google.api.field_behavior) = REQUIRED]; - -  // ID of the terminal point. -  TerminalPointId terminal_point_id = 2; - -  // Deprecated. -  string access_point_id = 3 [deprecated = true]; - -  // Deprecated. -  string trip_id = 4 [deprecated = true]; - -  // Deprecated: `Vehicle.waypoint` will have this data. -  WaypointType terminal_location_type = 5 [deprecated = true]; -} - -// Describes a stopping point on a vehicle's route or an ending point on a -// vehicle's trip. -message TripWaypoint { -  // The location of this waypoint. -  TerminalLocation location = 1; - -  // The trip associated with this waypoint. -  string trip_id = 2; - -  // The role this waypoint plays in this trip, such as pickup or dropoff. -  WaypointType waypoint_type = 3; - -  // The path from the previous waypoint to the current waypoint.  Undefined for -  // the first waypoint in a list. This field is only populated when requested. -  repeated google.type.LatLng path_to_waypoint = 4; - -  // The encoded path from the previous waypoint to the current waypoint. -  // -  // <p>Note: This field is intended only for use by the Driver SDK and Consumer -  // SDK. Decoding is not yet supported. -  string encoded_path_to_waypoint = 5; - -  // The traffic conditions along the path to this waypoint.  Note that traffic -  // is only available for Google Map Platform Rides and Deliveries Solution -  // customers. -  ConsumableTrafficPolyline traffic_to_waypoint = 10; - -  // The path distance from the previous waypoint to the current waypoint. -  // Undefined for the first waypoint in a list. -  google.protobuf.Int32Value distance_meters = 6; - -  // The estimated time of arrival at this waypoint. Undefined for the first -  // waypoint in a list. -  google.protobuf.Timestamp eta = 7; - -  // The travel time from previous waypoint to this point. Undefined for the -  // first waypoint in a list. -  google.protobuf.Duration duration = 8; -} - -// The type of a trip. -enum TripType { -  // Default, used for unspecified or unrecognized trip types. -  UNKNOWN_TRIP_TYPE = 0; - -  // The trip may share a vehicle with other trips. -  SHARED = 1; - -  // The trip is exclusive to a vehicle. -  EXCLUSIVE = 2; -} - -// The type of waypoint. -enum WaypointType { -  // Unknown or unspecified waypoint type. -  UNKNOWN_WAYPOINT_TYPE = 0; - -  // Waypoints for picking up riders or items. -  PICKUP_WAYPOINT_TYPE = 1; - -  // Waypoints for dropping off riders or items. -  DROP_OFF_WAYPOINT_TYPE = 2; - -  // Waypoints for intermediate destinations in a multi-destination trip. -  INTERMEDIATE_DESTINATION_WAYPOINT_TYPE = 3; -} - -// The type of polyline format. -enum PolylineFormatType { -  // The format is unspecified or unknown. -  UNKNOWN_FORMAT_TYPE = 0; - -  // A list of `google.type.LatLng`. -  LAT_LNG_LIST_TYPE = 1; - -  // A polyline encoded with a polyline compression algorithm. Decoding is not -  // yet supported. -  ENCODED_POLYLINE_TYPE = 2; -} - -// The vehicle's navigation status. -enum NavigationStatus { -  // Unspecified navigation status. -  UNKNOWN_NAVIGATION_STATUS = 0; - -  // The Driver app's navigation is in `FREE_NAV` mode. -  NO_GUIDANCE = 1; - -  // Turn-by-turn navigation is available and the Driver app navigation has -  // entered `GUIDED_NAV` mode. -  ENROUTE_TO_DESTINATION = 2; - -  // The vehicle has gone off the suggested route. -  OFF_ROUTE = 3; - -  // The vehicle is within approximately 50m of the destination. -  ARRIVED_AT_DESTINATION = 4; -} - -// Describes a vehicle attribute as a key-value pair. The "key:value" string -// length cannot exceed 256 characters. -message VehicleAttribute { -  // The attribute's key. Keys may not contain the colon character (:). -  string key = 1; - -  // The attribute's value. -  string value = 2; -} - -// The location, speed, and heading of a vehicle at a point in time. -message VehicleLocation { -  // The location of the vehicle. -  // When it is sent to Fleet Engine, the vehicle's location is a GPS location. -  // When you receive it in a response, the vehicle's location can be either a -  // GPS location, a supplemental location, or some other estimated location. -  // The source is specified in `location_sensor`. -  google.type.LatLng location = 1; - -  // Deprecated: Use `latlng_accuracy` instead. -  google.protobuf.DoubleValue horizontal_accuracy = 8 [deprecated = true]; - -  // Accuracy of `location` in meters as a radius. -  google.protobuf.DoubleValue latlng_accuracy = 22; - -  // Direction the vehicle is moving in degrees.  0 represents North. -  // The valid range is [0,360). -  google.protobuf.Int32Value heading = 2; - -  // Deprecated: Use `heading_accuracy` instead. -  google.protobuf.DoubleValue bearing_accuracy = 10 [deprecated = true]; - -  // Accuracy of `heading` in degrees. -  google.protobuf.DoubleValue heading_accuracy = 23; - -  // Altitude in meters above WGS84. -  google.protobuf.DoubleValue altitude = 5; - -  // Deprecated: Use `altitude_accuracy` instead. -  google.protobuf.DoubleValue vertical_accuracy = 9 [deprecated = true]; - -  // Accuracy of `altitude` in meters. -  google.protobuf.DoubleValue altitude_accuracy = 24; - -  // Speed of the vehicle in kilometers per hour. -  // Deprecated: Use `speed` instead. -  google.protobuf.Int32Value speed_kmph = 3 [deprecated = true]; - -  // Speed of the vehicle in meters/second -  google.protobuf.DoubleValue speed = 6; - -  // Accuracy of `speed` in meters/second. -  google.protobuf.DoubleValue speed_accuracy = 7; - -  // The time when `location` was reported by the sensor according to the -  // sensor's clock. -  google.protobuf.Timestamp update_time = 4; - -  // Output only. The time when the server received the location information. -  google.protobuf.Timestamp server_time = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Provider of location data (for example, `GPS`). -  LocationSensor location_sensor = 11; - -  // Whether `location` is snapped to a road. -  google.protobuf.BoolValue is_road_snapped = 27; - -  // Input only. Indicates whether the GPS sensor is enabled on the mobile device. -  google.protobuf.BoolValue is_gps_sensor_enabled = 12 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Time (in seconds) since this location was first sent to the server. -  // This will be zero for the first update. If the time is unknown -  // (for example, when the app restarts), this value resets to zero. -  google.protobuf.Int32Value time_since_update = 14 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Number of additional attempts to send this location to the server. -  // If this value is zero, then it is not stale. -  google.protobuf.Int32Value num_stale_updates = 15 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Raw vehicle location (unprocessed by road-snapper). -  google.type.LatLng raw_location = 16; - -  // Input only. Timestamp associated with the raw location. -  google.protobuf.Timestamp raw_location_time = 17 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Source of the raw location. -  LocationSensor raw_location_sensor = 28 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Accuracy of `raw_location` as a radius, in meters. -  google.protobuf.DoubleValue raw_location_accuracy = 25 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Supplemental location provided by the integrating app. -  google.type.LatLng supplemental_location = 18 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Timestamp associated with the supplemental location. -  google.protobuf.Timestamp supplemental_location_time = 19 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Source of the supplemental location. -  LocationSensor supplemental_location_sensor = 20 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. Accuracy of `supplemental_location` as a radius, in meters. -  google.protobuf.DoubleValue supplemental_location_accuracy = 21 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Deprecated: Use `is_road_snapped` instead. -  bool road_snapped = 26 [deprecated = true]; -} - -// The sensor or methodology used to determine the location. -enum LocationSensor { -  // The sensor is unspecified or unknown. -  UNKNOWN_SENSOR = 0; - -  // GPS or Assisted GPS. -  GPS = 1; - -  // Assisted GPS, cell tower ID, or WiFi access point. -  NETWORK = 2; - -  // Cell tower ID or WiFi access point. -  PASSIVE = 3; - -  // A location signal snapped to the best road position. -  ROAD_SNAPPED_LOCATION_PROVIDER = 4; - -  // The fused location provider in Google Play services. -  FUSED_LOCATION_PROVIDER = 100; - -  // The location provider on Apple operating systems. -  CORE_LOCATION = 200; -} diff --git a/third_party/googleapis/google/maps/fleetengine/v1/fleetengine.yaml b/third_party/googleapis/google/maps/fleetengine/v1/fleetengine.yaml deleted file mode 100644 index fffce93..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/fleetengine.yaml +++ /dev/null @@ -1,22 +0,0 @@ -type: google.api.Service -config_version: 3 -name: fleetengine.googleapis.com -title: Local Rides and Deliveries API - -apis: -- name: maps.fleetengine.v1.TripService -- name: maps.fleetengine.v1.VehicleService - -documentation: -  summary: |- -    Enables Fleet Engine for access to the On Demand Rides and Deliveries and -    Last Mile Fleet Solution APIs. - -backend: -  rules: -  - selector: 'maps.fleetengine.v1.TripService.*' -    deadline: 10.0 -  - selector: 'maps.fleetengine.v1.VehicleService.*' -    deadline: 10.0 -  - selector: maps.fleetengine.v1.VehicleService.UpdateVehicleLocation -    deadline: 3.0 diff --git a/third_party/googleapis/google/maps/fleetengine/v1/fleetengine_grpc_service_config.json b/third_party/googleapis/google/maps/fleetengine/v1/fleetengine_grpc_service_config.json deleted file mode 100644 index 0d93501..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/fleetengine_grpc_service_config.json +++ /dev/null @@ -1,47 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [ -      { "service": "maps.fleetengine.v1.TripService", "method": "CreateTrip" }, -      { "service": "maps.fleetengine.v1.TripService", "method": "GetTrip" }, -      { "service": "maps.fleetengine.v1.TripService", "method": "SearchTrips" }, -      { "service": "maps.fleetengine.v1.TripService", "method": "UpdateTrip" }, -      { "service": "maps.fleetengine.v1.VehicleService", "method": "CreateVehicle" }, -      { "service": "maps.fleetengine.v1.VehicleService", "method": "GetVehicle" }, -      { "service": "maps.fleetengine.v1.VehicleService", "method": "SearchVehicles" }, -      { "service": "maps.fleetengine.v1.VehicleService", "method": "UpdateVehicle" }, -      { "service": "maps.fleetengine.v1.VehicleService", "method": "UpdateVehicleAttributes" } - -    ], -    "timeout": "15s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "10s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }, -  { -    "name": [ -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "CreateDeliveryVehicle" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "GetDeliveryVehicle" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "BatchCreateTasks" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "CreateTask" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "GetTask" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "UpdateTask" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "UpdateDeliveryVehicle" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "ListDeliveryVehicles" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "SearchTasks" }, -      { "service": "maps.fleetengine.delivery.v1.DeliveryService", "method": "ListTasks" } -    ], -    "timeout": "60s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "10s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }] -} - diff --git a/third_party/googleapis/google/maps/fleetengine/v1/header.proto b/third_party/googleapis/google/maps/fleetengine/v1/header.proto deleted file mode 100644 index 978061f..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/header.proto +++ /dev/null @@ -1,103 +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 maps.fleetengine.v1; - -import "google/api/field_behavior.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine"; -option java_multiple_files = true; -option java_outer_classname = "Headers"; -option java_package = "google.maps.fleetengine.v1"; -option objc_class_prefix = "CFE"; - -// A RequestHeader contains fields common to all Fleet Engine RPC requests. -message RequestHeader { -  // Possible types of SDK. -  enum SdkType { -    // The default value. This value is used if the `sdk_type` is omitted. -    SDK_TYPE_UNSPECIFIED = 0; - -    // The calling SDK is Consumer. -    CONSUMER = 1; - -    // The calling SDK is Driver. -    DRIVER = 2; - -    // The calling SDK is JavaScript. -    JAVASCRIPT = 3; -  } - -  // The platform of the calling SDK. -  enum Platform { -    // The default value. This value is used if the platform is omitted. -    PLATFORM_UNSPECIFIED = 0; - -    // The request is coming from Android. -    ANDROID = 1; - -    // The request is coming from iOS. -    IOS = 2; - -    // The request is coming from the web. -    WEB = 3; -  } - -  // 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. If none -  // is specified, the response may be in any language, with a preference for -  // English if such a name exists. Field value example: `en-US`. -  string language_code = 1; - -  // Required. CLDR region code of the region where the request originates. -  // Field value example: `US`. -  string region_code = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Version of the calling SDK, if applicable. -  // The version format is "major.minor.patch", example: `1.1.2`. -  string sdk_version = 3; - -  // Version of the operating system on which the calling SDK is running. -  // Field value examples: `4.4.1`, `12.1`. -  string os_version = 4; - -  // Model of the device on which the calling SDK is running. -  // Field value examples: `iPhone12,1`, `SM-G920F`. -  string device_model = 5; - -  // The type of SDK sending the request. -  SdkType sdk_type = 6; - -  // Version of the MapSDK which the calling SDK depends on, if applicable. -  // The version format is "major.minor.patch", example: `5.2.1`. -  string maps_sdk_version = 7; - -  // Version of the NavSDK which the calling SDK depends on, if applicable. -  // The version format is "major.minor.patch", example: `2.1.0`. -  string nav_sdk_version = 8; - -  // Platform of the calling SDK. -  Platform platform = 9; - -  // Manufacturer of the Android device from the calling SDK, only applicable -  // for the Android SDKs. -  // Field value example: `Samsung`. -  string manufacturer = 10; - -  // Android API level of the calling SDK, only applicable for the Android SDKs. -  // Field value example: `23`. -  int32 android_api_level = 11; -} diff --git a/third_party/googleapis/google/maps/fleetengine/v1/traffic.proto b/third_party/googleapis/google/maps/fleetengine/v1/traffic.proto deleted file mode 100644 index 819ffaa..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/traffic.proto +++ /dev/null @@ -1,67 +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 maps.fleetengine.v1; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine"; -option java_multiple_files = true; -option java_outer_classname = "TrafficProto"; -option java_package = "google.maps.fleetengine.v1"; -option objc_class_prefix = "CFE"; - -// Traffic density indicator on a contiguous segment of a 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 path. -  // In JSON, when the index is 0, the field will appear to be unpopulated. -  int32 start_polyline_point_index = 1; - -  // The ending index of this interval in the path. -  // In JSON, when the index is 0, the field will appear to be unpopulated. -  int32 end_polyline_point_index = 2; - -  // Traffic speed in this interval. -  Speed speed = 3; -} - -// Traffic density along a Vehicle's path. -message ConsumableTrafficPolyline { -  // Traffic speed along the path from the previous waypoint to the current -  // waypoint. -  repeated SpeedReadingInterval speed_reading_interval = 1; - -  // The path the driver is taking from the previous waypoint to the current -  // waypoint. This path has landmarks in it so clients can show traffic markers -  // along the path (see `speed_reading_interval`).  Decoding is not yet -  // supported. -  string encoded_path_to_waypoint = 2; -} diff --git a/third_party/googleapis/google/maps/fleetengine/v1/trip_api.proto b/third_party/googleapis/google/maps/fleetengine/v1/trip_api.proto deleted file mode 100644 index 8031d95..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/trip_api.proto +++ /dev/null @@ -1,370 +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 maps.fleetengine.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/routing.proto"; -import "google/maps/fleetengine/v1/fleetengine.proto"; -import "google/maps/fleetengine/v1/header.proto"; -import "google/maps/fleetengine/v1/trips.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine"; -option java_multiple_files = true; -option java_outer_classname = "TripApi"; -option java_package = "google.maps.fleetengine.v1"; -option objc_class_prefix = "CFE"; - -// Trip management service. -service TripService { -  option (google.api.default_host) = "fleetengine.googleapis.com"; - -  // Creates a trip in the Fleet Engine and returns the new trip. -  rpc CreateTrip(CreateTripRequest) returns (Trip) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/trips" -      body: "trip" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Get information about a single trip. -  rpc GetTrip(GetTripRequest) returns (Trip) { -    option (google.api.http) = { -      get: "/v1/{name=providers/*/trips/*}" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Report billable trip usage. -  rpc ReportBillableTrip(ReportBillableTripRequest) returns (google.protobuf.Empty) { -    option (google.api.http) = { -      post: "/v1/{name=providers/*/billableTrips/*}:report" -      body: "*" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Get all the trips for a specific vehicle. -  rpc SearchTrips(SearchTripsRequest) returns (SearchTripsResponse) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/trips:search" -      body: "*" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Updates trip data. -  rpc UpdateTrip(UpdateTripRequest) returns (Trip) { -    option (google.api.http) = { -      put: "/v1/{name=providers/*/trips/*}" -      body: "trip" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } -} - -// CreateTrip request message. -message CreateTripRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format `providers/{provider}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string parent = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "fleetengine.googleapis.com/Trip" -    } -  ]; - -  // Required. Unique Trip ID. -  // Subject to the following restrictions: -  // -  // * Must be a valid Unicode string. -  // * Limited to a maximum length of 64 characters. -  // * Normalized according to [Unicode Normalization Form C] -  // (http://www.unicode.org/reports/tr15/). -  // * May not contain any of the following ASCII characters: '/', ':', '?', -  // ',', or '#'. -  string trip_id = 5 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Trip entity to create. -  // -  // When creating a Trip, the following fields are required: -  // -  // * `trip_type` -  // * `pickup_point` -  // -  // The following fields are used if you provide them: -  // -  // * `number_of_passengers` -  // * `vehicle_id` -  // * `dropoff_point` -  // * `intermediate_destinations` -  // -  // Only `EXCLUSIVE` trips support multiple destinations. -  // -  // When `vehicle_id` is set for a shared trip, you must supply -  // the list of `Trip.vehicle_waypoints` to specify the order of the remaining -  // waypoints for the vehicle, otherwise the waypoint order will be -  // undetermined. -  // -  // When you specify `Trip.vehicle_waypoints`, the list must contain all -  // the remaining waypoints of the vehicle's trips, with no extra waypoints. -  // You must order these waypoints such that for a given trip, the pickup -  // point is before intermediate destinations, and all intermediate -  // destinations come before the drop-off point. An `EXCLUSIVE` trip's -  // waypoints must not interleave with any other trips. -  // -  // The `trip_id`, `waypoint_type` and `location` fields are used, and all -  // other TripWaypoint fields in `vehicle_waypoints` are ignored. -  // -  // All other Trip fields are ignored. -  Trip trip = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// GetTrip request message. -message GetTripRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format `providers/{provider}/trips/{trip}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string name = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "fleetengine.googleapis.com/Trip" -    } -  ]; - -  // The subset of Trip fields that should be returned and their interpretation. -  TripView view = 11; - -  // Indicates the minimum timestamp (exclusive) for which `Trip.route` or -  // `Trip.current_route_segment` data are retrieved. If route data are -  // unchanged since this timestamp, the route field is not set in the response. -  // If a minimum is unspecified, the route data are always retrieved. -  google.protobuf.Timestamp current_route_segment_version = 6; - -  // Indicates the minimum timestamp (exclusive) for which -  // `Trip.remaining_waypoints` are retrieved. If they are unchanged since this -  // timestamp, the `remaining_waypoints` are not set in the response. If this -  // field is unspecified, `remaining_waypoints` is always retrieved. -  google.protobuf.Timestamp remaining_waypoints_version = 7; - -  // The returned current route format, `LAT_LNG_LIST_TYPE` (in `Trip.route`), -  // or `ENCODED_POLYLINE_TYPE` (in `Trip.current_route_segment`). The default -  // is `LAT_LNG_LIST_TYPE`. -  PolylineFormatType route_format_type = 8; - -  // Indicates the minimum timestamp (exclusive) for which -  // `Trip.current_route_segment_traffic` is retrieved. If traffic data are -  // unchanged since this timestamp, the `current_route_segment_traffic` field -  // is not set in the response. If a minimum is unspecified, the traffic data -  // are always retrieved. Note that traffic is only available for On-Demand -  // Rides and Deliveries Solution customers. -  google.protobuf.Timestamp current_route_segment_traffic_version = 9; - -  // Indicates the minimum timestamp (exclusive) for which -  // `Trip.remaining_waypoints.traffic_to_waypoint` and -  // `Trip.remaining_waypoints.path_to_waypoint` data are retrieved. If data are -  // unchanged since this timestamp, the fields above are -  // not set in the response. If `remaining_waypoints_route_version` is -  // unspecified, traffic and path are always retrieved. -  google.protobuf.Timestamp remaining_waypoints_route_version = 10; -} - -// ReportBillableTrip request message. -message ReportBillableTripRequest { -  // Selector for different solution types of a reported trip. -  enum SolutionType { -    // The default value. For backwards-compatibility, the API will use -    // `ON_DEMAND_RIDESHARING_AND_DELIVERIES` by default which is the first -    // supported solution type. -    SOLUTION_TYPE_UNSPECIFIED = 0; - -    // The solution is an on-demand ridesharing and deliveries trip. -    ON_DEMAND_RIDESHARING_AND_DELIVERIES = 1; -  } - -  // Required. Must be in the format -  // `providers/{provider}/billableTrips/{billable_trip}`. The -  // provider must be the Project ID (for example, `sample-cloud-project`) of -  // the Google Cloud Project of which the service account making this call is a -  // member. -  string name = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Two letter country code of the country where the trip takes place. Price is -  // defined according to country code. -  string country_code = 3 [(google.api.field_behavior) = REQUIRED]; - -  // The platform upon which the request was issued. -  BillingPlatformIdentifier platform = 5; - -  // The identifiers that are directly related to the trip being reported. These -  // are usually IDs (for example, session IDs) of pre-booking operations done -  // before the trip ID is available. The number of `related_ids` is -  // limited to 50. -  repeated string related_ids = 6; - -  // The type of GMP product solution (for example, -  // `ON_DEMAND_RIDESHARING_AND_DELIVERIES`) used for the reported trip. -  SolutionType solution_type = 7; -} - -// UpdateTrip request message. -message UpdateTripRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format -  // `providers/{provider}/trips/{trip}`. The provider must -  // be the Project ID (for example, `sample-consumer-project`) of the Google -  // Cloud Project of which the service account making this call is a member. -  string name = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The Trip associated with the update. -  // -  // The following fields are maintained by the Fleet Engine. Do not update -  // them using Trip.update. -  // -  // * `current_route_segment` -  // * `current_route_segment_end_point` -  // * `current_route_segment_traffic` -  // * `current_route_segment_traffic_version` -  // * `current_route_segment_version` -  // * `dropoff_time` -  // * `eta_to_next_waypoint` -  // * `intermediate_destinations_version` -  // * `last_location` -  // * `name` -  // * `number_of_passengers` -  // * `pickup_time` -  // * `remaining_distance_meters` -  // * `remaining_time_to_first_waypoint` -  // * `remaining_waypoints` -  // * `remaining_waypoints_version` -  // * `route` -  // -  // When you update the `Trip.vehicle_id` for a shared trip, you must supply -  // the list of `Trip.vehicle_waypoints` to specify the order of the remaining -  // waypoints, otherwise the order will be undetermined. -  // -  // When you specify `Trip.vehicle_waypoints`, the list must contain all -  // the remaining waypoints of the vehicle's trips, with no extra waypoints. -  // You must order these waypoints such that for a given trip, the pickup -  // point is before intermediate destinations, and all intermediate -  // destinations come before the drop-off point. An `EXCLUSIVE` trip's -  // waypoints must not interleave with any other trips. -  // The `trip_id`, `waypoint_type` and `location` fields are used, and all -  // other TripWaypoint fields in `vehicle_waypoints` are ignored. -  // -  // To avoid a race condition for trips with multiple destinations, you -  // should provide `Trip.intermediate_destinations_version` when updating -  // the trip status to `ENROUTE_TO_INTERMEDIATE_DESTINATION`. The -  // `Trip.intermediate_destinations_version` passed must be consistent with -  // Fleet Engine's version. If it isn't, the request fails. -  Trip trip = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The field mask indicating which fields in Trip to update. -  // The `update_mask` must contain at least one field. -  google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED]; -} - -// SearchTrips request message. -message SearchTripsRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format `providers/{provider}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string parent = 3 [(google.api.field_behavior) = REQUIRED]; - -  // The vehicle associated with the trips in the request. If unspecified, the -  // returned trips do not contain: -  // -  // * `current_route_segment` -  // * `remaining_waypoints` -  // * `remaining_distance_meters` -  // * `eta_to_first_waypoint` -  string vehicle_id = 4; - -  // If set to true, only Trips that influence the drivers route -  // are included in the response. -  bool active_trips_only = 5; - -  // If not set, the server will decide the number of -  // results to return. -  int32 page_size = 6; - -  // Set this to a value previously returned in the -  // SearchTripsResponse to continue from previous results. -  string page_token = 7; - -  // If specified, returns the trips that have not been updated after -  // the time `(current - minimum_staleness)`. -  google.protobuf.Duration minimum_staleness = 8; -} - -// SearchTrips response message. -message SearchTripsResponse { -  // The list of trips for the requested vehicle. -  repeated Trip trips = 1; - -  // Pass this token in the SearchTripsRequest to continue to -  // list results. If all results have been returned, this field is an empty -  // string or not present in the response. -  string next_page_token = 2; -} diff --git a/third_party/googleapis/google/maps/fleetengine/v1/trips.proto b/third_party/googleapis/google/maps/fleetengine/v1/trips.proto deleted file mode 100644 index 46ba96b..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/trips.proto +++ /dev/null @@ -1,288 +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 maps.fleetengine.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/maps/fleetengine/v1/fleetengine.proto"; -import "google/maps/fleetengine/v1/traffic.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine"; -option java_multiple_files = true; -option java_outer_classname = "Trips"; -option java_package = "google.maps.fleetengine.v1"; -option objc_class_prefix = "CFE"; - -// Trip metadata. -message Trip { -  option (google.api.resource) = { -    type: "fleetengine.googleapis.com/Trip" -    pattern: "providers/{provider}/trips/{trip}" -  }; - -  // Output only. In the format "providers/{provider}/trips/{trip}" -  string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // ID of the vehicle making this trip. -  string vehicle_id = 2; - -  // Current status of the trip. -  TripStatus trip_status = 3; - -  // The type of the trip. -  TripType trip_type = 4; - -  // Location where customer indicates they will be picked up. -  TerminalLocation pickup_point = 5; - -  // Input only. The actual location when and where customer was picked up. -  // This field is for provider to provide feedback on actual pickup -  // information. -  StopLocation actual_pickup_point = 22 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. The actual time and location of the driver arrival at -  // the pickup point. -  // This field is for provider to provide feedback on actual arrival -  // information at the pickup point. -  StopLocation actual_pickup_arrival_point = 32 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Output only. Either the estimated future time when the rider(s) will be picked up, or -  // the actual time when they were picked up. -  google.protobuf.Timestamp pickup_time = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Intermediate stops in order that the trip requests (in addition -  // to pickup and dropoff). Initially this will not be supported for shared -  // trips. -  repeated TerminalLocation intermediate_destinations = 14; - -  // Indicates the last time the `intermediate_destinations` was modified. -  // Your server should cache this value and pass it in `UpdateTripRequest` -  // when update `intermediate_destination_index` to ensure the -  // Trip.intermediate_destinations is not changed. -  google.protobuf.Timestamp intermediate_destinations_version = 25; - -  // When `TripStatus` is `ENROUTE_TO_INTERMEDIATE_DESTINATION`, a number -  // between [0..N-1] indicating which intermediate destination the vehicle will -  // cross next. When `TripStatus` is `ARRIVED_AT_INTERMEDIATE_DESTINATION`, a -  // number between [0..N-1] indicating which intermediate destination the -  // vehicle is at. The provider sets this value. If there are no -  // `intermediate_destinations`, this field is ignored. -  int32 intermediate_destination_index = 15; - -  // Input only. The actual time and location of the driver's arrival at -  // an intermediate destination. -  // This field is for provider to provide feedback on actual arrival -  // information at intermediate destinations. -  repeated StopLocation actual_intermediate_destination_arrival_points = 33 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Input only. The actual time and location when and where the customer was picked up from -  // an intermediate destination. -  // This field is for provider to provide feedback on actual pickup -  // information at intermediate destinations. -  repeated StopLocation actual_intermediate_destinations = 34 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Location where customer indicates they will be dropped off. -  TerminalLocation dropoff_point = 7; - -  // Input only. The actual time and location when and where customer was dropped off. -  // This field is for provider to provide feedback on actual dropoff -  // information. -  StopLocation actual_dropoff_point = 23 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Output only. Either the estimated future time when the rider(s) will be dropped off at -  // the final destination, or the actual time when they were dropped off. -  google.protobuf.Timestamp dropoff_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The full path from the current location to the dropoff point, inclusive. -  // This path could include waypoints from other trips. -  repeated TripWaypoint remaining_waypoints = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // This field supports manual ordering of the waypoints for the trip. It -  // contains all of the remaining waypoints for the assigned vehicle, as well -  // as the pickup and drop-off waypoints for this trip. If the trip hasn't been -  // assigned to a vehicle, then this field is ignored. For privacy reasons, -  // this field is only populated by the server on UpdateTrip and CreateTrip -  // calls, NOT on GetTrip calls. -  repeated TripWaypoint vehicle_waypoints = 20; - -  // Output only. Anticipated route for this trip to the first entry in remaining_waypoints. -  // Note that the first waypoint may belong to a different trip. -  repeated google.type.LatLng route = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. An encoded path to the next waypoint. -  // -  // Note: This field is intended only for use by the Driver SDK and Consumer -  // SDK. Decoding is not yet supported. -  string current_route_segment = 21 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Indicates the last time the route was modified. -  // -  // Note: This field is intended only for use by the Driver SDK and Consumer -  // SDK. -  google.protobuf.Timestamp current_route_segment_version = 17 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Indicates the traffic conditions along the `current_route_segment` when -  // they're available. -  // -  // Note: This field is intended only for use by the Driver SDK and Consumer -  // SDK. -  ConsumableTrafficPolyline current_route_segment_traffic = 28 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Indicates the last time the `current_route_segment_traffic` was modified. -  // -  // Note: This field is intended only for use by the Driver SDK and Consumer -  // SDK. -  google.protobuf.Timestamp current_route_segment_traffic_version = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The waypoint where `current_route_segment` ends. -  TripWaypoint current_route_segment_end_point = 24 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The remaining driving distance in the `current_route_segment` field. The -  // value is unspecified if the trip is not assigned to a vehicle, or the trip -  // is completed or cancelled. -  google.protobuf.Int32Value remaining_distance_meters = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The ETA to the next waypoint (the first entry in the `remaining_waypoints` -  // field). The value is unspecified if the trip is not assigned to a vehicle, -  // or the trip is inactive (completed or cancelled). -  google.protobuf.Timestamp eta_to_first_waypoint = 13 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The duration from when the Trip data is returned to the time in -  // `Trip.eta_to_first_waypoint`. The value is unspecified if the trip is not -  // assigned to a vehicle, or the trip is inactive (completed or cancelled). -  google.protobuf.Duration remaining_time_to_first_waypoint = 27 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Indicates the last time that `remaining_waypoints` was changed (a -  // waypoint was added, removed, or changed). -  google.protobuf.Timestamp remaining_waypoints_version = 19 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Indicates the last time the `remaining_waypoints.path_to_waypoint` and -  // `remaining_waypoints.traffic_to_waypoint` were modified. Your client app -  // should cache this value and pass it in `GetTripRequest` to ensure the -  // paths and traffic for `remaining_waypoints` are only returned if updated. -  google.protobuf.Timestamp remaining_waypoints_route_version = 29 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Immutable. Indicates the number of passengers on this trip and does not include the -  // driver. A vehicle must have available capacity to be returned -  // in SearchVehicles. -  int32 number_of_passengers = 10 [(google.api.field_behavior) = IMMUTABLE]; - -  // Output only. Indicates the last reported location of the vehicle along the route. -  VehicleLocation last_location = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Indicates whether the vehicle's `last_location` can be snapped to -  // the current_route_segment. False if `last_location` or -  // `current_route_segment` doesn't exist. -  // It is computed by Fleet Engine. Any update from clients will be ignored. -  bool last_location_snappable = 26 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // The subset of Trip fields that are populated and how they should be -  // interpreted. -  TripView view = 31; -} - -// The actual location where a stop (pickup/dropoff) happened. -message StopLocation { -  // Required. Denotes the actual location. -  google.type.LatLng point = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Indicates when the stop happened. -  google.protobuf.Timestamp timestamp = 2; - -  // Input only. Deprecated.  Use the timestamp field. -  google.protobuf.Timestamp stop_time = 3 [ -    deprecated = true, -    (google.api.field_behavior) = INPUT_ONLY -  ]; -} - -// The status of a trip indicating its progression. -enum TripStatus { -  // Default, used for unspecified or unrecognized trip status. -  UNKNOWN_TRIP_STATUS = 0; - -  // Newly created trip. -  NEW = 1; - -  // The driver is on their way to the pickup point. -  ENROUTE_TO_PICKUP = 2; - -  // The driver has arrived at the pickup point. -  ARRIVED_AT_PICKUP = 3; - -  // The driver has arrived at an intermediate destination and is waiting for -  // the rider. -  ARRIVED_AT_INTERMEDIATE_DESTINATION = 7; - -  // The driver is on their way to an intermediate destination -  // (not the dropoff point). -  ENROUTE_TO_INTERMEDIATE_DESTINATION = 8; - -  // The driver has picked up the rider and is on their way to the -  // next destination. -  ENROUTE_TO_DROPOFF = 4; - -  // The rider has been dropped off and the trip is complete. -  COMPLETE = 5; - -  // The trip was canceled prior to pickup by the driver, rider, or -  // rideshare provider. -  CANCELED = 6; -} - -// A set of values that indicate upon which platform the request was issued. -enum BillingPlatformIdentifier { -  // Default. Used for unspecified platforms. -  BILLING_PLATFORM_IDENTIFIER_UNSPECIFIED = 0; - -  // The platform is a client server. -  SERVER = 1; - -  // The platform is a web browser. -  WEB = 2; - -  // The platform is an Android mobile device. -  ANDROID = 3; - -  // The platform is an IOS mobile device. -  IOS = 4; - -  // Other platforms that are not listed in this enumeration. -  OTHERS = 5; -} - -// Selector for different sets of Trip fields in a `GetTrip` response.  See -// [AIP-157](https://google.aip.dev/157) for context. Additional views are -// likely to be added. -enum TripView { -  // The default value. For backwards-compatibility, the API will default to an -  // SDK view. To ensure stability and support, customers are -  // advised to select a `TripView` other than `SDK`. -  TRIP_VIEW_UNSPECIFIED = 0; - -  // Includes fields that may not be interpretable or supportable using -  // publicly available libraries. -  SDK = 1; - -  // Trip fields are populated for the Journey Sharing use case. This view is -  // intended for server-to-server communications. -  JOURNEY_SHARING_V1S = 2; -} diff --git a/third_party/googleapis/google/maps/fleetengine/v1/vehicle_api.proto b/third_party/googleapis/google/maps/fleetengine/v1/vehicle_api.proto deleted file mode 100644 index 2356a34..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/vehicle_api.proto +++ /dev/null @@ -1,769 +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 maps.fleetengine.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/api/routing.proto"; -import "google/maps/fleetengine/v1/fleetengine.proto"; -import "google/maps/fleetengine/v1/header.proto"; -import "google/maps/fleetengine/v1/vehicles.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine"; -option java_multiple_files = true; -option java_outer_classname = "VehicleApi"; -option java_package = "google.maps.fleetengine.v1"; -option objc_class_prefix = "CFE"; - -// Vehicle management service. -service VehicleService { -  option (google.api.default_host) = "fleetengine.googleapis.com"; - -  // Instantiates a new vehicle associated with an on-demand rideshare or -  // deliveries provider. Each `Vehicle` must have a unique vehicle ID. -  // -  // The following `Vehicle` fields are required when creating a `Vehicle`: -  // -  // * `vehicleState` -  // * `supportedTripTypes` -  // * `maximumCapacity` -  // * `vehicleType` -  // -  // The following `Vehicle` fields are ignored when creating a `Vehicle`: -  // -  // * `name` -  // * `currentTrips` -  // * `availableCapacity` -  // * `current_route_segment` -  // * `current_route_segment_end_point` -  // * `current_route_segment_version` -  // * `current_route_segment_traffic` -  // * `route` -  // * `waypoints` -  // * `waypoints_version` -  // * `remaining_distance_meters` -  // * `remaining_time_seconds` -  // * `eta_to_next_waypoint` -  // * `navigation_status` -  // -  // All other fields are optional and used if provided. -  rpc CreateVehicle(CreateVehicleRequest) returns (Vehicle) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/vehicles" -      body: "vehicle" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Returns a vehicle from the Fleet Engine. -  rpc GetVehicle(GetVehicleRequest) returns (Vehicle) { -    option (google.api.http) = { -      get: "/v1/{name=providers/*/vehicles/*}" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Writes updated vehicle data to the Fleet Engine. -  // -  // When updating a `Vehicle`, the following fields cannot be updated since -  // they are managed by the server: -  // -  // * `currentTrips` -  // * `availableCapacity` -  // * `current_route_segment_version` -  // * `waypoints_version` -  // -  // The vehicle `name` also cannot be updated. -  // -  // If the `attributes` field is updated, **all** the vehicle's attributes are -  // replaced with the attributes provided in the request. If you want to update -  // only some attributes, see the `UpdateVehicleAttributes` method. Likewise, -  // the `waypoints` field can be updated, but must contain all the waypoints -  // currently on the vehicle, and no other waypoints. -  rpc UpdateVehicle(UpdateVehicleRequest) returns (Vehicle) { -    option (google.api.http) = { -      put: "/v1/{name=providers/*/vehicles/*}" -      body: "vehicle" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Deprecated: Use the `UpdateVehicle` method instead. -  // UpdateVehicleLocation updates the location of the vehicle. -  rpc UpdateVehicleLocation(UpdateVehicleLocationRequest) returns (VehicleLocation) { -    option deprecated = true; -    option (google.api.http) = { -      put: "/v1/{name=providers/*/vehicles/*}:updateLocation" -      body: "*" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Partially updates a vehicle's attributes. -  // Only the attributes mentioned in the request will be updated, other -  // attributes will NOT be altered. Note: this is different in `UpdateVehicle`, -  // where the whole `attributes` field will be replaced by the one in -  // `UpdateVehicleRequest`, attributes not in the request would be removed. -  rpc UpdateVehicleAttributes(UpdateVehicleAttributesRequest) returns (UpdateVehicleAttributesResponse) { -    option (google.api.http) = { -      post: "/v1/{name=providers/*/vehicles/*}:updateAttributes" -      body: "*" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "name" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Returns a paginated list of vehicles associated with -  // a provider that match the request options. -  rpc ListVehicles(ListVehiclesRequest) returns (ListVehiclesResponse) { -    option (google.api.http) = { -      get: "/v1/{parent=providers/*}/vehicles" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Returns a list of vehicles that match the request options. -  rpc SearchVehicles(SearchVehiclesRequest) returns (SearchVehiclesResponse) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/vehicles:search" -      body: "*" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } - -  // Returns a list of vehicles that match the request -  // options, but the vehicle locations will be somewhat altered for privacy. -  // This method does not support the `SearchVehicleRequest.order_by` field. -  // Vehicle matches in the response will be in order of distance from the -  // pickup point.  Only the `vehicle` and `trip_type` fields will be populated. -  rpc SearchFuzzedVehicles(SearchVehiclesRequest) returns (SearchVehiclesResponse) { -    option (google.api.http) = { -      post: "/v1/{parent=providers/*}/vehicles:searchFuzzed" -      body: "*" -    }; -    option (google.api.routing) = { -      routing_parameters { -        field: "parent" -        path_template: "{provider_id=providers/*}" -      } -    }; -  } -} - -// `CreateVehicle` request message. -message CreateVehicleRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format `providers/{provider}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string parent = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Unique Vehicle ID. -  // Subject to the following restrictions: -  // -  // * Must be a valid Unicode string. -  // * Limited to a maximum length of 64 characters. -  // * Normalized according to [Unicode Normalization Form C] -  // (http://www.unicode.org/reports/tr15/). -  // * May not contain any of the following ASCII characters: '/', ':', '?', -  // ',', or '#'. -  string vehicle_id = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The Vehicle entity to create. When creating a Vehicle, the following -  // fields are required: -  // -  // * `vehicleState` -  // * `supportedTripTypes` -  // * `maximumCapacity` -  // * `vehicleType` -  // -  // When creating a Vehicle, the following fields are ignored: -  // -  // * `name` -  // * `currentTrips` -  // * `availableCapacity` -  // * `current_route_segment` -  // * `current_route_segment_end_point` -  // * `current_route_segment_version` -  // * `current_route_segment_traffic` -  // * `route` -  // * `waypoints` -  // * `waypoints_version` -  // * `remaining_distance_meters` -  // * `remaining_time_seconds` -  // * `eta_to_next_waypoint` -  // * `navigation_status` -  // -  // All other fields are optional and used if provided. -  Vehicle vehicle = 5 [(google.api.field_behavior) = REQUIRED]; -} - -// `GetVehicle` request message. -message GetVehicleRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format -  // `providers/{provider}/vehicles/{vehicle}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string name = 3 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "fleetengine.googleapis.com/Vehicle" -    } -  ]; - -  // Indicates the minimum timestamp (exclusive) for which -  // `Vehicle.current_route_segment` is retrieved. -  // If the route is unchanged since this timestamp, the `current_route_segment` -  // field is not set in the response. If a minimum is unspecified, the -  // `current_route_segment` is always retrieved. -  google.protobuf.Timestamp current_route_segment_version = 4; - -  // Indicates the minimum timestamp (exclusive) for which `Vehicle.waypoints` -  // data is retrieved. If the waypoints are unchanged since this timestamp, the -  // `vehicle.waypoints` data is not set in the response. If this field is -  // unspecified, `vehicle.waypoints` is always retrieved. -  google.protobuf.Timestamp waypoints_version = 5; -} - -// `UpdateVehicle request message. -message UpdateVehicleRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format -  // `providers/{provider}/vehicles/{vehicle}`. -  // The {provider} must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string name = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The `Vehicle` entity values to apply.  When updating a `Vehicle`, -  // the following fields may not be updated as they are managed by the -  // server. -  // -  // * `current_trips` -  // * `available_capacity` -  // * `current_route_segment_version` -  // * `waypoints_version` -  // -  // Furthermore, the vehicle `name` cannot be updated. -  // -  // If the `attributes` field is updated, **all** the vehicle's attributes are -  // replaced with the attributes provided in the request. If you want to update -  // only some attributes, see the `UpdateVehicleAttributes` method. Likewise, -  // the `waypoints` field can be updated, but must contain all the waypoints. -  // currently on the vehicle, and no other waypoints. -  Vehicle vehicle = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Required. A field mask indicating which fields of the `Vehicle` to update. -  // At least one field name must be provided. -  google.protobuf.FieldMask update_mask = 5 [(google.api.field_behavior) = REQUIRED]; -} - -// `UpdateVehicleLocation` request message. -message UpdateVehicleLocationRequest { -  option deprecated = true; - -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format -  // `providers/{provider}/vehicles/{vehicle}`. -  // The {provider} must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string name = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The vehicle's most recent location.  The `location` and `update_time` -  // subfields are required. -  VehicleLocation current_location = 4 [(google.api.field_behavior) = REQUIRED]; - -  // Set the vehicle's state to either `ONLINE` or `OFFLINE`. -  // If set to `UNKNOWN_VEHICLE_STATE`, the vehicle's state will not be altered. -  VehicleState current_state = 5; -} - -// `UpdateVehicleAttributes` request message. -message UpdateVehicleAttributesRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format `providers/{provider}/vehicles/{vehicle}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string name = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The vehicle attributes to update. Unmentioned attributes will not be -  // altered or removed. -  repeated VehicleAttribute attributes = 4 [(google.api.field_behavior) = REQUIRED]; -} - -// `UpdateVehicleAttributes` response message. -message UpdateVehicleAttributesResponse { -  // Required. The updated full list of vehicle attributes, including new, -  // altered and untouched attributes. -  repeated VehicleAttribute attributes = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// `SearchVehicles` request message. -message SearchVehiclesRequest { -  // Specifies the order of the vehicle matches in the response. -  enum VehicleMatchOrder { -    // Default, used for unspecified or unrecognized vehicle matches order. -    UNKNOWN_VEHICLE_MATCH_ORDER = 0; - -    // Ascending order by vehicle driving time to the pickup point. -    PICKUP_POINT_ETA = 1; - -    // Ascending order by vehicle driving distance to the pickup point. -    PICKUP_POINT_DISTANCE = 2; - -    // Ascending order by vehicle driving time to the dropoff point. This order -    // can only be used if the dropoff point is specified in the request. -    DROPOFF_POINT_ETA = 3; - -    // Ascending order by straight-line distance from the vehicle's last -    // reported location to the pickup point. -    PICKUP_POINT_STRAIGHT_DISTANCE = 4; - -    // Ascending order by the configured match cost. -    COST = 5; -  } - -  // Specifies the types of restrictions on a vehicle's current trips. -  enum CurrentTripsPresent { -    // Only vehicles without trips can appear in search results. -    // A validation exception is thrown if `include_back_to_back` is true. See -    // the `include_back_to_back` flag for more details. -    CURRENT_TRIPS_PRESENT_UNSPECIFIED = 0; - -    // Vehicles without trips can appear in search results. -    // A validation exception is thrown if `include_back_to_back` is true. -    NONE = 1; - -    // Vehicles with at most 5 current trips and 10 waypoints are included -    // in the search results. -    // A validation exception is thrown if `include_back_to_back` is true. -    ANY = 2; -  } - -  // The standard Fleet Engine request header. -  RequestHeader header = 1; - -  // Required. Must be in the format `providers/{provider}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string parent = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The pickup point to search near. -  TerminalLocation pickup_point = 4 [(google.api.field_behavior) = REQUIRED]; - -  // The customer's intended dropoff location. The field is required if -  // `trip_types` contains `TripType.SHARED`. -  TerminalLocation dropoff_point = 5; - -  // Required. Defines the vehicle search radius around the pickup point. Only -  // vehicles within the search radius will be returned. Value must be between -  // 400 and 10000 meters (inclusive). -  int32 pickup_radius_meters = 6 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Specifies the maximum number of vehicles to return. The value -  // must be between 1 and 50 (inclusive). -  int32 count = 7 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Specifies the number of passengers being considered for a trip. The -  // value must be greater than or equal to one. The driver is not considered in -  // the capacity value. -  int32 minimum_capacity = 8 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Represents the type of proposed trip. Eligible vehicles are those -  // that can support at least one of the specified trip type. -  // -  // `EXCLUSIVE` and `SHARED` may not be included together. -  // `SHARED` is not supported when `current_trips_present` is -  // `CURRENT_TRIPS_PRESENT_UNSPECIFIED`. -  repeated TripType trip_types = 9 [(google.api.field_behavior) = REQUIRED]; - -  // Restricts the search to only those vehicles that have updated their -  // locations within the specified duration. If this field is not -  // set, the server uses five minutes as the default value. -  google.protobuf.Duration maximum_staleness = 10; - -  // Required. Restricts the search to vehicles with one of the specified types. -  // At least one vehicle type must be specified. -  repeated Vehicle.VehicleType vehicle_types = 14 [(google.api.field_behavior) = REQUIRED]; - -  // Callers can form complex logical operations using any combination of the -  // `required_attributes`, `required_one_of_attributes`, and -  // `required_one_of_attribute_sets` fields. -  // -  // `required_attributes` is a list; `required_one_of_attributes` uses a -  // message which allows a list of lists. In combination, the two fields allow -  // the composition of this expression: -  // -  // ``` -  // (required_attributes[0] AND required_attributes[1] AND ...) -  // AND -  // (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR -  // ...) -  // AND -  // (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR -  // ...) -  // ``` -  // -  // Restricts the search to only those vehicles with the specified attributes. -  // This field is a conjunction/AND operation. A max of 50 required_attributes -  // is allowed. This matches the maximum number of attributes allowed on a -  // vehicle. -  repeated VehicleAttribute required_attributes = 12; - -  // Restricts the search to only those vehicles with at least one of -  // the specified attributes in each `VehicleAttributeList`. Within each -  // list, a vehicle must match at least one of the attributes. This field is an -  // inclusive disjunction/OR operation in each `VehicleAttributeList` and a -  // conjunction/AND operation across the collection of `VehicleAttributeList`. -  repeated VehicleAttributeList required_one_of_attributes = 15; - -  // `required_one_of_attribute_sets` provides additional functionality. -  // -  // Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` -  // uses a message which allows a list of lists, allowing expressions such as -  // this one: -  // -  // ``` -  // (required_attributes[0] AND required_attributes[1] AND ...) -  // AND -  // (required_one_of_attribute_sets[0][0] AND -  // required_one_of_attribute_sets[0][1] AND -  // ...) -  // OR -  // (required_one_of_attribute_sets[1][0] AND -  // required_one_of_attribute_sets[1][1] AND -  // ...) -  // ``` -  // -  // Restricts the search to only those vehicles with all the attributes in a -  // `VehicleAttributeList`. Within each list, a -  // vehicle must match all of the attributes. This field is a conjunction/AND -  // operation in each `VehicleAttributeList` and inclusive disjunction/OR -  // operation across the collection of `VehicleAttributeList`. -  repeated VehicleAttributeList required_one_of_attribute_sets = 20; - -  // Required. Specifies the desired ordering criterion for results. -  VehicleMatchOrder order_by = 13 [(google.api.field_behavior) = REQUIRED]; - -  // Indicates if a vehicle with a single active trip is eligible for another -  // match. If `false`, vehicles with assigned trips are excluded from the -  // search results. If `true`, search results include vehicles with -  // `TripStatus` of `ENROUTE_TO_DROPOFF`. -  // -  // This field is only considered if a single `trip_type` of `EXCLUSIVE` is -  // specified. -  // -  // The default value is `false`. -  bool include_back_to_back = 18; - -  // Indicates the trip associated with this `SearchVehicleRequest`. -  string trip_id = 19; - -  // Restricts vehicles from appearing in the search results based on -  // their current trips. -  // -  // When current_trips_present is `NONE` or `ANY`, `trip_types` can be either -  // `EXCLUSIVE` or `SHARED`, but not both. -  CurrentTripsPresent current_trips_present = 21; -} - -// `SearchVehicles` response message. -message SearchVehiclesResponse { -  // List of vehicles that match the `SearchVehiclesRequest` criteria, ordered -  // according to `SearchVehiclesRequest.order_by` field. -  repeated VehicleMatch matches = 1; -} - -// `ListVehicles` request message. -message ListVehiclesRequest { -  // The standard Fleet Engine request header. -  RequestHeader header = 12; - -  // Required. Must be in the format `providers/{provider}`. -  // The provider must be the Project ID (for example, `sample-cloud-project`) -  // of the Google Cloud Project of which the service account making -  // this call is a member. -  string parent = 1 [(google.api.field_behavior) = REQUIRED]; - -  // The maximum number of vehicles to return. -  // Default value: 100. -  int32 page_size = 3; - -  // The `next_page_token` value returned from a previous call to -  // `ListVehicles`. Functionality is undefined if the filter criteria of this -  // request don't match the criteria in the request that produced this -  // `page_token`. -  string page_token = 4; - -  // Specifies the required minimum capacity of the vehicle. All vehicles -  // returned will have a `maximum_capacity` greater than or equal to this -  // value. If set, must be greater or equal to 0. -  google.protobuf.Int32Value minimum_capacity = 6; - -  // Restrict the response to vehicles that support at least -  // one of the specified trip types. -  repeated TripType trip_types = 7; - -  // Restrict the response to vehicles that have updated -  // their locations within the specified duration back from now. -  // If present, must be a valid positive duration. -  google.protobuf.Duration maximum_staleness = 8; - -  // Required. Restrict the response to vehicles with one of the specified type -  // categories. -  repeated Vehicle.VehicleType.Category vehicle_type_categories = 9 [(google.api.field_behavior) = REQUIRED]; - -  // Callers can form complex logical operations using any combination of the -  // `required_attributes`, `required_one_of_attributes`, and -  // `required_one_of_attribute_sets` fields. -  // -  // `required_attributes` is a list; `required_one_of_attributes` uses a -  // message which allows a list of lists. In combination, the two fields allow -  // the composition of this expression: -  // -  // ``` -  // (required_attributes[0] AND required_attributes[1] AND ...) -  // AND -  // (required_one_of_attributes[0][0] OR required_one_of_attributes[0][1] OR -  // ...) -  // AND -  // (required_one_of_attributes[1][0] OR required_one_of_attributes[1][1] OR -  // ...) -  // ``` -  // -  // Restrict the response to vehicles with the specified attributes. This field -  // is a conjunction/AND operation. A max of 50 required_attributes is allowed. -  // This matches the maximum number of attributes allowed on a vehicle. Each -  // repeated string should be of the format "key:value". -  repeated string required_attributes = 10; - -  // Restrict the response to vehicles with at least one -  // of the specified attributes in each `VehicleAttributeList`. -  // Within each list, a vehicle must match at least one of the attributes. -  // This field is an inclusive disjunction/OR operation in each -  // `VehicleAttributeList` and a conjunction/AND operation across the -  // collection of `VehicleAttributeList`. Each repeated string should be of the -  // format "key1:value1|key2:value2|key3:value3". -  repeated string required_one_of_attributes = 13; - -  // `required_one_of_attribute_sets` provides additional functionality. -  // -  // Similar to `required_one_of_attributes`, `required_one_of_attribute_sets` -  // uses a message which allows a list of lists, allowing expressions such as -  // this one: -  // -  // ``` -  // (required_attributes[0] AND required_attributes[1] AND ...) -  // AND -  // (required_one_of_attributes[0][0] AND required_one_of_attributes[0][1] AND -  // ...) -  // OR -  // (required_one_of_attributes[1][0] AND required_one_of_attributes[1][1] AND -  // ...) -  // ``` -  // -  // Restrict the response to vehicles that match all the attributes in a -  // `VehicleAttributeList`. Within each list, a vehicle must match all of the -  // attributes. This field is a conjunction/AND operation in each -  // `VehicleAttributeList` and inclusive disjunction/OR operation across the -  // collection of `VehicleAttributeList`. Each repeated string should be of the -  // format "key1:value1|key2:value2|key3:value3". -  repeated string required_one_of_attribute_sets = 15; - -  // Restrict the response to vehicles that have this vehicle state. -  VehicleState vehicle_state = 11; - -  // Only return the vehicles with current trip(s). -  bool on_trip_only = 14; -} - -// `ListVehicles` response message. -message ListVehiclesResponse { -  // Vehicles matching the criteria in the request. -  // The maximum number of vehicles returned is determined by the `page_size` -  // field in the request. -  repeated Vehicle vehicles = 1; - -  // Token to retrieve the next page of vehicles, or empty if there are no -  // more vehicles that meet the request criteria. -  string next_page_token = 2; - -  // Required. Total number of vehicles matching the request criteria across all pages. -  int64 total_size = 3 [(google.api.field_behavior) = REQUIRED]; -} - -// Describes intermediate points along a route. -message Waypoint { -  // The location of this waypoint. -  google.type.LatLng lat_lng = 1; - -  // The estimated time that the vehicle will arrive at this waypoint. -  google.protobuf.Timestamp eta = 2; -} - -// Contains the vehicle and related estimates for a vehicle that match the -// points of active trips for the vehicle `SearchVehiclesRequest`. -message VehicleMatch { -  // Type of vehicle match. -  enum VehicleMatchType { -    // Unknown vehicle match type -    UNKNOWN = 0; - -    // The vehicle currently has no trip assigned to it and can proceed to the -    // pickup point. -    EXCLUSIVE = 1; - -    // The vehicle is currently assigned to a trip, but can proceed to the -    // pickup point after completing the in-progress trip.  ETA and distance -    // calculations take the existing trip into account. -    BACK_TO_BACK = 2; - -    // The vehicle has sufficient capacity for a shared ride. -    CARPOOL = 3; - -    // The vehicle will finish its current, active trip before proceeding to the -    // pickup point.  ETA and distance calculations take the existing trip into -    // account. -    CARPOOL_BACK_TO_BACK = 4; -  } - -  // Required. A vehicle that matches the request. -  Vehicle vehicle = 1 [(google.api.field_behavior) = REQUIRED]; - -  // The vehicle's driving ETA to the pickup point specified in the -  // request. An empty value indicates a failure in calculating ETA for the -  // vehicle.  If `SearchVehiclesRequest.include_back_to_back` was `true` and -  // this vehicle has an active trip, `vehicle_pickup_eta` includes the time -  // required to complete the current active trip. -  google.protobuf.Timestamp vehicle_pickup_eta = 2; - -  // The distance from the Vehicle's current location to the pickup point -  // specified in the request, including any intermediate pickup or dropoff -  // points for existing trips. This distance comprises the calculated driving -  // (route) distance, plus the straight line distance between the navigation -  // end point and the requested pickup point. (The distance between the -  // navigation end point and the requested pickup point is typically small.) An -  // empty value indicates an error in calculating the distance. -  google.protobuf.Int32Value vehicle_pickup_distance_meters = 3; - -  // Required. The straight-line distance between the vehicle and the pickup point -  // specified in the request. -  google.protobuf.Int32Value vehicle_pickup_straight_line_distance_meters = 11 [(google.api.field_behavior) = REQUIRED]; - -  // The complete vehicle's driving ETA to the drop off point specified in the -  // request. The ETA includes stopping at any waypoints before the -  // `dropoff_point` specified in the request. The value will only be populated -  // when a drop off point is specified in the request. An empty value indicates -  // an error calculating the ETA. -  google.protobuf.Timestamp vehicle_dropoff_eta = 4; - -  // The vehicle's driving distance (in meters) from the pickup point -  // to the drop off point specified in the request. The distance is only -  // between the two points and does not include the vehicle location or any -  // other points that must be visited before the vehicle visits either the -  // pickup point or dropoff point. The value will only be populated when a -  // `dropoff_point` is specified in the request. An empty value indicates -  // a failure in calculating the distance from the pickup to -  // drop off point specified in the request. -  google.protobuf.Int32Value vehicle_pickup_to_dropoff_distance_meters = 5; - -  // Required. The trip type of the request that was used to calculate the ETA -  // to the pickup point. -  TripType trip_type = 6 [(google.api.field_behavior) = REQUIRED]; - -  // The ordered list of waypoints used to calculate the ETA. The list -  // includes vehicle location, the pickup/drop off points of active -  // trips for the vehicle, and the pickup/drop off points provided in the -  // request. An empty list indicates a failure in calculating ETA for the -  // vehicle. -  repeated Waypoint vehicle_trips_waypoints = 7; - -  // Type of the vehicle match. -  VehicleMatchType vehicle_match_type = 8; - -  // The order requested for sorting vehicle matches. -  SearchVehiclesRequest.VehicleMatchOrder requested_ordered_by = 9; - -  // The actual order that was used for this vehicle. Normally this -  // will match the 'order_by' field from the request; however, in certain -  // circumstances such as an internal server error, a different method -  // may be used (such as `PICKUP_POINT_STRAIGHT_DISTANCE`). -  SearchVehiclesRequest.VehicleMatchOrder ordered_by = 10; -} - -// A list-of-lists datatype for vehicle attributes. -message VehicleAttributeList { -  // A list of attributes in this collection. -  repeated VehicleAttribute attributes = 1; -} diff --git a/third_party/googleapis/google/maps/fleetengine/v1/vehicles.proto b/third_party/googleapis/google/maps/fleetengine/v1/vehicles.proto deleted file mode 100644 index be9e73d..0000000 --- a/third_party/googleapis/google/maps/fleetengine/v1/vehicles.proto +++ /dev/null @@ -1,335 +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 maps.fleetengine.v1; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/maps/fleetengine/v1/fleetengine.proto"; -import "google/protobuf/timestamp.proto"; -import "google/protobuf/wrappers.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/fleetengine/v1;fleetengine"; -option java_multiple_files = true; -option java_outer_classname = "Vehicles"; -option java_package = "google.maps.fleetengine.v1"; -option objc_class_prefix = "CFE"; - -// Vehicle metadata. -message Vehicle { -  option (google.api.resource) = { -    type: "fleetengine.googleapis.com/Vehicle" -    pattern: "providers/{provider}/vehicles/{vehicle}" -  }; - -  // The type of vehicle. -  message VehicleType { -    // Vehicle type categories -    enum Category { -      // Default, used for unspecified or unrecognized vehicle categories. -      UNKNOWN = 0; - -      // An automobile. -      AUTO = 1; - -      // Any vehicle that acts as a taxi (typically licensed or regulated). -      TAXI = 2; - -      // Generally, a vehicle with a large storage capacity. -      TRUCK = 3; - -      // A motorcycle, moped, or other two-wheeled vehicle -      TWO_WHEELER = 4; -    } - -    // Vehicle type category -    Category category = 1; -  } - -  // Output only. The unique name for this vehicle. -  // The format is `providers/{provider}/vehicles/{vehicle}`. -  string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // The vehicle state. -  VehicleState vehicle_state = 2; - -  // Trip types supported by this vehicle. -  repeated TripType supported_trip_types = 3; - -  // Output only. List of `trip_id`'s for trips currently assigned to this vehicle. -  repeated string current_trips = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Last reported location of the vehicle. -  VehicleLocation last_location = 5; - -  // The total numbers of riders this vehicle can carry.  The driver is not -  // considered in this value. This value must be greater than or equal to one. -  int32 maximum_capacity = 6; - -  // List of vehicle attributes. A vehicle can have at most 50 -  // attributes, and each attribute must have a unique key. -  repeated VehicleAttribute attributes = 8; - -  // The type of this vehicle.  Can be used to filter vehicles in -  // `SearchVehicles` results.  Also influences ETA and route calculations. -  VehicleType vehicle_type = 9; - -  // License plate information for the vehicle. -  LicensePlate license_plate = 10; - -  // Deprecated: Use `Vehicle.waypoints` instead. -  repeated TerminalLocation route = 12 [deprecated = true]; - -  // The polyline specifying the route the driver app intends to take to -  // the next waypoint. This list is also returned in -  // `Trip.current_route_segment` for all active trips assigned to the vehicle. -  // -  // Note: This field is intended only for use by the Driver SDK. Decoding is -  // not yet supported. -  string current_route_segment = 20; - -  // Input only. Fleet Engine uses this information to improve Journey Sharing. -  TrafficPolylineData current_route_segment_traffic = 28 [(google.api.field_behavior) = INPUT_ONLY]; - -  // Output only. Time when `current_route_segment` was set. It can be stored by the client -  // and passed in future `GetVehicle` requests to prevent returning routes that -  // haven't changed. -  google.protobuf.Timestamp current_route_segment_version = 15 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // The waypoint where `current_route_segment` ends. This can be supplied by -  // drivers on `UpdateVehicle` calls either as a full trip waypoint, a waypoint -  // `LatLng`, or as the last `LatLng` of the `current_route_segment`. Fleet -  // Engine will then do its best to interpolate to an actual waypoint if it is -  // not fully specified. This field is ignored in `UpdateVehicle` calls unless -  // `current_route_segment` is also specified. -  TripWaypoint current_route_segment_end_point = 24; - -  // The remaining driving distance for the `current_route_segment`. -  // This value is also returned in `Trip.remaining_distance_meters` for all -  // active trips assigned to the vehicle. The value is unspecified if the -  // `current_route_segment` field is empty. -  google.protobuf.Int32Value remaining_distance_meters = 18; - -  // The ETA to the first entry in the `waypoints` field.  The value is -  // unspecified if the `waypoints` field is empty or the -  // `Vehicle.current_route_segment` field is empty. -  // -  // When updating a vehicle, `remaining_time_seconds` takes precedence over -  // `eta_to_first_waypoint` in the same request. -  google.protobuf.Timestamp eta_to_first_waypoint = 19; - -  // Input only. The remaining driving time for the `current_route_segment`. The value is -  // unspecified if the `waypoints` field is empty or the -  // `Vehicle.current_route_segment` field is empty. This value should match -  // `eta_to_first_waypoint` - `current_time` if all parties are using the same -  // clock. -  // -  // When updating a vehicle, `remaining_time_seconds` takes precedence over -  // `eta_to_first_waypoint` in the same request. -  google.protobuf.Int32Value remaining_time_seconds = 25 [(google.api.field_behavior) = INPUT_ONLY]; - -  // The remaining waypoints assigned to this Vehicle. -  repeated TripWaypoint waypoints = 22; - -  // Output only. Last time the `waypoints` field was updated. Clients should cache this -  // value and pass it in `GetVehicleRequest` to ensure the `waypoints` field is -  // only returned if it is updated. -  google.protobuf.Timestamp waypoints_version = 16 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Indicates if the driver accepts back-to-back trips. If `true`, -  // `SearchVehicles` may include the vehicle even if it is currently assigned -  // to a trip. The default value is `false`. -  bool back_to_back_enabled = 23; - -  // The vehicle's navigation status. -  NavigationStatus navigation_status = 26; - -  // Input only. Information about settings in the mobile device being used by the driver. -  DeviceSettings device_settings = 27 [(google.api.field_behavior) = INPUT_ONLY]; -} - -// Information about the device's battery. -message BatteryInfo { -  // Status of the battery, whether full or charging etc. -  BatteryStatus battery_status = 1; - -  // Status of battery power source. -  PowerSource power_source = 2; - -  // Current battery percentage [0-100]. -  float battery_percentage = 3; -} - -// Information about various settings on the mobile device. -message DeviceSettings { -  // How location features are set to behave on the device when battery saver is -  // on. -  LocationPowerSaveMode location_power_save_mode = 1; - -  // Whether the device is currently in power save mode. -  bool is_power_save_mode = 2; - -  // Whether the device is in an interactive state. -  bool is_interactive = 3; - -  // Information about the battery state. -  BatteryInfo battery_info = 4; -} - -// The license plate information of the Vehicle.  To avoid storing -// personally-identifiable information, only the minimum information -// about the license plate is stored as part of the entity. -message LicensePlate { -  // Required. CLDR Country/Region Code.  For example, `US` for United States, -  // or `IN` for India. -  string country_code = 1 [(google.api.field_behavior) = REQUIRED]; - -  // The last digit of the license plate or "-1" to denote no numeric value -  // is present in the license plate. -  // -  // * "ABC 1234" -> "4" -  // * "AB 123 CD" -> "3" -  // * "ABCDEF" -> "-1" -  string last_character = 2; -} - -// Describes how clients should color one portion of the polyline along the -// route. -message VisualTrafficReportPolylineRendering { -  // One road stretch that should be rendered. -  message RoadStretch { -    // The traffic style, indicating traffic speed. -    enum Style { -      // No style selected. -      STYLE_UNSPECIFIED = 0; - -      // Traffic is slowing down. -      SLOWER_TRAFFIC = 1; - -      // There is a traffic jam. -      TRAFFIC_JAM = 2; -    } - -    // Required. The style to apply. -    Style style = 1 [(google.api.field_behavior) = REQUIRED]; - -    // Required. The style should be applied between `[offset_meters, offset_meters + -    // length_meters)`. -    int32 offset_meters = 2 [(google.api.field_behavior) = REQUIRED]; - -    // Required. The length of the path where to apply the style. -    int32 length_meters = 3 [(google.api.field_behavior) = REQUIRED]; -  } - -  // Optional. Road stretches that should be rendered along the polyline. Stretches -  // <ul> -  // <li>are -  // guaranteed to not overlap, and</li> -  // <li>do not necessarily -  // span the full route.</li> -  // </ul> -  // -  // <p>In the absence of a road stretch to style, the client should apply the -  // default for the route. -  repeated RoadStretch road_stretch = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// Traffic conditions along the expected vehicle route. -message TrafficPolylineData { -  // A polyline rendering of how fast traffic is for all regions along -  // one stretch of a customer ride. -  VisualTrafficReportPolylineRendering traffic_rendering = 1; -} - -// The state of a `Vehicle`. -enum VehicleState { -  // Default, used for unspecified or unrecognized vehicle states. -  UNKNOWN_VEHICLE_STATE = 0; - -  // The vehicle is not accepting new trips. Note: the vehicle may continue to -  // operate in this state while completing a trip assigned to it. -  OFFLINE = 1; - -  // The vehicle is accepting new trips. -  ONLINE = 2; -} - -// How location features are configured to behave on the mobile device when the -// devices "battery saver" feature is on. -// (https://developer.android.com/reference/android/os/PowerManager#getLocationPowerSaveMode()) -enum LocationPowerSaveMode { -  // Undefined LocationPowerSaveMode -  UNKNOWN_LOCATION_POWER_SAVE_MODE = 0; - -  // Either the location providers shouldn't be affected by battery saver, or -  // battery saver is off. -  LOCATION_MODE_NO_CHANGE = 1; - -  // The GPS based location provider should be disabled when battery saver is on -  // and the device is non-interactive. -  LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF = 2; - -  // All location providers should be disabled when battery saver is on and the -  // device is non-interactive. -  LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF = 3; - -  // All the location providers will be kept available, but location fixes -  // should only be provided to foreground apps. -  LOCATION_MODE_FOREGROUND_ONLY = 4; - -  // Location will not be turned off, but LocationManager will throttle all -  // requests to providers when the device is non-interactive. -  LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF = 5; -} - -// Status of the battery, whether full or charging etc. -enum BatteryStatus { -  // Battery status unknown. -  UNKNOWN_BATTERY_STATUS = 0; - -  // Battery is being charged. -  BATTERY_STATUS_CHARGING = 1; - -  // Battery is discharging. -  BATTERY_STATUS_DISCHARGING = 2; - -  // Battery is full. -  BATTERY_STATUS_FULL = 3; - -  // Battery is not charging. -  BATTERY_STATUS_NOT_CHARGING = 4; - -  // Battery is low on power. -  BATTERY_STATUS_POWER_LOW = 5; -} - -// Type of the charger being used to charge the battery. -enum PowerSource { -  // Power source unknown. -  UNKNOWN_POWER_SOURCE = 0; - -  // Power source is an AC charger. -  POWER_SOURCE_AC = 1; - -  // Power source is a USB port. -  POWER_SOURCE_USB = 2; - -  // Power source is wireless. -  POWER_SOURCE_WIRELESS = 3; - -  // Battery is unplugged. -  POWER_SOURCE_UNPLUGGED = 4; -} diff --git a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/BUILD.bazel b/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/BUILD.bazel deleted file mode 100644 index e53bfd0..0000000 --- a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/BUILD.bazel +++ /dev/null @@ -1,377 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# 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") - -proto_library( -    name = "mapsplatformdatasets_proto", -    srcs = [ -        "data_source.proto", -        "dataset.proto", -        "maps_platform_datasets.proto", -        "maps_platform_datasets_alpha_service.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/api:resource_proto", -        "@com_google_protobuf//:empty_proto", -        "@com_google_protobuf//:field_mask_proto", -        "@com_google_protobuf//:timestamp_proto", -    ], -) - -proto_library_with_info( -    name = "mapsplatformdatasets_proto_with_info", -    deps = [ -        ":mapsplatformdatasets_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "mapsplatformdatasets_java_proto", -    deps = [":mapsplatformdatasets_proto"], -) - -java_grpc_library( -    name = "mapsplatformdatasets_java_grpc", -    srcs = [":mapsplatformdatasets_proto"], -    deps = [":mapsplatformdatasets_java_proto"], -) - -java_gapic_library( -    name = "mapsplatformdatasets_java_gapic", -    srcs = [":mapsplatformdatasets_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "mapsplatformdatasets_grpc_service_config.json", -    service_yaml = "mapsplatformdatasets_v1alpha.yaml", -    test_deps = [ -        ":mapsplatformdatasets_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":mapsplatformdatasets_java_proto", -        "//google/api:api_java_proto", -    ], -) - -java_gapic_test( -    name = "mapsplatformdatasets_java_gapic_test_suite", -    test_classes = [ -        "com.google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClientHttpJsonTest", -        "com.google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1AlphaClientTest", -    ], -    runtime_deps = [":mapsplatformdatasets_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-cloud-maps-mapsplatformdatasets-v1alpha-java", -    include_samples = True, -    transport = "grpc+rest", -    deps = [ -        ":mapsplatformdatasets_java_gapic", -        ":mapsplatformdatasets_java_grpc", -        ":mapsplatformdatasets_java_proto", -        ":mapsplatformdatasets_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "mapsplatformdatasets_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha", -    protos = [":mapsplatformdatasets_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -    ], -) - -go_gapic_library( -    name = "mapsplatformdatasets_go_gapic", -    srcs = [":mapsplatformdatasets_proto_with_info"], -    grpc_service_config = "mapsplatformdatasets_grpc_service_config.json", -    importpath = "cloud.google.com/go/maps/mapsplatformdatasets/apiv1alpha;mapsplatformdatasets", -    metadata = True, -    service_yaml = "mapsplatformdatasets_v1alpha.yaml", -    transport = "grpc+rest", -    deps = [ -        ":mapsplatformdatasets_go_proto", -    ], -) - -go_test( -    name = "mapsplatformdatasets_go_gapic_test", -    srcs = [":mapsplatformdatasets_go_gapic_srcjar_test"], -    embed = [":mapsplatformdatasets_go_gapic"], -    importpath = "cloud.google.com/go/maps/mapsplatformdatasets/apiv1alpha", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-cloud-maps-mapsplatformdatasets-v1alpha-go", -    deps = [ -        ":mapsplatformdatasets_go_gapic", -        ":mapsplatformdatasets_go_gapic_srcjar-metadata.srcjar", -        ":mapsplatformdatasets_go_gapic_srcjar-test.srcjar", -        ":mapsplatformdatasets_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "mapsplatformdatasets_py_gapic", -    srcs = [":mapsplatformdatasets_proto"], -    grpc_service_config = "mapsplatformdatasets_grpc_service_config.json", -    service_yaml = "mapsplatformdatasets_v1alpha.yaml", -    transport = "grpc", -    deps = [ -    ], -) - -py_test( -    name = "mapsplatformdatasets_py_gapic_test", -    srcs = [ -        "mapsplatformdatasets_py_gapic_pytest.py", -        "mapsplatformdatasets_py_gapic_test.py", -    ], -    legacy_create_init = False, -    deps = [":mapsplatformdatasets_py_gapic"], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "maps-mapsplatformdatasets-v1alpha-py", -    deps = [ -        ":mapsplatformdatasets_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "mapsplatformdatasets_php_proto", -    deps = [":mapsplatformdatasets_proto"], -) - -php_grpc_library( -    name = "mapsplatformdatasets_php_grpc", -    srcs = [":mapsplatformdatasets_proto"], -    deps = [":mapsplatformdatasets_php_proto"], -) - -php_gapic_library( -    name = "mapsplatformdatasets_php_gapic", -    srcs = [":mapsplatformdatasets_proto_with_info"], -    grpc_service_config = "mapsplatformdatasets_grpc_service_config.json", -    service_yaml = "mapsplatformdatasets_v1alpha.yaml", -    deps = [ -        ":mapsplatformdatasets_php_grpc", -        ":mapsplatformdatasets_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-cloud-maps-mapsplatformdatasets-v1alpha-php", -    deps = [ -        ":mapsplatformdatasets_php_gapic", -        ":mapsplatformdatasets_php_grpc", -        ":mapsplatformdatasets_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "mapsplatformdatasets_nodejs_gapic", -    package_name = "@google-cloud/mapsplatformdatasets", -    src = ":mapsplatformdatasets_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "mapsplatformdatasets_grpc_service_config.json", -    package = "google.maps.mapsplatformdatasets.v1alpha", -    service_yaml = "mapsplatformdatasets_v1alpha.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "maps-mapsplatformdatasets-v1alpha-nodejs", -    deps = [ -        ":mapsplatformdatasets_nodejs_gapic", -        ":mapsplatformdatasets_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "mapsplatformdatasets_ruby_proto", -    deps = [":mapsplatformdatasets_proto"], -) - -ruby_grpc_library( -    name = "mapsplatformdatasets_ruby_grpc", -    srcs = [":mapsplatformdatasets_proto"], -    deps = [":mapsplatformdatasets_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "mapsplatformdatasets_ruby_gapic", -    srcs = [":mapsplatformdatasets_proto_with_info"], -    extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-maps-mapsplatformdatasets-v1alpha"], -    grpc_service_config = "mapsplatformdatasets_grpc_service_config.json", -    service_yaml = "mapsplatformdatasets_v1alpha.yaml", -    deps = [ -        ":mapsplatformdatasets_ruby_grpc", -        ":mapsplatformdatasets_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-cloud-maps-mapsplatformdatasets-v1alpha-ruby", -    deps = [ -        ":mapsplatformdatasets_ruby_gapic", -        ":mapsplatformdatasets_ruby_grpc", -        ":mapsplatformdatasets_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "mapsplatformdatasets_csharp_proto", -    deps = [":mapsplatformdatasets_proto"], -) - -csharp_grpc_library( -    name = "mapsplatformdatasets_csharp_grpc", -    srcs = [":mapsplatformdatasets_proto"], -    deps = [":mapsplatformdatasets_csharp_proto"], -) - -csharp_gapic_library( -    name = "mapsplatformdatasets_csharp_gapic", -    srcs = [":mapsplatformdatasets_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "mapsplatformdatasets_grpc_service_config.json", -    service_yaml = "mapsplatformdatasets_v1alpha.yaml", -    deps = [ -        ":mapsplatformdatasets_csharp_grpc", -        ":mapsplatformdatasets_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-cloud-maps-mapsplatformdatasets-v1alpha-csharp", -    deps = [ -        ":mapsplatformdatasets_csharp_gapic", -        ":mapsplatformdatasets_csharp_grpc", -        ":mapsplatformdatasets_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "mapsplatformdatasets_cc_proto", -    deps = [":mapsplatformdatasets_proto"], -) - -cc_grpc_library( -    name = "mapsplatformdatasets_cc_grpc", -    srcs = [":mapsplatformdatasets_proto"], -    grpc_only = True, -    deps = [":mapsplatformdatasets_cc_proto"], -) diff --git a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/data_source.proto b/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/data_source.proto deleted file mode 100644 index cc80b58..0000000 --- a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/data_source.proto +++ /dev/null @@ -1,64 +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.mapsplatformdatasets.v1alpha; - -option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; -option java_multiple_files = true; -option java_outer_classname = "DataSourceProto"; -option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; -option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; - -// The details about the data source when it is a local file. -message LocalFileSource { -  // The file name and extension of the uploaded file. -  string filename = 1; - -  // The format of the file that is being uploaded. -  FileFormat file_format = 2; -} - -// The details about the data source when it is in Google Cloud Storage. -message GcsSource { -  // Source data URI. For example, `gs://my_bucket/my_object`. -  string input_uri = 1; - -  // The file format of the Google Cloud Storage object. This is used mainly for -  // validation. -  FileFormat file_format = 2; -} - -// The format of the file being uploaded. -enum FileFormat { -  // Unspecified file format. -  FILE_FORMAT_UNSPECIFIED = 0; - -  // GeoJson file. -  FILE_FORMAT_GEOJSON = 1; - -  // KML file. -  FILE_FORMAT_KML = 2; - -  // CSV file. -  FILE_FORMAT_CSV = 3; - -  // Protobuf file. -  FILE_FORMAT_PROTO = 4; - -  // KMZ file. -  FILE_FORMAT_KMZ = 5; -} diff --git a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/dataset.proto b/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/dataset.proto deleted file mode 100644 index 64e83cb..0000000 --- a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/dataset.proto +++ /dev/null @@ -1,110 +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.mapsplatformdatasets.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/maps/mapsplatformdatasets/v1alpha/data_source.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; -option java_multiple_files = true; -option java_outer_classname = "DatasetProto"; -option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; -option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; - -// A representation of a maps platform dataset. -message Dataset { -  option (google.api.resource) = { -    type: "mapsplatformdatasets.googleapis.com/Dataset" -    pattern: "projects/{project}/datasets/{dataset}" -  }; - -  // Resource name, -  // projects/{project}/datasets/{dataset_id} -  string name = 1; - -  // Human readable name, shown in the console UI. Set by customer. -  string display_name = 2; - -  // A description of this dataset; set by the customer. -  string description = 3; - -  // The version of the dataset. -  string version_id = 4; - -  // Specified use case(s) for this dataset. -  repeated Usage usage = 5; - -  // Details about the source of the data for the dataset. -  oneof data_source { -    // A local file source for the dataset for a single upload. -    LocalFileSource local_file_source = 6; - -    // A Google Cloud Storage file source for the dataset for a single upload. -    GcsSource gcs_source = 7; -  } - -  // The status of the import of the latest dataset version. -  State status = 12; - -  // Output only. Time when the dataset was first created. -  google.protobuf.Timestamp create_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Time when the dataset metadata was last updated. -  google.protobuf.Timestamp update_time = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. Time when this version of dataset was created. (It happened when importing -  // data to the dataset) -  google.protobuf.Timestamp version_create_time = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; - -  // Output only. The description for this version of dataset. It is provided when importing -  // data to the dataset. -  string version_description = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Usage specifies where the data is intended to be used to inform how to -// process the data. -enum Usage { -  // The usage of this dataset is not set. -  USAGE_UNSPECIFIED = 0; - -  // This dataset will be used for data driven styling. -  USAGE_DATA_DRIVEN_STYLING = 1; - -  // This dataset will be used for area affordances in routing. -  USAGE_AREA_AFFORDANCES = 2; - -  // This dataset will be used for assisted driving in routing. -  USAGE_ASSISTED_DRIVING = 3; -} - -// State specifies the status of the import of the latest dataset version. -enum State { -  // The state of this dataset is not set. -  STATE_UNSPECIFIED = 0; - -  // The dataset version is getting imported. -  STATE_IMPORTING = 1; - -  // The dataset version succeeded in getting imported. -  STATE_IMPORT_SUCCEEDED = 2; - -  // The dataset version failed to get imported. -  STATE_IMPORT_FAILED = 3; -} diff --git a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto b/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto deleted file mode 100644 index 7f2f420..0000000 --- a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto +++ /dev/null @@ -1,167 +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.mapsplatformdatasets.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/maps/mapsplatformdatasets/v1alpha/dataset.proto"; -import "google/protobuf/field_mask.proto"; - -option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; -option java_multiple_files = true; -option java_outer_classname = "MapsPlatformDatasetsProto"; -option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; -option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; - -// Request to create a maps dataset. -message CreateDatasetRequest { -  // Required. Parent project that will own the dataset. -  // Format: projects/{$project_number} -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "cloudresourcemanager.googleapis.com/Project" -    } -  ]; - -  // Required. The dataset version to create. -  Dataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; -} - -// Request to update the metadata fields of the dataset. -message UpdateDatasetMetadataRequest { -  // Required. The dataset to update. The dataset's name is used to identify the dataset -  // to be updated. The name has the format: -  // projects/{project}/datasets/{dataset_id} -  Dataset dataset = 1 [(google.api.field_behavior) = REQUIRED]; - -  // The list of fields to be updated. Support the value "*" for full -  // replacement. -  google.protobuf.FieldMask update_mask = 2; -} - -// Request to get the specified dataset. -message GetDatasetRequest { -  // Required. Resource name. Can also fetch a specified version -  // projects/{project}/datasets/{dataset_id} -  // projects/{project}/datasets/{dataset_id}@{version-id} -  // -  // In order to retrieve a previous version of the dataset, also provide -  // the version ID. -  // Example: projects/123/datasets/assisted-driving-preferences@c7cfa2a8 -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "mapsplatformdatasets.googleapis.com/Dataset" -    } -  ]; - -  // If specified, will fetch the dataset details of the version published for -  // the specified use case rather than the latest, if one exists. If a -  // published version does not exist, will default to getting the dataset -  // details of the latest version. -  Usage published_usage = 2; -} - -// Request to list of all versions of the dataset. -message ListDatasetVersionsRequest { -  // Required. The name of the dataset to list all the versions for. -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "mapsplatformdatasets.googleapis.com/Dataset" -    } -  ]; - -  // The maximum number of versions to return per page. -  // If unspecified (or zero), at most 1000 versions will be returned. -  // The maximum value is 1000; values above 1000 will be coerced to 1000. -  int32 page_size = 2; - -  // The page token, received from a previous GetDatasetVersions call. -  // Provide this to retrieve the subsequent page. -  string page_token = 3; -} - -// Response with list of all versions of the dataset. -message ListDatasetVersionsResponse { -  // All the versions of the dataset. -  repeated Dataset datasets = 1; - -  // A token that can be sent as `page_token` to retrieve the next page. -  // If this field is omitted, there are no subsequent pages. -  string next_page_token = 2; -} - -// Request to list datasets for the project. -message ListDatasetsRequest { -  // Required. The name of the project to list all the datasets for. -  string parent = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "cloudresourcemanager.googleapis.com/Project" -    } -  ]; - -  // The maximum number of versions to return per page. -  // If unspecified (or zero), at most 1000 datasets will be returned. -  // The maximum value is 1000; values above 1000 will be coerced to 1000. -  int32 page_size = 2; - -  // The page token, received from a previous GetDatasetVersions call. -  // Provide this to retrieve the subsequent page. -  string page_token = 3; -} - -// Response to list datasets for the project. -message ListDatasetsResponse { -  // All the datasets for the project. -  repeated Dataset datasets = 1; - -  // A token that can be sent as `page_token` to retrieve the next page. -  // If this field is omitted, there are no subsequent pages. -  string next_page_token = 2; -} - -// Request to delete a dataset. -// -// The dataset to be deleted. -message DeleteDatasetRequest { -  // Required. Format: projects/${project}/datasets/{dataset_id} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "mapsplatformdatasets.googleapis.com/Dataset" -    } -  ]; - -  // If set to true, any dataset version for this dataset will also be deleted. -  // (Otherwise, the request will only work if the dataset has no versions.) -  bool force = 2; -} - -// Request to delete a version of a dataset. -message DeleteDatasetVersionRequest { -  // Required. Format: projects/${project}/datasets/{dataset_id}@{version-id} -  string name = 1 [ -    (google.api.field_behavior) = REQUIRED, -    (google.api.resource_reference) = { -      type: "mapsplatformdatasets.googleapis.com/Dataset" -    } -  ]; -} diff --git a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto b/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto deleted file mode 100644 index fe07154..0000000 --- a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets_alpha_service.proto +++ /dev/null @@ -1,97 +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.mapsplatformdatasets.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/maps/mapsplatformdatasets/v1alpha/dataset.proto"; -import "google/maps/mapsplatformdatasets/v1alpha/maps_platform_datasets.proto"; -import "google/protobuf/empty.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.MapsPlatformDatasets.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/mapsplatformdatasets/v1alpha;mapsplatformdatasets"; -option java_multiple_files = true; -option java_outer_classname = "MapsPlatformDatasetsV1AlphaServiceProto"; -option java_package = "com.google.maps.mapsplatformdatasets.v1alpha"; -option objc_class_prefix = "MDV1A"; -option php_namespace = "Google\\Maps\\MapsPlatformDatasets\\V1alpha"; - -// Service definition for the Maps Platform Datasets API. -service MapsPlatformDatasetsV1Alpha { -  option (google.api.default_host) = "mapsplatformdatasets.googleapis.com"; -  option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - -  // Create a new dataset for the specified project. -  rpc CreateDataset(CreateDatasetRequest) returns (Dataset) { -    option (google.api.http) = { -      post: "/v1alpha/{parent=projects/*}/datasets" -      body: "dataset" -    }; -    option (google.api.method_signature) = "parent,dataset"; -  } - -  // Update the metadata for the dataset. To update the data use: UploadDataset. -  rpc UpdateDatasetMetadata(UpdateDatasetMetadataRequest) returns (Dataset) { -    option (google.api.http) = { -      patch: "/v1alpha/{dataset.name=projects/*/datasets/*}" -      body: "dataset" -    }; -    option (google.api.method_signature) = "dataset,update_mask"; -  } - -  // Get the published or latest version of the dataset. -  rpc GetDataset(GetDatasetRequest) returns (Dataset) { -    option (google.api.http) = { -      get: "/v1alpha/{name=projects/*/datasets/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // List all the versions of a dataset. -  rpc ListDatasetVersions(ListDatasetVersionsRequest) returns (ListDatasetVersionsResponse) { -    option (google.api.http) = { -      get: "/v1alpha/{name=projects/*/datasets/*}:listVersions" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // List all the datasets for the specified project. -  rpc ListDatasets(ListDatasetsRequest) returns (ListDatasetsResponse) { -    option (google.api.http) = { -      get: "/v1alpha/{parent=projects/*}/datasets" -    }; -    option (google.api.method_signature) = "parent"; -  } - -  // Delete the specified dataset and optionally all its corresponding -  // versions. -  rpc DeleteDataset(DeleteDatasetRequest) returns (google.protobuf.Empty) { -    option (google.api.http) = { -      delete: "/v1alpha/{name=projects/*/datasets/*}" -    }; -    option (google.api.method_signature) = "name"; -  } - -  // Delete a specific version of the dataset. -  rpc DeleteDatasetVersion(DeleteDatasetVersionRequest) returns (google.protobuf.Empty) { -    option (google.api.http) = { -      delete: "/v1alpha/{name=projects/*/datasets/*}:deleteVersion" -    }; -    option (google.api.method_signature) = "name"; -  } -} diff --git a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/mapsplatformdatasets_grpc_service_config.json b/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/mapsplatformdatasets_grpc_service_config.json deleted file mode 100644 index 0c07307..0000000 --- a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/mapsplatformdatasets_grpc_service_config.json +++ /dev/null @@ -1,53 +0,0 @@ -{ -  "methodConfig": [ -    { -      "name": [ -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "CreateDataset" -        }, -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "ImportDataset" -        }, -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "UpdateDatasetMetadata" -        }, -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "DeleteDataset" -        } -      ], -      "timeout": "60s" -    }, -    { -      "name": [ -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "DownloadDataset" -        }, -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "GetDataset" -        }, -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "ListDatasets" -        }, -        { -          "service": "google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha", -          "method": "ListDatasetVersions" -        } -      ], -      "timeout": "60s", -      "retryPolicy": { -        "maxAttempts": 5, -        "initialBackoff": "1s", -        "maxBackoff": "10s", -        "backoffMultiplier": 1.3, -        "retryableStatusCodes": ["UNAVAILABLE"] -      } -    } -  ] -} diff --git a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/mapsplatformdatasets_v1alpha.yaml b/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/mapsplatformdatasets_v1alpha.yaml deleted file mode 100644 index 7b0a54a..0000000 --- a/third_party/googleapis/google/maps/mapsplatformdatasets/v1alpha/mapsplatformdatasets_v1alpha.yaml +++ /dev/null @@ -1,22 +0,0 @@ -type: google.api.Service -config_version: 3 -name: mapsplatformdatasets.googleapis.com -title: Maps Platform Datasets API - -apis: -- name: google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha - -documentation: -  summary: mapsplatformdatasets.googleapis.com API. - -backend: -  rules: -  - selector: 'google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.*' -    deadline: 10.0 - -authentication: -  rules: -  - selector: 'google.maps.mapsplatformdatasets.v1alpha.MapsPlatformDatasetsV1Alpha.*' -    oauth: -      canonical_scopes: |- -        https://www.googleapis.com/auth/cloud-platform diff --git a/third_party/googleapis/google/maps/playablelocations/v3/BUILD.bazel b/third_party/googleapis/google/maps/playablelocations/v3/BUILD.bazel deleted file mode 100644 index 1e463dc..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/BUILD.bazel +++ /dev/null @@ -1,309 +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") - -proto_library( -    name = "playablelocations_proto", -    srcs = [ -        "playablelocations.proto", -        "resources.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/maps/playablelocations/v3/sample:resources_proto", -        "//google/maps/unity:clientinfo_proto", -        "//google/type:latlng_proto", -        "@com_google_protobuf//:duration_proto", -        "@com_google_protobuf//:field_mask_proto", -    ], -) - -proto_library_with_info( -    name = "playablelocations_proto_with_info", -    deps = [ -        ":playablelocations_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "playablelocations_java_proto", -    deps = [ -        ":playablelocations_proto", -        "//google/maps/playablelocations/v3/sample:resources_proto", -        "//google/maps/unity:clientinfo_proto", -    ], -) - -java_grpc_library( -    name = "playablelocations_java_grpc", -    srcs = [":playablelocations_proto"], -    deps = [":playablelocations_java_proto"], -) - -java_gapic_library( -    name = "playablelocations_java_gapic", -    srcs = [":playablelocations_proto_with_info"], -    grpc_service_config = "playablelocations_grpc_service_config.json", -    test_deps = [ -        ":playablelocations_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":playablelocations_java_proto", -    ], -) - -java_gapic_test( -    name = "playablelocations_java_gapic_test_suite", -    test_classes = [ -        "com.google.maps.playablelocations.v3.PlayableLocationsClientHttpJsonTest", -        "com.google.maps.playablelocations.v3.PlayableLocationsClientTest", -    ], -    runtime_deps = [":playablelocations_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-cloud-maps-playablelocations-v3-java", -    transport = "grpc+rest", -    deps = [ -        ":playablelocations_java_gapic", -        ":playablelocations_java_grpc", -        ":playablelocations_java_proto", -        ":playablelocations_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "playablelocations_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/playablelocations/v3", -    protos = [":playablelocations_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/maps/playablelocations/v3/sample:resources_go_proto", -        "//google/maps/unity:clientinfo_go_proto", -        "//google/type:latlng_go_proto", -    ], -) - -go_gapic_library( -    name = "playablelocations_go_gapic", -    srcs = [":playablelocations_proto_with_info"], -    grpc_service_config = "playablelocations_grpc_service_config.json", -    importpath = "google.golang.org/google/maps/playablelocations/v3;playablelocations", -    service_yaml = "playablelocations_v3.yaml", -    transport = "grpc+rest", -    deps = [ -        ":playablelocations_go_proto", -        "@io_bazel_rules_go//proto/wkt:duration_go_proto", -    ], -) - -go_test( -    name = "playablelocations_go_gapic_test", -    srcs = [":playablelocations_go_gapic_srcjar_test"], -    embed = [":playablelocations_go_gapic"], -    importpath = "google.golang.org/google/maps/playablelocations/v3", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-cloud-maps-playablelocations-v3-go", -    deps = [ -        ":playablelocations_go_gapic", -        ":playablelocations_go_gapic_srcjar-test.srcjar", -        ":playablelocations_go_proto", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "playablelocations_php_proto", -    deps = [":playablelocations_proto"], -) - -php_grpc_library( -    name = "playablelocations_php_grpc", -    srcs = [":playablelocations_proto"], -    deps = [":playablelocations_php_proto"], -) - -php_gapic_library( -    name = "playablelocations_php_gapic", -    srcs = [":playablelocations_proto_with_info"], -    deps = [ -        ":playablelocations_php_grpc", -        ":playablelocations_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-cloud-maps-playablelocations-v3-php", -    deps = [ -        ":playablelocations_php_gapic", -        ":playablelocations_php_grpc", -        ":playablelocations_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "playablelocations_nodejs_gapic", -    src = ":playablelocations_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "playablelocations_grpc_service_config.json", -    package = "google.maps.playablelocations.v3", -    service_yaml = "playablelocations_v3.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "maps-playablelocations-v3-nodejs", -    deps = [ -        ":playablelocations_nodejs_gapic", -        ":playablelocations_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "playablelocations_ruby_proto", -    deps = [":playablelocations_proto"], -) - -ruby_grpc_library( -    name = "playablelocations_ruby_grpc", -    srcs = [":playablelocations_proto"], -    deps = [":playablelocations_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "playablelocations_ruby_gapic", -    srcs = [":playablelocations_proto_with_info"], -    extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-playablelocations-v3"], -    deps = [ -        ":playablelocations_ruby_grpc", -        ":playablelocations_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-cloud-maps-playablelocations-v3-ruby", -    deps = [ -        ":playablelocations_ruby_gapic", -        ":playablelocations_ruby_grpc", -        ":playablelocations_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "playablelocations_csharp_proto", -    deps = [":playablelocations_proto"], -) - -csharp_grpc_library( -    name = "playablelocations_csharp_grpc", -    srcs = [":playablelocations_proto"], -    deps = [":playablelocations_csharp_proto"], -) - -csharp_gapic_library( -    name = "playablelocations_csharp_gapic", -    srcs = [":playablelocations_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "playablelocations_grpc_service_config.json", -    deps = [ -        ":playablelocations_csharp_grpc", -        ":playablelocations_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-cloud-maps-playablelocations-v3-csharp", -    deps = [ -        ":playablelocations_csharp_gapic", -        ":playablelocations_csharp_grpc", -        ":playablelocations_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ rules here diff --git a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations.proto b/third_party/googleapis/google/maps/playablelocations/v3/playablelocations.proto deleted file mode 100644 index 4263aaa..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations.proto +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright 2020 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.playablelocations.v3; - -import "google/api/annotations.proto"; -import "google/api/field_behavior.proto"; -import "google/maps/playablelocations/v3/resources.proto"; -import "google/maps/playablelocations/v3/sample/resources.proto"; -import "google/maps/unity/clientinfo.proto"; -import "google/protobuf/duration.proto"; -import "google/api/client.proto"; - -option csharp_namespace = "Google.Maps.PlayableLocations.V3"; -option go_package = "google.golang.org/genproto/googleapis/maps/playablelocations/v3;playablelocations"; -option java_multiple_files = true; -option java_outer_classname = "PlayableLocationsProto"; -option java_package = "com.google.maps.playablelocations.v3"; -option php_namespace = "Google\\Maps\\PlayableLocations\\V3"; -option objc_class_prefix = "GMPL"; - -// The Playable Locations API for v3. -service PlayableLocations { -  option (google.api.default_host) = "playablelocations.googleapis.com"; - -  // Returns a set of playable locations that lie within a specified area, -  // that satisfy optional filter criteria. -  // -  // Note: Identical `SamplePlayableLocations` requests can return different -  // results as the state of the world changes over time. -  rpc SamplePlayableLocations(SamplePlayableLocationsRequest) -      returns (SamplePlayableLocationsResponse) { -    option (google.api.http) = { -      post: "/v3:samplePlayableLocations" -      body: "*" -    }; -  } - -  // Logs bad playable location reports submitted by players. -  // -  // Reports are not partially saved; either all reports are saved and this -  // request succeeds, or no reports are saved, and this request fails. -  rpc LogPlayerReports(LogPlayerReportsRequest) -      returns (LogPlayerReportsResponse) { -    option (google.api.http) = { -      post: "/v3:logPlayerReports" -      body: "*" -    }; -  } - -  // Logs new events when playable locations are displayed, and when they are -  // interacted with. -  // -  // Impressions are not partially saved; either all impressions are saved and -  // this request succeeds, or no impressions are saved, and this request fails. -  rpc LogImpressions(LogImpressionsRequest) returns (LogImpressionsResponse) { -    option (google.api.http) = { -      post: "/v3:logImpressions" -      body: "*" -    }; -  } -} - -// -// Life of a query: -// -// - When a game starts in a new location, your game server issues a -// [SamplePlayableLocations][google.maps.playablelocations.v3.PlayableLocations.SamplePlayableLocations] -// request. The request specifies the S2 cell, and contains one or more -// "criteria" for filtering: -// -// - Criterion 0: i locations for long-lived bases, or level 0 monsters, or... -// - Criterion 1: j locations for short-lived bases, or level 1 monsters, ... -// - Criterion 2: k locations for random objects. -// - etc (up to 5 criterion may be specified). -// -// `PlayableLocationList` will then contain mutually -// exclusive lists of `PlayableLocation` objects that satisfy each of -// the criteria. Think of it as a collection of real-world locations that you -// can then associate with your game state. -// -// Note: These points are impermanent in nature. E.g, parks can close, and -// places can be removed. -// -// The response specifies how long you can expect the playable locations to -// last. Once they expire, you should query the `samplePlayableLocations` API -// again to get a fresh view of the real world. -message SamplePlayableLocationsRequest { -  // Required. Specifies the area to search within for playable locations. -  google.maps.playablelocations.v3.sample.AreaFilter area_filter = 1 -      [(google.api.field_behavior) = REQUIRED]; - -  // Required. Specifies one or more (up to 5) criteria for filtering the -  // returned playable locations. -  repeated google.maps.playablelocations.v3.sample.Criterion criteria = 2 -      [(google.api.field_behavior) = REQUIRED]; -} - -// -// Response for the -// [SamplePlayableLocations][google.maps.playablelocations.v3.PlayableLocations.SamplePlayableLocations] -// method. -message SamplePlayableLocationsResponse { -  // Each PlayableLocation object corresponds to a game_object_type specified -  // in the request. -  map<int32, google.maps.playablelocations.v3.sample.PlayableLocationList> -      locations_per_game_object_type = 1; - -  // Required. Specifies the "time-to-live" for the set of playable locations. -  // You can use this value to determine how long to cache the set of playable -  // locations. After this length of time, your back-end game server should -  // issue a new -  // [SamplePlayableLocations][google.maps.playablelocations.v3.PlayableLocations.SamplePlayableLocations] -  // request to get a fresh set of playable locations (because for example, they -  // might have been removed, a park might have closed for the day, a -  // business might have closed permanently). -  google.protobuf.Duration ttl = 9; -} - -// A request for logging your player's bad location reports. -message LogPlayerReportsRequest { -  // Required. Player reports. The maximum number of player reports that you can -  // log at once is 50. -  repeated PlayerReport player_reports = 1 -      [(google.api.field_behavior) = REQUIRED]; - -  // Required. A string that uniquely identifies the log player reports request. -  // This allows you to detect duplicate requests. We recommend that you use -  // UUIDs for this value. The value must not exceed 50 characters. -  // -  // You should reuse the `request_id` only when retrying a request in the case -  // of a failure. In that case, the request must be identical to the one that -  // failed. -  string request_id = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Information about the client device (for example, device model -  // and operating system). -  google.maps.unity.ClientInfo client_info = 3 -      [(google.api.field_behavior) = REQUIRED]; -} - -// A response for the -// [LogPlayerReports][google.maps.playablelocations.v3.PlayableLocations.LogPlayerReports] -// method. -// -// This method returns no data upon success. -message LogPlayerReportsResponse {} - -// A request for logging impressions. -message LogImpressionsRequest { -  // Required. Impression event details. The maximum number of impression -  // reports that you can log at once is 50. -  repeated Impression impressions = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. A string that uniquely identifies the log impressions request. -  // This allows you to detect duplicate requests. We recommend that you use -  // UUIDs for this value. The value must not exceed 50 characters. -  // -  // You should reuse the `request_id` only when retrying a request in case of -  // failure. In this case, the request must be identical to the one that -  // failed. -  string request_id = 2 [(google.api.field_behavior) = REQUIRED]; - -  // Required. Information about the client device. For example, device model -  // and operating system. -  google.maps.unity.ClientInfo client_info = 3 -      [(google.api.field_behavior) = REQUIRED]; -} - -// A response for the -// [LogImpressions][google.maps.playablelocations.v3.PlayableLocations.LogImpressions] -// method. This method returns no data upon success. -message LogImpressionsResponse {} diff --git a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_gapic.yaml b/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_gapic.yaml deleted file mode 100644 index 0bcb880..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_gapic.yaml +++ /dev/null @@ -1,2 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 diff --git a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_grpc_service_config.json b/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_grpc_service_config.json deleted file mode 100644 index 60c4759..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_grpc_service_config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [{ "service": "google.maps.roads.v3.PlayableLocations" }], -    "timeout": "60s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "60s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE", "UNKNOWN"] -    } -  } - ] -} diff --git a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_v3.yaml b/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_v3.yaml deleted file mode 100644 index e2df611..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/playablelocations_v3.yaml +++ /dev/null @@ -1,12 +0,0 @@ -type: google.api.Service -config_version: 3 -name: playablelocations.googleapis.com -title: Playable Locations API - -apis: -- name: google.maps.playablelocations.v3.PlayableLocations - -backend: -  rules: -  - selector: 'google.maps.playablelocations.v3.PlayableLocations.*' -    deadline: 60.0 diff --git a/third_party/googleapis/google/maps/playablelocations/v3/resources.proto b/third_party/googleapis/google/maps/playablelocations/v3/resources.proto deleted file mode 100644 index 5ca3810..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/resources.proto +++ /dev/null @@ -1,106 +0,0 @@ -// Copyright 2020 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.playablelocations.v3; - -import "google/api/field_behavior.proto"; - -option csharp_namespace = "Google.Maps.PlayableLocations.V3"; -option go_package = "google.golang.org/genproto/googleapis/maps/playablelocations/v3;playablelocations"; -option java_multiple_files = true; -option java_outer_classname = "ResourcesProto"; -option java_package = "com.google.maps.playablelocations.v3"; -option php_namespace = "Google\\Maps\\PlayableLocations\\V3"; -option objc_class_prefix = "GMPL"; - -// A report submitted by a player about a playable location that is considered -// inappropriate for use in the game. -message PlayerReport { -  // The reason why the playable location is considered bad. -  enum BadLocationReason { -    // Unspecified reason. Do not use. -    BAD_LOCATION_REASON_UNSPECIFIED = 0; - -    // The reason isn't one of the reasons in this enumeration. -    OTHER = 1; - -    // The playable location isn't accessible to pedestrians. For example, if -    // it's in the middle of a highway. -    NOT_PEDESTRIAN_ACCESSIBLE = 2; - -    // The playable location isn't open to the public. For example, a private -    // office building. -    NOT_OPEN_TO_PUBLIC = 4; - -    // The playable location is permanently closed. For example, when a business -    // has been shut down. -    PERMANENTLY_CLOSED = 5; - -    // The playable location is temporarily inaccessible. For example, when a -    // business has closed for renovations. -    TEMPORARILY_INACCESSIBLE = 6; -  } - -  // Required. The name of the playable location. -  string location_name = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. One or more reasons why this playable location is considered bad. -  repeated BadLocationReason reasons = 2 -      [(google.api.field_behavior) = REQUIRED]; - -  // Required. A free-form description detailing why the playable location is -  // considered bad. -  string reason_details = 3 [(google.api.field_behavior) = REQUIRED]; - -  // Language code (in BCP-47 format) indicating the language of the freeform -  // description provided in `reason_details`. Examples are "en", "en-US" or -  // "ja-Latn". For more information, see -  // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. -  string language_code = 4; -} - -// Encapsulates impression event details. -message Impression { -  // The type of impression event. -  enum ImpressionType { -    // Unspecified type. Do not use. -    IMPRESSION_TYPE_UNSPECIFIED = 0; - -    // The playable location was presented to a player. -    PRESENTED = 1; - -    // A player interacted with the playable location. -    INTERACTED = 2; -  } - -  // Required. The name of the playable location. -  string location_name = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Required. The type of impression event. -  ImpressionType impression_type = 2 [(google.api.field_behavior) = REQUIRED]; - -  // An arbitrary, developer-defined type identifier for each type of game -  // object used in your game. -  // -  // Since players interact with differ types of game objects in different ways, -  // this field allows you to segregate impression data by type for analysis. -  // -  // You should assign a unique `game_object_type` ID to represent a distinct -  // type of game object in your game. -  // -  // For example, 1=monster location, 2=powerup location. -  int32 game_object_type = 4; -} diff --git a/third_party/googleapis/google/maps/playablelocations/v3/sample/BUILD.bazel b/third_party/googleapis/google/maps/playablelocations/v3/sample/BUILD.bazel deleted file mode 100644 index c9e5182..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/sample/BUILD.bazel +++ /dev/null @@ -1,134 +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 = "resources_proto", -    srcs = [ -        "resources.proto", -    ], -    deps = [ -        "//google/api:field_behavior_proto", -        "//google/type:latlng_proto", -        "@com_google_protobuf//:field_mask_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "resources_java_proto", -    deps = [":resources_proto"], -) - -java_grpc_library( -    name = "resources_java_grpc", -    srcs = [":resources_proto"], -    deps = [":resources_java_proto"], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_proto_library", -) - -go_proto_library( -    name = "resources_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/playablelocations/v3/sample", -    protos = [":resources_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/type:latlng_go_proto", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "resources_php_proto", -    deps = [":resources_proto"], -) - -php_grpc_library( -    name = "resources_php_grpc", -    srcs = [":resources_proto"], -    deps = [":resources_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 = "resources_ruby_proto", -    deps = [":resources_proto"], -) - -ruby_grpc_library( -    name = "resources_ruby_grpc", -    srcs = [":resources_proto"], -    deps = [":resources_ruby_proto"], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "resources_csharp_proto", -    deps = [":resources_proto"], -) - -csharp_grpc_library( -    name = "resources_csharp_grpc", -    srcs = [":resources_proto"], -    deps = [":resources_csharp_proto"], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ code here diff --git a/third_party/googleapis/google/maps/playablelocations/v3/sample/resources.proto b/third_party/googleapis/google/maps/playablelocations/v3/sample/resources.proto deleted file mode 100644 index 2a97a00..0000000 --- a/third_party/googleapis/google/maps/playablelocations/v3/sample/resources.proto +++ /dev/null @@ -1,206 +0,0 @@ -// Copyright 2020 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.playablelocations.v3.sample; - -import "google/api/field_behavior.proto"; -import "google/protobuf/field_mask.proto"; -import "google/type/latlng.proto"; - -option csharp_namespace = "Google.Maps.PlayableLocations.V3.Sample"; -option go_package = "google.golang.org/genproto/googleapis/maps/playablelocations/v3/sample;sample"; -option java_multiple_files = true; -option java_outer_classname = "ResourcesProto"; -option java_package = "com.google.maps.playablelocations.v3.sample"; -option objc_class_prefix = "GMPL"; - -// A geographical point suitable for placing game objects in location-based -// games. -message PlayableLocation { -  // Required. The name of this playable location. -  string name = 1; - -  // Required. -  // Each location has one of the following identifiers: -  oneof location_id { -    // A [place ID] (https://developers.google.com/places/place-id) -    string place_id = 2; - -    // A [plus code] (http://openlocationcode.com) -    string plus_code = 3; -  } - -  // A collection of [Playable Location Types](/maps/tt/games/types) for this -  // playable location. The first type in the collection is the primary type. -  // -  // Type information might not be available for all playable locations. -  repeated string types = 4; - -  // Required. The latitude and longitude associated with the center of the -  // playable location. -  // -  // By default, the set of playable locations returned from -  // [SamplePlayableLocations][google.maps.playablelocations.v3.PlayableLocations.SamplePlayableLocations] -  // use center-point coordinates. -  google.type.LatLng center_point = 5; - -  // The playable location's coordinates, snapped to the sidewalk of the -  // nearest road, if a nearby road exists. -  google.type.LatLng snapped_point = 6; -} - -// A set of options that specifies the separation between playable locations. -message SpacingOptions { -  // Specifies whether the playable location's geographic coordinates (latitude -  // and longitude) correspond to its center-point, or to its location snapped -  // to the sidewalk of the nearest road. -  enum PointType { -    // Unspecified point type. Do not use this value. -    POINT_TYPE_UNSPECIFIED = 0; - -    // The geographic coordinates correspond to the center of the location. -    CENTER_POINT = 1; - -    // The geographic coordinates correspond to the location snapped to the -    // sidewalk of the nearest road (when a nearby road exists). -    SNAPPED_POINT = 2; -  } - -  // Required. The minimum spacing between any two playable locations, measured -  // in meters. The minimum value is 30. The maximum value is 1000. -  // -  // Inputs will be rounded up to the next 10 meter interval. -  // -  // The default value is 200m. -  // -  // Set this field to remove tight clusters of playable locations. -  // -  // Note: -  // -  // The spacing is a greedy algorithm. It optimizes for selecting the highest -  // ranking locations first, not to maximize the number of locations selected. -  // Consider the following scenario: -  // -  //   * Rank: A: 2, B: 1, C: 3. -  //   * Distance: A--200m--B--200m--C -  // -  // If spacing=250, it will pick the highest ranked location [B], not [A, C]. -  // -  // -  // Note: -  // -  // Spacing works within the game object type itself, as well as the previous -  // ones. -  // Suppose three game object types, each with the following spacing: -  // -  //   * X: 400m, Y: undefined, Z: 200m. -  // -  // 1. Add locations for X, within 400m of each other. -  // 2. Add locations for Y, without any spacing. -  // 3. Finally, add locations for Z within 200m of each other as well X and Y. -  // -  // The distance diagram between those locations end up as: -  // -  //   * From->To. -  //   * X->X: 400m -  //   * Y->X, Y->Y: unspecified. -  //   * Z->X, Z->Y, Z->Z: 200m. -  double min_spacing_meters = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Specifies whether the minimum spacing constraint applies to the -  // center-point or to the snapped point of playable locations. The default -  // value is `CENTER_POINT`. -  // -  // If a snapped point is not available for a playable location, its -  // center-point is used instead. -  // -  // Set this to the point type used in your game. -  PointType point_type = 2; -} - -// Specifies the filters to use when searching for playable locations. -message Filter { -  // Specifies the maximum number of playable locations to return. This value -  // must not be greater than 1000. The default value is 100. -  // -  // Only the top-ranking playable locations are returned. -  int32 max_location_count = 1; - -  // A set of options that control the spacing between playable locations. By -  // default the minimum distance between locations is 200m. -  SpacingOptions spacing = 2; - -  // Restricts the set of playable locations to just the -  // [types](/maps/tt/games/types) that you want. -  repeated string included_types = 3; -} - -// Encapsulates a filter criterion for searching for a set of playable -// locations. -message Criterion { -  // Required. An arbitrary, developer-defined identifier of the type of game -  // object that the playable location is used for. This field allows you to -  // specify criteria per game object type when searching for playable -  // locations. -  // -  // You should assign a unique `game_object_type` ID across all -  // `request_criteria` to represent a distinct type of game object. For -  // example, 1=monster location, 2=powerup location. -  // -  // The response contains a map<game_object_type, Response>. -  int32 game_object_type = 1 [(google.api.field_behavior) = REQUIRED]; - -  // Specifies filtering options, and specifies what will be included in the -  // result set. -  Filter filter = 2; - -  // Specifies which `PlayableLocation` fields are returned. -  // -  // `name` (which is used for logging impressions), `center_point` and -  // `place_id` (or `plus_code`) are always returned. -  // -  // The following fields are omitted unless you specify them here: -  // -  //   * snapped_point -  //   * types -  // -  // Note: The more fields you include, the more expensive in terms of data and -  // associated latency your query will be. -  google.protobuf.FieldMask fields_to_return = 3; -} - -// Specifies the area to search for playable locations. -message AreaFilter { -  // Required. The S2 cell ID of the area you want. This must be between cell -  // level 11 and 14 (inclusive). -  // -  // S2 cells are 64-bit integers that identify areas on the Earth. They are -  // hierarchical, and can therefore be used for spatial indexing. -  // -  // The S2 geometry library is available in a number of languages: -  // -  //   * [C++](https://github.com/google/s2geometry) -  //   * [Java](https://github.com/google/s2-geometry-library-java) -  //   * [Go](https://github.com/golang/geo) -  //   * [Python](https://github.com/google/s2geometry/tree/master/src/python) -  fixed64 s2_cell_id = 1 [(google.api.field_behavior) = REQUIRED]; -} - -// A list of PlayableLocation objects that satisfies a single Criterion. -message PlayableLocationList { -  // A list of playable locations for this game object type. -  repeated PlayableLocation locations = 1; -} diff --git a/third_party/googleapis/google/maps/postprocessing.bzl b/third_party/googleapis/google/maps/postprocessing.bzl deleted file mode 100644 index b2a1b7f..0000000 --- a/third_party/googleapis/google/maps/postprocessing.bzl +++ /dev/null @@ -1,58 +0,0 @@ -""" -Defines the postprocessing build rule for the Google Maps APIs. -""" - -def maps_assembly_pkg(name, srcs, language, visibility = None): -    """Target to build a post-processed ads-specific GAPIC assembly package. - -    Explodes a GAPIC assembly package, runs language-specific post-processing, and repackages. - -    This macro assumes srcs contains in a single input, namely a {{language}}_assembly_pkg target -    produced by a gapic-generator build target. - -    There must be a corresponding postprocessing_{language}.sh script to invoke. - -    Args: -      name: defines the name of the main target -      srcs: collection containing exactly 1 build target, namely a -        {{language}}_assembly_pkg target produced by gapic-generator -      language: the programming language to post-process -        (e.g., "java", "csharp", "php", etc.); there must be a matching -        post-processin script of the form `postprocessing_{language}.sh -        in this package -      visibility (optional): marco visibility setting; -        (see https://docs.bazel.build/versions/master/skylark/macros.html) -    """ -    cmd = """ -    set -eu - -    tar xzf $(SRCS); -    $(location //google/maps:postprocessing_%s) %s; -    tar czf $@ %s -    """ -    dir_name = _extract_path(srcs) - -    native.genrule( -        name = name, -        srcs = srcs, -        outs = ["%s.tar.gz" % name], -        cmd = cmd % (language, dir_name, dir_name), -        tools = ["//google/maps:postprocessing_%s" % language], -        visibility = visibility, -    ) - -def _extract_path(srcs): -    """Takes the first label in srcs and returns its target name. - -    Args: -      srcs: a collection of build labels of the form "//package/name:target" - -    Returns: -      The first element's target (i.e.- the part after the ":"), else None if empty. -    """ - -    for s in srcs: -        toks = s.split(":") -        if len(toks) == 2: -            return toks[1] -    return None diff --git a/third_party/googleapis/google/maps/postprocessing_java.sh b/third_party/googleapis/google/maps/postprocessing_java.sh deleted file mode 100755 index eb0cccc..0000000 --- a/third_party/googleapis/google/maps/postprocessing_java.sh +++ /dev/null @@ -1,49 +0,0 @@ -#!/bin/bash - -set -eu - -# Performs Maps-specific post-processing on a .tar.gz archive produced by rule -# java_gapic_assembly_gradle_pkg - -# Add gradle publish plugin -# -# Arguments: -#   postprocess_dir: The directory that contains the Java files to postprocess. -add_gradle_publish() { -  postprocess_dir="${1}" -  cat >> "${postprocess_dir}/build.gradle" <<EOF - -apply from: "./publish.gradle" -EOF -  echo "INFO: Added gradle publish plugin." -} - -# Change group name from cloud -# -# Arguments: -#   postprocess_dir: The directory that contains the Java files to postprocess. -change_group() { -  postprocess_dir="${1}" -  for f in $(find "${postprocess_dir}" -name "*.gradle" -type f); do -    sed -e "s/= 'com\.google\.cloud'/= 'com\.google\.maps'/g" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -    sed -e "s/= 'com\.google\.api\.grpc'/= 'com\.google\.maps'/g" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -done -} - -# Main entry point -# -# Arguments: -#   postprocess_dir: The directory that contains the Java files to postprocess. -main() { -  postprocess_dir="$1" - -  if [ "${postprocess_dir}" = "" ]; then -    echo "postprocess_dir is required" -    exit 1 -  fi - -  add_gradle_publish "${postprocess_dir}" -  change_group "${postprocess_dir}" -} - -main "$@" diff --git a/third_party/googleapis/google/maps/postprocessing_py.sh b/third_party/googleapis/google/maps/postprocessing_py.sh deleted file mode 100755 index ad903bc..0000000 --- a/third_party/googleapis/google/maps/postprocessing_py.sh +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -set -eu - -# Performs Maps specific post-processing on a .tar.gz archive - -use_map_namespace() { -  f="${1}/setup.py" -  sed -e "s/google.cloud/google.maps/g" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -} - -use_markdown_readme() { -  f="${1}/setup.py" -  sed -e "s/README.rst/README.md/g" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -  rm -f "${1}/README.rst" -} - -update_python_versions() { -  f="${1}/setup.py" -  sed -e "/Python :: 2/d" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -  sed -e "/Python :: 3.4/d" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -  sed -e "/enum34/d" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -  sed -e "s/'Programming Language :: Python :: 3.6',/'Programming Language :: Python :: 3.6',\n        'Programming Language :: Python :: 3.7',/g" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -} - -# Main entry point -# -# Arguments: -#   postprocess_dir: The directory that contains the Java files to postprocess. -main() { -  postprocess_dir="$1" - -  if [ "${postprocess_dir}" = "" ]; then -    echo "postprocess_dir is required" -    exit 1 -  fi - -  use_markdown_readme "${postprocess_dir}" -  update_python_versions "${postprocess_dir}" -  use_map_namespace "${postprocess_dir}" -} - -main "$@" diff --git a/third_party/googleapis/google/maps/postprocessing_python.sh b/third_party/googleapis/google/maps/postprocessing_python.sh deleted file mode 100755 index 91c9b8e..0000000 --- a/third_party/googleapis/google/maps/postprocessing_python.sh +++ /dev/null @@ -1,50 +0,0 @@ -#!/bin/bash -#!/bin/bash - -set -eu - -# Performs Maps-specific post-processing on a .tar.gz archive produced by rule -# java_gapic_assembly_gradle_pkg - -# Add gradle publish plugin -# -# Arguments: -#   postprocess_dir: The directory that contains the Java files to postprocess. -add_gradle_publish() { -  postprocess_dir="${1}" -  cat >> "${postprocess_dir}/build.gradle" <<EOF - -apply from: "./publish.gradle" -EOF -  echo "INFO: Added gradle publish plugin." -} - -# Change group name from cloud -# -# Arguments: -#   postprocess_dir: The directory that contains the Java files to postprocess. -change_group() { -  postprocess_dir="${1}" -  for f in $(find "${postprocess_dir}" -name "*.gradle" -type f); do -    sed -e "s/= 'com\.google\.cloud'/= 'com\.google\.maps'/g" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -    sed -e "s/= 'com\.google\.api\.grpc'/= 'com\.google\.maps'/g" "${f}" > "${f}.new" && mv "${f}.new" "${f}" -done -} - -# Main entry point -# -# Arguments: -#   postprocess_dir: The directory that contains the Java files to postprocess. -main() { -  postprocess_dir="$1" - -  if [ "${postprocess_dir}" = "" ]; then -    echo "postprocess_dir is required" -    exit 1 -  fi - -  add_gradle_publish "${postprocess_dir}" -  change_group "${postprocess_dir}" -} - -main "$@" diff --git a/third_party/googleapis/google/maps/regionlookup/v1alpha/BUILD.bazel b/third_party/googleapis/google/maps/regionlookup/v1alpha/BUILD.bazel deleted file mode 100644 index 8b470e1..0000000 --- a/third_party/googleapis/google/maps/regionlookup/v1alpha/BUILD.bazel +++ /dev/null @@ -1,373 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# 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") - -proto_library( -    name = "regionlookup_proto", -    srcs = [ -        "region_identifier.proto", -        "region_lookup_service.proto", -        "region_match.proto", -        "region_search_values.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:field_behavior_proto", -        "//google/type:latlng_proto", -    ], -) - -proto_library_with_info( -    name = "regionlookup_proto_with_info", -    deps = [ -        ":regionlookup_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "regionlookup_java_proto", -    deps = [":regionlookup_proto"], -) - -java_grpc_library( -    name = "regionlookup_java_grpc", -    srcs = [":regionlookup_proto"], -    deps = [":regionlookup_java_proto"], -) - -java_gapic_library( -    name = "regionlookup_java_gapic", -    srcs = [":regionlookup_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "regionlookup_grpc_service_config.json", -    service_yaml = "regionlookup_v1alpha.yaml", -    test_deps = [ -        ":regionlookup_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":regionlookup_java_proto", -        "//google/api:api_java_proto", -    ], -) - -java_gapic_test( -    name = "regionlookup_java_gapic_test_suite", -    test_classes = [ -        "com.google.maps.regionlookup.v1alpha.RegionLookupClientHttpJsonTest", -        "com.google.maps.regionlookup.v1alpha.RegionLookupClientTest", -    ], -    runtime_deps = [":regionlookup_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-cloud-maps-regionlookup-v1alpha-java", -    transport = "grpc+rest", -    deps = [ -        ":regionlookup_java_gapic", -        ":regionlookup_java_grpc", -        ":regionlookup_java_proto", -        ":regionlookup_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "regionlookup_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha", -    protos = [":regionlookup_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/type:latlng_go_proto", -    ], -) - -go_gapic_library( -    name = "regionlookup_go_gapic", -    srcs = [":regionlookup_proto_with_info"], -    grpc_service_config = "regionlookup_grpc_service_config.json", -    importpath = "google.golang.org/google/maps/regionlookup/v1alpha;regionlookup", -    metadata = True, -    service_yaml = "regionlookup_v1alpha.yaml", -    transport = "grpc+rest", -    deps = [ -        ":regionlookup_go_proto", -    ], -) - -go_test( -    name = "regionlookup_go_gapic_test", -    srcs = [":regionlookup_go_gapic_srcjar_test"], -    embed = [":regionlookup_go_gapic"], -    importpath = "google.golang.org/google/maps/regionlookup/v1alpha", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-cloud-maps-regionlookup-v1alpha-go", -    deps = [ -        ":regionlookup_go_gapic", -        ":regionlookup_go_gapic_srcjar-metadata.srcjar", -        ":regionlookup_go_gapic_srcjar-test.srcjar", -        ":regionlookup_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "regionlookup_py_gapic", -    srcs = [":regionlookup_proto"], -    grpc_service_config = "regionlookup_grpc_service_config.json", -    service_yaml = "regionlookup_v1alpha.yaml", -    transport = "grpc", -) - -py_test( -    name = "regionlookup_py_gapic_test", -    srcs = [ -        "regionlookup_py_gapic_pytest.py", -        "regionlookup_py_gapic_test.py", -    ], -    legacy_create_init = False, -    deps = [":regionlookup_py_gapic"], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "maps-regionlookup-v1alpha-py", -    deps = [ -        ":regionlookup_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "regionlookup_php_proto", -    deps = [":regionlookup_proto"], -) - -php_grpc_library( -    name = "regionlookup_php_grpc", -    srcs = [":regionlookup_proto"], -    deps = [":regionlookup_php_proto"], -) - -php_gapic_library( -    name = "regionlookup_php_gapic", -    srcs = [":regionlookup_proto_with_info"], -    grpc_service_config = "regionlookup_grpc_service_config.json", -    service_yaml = "regionlookup_v1alpha.yaml", -    deps = [ -        ":regionlookup_php_grpc", -        ":regionlookup_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-cloud-maps-regionlookup-v1alpha-php", -    deps = [ -        ":regionlookup_php_gapic", -        ":regionlookup_php_grpc", -        ":regionlookup_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "regionlookup_nodejs_gapic", -    package_name = "@google-cloud/regionlookup", -    src = ":regionlookup_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "regionlookup_grpc_service_config.json", -    package = "google.maps.regionlookup.v1alpha", -    service_yaml = "regionlookup_v1alpha.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "maps-regionlookup-v1alpha-nodejs", -    deps = [ -        ":regionlookup_nodejs_gapic", -        ":regionlookup_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "regionlookup_ruby_proto", -    deps = [":regionlookup_proto"], -) - -ruby_grpc_library( -    name = "regionlookup_ruby_grpc", -    srcs = [":regionlookup_proto"], -    deps = [":regionlookup_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "regionlookup_ruby_gapic", -    srcs = [":regionlookup_proto_with_info"], -    extra_protoc_parameters = [ -        "ruby-cloud-gem-name=google-cloud-maps-regionlookup-v1alpha", -    ], -    grpc_service_config = "regionlookup_grpc_service_config.json", -    deps = [ -        ":regionlookup_ruby_grpc", -        ":regionlookup_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-cloud-maps-regionlookup-v1alpha-ruby", -    deps = [ -        ":regionlookup_ruby_gapic", -        ":regionlookup_ruby_grpc", -        ":regionlookup_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "regionlookup_csharp_proto", -    deps = [":regionlookup_proto"], -) - -csharp_grpc_library( -    name = "regionlookup_csharp_grpc", -    srcs = [":regionlookup_proto"], -    deps = [":regionlookup_csharp_proto"], -) - -csharp_gapic_library( -    name = "regionlookup_csharp_gapic", -    srcs = [":regionlookup_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "regionlookup_grpc_service_config.json", -    service_yaml = "regionlookup_v1alpha.yaml", -    deps = [ -        ":regionlookup_csharp_grpc", -        ":regionlookup_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-cloud-maps-regionlookup-v1alpha-csharp", -    deps = [ -        ":regionlookup_csharp_gapic", -        ":regionlookup_csharp_grpc", -        ":regionlookup_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "regionlookup_cc_proto", -    deps = [":regionlookup_proto"], -) - -cc_grpc_library( -    name = "regionlookup_cc_grpc", -    srcs = [":regionlookup_proto"], -    grpc_only = True, -    deps = [":regionlookup_cc_proto"], -) diff --git a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_identifier.proto b/third_party/googleapis/google/maps/regionlookup/v1alpha/region_identifier.proto deleted file mode 100644 index f5e6fea..0000000 --- a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_identifier.proto +++ /dev/null @@ -1,161 +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.regionlookup.v1alpha; - -import "google/api/field_behavior.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.RegionLookup.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha;regionlookup"; -option java_multiple_files = true; -option java_outer_classname = "RegionIdentifierProto"; -option java_package = "com.google.maps.regionlookup.v1alpha"; -option objc_class_prefix = "MRLV1A"; -option php_namespace = "Google\\Maps\\RegionLookup\\V1alpha"; - -// Region Identifier. -// -// Identifies a region to look up. -// -// One of place or unit_code must be specified. If none is specified, -// an INVALID_ARGUMENT error is returned. region_code must also be specified -// except when place_type is "country". -// -// place and unit_code specify a location to match a Place ID to. For -// example if place is "California" and region_code "US" the API -// returns the following matched_place_id results when the following -// place_types are specified: -// -// place_type:                   matched_place_id results: -// administrative_area_level_1   Place ID for The State of California -// (All other supported types)   No Match -// -// If unit_code is "6" (FIPs code for California) and region_code is "US -// the API returns the following matched_place_id results when the -// following place_types are specified: -// -// place type:                   matched_place_id results: -// administrative_area_level_1   Place ID for The State of California -// (All other supported types)   No Match -// -// or if unit_code is "US" the API returns the following results when -// the following place_types are specified: -// -// place type:                   matched_place_id results: -// country                       Place ID for the United States -// (All other supported types)   No Match -// -// If no match is found, matched_place_id is not set. -// -// Candidate Place IDs are returned when a lookup finds a region with a -// different place_type then the one requested. For example if place is -// "California" and place_type is "country" the Place ID for The State of -// California is returned as a candidate in the candidate_place_ids field. -// -// Next available tag: 10 -message RegionIdentifier { -  // Possible place types to match to. -  enum PlaceType { -    // Default value. This value is unused. -    PLACE_TYPE_UNSPECIFIED = 0; - -    // Postal code. -    POSTAL_CODE = 1; - -    // Administrative area level 1 (State in the US). -    ADMINISTRATIVE_AREA_LEVEL_1 = 2; - -    // Administrative area level 2 (County in the US). -    ADMINISTRATIVE_AREA_LEVEL_2 = 3; - -    // Locality (City). -    LOCALITY = 4; - -    // Neighborhood. -    NEIGHBORHOOD = 5; - -    // Country. -    COUNTRY = 6; - -    // Sublocality. -    SUBLOCALITY = 7; - -    // Administrative area level 3. -    ADMINISTRATIVE_AREA_LEVEL_3 = 8; - -    // Administrative area level 4. -    ADMINISTRATIVE_AREA_LEVEL_4 = 9; - -    // School district. -    SCHOOL_DISTRICT = 10; -  } - -  // The location must be specified by one of the following: -  oneof location { -    // The name of the region to match to a Place ID. -    // -    // The place field is used in combination with place_type to look up -    // the region Place ID. -    // -    // For example: -    // If place_type is "locality", a valid place can be "Palo Alto, CA". -    // -    // If place_type is "postal_code", a valid place can be "94109". -    // -    // If place_type is "country", a valid place can be "United States". -    // etc. -    // -    // region_code is required when place is specified except when -    // place_type is "country". -    string place = 4; - -    // The FIPs state or county codes (US only) or ISO-3166-1 country code to be -    // matched. -    // -    // The unit_code field is used in combination with place_type to look up -    // the region Place ID. -    // -    // For example: -    // If place_type is "country", a valid unit_code can be "US" (ISO-3166-1 -    // Alpha-2 code for United States) or "BR" (ISO-3166-1 Alpha-2 code for -    // Brazil). -    // -    // If place_type is "administrative_area_level_1" (state) and region_code is -    // "US", a valid unit_code can be "6" (FIPs code for California) or -    // "12"(FIPs code for Florida). -    // -    // If place_type is "administrative_area_level_2" (county) and region_code -    // is "US", a valid unit_code can be "6001" (FIPs code for Alameda County in -    // California) or "12086" (FIPs code for Miami-Dade County in Florida). -    // -    // region_code is required when specifying a FIPs code. region_code is -    // ignored for ISO-3166-1 country codes. -    string unit_code = 5; -  } - -  // Required. Place type to match. -  PlaceType place_type = 6 [(google.api.field_behavior) = REQUIRED]; - -  // The BCP-47 language code, such as "en-US" or "sr-Latn", corresponding to -  // the language in which the place name and address is requested. If none is -  // requested, then it defaults to English. -  string language_code = 7; - -  // Two-letter ISO-3166 country/region code for the location you're trying to -  // match. region_code is optional if place_type is "country". -  string region_code = 8; -} diff --git a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_lookup_service.proto b/third_party/googleapis/google/maps/regionlookup/v1alpha/region_lookup_service.proto deleted file mode 100644 index c87200d..0000000 --- a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_lookup_service.proto +++ /dev/null @@ -1,149 +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.regionlookup.v1alpha; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/maps/regionlookup/v1alpha/region_identifier.proto"; -import "google/maps/regionlookup/v1alpha/region_match.proto"; -import "google/maps/regionlookup/v1alpha/region_search_values.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.RegionLookup.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha;regionlookup"; -option java_multiple_files = true; -option java_outer_classname = "RegionLookupServiceProto"; -option java_package = "com.google.maps.regionlookup.v1alpha"; -option objc_class_prefix = "MRLV1A"; -option php_namespace = "Google\\Maps\\RegionLookup\\V1alpha"; - -// Service definition for the Region Lookup API. -service RegionLookup { -  option (google.api.default_host) = "regionlookup.googleapis.com"; - -  // Lookup region RPC. -  // -  // Looks up a set of region Place IDs of types related to geographic -  // boundaries. -  // -  // The API looks up a region Place ID using the `RegionIdentifier` proto. See -  // `RegionIdentifier` for more details and examples. -  // -  // The following region place types are supported for look up: postal_code, -  // administrative_area_level_1, administrative_area_level_2, locality, -  // neighborhood, and country. -  rpc LookupRegion(LookupRegionRequest) returns (LookupRegionResponse) { -    option (google.api.http) = { -      post: "/v1alpha:lookupRegion" -      body: "*" -    }; -  } - -  // Search region RPC. -  // -  // Searches for a set of region Place IDs of types related to geographic -  // boundaries. -  // -  // Similar to `LookupRegion` RPC but instead of looking up Place IDs for the -  // given `RegionIdentifier`, the API searches for Region Place IDs by -  // considering all regions that are contained within a specified location. The -  // `RegionSearchValue` is used to specify the search values. See -  // `RegionSearchValue` for more details and examples. -  // -  // The following region place types are supported for searching: postal_code, -  // administrative_area_level_1, administrative_area_level_2, locality, -  // neighborhood, and country. -  rpc SearchRegion(SearchRegionRequest) returns (SearchRegionResponse) { -    option (google.api.http) = { -      post: "/v1alpha:searchRegion" -      body: "*" -    }; -  } -} - -// Lookup Region Request. -// -// Next available tag: 4 -message LookupRegionRequest { -  // Each `RegionIdentifier` represents the desired fields used to lookup a -  // single region. See `RegionIdentifier` proto for more details and examples. -  repeated RegionIdentifier identifiers = 1; - -  // The maximum number of matches to return. The service may return fewer than -  // this value. -  // -  // If unspecified, at most 50 matches will be returned. The maximum value is -  // 1000; values above 1000 will be coerced to 1000. -  int32 page_size = 2; - -  // A page token, received from a previous `LookupRegion` call. Provide this to -  // retrieve the subsequent page. -  // -  // When paginating, all other parameters provided to `LookupRegion` must match -  // the call that provided the page token. -  string page_token = 3; -} - -// Lookup Region Response. -// -// Next available tag: 3 -message LookupRegionResponse { -  // Lookup region matches, one for each `RegionIdentifier` in -  // `LookupRegionRequest.identifiers`. -  repeated RegionMatch matches = 1; - -  // A token that can be sent as `page_token` to retrieve the next page. -  // If this field is omitted, there are no subsequent pages. -  string next_page_token = 2; -} - -// Search Region Request. -// -// Next available tag: 4 -message SearchRegionRequest { -  // Each value represents desired search values of a single region to match. -  // The API tries to match them to Place IDs. See `RegionSearchValue` -  // proto for more info and examples. -  repeated RegionSearchValue search_values = 1; - -  // The maximum number of matches to return. The service may return fewer than -  // this value. -  // -  // If unspecified, at most 50 matches will be returned. The maximum value is -  // 1000; values above 1000 will be coerced to 1000. -  int32 page_size = 2; - -  // A page token, received from a previous `SearchRegion` call. Provide this to -  // retrieve the subsequent page. -  // -  // When paginating, all other parameters provided to `LookupRegion` must match -  // the call that provided the page token. -  string page_token = 3; -} - -// Match Region Response. -// -// Next available tag: 3 -message SearchRegionResponse { -  // Search region matches, one for each `RegionSearchValue` in -  // `SearchRegionRequest.search_values`. -  repeated RegionMatch matches = 1; - -  // A token that can be sent as `page_token` to retrieve the next page. -  // If this field is omitted, there are no subsequent pages. -  string next_page_token = 2; -} diff --git a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_match.proto b/third_party/googleapis/google/maps/regionlookup/v1alpha/region_match.proto deleted file mode 100644 index e0037bb..0000000 --- a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_match.proto +++ /dev/null @@ -1,41 +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.regionlookup.v1alpha; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.RegionLookup.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha;regionlookup"; -option java_multiple_files = true; -option java_outer_classname = "RegionMatchProto"; -option java_package = "com.google.maps.regionlookup.v1alpha"; -option objc_class_prefix = "MRLV1A"; -option php_namespace = "Google\\Maps\\RegionLookup\\V1alpha"; - -// Region Match. -// -// Next available tag: 5 -message RegionMatch { -  // Place ID of the region that is matched. If region is found, this field is -  // not set. -  string matched_place_id = 1; - -  // Region candidate IDs. Up to three candidates may be returned. -  repeated string candidate_place_ids = 2; - -  // Matching debug information for when no match is found. -  string debug_info = 3; -} diff --git a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_search_values.proto b/third_party/googleapis/google/maps/regionlookup/v1alpha/region_search_values.proto deleted file mode 100644 index 956dd2f..0000000 --- a/third_party/googleapis/google/maps/regionlookup/v1alpha/region_search_values.proto +++ /dev/null @@ -1,131 +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.regionlookup.v1alpha; - -import "google/api/field_behavior.proto"; -import "google/type/latlng.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.RegionLookup.V1Alpha"; -option go_package = "google.golang.org/genproto/googleapis/maps/regionlookup/v1alpha;regionlookup"; -option java_multiple_files = true; -option java_outer_classname = "RegionSearchValuesProto"; -option java_package = "com.google.maps.regionlookup.v1alpha"; -option objc_class_prefix = "MRLV1A"; -option php_namespace = "Google\\Maps\\RegionLookup\\V1alpha"; - -// Region Search Values. -// -// Desired search values of a single region. -// -// Location must be specified by one of the following: address, latlng or -// place_id. If none is specified, an INVALID_ARGUMENT error is returned. -// region_code must also be provided when address is specified. -// -// The fields address, latlng and place_id specify a location contained inside -// the region to match. For example if address is "1600 Amphitheatre Pkwy, -// Mountain View, CA 94043" the API returns the following matched_place_id -// results when the following place_types are specified: -// -// place_type:                   matched_place_id results: -// postal_code                   Place ID for "94043" -// administrative_area_level_1   Place ID for The State of California -// administrative_area_level_2   Place ID for Santa Clara County -// etc. -// -// More Examples: -// -// If latlng is "latitude: 37.4220656 longitude: -122.0862784" and place_type -// is "locality", the result contains the Place ID (of type "locality") for -// that location (the Place ID of Mountain View, CA, in this case). -// -// If place_id is "ChIJj61dQgK6j4AR4GeTYWZsKWw" (Place ID for Google office in -// Mountain view, CA) and place_type is "locality", the result contains the -// Place ID (of type "locality") for that location (the Place ID of Mountain -// View, CA, in this case). -// -// If no match is found, matched_place_id is not set. -// -// Candidates Place IDs are returned when a search finds multiple Place -// IDs for the location specified. For example if the API is searching for -// region Place IDs of type neighboorhood for a location that is contained -// within multiple neighboords. The Place Ids will be returned as candidates in -// the candidate_place_ids field. -// -// Next available tag: 10 -message RegionSearchValue { -  // Possible place types to match to. -  enum PlaceType { -    // Default value. This value is unused. -    PLACE_TYPE_UNSPECIFIED = 0; - -    // Postal code. -    POSTAL_CODE = 1; - -    // Administrative area level 1 (State in the US). -    ADMINISTRATIVE_AREA_LEVEL_1 = 2; - -    // Administrative area level 2 (County in the US). -    ADMINISTRATIVE_AREA_LEVEL_2 = 3; - -    // Locality (City). -    LOCALITY = 4; - -    // Neighborhood. -    NEIGHBORHOOD = 5; - -    // Country. -    COUNTRY = 6; - -    // Sublocality. -    SUBLOCALITY = 7; - -    // Administrative area level 3. -    ADMINISTRATIVE_AREA_LEVEL_3 = 8; - -    // Administrative area level 4. -    ADMINISTRATIVE_AREA_LEVEL_4 = 9; - -    // School district. -    SCHOOL_DISTRICT = 10; -  } - -  // The location must be specified by one of the following: -  oneof location { -    // The unstructured street address that is contained inside a region to -    // match. region_code is required when address is specified. -    string address = 1; - -    // The latitude and longitude that is contained inside a region to match. -    google.type.LatLng latlng = 2; - -    // The Place ID that is contained inside a region to match. -    string place_id = 3; -  } - -  // Required. The type of the place to match. -  PlaceType place_type = 6 [(google.api.field_behavior) = REQUIRED]; - -  // The BCP-47 language code, such as "en-US" or "sr-Latn", corresponding to -  // the language in which the place name and address is requested. If none is -  // requested, then it defaults to English. -  string language_code = 7; - -  // Two-letter ISO-3166 country/region code for the location you're trying to -  // match. region_code is required when address is specified. -  string region_code = 8; -} diff --git a/third_party/googleapis/google/maps/regionlookup/v1alpha/regionlookup_grpc_service_config.json b/third_party/googleapis/google/maps/regionlookup/v1alpha/regionlookup_grpc_service_config.json deleted file mode 100644 index 2894929..0000000 --- a/third_party/googleapis/google/maps/regionlookup/v1alpha/regionlookup_grpc_service_config.json +++ /dev/null @@ -1,24 +0,0 @@ -{ -  "methodConfig": [ -    { -      "name": [ -        { -          "service": "google.maps.regionlookup.v1alpha.RegionLookup", -          "method": "LookupRegion" -        }, -        { -          "service": "google.maps.regionlookup.v1alpha.RegionLookup", -          "method": "SearchRegion" -        } -      ], -      "timeout": "60s", -      "retryPolicy": { -        "maxAttempts": 5, -        "initialBackoff": "1s", -        "maxBackoff": "10s", -        "backoffMultiplier": 1.3, -        "retryableStatusCodes": ["UNAVAILABLE"] -      } -    } -  ] -} diff --git a/third_party/googleapis/google/maps/regionlookup/v1alpha/regionlookup_v1alpha.yaml b/third_party/googleapis/google/maps/regionlookup/v1alpha/regionlookup_v1alpha.yaml deleted file mode 100644 index 878e4a0..0000000 --- a/third_party/googleapis/google/maps/regionlookup/v1alpha/regionlookup_v1alpha.yaml +++ /dev/null @@ -1,10 +0,0 @@ -type: google.api.Service -config_version: 3 -name: regionlookup.googleapis.com -title: Region Lookup API - -apis: -- name: google.maps.regionlookup.v1alpha.RegionLookup - -documentation: -  summary: regionlookup.googleapis.com API. diff --git a/third_party/googleapis/google/maps/roads/v1op/BUILD.bazel b/third_party/googleapis/google/maps/roads/v1op/BUILD.bazel deleted file mode 100644 index 2fc9e33..0000000 --- a/third_party/googleapis/google/maps/roads/v1op/BUILD.bazel +++ /dev/null @@ -1,375 +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 = "roads_proto", -    srcs = [ -        "roads.proto", -    ], -    deps = [ -        "//google/api:annotations_proto", -        "//google/api:client_proto", -        "//google/api:resource_proto", -        "//google/type:latlng_proto", -        "@com_google_protobuf//:wrappers_proto", -    ], -) - -proto_library_with_info( -    name = "roads_proto_with_info", -    deps = [ -        ":roads_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "roads_java_proto", -    deps = [":roads_proto"], -) - -java_grpc_library( -    name = "roads_java_grpc", -    srcs = [":roads_proto"], -    deps = [":roads_java_proto"], -) - -java_gapic_library( -    name = "roads_java_gapic", -    srcs = [":roads_proto_with_info"], -    grpc_service_config = "roads_grpc_service_config.json", -    test_deps = [ -        ":roads_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":roads_java_proto", -    ], -) - -java_gapic_test( -    name = "roads_java_gapic_test_suite", -    test_classes = [ -        "com.google.maps.roads.v1op.RoadsServiceClientHttpJsonTest", -        "com.google.maps.roads.v1op.RoadsServiceClientTest", -    ], -    runtime_deps = ["roads_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-maps-roads-v1op-java", -    transport = "grpc+rest", -    deps = [ -        ":roads_java_gapic", -        ":roads_java_grpc", -        ":roads_java_proto", -        ":roads_proto", -    ], -) - -maps_assembly_pkg( -    name = "google-maps-roads-v1op-java-postprocess", -    srcs = [":google-maps-roads-v1op-java"], -    language = "java", -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "roads_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/roads/v1op", -    protos = [":roads_proto"], -    deps = [ -        "//google/api:annotations_go_proto", -        "//google/type:latlng_go_proto", -    ], -) - -go_gapic_library( -    name = "roads_go_gapic", -    srcs = [":roads_proto_with_info"], -    grpc_service_config = "roads_grpc_service_config.json", -    importpath = "developers.google.com/maps/go/roads/v1op;roads", -    service_yaml = "roads_v1op.yaml", -    transport = "grpc+rest", -    deps = [ -        ":roads_go_proto", -    ], -) - -go_test( -    name = "roads_go_gapic_test", -    srcs = [":roads_go_gapic_srcjar_test"], -    embed = [":roads_go_gapic"], -    importpath = "developers.google.com/maps/go/roads/v1op", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapic-maps-roads-v1op-go", -    deps = [ -        ":roads_go_gapic", -        ":roads_go_gapic_srcjar-test.srcjar", -        ":roads_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "roads_py_gapic", -    srcs = [":roads_proto"], -    grpc_service_config = "roads_grpc_service_config.json", -    transport = "grpc", -) - -py_test( -    name = "roads_py_gapic_test", -    srcs = [ -        "roads_py_gapic_pytest.py", -        "roads_py_gapic_test.py", -    ], -    legacy_create_init = False, -    deps = [":roads_py_gapic"], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "roads-v1op-py", -    deps = [ -        ":roads_py_gapic", -    ], -) - -maps_assembly_pkg( -    name = "roads-v1op-py-postprocess", -    srcs = [":roads-v1op-py"], -    language = "py", -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "roads_php_proto", -    deps = [":roads_proto"], -) - -php_grpc_library( -    name = "roads_php_grpc", -    srcs = [":roads_proto"], -    deps = [":roads_php_proto"], -) -# A HttpRule option must be defined -# php_gapic_library( -#     name = "roads_php_gapic", -#     srcs = [":roads_proto_with_info"], -#     service_yaml = "roads_v1op.yaml", -#     deps = [ -#         ":roads_php_grpc", -#         ":roads_php_proto", -#     ], -# ) - -# # Open Source Packages -# php_gapic_assembly_pkg( -#     name = "google-maps-roads-v1op-php", -#     deps = [ -#         ":roads_php_gapic", -#         ":roads_php_grpc", -#         ":roads_php_proto", -#     ], -# ) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "roads_nodejs_gapic", -    src = ":roads_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "roads_grpc_service_config.json", -    package = "google.maps.roads.v1op", -    service_yaml = "roads_v1op.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "roads-v1op-nodejs", -    deps = [ -        ":roads_nodejs_gapic", -        ":roads_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "roads_ruby_proto", -    deps = [":roads_proto"], -) - -ruby_grpc_library( -    name = "roads_ruby_grpc", -    srcs = [":roads_proto"], -    deps = [":roads_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "roads_ruby_gapic", -    srcs = [":roads_proto_with_info"], -    extra_protoc_parameters = ["ruby-cloud-gem-name=google-cloud-roads-v1op"], -    deps = [ -        ":roads_ruby_grpc", -        ":roads_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-maps-roads-v1op-ruby", -    deps = [ -        ":roads_ruby_gapic", -        ":roads_ruby_grpc", -        ":roads_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "roads_csharp_proto", -    deps = [":roads_proto"], -) - -csharp_grpc_library( -    name = "roads_csharp_grpc", -    srcs = [":roads_proto"], -    deps = [":roads_csharp_proto"], -) - -csharp_gapic_library( -    name = "roads_csharp_gapic", -    srcs = [":roads_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "roads_grpc_service_config.json", -    deps = [ -        ":roads_csharp_grpc", -        ":roads_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-maps-roads-v1op-csharp", -    deps = [ -        ":roads_csharp_gapic", -        ":roads_csharp_grpc", -        ":roads_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_gapic_library", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "roads_cc_proto", -    deps = [":roads_proto"], -) - -cc_grpc_library( -    name = "roads_cc_grpc", -    srcs = [":roads_proto"], -    generate_mocks = True, -    grpc_only = True, -    deps = [":roads_cc_proto"], -) - -cc_gapic_library( -    name = "roads_cc_gapic", -    src = ":roads_proto_with_info", -    package = "google.maps.roads.v1op", -    deps = [ -        ":roads_cc_grpc", -        ":roads_cc_proto", -    ], -) diff --git a/third_party/googleapis/google/maps/roads/v1op/roads.proto b/third_party/googleapis/google/maps/roads/v1op/roads.proto deleted file mode 100644 index d11e4d0..0000000 --- a/third_party/googleapis/google/maps/roads/v1op/roads.proto +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright 2019 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.roads.v1op; - -import "google/api/client.proto"; -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option go_package = "google.golang.org/genproto/googleapis/maps/roads/v1op;roads"; -option java_multiple_files = true; -option java_outer_classname = "RoadsProto"; -option java_package = "com.google.maps.roads.v1op"; - -service RoadsService { -  option (google.api.default_host) = "roads.googleapis.com"; - -  // This method takes a sequence of latitude,longitude points and snaps them to -  // the most likely road segments. Optionally returns additional points giving -  // the full road geometry. Also returns a place ID for each snapped point. -  rpc SnapToRoads(SnapToRoadsRequest) returns (SnapToRoadsResponse) { -    option (google.api.method_signature) = "path"; -  } - -  // This method takes a list of latitude,longitude points and snaps them each -  // to their nearest road. Also returns a place ID for each snapped point. -  rpc ListNearestRoads(ListNearestRoadsRequest) -      returns (ListNearestRoadsResponse) { -    option (google.api.method_signature) = "points"; -  } -} - -// A request to the SnapToRoads method, requesting that a sequence of points be -// snapped to road segments. -message SnapToRoadsRequest { -  // The path to be snapped as a series of lat, lng points. Specified as -  // a string of the format: lat,lng|lat,lng|... -  string path = 1; - -  // Whether to interpolate the points to return full road geometry. -  bool interpolate = 2; - -  // The asset ID of the asset to which this path relates. This is used for -  // abuse detection purposes for clients with asset-based SKUs. -  string asset_id = 3; - -  // The type of travel being tracked. This will constrain the paths we snap to. -  TravelMode travel_mode = 4; -} - -// An enum representing the mode of travel used for snapping. -enum TravelMode { -  TRAVEL_MODE_UNSPECIFIED = 0; - -  DRIVING = 1; - -  CYCLING = 2; - -  WALKING = 3; -} - -// A snapped point object, representing the result of snapping. -message SnappedPoint { -  // The lat,lng of the snapped location. -  google.type.LatLng location = 1; - -  // The index into the original path of the equivalent pre-snapped point. -  // This allows for identification of points which have been interpolated if -  // this index is missing. -  google.protobuf.UInt32Value original_index = 2; - -  // The place ID for this snapped location (road segment). These are the same -  // as are currently used by the Places API. -  string place_id = 3; -} - -// The response from the SnapToRoads method, returning a sequence of snapped -// points. -message SnapToRoadsResponse { -  // A list of snapped points. -  repeated SnappedPoint snapped_points = 1; - -  // User-visible warning message, if any, which can be shown alongside a valid -  // result. -  string warning_message = 2; -} - -// A request to the ListNearestRoads method, requesting that a sequence of -// points be snapped individually to the road segment that each is closest to. -message ListNearestRoadsRequest { -  // The points to be snapped as a series of lat, lng points. Specified as -  // a string of the format: lat,lng|lat,lng|... -  string points = 1; - -  // The type of travel being tracked. This will constrain the roads we snap to. -  TravelMode travel_mode = 2; -} - -// The response from the ListNearestRoads method, returning a list of snapped -// points. -message ListNearestRoadsResponse { -  // A list of snapped points. -  repeated SnappedPoint snapped_points = 1; -} diff --git a/third_party/googleapis/google/maps/roads/v1op/roads_gapic.yaml b/third_party/googleapis/google/maps/roads/v1op/roads_gapic.yaml deleted file mode 100644 index 0bcb880..0000000 --- a/third_party/googleapis/google/maps/roads/v1op/roads_gapic.yaml +++ /dev/null @@ -1,2 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 diff --git a/third_party/googleapis/google/maps/roads/v1op/roads_grpc_service_config.json b/third_party/googleapis/google/maps/roads/v1op/roads_grpc_service_config.json deleted file mode 100644 index 7fd7579..0000000 --- a/third_party/googleapis/google/maps/roads/v1op/roads_grpc_service_config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [{ "service": "google.maps.roads.v1op.RoadsService" }], -    "timeout": "60s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "60s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE", "UNKNOWN"] -    } -  } - ] -} diff --git a/third_party/googleapis/google/maps/roads/v1op/roads_v1op.yaml b/third_party/googleapis/google/maps/roads/v1op/roads_v1op.yaml deleted file mode 100644 index abd1ec1..0000000 --- a/third_party/googleapis/google/maps/roads/v1op/roads_v1op.yaml +++ /dev/null @@ -1,12 +0,0 @@ -type: google.api.Service -config_version: 3 -name: roads.googleapis.com -title: Roads API - -apis: -- name: google.maps.roads.v1op.RoadsService  # must stay as v1op - -documentation: -  summary: |- -    Snap GPS points to roads to identify the roads a vehicle was traveling -    along, making up for GPS error. 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 diff --git a/third_party/googleapis/google/maps/routespreferred/v1/BUILD.bazel b/third_party/googleapis/google/maps/routespreferred/v1/BUILD.bazel deleted file mode 100644 index 44a195e..0000000 --- a/third_party/googleapis/google/maps/routespreferred/v1/BUILD.bazel +++ /dev/null @@ -1,112 +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") - -alias( -    name = "routes_proto", -    actual = "//google/maps/routes/v1:routes_proto", -) - -alias( -    name = "routes_proto_with_info", -    actual = "//google/maps/routes/v1:routes_proto_with_info", -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_gapic_library( -    name = "routespreferred_java_gapic", -    srcs = [":routes_proto_with_info"], -    gapic_yaml = "routespreferred_gapic.yaml", -    grpc_service_config = "//google/maps/routes/v1:routes_grpc_service_config.json", -    test_deps = [ -        "//google/maps/routes/v1:routes_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        "//google/maps/routes/v1:routes_java_proto", -    ], -) - -java_gapic_test( -    name = "routespreferred_java_gapic_test_suite", -    test_classes = [ -        "com.google.maps.routespreferred.v1.RoutesPreferredClientHttpJsonTest", -        "com.google.maps.routespreferred.v1.RoutesPreferredClientTest", -    ], -    runtime_deps = [":routespreferred_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-maps-routespreferred-v1-java", -    transport = "grpc+rest", -    deps = [ -        ":routespreferred_java_gapic", -        "//google/maps/routes/v1:routes_java_grpc",  # needed for test mocks -    ], -) - -maps_assembly_pkg( -    name = "google-maps-routespreferred-v1-java-postprocess", -    srcs = [":google-maps-routespreferred-v1-java"], -    language = "java", -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_gapic_library( -    name = "routespreferred_go_gapic", -    srcs = [":routes_proto_with_info"], -    grpc_service_config = "", -    importpath = "developers.google.com/maps/go/routespreferred/v1;routes", -    service_yaml = "routespreferred_v1.yaml", -    transport = "grpc+rest", -    deps = [ -        "//google/maps/routes/v1:routes_go_proto", -    ], -) - -go_test( -    name = "routespreferred_go_gapic_test", -    srcs = [":routespreferred_go_gapic_srcjar_test"], -    embed = [":routespreferred_go_gapic"], -    importpath = "developers.google.com/maps/go/routespreferred/v1", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapic-maps-routespreferred-v1-go", -    deps = [ -        ":routespreferred_go_gapic", -        ":routespreferred_go_gapic_srcjar-test.srcjar", -        "//google/maps/routes/v1:routes_go_proto", -    ], -) diff --git a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_gapic.yaml b/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_gapic.yaml deleted file mode 100644 index ac3147b..0000000 --- a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_gapic.yaml +++ /dev/null @@ -1,7 +0,0 @@ -type: com.google.api.codegen.ConfigProto -config_schema_version: 2.0.0 -language_settings: -  java: -    package_name: com.google.maps.routespreferred.v1 -  go: -    package_name: developers.google.com/maps/go/routespreferred/v1 diff --git a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_grpc_service_config.json b/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_grpc_service_config.json deleted file mode 100644 index b55ded8..0000000 --- a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_grpc_service_config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [{ "service": "google.maps.routespreferred.v1.RoutesPreferred" }], -    "timeout": "30s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "30s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  } - ] -} diff --git a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_v1.yaml b/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_v1.yaml deleted file mode 100644 index a365ce2..0000000 --- a/third_party/googleapis/google/maps/routespreferred/v1/routespreferred_v1.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.v1.RoutesPreferred diff --git a/third_party/googleapis/google/maps/routing/v2/BUILD.bazel b/third_party/googleapis/google/maps/routing/v2/BUILD.bazel deleted file mode 100644 index 429a08a..0000000 --- a/third_party/googleapis/google/maps/routing/v2/BUILD.bazel +++ /dev/null @@ -1,408 +0,0 @@ -# This file was automatically generated by BuildFileGenerator -# https://github.com/googleapis/rules_gapic/tree/master/bazel - -# Most of the manual changes to this file will be overwritten. -# It's **only** allowed to change the following rule attribute values: -# - names of *_gapic_assembly_* rules -# - certain parameters of *_gapic_library rules, including but not limited to: -#    * extra_protoc_parameters -#    * extra_protoc_file_parameters -# The complete list of preserved parameters can be found in the source code. - -# 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") - -proto_library( -    name = "routing_proto", -    srcs = [ -        "fallback_info.proto", -        "location.proto", -        "maneuver.proto", -        "navigation_instruction.proto", -        "polyline.proto", -        "route.proto", -        "route_modifiers.proto", -        "route_travel_mode.proto", -        "routes_service.proto", -        "routing_preference.proto", -        "speed_reading_interval.proto", -        "toll_info.proto", -        "toll_passes.proto", -        "units.proto", -        "vehicle_emission_type.proto", -        "vehicle_info.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 = "routing_proto_with_info", -    deps = [ -        ":routing_proto", -        "//google/cloud:common_resources_proto", -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_gapic_assembly_gradle_pkg", -    "java_gapic_library", -    "java_gapic_test", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "routing_java_proto", -    deps = [":routing_proto"], -) - -java_grpc_library( -    name = "routing_java_grpc", -    srcs = [":routing_proto"], -    deps = [":routing_java_proto"], -) - -java_gapic_library( -    name = "routing_java_gapic", -    srcs = [":routing_proto_with_info"], -    gapic_yaml = None, -    grpc_service_config = "library_grpc_service_config.json", -    service_yaml = "routes_v2.yaml", -    test_deps = [ -        ":routing_java_grpc", -    ], -    transport = "grpc+rest", -    deps = [ -        ":routing_java_proto", -        "//google/api:api_java_proto", -    ], -) - -java_gapic_test( -    name = "routing_java_gapic_test_suite", -    test_classes = [ -        "com.google.maps.routing.v2.RoutesClientHttpJsonTest", -        "com.google.maps.routing.v2.RoutesClientTest", -    ], -    runtime_deps = [":routing_java_gapic_test"], -) - -# Open Source Packages -java_gapic_assembly_gradle_pkg( -    name = "google-maps-routing-v2-java", -    include_samples = True, -    transport = "grpc+rest", -    deps = [ -        ":routing_java_gapic", -        ":routing_java_grpc", -        ":routing_java_proto", -        ":routing_proto", -    ], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_gapic_assembly_pkg", -    "go_gapic_library", -    "go_proto_library", -    "go_test", -) - -go_proto_library( -    name = "routing_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/routing/v2", -    protos = [":routing_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", -    ], -) - -go_gapic_library( -    name = "routing_go_gapic", -    srcs = [":routing_proto_with_info"], -    grpc_service_config = "library_grpc_service_config.json", -    importpath = "google.golang.org/google/maps/routing/v2;routing", -    metadata = True, -    service_yaml = "routes_v2.yaml", -    transport = "grpc+rest", -    deps = [ -        ":routing_go_proto", -        "@io_bazel_rules_go//proto/wkt:duration_go_proto", -    ], -) - -go_test( -    name = "routing_go_gapic_test", -    srcs = [":routing_go_gapic_srcjar_test"], -    embed = [":routing_go_gapic"], -    importpath = "google.golang.org/google/maps/routing/v2", -) - -# Open Source Packages -go_gapic_assembly_pkg( -    name = "gapi-maps-routing-v2-go", -    deps = [ -        ":routing_go_gapic", -        ":routing_go_gapic_srcjar-metadata.srcjar", -        ":routing_go_gapic_srcjar-test.srcjar", -        ":routing_go_proto", -    ], -) - -############################################################################## -# Python -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "py_gapic_assembly_pkg", -    "py_gapic_library", -    "py_test", -) - -py_gapic_library( -    name = "routing_py_gapic", -    srcs = [":routing_proto"], -    grpc_service_config = "library_grpc_service_config.json", -    service_yaml = "routes_v2.yaml", -    transport = "grpc", -    deps = [ -        "//google/geo/type:viewport_py_proto", -    ], -) - -py_test( -    name = "routing_py_gapic_test", -    srcs = [ -        "routing_py_gapic_pytest.py", -        "routing_py_gapic_test.py", -    ], -    legacy_create_init = False, -    deps = [":routing_py_gapic"], -) - -# Open Source Packages -py_gapic_assembly_pkg( -    name = "maps-routing-v2-py", -    deps = [ -        ":routing_py_gapic", -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_gapic_assembly_pkg", -    "php_gapic_library", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "routing_php_proto", -    deps = [":routing_proto"], -) - -php_grpc_library( -    name = "routing_php_grpc", -    srcs = [":routing_proto"], -    deps = [":routing_php_proto"], -) - -php_gapic_library( -    name = "routing_php_gapic", -    srcs = [":routing_proto_with_info"], -    grpc_service_config = "library_grpc_service_config.json", -    service_yaml = "routes_v2.yaml", -    deps = [ -        ":routing_php_grpc", -        ":routing_php_proto", -    ], -) - -# Open Source Packages -php_gapic_assembly_pkg( -    name = "google-maps-routing-v2-php", -    deps = [ -        ":routing_php_gapic", -        ":routing_php_grpc", -        ":routing_php_proto", -    ], -) - -############################################################################## -# Node.js -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "nodejs_gapic_assembly_pkg", -    "nodejs_gapic_library", -) - -nodejs_gapic_library( -    name = "routing_nodejs_gapic", -    package_name = "@googlemaps/routing", -    src = ":routing_proto_with_info", -    extra_protoc_parameters = ["metadata"], -    grpc_service_config = "library_grpc_service_config.json", -    package = "google.maps.routing.v2", -    service_yaml = "routes_v2.yaml", -    deps = [], -) - -nodejs_gapic_assembly_pkg( -    name = "maps-routing-v2-nodejs", -    deps = [ -        ":routing_nodejs_gapic", -        ":routing_proto", -        "//google/geo/type:viewport_proto", -    ], -) - -############################################################################## -# Ruby -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "ruby_cloud_gapic_library", -    "ruby_gapic_assembly_pkg", -    "ruby_grpc_library", -    "ruby_proto_library", -) - -ruby_proto_library( -    name = "routing_ruby_proto", -    deps = [":routing_proto"], -) - -ruby_grpc_library( -    name = "routing_ruby_grpc", -    srcs = [":routing_proto"], -    deps = [":routing_ruby_proto"], -) - -ruby_cloud_gapic_library( -    name = "routing_ruby_gapic", -    srcs = [":routing_proto_with_info"], -    extra_protoc_parameters = [ -        "ruby-cloud-api-id=routes.googleapis.com", -        "ruby-cloud-api-shortname=routes", -        "ruby-cloud-gem-name=google-maps-routing-v2", -        "ruby-cloud-product-url=https://developers.google.com/maps/documentation/", -    ], -    grpc_service_config = "library_grpc_service_config.json", -    ruby_cloud_description = "Routing includes the process of calculating a path along the road network, complete with an Estimated Time of Arrival (ETA).", -    ruby_cloud_title = "Routes V2", -    service_yaml = "routes_v2.yaml", -    deps = [ -        ":routing_ruby_grpc", -        ":routing_ruby_proto", -    ], -) - -# Open Source Packages -ruby_gapic_assembly_pkg( -    name = "google-maps-routing-v2-ruby", -    deps = [ -        ":routing_ruby_gapic", -        ":routing_ruby_grpc", -        ":routing_ruby_proto", -    ], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_gapic_assembly_pkg", -    "csharp_gapic_library", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "routing_csharp_proto", -    deps = [":routing_proto"], -) - -csharp_grpc_library( -    name = "routing_csharp_grpc", -    srcs = [":routing_proto"], -    deps = [":routing_csharp_proto"], -) - -csharp_gapic_library( -    name = "routing_csharp_gapic", -    srcs = [":routing_proto_with_info"], -    common_resources_config = "@gax_dotnet//:Google.Api.Gax/ResourceNames/CommonResourcesConfig.json", -    grpc_service_config = "library_grpc_service_config.json", -    service_yaml = "routes_v2.yaml", -    deps = [ -        ":routing_csharp_grpc", -        ":routing_csharp_proto", -    ], -) - -# Open Source Packages -csharp_gapic_assembly_pkg( -    name = "google-maps-routing-v2-csharp", -    deps = [ -        ":routing_csharp_gapic", -        ":routing_csharp_grpc", -        ":routing_csharp_proto", -    ], -) - -############################################################################## -# C++ -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "cc_grpc_library", -    "cc_proto_library", -) - -cc_proto_library( -    name = "routing_cc_proto", -    deps = [":routing_proto"], -) - -cc_grpc_library( -    name = "routing_cc_grpc", -    srcs = [":routing_proto"], -    grpc_only = True, -    deps = [":routing_cc_proto"], -) diff --git a/third_party/googleapis/google/maps/routing/v2/fallback_info.proto b/third_party/googleapis/google/maps/routing/v2/fallback_info.proto deleted file mode 100644 index e8ba952..0000000 --- a/third_party/googleapis/google/maps/routing/v2/fallback_info.proto +++ /dev/null @@ -1,72 +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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "FallbackInfoProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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/routing/v2/library_grpc_service_config.json b/third_party/googleapis/google/maps/routing/v2/library_grpc_service_config.json deleted file mode 100644 index b31a139..0000000 --- a/third_party/googleapis/google/maps/routing/v2/library_grpc_service_config.json +++ /dev/null @@ -1,16 +0,0 @@ -{ -  "methodConfig": [{ -    "name": [ -      { "service": "google.maps.routing.v2.RoutesService", "method": "ComputeRoutes" }, -      { "service": "google.maps.routing.v2.RoutesService", "method": "ComputeRouteMatrix" } -    ], -    "timeout": "60s", -    "retryPolicy": { -      "maxAttempts": 5, -      "initialBackoff": "1s", -      "maxBackoff": "10s", -      "backoffMultiplier": 1.3, -      "retryableStatusCodes": ["UNAVAILABLE"] -    } -  }] -} diff --git a/third_party/googleapis/google/maps/routing/v2/location.proto b/third_party/googleapis/google/maps/routing/v2/location.proto deleted file mode 100644 index 45c08b8..0000000 --- a/third_party/googleapis/google/maps/routing/v2/location.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.routing.v2; - -import "google/protobuf/wrappers.proto"; -import "google/type/latlng.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "LocationProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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/routing/v2/maneuver.proto b/third_party/googleapis/google/maps/routing/v2/maneuver.proto deleted file mode 100644 index b87f8f9..0000000 --- a/third_party/googleapis/google/maps/routing/v2/maneuver.proto +++ /dev/null @@ -1,88 +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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "ManeuverProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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; -} diff --git a/third_party/googleapis/google/maps/routing/v2/navigation_instruction.proto b/third_party/googleapis/google/maps/routing/v2/navigation_instruction.proto deleted file mode 100644 index dfe017c..0000000 --- a/third_party/googleapis/google/maps/routing/v2/navigation_instruction.proto +++ /dev/null @@ -1,40 +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.routing.v2; - -import "google/maps/routing/v2/maneuver.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "NavigationInstructionProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// Encapsulates navigation instructions for a -// [RouteLegStep][google.maps.routing.v2.RouteLegStep] -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; -} diff --git a/third_party/googleapis/google/maps/routing/v2/polyline.proto b/third_party/googleapis/google/maps/routing/v2/polyline.proto deleted file mode 100644 index 19f6b26..0000000 --- a/third_party/googleapis/google/maps/routing/v2/polyline.proto +++ /dev/null @@ -1,74 +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.routing.v2; - -import "google/protobuf/struct.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "PolylineProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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/routing/v2/route.proto b/third_party/googleapis/google/maps/routing/v2/route.proto deleted file mode 100644 index 8f4304f..0000000 --- a/third_party/googleapis/google/maps/routing/v2/route.proto +++ /dev/null @@ -1,208 +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.routing.v2; - -import "google/geo/type/viewport.proto"; -import "google/maps/routing/v2/location.proto"; -import "google/maps/routing/v2/navigation_instruction.proto"; -import "google/maps/routing/v2/polyline.proto"; -import "google/maps/routing/v2/speed_reading_interval.proto"; -import "google/maps/routing/v2/toll_info.proto"; -import "google/protobuf/duration.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "RouteProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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; -} - -// Encapsulates the additional information that the user should be informed -// about, such as possible traffic zone restriction etc. -message RouteTravelAdvisory { -  // 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; -} - -// 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; -} - -// 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 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 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; -} diff --git a/third_party/googleapis/google/maps/routing/v2/route_modifiers.proto b/third_party/googleapis/google/maps/routing/v2/route_modifiers.proto deleted file mode 100644 index 01fcdad..0000000 --- a/third_party/googleapis/google/maps/routing/v2/route_modifiers.proto +++ /dev/null @@ -1,64 +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.routing.v2; - -import "google/maps/routing/v2/toll_passes.proto"; -import "google/maps/routing/v2/vehicle_info.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "RouteModifiersProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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; -} diff --git a/third_party/googleapis/google/maps/routing/v2/route_travel_mode.proto b/third_party/googleapis/google/maps/routing/v2/route_travel_mode.proto deleted file mode 100644 index adc091e..0000000 --- a/third_party/googleapis/google/maps/routing/v2/route_travel_mode.proto +++ /dev/null @@ -1,46 +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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "RouteTravelModeProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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; -} diff --git a/third_party/googleapis/google/maps/routing/v2/routes_service.proto b/third_party/googleapis/google/maps/routing/v2/routes_service.proto deleted file mode 100644 index e252a87..0000000 --- a/third_party/googleapis/google/maps/routing/v2/routes_service.proto +++ /dev/null @@ -1,311 +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.routing.v2; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/maps/routing/v2/fallback_info.proto"; -import "google/maps/routing/v2/polyline.proto"; -import "google/maps/routing/v2/route.proto"; -import "google/maps/routing/v2/route_modifiers.proto"; -import "google/maps/routing/v2/route_travel_mode.proto"; -import "google/maps/routing/v2/routing_preference.proto"; -import "google/maps/routing/v2/units.proto"; -import "google/maps/routing/v2/waypoint.proto"; -import "google/protobuf/duration.proto"; -import "google/protobuf/timestamp.proto"; -import "google/rpc/status.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "RoutesServiceProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// The Routes API. -service Routes { -  option (google.api.default_host) = "routes.googleapis.com"; - -  // 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: "/directions/v2: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: "/distanceMatrix/v2:computeRouteMatrix" -      body: "*" -    }; -  } -} - -// ComputeRoutes request message. -message ComputeRoutesRequest { -  // 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. -  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 = 12 [(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. Specifies whether to calculate alternate routes in addition to the route. -  bool compute_alternative_routes = 8 [(google.api.field_behavior) = OPTIONAL]; - -  // Optional. A set of conditions to satisfy that affect the way routes are -  // calculated. -  RouteModifiers route_modifiers = 9 [(google.api.field_behavior) = OPTIONAL]; - -  // 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 [(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 = 11 [(google.api.field_behavior) = OPTIONAL]; -} - -// 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; -} - -// 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]; -} - -// 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. -  optional int32 origin_index = 1; - -  // Zero-based index of the destination in the request. -  optional 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/routing/v2/routes_v2.yaml b/third_party/googleapis/google/maps/routing/v2/routes_v2.yaml deleted file mode 100644 index 2bbdc5a..0000000 --- a/third_party/googleapis/google/maps/routing/v2/routes_v2.yaml +++ /dev/null @@ -1,10 +0,0 @@ -type: google.api.Service -config_version: 3 -name: routes.googleapis.com -title: Routes API - -apis: -- name: google.maps.routing.v2.Routes - -documentation: -  summary: routes.googleapis.com API. diff --git a/third_party/googleapis/google/maps/routing/v2/routing_preference.proto b/third_party/googleapis/google/maps/routing/v2/routing_preference.proto deleted file mode 100644 index 0b9108f..0000000 --- a/third_party/googleapis/google/maps/routing/v2/routing_preference.proto +++ /dev/null @@ -1,55 +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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "RoutingPreferenceProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// A set of values that specify factors to take into consideration when -// calculating the route. -enum RoutingPreference { -  // No routing preference specified. Default to `TRAFFIC_UNAWARE`. -  ROUTING_PREFERENCE_UNSPECIFIED = 0; - -  // Computes routes without taking live traffic conditions into consideration. -  // Suitable when traffic conditions don't matter or are not applicable. -  // Using this value produces the lowest latency. -  // Note: For `RouteTravelMode` DRIVE and TWO_WHEELER choice of route and -  // duration are based on road network and average time-independent traffic -  // conditions. Results for a given request may vary over time due to changes -  // in the road network, updated average traffic conditions, and the -  // distributed nature of the service. Results may also vary between -  // nearly-equivalent routes at any time or frequency. -  TRAFFIC_UNAWARE = 1; - -  // Calculates routes taking live 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 live traffic conditions into consideration, -  // without applying most performance optimizations. Using this value produces -  // the highest latency. -  TRAFFIC_AWARE_OPTIMAL = 3; -} diff --git a/third_party/googleapis/google/maps/routing/v2/speed_reading_interval.proto b/third_party/googleapis/google/maps/routing/v2/speed_reading_interval.proto deleted file mode 100644 index 6f43f7c..0000000 --- a/third_party/googleapis/google/maps/routing/v2/speed_reading_interval.proto +++ /dev/null @@ -1,57 +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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "SpeedReadingIntervalProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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. -  optional int32 start_polyline_point_index = 1; - -  // The ending index of this interval in the polyline. -  optional int32 end_polyline_point_index = 2; - -  // Traffic speed in this interval. -  Speed speed = 3; -} diff --git a/third_party/googleapis/google/maps/routing/v2/toll_info.proto b/third_party/googleapis/google/maps/routing/v2/toll_info.proto deleted file mode 100644 index b98a0cb..0000000 --- a/third_party/googleapis/google/maps/routing/v2/toll_info.proto +++ /dev/null @@ -1,40 +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.routing.v2; - -import "google/type/money.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "TollInfoProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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; -} diff --git a/third_party/googleapis/google/maps/routing/v2/toll_passes.proto b/third_party/googleapis/google/maps/routing/v2/toll_passes.proto deleted file mode 100644 index c46259b..0000000 --- a/third_party/googleapis/google/maps/routing/v2/toll_passes.proto +++ /dev/null @@ -1,321 +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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "TollPassesProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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; - -  // Sydney toll pass. See additional details at https://www.myetoll.com.au. -  AU_ETOLL_TAG = 82; - -  // Sydney toll pass. See additional details at 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. -  // https://iave.capufe.gob.mx/#/ -  MX_IAVE = 90; - -  // Mexico -  // https://www.pase.com.mx -  MX_PASE = 91; - -  // Mexico -  //  https://operadoravial.com/quick-pass/ -  MX_QUICKPASS = 93; - -  // http://appsh.chihuahua.gob.mx/transparencia/?doc=/ingresos/TelepeajeFormato4.pdf -  MX_SISTEMA_TELEPEAJE_CHIHUAHUA = 89; - -  // Mexico -  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 company. One of many operating in Mexico City. -  // https://www.televia.com.mx -  MX_TELEVIA = 92; - -  // 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/routing/v2/units.proto b/third_party/googleapis/google/maps/routing/v2/units.proto deleted file mode 100644 index 3242404..0000000 --- a/third_party/googleapis/google/maps/routing/v2/units.proto +++ /dev/null @@ -1,40 +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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "UnitsProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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/routing/v2/vehicle_emission_type.proto b/third_party/googleapis/google/maps/routing/v2/vehicle_emission_type.proto deleted file mode 100644 index d372986..0000000 --- a/third_party/googleapis/google/maps/routing/v2/vehicle_emission_type.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.routing.v2; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "VehicleEmissionTypeProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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/routing/v2/vehicle_info.proto b/third_party/googleapis/google/maps/routing/v2/vehicle_info.proto deleted file mode 100644 index 1393fbd..0000000 --- a/third_party/googleapis/google/maps/routing/v2/vehicle_info.proto +++ /dev/null @@ -1,37 +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.routing.v2; - -import "google/maps/routing/v2/vehicle_emission_type.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "VehicleInfoProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// Encapsulates the vehicle information, such as the license plate last -// character. -message VehicleInfo { -  // Describes the vehicle's emission type. -  // Applies only to the DRIVE travel mode. -  VehicleEmissionType emission_type = 2; -} diff --git a/third_party/googleapis/google/maps/routing/v2/waypoint.proto b/third_party/googleapis/google/maps/routing/v2/waypoint.proto deleted file mode 100644 index a97b043..0000000 --- a/third_party/googleapis/google/maps/routing/v2/waypoint.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.routing.v2; - -import "google/maps/routing/v2/location.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Maps.Routing.V2"; -option go_package = "google.golang.org/genproto/googleapis/maps/routing/v2;routing"; -option java_multiple_files = true; -option java_outer_classname = "WaypointProto"; -option java_package = "com.google.maps.routing.v2"; -option objc_class_prefix = "GMRV2"; -option php_namespace = "Google\\Maps\\Routing\\V2"; -option ruby_package = "Google::Maps::Routing::V2"; - -// 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. -  bool side_of_road = 5; -} diff --git a/third_party/googleapis/google/maps/unity/BUILD.bazel b/third_party/googleapis/google/maps/unity/BUILD.bazel deleted file mode 100644 index e45c212..0000000 --- a/third_party/googleapis/google/maps/unity/BUILD.bazel +++ /dev/null @@ -1,129 +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 = "clientinfo_proto", -    srcs = [ -        "clientinfo.proto", -    ], -    deps = [ -    ], -) - -############################################################################## -# Java -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "java_grpc_library", -    "java_proto_library", -) - -java_proto_library( -    name = "clientinfo_java_proto", -    deps = [":clientinfo_proto"], -) - -java_grpc_library( -    name = "clientinfo_java_grpc", -    srcs = [":clientinfo_proto"], -    deps = [":clientinfo_java_proto"], -) - -############################################################################## -# Go -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "go_proto_library", -) - -go_proto_library( -    name = "clientinfo_go_proto", -    compilers = ["@io_bazel_rules_go//proto:go_grpc"], -    importpath = "google.golang.org/genproto/googleapis/maps/unity", -    protos = [":clientinfo_proto"], -    deps = [ -    ], -) - -############################################################################## -# PHP -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "php_grpc_library", -    "php_proto_library", -) - -php_proto_library( -    name = "clientinfo_php_proto", -    deps = [":clientinfo_proto"], -) - -php_grpc_library( -    name = "clientinfo_php_grpc", -    srcs = [":clientinfo_proto"], -    deps = [":clientinfo_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 = "clientinfo_ruby_proto", -    deps = [":clientinfo_proto"], -) - -ruby_grpc_library( -    name = "clientinfo_ruby_grpc", -    srcs = [":clientinfo_proto"], -    deps = [":clientinfo_ruby_proto"], -) - -############################################################################## -# C# -############################################################################## -load( -    "@com_google_googleapis_imports//:imports.bzl", -    "csharp_grpc_library", -    "csharp_proto_library", -) - -csharp_proto_library( -    name = "clientinfo_csharp_proto", -    deps = [":clientinfo_proto"], -) - -csharp_grpc_library( -    name = "clientinfo_csharp_grpc", -    srcs = [":clientinfo_proto"], -    deps = [":clientinfo_csharp_proto"], -) - -############################################################################## -# C++ -############################################################################## -# Put your C++ code here diff --git a/third_party/googleapis/google/maps/unity/clientinfo.proto b/third_party/googleapis/google/maps/unity/clientinfo.proto deleted file mode 100644 index a6c3010..0000000 --- a/third_party/googleapis/google/maps/unity/clientinfo.proto +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright 2020 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.unity; - -option csharp_namespace = "Google.Maps.Unity"; -option go_package = "google.golang.org/genproto/googleapis/maps/unity;unity"; -option java_multiple_files = true; -option java_outer_classname = "ClientInfoProto"; -option java_package = "com.google.maps.unity"; -option objc_class_prefix = "GMU"; - -// Client information. -message ClientInfo { -  // Platform enum. -  enum Platform { -    // Unspecified or unknown OS. -    PLATFORM_UNSPECIFIED = 0; - -    // Development environment. -    EDITOR = 1; - -    // macOS. -    MAC_OS = 2; - -    // Windows. -    WINDOWS = 3; - -    // Linux -    LINUX = 4; - -    // Android -    ANDROID = 5; - -    // iOS -    IOS = 6; - -    // WebGL. -    WEB_GL = 7; -  } - -  // Application ID, such as the package name on Android and the bundle -  // identifier on iOS platforms. -  string application_id = 1; - -  // Application version number, such as "1.2.3". The exact format is -  // application-dependent. -  string application_version = 2; - -  // Platform where the application is running. -  Platform platform = 3; - -  // Operating system name and version as reported by the OS. For example, -  // "Mac OS X 10.10.4". The exact format is platform-dependent. -  string operating_system = 4; - -  // API client name and version. For example, the SDK calling the API. The -  // exact format is up to the client. -  string api_client = 5; - -  // Device model as reported by the device. The exact format is -  // platform-dependent. -  string device_model = 6; - -  // Language code (in BCP-47 format) indicating the UI language of the client. -  // Examples are "en", "en-US" or "ja-Latn". For more information, see -  // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. -  string language_code = 7; - -  // Build number/version of the operating system. e.g., the contents of -  // android.os.Build.ID in Android, or the contents of sysctl "kern.osversion" -  // in iOS. -  string operating_system_build = 8; -}  | 
