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,33 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/backend.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/backend.proto", :syntax => :proto3) do
8
- add_message "google.api.Backend" do
9
- repeated :rules, :message, 1, "google.api.BackendRule"
10
- end
11
- add_message "google.api.BackendRule" do
12
- optional :selector, :string, 1
13
- optional :address, :string, 2
14
- optional :deadline, :double, 3
15
- optional :min_deadline, :double, 4
16
- optional :operation_deadline, :double, 5
17
- optional :path_translation, :enum, 6, "google.api.BackendRule.PathTranslation"
18
- optional :protocol, :string, 9
19
- map :overrides_by_request_protocol, :string, :message, 10, "google.api.BackendRule"
20
- oneof :authentication do
21
- optional :jwt_audience, :string, 7
22
- optional :disable_auth, :bool, 8
23
- end
24
- end
25
- add_enum "google.api.BackendRule.PathTranslation" do
26
- value :PATH_TRANSLATION_UNSPECIFIED, 0
27
- value :CONSTANT_ADDRESS, 1
28
- value :APPEND_PATH_TO_ADDRESS, 2
7
+
8
+ descriptor_data = "\n\x18google/api/backend.proto\x12\ngoogle.api\"1\n\x07\x42\x61\x63kend\x12&\n\x05rules\x18\x01 \x03(\x0b\x32\x17.google.api.BackendRule\"\xb2\x04\n\x0b\x42\x61\x63kendRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x10\n\x08\x64\x65\x61\x64line\x18\x03 \x01(\x01\x12\x18\n\x0cmin_deadline\x18\x04 \x01(\x01\x42\x02\x18\x01\x12\x1a\n\x12operation_deadline\x18\x05 \x01(\x01\x12\x41\n\x10path_translation\x18\x06 \x01(\x0e\x32\'.google.api.BackendRule.PathTranslation\x12\x16\n\x0cjwt_audience\x18\x07 \x01(\tH\x00\x12\x16\n\x0c\x64isable_auth\x18\x08 \x01(\x08H\x00\x12\x10\n\x08protocol\x18\t \x01(\t\x12^\n\x1doverrides_by_request_protocol\x18\n \x03(\x0b\x32\x37.google.api.BackendRule.OverridesByRequestProtocolEntry\x1aZ\n\x1fOverridesByRequestProtocolEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.google.api.BackendRule:\x02\x38\x01\"e\n\x0fPathTranslation\x12 \n\x1cPATH_TRANSLATION_UNSPECIFIED\x10\x00\x12\x14\n\x10\x43ONSTANT_ADDRESS\x10\x01\x12\x1a\n\x16\x41PPEND_PATH_TO_ADDRESS\x10\x02\x42\x10\n\x0e\x61uthenticationBn\n\x0e\x63om.google.apiB\x0c\x42\x61\x63kendProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
9
+
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}"
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
@@ -37,3 +38,191 @@ module Google
37
38
  BackendRule::PathTranslation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.BackendRule.PathTranslation").enummodule
38
39
  end
39
40
  end
