googleapis-common-protos-types 1.7.0 → 1.9.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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/lib/google/api/annotations_pb.rb +60 -2
  4. data/lib/google/api/auth_pb.rb +264 -34
  5. data/lib/google/api/backend_pb.rb +212 -23
  6. data/lib/google/api/billing_pb.rb +104 -8
  7. data/lib/google/api/client_pb.rb +422 -86
  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 +242 -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 -33
  16. data/lib/google/api/field_behavior_pb.rb +131 -11
  17. data/lib/google/api/http_pb.rb +406 -23
  18. data/lib/google/api/httpbody_pb.rb +109 -6
  19. data/lib/google/api/label_pb.rb +75 -11
  20. data/lib/google/api/launch_stage_pb.rb +99 -11
  21. data/lib/google/api/log_pb.rb +82 -7
  22. data/lib/google/api/logging_pb.rb +108 -9
  23. data/lib/google/api/metric_pb.rb +297 -38
  24. data/lib/google/api/monitored_resource_pb.rb +159 -17
  25. data/lib/google/api/monitoring_pb.rb +134 -9
  26. data/lib/google/api/policy_pb.rb +129 -0
  27. data/lib/google/api/quota_pb.rb +211 -21
  28. data/lib/google/api/resource_pb.rb +265 -23
  29. data/lib/google/api/routing_pb.rb +488 -8
  30. data/lib/google/api/service_pb.rb +239 -29
  31. data/lib/google/api/source_info_pb.rb +59 -4
  32. data/lib/google/api/system_parameter_pb.rb +123 -13
  33. data/lib/google/api/usage_pb.rb +123 -11
  34. data/lib/google/api/visibility_pb.rb +140 -8
  35. data/lib/google/logging/type/http_request_pb.rb +123 -18
  36. data/lib/google/logging/type/log_severity_pb.rb +98 -12
  37. data/lib/google/longrunning/operations_pb.rb +277 -37
  38. data/lib/google/rpc/code_pb.rb +213 -20
  39. data/lib/google/rpc/context/attribute_context_pb.rb +375 -66
  40. data/lib/google/rpc/context/audit_context_pb.rb +77 -8
  41. data/lib/google/rpc/error_details_pb.rb +313 -56
  42. data/lib/google/rpc/http_pb.rb +91 -17
  43. data/lib/google/rpc/status_pb.rb +77 -6
  44. data/lib/google/type/calendar_period_pb.rb +83 -11
  45. data/lib/google/type/color_pb.rb +202 -7
  46. data/lib/google/type/date_pb.rb +79 -6
  47. data/lib/google/type/datetime_pb.rb +132 -18
  48. data/lib/google/type/dayofweek_pb.rb +77 -11
  49. data/lib/google/type/decimal_pb.rb +122 -4
  50. data/lib/google/type/expr_pb.rb +100 -7
  51. data/lib/google/type/fraction_pb.rb +60 -5
  52. data/lib/google/type/interval_pb.rb +74 -5
  53. data/lib/google/type/latlng_pb.rb +64 -5
  54. data/lib/google/type/localized_text_pb.rb +63 -5
  55. data/lib/google/type/money_pb.rb +69 -6
  56. data/lib/google/type/month_pb.rb +92 -16
  57. data/lib/google/type/phone_number_pb.rb +140 -12
  58. data/lib/google/type/postal_address_pb.rb +161 -14
  59. data/lib/google/type/quaternion_pb.rb +121 -7
  60. data/lib/google/type/timeofday_pb.rb +71 -7
  61. data/lib/googleapis/common/protos/types/version.rb +1 -1
  62. metadata +6 -5
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/longrunning/operations.proto
3
4
 
@@ -11,45 +12,34 @@ require 'google/protobuf/empty_pb'
11
12
  require 'google/rpc/status_pb'
12
13
  require 'google/protobuf/descriptor_pb'
13
14
 
