googleapis-common-protos-types 1.0.2 → 1.18.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 (64) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +173 -0
  3. data/README.md +19 -0
  4. data/lib/google/api/annotations_pb.rb +63 -1
  5. data/lib/google/api/auth_pb.rb +271 -30
  6. data/lib/google/api/backend_pb.rb +216 -11
  7. data/lib/google/api/billing_pb.rb +107 -11
  8. data/lib/google/api/client_pb.rb +534 -0
  9. data/lib/google/api/config_change_pb.rb +115 -19
  10. data/lib/google/api/consumer_pb.rb +113 -18
  11. data/lib/google/api/context_pb.rb +122 -10
  12. data/lib/google/api/control_pb.rb +73 -4
  13. data/lib/google/api/distribution_pb.rb +250 -38
  14. data/lib/google/api/documentation_pb.rb +199 -20
  15. data/lib/google/api/endpoint_pb.rb +98 -9
  16. data/lib/google/api/error_reason_pb.rb +663 -0
  17. data/lib/google/api/field_behavior_pb.rb +147 -0
  18. data/lib/google/api/field_info_pb.rb +151 -0
  19. data/lib/google/api/http_pb.rb +401 -23
  20. data/lib/google/api/httpbody_pb.rb +111 -6
  21. data/lib/google/api/label_pb.rb +78 -12
  22. data/lib/google/api/launch_stage_pb.rb +113 -0
  23. data/lib/google/api/log_pb.rb +85 -7
  24. data/lib/google/api/logging_pb.rb +111 -11
  25. data/lib/google/api/metric_pb.rb +326 -33
  26. data/lib/google/api/monitored_resource_pb.rb +165 -18
  27. data/lib/google/api/monitoring_pb.rb +137 -11
  28. data/lib/google/api/policy_pb.rb +127 -0
  29. data/lib/google/api/quota_pb.rb +215 -24
  30. data/lib/google/api/resource_pb.rb +289 -0
  31. data/lib/google/api/routing_pb.rb +505 -0
  32. data/lib/google/api/service_pb.rb +243 -33
  33. data/lib/google/api/source_info_pb.rb +62 -4
  34. data/lib/google/api/system_parameter_pb.rb +127 -15
  35. data/lib/google/api/usage_pb.rb +126 -13
  36. data/lib/google/api/visibility_pb.rb +157 -0
  37. data/lib/google/logging/type/http_request_pb.rb +136 -19
  38. data/lib/google/logging/type/log_severity_pb.rb +110 -13
  39. data/lib/google/longrunning/operations_pb.rb +288 -33
  40. data/lib/google/rpc/code_pb.rb +215 -20
  41. data/lib/google/rpc/context/attribute_context_pb.rb +403 -0
  42. data/lib/google/rpc/context/audit_context_pb.rb +94 -0
  43. data/lib/google/rpc/error_details_pb.rb +342 -63
  44. data/lib/google/rpc/http_pb.rb +107 -0
  45. data/lib/google/rpc/status_pb.rb +80 -6
  46. data/lib/google/type/calendar_period_pb.rb +97 -0
  47. data/lib/google/type/color_pb.rb +205 -7
  48. data/lib/google/type/date_pb.rb +81 -6
  49. data/lib/google/type/datetime_pb.rb +149 -0
  50. data/lib/google/type/dayofweek_pb.rb +79 -11
  51. data/lib/google/type/decimal_pb.rb +136 -0
  52. data/lib/google/type/expr_pb.rb +114 -0
  53. data/lib/google/type/fraction_pb.rb +74 -0
  54. data/lib/google/type/interval_pb.rb +90 -0
  55. data/lib/google/type/latlng_pb.rb +66 -5
  56. data/lib/google/type/localized_text_pb.rb +77 -0
  57. data/lib/google/type/money_pb.rb +71 -6
  58. data/lib/google/type/month_pb.rb +106 -0
  59. data/lib/google/type/phone_number_pb.rb +155 -0
  60. data/lib/google/type/postal_address_pb.rb +163 -14
  61. data/lib/google/type/quaternion_pb.rb +135 -0
  62. data/lib/google/type/timeofday_pb.rb +73 -7
  63. data/lib/googleapis/common/protos/types/version.rb +23 -0
  64. metadata +43 -43
