googleapis-common-protos-types 1.3.0 → 1.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +79 -6
  3. data/lib/google/api/annotations_pb.rb +62 -2
  4. data/lib/google/api/auth_pb.rb +264 -33
  5. data/lib/google/api/backend_pb.rb +212 -22
  6. data/lib/google/api/billing_pb.rb +104 -9
  7. data/lib/google/api/client_pb.rb +455 -2
  8. data/lib/google/api/config_change_pb.rb +111 -17
  9. data/lib/google/api/consumer_pb.rb +109 -16
  10. data/lib/google/api/context_pb.rb +117 -11
  11. data/lib/google/api/control_pb.rb +71 -4
  12. data/lib/google/api/distribution_pb.rb +243 -39
  13. data/lib/google/api/documentation_pb.rb +195 -19
  14. data/lib/google/api/endpoint_pb.rb +100 -7
  15. data/lib/google/api/error_reason_pb.rb +597 -23
  16. data/lib/google/api/field_behavior_pb.rb +133 -11
  17. data/lib/google/api/field_info_pb.rb +123 -0
  18. data/lib/google/api/http_pb.rb +406 -23
  19. data/lib/google/api/httpbody_pb.rb +110 -6
  20. data/lib/google/api/label_pb.rb +75 -11
  21. data/lib/google/api/launch_stage_pb.rb +99 -11
  22. data/lib/google/api/log_pb.rb +83 -7
  23. data/lib/google/api/logging_pb.rb +108 -9
  24. data/lib/google/api/metric_pb.rb +298 -38
  25. data/lib/google/api/monitored_resource_pb.rb +160 -17
  26. data/lib/google/api/monitoring_pb.rb +134 -9
  27. data/lib/google/api/policy_pb.rb +129 -0
  28. data/lib/google/api/quota_pb.rb +211 -21
  29. data/lib/google/api/resource_pb.rb +267 -23
  30. data/lib/google/api/routing_pb.rb +490 -8
  31. data/lib/google/api/service_pb.rb +241 -31
  32. data/lib/google/api/source_info_pb.rb +60 -4
  33. data/lib/google/api/system_parameter_pb.rb +123 -13
  34. data/lib/google/api/usage_pb.rb +123 -11
  35. data/lib/google/api/visibility_pb.rb +142 -8
  36. data/lib/google/logging/type/http_request_pb.rb +124 -19
  37. data/lib/google/logging/type/log_severity_pb.rb +98 -13
  38. data/lib/google/longrunning/operations_pb.rb +279 -37
  39. data/lib/google/rpc/code_pb.rb +213 -20
  40. data/lib/google/rpc/context/attribute_context_pb.rb +402 -0
  41. data/lib/google/rpc/context/audit_context_pb.rb +95 -0
  42. data/lib/google/rpc/error_details_pb.rb +315 -57
  43. data/lib/google/rpc/http_pb.rb +107 -0
  44. data/lib/google/rpc/status_pb.rb +78 -6
  45. data/lib/google/type/calendar_period_pb.rb +83 -11
  46. data/lib/google/type/color_pb.rb +203 -7
  47. data/lib/google/type/date_pb.rb +79 -6
  48. data/lib/google/type/datetime_pb.rb +133 -18
  49. data/lib/google/type/dayofweek_pb.rb +77 -11
  50. data/lib/google/type/decimal_pb.rb +122 -4
  51. data/lib/google/type/expr_pb.rb +100 -7
  52. data/lib/google/type/fraction_pb.rb +60 -5
  53. data/lib/google/type/interval_pb.rb +75 -5
  54. data/lib/google/type/latlng_pb.rb +64 -5
  55. data/lib/google/type/localized_text_pb.rb +63 -5
  56. data/lib/google/type/money_pb.rb +69 -6
  57. data/lib/google/type/month_pb.rb +92 -16
  58. data/lib/google/type/phone_number_pb.rb +140 -12
  59. data/lib/google/type/postal_address_pb.rb +161 -14
  60. data/lib/google/type/quaternion_pb.rb +121 -7
  61. data/lib/google/type/timeofday_pb.rb +71 -7
  62. data/lib/googleapis/common/protos/types/version.rb +1 -1
  63. metadata +11 -6