14
- Google::Protobuf::DescriptorPool.generated_pool.build do
15
- add_file("google/longrunning/operations.proto", :syntax => :proto3) do
16
- add_message "google.longrunning.Operation" do
17
- optional :name, :string, 1
18
- optional :metadata, :message, 2, "google.protobuf.Any"
19
- optional :done, :bool, 3
20
- oneof :result do
21
- optional :error, :message, 4, "google.rpc.Status"
22
- optional :response, :message, 5, "google.protobuf.Any"
23
- end
24
- end
25
- add_message "google.longrunning.GetOperationRequest" do
26
- optional :name, :string, 1
27
- end
28
- add_message "google.longrunning.ListOperationsRequest" do
29
- optional :name, :string, 4
30
- optional :filter, :string, 1
31
- optional :page_size, :int32, 2
32
- optional :page_token, :string, 3
33
- end
34
- add_message "google.longrunning.ListOperationsResponse" do
35
- repeated :operations, :message, 1, "google.longrunning.Operation"
36
- optional :next_page_token, :string, 2
37
- end
38
- add_message "google.longrunning.CancelOperationRequest" do
39
- optional :name, :string, 1
40
- end
41
- add_message "google.longrunning.DeleteOperationRequest" do
42
- optional :name, :string, 1
43
- end
44
- add_message "google.longrunning.WaitOperationRequest" do
45
- optional :name, :string, 1
46
- optional :timeout, :message, 2, "google.protobuf.Duration"
47
- end
48
- add_message "google.longrunning.OperationInfo" do
49
- optional :response_type, :string, 1
50
- optional :metadata_type, :string, 2
15
+
16
+ descriptor_data = "\n#google/longrunning/operations.proto\x12\x12google.longrunning\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x17google/rpc/status.proto\x1a google/protobuf/descriptor.proto\"\xa8\x01\n\tOperation\x12\x0c\n\x04name\x18\x01 \x01(\t\x12&\n\x08metadata\x18\x02 \x01(\x0b\x32\x14.google.protobuf.Any\x12\x0c\n\x04\x64one\x18\x03 \x01(\x08\x12#\n\x05\x65rror\x18\x04 \x01(\x0b\x32\x12.google.rpc.StatusH\x00\x12(\n\x08response\x18\x05 \x01(\x0b\x32\x14.google.protobuf.AnyH\x00\x42\x08\n\x06result\"#\n\x13GetOperationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"\\\n\x15ListOperationsRequest\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"d\n\x16ListOperationsResponse\x12\x31\n\noperations\x18\x01 \x03(\x0b\x32\x1d.google.longrunning.Operation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"&\n\x16\x43\x61ncelOperationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"&\n\x16\x44\x65leteOperationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\"P\n\x14WaitOperationRequest\x12\x0c\n\x04name\x18\x01 \x01(\t\x12*\n\x07timeout\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\"=\n\rOperationInfo\x12\x15\n\rresponse_type\x18\x01 \x01(\t\x12\x15\n\rmetadata_type\x18\x02 \x01(\t2\xaa\x05\n\nOperations\x12\x94\x01\n\x0eListOperations\x12).google.longrunning.ListOperationsRequest\x1a*.google.longrunning.ListOperationsResponse\"+\x82\xd3\xe4\x93\x02\x17\x12\x15/v1/{name=operations}\xda\x41\x0bname,filter\x12\x7f\n\x0cGetOperation\x12\'.google.longrunning.GetOperationRequest\x1a\x1d.google.longrunning.Operation\"\'\x82\xd3\xe4\x93\x02\x1a\x12\x18/v1/{name=operations/**}\xda\x41\x04name\x12~\n\x0f\x44\x65leteOperation\x12*.google.longrunning.DeleteOperationRequest\x1a\x16.google.protobuf.Empty\"\'\x82\xd3\xe4\x93\x02\x1a*\x18/v1/{name=operations/**}\xda\x41\x04name\x12\x88\x01\n\x0f\x43\x61ncelOperation\x12*.google.longrunning.CancelOperationRequest\x1a\x16.google.protobuf.Empty\"1\x82\xd3\xe4\x93\x02$\"\x1f/v1/{name=operations/**}:cancel:\x01*\xda\x41\x04name\x12Z\n\rWaitOperation\x12(.google.longrunning.WaitOperationRequest\x1a\x1d.google.longrunning.Operation\"\x00\x1a\x1d\xca\x41\x1alongrunning.googleapis.com:Z\n\x0eoperation_info\x12\x1e.google.protobuf.MethodOptions\x18\x99\x08 \x01(\x0b\x32!.google.longrunning.OperationInfoB\x9d\x01\n\x16\x63om.google.longrunningB\x0fOperationsProtoP\x01ZCcloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb\xf8\x01\x01\xaa\x02\x12Google.LongRunning\xca\x02\x12Google\\LongRunningb\x06proto3"
17
+
18
+ pool = Google::Protobuf::DescriptorPool.generated_pool
19
+
20
+ begin
21
+ pool.add_serialized_file(descriptor_data)
22
+ rescue TypeError => e
23
+ # Compatibility code: will be removed in the next major version.
24
+ require 'google/protobuf/descriptor_pb'
25
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
+ parsed.clear_dependency
27
+ serialized = parsed.class.encode(parsed)
28
+ file = pool.add_serialized_file(serialized)
29
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
+ imports = [
31
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
32
+ ["google.rpc.Status", "google/rpc/status.proto"],
33
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
34
+ ]
35
+ imports.each do |type_name, expected_filename|
36
+ import_file = pool.lookup(type_name).file_descriptor
37
+ if import_file.name != expected_filename
38
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
51
39
  end
