googleapis-common-protos-types 1.21.0 → 1.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +12 -0
- data/lib/google/api/annotations_pb.rb +2 -24
- data/lib/google/api/auth_pb.rb +4 -24
- data/lib/google/api/backend_pb.rb +15 -25
- data/lib/google/api/billing_pb.rb +3 -24
- data/lib/google/api/client_pb.rb +172 -78
- data/lib/google/api/config_change_pb.rb +3 -24
- data/lib/google/api/consumer_pb.rb +2 -23
- data/lib/google/api/context_pb.rb +3 -24
- data/lib/google/api/control_pb.rb +5 -27
- data/lib/google/api/distribution_pb.rb +3 -26
- data/lib/google/api/documentation_pb.rb +3 -24
- data/lib/google/api/endpoint_pb.rb +3 -24
- data/lib/google/api/error_reason_pb.rb +189 -25
- data/lib/google/api/field_behavior_pb.rb +3 -24
- data/lib/google/api/field_info_pb.rb +3 -24
- data/lib/google/api/http_pb.rb +3 -24
- data/lib/google/api/httpbody_pb.rb +3 -25
- data/lib/google/api/label_pb.rb +3 -24
- data/lib/google/api/launch_stage_pb.rb +3 -24
- data/lib/google/api/log_pb.rb +3 -25
- data/lib/google/api/logging_pb.rb +3 -24
- data/lib/google/api/metric_pb.rb +3 -26
- data/lib/google/api/monitored_resource_pb.rb +3 -26
- data/lib/google/api/monitoring_pb.rb +3 -24
- data/lib/google/api/policy_pb.rb +3 -24
- data/lib/google/api/quota_pb.rb +3 -24
- data/lib/google/api/resource_pb.rb +3 -24
- data/lib/google/api/routing_pb.rb +10 -27
- data/lib/google/api/service_pb.rb +4 -47
- data/lib/google/api/source_info_pb.rb +3 -25
- data/lib/google/api/system_parameter_pb.rb +3 -24
- data/lib/google/api/usage_pb.rb +9 -50
- data/lib/google/api/visibility_pb.rb +3 -24
- data/lib/google/logging/type/http_request_pb.rb +2 -24
- data/lib/google/logging/type/log_severity_pb.rb +2 -23
- data/lib/google/longrunning/operations_pb.rb +24 -28
- data/lib/google/rpc/code_pb.rb +3 -24
- data/lib/google/rpc/context/attribute_context_pb.rb +10 -30
- data/lib/google/rpc/context/audit_context_pb.rb +3 -25
- data/lib/google/rpc/error_details_pb.rb +7 -29
- data/lib/google/rpc/http_pb.rb +3 -24
- data/lib/google/rpc/status_pb.rb +4 -27
- data/lib/google/type/calendar_period_pb.rb +3 -24
- data/lib/google/type/color_pb.rb +12 -35
- data/lib/google/type/date_pb.rb +14 -33
- data/lib/google/type/datetime_pb.rb +20 -42
- data/lib/google/type/dayofweek_pb.rb +3 -24
- data/lib/google/type/decimal_pb.rb +14 -37
- data/lib/google/type/expr_pb.rb +3 -24
- data/lib/google/type/fraction_pb.rb +3 -24
- data/lib/google/type/interval_pb.rb +4 -27
- data/lib/google/type/latlng_pb.rb +7 -29
- data/lib/google/type/localized_text_pb.rb +6 -27
- data/lib/google/type/money_pb.rb +4 -26
- data/lib/google/type/month_pb.rb +3 -24
- data/lib/google/type/phone_number_pb.rb +23 -39
- data/lib/google/type/postal_address_pb.rb +42 -63
- data/lib/google/type/quaternion_pb.rb +7 -28
- data/lib/google/type/timeofday_pb.rb +14 -32
- data/lib/googleapis/common/protos/types/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c3e990d38b0918f56f8f05b0598eb5038064d932eeb2176373e04d46b3cb6a1
|
|
4
|
+
data.tar.gz: 3021b9b2ea37a41e745fb36701d2b5bff826dc180bd45d21df47de108a3301ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 44797841ad9674bfca85837dabcf2a2b7d22f31522db60cb974dec54182ffcfb795e93e55e39c63cdfd7ed29a99469111f2d2cedb5303f128660bdb60f09267c
|
|
7
|
+
data.tar.gz: 7d125c6c8499051b43ff962a53f15b6d73222e23730076d4cdcf2aac81e8ff608c44152f1b45464329ee672fab27a234820bec9785713b660e4ca94fb6876616
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 1.23.0 (2026-05-19)
|
|
4
|
+
|
|
5
|
+
#### Features
|
|
6
|
+
|
|
7
|
+
* Regenerate protos and support Ruby min_version 3.2 ([#412](https://github.com/googleapis/common-protos-ruby/issues/412))
|
|
8
|
+
|
|
9
|
+
### 1.22.0 (2025-10-08)
|
|
10
|
+
|
|
11
|
+
#### Features
|
|
12
|
+
|
|
13
|
+
* Support partial success and unreachable resources in ListOperations ([#393](https://github.com/googleapis/common-protos-ruby/issues/393))
|
|
14
|
+
|
|
3
15
|
### 1.21.0 (2025-09-04)
|
|
4
16
|
|
|
5
17
|
#### Features
|
|
@@ -10,30 +10,8 @@ require 'google/protobuf/descriptor_pb'
|
|
|
10
10
|
|
|
11
11
|
descriptor_data = "\n\x1cgoogle/api/annotations.proto\x12\ngoogle.api\x1a\x15google/api/http.proto\x1a google/protobuf/descriptor.proto:E\n\x04http\x12\x1e.google.protobuf.MethodOptions\x18\xb0\xca\xbc\" \x01(\x0b\x32\x14.google.api.HttpRuleBn\n\x0e\x63om.google.apiB\x10\x41nnotationsProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3"
|
|
12
12
|
|
|
13
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
-
|
|
15
|
-
begin
|
|
16
|
-
pool.add_serialized_file(descriptor_data)
|
|
17
|
-
rescue TypeError
|
|
18
|
-
# Compatibility code: will be removed in the next major version.
|
|
19
|
-
require 'google/protobuf/descriptor_pb'
|
|
20
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
21
|
-
parsed.clear_dependency
|
|
22
|
-
serialized = parsed.class.encode(parsed)
|
|
23
|
-
file = pool.add_serialized_file(serialized)
|
|
24
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
25
|
-
imports = [
|
|
26
|
-
["google.api.HttpRule", "google/api/http.proto"],
|
|
27
|
-
]
|
|
28
|
-
imports.each do |type_name, expected_filename|
|
|
29
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
30
|
-
if import_file.name != expected_filename
|
|
31
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
32
|
-
end
|
|
33
|
-
end
|
|
34
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
35
|
-
warn "This will become an error in the next major version."
|
|
36
|
-
end
|
|
13
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
|
37
15
|
|
|
38
16
|
module Google
|
|
39
17
|
module Api
|
data/lib/google/api/auth_pb.rb
CHANGED
|
@@ -7,29 +7,8 @@ require 'google/protobuf'
|
|
|
7
7
|
|
|
8
8
|
descriptor_data = "\n\x15google/api/auth.proto\x12\ngoogle.api\"l\n\x0e\x41uthentication\x12-\n\x05rules\x18\x03 \x03(\x0b\x32\x1e.google.api.AuthenticationRule\x12+\n\tproviders\x18\x04 \x03(\x0b\x32\x18.google.api.AuthProvider\"\xa9\x01\n\x12\x41uthenticationRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12,\n\x05oauth\x18\x02 \x01(\x0b\x32\x1d.google.api.OAuthRequirements\x12 \n\x18\x61llow_without_credential\x18\x05 \x01(\x08\x12\x31\n\x0crequirements\x18\x07 \x03(\x0b\x32\x1b.google.api.AuthRequirement\"^\n\x0bJwtLocation\x12\x10\n\x06header\x18\x01 \x01(\tH\x00\x12\x0f\n\x05query\x18\x02 \x01(\tH\x00\x12\x10\n\x06\x63ookie\x18\x04 \x01(\tH\x00\x12\x14\n\x0cvalue_prefix\x18\x03 \x01(\tB\x04\n\x02in\"\x9a\x01\n\x0c\x41uthProvider\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06issuer\x18\x02 \x01(\t\x12\x10\n\x08jwks_uri\x18\x03 \x01(\t\x12\x11\n\taudiences\x18\x04 \x01(\t\x12\x19\n\x11\x61uthorization_url\x18\x05 \x01(\t\x12.\n\rjwt_locations\x18\x06 \x03(\x0b\x32\x17.google.api.JwtLocation\"-\n\x11OAuthRequirements\x12\x18\n\x10\x63\x61nonical_scopes\x18\x01 \x01(\t\"9\n\x0f\x41uthRequirement\x12\x13\n\x0bprovider_id\x18\x01 \x01(\t\x12\x11\n\taudiences\x18\x02 \x01(\tBk\n\x0e\x63om.google.apiB\tAuthProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
|
|
9
9
|
|
|
10
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
-
|
|
12
|
-
begin
|
|
13
|
-
pool.add_serialized_file(descriptor_data)
|
|
14
|
-
rescue TypeError
|
|
15
|
-
# Compatibility code: will be removed in the next major version.
|
|
16
|
-
require 'google/protobuf/descriptor_pb'
|
|
17
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
18
|
-
parsed.clear_dependency
|
|
19
|
-
serialized = parsed.class.encode(parsed)
|
|
20
|
-
file = pool.add_serialized_file(serialized)
|
|
21
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
22
|
-
imports = [
|
|
23
|
-
]
|
|
24
|
-
imports.each do |type_name, expected_filename|
|
|
25
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
26
|
-
if import_file.name != expected_filename
|
|
27
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
31
|
-
warn "This will become an error in the next major version."
|
|
32
|
-
end
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
33
12
|
|
|
34
13
|
module Google
|
|
35
14
|
module Api
|
|
@@ -44,7 +23,7 @@ end
|
|
|
44
23
|
|
|
45
24
|
#### Source proto file: google/api/auth.proto ####
|
|
46
25
|
#
|
|
47
|
-
# // Copyright
|
|
26
|
+
# // Copyright 2026 Google LLC
|
|
48
27
|
# //
|
|
49
28
|
# // Licensed under the Apache License, Version 2.0 (the "License");
|
|
50
29
|
# // you may not use this file except in compliance with the License.
|
|
@@ -245,6 +224,7 @@ end
|
|
|
245
224
|
# // The list of publicly documented OAuth scopes that are allowed access. An
|
|
246
225
|
# // OAuth token containing any of these scopes will be accepted.
|
|
247
226
|
# //
|
|
227
|
+
# //
|
|
248
228
|
# // Example:
|
|
249
229
|
# //
|
|
250
230
|
# // canonical_scopes: https://www.googleapis.com/auth/calendar,
|
|
@@ -5,31 +5,10 @@
|
|
|
5
5
|
require 'google/protobuf'
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
descriptor_data = "\n\x18google/api/backend.proto\x12\ngoogle.api\"1\n\x07\x42\x61\x63kend\x12&\n\x05rules\x18\x01 \x03(\x0b\x32\x17.google.api.BackendRule\"\
|
|
8
|
+
descriptor_data = "\n\x18google/api/backend.proto\x12\ngoogle.api\"1\n\x07\x42\x61\x63kend\x12&\n\x05rules\x18\x01 \x03(\x0b\x32\x17.google.api.BackendRule\"\xd1\x04\n\x0b\x42\x61\x63kendRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x10\n\x08\x64\x65\x61\x64line\x18\x03 \x01(\x01\x12\x18\n\x0cmin_deadline\x18\x04 \x01(\x01\x42\x02\x18\x01\x12\x1a\n\x12operation_deadline\x18\x05 \x01(\x01\x12\x41\n\x10path_translation\x18\x06 \x01(\x0e\x32\'.google.api.BackendRule.PathTranslation\x12\x16\n\x0cjwt_audience\x18\x07 \x01(\tH\x00\x12\x16\n\x0c\x64isable_auth\x18\x08 \x01(\x08H\x00\x12\x10\n\x08protocol\x18\t \x01(\t\x12^\n\x1doverrides_by_request_protocol\x18\n \x03(\x0b\x32\x37.google.api.BackendRule.OverridesByRequestProtocolEntry\x12\x1d\n\x15load_balancing_policy\x18\x0b \x01(\t\x1aZ\n\x1fOverridesByRequestProtocolEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.api.BackendRule:\x02\x38\x01\"e\n\x0fPathTranslation\x12 \n\x1cPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43ONSTANT_ADDRESS\x10\x01\x12\x1a\n\x16\x41PPEND_PATH_TO_ADDRESS\x10\x02\x42\x10\n\x0e\x61uthenticationBn\n\x0e\x63om.google.apiB\x0c\x42\x61\x63kendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
|
|
9
9
|
|
|
10
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
-
|
|
12
|
-
begin
|
|
13
|
-
pool.add_serialized_file(descriptor_data)
|
|
14
|
-
rescue TypeError
|
|
15
|
-
# Compatibility code: will be removed in the next major version.
|
|
16
|
-
require 'google/protobuf/descriptor_pb'
|
|
17
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
18
|
-
parsed.clear_dependency
|
|
19
|
-
serialized = parsed.class.encode(parsed)
|
|
20
|
-
file = pool.add_serialized_file(serialized)
|
|
21
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
22
|
-
imports = [
|
|
23
|
-
]
|
|
24
|
-
imports.each do |type_name, expected_filename|
|
|
25
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
26
|
-
if import_file.name != expected_filename
|
|
27
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
31
|
-
warn "This will become an error in the next major version."
|
|
32
|
-
end
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
33
12
|
|
|
34
13
|
module Google
|
|
35
14
|
module Api
|
|
@@ -41,7 +20,7 @@ end
|
|
|
41
20
|
|
|
42
21
|
#### Source proto file: google/api/backend.proto ####
|
|
43
22
|
#
|
|
44
|
-
# // Copyright
|
|
23
|
+
# // Copyright 2026 Google LLC
|
|
45
24
|
# //
|
|
46
25
|
# // Licensed under the Apache License, Version 2.0 (the "License");
|
|
47
26
|
# // you may not use this file except in compliance with the License.
|
|
@@ -171,6 +150,10 @@ end
|
|
|
171
150
|
# // operation. The default is no deadline.
|
|
172
151
|
# double operation_deadline = 5;
|
|
173
152
|
#
|
|
153
|
+
# // Path translation specifies how to combine the backend address with the
|
|
154
|
+
# // request path in order to produce the appropriate forwarding URL for the
|
|
155
|
+
# // request. See [PathTranslation][google.api.BackendRule.PathTranslation] for
|
|
156
|
+
# // more details.
|
|
174
157
|
# PathTranslation path_translation = 6;
|
|
175
158
|
#
|
|
176
159
|
# // Authentication settings used by the backend.
|
|
@@ -225,4 +208,11 @@ end
|
|
|
225
208
|
#
|
|
226
209
|
# // The map between request protocol and the backend address.
|
|
227
210
|
# map<string, BackendRule> overrides_by_request_protocol = 10;
|
|
211
|
+
#
|
|
212
|
+
# // The load balancing policy used for connection to the application backend.
|
|
213
|
+
# //
|
|
214
|
+
# // Defined as an arbitrary string to accomondate custom load balancing
|
|
215
|
+
# // policies supported by the underlying channel, but suggest most users use
|
|
216
|
+
# // one of the standard policies, such as the default, "RoundRobin".
|
|
217
|
+
# string load_balancing_policy = 11;
|
|
228
218
|
# }
|
|
@@ -7,29 +7,8 @@ require 'google/protobuf'
|
|
|
7
7
|
|
|
8
8
|
descriptor_data = "\n\x18google/api/billing.proto\x12\ngoogle.api\"\x93\x01\n\x07\x42illing\x12\x45\n\x15\x63onsumer_destinations\x18\x08 \x03(\x0b\x32&.google.api.Billing.BillingDestination\x1a\x41\n\x12\x42illingDestination\x12\x1a\n\x12monitored_resource\x18\x01 \x01(\t\x12\x0f\n\x07metrics\x18\x02 \x03(\tBn\n\x0e\x63om.google.apiB\x0c\x42illingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
|
|
9
9
|
|
|
10
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
-
|
|
12
|
-
begin
|
|
13
|
-
pool.add_serialized_file(descriptor_data)
|
|
14
|
-
rescue TypeError
|
|
15
|
-
# Compatibility code: will be removed in the next major version.
|
|
16
|
-
require 'google/protobuf/descriptor_pb'
|
|
17
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
18
|
-
parsed.clear_dependency
|
|
19
|
-
serialized = parsed.class.encode(parsed)
|
|
20
|
-
file = pool.add_serialized_file(serialized)
|
|
21
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
22
|
-
imports = [
|
|
23
|
-
]
|
|
24
|
-
imports.each do |type_name, expected_filename|
|
|
25
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
26
|
-
if import_file.name != expected_filename
|
|
27
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
31
|
-
warn "This will become an error in the next major version."
|
|
32
|
-
end
|
|
10
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
11
|
+
pool.add_serialized_file(descriptor_data)
|
|
33
12
|
|
|
34
13
|
module Google
|
|
35
14
|
module Api
|
|
@@ -40,7 +19,7 @@ end
|
|
|
40
19
|
|
|
41
20
|
#### Source proto file: google/api/billing.proto ####
|
|
42
21
|
#
|
|
43
|
-
# // Copyright
|
|
22
|
+
# // Copyright 2026 Google LLC
|
|
44
23
|
# //
|
|
45
24
|
# // Licensed under the Apache License, Version 2.0 (the "License");
|
|
46
25
|
# // you may not use this file except in compliance with the License.
|
data/lib/google/api/client_pb.rb
CHANGED
|
@@ -9,32 +9,10 @@ require 'google/protobuf/descriptor_pb'
|
|
|
9
9
|
require 'google/protobuf/duration_pb'
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
descriptor_data = "\n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_stage.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\"\xbe\x01\n\x16\x43ommonLanguageSettings\x12\x1e\n\x12reference_docs_uri\x18\x01 \x01(\tB\x02\x18\x01\x12:\n\x0c\x64\x65stinations\x18\x02 \x03(\x0e\x32$.google.api.ClientLibraryDestination\x12H\n\x1aselective_gapic_generation\x18\x03 \x01(\x0b\x32$.google.api.SelectiveGapicGeneration\"\xfb\x03\n\x15\x43lientLibrarySettings\x12\x0f\n\x07version\x18\x01 \x01(\t\x12-\n\x0claunch_stage\x18\x02 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x1a\n\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\n\rjava_settings\x18\x15 \x01(\x0b\x32\x18.google.api.JavaSettings\x12-\n\x0c\x63pp_settings\x18\x16 \x01(\x0b\x32\x17.google.api.CppSettings\x12-\n\x0cphp_settings\x18\x17 \x01(\x0b\x32\x17.google.api.PhpSettings\x12\x33\n\x0fpython_settings\x18\x18 \x01(\x0b\x32\x1a.google.api.PythonSettings\x12/\n\rnode_settings\x18\x19 \x01(\x0b\x32\x18.google.api.NodeSettings\x12\x33\n\x0f\x64otnet_settings\x18\x1a \x01(\x0b\x32\x1a.google.api.DotnetSettings\x12/\n\rruby_settings\x18\x1b \x01(\x0b\x32\x18.google.api.RubySettings\x12+\n\x0bgo_settings\x18\x1c \x01(\x0b\x32\x16.google.api.GoSettings\"\xa8\x03\n\nPublishing\x12\x33\n\x0fmethod_settings\x18\x02 \x03(\x0b\x32\x1a.google.api.MethodSettings\x12\x15\n\rnew_issue_uri\x18\x65 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x66 \x01(\t\x12\x16\n\x0e\x61pi_short_name\x18g \x01(\t\x12\x14\n\x0cgithub_label\x18h \x01(\t\x12\x1e\n\x16\x63odeowner_github_teams\x18i \x03(\t\x12\x16\n\x0e\x64oc_tag_prefix\x18j \x01(\t\x12;\n\x0corganization\x18k \x01(\x0e\x32%.google.api.ClientLibraryOrganization\x12;\n\x10library_settings\x18m \x03(\x0b\x32!.google.api.ClientLibrarySettings\x12)\n!proto_reference_documentation_uri\x18n \x01(\t\x12(\n rest_reference_documentation_uri\x18o \x01(\t\"\xe3\x01\n\x0cJavaSettings\x12\x17\n\x0flibrary_package\x18\x01 \x01(\t\x12L\n\x13service_class_names\x18\x02 \x03(\x0b\x32/.google.api.JavaSettings.ServiceClassNamesEntry\x12\x32\n\x06\x63ommon\x18\x03 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x1a\x38\n\x16ServiceClassNamesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\x0b\x43ppSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"
|
|
12
|
+
descriptor_data = "\n\x17google/api/client.proto\x12\ngoogle.api\x1a\x1dgoogle/api/launch_stage.proto\x1a google/protobuf/descriptor.proto\x1a\x1egoogle/protobuf/duration.proto\"\xbe\x01\n\x16\x43ommonLanguageSettings\x12\x1e\n\x12reference_docs_uri\x18\x01 \x01(\tB\x02\x18\x01\x12:\n\x0c\x64\x65stinations\x18\x02 \x03(\x0e\x32$.google.api.ClientLibraryDestination\x12H\n\x1aselective_gapic_generation\x18\x03 \x01(\x0b\x32$.google.api.SelectiveGapicGeneration\"\xfb\x03\n\x15\x43lientLibrarySettings\x12\x0f\n\x07version\x18\x01 \x01(\t\x12-\n\x0claunch_stage\x18\x02 \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x1a\n\x12rest_numeric_enums\x18\x03 \x01(\x08\x12/\n\rjava_settings\x18\x15 \x01(\x0b\x32\x18.google.api.JavaSettings\x12-\n\x0c\x63pp_settings\x18\x16 \x01(\x0b\x32\x17.google.api.CppSettings\x12-\n\x0cphp_settings\x18\x17 \x01(\x0b\x32\x17.google.api.PhpSettings\x12\x33\n\x0fpython_settings\x18\x18 \x01(\x0b\x32\x1a.google.api.PythonSettings\x12/\n\rnode_settings\x18\x19 \x01(\x0b\x32\x18.google.api.NodeSettings\x12\x33\n\x0f\x64otnet_settings\x18\x1a \x01(\x0b\x32\x1a.google.api.DotnetSettings\x12/\n\rruby_settings\x18\x1b \x01(\x0b\x32\x18.google.api.RubySettings\x12+\n\x0bgo_settings\x18\x1c \x01(\x0b\x32\x16.google.api.GoSettings\"\xa8\x03\n\nPublishing\x12\x33\n\x0fmethod_settings\x18\x02 \x03(\x0b\x32\x1a.google.api.MethodSettings\x12\x15\n\rnew_issue_uri\x18\x65 \x01(\t\x12\x19\n\x11\x64ocumentation_uri\x18\x66 \x01(\t\x12\x16\n\x0e\x61pi_short_name\x18g \x01(\t\x12\x14\n\x0cgithub_label\x18h \x01(\t\x12\x1e\n\x16\x63odeowner_github_teams\x18i \x03(\t\x12\x16\n\x0e\x64oc_tag_prefix\x18j \x01(\t\x12;\n\x0corganization\x18k \x01(\x0e\x32%.google.api.ClientLibraryOrganization\x12;\n\x10library_settings\x18m \x03(\x0b\x32!.google.api.ClientLibrarySettings\x12)\n!proto_reference_documentation_uri\x18n \x01(\t\x12(\n rest_reference_documentation_uri\x18o \x01(\t\"\xe3\x01\n\x0cJavaSettings\x12\x17\n\x0flibrary_package\x18\x01 \x01(\t\x12L\n\x13service_class_names\x18\x02 \x03(\x0b\x32/.google.api.JavaSettings.ServiceClassNamesEntry\x12\x32\n\x06\x63ommon\x18\x03 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x1a\x38\n\x16ServiceClassNamesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"A\n\x0b\x43ppSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"Z\n\x0bPhpSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12\x17\n\x0flibrary_package\x18\x02 \x01(\t\"\x9b\x02\n\x0ePythonSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12N\n\x15\x65xperimental_features\x18\x02 \x01(\x0b\x32/.google.api.PythonSettings.ExperimentalFeatures\x1a\x84\x01\n\x14\x45xperimentalFeatures\x12\x1d\n\x15rest_async_io_enabled\x18\x01 \x01(\x08\x12\'\n\x1fprotobuf_pythonic_types_enabled\x18\x02 \x01(\x08\x12$\n\x1cunversioned_package_disabled\x18\x03 \x01(\x08\"B\n\x0cNodeSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"\xaa\x03\n\x0e\x44otnetSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12I\n\x10renamed_services\x18\x02 \x03(\x0b\x32/.google.api.DotnetSettings.RenamedServicesEntry\x12K\n\x11renamed_resources\x18\x03 \x03(\x0b\x32\x30.google.api.DotnetSettings.RenamedResourcesEntry\x12\x19\n\x11ignored_resources\x18\x04 \x03(\t\x12 \n\x18\x66orced_namespace_aliases\x18\x05 \x03(\t\x12\x1e\n\x16handwritten_signatures\x18\x06 \x03(\t\x1a\x36\n\x14RenamedServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x37\n\x15RenamedResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"B\n\x0cRubySettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\"\xbf\x01\n\nGoSettings\x12\x32\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\".google.api.CommonLanguageSettings\x12\x45\n\x10renamed_services\x18\x02 \x03(\x0b\x32+.google.api.GoSettings.RenamedServicesEntry\x1a\x36\n\x14RenamedServicesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x82\x03\n\x0eMethodSettings\x12\x10\n\x08selector\x18\x01 \x01(\t\x12<\n\x0clong_running\x18\x02 \x01(\x0b\x32&.google.api.MethodSettings.LongRunning\x12\x1d\n\x15\x61uto_populated_fields\x18\x03 \x03(\t\x12\x31\n\x08\x62\x61tching\x18\x04 \x01(\x0b\x32\x1f.google.api.BatchingConfigProto\x1a\xcd\x01\n\x0bLongRunning\x12\x35\n\x12initial_poll_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1d\n\x15poll_delay_multiplier\x18\x02 \x01(\x02\x12\x31\n\x0emax_poll_delay\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x35\n\x12total_poll_timeout\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\"Q\n\x18SelectiveGapicGeneration\x12\x0f\n\x07methods\x18\x01 \x03(\t\x12$\n\x1cgenerate_omitted_as_internal\x18\x02 \x01(\x08\"\x8b\x01\n\x13\x42\x61tchingConfigProto\x12\x35\n\nthresholds\x18\x01 \x01(\x0b\x32!.google.api.BatchingSettingsProto\x12=\n\x10\x62\x61tch_descriptor\x18\x02 \x01(\x0b\x32#.google.api.BatchingDescriptorProto\"\xeb\x02\n\x15\x42\x61tchingSettingsProto\x12\x1f\n\x17\x65lement_count_threshold\x18\x01 \x01(\x05\x12\x1e\n\x16request_byte_threshold\x18\x02 \x01(\x03\x12\x32\n\x0f\x64\x65lay_threshold\x18\x03 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1b\n\x13\x65lement_count_limit\x18\x04 \x01(\x05\x12\x1a\n\x12request_byte_limit\x18\x05 \x01(\x05\x12\"\n\x1a\x66low_control_element_limit\x18\x06 \x01(\x05\x12\x1f\n\x17\x66low_control_byte_limit\x18\x07 \x01(\x05\x12_\n$flow_control_limit_exceeded_behavior\x18\x08 \x01(\x0e\x32\x31.google.api.FlowControlLimitExceededBehaviorProto\"i\n\x17\x42\x61tchingDescriptorProto\x12\x15\n\rbatched_field\x18\x01 \x01(\t\x12\x1c\n\x14\x64iscriminator_fields\x18\x02 \x03(\t\x12\x19\n\x11subresponse_field\x18\x03 \x01(\t*\xa3\x01\n\x19\x43lientLibraryOrganization\x12+\n\'CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED\x10\x00\x12\t\n\x05\x43LOUD\x10\x01\x12\x07\n\x03\x41\x44S\x10\x02\x12\n\n\x06PHOTOS\x10\x03\x12\x0f\n\x0bSTREET_VIEW\x10\x04\x12\x0c\n\x08SHOPPING\x10\x05\x12\x07\n\x03GEO\x10\x06\x12\x11\n\rGENERATIVE_AI\x10\x07*g\n\x18\x43lientLibraryDestination\x12*\n&CLIENT_LIBRARY_DESTINATION_UNSPECIFIED\x10\x00\x12\n\n\x06GITHUB\x10\n\x12\x13\n\x0fPACKAGE_MANAGER\x10\x14*g\n%FlowControlLimitExceededBehaviorProto\x12\x12\n\x0eUNSET_BEHAVIOR\x10\x00\x12\x13\n\x0fTHROW_EXCEPTION\x10\x01\x12\t\n\x05\x42LOCK\x10\x02\x12\n\n\x06IGNORE\x10\x03:9\n\x10method_signature\x12\x1e.google.protobuf.MethodOptions\x18\x9b\x08 \x03(\t:6\n\x0c\x64\x65\x66\x61ult_host\x12\x1f.google.protobuf.ServiceOptions\x18\x99\x08 \x01(\t:6\n\x0coauth_scopes\x12\x1f.google.protobuf.ServiceOptions\x18\x9a\x08 \x01(\t:8\n\x0b\x61pi_version\x12\x1f.google.protobuf.ServiceOptions\x18\xc1\xba\xab\xfa\x01 \x01(\tBi\n\x0e\x63om.google.apiB\x0b\x43lientProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xa2\x02\x04GAPIb\x06proto3"
|
|
13
13
|
|
|
14
|
-
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
-
|
|
16
|
-
begin
|
|
17
|
-
pool.add_serialized_file(descriptor_data)
|
|
18
|
-
rescue TypeError
|
|
19
|
-
# Compatibility code: will be removed in the next major version.
|
|
20
|
-
require 'google/protobuf/descriptor_pb'
|
|
21
|
-
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
|
22
|
-
parsed.clear_dependency
|
|
23
|
-
serialized = parsed.class.encode(parsed)
|
|
24
|
-
file = pool.add_serialized_file(serialized)
|
|
25
|
-
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
|
26
|
-
imports = [
|
|
27
|
-
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
|
28
|
-
]
|
|
29
|
-
imports.each do |type_name, expected_filename|
|
|
30
|
-
import_file = pool.lookup(type_name).file_descriptor
|
|
31
|
-
if import_file.name != expected_filename
|
|
32
|
-
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
|
33
|
-
end
|
|
34
|
-
end
|
|
35
|
-
warn "Each proto file must use a consistent fully-qualified name."
|
|
36
|
-
warn "This will become an error in the next major version."
|
|
37
|
-
end
|
|
14
|
+
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
|
38
16
|
|
|
39
17
|
module Google
|
|
40
18
|
module Api
|
|
@@ -53,14 +31,18 @@ module Google
|
|
|
53
31
|
MethodSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MethodSettings").msgclass
|
|
54
32
|
MethodSettings::LongRunning = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.MethodSettings.LongRunning").msgclass
|
|
55
33
|
SelectiveGapicGeneration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SelectiveGapicGeneration").msgclass
|
|
34
|
+
BatchingConfigProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BatchingConfigProto").msgclass
|
|
35
|
+
BatchingSettingsProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BatchingSettingsProto").msgclass
|
|
36
|
+
BatchingDescriptorProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BatchingDescriptorProto").msgclass
|
|
56
37
|
ClientLibraryOrganization = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ClientLibraryOrganization").enummodule
|
|
57
38
|
ClientLibraryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ClientLibraryDestination").enummodule
|
|
39
|
+
FlowControlLimitExceededBehaviorProto = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.FlowControlLimitExceededBehaviorProto").enummodule
|
|
58
40
|
end
|
|
59
41
|
end
|
|
60
42
|
|
|
61
43
|
#### Source proto file: google/api/client.proto ####
|
|
62
44
|
#
|
|
63
|
-
# // Copyright
|
|
45
|
+
# // Copyright 2026 Google LLC
|
|
64
46
|
# //
|
|
65
47
|
# // Licensed under the Apache License, Version 2.0 (the "License");
|
|
66
48
|
# // you may not use this file except in compliance with the License.
|
|
@@ -103,15 +85,15 @@ end
|
|
|
103
85
|
# //
|
|
104
86
|
# // For example, the proto RPC and annotation:
|
|
105
87
|
# //
|
|
106
|
-
# //
|
|
107
|
-
# //
|
|
108
|
-
# //
|
|
109
|
-
# //
|
|
88
|
+
# // rpc CreateSubscription(CreateSubscriptionRequest)
|
|
89
|
+
# // returns (Subscription) {
|
|
90
|
+
# // option (google.api.method_signature) = "name,topic";
|
|
91
|
+
# // }
|
|
110
92
|
# //
|
|
111
93
|
# // Would add the following Java overload (in addition to the method accepting
|
|
112
94
|
# // the request object):
|
|
113
95
|
# //
|
|
114
|
-
# //
|
|
96
|
+
# // public final Subscription createSubscription(String name, String topic)
|
|
115
97
|
# //
|
|
116
98
|
# // The following backwards-compatibility guidelines apply:
|
|
117
99
|
# //
|
|
@@ -133,32 +115,32 @@ end
|
|
|
133
115
|
# //
|
|
134
116
|
# // Example:
|
|
135
117
|
# //
|
|
136
|
-
# //
|
|
137
|
-
# //
|
|
138
|
-
# //
|
|
139
|
-
# //
|
|
118
|
+
# // service Foo {
|
|
119
|
+
# // option (google.api.default_host) = "foo.googleapi.com";
|
|
120
|
+
# // ...
|
|
121
|
+
# // }
|
|
140
122
|
# string default_host = 1049;
|
|
141
123
|
#
|
|
142
124
|
# // OAuth scopes needed for the client.
|
|
143
125
|
# //
|
|
144
126
|
# // Example:
|
|
145
127
|
# //
|
|
146
|
-
# //
|
|
147
|
-
# //
|
|
148
|
-
# //
|
|
149
|
-
# //
|
|
150
|
-
# //
|
|
128
|
+
# // service Foo {
|
|
129
|
+
# // option (google.api.oauth_scopes) = \
|
|
130
|
+
# // "https://www.googleapis.com/auth/cloud-platform";
|
|
131
|
+
# // ...
|
|
132
|
+
# // }
|
|
151
133
|
# //
|
|
152
134
|
# // If there is more than one scope, use a comma-separated string:
|
|
153
135
|
# //
|
|
154
136
|
# // Example:
|
|
155
137
|
# //
|
|
156
|
-
# //
|
|
157
|
-
# //
|
|
158
|
-
# //
|
|
159
|
-
# //
|
|
160
|
-
# //
|
|
161
|
-
# //
|
|
138
|
+
# // service Foo {
|
|
139
|
+
# // option (google.api.oauth_scopes) = \
|
|
140
|
+
# // "https://www.googleapis.com/auth/cloud-platform,"
|
|
141
|
+
# // "https://www.googleapis.com/auth/monitoring";
|
|
142
|
+
# // ...
|
|
143
|
+
# // }
|
|
162
144
|
# string oauth_scopes = 1050;
|
|
163
145
|
#
|
|
164
146
|
# // The API version of this service, which should be sent by version-aware
|
|
@@ -172,9 +154,9 @@ end
|
|
|
172
154
|
# //
|
|
173
155
|
# // Example:
|
|
174
156
|
# //
|
|
175
|
-
# //
|
|
176
|
-
# //
|
|
177
|
-
# //
|
|
157
|
+
# // service Foo {
|
|
158
|
+
# // option (google.api.api_version) = "v1_20230821_preview";
|
|
159
|
+
# // }
|
|
178
160
|
# string api_version = 525000001;
|
|
179
161
|
# }
|
|
180
162
|
#
|
|
@@ -188,6 +170,8 @@ end
|
|
|
188
170
|
# repeated ClientLibraryDestination destinations = 2;
|
|
189
171
|
#
|
|
190
172
|
# // Configuration for which RPCs should be generated in the GAPIC client.
|
|
173
|
+
# //
|
|
174
|
+
# // Note: This field should not be used in most cases.
|
|
191
175
|
# SelectiveGapicGeneration selective_gapic_generation = 3;
|
|
192
176
|
# }
|
|
193
177
|
#
|
|
@@ -289,9 +273,10 @@ end
|
|
|
289
273
|
# //
|
|
290
274
|
# // Example of a YAML configuration::
|
|
291
275
|
# //
|
|
292
|
-
# //
|
|
293
|
-
# //
|
|
294
|
-
# //
|
|
276
|
+
# // publishing:
|
|
277
|
+
# // library_settings:
|
|
278
|
+
# // java_settings:
|
|
279
|
+
# // library_package: com.google.cloud.pubsub.v1
|
|
295
280
|
# string library_package = 1;
|
|
296
281
|
#
|
|
297
282
|
# // Configure the Java class name to use instead of the service's for its
|
|
@@ -303,11 +288,11 @@ end
|
|
|
303
288
|
# //
|
|
304
289
|
# // Example of a YAML configuration::
|
|
305
290
|
# //
|
|
306
|
-
# //
|
|
307
|
-
# //
|
|
308
|
-
# //
|
|
309
|
-
# //
|
|
310
|
-
# //
|
|
291
|
+
# // publishing:
|
|
292
|
+
# // java_settings:
|
|
293
|
+
# // service_class_names:
|
|
294
|
+
# // - google.pubsub.v1.Publisher: TopicAdmin
|
|
295
|
+
# // - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
311
296
|
# map<string, string> service_class_names = 2;
|
|
312
297
|
#
|
|
313
298
|
# // Some settings.
|
|
@@ -324,6 +309,20 @@ end
|
|
|
324
309
|
# message PhpSettings {
|
|
325
310
|
# // Some settings.
|
|
326
311
|
# CommonLanguageSettings common = 1;
|
|
312
|
+
#
|
|
313
|
+
# // The package name to use in Php. Clobbers the php_namespace option
|
|
314
|
+
# // set in the protobuf. This should be used **only** by APIs
|
|
315
|
+
# // who have already set the language_settings.php.package_name" field
|
|
316
|
+
# // in gapic.yaml. API teams should use the protobuf php_namespace option
|
|
317
|
+
# // where possible.
|
|
318
|
+
# //
|
|
319
|
+
# // Example of a YAML configuration::
|
|
320
|
+
# //
|
|
321
|
+
# // publishing:
|
|
322
|
+
# // library_settings:
|
|
323
|
+
# // php_settings:
|
|
324
|
+
# // library_package: Google\Cloud\PubSub\V1
|
|
325
|
+
# string library_package = 2;
|
|
327
326
|
# }
|
|
328
327
|
#
|
|
329
328
|
# // Settings for Python client libraries.
|
|
@@ -415,10 +414,12 @@ end
|
|
|
415
414
|
# // service names and values are the name to be used for the service client
|
|
416
415
|
# // and call options.
|
|
417
416
|
# //
|
|
418
|
-
# //
|
|
419
|
-
# //
|
|
420
|
-
# //
|
|
421
|
-
# //
|
|
417
|
+
# // Example:
|
|
418
|
+
# //
|
|
419
|
+
# // publishing:
|
|
420
|
+
# // go_settings:
|
|
421
|
+
# // renamed_services:
|
|
422
|
+
# // Publisher: TopicAdmin
|
|
422
423
|
# map<string, string> renamed_services = 2;
|
|
423
424
|
# }
|
|
424
425
|
#
|
|
@@ -453,10 +454,10 @@ end
|
|
|
453
454
|
# //
|
|
454
455
|
# // Example:
|
|
455
456
|
# //
|
|
456
|
-
# //
|
|
457
|
-
# //
|
|
458
|
-
# //
|
|
459
|
-
# //
|
|
457
|
+
# // publishing:
|
|
458
|
+
# // method_settings:
|
|
459
|
+
# // - selector: google.storage.control.v2.StorageControl.CreateFolder
|
|
460
|
+
# // # method settings for CreateFolder...
|
|
460
461
|
# string selector = 1;
|
|
461
462
|
#
|
|
462
463
|
# // Describes settings to use for long-running operations when generating
|
|
@@ -465,14 +466,14 @@ end
|
|
|
465
466
|
# //
|
|
466
467
|
# // Example of a YAML configuration::
|
|
467
468
|
# //
|
|
468
|
-
# //
|
|
469
|
-
# //
|
|
470
|
-
# //
|
|
471
|
-
# //
|
|
472
|
-
# //
|
|
473
|
-
# //
|
|
474
|
-
# //
|
|
475
|
-
# //
|
|
469
|
+
# // publishing:
|
|
470
|
+
# // method_settings:
|
|
471
|
+
# // - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
|
472
|
+
# // long_running:
|
|
473
|
+
# // initial_poll_delay: 60s # 1 minute
|
|
474
|
+
# // poll_delay_multiplier: 1.5
|
|
475
|
+
# // max_poll_delay: 360s # 6 minutes
|
|
476
|
+
# // total_poll_timeout: 54000s # 90 minutes
|
|
476
477
|
# LongRunning long_running = 2;
|
|
477
478
|
#
|
|
478
479
|
# // List of top-level fields of the request message, that should be
|
|
@@ -481,12 +482,25 @@ end
|
|
|
481
482
|
# //
|
|
482
483
|
# // Example of a YAML configuration:
|
|
483
484
|
# //
|
|
484
|
-
# //
|
|
485
|
-
# //
|
|
486
|
-
# //
|
|
487
|
-
# //
|
|
488
|
-
# //
|
|
485
|
+
# // publishing:
|
|
486
|
+
# // method_settings:
|
|
487
|
+
# // - selector: google.example.v1.ExampleService.CreateExample
|
|
488
|
+
# // auto_populated_fields:
|
|
489
|
+
# // - request_id
|
|
489
490
|
# repeated string auto_populated_fields = 3;
|
|
491
|
+
#
|
|
492
|
+
# // Batching configuration for an API method in client libraries.
|
|
493
|
+
# //
|
|
494
|
+
# // Example of a YAML configuration:
|
|
495
|
+
# //
|
|
496
|
+
# // publishing:
|
|
497
|
+
# // method_settings:
|
|
498
|
+
# // - selector: google.example.v1.ExampleService.BatchCreateExample
|
|
499
|
+
# // batching:
|
|
500
|
+
# // element_count_threshold: 1000
|
|
501
|
+
# // request_byte_threshold: 100000000
|
|
502
|
+
# // delay_threshold_millis: 10
|
|
503
|
+
# BatchingConfigProto batching = 4;
|
|
490
504
|
# }
|
|
491
505
|
#
|
|
492
506
|
# // The organization for which the client libraries are being published.
|
|
@@ -533,6 +547,8 @@ end
|
|
|
533
547
|
#
|
|
534
548
|
# // This message is used to configure the generation of a subset of the RPCs in
|
|
535
549
|
# // a service for client libraries.
|
|
550
|
+
# //
|
|
551
|
+
# // Note: This feature should not be used in most cases.
|
|
536
552
|
# message SelectiveGapicGeneration {
|
|
537
553
|
# // An allowlist of the fully qualified names of RPCs that should be included
|
|
538
554
|
# // on public client surfaces.
|
|
@@ -546,3 +562,81 @@ end
|
|
|
546
562
|
# // obfuscated identifiers, or other language idiomatic patterns.
|
|
547
563
|
# bool generate_omitted_as_internal = 2;
|
|
548
564
|
# }
|
|
565
|
+
#
|
|
566
|
+
# // `BatchingConfigProto` defines the batching configuration for an API method.
|
|
567
|
+
# message BatchingConfigProto {
|
|
568
|
+
# // The thresholds which trigger a batched request to be sent.
|
|
569
|
+
# BatchingSettingsProto thresholds = 1;
|
|
570
|
+
#
|
|
571
|
+
# // The request and response fields used in batching.
|
|
572
|
+
# BatchingDescriptorProto batch_descriptor = 2;
|
|
573
|
+
# }
|
|
574
|
+
#
|
|
575
|
+
# // `BatchingSettingsProto` specifies a set of batching thresholds, each of
|
|
576
|
+
# // which acts as a trigger to send a batch of messages as a request. At least
|
|
577
|
+
# // one threshold must be positive nonzero.
|
|
578
|
+
# message BatchingSettingsProto {
|
|
579
|
+
# // The number of elements of a field collected into a batch which, if
|
|
580
|
+
# // exceeded, causes the batch to be sent.
|
|
581
|
+
# int32 element_count_threshold = 1;
|
|
582
|
+
#
|
|
583
|
+
# // The aggregated size of the batched field which, if exceeded, causes the
|
|
584
|
+
# // batch to be sent. This size is computed by aggregating the sizes of the
|
|
585
|
+
# // request field to be batched, not of the entire request message.
|
|
586
|
+
# int64 request_byte_threshold = 2;
|
|
587
|
+
#
|
|
588
|
+
# // The duration after which a batch should be sent, starting from the addition
|
|
589
|
+
# // of the first message to that batch.
|
|
590
|
+
# google.protobuf.Duration delay_threshold = 3;
|
|
591
|
+
#
|
|
592
|
+
# // The maximum number of elements collected in a batch that could be accepted
|
|
593
|
+
# // by server.
|
|
594
|
+
# int32 element_count_limit = 4;
|
|
595
|
+
#
|
|
596
|
+
# // The maximum size of the request that could be accepted by server.
|
|
597
|
+
# int32 request_byte_limit = 5;
|
|
598
|
+
#
|
|
599
|
+
# // The maximum number of elements allowed by flow control.
|
|
600
|
+
# int32 flow_control_element_limit = 6;
|
|
601
|
+
#
|
|
602
|
+
# // The maximum size of data allowed by flow control.
|
|
603
|
+
# int32 flow_control_byte_limit = 7;
|
|
604
|
+
#
|
|
605
|
+
# // The behavior to take when the flow control limit is exceeded.
|
|
606
|
+
# FlowControlLimitExceededBehaviorProto flow_control_limit_exceeded_behavior =
|
|
607
|
+
# 8;
|
|
608
|
+
# }
|
|
609
|
+
#
|
|
610
|
+
# // The behavior to take when the flow control limit is exceeded.
|
|
611
|
+
# enum FlowControlLimitExceededBehaviorProto {
|
|
612
|
+
# // Default behavior, system-defined.
|
|
613
|
+
# UNSET_BEHAVIOR = 0;
|
|
614
|
+
#
|
|
615
|
+
# // Stop operation, raise error.
|
|
616
|
+
# THROW_EXCEPTION = 1;
|
|
617
|
+
#
|
|
618
|
+
# // Pause operation until limit clears.
|
|
619
|
+
# BLOCK = 2;
|
|
620
|
+
#
|
|
621
|
+
# // Continue operation, disregard limit.
|
|
622
|
+
# IGNORE = 3;
|
|
623
|
+
# }
|
|
624
|
+
#
|
|
625
|
+
# // `BatchingDescriptorProto` specifies the fields of the request message to be
|
|
626
|
+
# // used for batching, and, optionally, the fields of the response message to be
|
|
627
|
+
# // used for demultiplexing.
|
|
628
|
+
# message BatchingDescriptorProto {
|
|
629
|
+
# // The repeated field in the request message to be aggregated by batching.
|
|
630
|
+
# string batched_field = 1;
|
|
631
|
+
#
|
|
632
|
+
# // A list of the fields in the request message. Two requests will be batched
|
|
633
|
+
# // together only if the values of every field specified in
|
|
634
|
+
# // `request_discriminator_fields` is equal between the two requests.
|
|
635
|
+
# repeated string discriminator_fields = 2;
|
|
636
|
+
#
|
|
637
|
+
# // Optional. When present, indicates the field in the response message to be
|
|
638
|
+
# // used to demultiplex the response into multiple response messages, in
|
|
639
|
+
# // correspondence with the multiple request messages originally batched
|
|
640
|
+
# // together.
|
|
641
|
+
# string subresponse_field = 3;
|
|
642
|
+
# }
|