googleapis-common-protos-types 1.5.0 → 1.18.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 +95 -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 -22
  6. data/lib/google/api/billing_pb.rb +104 -8
  7. data/lib/google/api/client_pb.rb +502 -77
  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 +119 -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 +96 -7
  15. data/lib/google/api/error_reason_pb.rb +649 -31
  16. data/lib/google/api/field_behavior_pb.rb +131 -11
  17. data/lib/google/api/field_info_pb.rb +151 -0
  18. data/lib/google/api/http_pb.rb +398 -23
  19. data/lib/google/api/httpbody_pb.rb +108 -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 +82 -7
  23. data/lib/google/api/logging_pb.rb +108 -9
  24. data/lib/google/api/metric_pb.rb +317 -38
  25. data/lib/google/api/monitored_resource_pb.rb +159 -17
  26. data/lib/google/api/monitoring_pb.rb +134 -9
  27. data/lib/google/api/policy_pb.rb +127 -0
  28. data/lib/google/api/quota_pb.rb +211 -21
  29. data/lib/google/api/resource_pb.rb +270 -23
  30. data/lib/google/api/routing_pb.rb +488 -8
  31. data/lib/google/api/service_pb.rb +239 -29
  32. data/lib/google/api/source_info_pb.rb +59 -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 +140 -8
  36. data/lib/google/logging/type/http_request_pb.rb +123 -18
  37. data/lib/google/logging/type/log_severity_pb.rb +98 -12
  38. data/lib/google/longrunning/operations_pb.rb +277 -38
  39. data/lib/google/rpc/code_pb.rb +213 -20
  40. data/lib/google/rpc/context/attribute_context_pb.rb +403 -0
  41. data/lib/google/rpc/context/audit_context_pb.rb +94 -0
  42. data/lib/google/rpc/error_details_pb.rb +326 -56
  43. data/lib/google/rpc/http_pb.rb +91 -17
  44. data/lib/google/rpc/status_pb.rb +77 -6
  45. data/lib/google/type/calendar_period_pb.rb +83 -11
  46. data/lib/google/type/color_pb.rb +202 -7
  47. data/lib/google/type/date_pb.rb +79 -6
  48. data/lib/google/type/datetime_pb.rb +132 -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 +74 -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 +18 -11
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/rpc/error_details.proto
3
4
 