52
40
  end
41
+ warn "Each proto file must use a consistent fully-qualified name."
42
+ warn "This will become an error in the next major version."
53
43
  end
54
44
 
55
45
  module Google
@@ -64,3 +54,253 @@ module Google
64
54
  OperationInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.longrunning.OperationInfo").msgclass
65
55
  end
66
56
  end
57
+
58
+ #### Source proto file: google/longrunning/operations.proto ####
59
+ #
60
+ # // Copyright 2020 Google LLC
61
+ # //
62
+ # // Licensed under the Apache License, Version 2.0 (the "License");
63
+ # // you may not use this file except in compliance with the License.
64
+ # // You may obtain a copy of the License at
65
+ # //
66
+ # // http://www.apache.org/licenses/LICENSE-2.0
67
+ # //
68
+ # // Unless required by applicable law or agreed to in writing, software
69
+ # // distributed under the License is distributed on an "AS IS" BASIS,
70
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
71
+ # // See the License for the specific language governing permissions and
72
+ # // limitations under the License.
73
+ #
74
+ # syntax = "proto3";
75
+ #
76
+ # package google.longrunning;
77
+ #
78
+ # import "google/api/annotations.proto";
79
+ # import "google/api/client.proto";
80
+ # import "google/protobuf/any.proto";
81
+ # import "google/protobuf/duration.proto";
82
+ # import "google/protobuf/empty.proto";
83
+ # import "google/rpc/status.proto";
84
+ # import "google/protobuf/descriptor.proto";
85
+ #
86
+ # option cc_enable_arenas = true;
87
+ # option csharp_namespace = "Google.LongRunning";
88
+ # option go_package = "cloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb";
89
+ # option java_multiple_files = true;
90
+ # option java_outer_classname = "OperationsProto";
91
+ # option java_package = "com.google.longrunning";
92
+ # option php_namespace = "Google\\LongRunning";
93
+ #
94
+ # extend google.protobuf.MethodOptions {
95
+ # // Additional information regarding long-running operations.
96
+ # // In particular, this specifies the types that are returned from
97
+ # // long-running operations.
98
+ # //
99
+ # // Required for methods that return `google.longrunning.Operation`; invalid
100
+ # // otherwise.
101
+ # google.longrunning.OperationInfo operation_info = 1049;
102
+ # }
103
+ #
104
+ # // Manages long-running operations with an API service.
105
+ # //
106
+ # // When an API method normally takes long time to complete, it can be designed
107
+ # // to return [Operation][google.longrunning.Operation] to the client, and the client can use this
108
+ # // interface to receive the real response asynchronously by polling the
109
+ # // operation resource, or pass the operation resource to another API (such as
110
+ # // Google Cloud Pub/Sub API) to receive the response. Any API service that
111
+ # // returns long-running operations should implement the `Operations` interface
112
+ # // so developers can have a consistent client experience.
113
+ # service Operations {
114
+ # option (google.api.default_host) = "longrunning.googleapis.com";
115
+ #
116
+ # // Lists operations that match the specified filter in the request. If the
117
+ # // server doesn't support this method, it returns `UNIMPLEMENTED`.
118
+ # //
119
+ # // NOTE: the `name` binding allows API services to override the binding
120
+ # // to use different resource name schemes, such as `users/*/operations`. To
121
+ # // override the binding, API services can add a binding such as
122
+ # // `"/v1/{name=users/*}/operations"` to their service configuration.
123
+ # // For backwards compatibility, the default name includes the operations
124
+ # // collection id, however overriding users must ensure the name binding
125
+ # // is the parent resource, without the operations collection id.
126
+ # rpc ListOperations(ListOperationsRequest) returns (ListOperationsResponse) {
127
+ # option (google.api.http) = {
128
+ # get: "/v1/{name=operations}"
129
+ # };
130
+ # option (google.api.method_signature) = "name,filter";
131
+ # }
132
+ #
133
+ # // Gets the latest state of a long-running operation. Clients can use this
134
+ # // method to poll the operation result at intervals as recommended by the API
135
+ # // service.
136
+ # rpc GetOperation(GetOperationRequest) returns (Operation) {
137
+ # option (google.api.http) = {
138
+ # get: "/v1/{name=operations/**}"
139
+ # };
140
+ # option (google.api.method_signature) = "name";
141
+ # }
142
+ #
143
+ # // Deletes a long-running operation. This method indicates that the client is
144
+ # // no longer interested in the operation result. It does not cancel the
145
+ # // operation. If the server doesn't support this method, it returns
146
+ # // `google.rpc.Code.UNIMPLEMENTED`.
147
+ # rpc DeleteOperation(DeleteOperationRequest) returns (google.protobuf.Empty) {
148
+ # option (google.api.http) = {
149
+ # delete: "/v1/{name=operations/**}"
150
+ # };
151
+ # option (google.api.method_signature) = "name";
152
+ # }
153
+ #
154
+ # // Starts asynchronous cancellation on a long-running operation. The server
155
+ # // makes a best effort to cancel the operation, but success is not
156
+ # // guaranteed. If the server doesn't support this method, it returns
157
+ # // `google.rpc.Code.UNIMPLEMENTED`. Clients can use
158
+ # // [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
159
+ # // other methods to check whether the cancellation succeeded or whether the
160
+ # // operation completed despite cancellation. On successful cancellation,
161
+ # // the operation is not deleted; instead, it becomes an operation with
162
+ # // an [Operation.error][google.longrunning.Operation.error] value with a [google.rpc.Status.code][google.rpc.Status.code] of 1,
163
+ # // corresponding to `Code.CANCELLED`.
164
+ # rpc CancelOperation(CancelOperationRequest) returns (google.protobuf.Empty) {
165
+ # option (google.api.http) = {
166
+ # post: "/v1/{name=operations/**}:cancel"
167
+ # body: "*"
168
+ # };
169
+ # option (google.api.method_signature) = "name";
170
+ # }
171
+ #
172
+ # // Waits until the specified long-running operation is done or reaches at most
173
+ # // a specified timeout, returning the latest state. If the operation is
174
+ # // already done, the latest state is immediately returned. If the timeout
175
+ # // specified is greater than the default HTTP/RPC timeout, the HTTP/RPC
176
+ # // timeout is used. If the server does not support this method, it returns
177
+ # // `google.rpc.Code.UNIMPLEMENTED`.
178
+ # // Note that this method is on a best-effort basis. It may return the latest
179
+ # // state before the specified timeout (including immediately), meaning even an
180
+ # // immediate response is no guarantee that the operation is done.
181
+ # rpc WaitOperation(WaitOperationRequest) returns (Operation) {
182
+ # }
183
+ # }
184
+ #
185
+ # // This resource represents a long-running operation that is the result of a
186
+ # // network API call.
187
+ # message Operation {
188
+ # // The server-assigned name, which is only unique within the same service that
189
+ # // originally returns it. If you use the default HTTP mapping, the
190
+ # // `name` should be a resource name ending with `operations/{unique_id}`.
191
+ # string name = 1;
192
+ #
193
+ # // Service-specific metadata associated with the operation. It typically
194
+ # // contains progress information and common metadata such as create time.
195
+ # // Some services might not provide such metadata. Any method that returns a
196
+ # // long-running operation should document the metadata type, if any.
197
+ # google.protobuf.Any metadata = 2;
198
+ #
199
+ # // If the value is `false`, it means the operation is still in progress.
200
+ # // If `true`, the operation is completed, and either `error` or `response` is
201
+ # // available.
202
+ # bool done = 3;
203
+ #
204
+ # // The operation result, which can be either an `error` or a valid `response`.
205
+ # // If `done` == `false`, neither `error` nor `response` is set.
206
+ # // If `done` == `true`, exactly one of `error` or `response` is set.
207
+ # oneof result {
208
+ # // The error result of the operation in case of failure or cancellation.
209
+ # google.rpc.Status error = 4;
210
+ #
211
+ # // The normal response of the operation in case of success. If the original
212
+ # // method returns no data on success, such as `Delete`, the response is
213
+ # // `google.protobuf.Empty`. If the original method is standard
214
+ # // `Get`/`Create`/`Update`, the response should be the resource. For other
215
+ # // methods, the response should have the type `XxxResponse`, where `Xxx`
216
+ # // is the original method name. For example, if the original method name
217
+ # // is `TakeSnapshot()`, the inferred response type is
218
+ # // `TakeSnapshotResponse`.
219
+ # google.protobuf.Any response = 5;
220
+ # }
221
+ # }
222
+ #
223
+ # // The request message for [Operations.GetOperation][google.longrunning.Operations.GetOperation].
224
+ # message GetOperationRequest {
225
+ # // The name of the operation resource.
226
+ # string name = 1;
227
+ # }
228
+ #
229
+ # // The request message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
230
+ # message ListOperationsRequest {
231
+ # // The name of the operation's parent resource.
232
+ # string name = 4;
233
+ #
234
+ # // The standard list filter.
235
+ # string filter = 1;
236
+ #
237
+ # // The standard list page size.
238
+ # int32 page_size = 2;
239
+ #
240
+ # // The standard list page token.
241
+ # string page_token = 3;
242
+ # }
243
+ #
244
+ # // The response message for [Operations.ListOperations][google.longrunning.Operations.ListOperations].
245
+ # message ListOperationsResponse {
246
+ # // A list of operations that matches the specified filter in the request.
247
+ # repeated Operation operations = 1;
248
+ #
249
+ # // The standard List next-page token.
250
+ # string next_page_token = 2;
251
+ # }
252
+ #
253
+ # // The request message for [Operations.CancelOperation][google.longrunning.Operations.CancelOperation].
254
+ # message CancelOperationRequest {
255
+ # // The name of the operation resource to be cancelled.
256
+ # string name = 1;
257
+ # }
258
+ #
259
+ # // The request message for [Operations.DeleteOperation][google.longrunning.Operations.DeleteOperation].
260
+ # message DeleteOperationRequest {
261
+ # // The name of the operation resource to be deleted.
262
+ # string name = 1;
263
+ # }
264
+ #
265
+ # // The request message for [Operations.WaitOperation][google.longrunning.Operations.WaitOperation].
266
+ # message WaitOperationRequest {
267
+ # // The name of the operation resource to wait on.
268
+ # string name = 1;
269
+ #
270
+ # // The maximum duration to wait before timing out. If left blank, the wait
271
+ # // will be at most the time permitted by the underlying HTTP/RPC protocol.
272
+ # // If RPC context deadline is also specified, the shorter one will be used.
273
+ # google.protobuf.Duration timeout = 2;
274
+ # }
275
+ #
276
+ # // A message representing the message types used by a long-running operation.
277
+ # //
278
+ # // Example:
279
+ # //
280
+ # // rpc LongRunningRecognize(LongRunningRecognizeRequest)
281
+ # // returns (google.longrunning.Operation) {
282
+ # // option (google.longrunning.operation_info) = {
283
+ # // response_type: "LongRunningRecognizeResponse"
284
+ # // metadata_type: "LongRunningRecognizeMetadata"
285
+ # // };
286
+ # // }
287
+ # message OperationInfo {
288
+ # // Required. The message name of the primary return type for this
289
+ # // long-running operation.
290
+ # // This type will be used to deserialize the LRO's response.
291
+ # //
292
+ # // If the response is in a different package from the rpc, a fully-qualified
293
+ # // message name must be used (e.g. `google.protobuf.Struct`).
294
+ # //
295
+ # // Note: Altering this value constitutes a breaking change.
296
+ # string response_type = 1;
297
+ #
298
+ # // Required. The message name of the metadata type for this long-running
299
+ # // operation.
300
+ # //
301
+ # // If the response is in a different package from the rpc, a fully-qualified
302
+ # // message name must be used (e.g. `google.protobuf.Struct`).
303
+ # //
304
+ # // Note: Altering this value constitutes a breaking change.
305
+ # string metadata_type = 2;
306
+ # }
@@ -1,30 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/rpc/code.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/rpc/code.proto", :syntax => :proto3) do
8
- add_enum "google.rpc.Code" do
9
- value :OK, 0
10
- value :CANCELLED, 1
11
- value :UNKNOWN, 2
12
- value :INVALID_ARGUMENT, 3
13
- value :DEADLINE_EXCEEDED, 4
14
- value :NOT_FOUND, 5
15
- value :ALREADY_EXISTS, 6
16
- value :PERMISSION_DENIED, 7
17
- value :UNAUTHENTICATED, 16
18
- value :RESOURCE_EXHAUSTED, 8
19
- value :FAILED_PRECONDITION, 9
20
- value :ABORTED, 10
21
- value :OUT_OF_RANGE, 11
22
- value :UNIMPLEMENTED, 12
23
- value :INTERNAL, 13
24
- value :UNAVAILABLE, 14
25
- value :DATA_LOSS, 15
7
+
8
+ descriptor_data = "\n\x15google/rpc/code.proto\x12\ngoogle.rpc*\xb7\x02\n\x04\x43ode\x12\x06\n\x02OK\x10\x00\x12\r\n\tCANCELLED\x10\x01\x12\x0b\n\x07UNKNOWN\x10\x02\x12\x14\n\x10INVALID_ARGUMENT\x10\x03\x12\x15\n\x11\x44\x45\x41\x44LINE_EXCEEDED\x10\x04\x12\r\n\tNOT_FOUND\x10\x05\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x06\x12\x15\n\x11PERMISSION_DENIED\x10\x07\x12\x13\n\x0fUNAUTHENTICATED\x10\x10\x12\x16\n\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\n\x13\x46\x41ILED_PRECONDITION\x10\t\x12\x0b\n\x07\x41\x42ORTED\x10\n\x12\x10\n\x0cOUT_OF_RANGE\x10\x0b\x12\x11\n\rUNIMPLEMENTED\x10\x0c\x12\x0c\n\x08INTERNAL\x10\r\x12\x0f\n\x0bUNAVAILABLE\x10\x0e\x12\r\n\tDATA_LOSS\x10\x0f\x42X\n\x0e\x63om.google.rpcB\tCodeProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/code;code\xa2\x02\x03RPCb\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
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}"
26
28
  end
