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,36 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/resource.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/resource.proto", :syntax => :proto3) do
8
- add_message "google.api.ResourceDescriptor" do
9
- optional :type, :string, 1
10
- repeated :pattern, :string, 2
11
- optional :name_field, :string, 3
12
- optional :history, :enum, 4, "google.api.ResourceDescriptor.History"
13
- optional :plural, :string, 5
14
- optional :singular, :string, 6
15
- repeated :style, :enum, 10, "google.api.ResourceDescriptor.Style"
16
- end
17
- add_enum "google.api.ResourceDescriptor.History" do
18
- value :HISTORY_UNSPECIFIED, 0
19
- value :ORIGINALLY_SINGLE_PATTERN, 1
20
- value :FUTURE_MULTI_PATTERN, 2
21
- end
22
- add_enum "google.api.ResourceDescriptor.Style" do
23
- value :STYLE_UNSPECIFIED, 0
24
- value :DECLARATIVE_FRIENDLY, 1
25
- end
26
- add_message "google.api.ResourceReference" do
27
- optional :type, :string, 1
28
- optional :child_type, :string, 2
7
+ require 'google/protobuf/descriptor_pb'
8
+
9
+
10
+ descriptor_data = "\n\x19google/api/resource.proto\x12\ngoogle.api\x1a google/protobuf/descriptor.proto\"\xee\x02\n\x12ResourceDescriptor\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0f\n\x07pattern\x18\x02 \x03(\t\x12\x12\n\nname_field\x18\x03 \x01(\t\x12\x37\n\x07history\x18\x04 \x01(\x0e\x32&.google.api.ResourceDescriptor.History\x12\x0e\n\x06plural\x18\x05 \x01(\t\x12\x10\n\x08singular\x18\x06 \x01(\t\x12\x33\n\x05style\x18\n \x03(\x0e\x32$.google.api.ResourceDescriptor.Style\"[\n\x07History\x12\x17\n\x13HISTORY_UNSPECIFIED\x10\x00\x12\x1d\n\x19ORIGINALLY_SINGLE_PATTERN\x10\x01\x12\x18\n\x14\x46UTURE_MULTI_PATTERN\x10\x02\"8\n\x05Style\x12\x15\n\x11STYLE_UNSPECIFIED\x10\x00\x12\x18\n\x14\x44\x45\x43LARATIVE_FRIENDLY\x10\x01\"5\n\x11ResourceReference\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x12\n\nchild_type\x18\x02 \x01(\t:Y\n\x12resource_reference\x12\x1d.google.protobuf.FieldOptions\x18\x9f\x08 \x01(\x0b\x32\x1d.google.api.ResourceReference:Z\n\x13resource_definition\x12\x1c.google.protobuf.FileOptions\x18\x9d\x08 \x03(\x0b\x32\x1e.google.api.ResourceDescriptor:R\n\x08resource\x12\x1f.google.protobuf.MessageOptions\x18\x9d\x08 \x01(\x0b\x32\x1e.google.api.ResourceDescriptorBn\n\x0e\x63om.google.apiB\rResourceProtoP\x01ZAgoogle.golang.org/genproto/googleapis/api/annotations;annotations\xf8\x01\x01\xa2\x02\x04GAPIb\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
+ ]
26
+ imports.each do |type_name, expected_filename|
27
+ import_file = pool.lookup(type_name).file_descriptor
28
+ if import_file.name != expected_filename
29
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
29
30
  end
30
31
  end
32
+ warn "Each proto file must use a consistent fully-qualified name."
33
+ warn "This will become an error in the next major version."
31
34
  end
32
35
 
33
36
  module Google
@@ -38,3 +41,244 @@ module Google
38
41
  ResourceReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.ResourceReference").msgclass
39
42
  end
40
43
  end
