googleapis-common-protos-types 1.7.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/lib/google/api/annotations_pb.rb +60 -2
- data/lib/google/api/auth_pb.rb +264 -34
- data/lib/google/api/backend_pb.rb +212 -23
- data/lib/google/api/billing_pb.rb +104 -8
- data/lib/google/api/client_pb.rb +422 -86
- data/lib/google/api/config_change_pb.rb +111 -17
- data/lib/google/api/consumer_pb.rb +109 -16
- data/lib/google/api/context_pb.rb +117 -11
- data/lib/google/api/control_pb.rb +71 -4
- data/lib/google/api/distribution_pb.rb +242 -39
- data/lib/google/api/documentation_pb.rb +195 -19
- data/lib/google/api/endpoint_pb.rb +100 -7
- data/lib/google/api/error_reason_pb.rb +597 -33
- data/lib/google/api/field_behavior_pb.rb +131 -11
- data/lib/google/api/http_pb.rb +406 -23
- data/lib/google/api/httpbody_pb.rb +109 -6
- data/lib/google/api/label_pb.rb +75 -11
- data/lib/google/api/launch_stage_pb.rb +99 -11
- data/lib/google/api/log_pb.rb +82 -7
- data/lib/google/api/logging_pb.rb +108 -9
- data/lib/google/api/metric_pb.rb +297 -38
- data/lib/google/api/monitored_resource_pb.rb +159 -17
- data/lib/google/api/monitoring_pb.rb +134 -9
- data/lib/google/api/policy_pb.rb +129 -0
- data/lib/google/api/quota_pb.rb +211 -21
- data/lib/google/api/resource_pb.rb +265 -23
- data/lib/google/api/routing_pb.rb +488 -8
- data/lib/google/api/service_pb.rb +239 -29
- data/lib/google/api/source_info_pb.rb +59 -4
- data/lib/google/api/system_parameter_pb.rb +123 -13
- data/lib/google/api/usage_pb.rb +123 -11
- data/lib/google/api/visibility_pb.rb +140 -8
- data/lib/google/logging/type/http_request_pb.rb +123 -18
- data/lib/google/logging/type/log_severity_pb.rb +98 -12
- data/lib/google/longrunning/operations_pb.rb +277 -37
- data/lib/google/rpc/code_pb.rb +213 -20
- data/lib/google/rpc/context/attribute_context_pb.rb +375 -66
- data/lib/google/rpc/context/audit_context_pb.rb +77 -8
- data/lib/google/rpc/error_details_pb.rb +313 -56
- data/lib/google/rpc/http_pb.rb +91 -17
- data/lib/google/rpc/status_pb.rb +77 -6
- data/lib/google/type/calendar_period_pb.rb +83 -11
- data/lib/google/type/color_pb.rb +202 -7
- data/lib/google/type/date_pb.rb +79 -6
- data/lib/google/type/datetime_pb.rb +132 -18
- data/lib/google/type/dayofweek_pb.rb +77 -11
- data/lib/google/type/decimal_pb.rb +122 -4
- data/lib/google/type/expr_pb.rb +100 -7
- data/lib/google/type/fraction_pb.rb +60 -5
- data/lib/google/type/interval_pb.rb +74 -5
- data/lib/google/type/latlng_pb.rb +64 -5
- data/lib/google/type/localized_text_pb.rb +63 -5
- data/lib/google/type/money_pb.rb +69 -6
- data/lib/google/type/month_pb.rb +92 -16
- data/lib/google/type/phone_number_pb.rb +140 -12
- data/lib/google/type/postal_address_pb.rb +161 -14
- data/lib/google/type/quaternion_pb.rb +121 -7
- data/lib/google/type/timeofday_pb.rb +71 -7
- data/lib/googleapis/common/protos/types/version.rb +1 -1
- metadata +6 -5
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/api/service.proto
|
3
4
|
|
@@ -25,37 +26,52 @@ require 'google/protobuf/api_pb'
|
|
25
26
|
require 'google/protobuf/type_pb'
|
26
27
|
require 'google/protobuf/wrappers_pb'
|
27
28
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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 => e
|
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}"
|
57
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
|
@@ -63,3 +79,197 @@ module Google
|
|
63
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 2023 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,3 +1,4 @@
|
|
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
|
|
@@ -5,12 +6,32 @@ require 'google/protobuf'
|
|
5
6
|
|
6
7
|
require 'google/protobuf/any_pb'
|
7
8
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
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 => e
|
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}"
|
12
31
|
end
|
13
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."
|
14
35
|
end
|
15
36
|
|
16
37
|
module Google
|
@@ -18,3 +39,37 @@ module Google
|
|
18
39
|
SourceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SourceInfo").msgclass
|
19
40
|
end
|
20
41
|
end
|
42
|
+
|
43
|
+
#### Source proto file: google/api/source_info.proto ####
|
44
|
+
#
|
45
|
+
# // Copyright 2023 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,23 +1,34 @@
|
|
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
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
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 => 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}"
|
19
28
|
end
|
20
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."
|
21
32
|
end
|
22
33
|
|
23
34
|
module Google
|
@@ -27,3 +38,102 @@ module Google
|
|
27
38
|
SystemParameter = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.SystemParameter").msgclass
|
28
39
|
end
|
29
40
|
end
|
41
|
+
|
42
|
+
#### Source proto file: google/api/system_parameter.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 = "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
|
+
# }
|
data/lib/google/api/usage_pb.rb
CHANGED
@@ -1,21 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/api/usage.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n\x16google/api/usage.proto\x12\ngoogle.api\"j\n\x05Usage\x12\x14\n\x0crequirements\x18\x01 \x03(\t\x12$\n\x05rules\x18\x06 \x03(\x0b\x32\x15.google.api.UsageRule\x12%\n\x1dproducer_notification_channel\x18\x07 \x01(\t\"]\n\tUsageRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12 \n\x18\x61llow_unregistered_calls\x18\x02 \x01(\x08\x12\x1c\n\x14skip_service_control\x18\x03 \x01(\x08\x42l\n\x0e\x63om.google.apiB\nUsageProtoP\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}"
|
17
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
|
@@ -24,3 +37,102 @@ module Google
|
|
24
37
|
UsageRule = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.UsageRule").msgclass
|
25
38
|
end
|
26
39
|
end
|
40
|
+
|
41
|
+
#### Source proto file: google/api/usage.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 = "UsageProto";
|
64
|
+
# option java_package = "com.google.api";
|
65
|
+
# option objc_class_prefix = "GAPI";
|
66
|
+
#
|
67
|
+
# // Configuration controlling usage of a service.
|
68
|
+
# message Usage {
|
69
|
+
# // Requirements that must be satisfied before a consumer project can use the
|
70
|
+
# // service. Each requirement is of the form <service.name>/<requirement-id>;
|
71
|
+
# // for example 'serviceusage.googleapis.com/billing-enabled'.
|
72
|
+
# //
|
73
|
+
# // For Google APIs, a Terms of Service requirement must be included here.
|
74
|
+
# // Google Cloud APIs must include "serviceusage.googleapis.com/tos/cloud".
|
75
|
+
# // Other Google APIs should include
|
76
|
+
# // "serviceusage.googleapis.com/tos/universal". Additional ToS can be
|
77
|
+
# // included based on the business needs.
|
78
|
+
# repeated string requirements = 1;
|
79
|
+
#
|
80
|
+
# // A list of usage rules that apply to individual API methods.
|
81
|
+
# //
|
82
|
+
# // **NOTE:** All service configuration rules follow "last one wins" order.
|
83
|
+
# repeated UsageRule rules = 6;
|
84
|
+
#
|
85
|
+
# // The full resource name of a channel used for sending notifications to the
|
86
|
+
# // service producer.
|
87
|
+
# //
|
88
|
+
# // Google Service Management currently only supports
|
89
|
+
# // [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
|
90
|
+
# // channel. To use Google Cloud Pub/Sub as the channel, this must be the name
|
91
|
+
# // of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
|
92
|
+
# // documented in https://cloud.google.com/pubsub/docs/overview.
|
93
|
+
# string producer_notification_channel = 7;
|
94
|
+
# }
|
95
|
+
#
|
96
|
+
# // Usage configuration rules for the service.
|
97
|
+
# //
|
98
|
+
# // NOTE: Under development.
|
99
|
+
# //
|
100
|
+
# //
|
101
|
+
# // Use this rule to configure unregistered calls for the service. Unregistered
|
102
|
+
# // calls are calls that do not contain consumer project identity.
|
103
|
+
# // (Example: calls that do not contain an API key).
|
104
|
+
# // By default, API methods do not allow unregistered calls, and each method call
|
105
|
+
# // must be identified by a consumer project identity. Use this rule to
|
106
|
+
# // allow/disallow unregistered calls.
|
107
|
+
# //
|
108
|
+
# // Example of an API that wants to allow unregistered calls for entire service.
|
109
|
+
# //
|
110
|
+
# // usage:
|
111
|
+
# // rules:
|
112
|
+
# // - selector: "*"
|
113
|
+
# // allow_unregistered_calls: true
|
114
|
+
# //
|
115
|
+
# // Example of a method that wants to allow unregistered calls.
|
116
|
+
# //
|
117
|
+
# // usage:
|
118
|
+
# // rules:
|
119
|
+
# // - selector: "google.example.library.v1.LibraryService.CreateBook"
|
120
|
+
# // allow_unregistered_calls: true
|
121
|
+
# message UsageRule {
|
122
|
+
# // Selects the methods to which this rule applies. Use '*' to indicate all
|
123
|
+
# // methods in all APIs.
|
124
|
+
# //
|
125
|
+
# // Refer to [selector][google.api.DocumentationRule.selector] for syntax
|
126
|
+
# // details.
|
127
|
+
# string selector = 1;
|
128
|
+
#
|
129
|
+
# // If true, the selected method allows unregistered calls, e.g. calls
|
130
|
+
# // that don't identify any user or application.
|
131
|
+
# bool allow_unregistered_calls = 2;
|
132
|
+
#
|
133
|
+
# // If true, the selected method should skip service control and the control
|
134
|
+
# // plane features, such as quota and billing, will not be available.
|
135
|
+
# // This flag is used by Google Cloud Endpoints to bypass checks for internal
|
136
|
+
# // methods, such as service health check methods.
|
137
|
+
# bool skip_service_control = 3;
|
138
|
+
# }
|