27
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."
28
32
  end
29
33
 
30
34
  module Google
@@ -32,3 +36,192 @@ module Google
32
36
  Code = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Code").enummodule
33
37
  end
34
38
  end
39
+
40
+ #### Source proto file: google/rpc/code.proto ####
41
+ #
42
+ # // Copyright 2022 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.rpc;
59
+ #
60
+ # option go_package = "google.golang.org/genproto/googleapis/rpc/code;code";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "CodeProto";
63
+ # option java_package = "com.google.rpc";
64
+ # option objc_class_prefix = "RPC";
65
+ #
66
+ # // The canonical error codes for gRPC APIs.
67
+ # //
68
+ # //
69
+ # // Sometimes multiple error codes may apply. Services should return
70
+ # // the most specific error code that applies. For example, prefer
71
+ # // `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
72
+ # // Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
73
+ # enum Code {
74
+ # // Not an error; returned on success.
75
+ # //
76
+ # // HTTP Mapping: 200 OK
77
+ # OK = 0;
78
+ #
79
+ # // The operation was cancelled, typically by the caller.
80
+ # //
81
+ # // HTTP Mapping: 499 Client Closed Request
82
+ # CANCELLED = 1;
83
+ #
84
+ # // Unknown error. For example, this error may be returned when
85
+ # // a `Status` value received from another address space belongs to
86
+ # // an error space that is not known in this address space. Also
87
+ # // errors raised by APIs that do not return enough error information
88
+ # // may be converted to this error.
89
+ # //
90
+ # // HTTP Mapping: 500 Internal Server Error
91
+ # UNKNOWN = 2;
92
+ #
93
+ # // The client specified an invalid argument. Note that this differs
94
+ # // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
95
+ # // that are problematic regardless of the state of the system
96
+ # // (e.g., a malformed file name).
97
+ # //
98
+ # // HTTP Mapping: 400 Bad Request
99
+ # INVALID_ARGUMENT = 3;
100
+ #
101
+ # // The deadline expired before the operation could complete. For operations
102
+ # // that change the state of the system, this error may be returned
103
+ # // even if the operation has completed successfully. For example, a
104
+ # // successful response from a server could have been delayed long
105
+ # // enough for the deadline to expire.
106
+ # //
107
+ # // HTTP Mapping: 504 Gateway Timeout
108
+ # DEADLINE_EXCEEDED = 4;
109
+ #
110
+ # // Some requested entity (e.g., file or directory) was not found.
111
+ # //
112
+ # // Note to server developers: if a request is denied for an entire class
113
+ # // of users, such as gradual feature rollout or undocumented allowlist,
114
+ # // `NOT_FOUND` may be used. If a request is denied for some users within
115
+ # // a class of users, such as user-based access control, `PERMISSION_DENIED`
116
+ # // must be used.
117
+ # //
118
+ # // HTTP Mapping: 404 Not Found
119
+ # NOT_FOUND = 5;
120
+ #
121
+ # // The entity that a client attempted to create (e.g., file or directory)
122
+ # // already exists.
123
+ # //
124
+ # // HTTP Mapping: 409 Conflict
125
+ # ALREADY_EXISTS = 6;
126
+ #
127
+ # // The caller does not have permission to execute the specified
128
+ # // operation. `PERMISSION_DENIED` must not be used for rejections
129
+ # // caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
130
+ # // instead for those errors). `PERMISSION_DENIED` must not be
131
+ # // used if the caller can not be identified (use `UNAUTHENTICATED`
132
+ # // instead for those errors). This error code does not imply the
133
+ # // request is valid or the requested entity exists or satisfies
134
+ # // other pre-conditions.
135
+ # //
136
+ # // HTTP Mapping: 403 Forbidden
137
+ # PERMISSION_DENIED = 7;
138
+ #
139
+ # // The request does not have valid authentication credentials for the
140
+ # // operation.
141
+ # //
142
+ # // HTTP Mapping: 401 Unauthorized
143
+ # UNAUTHENTICATED = 16;
144
+ #
145
+ # // Some resource has been exhausted, perhaps a per-user quota, or
146
+ # // perhaps the entire file system is out of space.
147
+ # //
148
+ # // HTTP Mapping: 429 Too Many Requests
149
+ # RESOURCE_EXHAUSTED = 8;
150
+ #
151
+ # // The operation was rejected because the system is not in a state
152
+ # // required for the operation's execution. For example, the directory
153
+ # // to be deleted is non-empty, an rmdir operation is applied to
154
+ # // a non-directory, etc.
155
+ # //
156
+ # // Service implementors can use the following guidelines to decide
157
+ # // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
158
+ # // (a) Use `UNAVAILABLE` if the client can retry just the failing call.
159
+ # // (b) Use `ABORTED` if the client should retry at a higher level. For
160
+ # // example, when a client-specified test-and-set fails, indicating the
161
+ # // client should restart a read-modify-write sequence.
162
+ # // (c) Use `FAILED_PRECONDITION` if the client should not retry until
163
+ # // the system state has been explicitly fixed. For example, if an "rmdir"
164
+ # // fails because the directory is non-empty, `FAILED_PRECONDITION`
165
+ # // should be returned since the client should not retry unless
166
+ # // the files are deleted from the directory.
167
+ # //
168
+ # // HTTP Mapping: 400 Bad Request
169
+ # FAILED_PRECONDITION = 9;
170
+ #
171
+ # // The operation was aborted, typically due to a concurrency issue such as
172
+ # // a sequencer check failure or transaction abort.
173
+ # //
174
+ # // See the guidelines above for deciding between `FAILED_PRECONDITION`,
175
+ # // `ABORTED`, and `UNAVAILABLE`.
176
+ # //
177
+ # // HTTP Mapping: 409 Conflict
178
+ # ABORTED = 10;
179
+ #
180
+ # // The operation was attempted past the valid range. E.g., seeking or
181
+ # // reading past end-of-file.
182
+ # //
183
+ # // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
184
+ # // be fixed if the system state changes. For example, a 32-bit file
185
+ # // system will generate `INVALID_ARGUMENT` if asked to read at an
186
+ # // offset that is not in the range [0,2^32-1], but it will generate
187
+ # // `OUT_OF_RANGE` if asked to read from an offset past the current
188
+ # // file size.
189
+ # //
190
+ # // There is a fair bit of overlap between `FAILED_PRECONDITION` and
191
+ # // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
192
+ # // error) when it applies so that callers who are iterating through
193
+ # // a space can easily look for an `OUT_OF_RANGE` error to detect when
194
+ # // they are done.
195
+ # //
196
+ # // HTTP Mapping: 400 Bad Request
197
+ # OUT_OF_RANGE = 11;
198
+ #
199
+ # // The operation is not implemented or is not supported/enabled in this
200
+ # // service.
201
+ # //
202
+ # // HTTP Mapping: 501 Not Implemented
203
+ # UNIMPLEMENTED = 12;
204
+ #
205
+ # // Internal errors. This means that some invariants expected by the
206
+ # // underlying system have been broken. This error code is reserved
207
+ # // for serious errors.
208
+ # //
209
+ # // HTTP Mapping: 500 Internal Server Error
210
+ # INTERNAL = 13;
211
+ #
212
+ # // The service is currently unavailable. This is most likely a
213
+ # // transient condition, which can be corrected by retrying with
214
+ # // a backoff. Note that it is not always safe to retry
215
+ # // non-idempotent operations.
216
+ # //
217
+ # // See the guidelines above for deciding between `FAILED_PRECONDITION`,
218
+ # // `ABORTED`, and `UNAVAILABLE`.
219
+ # //
220
+ # // HTTP Mapping: 503 Service Unavailable
221
+ # UNAVAILABLE = 14;
222
+ #
223
+ # // Unrecoverable data loss or corruption.
224
+ # //
225
+ # // HTTP Mapping: 500 Internal Server Error
226
+ # DATA_LOSS = 15;
227
+ # }