@@ -1,33 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/error_reason.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/error_reason.proto", :syntax => :proto3) do
8
- add_enum "google.api.ErrorReason" do
9
- value :ERROR_REASON_UNSPECIFIED, 0
10
- value :SERVICE_DISABLED, 1
11
- value :BILLING_DISABLED, 2
12
- value :API_KEY_INVALID, 3
13
- value :API_KEY_SERVICE_BLOCKED, 4
14
- value :API_KEY_HTTP_REFERRER_BLOCKED, 7
15
- value :API_KEY_IP_ADDRESS_BLOCKED, 8
16
- value :API_KEY_ANDROID_APP_BLOCKED, 9
17
- value :API_KEY_IOS_APP_BLOCKED, 13
18
- value :RATE_LIMIT_EXCEEDED, 5
19
- value :RESOURCE_QUOTA_EXCEEDED, 6
20
- value :LOCATION_TAX_POLICY_VIOLATED, 10
21
- value :USER_PROJECT_DENIED, 11
22
- value :CONSUMER_SUSPENDED, 12
23
- value :CONSUMER_INVALID, 14
24
- value :SECURITY_POLICY_VIOLATED, 15
25
- value :ACCESS_TOKEN_EXPIRED, 16
26
- value :ACCESS_TOKEN_SCOPE_INSUFFICIENT, 17
27
- value :ACCOUNT_STATE_INVALID, 18
28
- value :ACCESS_TOKEN_TYPE_UNSUPPORTED, 19
7
+
8
+ descriptor_data = "\n\x1dgoogle/api/error_reason.proto\x12\ngoogle.api*\xec\x06\n\x0b\x45rrorReason\x12\x1c\n\x18\x45RROR_REASON_UNSPECIFIED\x10\x00\x12\x14\n\x10SERVICE_DISABLED\x10\x01\x12\x14\n\x10\x42ILLING_DISABLED\x10\x02\x12\x13\n\x0f\x41PI_KEY_INVALID\x10\x03\x12\x1b\n\x17\x41PI_KEY_SERVICE_BLOCKED\x10\x04\x12!\n\x1d\x41PI_KEY_HTTP_REFERRER_BLOCKED\x10\x07\x12\x1e\n\x1a\x41PI_KEY_IP_ADDRESS_BLOCKED\x10\x08\x12\x1f\n\x1b\x41PI_KEY_ANDROID_APP_BLOCKED\x10\t\x12\x1b\n\x17\x41PI_KEY_IOS_APP_BLOCKED\x10\r\x12\x17\n\x13RATE_LIMIT_EXCEEDED\x10\x05\x12\x1b\n\x17RESOURCE_QUOTA_EXCEEDED\x10\x06\x12 \n\x1cLOCATION_TAX_POLICY_VIOLATED\x10\n\x12\x17\n\x13USER_PROJECT_DENIED\x10\x0b\x12\x16\n\x12\x43ONSUMER_SUSPENDED\x10\x0c\x12\x14\n\x10\x43ONSUMER_INVALID\x10\x0e\x12\x1c\n\x18SECURITY_POLICY_VIOLATED\x10\x0f\x12\x18\n\x14\x41\x43\x43\x45SS_TOKEN_EXPIRED\x10\x10\x12#\n\x1f\x41\x43\x43\x45SS_TOKEN_SCOPE_INSUFFICIENT\x10\x11\x12\x19\n\x15\x41\x43\x43OUNT_STATE_INVALID\x10\x12\x12!\n\x1d\x41\x43\x43\x45SS_TOKEN_TYPE_UNSUPPORTED\x10\x13\x12\x17\n\x13\x43REDENTIALS_MISSING\x10\x14\x12\x1c\n\x18RESOURCE_PROJECT_INVALID\x10\x15\x12\x1a\n\x16SESSION_COOKIE_INVALID\x10\x17\x12\x19\n\x15USER_BLOCKED_BY_ADMIN\x10\x18\x12\'\n#RESOURCE_USAGE_RESTRICTION_VIOLATED\x10\x19\x12 \n\x1cSYSTEM_PARAMETER_UNSUPPORTED\x10\x1a\x12\x1d\n\x19ORG_RESTRICTION_VIOLATION\x10\x1b\x12\"\n\x1eORG_RESTRICTION_HEADER_INVALID\x10\x1c\x12\x17\n\x13SERVICE_NOT_VISIBLE\x10\x1d\x12\x11\n\rGCP_SUSPENDED\x10\x1e\x42p\n\x0e\x63om.google.apiB\x10\x45rrorReasonProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/error_reason;error_reason\xa2\x02\x04GAPIb\x06proto3"
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}"
29
28
  end