44
+
45
+ #### Source proto file: google/api/resource.proto ####
46
+ #
47
+ # // Copyright 2023 Google LLC
48
+ # //
49
+ # // Licensed under the Apache License, Version 2.0 (the "License");
50
+ # // you may not use this file except in compliance with the License.
51
+ # // You may obtain a copy of the License at
52
+ # //
53
+ # // http://www.apache.org/licenses/LICENSE-2.0
54
+ # //
55
+ # // Unless required by applicable law or agreed to in writing, software
56
+ # // distributed under the License is distributed on an "AS IS" BASIS,
57
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
+ # // See the License for the specific language governing permissions and
59
+ # // limitations under the License.
60
+ #
61
+ # syntax = "proto3";
62
+ #
63
+ # package google.api;
64
+ #
65
+ # import "google/protobuf/descriptor.proto";
66
+ #
67
+ # option cc_enable_arenas = true;
68
+ # option go_package = "google.golang.org/genproto/googleapis/api/annotations;annotations";
69
+ # option java_multiple_files = true;
70
+ # option java_outer_classname = "ResourceProto";
71
+ # option java_package = "com.google.api";
72
+ # option objc_class_prefix = "GAPI";
73
+ #
74
+ # extend google.protobuf.FieldOptions {
75
+ # // An annotation that describes a resource reference, see
76
+ # // [ResourceReference][].
77
+ # google.api.ResourceReference resource_reference = 1055;
78
+ # }
79
+ #
80
+ # extend google.protobuf.FileOptions {
81
+ # // An annotation that describes a resource definition without a corresponding
82
+ # // message; see [ResourceDescriptor][].
83
+ # repeated google.api.ResourceDescriptor resource_definition = 1053;
84
+ # }
85
+ #
86
+ # extend google.protobuf.MessageOptions {
87
+ # // An annotation that describes a resource definition, see
88
+ # // [ResourceDescriptor][].
89
+ # google.api.ResourceDescriptor resource = 1053;
90
+ # }
91
+ #
92
+ # // A simple descriptor of a resource type.
93
+ # //
94
+ # // ResourceDescriptor annotates a resource message (either by means of a
95
+ # // protobuf annotation or use in the service config), and associates the
96
+ # // resource's schema, the resource type, and the pattern of the resource name.
97
+ # //
98
+ # // Example:
99
+ # //
100
+ # // message Topic {
101
+ # // // Indicates this message defines a resource schema.
102
+ # // // Declares the resource type in the format of {service}/{kind}.
103
+ # // // For Kubernetes resources, the format is {api group}/{kind}.
104
+ # // option (google.api.resource) = {
105
+ # // type: "pubsub.googleapis.com/Topic"
106
+ # // pattern: "projects/{project}/topics/{topic}"
107
+ # // };
108
+ # // }
109
+ # //
110
+ # // The ResourceDescriptor Yaml config will look like:
111
+ # //
112
+ # // resources:
113
+ # // - type: "pubsub.googleapis.com/Topic"
114
+ # // pattern: "projects/{project}/topics/{topic}"
115
+ # //
116
+ # // Sometimes, resources have multiple patterns, typically because they can
117
+ # // live under multiple parents.
118
+ # //
119
+ # // Example:
120
+ # //
121
+ # // message LogEntry {
122
+ # // option (google.api.resource) = {
123
+ # // type: "logging.googleapis.com/LogEntry"
124
+ # // pattern: "projects/{project}/logs/{log}"
125
+ # // pattern: "folders/{folder}/logs/{log}"
126
+ # // pattern: "organizations/{organization}/logs/{log}"
127
+ # // pattern: "billingAccounts/{billing_account}/logs/{log}"
128
+ # // };
129
+ # // }
130
+ # //
131
+ # // The ResourceDescriptor Yaml config will look like:
132
+ # //
133
+ # // resources:
134
+ # // - type: 'logging.googleapis.com/LogEntry'
135
+ # // pattern: "projects/{project}/logs/{log}"
136
+ # // pattern: "folders/{folder}/logs/{log}"
137
+ # // pattern: "organizations/{organization}/logs/{log}"
138
+ # // pattern: "billingAccounts/{billing_account}/logs/{log}"
139
+ # message ResourceDescriptor {
140
+ # // A description of the historical or future-looking state of the
141
+ # // resource pattern.
142
+ # enum History {
143
+ # // The "unset" value.
144
+ # HISTORY_UNSPECIFIED = 0;
145
+ #
146
+ # // The resource originally had one pattern and launched as such, and
147
+ # // additional patterns were added later.
148
+ # ORIGINALLY_SINGLE_PATTERN = 1;
149
+ #
150
+ # // The resource has one pattern, but the API owner expects to add more
151
+ # // later. (This is the inverse of ORIGINALLY_SINGLE_PATTERN, and prevents
152
+ # // that from being necessary once there are multiple patterns.)
153
+ # FUTURE_MULTI_PATTERN = 2;
154
+ # }
155
+ #
156
+ # // A flag representing a specific style that a resource claims to conform to.
157
+ # enum Style {
158
+ # // The unspecified value. Do not use.
159
+ # STYLE_UNSPECIFIED = 0;
160
+ #
161
+ # // This resource is intended to be "declarative-friendly".
162
+ # //
163
+ # // Declarative-friendly resources must be more strictly consistent, and
164
+ # // setting this to true communicates to tools that this resource should
165
+ # // adhere to declarative-friendly expectations.
166
+ # //
167
+ # // Note: This is used by the API linter (linter.aip.dev) to enable
168
+ # // additional checks.
169
+ # DECLARATIVE_FRIENDLY = 1;
170
+ # }
171
+ #
172
+ # // The resource type. It must be in the format of
173
+ # // {service_name}/{resource_type_kind}. The `resource_type_kind` must be
174
+ # // singular and must not include version numbers.
175
+ # //
176
+ # // Example: `storage.googleapis.com/Bucket`
177
+ # //
178
+ # // The value of the resource_type_kind must follow the regular expression
179
+ # // /[A-Za-z][a-zA-Z0-9]+/. It should start with an upper case character and
180
+ # // should use PascalCase (UpperCamelCase). The maximum number of
181
+ # // characters allowed for the `resource_type_kind` is 100.
182
+ # string type = 1;
183
+ #
184
+ # // Optional. The relative resource name pattern associated with this resource
185
+ # // type. The DNS prefix of the full resource name shouldn't be specified here.
186
+ # //
187
+ # // The path pattern must follow the syntax, which aligns with HTTP binding
188
+ # // syntax:
189
+ # //
190
+ # // Template = Segment { "/" Segment } ;
191
+ # // Segment = LITERAL | Variable ;
192
+ # // Variable = "{" LITERAL "}" ;
193
+ # //
194
+ # // Examples:
195
+ # //
196
+ # // - "projects/{project}/topics/{topic}"
197
+ # // - "projects/{project}/knowledgeBases/{knowledge_base}"
198
+ # //
199
+ # // The components in braces correspond to the IDs for each resource in the
200
+ # // hierarchy. It is expected that, if multiple patterns are provided,
201
+ # // the same component name (e.g. "project") refers to IDs of the same
202
+ # // type of resource.
203
+ # repeated string pattern = 2;
204
+ #
205
+ # // Optional. The field on the resource that designates the resource name
206
+ # // field. If omitted, this is assumed to be "name".
207
+ # string name_field = 3;
208
+ #
209
+ # // Optional. The historical or future-looking state of the resource pattern.
210
+ # //
211
+ # // Example:
212
+ # //
213
+ # // // The InspectTemplate message originally only supported resource
214
+ # // // names with organization, and project was added later.
215
+ # // message InspectTemplate {
216
+ # // option (google.api.resource) = {
217
+ # // type: "dlp.googleapis.com/InspectTemplate"
218
+ # // pattern:
219
+ # // "organizations/{organization}/inspectTemplates/{inspect_template}"
220
+ # // pattern: "projects/{project}/inspectTemplates/{inspect_template}"
221
+ # // history: ORIGINALLY_SINGLE_PATTERN
222
+ # // };
223
+ # // }
224
+ # History history = 4;
225
+ #
226
+ # // The plural name used in the resource name and permission names, such as
227
+ # // 'projects' for the resource name of 'projects/{project}' and the permission
228
+ # // name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
229
+ # // concept of the `plural` field in k8s CRD spec
230
+ # // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
231
+ # //
232
+ # // Note: The plural form is required even for singleton resources. See
233
+ # // https://aip.dev/156
234
+ # string plural = 5;
235
+ #
236
+ # // The same concept of the `singular` field in k8s CRD spec
237
+ # // https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
238
+ # // Such as "project" for the `resourcemanager.googleapis.com/Project` type.
239
+ # string singular = 6;
240
+ #
241
+ # // Style flag(s) for this resource.
242
+ # // These indicate that a resource is expected to conform to a given
243
+ # // style. See the specific style flags for additional information.
244
+ # repeated Style style = 10;
245
+ # }
246
+ #
247
+ # // Defines a proto annotation that describes a string field that refers to
248
+ # // an API resource.
249
+ # message ResourceReference {
250
+ # // The resource type that the annotated field references.
251
+ # //
252
+ # // Example:
253
+ # //
254
+ # // message Subscription {
255
+ # // string topic = 2 [(google.api.resource_reference) = {
256
+ # // type: "pubsub.googleapis.com/Topic"
257
+ # // }];
258
+ # // }
259
+ # //
260
+ # // Occasionally, a field may reference an arbitrary resource. In this case,
261
+ # // APIs use the special value * in their resource reference.
262
+ # //
263
+ # // Example:
264
+ # //
265
+ # // message GetIamPolicyRequest {
266
+ # // string resource = 2 [(google.api.resource_reference) = {
267
+ # // type: "*"
268
+ # // }];
269
+ # // }
270
+ # string type = 1;
271
+ #
272
+ # // The resource type of a child collection that the annotated field
273
+ # // references. This is useful for annotating the `parent` field that
274
+ # // doesn't have a fixed resource type.
275
+ # //
276
+ # // Example:
277
+ # //
278
+ # // message ListLogEntriesRequest {
279
+ # // string parent = 1 [(google.api.resource_reference) = {
280
+ # // child_type: "logging.googleapis.com/LogEntry"
281
+ # // };
282
+ # // }
283
+ # string child_type = 2;
284
+ # }