@@ -5,64 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/duration_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/rpc/error_details.proto", :syntax => :proto3) do
10
- add_message "google.rpc.ErrorInfo" do
11
- optional :reason, :string, 1
12
- optional :domain, :string, 2
13
- map :metadata, :string, :string, 3
14
- end
15
- add_message "google.rpc.RetryInfo" do
16
- optional :retry_delay, :message, 1, "google.protobuf.Duration"
17
- end
18
- add_message "google.rpc.DebugInfo" do
19
- repeated :stack_entries, :string, 1
20
- optional :detail, :string, 2
21
- end
22
- add_message "google.rpc.QuotaFailure" do
23
- repeated :violations, :message, 1, "google.rpc.QuotaFailure.Violation"
24
- end
25
- add_message "google.rpc.QuotaFailure.Violation" do
26
- optional :subject, :string, 1
27
- optional :description, :string, 2
28
- end
29
- add_message "google.rpc.PreconditionFailure" do
30
- repeated :violations, :message, 1, "google.rpc.PreconditionFailure.Violation"
31
- end
32
- add_message "google.rpc.PreconditionFailure.Violation" do
33
- optional :type, :string, 1
34
- optional :subject, :string, 2
35
- optional :description, :string, 3
36
- end
37
- add_message "google.rpc.BadRequest" do
38
- repeated :field_violations, :message, 1, "google.rpc.BadRequest.FieldViolation"
39
- end
40
- add_message "google.rpc.BadRequest.FieldViolation" do
41
- optional :field, :string, 1
42
- optional :description, :string, 2
43
- end
44
- add_message "google.rpc.RequestInfo" do
45
- optional :request_id, :string, 1
46
- optional :serving_data, :string, 2
47
- end
48
- add_message "google.rpc.ResourceInfo" do
49
- optional :resource_type, :string, 1
50
- optional :resource_name, :string, 2
51
- optional :owner, :string, 3
52
- optional :description, :string, 4
53
- end
54
- add_message "google.rpc.Help" do
55
- repeated :links, :message, 1, "google.rpc.Help.Link"
56
- end
57
- add_message "google.rpc.Help.Link" do
58
- optional :description, :string, 1
59
- optional :url, :string, 2
60
- end
61
- add_message "google.rpc.LocalizedMessage" do
62
- optional :locale, :string, 1
63
- optional :message, :string, 2
9
+
10
+ descriptor_data = "\n\x1egoogle/rpc/error_details.proto\x12\ngoogle.rpc\x1a\x1egoogle/protobuf/duration.proto\"\x93\x01\n\tErrorInfo\x12\x0e\n\x06reason\x18\x01 \x01(\t\x12\x0e\n\x06\x64omain\x18\x02 \x01(\t\x12\x35\n\x08metadata\x18\x03 \x03(\x0b\x32#.google.rpc.ErrorInfo.MetadataEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\";\n\tRetryInfo\x12.\n\x0bretry_delay\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\"2\n\tDebugInfo\x12\x15\n\rstack_entries\x18\x01 \x03(\t\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\"y\n\x0cQuotaFailure\x12\x36\n\nviolations\x18\x01 \x03(\x0b\x32\".google.rpc.QuotaFailure.Violation\x1a\x31\n\tViolation\x12\x0f\n\x07subject\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\"\x95\x01\n\x13PreconditionFailure\x12=\n\nviolations\x18\x01 \x03(\x0b\x32).google.rpc.PreconditionFailure.Violation\x1a?\n\tViolation\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07subject\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\"\xcc\x01\n\nBadRequest\x12?\n\x10\x66ield_violations\x18\x01 \x03(\x0b\x32%.google.rpc.BadRequest.FieldViolation\x1a}\n\x0e\x46ieldViolation\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0e\n\x06reason\x18\x03 \x01(\t\x12\x37\n\x11localized_message\x18\x04 \x01(\x0b\x32\x1c.google.rpc.LocalizedMessage\"7\n\x0bRequestInfo\x12\x12\n\nrequest_id\x18\x01 \x01(\t\x12\x14\n\x0cserving_data\x18\x02 \x01(\t\"`\n\x0cResourceInfo\x12\x15\n\rresource_type\x18\x01 \x01(\t\x12\x15\n\rresource_name\x18\x02 \x01(\t\x12\r\n\x05owner\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\"V\n\x04Help\x12$\n\x05links\x18\x01 \x03(\x0b\x32\x15.google.rpc.Help.Link\x1a(\n\x04Link\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"3\n\x10LocalizedMessage\x12\x0e\n\x06locale\x18\x01 \x01(\t\x12\x0f\n\x07message\x18\x02 \x01(\tBl\n\x0e\x63om.google.rpcB\x11\x45rrorDetailsProtoP\x01Z?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xa2\x02\x03RPCb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
64
31
  end
65
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
66
35
  end
67
36
 
68
37
  module Google
@@ -83,3 +52,304 @@ module Google
83
52
  LocalizedMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.LocalizedMessage").msgclass
84
53
  end
85
54
  end
55
+
56
+ #### Source proto file: google/rpc/error_details.proto ####
57
+ #
58
+ # // Copyright 2024 Google LLC
59
+ # //
60
+ # // Licensed under the Apache License, Version 2.0 (the "License");
61
+ # // you may not use this file except in compliance with the License.
62
+ # // You may obtain a copy of the License at
63
+ # //
64
+ # // http://www.apache.org/licenses/LICENSE-2.0
65
+ # //
66
+ # // Unless required by applicable law or agreed to in writing, software
67
+ # // distributed under the License is distributed on an "AS IS" BASIS,
68
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
69
+ # // See the License for the specific language governing permissions and
70
+ # // limitations under the License.
71
+ #
72
+ # syntax = "proto3";
73
+ #
74
+ # package google.rpc;
75
+ #
76
+ # import "google/protobuf/duration.proto";
77
+ #
78
+ # option go_package = "google.golang.org/genproto/googleapis/rpc/errdetails;errdetails";
79
+ # option java_multiple_files = true;
80
+ # option java_outer_classname = "ErrorDetailsProto";
81
+ # option java_package = "com.google.rpc";
82
+ # option objc_class_prefix = "RPC";
83
+ #
84
+ # // Describes the cause of the error with structured details.
85
+ # //
86
+ # // Example of an error when contacting the "pubsub.googleapis.com" API when it
87
+ # // is not enabled:
88
+ # //
89
+ # // { "reason": "API_DISABLED"
90
+ # // "domain": "googleapis.com"
91
+ # // "metadata": {
92
+ # // "resource": "projects/123",
93
+ # // "service": "pubsub.googleapis.com"
94
+ # // }
95
+ # // }
96
+ # //
97
+ # // This response indicates that the pubsub.googleapis.com API is not enabled.
98
+ # //
99
+ # // Example of an error that is returned when attempting to create a Spanner
100
+ # // instance in a region that is out of stock:
101
+ # //
102
+ # // { "reason": "STOCKOUT"
103
+ # // "domain": "spanner.googleapis.com",
104
+ # // "metadata": {
105
+ # // "availableRegions": "us-central1,us-east2"
106
+ # // }
107
+ # // }
108
+ # message ErrorInfo {
109
+ # // The reason of the error. This is a constant value that identifies the
110
+ # // proximate cause of the error. Error reasons are unique within a particular
111
+ # // domain of errors. This should be at most 63 characters and match a
112
+ # // regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
113
+ # // UPPER_SNAKE_CASE.
114
+ # string reason = 1;
115
+ #
116
+ # // The logical grouping to which the "reason" belongs. The error domain
117
+ # // is typically the registered service name of the tool or product that
118
+ # // generates the error. Example: "pubsub.googleapis.com". If the error is
119
+ # // generated by some common infrastructure, the error domain must be a
120
+ # // globally unique value that identifies the infrastructure. For Google API
121
+ # // infrastructure, the error domain is "googleapis.com".
122
+ # string domain = 2;
123
+ #
124
+ # // Additional structured details about this error.
125
+ # //
126
+ # // Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should
127
+ # // ideally be lowerCamelCase. Also, they must be limited to 64 characters in
128
+ # // length. When identifying the current value of an exceeded limit, the units
129
+ # // should be contained in the key, not the value. For example, rather than
130
+ # // `{"instanceLimit": "100/request"}`, should be returned as,
131
+ # // `{"instanceLimitPerRequest": "100"}`, if the client exceeds the number of
132
+ # // instances that can be created in a single (batch) request.
133
+ # map<string, string> metadata = 3;
134
+ # }
135
+ #
136
+ # // Describes when the clients can retry a failed request. Clients could ignore
137
+ # // the recommendation here or retry when this information is missing from error
138
+ # // responses.
139
+ # //
140
+ # // It's always recommended that clients should use exponential backoff when
141
+ # // retrying.
142
+ # //
143
+ # // Clients should wait until `retry_delay` amount of time has passed since
144
+ # // receiving the error response before retrying. If retrying requests also
145
+ # // fail, clients should use an exponential backoff scheme to gradually increase
146
+ # // the delay between retries based on `retry_delay`, until either a maximum
147
+ # // number of retries have been reached or a maximum retry delay cap has been
148
+ # // reached.
149
+ # message RetryInfo {
150
+ # // Clients should wait at least this long between retrying the same request.
151
+ # google.protobuf.Duration retry_delay = 1;
152
+ # }
153
+ #
154
+ # // Describes additional debugging info.
155
+ # message DebugInfo {
156
+ # // The stack trace entries indicating where the error occurred.
157
+ # repeated string stack_entries = 1;
158
+ #
159
+ # // Additional debugging information provided by the server.
160
+ # string detail = 2;
161
+ # }
162
+ #
163
+ # // Describes how a quota check failed.
164
+ # //
165
+ # // For example if a daily limit was exceeded for the calling project,
166
+ # // a service could respond with a QuotaFailure detail containing the project
167
+ # // id and the description of the quota limit that was exceeded. If the
168
+ # // calling project hasn't enabled the service in the developer console, then
169
+ # // a service could respond with the project id and set `service_disabled`
170
+ # // to true.
171
+ # //
172
+ # // Also see RetryInfo and Help types for other details about handling a
173
+ # // quota failure.
174
+ # message QuotaFailure {
175
+ # // A message type used to describe a single quota violation. For example, a
176
+ # // daily quota or a custom quota that was exceeded.
177
+ # message Violation {
178
+ # // The subject on which the quota check failed.
179
+ # // For example, "clientip:<ip address of client>" or "project:<Google
180
+ # // developer project id>".
181
+ # string subject = 1;
182
+ #
183
+ # // A description of how the quota check failed. Clients can use this
184
+ # // description to find more about the quota configuration in the service's
185
+ # // public documentation, or find the relevant quota limit to adjust through
186
+ # // developer console.
187
+ # //
188
+ # // For example: "Service disabled" or "Daily Limit for read operations
189
+ # // exceeded".
190
+ # string description = 2;
191
+ # }
192
+ #
193
+ # // Describes all quota violations.
194
+ # repeated Violation violations = 1;
195
+ # }
196
+ #
197
+ # // Describes what preconditions have failed.
198
+ # //
199
+ # // For example, if an RPC failed because it required the Terms of Service to be
200
+ # // acknowledged, it could list the terms of service violation in the
201
+ # // PreconditionFailure message.
202
+ # message PreconditionFailure {
203
+ # // A message type used to describe a single precondition failure.
204
+ # message Violation {
205
+ # // The type of PreconditionFailure. We recommend using a service-specific
206
+ # // enum type to define the supported precondition violation subjects. For
207
+ # // example, "TOS" for "Terms of Service violation".
208
+ # string type = 1;
209
+ #
210
+ # // The subject, relative to the type, that failed.
211
+ # // For example, "google.com/cloud" relative to the "TOS" type would indicate
212
+ # // which terms of service is being referenced.
213
+ # string subject = 2;
214
+ #
215
+ # // A description of how the precondition failed. Developers can use this
216
+ # // description to understand how to fix the failure.
217
+ # //
218
+ # // For example: "Terms of service not accepted".
219
+ # string description = 3;
220
+ # }
221
+ #
222
+ # // Describes all precondition violations.
223
+ # repeated Violation violations = 1;
224
+ # }
225
+ #
226
+ # // Describes violations in a client request. This error type focuses on the
227
+ # // syntactic aspects of the request.
228
+ # message BadRequest {
229
+ # // A message type used to describe a single bad request field.
230
+ # message FieldViolation {
231
+ # // A path that leads to a field in the request body. The value will be a
232
+ # // sequence of dot-separated identifiers that identify a protocol buffer
233
+ # // field.
234
+ # //
235
+ # // Consider the following:
236
+ # //
237
+ # // message CreateContactRequest {
238
+ # // message EmailAddress {
239
+ # // enum Type {
240
+ # // TYPE_UNSPECIFIED = 0;
241
+ # // HOME = 1;
242
+ # // WORK = 2;
243
+ # // }
244
+ # //
245
+ # // optional string email = 1;
246
+ # // repeated EmailType type = 2;
247
+ # // }
248
+ # //
249
+ # // string full_name = 1;
250
+ # // repeated EmailAddress email_addresses = 2;
251
+ # // }
252
+ # //
253
+ # // In this example, in proto `field` could take one of the following values:
254
+ # //
255
+ # // * `full_name` for a violation in the `full_name` value
256
+ # // * `email_addresses[1].email` for a violation in the `email` field of the
257
+ # // first `email_addresses` message
258
+ # // * `email_addresses[3].type[2]` for a violation in the second `type`
259
+ # // value in the third `email_addresses` message.
260
+ # //
261
+ # // In JSON, the same values are represented as:
262
+ # //
263
+ # // * `fullName` for a violation in the `fullName` value
264
+ # // * `emailAddresses[1].email` for a violation in the `email` field of the
265
+ # // first `emailAddresses` message
266
+ # // * `emailAddresses[3].type[2]` for a violation in the second `type`
267
+ # // value in the third `emailAddresses` message.
268
+ # string field = 1;
269
+ #
270
+ # // A description of why the request element is bad.
271
+ # string description = 2;
272
+ #
273
+ # // The reason of the field-level error. This is a constant value that
274
+ # // identifies the proximate cause of the field-level error. It should
275
+ # // uniquely identify the type of the FieldViolation within the scope of the
276
+ # // google.rpc.ErrorInfo.domain. This should be at most 63
277
+ # // characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,
278
+ # // which represents UPPER_SNAKE_CASE.
279
+ # string reason = 3;
280
+ #
281
+ # // Provides a localized error message for field-level errors that is safe to
282
+ # // return to the API consumer.
283
+ # LocalizedMessage localized_message = 4;
284
+ # }
285
+ #
286
+ # // Describes all violations in a client request.
287
+ # repeated FieldViolation field_violations = 1;
288
+ # }
289
+ #
290
+ # // Contains metadata about the request that clients can attach when filing a bug
291
+ # // or providing other forms of feedback.
292
+ # message RequestInfo {
293
+ # // An opaque string that should only be interpreted by the service generating
294
+ # // it. For example, it can be used to identify requests in the service's logs.
295
+ # string request_id = 1;
296
+ #
297
+ # // Any data that was used to serve this request. For example, an encrypted
298
+ # // stack trace that can be sent back to the service provider for debugging.
299
+ # string serving_data = 2;
300
+ # }
301
+ #
302
+ # // Describes the resource that is being accessed.
303
+ # message ResourceInfo {
304
+ # // A name for the type of resource being accessed, e.g. "sql table",
305
+ # // "cloud storage bucket", "file", "Google calendar"; or the type URL
306
+ # // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
307
+ # string resource_type = 1;
308
+ #
309
+ # // The name of the resource being accessed. For example, a shared calendar
310
+ # // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
311
+ # // error is
312
+ # // [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
313
+ # string resource_name = 2;
314
+ #
315
+ # // The owner of the resource (optional).
316
+ # // For example, "user:<owner email>" or "project:<Google developer project
317
+ # // id>".
318
+ # string owner = 3;
319
+ #
320
+ # // Describes what error is encountered when accessing this resource.
321
+ # // For example, updating a cloud project may require the `writer` permission
322
+ # // on the developer console project.
323
+ # string description = 4;
324
+ # }
325
+ #
326
+ # // Provides links to documentation or for performing an out of band action.
327
+ # //
328
+ # // For example, if a quota check failed with an error indicating the calling
329
+ # // project hasn't enabled the accessed service, this can contain a URL pointing
330
+ # // directly to the right place in the developer console to flip the bit.
331
+ # message Help {
332
+ # // Describes a URL link.
333
+ # message Link {
334
+ # // Describes what the link offers.
335
+ # string description = 1;
336
+ #
337
+ # // The URL of the link.
338
+ # string url = 2;
339
+ # }
340
+ #
341
+ # // URL(s) pointing to additional information on handling the current error.
342
+ # repeated Link links = 1;
343
+ # }
344
+ #
345
+ # // Provides a localized error message that is safe to return to the user
346
+ # // which can be attached to an RPC error.
347
+ # message LocalizedMessage {
348
+ # // The locale used following the specification defined at
349
+ # // https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
350
+ # // Examples are: "en-US", "fr-CH", "es-MX"
351
+ # string locale = 1;
352
+ #
353
+ # // The localized error message in the above locale.
354
+ # string message = 2;
355
+ # }
@@ -1,27 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/rpc/http.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/rpc/http.proto", :syntax => :proto3) do
8
- add_message "google.rpc.HttpRequest" do
9
- optional :method, :string, 1
10
- optional :uri, :string, 2
11
- repeated :headers, :message, 3, "google.rpc.HttpHeader"
12
- optional :body, :bytes, 4
13
- end
14
- add_message "google.rpc.HttpResponse" do
15
- optional :status, :int32, 1
16
- optional :reason, :string, 2
17
- repeated :headers, :message, 3, "google.rpc.HttpHeader"
18
- optional :body, :bytes, 4
19
- end
20
- add_message "google.rpc.HttpHeader" do
21
- optional :key, :string, 1
22
- optional :value, :string, 2
7
+
8
+ descriptor_data = "\n\x15google/rpc/http.proto\x12\ngoogle.rpc\"a\n\x0bHttpRequest\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\'\n\x07headers\x18\x03 \x03(\x0b\x32\x16.google.rpc.HttpHeader\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\"e\n\x0cHttpResponse\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0e\n\x06reason\x18\x02 \x01(\t\x12\'\n\x07headers\x18\x03 \x03(\x0b\x32\x16.google.rpc.HttpHeader\x12\x0c\n\x04\x62ody\x18\x04 \x01(\x0c\"(\n\nHttpHeader\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\tBX\n\x0e\x63om.google.rpcB\tHttpProtoP\x01Z3google.golang.org/genproto/googleapis/rpc/http;http\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
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}"
23
28
  end
24
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."
25
32
  end
26
33
 
27
34
  module Google
@@ -31,3 +38,70 @@ module Google
31
38
  HttpHeader = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.HttpHeader").msgclass
32
39
  end
33
40
  end
41
+
42
+ #### Source proto file: google/rpc/http.proto ####
43
+ #
44
+ # // Copyright 2024 Google LLC
45
+ # //
46
+ # // Licensed under the Apache License, Version 2.0 (the "License");
47
+ # // you may not use this file except in compliance with the License.
48
+ # // You may obtain a copy of the License at
49
+ # //
50
+ # // http://www.apache.org/licenses/LICENSE-2.0
51
+ # //
52
+ # // Unless required by applicable law or agreed to in writing, software
53
+ # // distributed under the License is distributed on an "AS IS" BASIS,
54
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
55
+ # // See the License for the specific language governing permissions and
56
+ # // limitations under the License.
57
+ #
58
+ # syntax = "proto3";
59
+ #
60
+ # package google.rpc;
61
+ #
62
+ # option go_package = "google.golang.org/genproto/googleapis/rpc/http;http";
63
+ # option java_multiple_files = true;
64
+ # option java_outer_classname = "HttpProto";
65
+ # option java_package = "com.google.rpc";
66
+ # option objc_class_prefix = "RPC";
67
+ #
68
+ # // Represents an HTTP request.
69
+ # message HttpRequest {
70
+ # // The HTTP request method.
71
+ # string method = 1;
72
+ #
73
+ # // The HTTP request URI.
74
+ # string uri = 2;
75
+ #
76
+ # // The HTTP request headers. The ordering of the headers is significant.
77
+ # // Multiple headers with the same key may present for the request.
78
+ # repeated HttpHeader headers = 3;
79
+ #
80
+ # // The HTTP request body. If the body is not expected, it should be empty.
81
+ # bytes body = 4;
82
+ # }
83
+ #
84
+ # // Represents an HTTP response.
85
+ # message HttpResponse {
86
+ # // The HTTP status code, such as 200 or 404.
87
+ # int32 status = 1;
88
+ #
89
+ # // The HTTP reason phrase, such as "OK" or "Not Found".
90
+ # string reason = 2;
91
+ #
92
+ # // The HTTP response headers. The ordering of the headers is significant.
93
+ # // Multiple headers with the same key may present for the response.
94
+ # repeated HttpHeader headers = 3;
95
+ #
96
+ # // The HTTP response body. If the body is not expected, it should be empty.
97
+ # bytes body = 4;
98
+ # }
99
+ #
100
+ # // Represents an HTTP header.
101
+ # message HttpHeader {
102
+ # // The HTTP header key. It is case insensitive.
103
+ # string key = 1;
104
+ #
105
+ # // The HTTP header value.
106
+ # string value = 2;
107
+ # }
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/rpc/status.proto
3
4
 
@@ -5,14 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/any_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/rpc/status.proto", :syntax => :proto3) do
10
- add_message "google.rpc.Status" do
11
- optional :code, :int32, 1
12
- optional :message, :string, 2
13
- repeated :details, :message, 3, "google.protobuf.Any"
9
+
10
+ descriptor_data = "\n\x17google/rpc/status.proto\x12\ngoogle.rpc\x1a\x19google/protobuf/any.proto\"N\n\x06Status\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12%\n\x07\x64\x65tails\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyBa\n\x0e\x63om.google.rpcB\x0bStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status\xf8\x01\x01\xa2\x02\x03RPCb\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+
14
+ begin
15
+ pool.add_serialized_file(descriptor_data)
16
+ rescue TypeError
17
+ # Compatibility code: will be removed in the next major version.
18
+ require 'google/protobuf/descriptor_pb'
19
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
20
+ parsed.clear_dependency
21
+ serialized = parsed.class.encode(parsed)
22
+ file = pool.add_serialized_file(serialized)
23
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
24
+ imports = [
25
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
26
+ ]
27
+ imports.each do |type_name, expected_filename|
28
+ import_file = pool.lookup(type_name).file_descriptor
29
+ if import_file.name != expected_filename
30
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
14
31
  end
15
32
  end
33
+ warn "Each proto file must use a consistent fully-qualified name."
34
+ warn "This will become an error in the next major version."
16
35
  end
17
36
 
18
37
  module Google
@@ -20,3 +39,55 @@ module Google
20
39
  Status = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.rpc.Status").msgclass
21
40
  end
22
41
  end
42
+
43
+ #### Source proto file: google/rpc/status.proto ####
44
+ #
45
+ # // Copyright 2024 Google LLC
46
+ # //
47
+ # // Licensed under the Apache License, Version 2.0 (the "License");
48
+ # // you may not use this file except in compliance with the License.
49
+ # // You may obtain a copy of the License at
50
+ # //
51
+ # // http://www.apache.org/licenses/LICENSE-2.0
52
+ # //
53
+ # // Unless required by applicable law or agreed to in writing, software
54
+ # // distributed under the License is distributed on an "AS IS" BASIS,
55
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
56
+ # // See the License for the specific language governing permissions and
57
+ # // limitations under the License.
58
+ #
59
+ # syntax = "proto3";
60
+ #
61
+ # package google.rpc;
62
+ #
63
+ # import "google/protobuf/any.proto";
64
+ #
65
+ # option cc_enable_arenas = true;
66
+ # option go_package = "google.golang.org/genproto/googleapis/rpc/status;status";
67
+ # option java_multiple_files = true;
68
+ # option java_outer_classname = "StatusProto";
69
+ # option java_package = "com.google.rpc";
70
+ # option objc_class_prefix = "RPC";
71
+ #
72
+ # // The `Status` type defines a logical error model that is suitable for
73
+ # // different programming environments, including REST APIs and RPC APIs. It is
74
+ # // used by [gRPC](https://github.com/grpc). Each `Status` message contains
75
+ # // three pieces of data: error code, error message, and error details.
76
+ # //
77
+ # // You can find out more about this error model and how to work with it in the
78
+ # // [API Design Guide](https://cloud.google.com/apis/design/errors).
79
+ # message Status {
80
+ # // The status code, which should be an enum value of
81
+ # // [google.rpc.Code][google.rpc.Code].
82
+ # int32 code = 1;
83
+ #
84
+ # // A developer-facing error message, which should be in English. Any
85
+ # // user-facing error message should be localized and sent in the
86
+ # // [google.rpc.Status.details][google.rpc.Status.details] field, or localized
87
+ # // by the client.
88
+ # string message = 2;
89
+ #
90
+ # // A list of messages that carry the error details. There is a common set of
91
+ # // message types for APIs to use.
92
+ # repeated google.protobuf.Any details = 3;
93
+ # }