30
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."
31
32
  end
32
33
 
33
34
  module Google
@@ -35,3 +36,576 @@ module Google
35
36
  ErrorReason = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ErrorReason").enummodule
36
37
  end
37
38
  end
39
+
40
+ #### Source proto file: google/api/error_reason.proto ####
41
+ #
42
+ # // Copyright 2023 Google LLC
43
+ # //
44
+ # // Licensed under the Apache License, Version 2.0 (the "License");
45
+ # // you may not use this file except in compliance with the License.
46
+ # // You may obtain a copy of the License at
47
+ # //
48
+ # // http://www.apache.org/licenses/LICENSE-2.0
49
+ # //
50
+ # // Unless required by applicable law or agreed to in writing, software
51
+ # // distributed under the License is distributed on an "AS IS" BASIS,
52
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ # // See the License for the specific language governing permissions and
54
+ # // limitations under the License.
55
+ #
56
+ # syntax = "proto3";
57
+ #
58
+ # package google.api;
59
+ #
60
+ # option go_package = "google.golang.org/genproto/googleapis/api/error_reason;error_reason";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "ErrorReasonProto";
63
+ # option java_package = "com.google.api";
64
+ # option objc_class_prefix = "GAPI";
65
+ #
66
+ # // Defines the supported values for `google.rpc.ErrorInfo.reason` for the
67
+ # // `googleapis.com` error domain. This error domain is reserved for [Service
68
+ # // Infrastructure](https://cloud.google.com/service-infrastructure/docs/overview).
69
+ # // For each error info of this domain, the metadata key "service" refers to the
70
+ # // logical identifier of an API service, such as "pubsub.googleapis.com". The
71
+ # // "consumer" refers to the entity that consumes an API Service. It typically is
72
+ # // a Google project that owns the client application or the server resource,
73
+ # // such as "projects/123". Other metadata keys are specific to each error
74
+ # // reason. For more information, see the definition of the specific error
75
+ # // reason.
76
+ # enum ErrorReason {
77
+ # // Do not use this default value.
78
+ # ERROR_REASON_UNSPECIFIED = 0;
79
+ #
80
+ # // The request is calling a disabled service for a consumer.
81
+ # //
82
+ # // Example of an ErrorInfo when the consumer "projects/123" contacting
83
+ # // "pubsub.googleapis.com" service which is disabled:
84
+ # //
85
+ # // { "reason": "SERVICE_DISABLED",
86
+ # // "domain": "googleapis.com",
87
+ # // "metadata": {
88
+ # // "consumer": "projects/123",
89
+ # // "service": "pubsub.googleapis.com"
90
+ # // }
91
+ # // }
92
+ # //
93
+ # // This response indicates the "pubsub.googleapis.com" has been disabled in
94
+ # // "projects/123".
95
+ # SERVICE_DISABLED = 1;
96
+ #
97
+ # // The request whose associated billing account is disabled.
98
+ # //
99
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to contact
100
+ # // "pubsub.googleapis.com" service because the associated billing account is
101
+ # // disabled:
102
+ # //
103
+ # // { "reason": "BILLING_DISABLED",
104
+ # // "domain": "googleapis.com",
105
+ # // "metadata": {
106
+ # // "consumer": "projects/123",
107
+ # // "service": "pubsub.googleapis.com"
108
+ # // }
109
+ # // }
110
+ # //
111
+ # // This response indicates the billing account associated has been disabled.
112
+ # BILLING_DISABLED = 2;
113
+ #
114
+ # // The request is denied because the provided [API
115
+ # // key](https://cloud.google.com/docs/authentication/api-keys) is invalid. It
116
+ # // may be in a bad format, cannot be found, or has been expired).
117
+ # //
118
+ # // Example of an ErrorInfo when the request is contacting
119
+ # // "storage.googleapis.com" service with an invalid API key:
120
+ # //
121
+ # // { "reason": "API_KEY_INVALID",
122
+ # // "domain": "googleapis.com",
123
+ # // "metadata": {
124
+ # // "service": "storage.googleapis.com",
125
+ # // }
126
+ # // }
127
+ # API_KEY_INVALID = 3;
128
+ #
129
+ # // The request is denied because it violates [API key API
130
+ # // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_api_restrictions).
131
+ # //
132
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to call the
133
+ # // "storage.googleapis.com" service because this service is restricted in the
134
+ # // API key:
135
+ # //
136
+ # // { "reason": "API_KEY_SERVICE_BLOCKED",
137
+ # // "domain": "googleapis.com",
138
+ # // "metadata": {
139
+ # // "consumer": "projects/123",
140
+ # // "service": "storage.googleapis.com"
141
+ # // }
142
+ # // }
143
+ # API_KEY_SERVICE_BLOCKED = 4;
144
+ #
145
+ # // The request is denied because it violates [API key HTTP
146
+ # // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_http_restrictions).
147
+ # //
148
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to call
149
+ # // "storage.googleapis.com" service because the http referrer of the request
150
+ # // violates API key HTTP restrictions:
151
+ # //
152
+ # // { "reason": "API_KEY_HTTP_REFERRER_BLOCKED",
153
+ # // "domain": "googleapis.com",
154
+ # // "metadata": {
155
+ # // "consumer": "projects/123",
156
+ # // "service": "storage.googleapis.com",
157
+ # // }
158
+ # // }
159
+ # API_KEY_HTTP_REFERRER_BLOCKED = 7;
160
+ #
161
+ # // The request is denied because it violates [API key IP address
162
+ # // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
163
+ # //
164
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to call
165
+ # // "storage.googleapis.com" service because the caller IP of the request
166
+ # // violates API key IP address restrictions:
167
+ # //
168
+ # // { "reason": "API_KEY_IP_ADDRESS_BLOCKED",
169
+ # // "domain": "googleapis.com",
170
+ # // "metadata": {
171
+ # // "consumer": "projects/123",
172
+ # // "service": "storage.googleapis.com",
173
+ # // }
174
+ # // }
175
+ # API_KEY_IP_ADDRESS_BLOCKED = 8;
176
+ #
177
+ # // The request is denied because it violates [API key Android application
178
+ # // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
179
+ # //
180
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to call
181
+ # // "storage.googleapis.com" service because the request from the Android apps
182
+ # // violates the API key Android application restrictions:
183
+ # //
184
+ # // { "reason": "API_KEY_ANDROID_APP_BLOCKED",
185
+ # // "domain": "googleapis.com",
186
+ # // "metadata": {
187
+ # // "consumer": "projects/123",
188
+ # // "service": "storage.googleapis.com"
189
+ # // }
190
+ # // }
191
+ # API_KEY_ANDROID_APP_BLOCKED = 9;
192
+ #
193
+ # // The request is denied because it violates [API key iOS application
194
+ # // restrictions](https://cloud.google.com/docs/authentication/api-keys#adding_application_restrictions).
195
+ # //
196
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to call
197
+ # // "storage.googleapis.com" service because the request from the iOS apps
198
+ # // violates the API key iOS application restrictions:
199
+ # //
200
+ # // { "reason": "API_KEY_IOS_APP_BLOCKED",
201
+ # // "domain": "googleapis.com",
202
+ # // "metadata": {
203
+ # // "consumer": "projects/123",
204
+ # // "service": "storage.googleapis.com"
205
+ # // }
206
+ # // }
207
+ # API_KEY_IOS_APP_BLOCKED = 13;
208
+ #
209
+ # // The request is denied because there is not enough rate quota for the
210
+ # // consumer.
211
+ # //
212
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to contact
213
+ # // "pubsub.googleapis.com" service because consumer's rate quota usage has
214
+ # // reached the maximum value set for the quota limit
215
+ # // "ReadsPerMinutePerProject" on the quota metric
216
+ # // "pubsub.googleapis.com/read_requests":
217
+ # //
218
+ # // { "reason": "RATE_LIMIT_EXCEEDED",
219
+ # // "domain": "googleapis.com",
220
+ # // "metadata": {
221
+ # // "consumer": "projects/123",
222
+ # // "service": "pubsub.googleapis.com",
223
+ # // "quota_metric": "pubsub.googleapis.com/read_requests",
224
+ # // "quota_limit": "ReadsPerMinutePerProject"
225
+ # // }
226
+ # // }
227
+ # //
228
+ # // Example of an ErrorInfo when the consumer "projects/123" checks quota on
229
+ # // the service "dataflow.googleapis.com" and hits the organization quota
230
+ # // limit "DefaultRequestsPerMinutePerOrganization" on the metric
231
+ # // "dataflow.googleapis.com/default_requests".
232
+ # //
233
+ # // { "reason": "RATE_LIMIT_EXCEEDED",
234
+ # // "domain": "googleapis.com",
235
+ # // "metadata": {
236
+ # // "consumer": "projects/123",
237
+ # // "service": "dataflow.googleapis.com",
238
+ # // "quota_metric": "dataflow.googleapis.com/default_requests",
239
+ # // "quota_limit": "DefaultRequestsPerMinutePerOrganization"
240
+ # // }
241
+ # // }
242
+ # RATE_LIMIT_EXCEEDED = 5;
243
+ #
244
+ # // The request is denied because there is not enough resource quota for the
245
+ # // consumer.
246
+ # //
247
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to contact
248
+ # // "compute.googleapis.com" service because consumer's resource quota usage
249
+ # // has reached the maximum value set for the quota limit "VMsPerProject"
250
+ # // on the quota metric "compute.googleapis.com/vms":
251
+ # //
252
+ # // { "reason": "RESOURCE_QUOTA_EXCEEDED",
253
+ # // "domain": "googleapis.com",
254
+ # // "metadata": {
255
+ # // "consumer": "projects/123",
256
+ # // "service": "compute.googleapis.com",
257
+ # // "quota_metric": "compute.googleapis.com/vms",
258
+ # // "quota_limit": "VMsPerProject"
259
+ # // }
260
+ # // }
261
+ # //
262
+ # // Example of an ErrorInfo when the consumer "projects/123" checks resource
263
+ # // quota on the service "dataflow.googleapis.com" and hits the organization
264
+ # // quota limit "jobs-per-organization" on the metric
265
+ # // "dataflow.googleapis.com/job_count".
266
+ # //
267
+ # // { "reason": "RESOURCE_QUOTA_EXCEEDED",
268
+ # // "domain": "googleapis.com",
269
+ # // "metadata": {
270
+ # // "consumer": "projects/123",
271
+ # // "service": "dataflow.googleapis.com",
272
+ # // "quota_metric": "dataflow.googleapis.com/job_count",
273
+ # // "quota_limit": "jobs-per-organization"
274
+ # // }
275
+ # // }
276
+ # RESOURCE_QUOTA_EXCEEDED = 6;
277
+ #
278
+ # // The request whose associated billing account address is in a tax restricted
279
+ # // location, violates the local tax restrictions when creating resources in
280
+ # // the restricted region.
281
+ # //
282
+ # // Example of an ErrorInfo when creating the Cloud Storage Bucket in the
283
+ # // container "projects/123" under a tax restricted region
284
+ # // "locations/asia-northeast3":
285
+ # //
286
+ # // { "reason": "LOCATION_TAX_POLICY_VIOLATED",
287
+ # // "domain": "googleapis.com",
288
+ # // "metadata": {
289
+ # // "consumer": "projects/123",
290
+ # // "service": "storage.googleapis.com",
291
+ # // "location": "locations/asia-northeast3"
292
+ # // }
293
+ # // }
294
+ # //
295
+ # // This response indicates creating the Cloud Storage Bucket in
296
+ # // "locations/asia-northeast3" violates the location tax restriction.
297
+ # LOCATION_TAX_POLICY_VIOLATED = 10;
298
+ #
299
+ # // The request is denied because the caller does not have required permission
300
+ # // on the user project "projects/123" or the user project is invalid. For more
301
+ # // information, check the [userProject System
302
+ # // Parameters](https://cloud.google.com/apis/docs/system-parameters).
303
+ # //
304
+ # // Example of an ErrorInfo when the caller is calling Cloud Storage service
305
+ # // with insufficient permissions on the user project:
306
+ # //
307
+ # // { "reason": "USER_PROJECT_DENIED",
308
+ # // "domain": "googleapis.com",
309
+ # // "metadata": {
310
+ # // "consumer": "projects/123",
311
+ # // "service": "storage.googleapis.com"
312
+ # // }
313
+ # // }
314
+ # USER_PROJECT_DENIED = 11;
315
+ #
316
+ # // The request is denied because the consumer "projects/123" is suspended due
317
+ # // to Terms of Service(Tos) violations. Check [Project suspension
318
+ # // guidelines](https://cloud.google.com/resource-manager/docs/project-suspension-guidelines)
319
+ # // for more information.
320
+ # //
321
+ # // Example of an ErrorInfo when calling Cloud Storage service with the
322
+ # // suspended consumer "projects/123":
323
+ # //
324
+ # // { "reason": "CONSUMER_SUSPENDED",
325
+ # // "domain": "googleapis.com",
326
+ # // "metadata": {
327
+ # // "consumer": "projects/123",
328
+ # // "service": "storage.googleapis.com"
329
+ # // }
330
+ # // }
331
+ # CONSUMER_SUSPENDED = 12;
332
+ #
333
+ # // The request is denied because the associated consumer is invalid. It may be
334
+ # // in a bad format, cannot be found, or have been deleted.
335
+ # //
336
+ # // Example of an ErrorInfo when calling Cloud Storage service with the
337
+ # // invalid consumer "projects/123":
338
+ # //
339
+ # // { "reason": "CONSUMER_INVALID",
340
+ # // "domain": "googleapis.com",
341
+ # // "metadata": {
342
+ # // "consumer": "projects/123",
343
+ # // "service": "storage.googleapis.com"
344
+ # // }
345
+ # // }
346
+ # CONSUMER_INVALID = 14;
347
+ #
348
+ # // The request is denied because it violates [VPC Service
349
+ # // Controls](https://cloud.google.com/vpc-service-controls/docs/overview).
350
+ # // The 'uid' field is a random generated identifier that customer can use it
351
+ # // to search the audit log for a request rejected by VPC Service Controls. For
352
+ # // more information, please refer [VPC Service Controls
353
+ # // Troubleshooting](https://cloud.google.com/vpc-service-controls/docs/troubleshooting#unique-id)
354
+ # //
355
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to call
356
+ # // Cloud Storage service because the request is prohibited by the VPC Service
357
+ # // Controls.
358
+ # //
359
+ # // { "reason": "SECURITY_POLICY_VIOLATED",
360
+ # // "domain": "googleapis.com",
361
+ # // "metadata": {
362
+ # // "uid": "123456789abcde",
363
+ # // "consumer": "projects/123",
364
+ # // "service": "storage.googleapis.com"
365
+ # // }
366
+ # // }
367
+ # SECURITY_POLICY_VIOLATED = 15;
368
+ #
369
+ # // The request is denied because the provided access token has expired.
370
+ # //
371
+ # // Example of an ErrorInfo when the request is calling Cloud Storage service
372
+ # // with an expired access token:
373
+ # //
374
+ # // { "reason": "ACCESS_TOKEN_EXPIRED",
375
+ # // "domain": "googleapis.com",
376
+ # // "metadata": {
377
+ # // "service": "storage.googleapis.com",
378
+ # // "method": "google.storage.v1.Storage.GetObject"
379
+ # // }
380
+ # // }
381
+ # ACCESS_TOKEN_EXPIRED = 16;
382
+ #
383
+ # // The request is denied because the provided access token doesn't have at
384
+ # // least one of the acceptable scopes required for the API. Please check
385
+ # // [OAuth 2.0 Scopes for Google
386
+ # // APIs](https://developers.google.com/identity/protocols/oauth2/scopes) for
387
+ # // the list of the OAuth 2.0 scopes that you might need to request to access
388
+ # // the API.
389
+ # //
390
+ # // Example of an ErrorInfo when the request is calling Cloud Storage service
391
+ # // with an access token that is missing required scopes:
392
+ # //
393
+ # // { "reason": "ACCESS_TOKEN_SCOPE_INSUFFICIENT",
394
+ # // "domain": "googleapis.com",
395
+ # // "metadata": {
396
+ # // "service": "storage.googleapis.com",
397
+ # // "method": "google.storage.v1.Storage.GetObject"
398
+ # // }
399
+ # // }
400
+ # ACCESS_TOKEN_SCOPE_INSUFFICIENT = 17;
401
+ #
402
+ # // The request is denied because the account associated with the provided
403
+ # // access token is in an invalid state, such as disabled or deleted.
404
+ # // For more information, see https://cloud.google.com/docs/authentication.
405
+ # //
406
+ # // Warning: For privacy reasons, the server may not be able to disclose the
407
+ # // email address for some accounts. The client MUST NOT depend on the
408
+ # // availability of the `email` attribute.
409
+ # //
410
+ # // Example of an ErrorInfo when the request is to the Cloud Storage API with
411
+ # // an access token that is associated with a disabled or deleted [service
412
+ # // account](http://cloud/iam/docs/service-accounts):
413
+ # //
414
+ # // { "reason": "ACCOUNT_STATE_INVALID",
415
+ # // "domain": "googleapis.com",
416
+ # // "metadata": {
417
+ # // "service": "storage.googleapis.com",
418
+ # // "method": "google.storage.v1.Storage.GetObject",
419
+ # // "email": "user@123.iam.gserviceaccount.com"
420
+ # // }
421
+ # // }
422
+ # ACCOUNT_STATE_INVALID = 18;
423
+ #
424
+ # // The request is denied because the type of the provided access token is not
425
+ # // supported by the API being called.
426
+ # //
427
+ # // Example of an ErrorInfo when the request is to the Cloud Storage API with
428
+ # // an unsupported token type.
429
+ # //
430
+ # // { "reason": "ACCESS_TOKEN_TYPE_UNSUPPORTED",
431
+ # // "domain": "googleapis.com",
432
+ # // "metadata": {
433
+ # // "service": "storage.googleapis.com",
434
+ # // "method": "google.storage.v1.Storage.GetObject"
435
+ # // }
436
+ # // }
437
+ # ACCESS_TOKEN_TYPE_UNSUPPORTED = 19;
438
+ #
439
+ # // The request is denied because the request doesn't have any authentication
440
+ # // credentials. For more information regarding the supported authentication
441
+ # // strategies for Google Cloud APIs, see
442
+ # // https://cloud.google.com/docs/authentication.
443
+ # //
444
+ # // Example of an ErrorInfo when the request is to the Cloud Storage API
445
+ # // without any authentication credentials.
446
+ # //
447
+ # // { "reason": "CREDENTIALS_MISSING",
448
+ # // "domain": "googleapis.com",
449
+ # // "metadata": {
450
+ # // "service": "storage.googleapis.com",
451
+ # // "method": "google.storage.v1.Storage.GetObject"
452
+ # // }
453
+ # // }
454
+ # CREDENTIALS_MISSING = 20;
455
+ #
456
+ # // The request is denied because the provided project owning the resource
457
+ # // which acts as the [API
458
+ # // consumer](https://cloud.google.com/apis/design/glossary#api_consumer) is
459
+ # // invalid. It may be in a bad format or empty.
460
+ # //
461
+ # // Example of an ErrorInfo when the request is to the Cloud Functions API,
462
+ # // but the offered resource project in the request in a bad format which can't
463
+ # // perform the ListFunctions method.
464
+ # //
465
+ # // { "reason": "RESOURCE_PROJECT_INVALID",
466
+ # // "domain": "googleapis.com",
467
+ # // "metadata": {
468
+ # // "service": "cloudfunctions.googleapis.com",
469
+ # // "method":
470
+ # // "google.cloud.functions.v1.CloudFunctionsService.ListFunctions"
471
+ # // }
472
+ # // }
473
+ # RESOURCE_PROJECT_INVALID = 21;
474
+ #
475
+ # // The request is denied because the provided session cookie is missing,
476
+ # // invalid or failed to decode.
477
+ # //
478
+ # // Example of an ErrorInfo when the request is calling Cloud Storage service
479
+ # // with a SID cookie which can't be decoded.
480
+ # //
481
+ # // { "reason": "SESSION_COOKIE_INVALID",
482
+ # // "domain": "googleapis.com",
483
+ # // "metadata": {
484
+ # // "service": "storage.googleapis.com",
485
+ # // "method": "google.storage.v1.Storage.GetObject",
486
+ # // "cookie": "SID"
487
+ # // }
488
+ # // }
489
+ # SESSION_COOKIE_INVALID = 23;
490
+ #
491
+ # // The request is denied because the user is from a Google Workspace customer
492
+ # // that blocks their users from accessing a particular service.
493
+ # //
494
+ # // Example scenario: https://support.google.com/a/answer/9197205?hl=en
495
+ # //
496
+ # // Example of an ErrorInfo when access to Google Cloud Storage service is
497
+ # // blocked by the Google Workspace administrator:
498
+ # //
499
+ # // { "reason": "USER_BLOCKED_BY_ADMIN",
500
+ # // "domain": "googleapis.com",
501
+ # // "metadata": {
502
+ # // "service": "storage.googleapis.com",
503
+ # // "method": "google.storage.v1.Storage.GetObject",
504
+ # // }
505
+ # // }
506
+ # USER_BLOCKED_BY_ADMIN = 24;
507
+ #
508
+ # // The request is denied because the resource service usage is restricted
509
+ # // by administrators according to the organization policy constraint.
510
+ # // For more information see
511
+ # // https://cloud.google.com/resource-manager/docs/organization-policy/restricting-services.
512
+ # //
513
+ # // Example of an ErrorInfo when access to Google Cloud Storage service is
514
+ # // restricted by Resource Usage Restriction policy:
515
+ # //
516
+ # // { "reason": "RESOURCE_USAGE_RESTRICTION_VIOLATED",
517
+ # // "domain": "googleapis.com",
518
+ # // "metadata": {
519
+ # // "consumer": "projects/project-123",
520
+ # // "service": "storage.googleapis.com"
521
+ # // }
522
+ # // }
523
+ # RESOURCE_USAGE_RESTRICTION_VIOLATED = 25;
524
+ #
525
+ # // Unimplemented. Do not use.
526
+ # //
527
+ # // The request is denied because it contains unsupported system parameters in
528
+ # // URL query parameters or HTTP headers. For more information,
529
+ # // see https://cloud.google.com/apis/docs/system-parameters
530
+ # //
531
+ # // Example of an ErrorInfo when access "pubsub.googleapis.com" service with
532
+ # // a request header of "x-goog-user-ip":
533
+ # //
534
+ # // { "reason": "SYSTEM_PARAMETER_UNSUPPORTED",
535
+ # // "domain": "googleapis.com",
536
+ # // "metadata": {
537
+ # // "service": "pubsub.googleapis.com"
538
+ # // "parameter": "x-goog-user-ip"
539
+ # // }
540
+ # // }
541
+ # SYSTEM_PARAMETER_UNSUPPORTED = 26;
542
+ #
543
+ # // The request is denied because it violates Org Restriction: the requested
544
+ # // resource does not belong to allowed organizations specified in
545
+ # // "X-Goog-Allowed-Resources" header.
546
+ # //
547
+ # // Example of an ErrorInfo when accessing a GCP resource that is restricted by
548
+ # // Org Restriction for "pubsub.googleapis.com" service.
549
+ # //
550
+ # // {
551
+ # // reason: "ORG_RESTRICTION_VIOLATION"
552
+ # // domain: "googleapis.com"
553
+ # // metadata {
554
+ # // "consumer":"projects/123456"
555
+ # // "service": "pubsub.googleapis.com"
556
+ # // }
557
+ # // }
558
+ # ORG_RESTRICTION_VIOLATION = 27;
559
+ #
560
+ # // The request is denied because "X-Goog-Allowed-Resources" header is in a bad
561
+ # // format.
562
+ # //
563
+ # // Example of an ErrorInfo when
564
+ # // accessing "pubsub.googleapis.com" service with an invalid
565
+ # // "X-Goog-Allowed-Resources" request header.
566
+ # //
567
+ # // {
568
+ # // reason: "ORG_RESTRICTION_HEADER_INVALID"
569
+ # // domain: "googleapis.com"
570
+ # // metadata {
571
+ # // "consumer":"projects/123456"
572
+ # // "service": "pubsub.googleapis.com"
573
+ # // }
574
+ # // }
575
+ # ORG_RESTRICTION_HEADER_INVALID = 28;
576
+ #
577
+ # // Unimplemented. Do not use.
578
+ # //
579
+ # // The request is calling a service that is not visible to the consumer.
580
+ # //
581
+ # // Example of an ErrorInfo when the consumer "projects/123" contacting
582
+ # // "pubsub.googleapis.com" service which is not visible to the consumer.
583
+ # //
584
+ # // { "reason": "SERVICE_NOT_VISIBLE",
585
+ # // "domain": "googleapis.com",
586
+ # // "metadata": {
587
+ # // "consumer": "projects/123",
588
+ # // "service": "pubsub.googleapis.com"
589
+ # // }
590
+ # // }
591
+ # //
592
+ # // This response indicates the "pubsub.googleapis.com" is not visible to
593
+ # // "projects/123" (or it may not exist).
594
+ # SERVICE_NOT_VISIBLE = 29;
595
+ #
596
+ # // The request is related to a project for which GCP access is suspended.
597
+ # //
598
+ # // Example of an ErrorInfo when the consumer "projects/123" fails to contact
599
+ # // "pubsub.googleapis.com" service because GCP access is suspended:
600
+ # //
601
+ # // { "reason": "GCP_SUSPENDED",
602
+ # // "domain": "googleapis.com",
603
+ # // "metadata": {
604
+ # // "consumer": "projects/123",
605
+ # // "service": "pubsub.googleapis.com"
606
+ # // }
607
+ # // }
608
+ # //
609
+ # // This response indicates the associated GCP account has been suspended.
610
+ # GCP_SUSPENDED = 30;
611
+ # }