41
+
42
+ #### Source proto file: google/api/backend.proto ####
43
+ #
44
+ # // Copyright 2023 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.api;
61
+ #
62
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
63
+ # option java_multiple_files = true;
64
+ # option java_outer_classname = "BackendProto";
65
+ # option java_package = "com.google.api";
66
+ # option objc_class_prefix = "GAPI";
67
+ #
68
+ # // `Backend` defines the backend configuration for a service.
69
+ # message Backend {
70
+ # // A list of API backend rules that apply to individual API methods.
71
+ # //
72
+ # // **NOTE:** All service configuration rules follow "last one wins" order.
73
+ # repeated BackendRule rules = 1;
74
+ # }
75
+ #
76
+ # // A backend rule provides configuration for an individual API element.
77
+ # message BackendRule {
78
+ # // Path Translation specifies how to combine the backend address with the
79
+ # // request path in order to produce the appropriate forwarding URL for the
80
+ # // request.
81
+ # //
82
+ # // Path Translation is applicable only to HTTP-based backends. Backends which
83
+ # // do not accept requests over HTTP/HTTPS should leave `path_translation`
84
+ # // unspecified.
85
+ # enum PathTranslation {
86
+ # PATH_TRANSLATION_UNSPECIFIED = 0;
87
+ #
88
+ # // Use the backend address as-is, with no modification to the path. If the
89
+ # // URL pattern contains variables, the variable names and values will be
90
+ # // appended to the query string. If a query string parameter and a URL
91
+ # // pattern variable have the same name, this may result in duplicate keys in
92
+ # // the query string.
93
+ # //
94
+ # // # Examples
95
+ # //
96
+ # // Given the following operation config:
97
+ # //
98
+ # // Method path: /api/company/{cid}/user/{uid}
99
+ # // Backend address: https://example.cloudfunctions.net/getUser
100
+ # //
101
+ # // Requests to the following request paths will call the backend at the
102
+ # // translated path:
103
+ # //
104
+ # // Request path: /api/company/widgetworks/user/johndoe
105
+ # // Translated:
106
+ # // https://example.cloudfunctions.net/getUser?cid=widgetworks&uid=johndoe
107
+ # //
108
+ # // Request path: /api/company/widgetworks/user/johndoe?timezone=EST
109
+ # // Translated:
110
+ # // https://example.cloudfunctions.net/getUser?timezone=EST&cid=widgetworks&uid=johndoe
111
+ # CONSTANT_ADDRESS = 1;
112
+ #
113
+ # // The request path will be appended to the backend address.
114
+ # //
115
+ # // # Examples
116
+ # //
117
+ # // Given the following operation config:
118
+ # //
119
+ # // Method path: /api/company/{cid}/user/{uid}
120
+ # // Backend address: https://example.appspot.com
121
+ # //
122
+ # // Requests to the following request paths will call the backend at the
123
+ # // translated path:
124
+ # //
125
+ # // Request path: /api/company/widgetworks/user/johndoe
126
+ # // Translated:
127
+ # // https://example.appspot.com/api/company/widgetworks/user/johndoe
128
+ # //
129
+ # // Request path: /api/company/widgetworks/user/johndoe?timezone=EST
130
+ # // Translated:
131
+ # // https://example.appspot.com/api/company/widgetworks/user/johndoe?timezone=EST
132
+ # APPEND_PATH_TO_ADDRESS = 2;
133
+ # }
134
+ #
135
+ # // Selects the methods to which this rule applies.
136
+ # //
137
+ # // Refer to [selector][google.api.DocumentationRule.selector] for syntax
138
+ # // details.
139
+ # string selector = 1;
140
+ #
141
+ # // The address of the API backend.
142
+ # //
143
+ # // The scheme is used to determine the backend protocol and security.
144
+ # // The following schemes are accepted:
145
+ # //
146
+ # // SCHEME PROTOCOL SECURITY
147
+ # // http:// HTTP None
148
+ # // https:// HTTP TLS
149
+ # // grpc:// gRPC None
150
+ # // grpcs:// gRPC TLS
151
+ # //
152
+ # // It is recommended to explicitly include a scheme. Leaving out the scheme
153
+ # // may cause constrasting behaviors across platforms.
154
+ # //
155
+ # // If the port is unspecified, the default is:
156
+ # // - 80 for schemes without TLS
157
+ # // - 443 for schemes with TLS
158
+ # //
159
+ # // For HTTP backends, use [protocol][google.api.BackendRule.protocol]
160
+ # // to specify the protocol version.
161
+ # string address = 2;
162
+ #
163
+ # // The number of seconds to wait for a response from a request. The default
164
+ # // varies based on the request protocol and deployment environment.
165
+ # double deadline = 3;
166
+ #
167
+ # // Deprecated, do not use.
168
+ # double min_deadline = 4 [deprecated = true];
169
+ #
170
+ # // The number of seconds to wait for the completion of a long running
171
+ # // operation. The default is no deadline.
172
+ # double operation_deadline = 5;
173
+ #
174
+ # PathTranslation path_translation = 6;
175
+ #
176
+ # // Authentication settings used by the backend.
177
+ # //
178
+ # // These are typically used to provide service management functionality to
179
+ # // a backend served on a publicly-routable URL. The `authentication`
180
+ # // details should match the authentication behavior used by the backend.
181
+ # //
182
+ # // For example, specifying `jwt_audience` implies that the backend expects
183
+ # // authentication via a JWT.
184
+ # //
185
+ # // When authentication is unspecified, the resulting behavior is the same
186
+ # // as `disable_auth` set to `true`.
187
+ # //
188
+ # // Refer to https://developers.google.com/identity/protocols/OpenIDConnect for
189
+ # // JWT ID token.
190
+ # oneof authentication {
191
+ # // The JWT audience is used when generating a JWT ID token for the backend.
192
+ # // This ID token will be added in the HTTP "authorization" header, and sent
193
+ # // to the backend.
194
+ # string jwt_audience = 7;
195
+ #
196
+ # // When disable_auth is true, a JWT ID token won't be generated and the
197
+ # // original "Authorization" HTTP header will be preserved. If the header is
198
+ # // used to carry the original token and is expected by the backend, this
199
+ # // field must be set to true to preserve the header.
200
+ # bool disable_auth = 8;
201
+ # }
202
+ #
203
+ # // The protocol used for sending a request to the backend.
204
+ # // The supported values are "http/1.1" and "h2".
205
+ # //
206
+ # // The default value is inferred from the scheme in the
207
+ # // [address][google.api.BackendRule.address] field:
208
+ # //
209
+ # // SCHEME PROTOCOL
210
+ # // http:// http/1.1
211
+ # // https:// http/1.1
212
+ # // grpc:// h2
213
+ # // grpcs:// h2
214
+ # //
215
+ # // For secure HTTP backends (https://) that support HTTP/2, set this field
216
+ # // to "h2" for improved performance.
217
+ # //
218
+ # // Configuring this field to non-default values is only supported for secure
219
+ # // HTTP backends. This field will be ignored for all other backends.
220
+ # //
221
+ # // See
222
+ # // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
223
+ # // for more details on the supported values.
224
+ # string protocol = 9;
225
+ #
226
+ # // The map between request protocol and the backend address.
227
+ # map<string, BackendRule> overrides_by_request_protocol = 10;
228
+ # }
@@ -1,18 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/billing.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/billing.proto", :syntax => :proto3) do
8
- add_message "google.api.Billing" do
9
- repeated :consumer_destinations, :message, 8, "google.api.Billing.BillingDestination"
10
- end
11
- add_message "google.api.Billing.BillingDestination" do
12
- optional :monitored_resource, :string, 1
13
- repeated :metrics, :string, 2
7
+
8
+ descriptor_data = "\n\x18google/api/billing.proto\x12\ngoogle.api\"\x93\x01\n\x07\x42illing\x12\x45\n\x15\x63onsumer_destinations\x18\x08 \x03(\x0b\x32&.google.api.Billing.BillingDestination\x1a\x41\n\x12\x42illingDestination\x12\x1a\n\x12monitored_resource\x18\x01 \x01(\t\x12\x0f\n\x07metrics\x18\x02 \x03(\tBn\n\x0e\x63om.google.apiB\x0c\x42illingProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
9
+
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}"
14
28
  end
