Browse Source

Update contrib/libs/googleapis-common-protos to 1.66.0
commit_hash:49a8384b9b799da61f479b8e4cdf8c370bcb9b6f

robot-contrib 3 months ago
parent
commit
ff78bafb46

+ 11 - 0
contrib/libs/googleapis-common-protos/CHANGELOG.md

@@ -1,5 +1,16 @@
 # Changelog
 
+## [1.66.0](https://github.com/googleapis/python-api-common-protos/compare/v1.65.0...v1.66.0) (2024-11-12)
+
+
+### Features
+
+* Add `MISSING_ORIGIN` and `OVERLOADED_CREDENTIALS` to `ErrorReason` enum ([d0478d8](https://github.com/googleapis/python-api-common-protos/commit/d0478d8beacb6c53aa29aa0ac14b949421de8112))
+* Add field `protobuf_pythonic_types_enabled` to `ExperimentalFeatures` message ([d0478d8](https://github.com/googleapis/python-api-common-protos/commit/d0478d8beacb6c53aa29aa0ac14b949421de8112))
+* Add field `selective_gapic_generation` to `CommonLanguageSettings` message ([d0478d8](https://github.com/googleapis/python-api-common-protos/commit/d0478d8beacb6c53aa29aa0ac14b949421de8112))
+* Add field `time_series_resource_hierarchy_level` to `MetricDescriptorMetadata` message ([d0478d8](https://github.com/googleapis/python-api-common-protos/commit/d0478d8beacb6c53aa29aa0ac14b949421de8112))
+* Add message `SelectiveGapicGeneration` ([d0478d8](https://github.com/googleapis/python-api-common-protos/commit/d0478d8beacb6c53aa29aa0ac14b949421de8112))
+
 ## [1.65.0](https://github.com/googleapis/python-api-common-protos/compare/v1.64.0...v1.65.0) (2024-08-27)
 
 

+ 17 - 0
contrib/libs/googleapis-common-protos/google/api/client.proto

@@ -124,6 +124,9 @@ message CommonLanguageSettings {
 
   // The destination where API teams want this client library to be published.
   repeated ClientLibraryDestination destinations = 2;
+
+  // Configuration for which RPCs should be generated in the GAPIC client.
+  SelectiveGapicGeneration selective_gapic_generation = 3;
 }
 
 // Details about how and where to publish client libraries.
@@ -272,6 +275,12 @@ message PythonSettings {
     // This feature will be enabled by default 1 month after launching the
     // feature in preview packages.
     bool rest_async_io_enabled = 1;
+
+    // Enables generation of protobuf code using new types that are more
+    // Pythonic which are included in `protobuf>=5.29.x`. This feature will be
+    // enabled by default 1 month after launching the feature in preview
+    // packages.
+    bool protobuf_pythonic_types_enabled = 2;
   }
 
   // Some settings.
@@ -443,3 +452,11 @@ enum ClientLibraryDestination {
   // Publish the library to package managers like nuget.org and npmjs.com.
   PACKAGE_MANAGER = 20;
 }
+
+// This message is used to configure the generation of a subset of the RPCs in
+// a service for client libraries.
+message SelectiveGapicGeneration {
+  // An allowlist of the fully qualified names of RPCs that should be included
+  // on public client surfaces.
+  repeated string methods = 1;
+}

+ 33 - 0
contrib/libs/googleapis-common-protos/google/api/error_reason.proto

@@ -586,4 +586,37 @@ enum ErrorReason {
   // "locations/asia-northeast3" violates at least one location policy.
   // The troubleshooting guidance is provided in the Help links.
   LOCATION_POLICY_VIOLATED = 31;
+
+  // The request is denied because origin request header is missing.
+  //
+  // Example of an ErrorInfo when
+  // accessing "pubsub.googleapis.com" service with an empty "Origin" request
+  // header.
+  //
+  // {
+  //   reason: "MISSING_ORIGIN"
+  //   domain: "googleapis.com"
+  //   metadata {
+  //     "consumer":"projects/123456"
+  //     "service": "pubsub.googleapis.com"
+  //   }
+  // }
+  MISSING_ORIGIN = 33;
+
+  // The request is denied because the request contains more than one credential
+  // type that are individually acceptable, but not together. The customer
+  // should retry their request with only one set of credentials.
+  //
+  // Example of an ErrorInfo when
+  // accessing "pubsub.googleapis.com" service with overloaded credentials.
+  //
+  // {
+  //   reason: "OVERLOADED_CREDENTIALS"
+  //   domain: "googleapis.com"
+  //   metadata {
+  //     "consumer":"projects/123456"
+  //     "service": "pubsub.googleapis.com"
+  //   }
+  // }
+  OVERLOADED_CREDENTIALS = 34;
 }

+ 0 - 1
contrib/libs/googleapis-common-protos/google/api/httpbody.proto

@@ -18,7 +18,6 @@ package google.api;
 
 import "google/protobuf/any.proto";
 
-option cc_enable_arenas = true;
 option go_package = "google.golang.org/genproto/googleapis/api/httpbody;httpbody";
 option java_multiple_files = true;
 option java_outer_classname = "HttpBodyProto";

+ 19 - 0
contrib/libs/googleapis-common-protos/google/api/metric.proto

@@ -80,6 +80,21 @@ message MetricDescriptor {
 
   // Additional annotations that can be used to guide the usage of a metric.
   message MetricDescriptorMetadata {
+    // The resource hierarchy level of the timeseries data of a metric.
+    enum TimeSeriesResourceHierarchyLevel {
+      // Do not use this default value.
+      TIME_SERIES_RESOURCE_HIERARCHY_LEVEL_UNSPECIFIED = 0;
+
+      // Scopes a metric to a project.
+      PROJECT = 1;
+
+      // Scopes a metric to an organization.
+      ORGANIZATION = 2;
+
+      // Scopes a metric to a folder.
+      FOLDER = 3;
+    }
+
     // Deprecated. Must use the
     // [MetricDescriptor.launch_stage][google.api.MetricDescriptor.launch_stage]
     // instead.
@@ -95,6 +110,10 @@ message MetricDescriptor {
     // age are guaranteed to be ingested and available to be read, excluding
     // data loss due to errors.
     google.protobuf.Duration ingest_delay = 3;
+
+    // The scope of the timeseries data of the metric.
+    repeated TimeSeriesResourceHierarchyLevel
+        time_series_resource_hierarchy_level = 4;
   }
 
   // The resource name of the metric descriptor.

+ 2 - 4
contrib/libs/googleapis-common-protos/google/api/policy.proto

@@ -25,16 +25,14 @@ option java_outer_classname = "PolicyProto";
 option java_package = "com.google.api";
 option objc_class_prefix = "GAPI";
 
-// Provides `google.api.field_policy` annotation at proto fields.
 extend google.protobuf.FieldOptions {
   // See [FieldPolicy][].
-  FieldPolicy field_policy = 158361448;
+  google.api.FieldPolicy field_policy = 158361448;
 }
 
-// Provides `google.api.method_policy` annotation at proto methods.
 extend google.protobuf.MethodOptions {
   // See [MethodPolicy][].
-  MethodPolicy method_policy = 161893301;
+  google.api.MethodPolicy method_policy = 161893301;
 }
 
 // Google API Policy Annotation

+ 2 - 2
contrib/libs/googleapis-common-protos/google/api/quota.proto

@@ -161,8 +161,8 @@ message QuotaLimit {
   string metric = 8;
 
   // Specify the unit of the quota limit. It uses the same syntax as
-  // [Metric.unit][]. The supported unit kinds are determined by the quota
-  // backend system.
+  // [MetricDescriptor.unit][google.api.MetricDescriptor.unit]. The supported
+  // unit kinds are determined by the quota backend system.
   //
   // Here are some examples:
   // * "1/min/{project}" for quota per minute per project.

+ 2 - 2
contrib/libs/googleapis-common-protos/ya.make

@@ -6,9 +6,9 @@ LICENSE(Apache-2.0)
 
 LICENSE_TEXTS(.yandex_meta/licenses.list.txt)
 
-VERSION(1.65.0)
+VERSION(1.66.0)
 
-ORIGINAL_SOURCE(https://github.com/googleapis/python-api-common-protos/archive/v1.65.0.tar.gz)
+ORIGINAL_SOURCE(https://github.com/googleapis/python-api-common-protos/archive/v1.66.0.tar.gz)
 
 PY_NAMESPACE(.)