@@ -1,19 +1,18 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/service.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- require 'google/api/annotations_pb'
7
7
  require 'google/api/auth_pb'
8
8
  require 'google/api/backend_pb'
9
9
  require 'google/api/billing_pb'
10
+ require 'google/api/client_pb'
10
11
  require 'google/api/context_pb'
11
12
  require 'google/api/control_pb'
12
13
  require 'google/api/documentation_pb'
13
14
  require 'google/api/endpoint_pb'
14
- require 'google/api/experimental/experimental_pb'
15
15
  require 'google/api/http_pb'
16
- require 'google/api/label_pb'
17
16
  require 'google/api/log_pb'
18
17
  require 'google/api/logging_pb'
19
18
  require 'google/api/metric_pb'
@@ -23,43 +22,254 @@ require 'google/api/quota_pb'
23
22
  require 'google/api/source_info_pb'
24
23
  require 'google/api/system_parameter_pb'
25
24
  require 'google/api/usage_pb'
26
- require 'google/protobuf/any_pb'
27
25
  require 'google/protobuf/api_pb'
28
26
  require 'google/protobuf/type_pb'
29
27
  require 'google/protobuf/wrappers_pb'
30
- Google::Protobuf::DescriptorPool.generated_pool.build do
31
- add_message "google.api.Service" do
32
- optional :config_version, :message, 20, "google.protobuf.UInt32Value"
33
- optional :name, :string, 1
34
- optional :id, :string, 33
35
- optional :title, :string, 2
36
- optional :producer_project_id, :string, 22
37
- repeated :apis, :message, 3, "google.protobuf.Api"
38
- repeated :types, :message, 4, "google.protobuf.Type"
39
- repeated :enums, :message, 5, "google.protobuf.Enum"
40
- optional :documentation, :message, 6, "google.api.Documentation"
41
- optional :backend, :message, 8, "google.api.Backend"
42
- optional :http, :message, 9, "google.api.Http"
43
- optional :quota, :message, 10, "google.api.Quota"
44
- optional :authentication, :message, 11, "google.api.Authentication"
45
- optional :context, :message, 12, "google.api.Context"
46
- optional :usage, :message, 15, "google.api.Usage"
47
- repeated :endpoints, :message, 18, "google.api.Endpoint"
48
- optional :control, :message, 21, "google.api.Control"
49
- repeated :logs, :message, 23, "google.api.LogDescriptor"
50
- repeated :metrics, :message, 24, "google.api.MetricDescriptor"
51
- repeated :monitored_resources, :message, 25, "google.api.MonitoredResourceDescriptor"
52
- optional :billing, :message, 26, "google.api.Billing"
53
- optional :logging, :message, 27, "google.api.Logging"
54
- optional :monitoring, :message, 28, "google.api.Monitoring"
55
- optional :system_parameters, :message, 29, "google.api.SystemParameters"
56
- optional :source_info, :message, 37, "google.api.SourceInfo"
57
- optional :experimental, :message, 101, "google.api.Experimental"
28
+
29
+
30
+ descriptor_data = "\n\x18google/api/service.proto\x12\ngoogle.api\x1a\x15google/api/auth.proto\x1a\x18google/api/backend.proto\x1a\x18google/api/billing.proto\x1a\x17google/api/client.proto\x1a\x18google/api/context.proto\x1a\x18google/api/control.proto\x1a\x1egoogle/api/documentation.proto\x1a\x19google/api/endpoint.proto\x1a\x15google/api/http.proto\x1a\x14google/api/log.proto\x1a\x18google/api/logging.proto\x1a\x17google/api/metric.proto\x1a#google/api/monitored_resource.proto\x1a\x1bgoogle/api/monitoring.proto\x1a\x16google/api/quota.proto\x1a\x1cgoogle/api/source_info.proto\x1a!google/api/system_parameter.proto\x1a\x16google/api/usage.proto\x1a\x19google/protobuf/api.proto\x1a\x1agoogle/protobuf/type.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x82\x08\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x1b\n\x13producer_project_id\x18\x16 \x01(\t\x12\n\n\x02id\x18! \x01(\t\x12\"\n\x04\x61pis\x18\x03 \x03(\x0b\x32\x14.google.protobuf.Api\x12$\n\x05types\x18\x04 \x03(\x0b\x32\x15.google.protobuf.Type\x12$\n\x05\x65nums\x18\x05 \x03(\x0b\x32\x15.google.protobuf.Enum\x12\x30\n\rdocumentation\x18\x06 \x01(\x0b\x32\x19.google.api.Documentation\x12$\n\x07\x62\x61\x63kend\x18\x08 \x01(\x0b\x32\x13.google.api.Backend\x12\x1e\n\x04http\x18\t \x01(\x0b\x32\x10.google.api.Http\x12 \n\x05quota\x18\n \x01(\x0b\x32\x11.google.api.Quota\x12\x32\n\x0e\x61uthentication\x18\x0b \x01(\x0b\x32\x1a.google.api.Authentication\x12$\n\x07\x63ontext\x18\x0c \x01(\x0b\x32\x13.google.api.Context\x12 \n\x05usage\x18\x0f \x01(\x0b\x32\x11.google.api.Usage\x12\'\n\tendpoints\x18\x12 \x03(\x0b\x32\x14.google.api.Endpoint\x12$\n\x07\x63ontrol\x18\x15 \x01(\x0b\x32\x13.google.api.Control\x12\'\n\x04logs\x18\x17 \x03(\x0b\x32\x19.google.api.LogDescriptor\x12-\n\x07metrics\x18\x18 \x03(\x0b\x32\x1c.google.api.MetricDescriptor\x12\x44\n\x13monitored_resources\x18\x19 \x03(\x0b\x32\'.google.api.MonitoredResourceDescriptor\x12$\n\x07\x62illing\x18\x1a \x01(\x0b\x32\x13.google.api.Billing\x12$\n\x07logging\x18\x1b \x01(\x0b\x32\x13.google.api.Logging\x12*\n\nmonitoring\x18\x1c \x01(\x0b\x32\x16.google.api.Monitoring\x12\x37\n\x11system_parameters\x18\x1d \x01(\x0b\x32\x1c.google.api.SystemParameters\x12+\n\x0bsource_info\x18% \x01(\x0b\x32\x16.google.api.SourceInfo\x12*\n\npublishing\x18- \x01(\x0b\x32\x16.google.api.Publishing\x12\x34\n\x0e\x63onfig_version\x18\x14 \x01(\x0b\x32\x1c.google.protobuf.UInt32ValueBn\n\x0e\x63om.google.apiB\x0cServiceProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\xa2\x02\x04GAPIb\x06proto3"
31
+
32
+ pool = Google::Protobuf::DescriptorPool.generated_pool
33
+
34
+ begin
35
+ pool.add_serialized_file(descriptor_data)
36
+ rescue TypeError
37
+ # Compatibility code: will be removed in the next major version.
38
+ require 'google/protobuf/descriptor_pb'
39
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
40
+ parsed.clear_dependency
41
+ serialized = parsed.class.encode(parsed)
42
+ file = pool.add_serialized_file(serialized)
43
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
44
+ imports = [
45
+ ["google.protobuf.Api", "google/protobuf/api.proto"],
46
+ ["google.protobuf.Type", "google/protobuf/type.proto"],
47
+ ["google.api.Documentation", "google/api/documentation.proto"],
48
+ ["google.api.Backend", "google/api/backend.proto"],
49
+ ["google.api.Http", "google/api/http.proto"],
50
+ ["google.api.Quota", "google/api/quota.proto"],
51
+ ["google.api.Authentication", "google/api/auth.proto"],
52
+ ["google.api.Context", "google/api/context.proto"],
53
+ ["google.api.Usage", "google/api/usage.proto"],
54
+ ["google.api.Endpoint", "google/api/endpoint.proto"],
55
+ ["google.api.Control", "google/api/control.proto"],
56
+ ["google.api.LogDescriptor", "google/api/log.proto"],
57
+ ["google.api.MetricDescriptor", "google/api/metric.proto"],
58
+ ["google.api.MonitoredResourceDescriptor", "google/api/monitored_resource.proto"],
59
+ ["google.api.Billing", "google/api/billing.proto"],
60
+ ["google.api.Logging", "google/api/logging.proto"],
61
+ ["google.api.Monitoring", "google/api/monitoring.proto"],
62
+ ["google.api.SystemParameters", "google/api/system_parameter.proto"],
63
+ ["google.api.SourceInfo", "google/api/source_info.proto"],
64
+ ["google.api.Publishing", "google/api/client.proto"],
65
+ ["google.protobuf.UInt32Value", "google/protobuf/wrappers.proto"],
66
+ ]
67
+ imports.each do |type_name, expected_filename|
68
+ import_file = pool.lookup(type_name).file_descriptor
69
+ if import_file.name != expected_filename
70
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
71
+ end
58
72
  end