15
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."
16
32
  end
17
33
 
18
34
  module Google
@@ -21,3 +37,83 @@ module Google
21
37
  Billing::BillingDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Billing.BillingDestination").msgclass
22
38
  end
23
39
  end
40
+
41
+ #### Source proto file: google/api/billing.proto ####
42
+ #
43
+ # // Copyright 2023 Google LLC
44
+ # //
45
+ # // Licensed under the Apache License, Version 2.0 (the "License");
46
+ # // you may not use this file except in compliance with the License.
47
+ # // You may obtain a copy of the License at
48
+ # //
49
+ # // http://www.apache.org/licenses/LICENSE-2.0
50
+ # //
51
+ # // Unless required by applicable law or agreed to in writing, software
52
+ # // distributed under the License is distributed on an "AS IS" BASIS,
53
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
54
+ # // See the License for the specific language governing permissions and
55
+ # // limitations under the License.
56
+ #
57
+ # syntax = "proto3";
58
+ #
59
+ # package google.api;
60
+ #
61
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
62
+ # option java_multiple_files = true;
63
+ # option java_outer_classname = "BillingProto";
64
+ # option java_package = "com.google.api";
65
+ # option objc_class_prefix = "GAPI";
66
+ #
67
+ # // Billing related configuration of the service.
68
+ # //
69
+ # // The following example shows how to configure monitored resources and metrics
70
+ # // for billing, `consumer_destinations` is the only supported destination and
71
+ # // the monitored resources need at least one label key
72
+ # // `cloud.googleapis.com/location` to indicate the location of the billing
73
+ # // usage, using different monitored resources between monitoring and billing is
74
+ # // recommended so they can be evolved independently:
75
+ # //
76
+ # //
77
+ # // monitored_resources:
78
+ # // - type: library.googleapis.com/billing_branch
79
+ # // labels:
80
+ # // - key: cloud.googleapis.com/location
81
+ # // description: |
82
+ # // Predefined label to support billing location restriction.
83
+ # // - key: city
84
+ # // description: |
85
+ # // Custom label to define the city where the library branch is located
86
+ # // in.
87
+ # // - key: name
88
+ # // description: Custom label to define the name of the library branch.
89
+ # // metrics:
90
+ # // - name: library.googleapis.com/book/borrowed_count
91
+ # // metric_kind: DELTA
92
+ # // value_type: INT64
93
+ # // unit: "1"
94
+ # // billing:
95
+ # // consumer_destinations:
96
+ # // - monitored_resource: library.googleapis.com/billing_branch
97
+ # // metrics:
98
+ # // - library.googleapis.com/book/borrowed_count
99
+ # message Billing {
100
+ # // Configuration of a specific billing destination (Currently only support
101
+ # // bill against consumer project).
102
+ # message BillingDestination {
103
+ # // The monitored resource type. The type must be defined in
104
+ # // [Service.monitored_resources][google.api.Service.monitored_resources]
105
+ # // section.
106
+ # string monitored_resource = 1;
107
+ #
108
+ # // Names of the metrics to report to this billing destination.
109
+ # // Each name must be defined in
110
+ # // [Service.metrics][google.api.Service.metrics] section.
111
+ # repeated string metrics = 2;
112
+ # }
113
+ #
114
+ # // Billing configurations for sending metrics to the consumer project.
115
+ # // There can be multiple consumer destinations per service, each one must have
116
+ # // a different monitored resource type. A metric can be used in at most
117
+ # // one consumer destination.
118
+ # repeated BillingDestination consumer_destinations = 8;
119
+ # }