73
+ warn "Each proto file must use a consistent fully-qualified name."
74
+ warn "This will become an error in the next major version."
59
75
  end
60
76
 
61
77
  module Google
62
78
  module Api
63
- Service = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Service").msgclass
79
+ Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Service").msgclass
64
80
  end
65
81
  end
82
+
83
+ #### Source proto file: google/api/service.proto ####
84
+ #
85
+ # // Copyright 2024 Google LLC
86
+ # //
87
+ # // Licensed under the Apache License, Version 2.0 (the "License");
88
+ # // you may not use this file except in compliance with the License.
89
+ # // You may obtain a copy of the License at
90
+ # //
91
+ # // http://www.apache.org/licenses/LICENSE-2.0
92
+ # //
93
+ # // Unless required by applicable law or agreed to in writing, software
94
+ # // distributed under the License is distributed on an "AS IS" BASIS,
95
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
96
+ # // See the License for the specific language governing permissions and
97
+ # // limitations under the License.
98
+ #
99
+ # syntax = "proto3";
100
+ #
101
+ # package google.api;
102
+ #
103
+ # import "google/api/auth.proto";
104
+ # import "google/api/backend.proto";
105
+ # import "google/api/billing.proto";
106
+ # import "google/api/client.proto";
107
+ # import "google/api/context.proto";
108
+ # import "google/api/control.proto";
109
+ # import "google/api/documentation.proto";
110
+ # import "google/api/endpoint.proto";
111
+ # import "google/api/http.proto";
112
+ # import "google/api/log.proto";
113
+ # import "google/api/logging.proto";
114
+ # import "google/api/metric.proto";
115
+ # import "google/api/monitored_resource.proto";
116
+ # import "google/api/monitoring.proto";
117
+ # import "google/api/quota.proto";
118
+ # import "google/api/source_info.proto";
119
+ # import "google/api/system_parameter.proto";
120
+ # import "google/api/usage.proto";
121
+ # import "google/protobuf/api.proto";
122
+ # import "google/protobuf/type.proto";
123
+ # import "google/protobuf/wrappers.proto";
124
+ #
125
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
126
+ # option java_multiple_files = true;
127
+ # option java_outer_classname = "ServiceProto";
128
+ # option java_package = "com.google.api";
129
+ # option objc_class_prefix = "GAPI";
130
+ #
131
+ # // `Service` is the root object of Google API service configuration (service
132
+ # // config). It describes the basic information about a logical service,
133
+ # // such as the service name and the user-facing title, and delegates other
134
+ # // aspects to sub-sections. Each sub-section is either a proto message or a
135
+ # // repeated proto message that configures a specific aspect, such as auth.
136
+ # // For more information, see each proto message definition.
137
+ # //
138
+ # // Example:
139
+ # //
140
+ # // type: google.api.Service
141
+ # // name: calendar.googleapis.com
142
+ # // title: Google Calendar API
143
+ # // apis:
144
+ # // - name: google.calendar.v3.Calendar
145
+ # //
146
+ # // visibility:
147
+ # // rules:
148
+ # // - selector: "google.calendar.v3.*"
149
+ # // restriction: PREVIEW
150
+ # // backend:
151
+ # // rules:
152
+ # // - selector: "google.calendar.v3.*"
153
+ # // address: calendar.example.com
154
+ # //
155
+ # // authentication:
156
+ # // providers:
157
+ # // - id: google_calendar_auth
158
+ # // jwks_uri: https://www.googleapis.com/oauth2/v1/certs
159
+ # // issuer: https://securetoken.google.com
160
+ # // rules:
161
+ # // - selector: "*"
162
+ # // requirements:
163
+ # // provider_id: google_calendar_auth
164
+ # message Service {
165
+ # // The service name, which is a DNS-like logical identifier for the
166
+ # // service, such as `calendar.googleapis.com`. The service name
167
+ # // typically goes through DNS verification to make sure the owner
168
+ # // of the service also owns the DNS name.
169
+ # string name = 1;
170
+ #
171
+ # // The product title for this service, it is the name displayed in Google
172
+ # // Cloud Console.
173
+ # string title = 2;
174
+ #
175
+ # // The Google project that owns this service.
176
+ # string producer_project_id = 22;
177
+ #
178
+ # // A unique ID for a specific instance of this message, typically assigned
179
+ # // by the client for tracking purpose. Must be no longer than 63 characters
180
+ # // and only lower case letters, digits, '.', '_' and '-' are allowed. If
181
+ # // empty, the server may choose to generate one instead.
182
+ # string id = 33;
183
+ #
184
+ # // A list of API interfaces exported by this service. Only the `name` field
185
+ # // of the [google.protobuf.Api][google.protobuf.Api] needs to be provided by
186
+ # // the configuration author, as the remaining fields will be derived from the
187
+ # // IDL during the normalization process. It is an error to specify an API
188
+ # // interface here which cannot be resolved against the associated IDL files.
189
+ # repeated google.protobuf.Api apis = 3;
190
+ #
191
+ # // A list of all proto message types included in this API service.
192
+ # // Types referenced directly or indirectly by the `apis` are automatically
193
+ # // included. Messages which are not referenced but shall be included, such as
194
+ # // types used by the `google.protobuf.Any` type, should be listed here by
195
+ # // name by the configuration author. Example:
196
+ # //
197
+ # // types:
198
+ # // - name: google.protobuf.Int32
199
+ # repeated google.protobuf.Type types = 4;
200
+ #
201
+ # // A list of all enum types included in this API service. Enums referenced
202
+ # // directly or indirectly by the `apis` are automatically included. Enums
203
+ # // which are not referenced but shall be included should be listed here by
204
+ # // name by the configuration author. Example:
205
+ # //
206
+ # // enums:
207
+ # // - name: google.someapi.v1.SomeEnum
208
+ # repeated google.protobuf.Enum enums = 5;
209
+ #
210
+ # // Additional API documentation.
211
+ # Documentation documentation = 6;
212
+ #
213
+ # // API backend configuration.
214
+ # Backend backend = 8;
215
+ #
216
+ # // HTTP configuration.
217
+ # Http http = 9;
218
+ #
219
+ # // Quota configuration.
220
+ # Quota quota = 10;
221
+ #
222
+ # // Auth configuration.
223
+ # Authentication authentication = 11;
224
+ #
225
+ # // Context configuration.
226
+ # Context context = 12;
227
+ #
228
+ # // Configuration controlling usage of this service.
229
+ # Usage usage = 15;
230
+ #
231
+ # // Configuration for network endpoints. If this is empty, then an endpoint
232
+ # // with the same name as the service is automatically generated to service all
233
+ # // defined APIs.
234
+ # repeated Endpoint endpoints = 18;
235
+ #
236
+ # // Configuration for the service control plane.
237
+ # Control control = 21;
238
+ #
239
+ # // Defines the logs used by this service.
240
+ # repeated LogDescriptor logs = 23;
241
+ #
242
+ # // Defines the metrics used by this service.
243
+ # repeated MetricDescriptor metrics = 24;
244
+ #
245
+ # // Defines the monitored resources used by this service. This is required
246
+ # // by the [Service.monitoring][google.api.Service.monitoring] and
247
+ # // [Service.logging][google.api.Service.logging] configurations.
248
+ # repeated MonitoredResourceDescriptor monitored_resources = 25;
249
+ #
250
+ # // Billing configuration.
251
+ # Billing billing = 26;
252
+ #
253
+ # // Logging configuration.
254
+ # Logging logging = 27;
255
+ #
256
+ # // Monitoring configuration.
257
+ # Monitoring monitoring = 28;
258
+ #
259
+ # // System parameter configuration.
260
+ # SystemParameters system_parameters = 29;
261
+ #
262
+ # // Output only. The source information for this configuration if available.
263
+ # SourceInfo source_info = 37;
264
+ #
265
+ # // Settings for [Google Cloud Client
266
+ # // libraries](https://cloud.google.com/apis/docs/cloud-client-libraries)
267
+ # // generated from APIs defined as protocol buffers.
268
+ # Publishing publishing = 45;
269
+ #
270
+ # // Obsolete. Do not use.
271
+ # //
272
+ # // This field has no semantic meaning. The service config compiler always
273
+ # // sets this field to `3`.
274
+ # google.protobuf.UInt32Value config_version = 20;
275
+ # }
@@ -1,17 +1,75 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/source_info.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/any_pb'
7
- Google::Protobuf::DescriptorPool.generated_pool.build do
8
- add_message "google.api.SourceInfo" do
9
- repeated :source_files, :message, 1, "google.protobuf.Any"
8
+
9
+
10
+ descriptor_data = "\n\x1cgoogle/api/source_info.proto\x12\ngoogle.api\x1a\x19google/protobuf/any.proto\"8\n\nSourceInfo\x12*\n\x0csource_files\x18\x01 \x03(\x0b\x32\x14.google.protobuf.AnyBq\n\x0e\x63om.google.apiB\x0fSourceInfoProtoP\x01ZEgoogle.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig\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
+ ["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}"
31
+ end
10
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."
11
35
  end
12
36
 
13
37
  module Google
14
38
  module Api
15
- SourceInfo = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SourceInfo").msgclass
39
+ SourceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SourceInfo").msgclass
16
40
  end
17
41
  end
42
+
43
+ #### Source proto file: google/api/source_info.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.api;
62
+ #
63
+ # import "google/protobuf/any.proto";
64
+ #
65
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
66
+ # option java_multiple_files = true;
67
+ # option java_outer_classname = "SourceInfoProto";
68
+ # option java_package = "com.google.api";
69
+ # option objc_class_prefix = "GAPI";
70
+ #
71
+ # // Source information used to create a Service Config
72
+ # message SourceInfo {
73
+ # // All files used during config generation.
74
+ # repeated google.protobuf.Any source_files = 1;
75
+ # }
@@ -1,27 +1,139 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/system_parameter.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_message "google.api.SystemParameters" do
8
- repeated :rules, :message, 1, "google.api.SystemParameterRule"
9
- end
10
- add_message "google.api.SystemParameterRule" do
11
- optional :selector, :string, 1
12
- repeated :parameters, :message, 2, "google.api.SystemParameter"
13
- end
14
- add_message "google.api.SystemParameter" do
15
- optional :name, :string, 1
16
- optional :http_header, :string, 2
17
- optional :url_query_parameter, :string, 3
7
+
8
+ descriptor_data = "\n!google/api/system_parameter.proto\x12\ngoogle.api\"B\n\x10SystemParameters\x12.\n\x05rules\x18\x01 \x03(\x0b\x32\x1f.google.api.SystemParameterRule\"X\n\x13SystemParameterRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12/\n\nparameters\x18\x02 \x03(\x0b\x32\x1b.google.api.SystemParameter\"Q\n\x0fSystemParameter\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0bhttp_header\x18\x02 \x01(\t\x12\x1b\n\x13url_query_parameter\x18\x03 \x01(\tBv\n\x0e\x63om.google.apiB\x14SystemParameterProtoP\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
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}"
28
+ end
18
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."
19
32
  end
20
33
 
21
34
  module Google
22
35
  module Api
23
- SystemParameters = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameters").msgclass
24
- SystemParameterRule = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameterRule").msgclass
25
- SystemParameter = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameter").msgclass
36
+ SystemParameters = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameters").msgclass
37
+ SystemParameterRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameterRule").msgclass
38
+ SystemParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameter").msgclass
26
39
  end
27
40
  end
41
+
42
+ #### Source proto file: google/api/system_parameter.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.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 = "SystemParameterProto";
65
+ # option java_package = "com.google.api";
66
+ # option objc_class_prefix = "GAPI";
67
+ #
68
+ # // ### System parameter configuration
69
+ # //
70
+ # // A system parameter is a special kind of parameter defined by the API
71
+ # // system, not by an individual API. It is typically mapped to an HTTP header
72
+ # // and/or a URL query parameter. This configuration specifies which methods
73
+ # // change the names of the system parameters.
74
+ # message SystemParameters {
75
+ # // Define system parameters.
76
+ # //
77
+ # // The parameters defined here will override the default parameters
78
+ # // implemented by the system. If this field is missing from the service
79
+ # // config, default system parameters will be used. Default system parameters
80
+ # // and names is implementation-dependent.
81
+ # //
82
+ # // Example: define api key for all methods
83
+ # //
84
+ # // system_parameters
85
+ # // rules:
86
+ # // - selector: "*"
87
+ # // parameters:
88
+ # // - name: api_key
89
+ # // url_query_parameter: api_key
90
+ # //
91
+ # //
92
+ # // Example: define 2 api key names for a specific method.
93
+ # //
94
+ # // system_parameters
95
+ # // rules:
96
+ # // - selector: "/ListShelves"
97
+ # // parameters:
98
+ # // - name: api_key
99
+ # // http_header: Api-Key1
100
+ # // - name: api_key
101
+ # // http_header: Api-Key2
102
+ # //
103
+ # // **NOTE:** All service configuration rules follow "last one wins" order.
104
+ # repeated SystemParameterRule rules = 1;
105
+ # }
106
+ #
107
+ # // Define a system parameter rule mapping system parameter definitions to
108
+ # // methods.
109
+ # message SystemParameterRule {
110
+ # // Selects the methods to which this rule applies. Use '*' to indicate all
111
+ # // methods in all APIs.
112
+ # //
113
+ # // Refer to [selector][google.api.DocumentationRule.selector] for syntax
114
+ # // details.
115
+ # string selector = 1;
116
+ #
117
+ # // Define parameters. Multiple names may be defined for a parameter.
118
+ # // For a given method call, only one of them should be used. If multiple
119
+ # // names are used the behavior is implementation-dependent.
120
+ # // If none of the specified names are present the behavior is
121
+ # // parameter-dependent.
122
+ # repeated SystemParameter parameters = 2;
123
+ # }
124
+ #
125
+ # // Define a parameter's name and location. The parameter may be passed as either
126
+ # // an HTTP header or a URL query parameter, and if both are passed the behavior
127
+ # // is implementation-dependent.
128
+ # message SystemParameter {
129
+ # // Define the name of the parameter, such as "api_key" . It is case sensitive.
130
+ # string name = 1;
131
+ #
132
+ # // Define the HTTP header name to use for the parameter. It is case
133
+ # // insensitive.
134
+ # string http_header = 2;
135
+ #
136
+ # // Define the URL query parameter name to use for the parameter. It is case
137
+ # // sensitive.
138
+ # string url_query_parameter = 3;
139
+ # }