googleapis-common-protos-types 1.7.0 → 1.8.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 +7 -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 +117 -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 +5 -4
@@ -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/distribution.proto
3
4
 
@@ -6,47 +7,33 @@ require 'google/protobuf'
6
7
  require 'google/protobuf/any_pb'
7
8
  require 'google/protobuf/timestamp_pb'
8
9
 
9
- Google::Protobuf::DescriptorPool.generated_pool.build do
10
- add_file("google/api/distribution.proto", :syntax => :proto3) do
11
- add_message "google.api.Distribution" do
12
- optional :count, :int64, 1
13
- optional :mean, :double, 2
14
- optional :sum_of_squared_deviation, :double, 3
15
- optional :range, :message, 4, "google.api.Distribution.Range"
16
- optional :bucket_options, :message, 6, "google.api.Distribution.BucketOptions"
17
- repeated :bucket_counts, :int64, 7
18
- repeated :exemplars, :message, 10, "google.api.Distribution.Exemplar"
19
- end
20
- add_message "google.api.Distribution.Range" do
21
- optional :min, :double, 1
22
- optional :max, :double, 2
23
- end
24
- add_message "google.api.Distribution.BucketOptions" do
25
- oneof :options do
26
- optional :linear_buckets, :message, 1, "google.api.Distribution.BucketOptions.Linear"
27
- optional :exponential_buckets, :message, 2, "google.api.Distribution.BucketOptions.Exponential"
28
- optional :explicit_buckets, :message, 3, "google.api.Distribution.BucketOptions.Explicit"
29
- end
30
- end
31
- add_message "google.api.Distribution.BucketOptions.Linear" do
32
- optional :num_finite_buckets, :int32, 1
33
- optional :width, :double, 2
34
- optional :offset, :double, 3
35
- end
36
- add_message "google.api.Distribution.BucketOptions.Exponential" do
37
- optional :num_finite_buckets, :int32, 1
38
- optional :growth_factor, :double, 2
39
- optional :scale, :double, 3
40
- end
41
- add_message "google.api.Distribution.BucketOptions.Explicit" do
42
- repeated :bounds, :double, 1
43
- end
44
- add_message "google.api.Distribution.Exemplar" do
45
- optional :value, :double, 1
46
- optional :timestamp, :message, 2, "google.protobuf.Timestamp"
47
- repeated :attachments, :message, 3, "google.protobuf.Any"
10
+
11
+ descriptor_data = "\n\x1dgoogle/api/distribution.proto\x12\ngoogle.api\x1a\x19google/protobuf/any.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xd9\x06\n\x0c\x44istribution\x12\r\n\x05\x63ount\x18\x01 \x01(\x03\x12\x0c\n\x04mean\x18\x02 \x01(\x01\x12 \n\x18sum_of_squared_deviation\x18\x03 \x01(\x01\x12-\n\x05range\x18\x04 \x01(\x0b\x32\x1e.google.api.Distribution.Range\x12>\n\x0e\x62ucket_options\x18\x06 \x01(\x0b\x32&.google.api.Distribution.BucketOptions\x12\x15\n\rbucket_counts\x18\x07 \x03(\x03\x12\x34\n\texemplars\x18\n \x03(\x0b\x32!.google.api.Distribution.Exemplar\x1a!\n\x05Range\x12\x0b\n\x03min\x18\x01 \x01(\x01\x12\x0b\n\x03max\x18\x02 \x01(\x01\x1a\xb5\x03\n\rBucketOptions\x12G\n\x0elinear_buckets\x18\x01 \x01(\x0b\x32-.google.api.Distribution.BucketOptions.LinearH\x00\x12Q\n\x13\x65xponential_buckets\x18\x02 \x01(\x0b\x32\x32.google.api.Distribution.BucketOptions.ExponentialH\x00\x12K\n\x10\x65xplicit_buckets\x18\x03 \x01(\x0b\x32/.google.api.Distribution.BucketOptions.ExplicitH\x00\x1a\x43\n\x06Linear\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\r\n\x05width\x18\x02 \x01(\x01\x12\x0e\n\x06offset\x18\x03 \x01(\x01\x1aO\n\x0b\x45xponential\x12\x1a\n\x12num_finite_buckets\x18\x01 \x01(\x05\x12\x15\n\rgrowth_factor\x18\x02 \x01(\x01\x12\r\n\x05scale\x18\x03 \x01(\x01\x1a\x1a\n\x08\x45xplicit\x12\x0e\n\x06\x62ounds\x18\x01 \x03(\x01\x42\t\n\x07options\x1as\n\x08\x45xemplar\x12\r\n\x05value\x18\x01 \x01(\x01\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12)\n\x0b\x61ttachments\x18\x03 \x03(\x0b\x32\x14.google.protobuf.AnyBq\n\x0e\x63om.google.apiB\x11\x44istributionProtoP\x01ZCgoogle.golang.org/genproto/googleapis/api/distribution;distribution\xa2\x02\x04GAPIb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+
15
+ begin
16
+ pool.add_serialized_file(descriptor_data)
17
+ rescue TypeError => e
18
+ # Compatibility code: will be removed in the next major version.
19
+ require 'google/protobuf/descriptor_pb'
20
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
+ parsed.clear_dependency
22
+ serialized = parsed.class.encode(parsed)
23
+ file = pool.add_serialized_file(serialized)
24
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
+ imports = [
26
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
27
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
48
33
  end
49
34
  end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
50
37
  end
51
38
 
52
39
  module Google
@@ -60,3 +47,219 @@ module Google
60
47
  Distribution::Exemplar = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Distribution.Exemplar").msgclass
61
48
  end
62
49
  end
50
+
51
+ #### Source proto file: google/api/distribution.proto ####
52
+ #
53
+ # // Copyright 2023 Google LLC
54
+ # //
55
+ # // Licensed under the Apache License, Version 2.0 (the "License");
56
+ # // you may not use this file except in compliance with the License.
57
+ # // You may obtain a copy of the License at
58
+ # //
59
+ # // http://www.apache.org/licenses/LICENSE-2.0
60
+ # //
61
+ # // Unless required by applicable law or agreed to in writing, software
62
+ # // distributed under the License is distributed on an "AS IS" BASIS,
63
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64
+ # // See the License for the specific language governing permissions and
65
+ # // limitations under the License.
66
+ #
67
+ # syntax = "proto3";
68
+ #
69
+ # package google.api;
70
+ #
71
+ # import "google/protobuf/any.proto";
72
+ # import "google/protobuf/timestamp.proto";
73
+ #
74
+ # option go_package = "google.golang.org/genproto/googleapis/api/distribution;distribution";
75
+ # option java_multiple_files = true;
76
+ # option java_outer_classname = "DistributionProto";
77
+ # option java_package = "com.google.api";
78
+ # option objc_class_prefix = "GAPI";
79
+ #
80
+ # // `Distribution` contains summary statistics for a population of values. It
81
+ # // optionally contains a histogram representing the distribution of those values
82
+ # // across a set of buckets.
83
+ # //
84
+ # // The summary statistics are the count, mean, sum of the squared deviation from
85
+ # // the mean, the minimum, and the maximum of the set of population of values.
86
+ # // The histogram is based on a sequence of buckets and gives a count of values
87
+ # // that fall into each bucket. The boundaries of the buckets are given either
88
+ # // explicitly or by formulas for buckets of fixed or exponentially increasing
89
+ # // widths.
90
+ # //
91
+ # // Although it is not forbidden, it is generally a bad idea to include
92
+ # // non-finite values (infinities or NaNs) in the population of values, as this
93
+ # // will render the `mean` and `sum_of_squared_deviation` fields meaningless.
94
+ # message Distribution {
95
+ # // The range of the population values.
96
+ # message Range {
97
+ # // The minimum of the population values.
98
+ # double min = 1;
99
+ #
100
+ # // The maximum of the population values.
101
+ # double max = 2;
102
+ # }
103
+ #
104
+ # // `BucketOptions` describes the bucket boundaries used to create a histogram
105
+ # // for the distribution. The buckets can be in a linear sequence, an
106
+ # // exponential sequence, or each bucket can be specified explicitly.
107
+ # // `BucketOptions` does not include the number of values in each bucket.
108
+ # //
109
+ # // A bucket has an inclusive lower bound and exclusive upper bound for the
110
+ # // values that are counted for that bucket. The upper bound of a bucket must
111
+ # // be strictly greater than the lower bound. The sequence of N buckets for a
112
+ # // distribution consists of an underflow bucket (number 0), zero or more
113
+ # // finite buckets (number 1 through N - 2) and an overflow bucket (number N -
114
+ # // 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the
115
+ # // same as the upper bound of bucket i - 1. The buckets span the whole range
116
+ # // of finite values: lower bound of the underflow bucket is -infinity and the
117
+ # // upper bound of the overflow bucket is +infinity. The finite buckets are
118
+ # // so-called because both bounds are finite.
119
+ # message BucketOptions {
120
+ # // Specifies a linear sequence of buckets that all have the same width
121
+ # // (except overflow and underflow). Each bucket represents a constant
122
+ # // absolute uncertainty on the specific value in the bucket.
123
+ # //
124
+ # // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
125
+ # // following boundaries:
126
+ # //
127
+ # // Upper bound (0 <= i < N-1): offset + (width * i).
128
+ # //
129
+ # // Lower bound (1 <= i < N): offset + (width * (i - 1)).
130
+ # message Linear {
131
+ # // Must be greater than 0.
132
+ # int32 num_finite_buckets = 1;
133
+ #
134
+ # // Must be greater than 0.
135
+ # double width = 2;
136
+ #
137
+ # // Lower bound of the first bucket.
138
+ # double offset = 3;
139
+ # }
140
+ #
141
+ # // Specifies an exponential sequence of buckets that have a width that is
142
+ # // proportional to the value of the lower bound. Each bucket represents a
143
+ # // constant relative uncertainty on a specific value in the bucket.
144
+ # //
145
+ # // There are `num_finite_buckets + 2` (= N) buckets. Bucket `i` has the
146
+ # // following boundaries:
147
+ # //
148
+ # // Upper bound (0 <= i < N-1): scale * (growth_factor ^ i).
149
+ # //
150
+ # // Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).
151
+ # message Exponential {
152
+ # // Must be greater than 0.
153
+ # int32 num_finite_buckets = 1;
154
+ #
155
+ # // Must be greater than 1.
156
+ # double growth_factor = 2;
157
+ #
158
+ # // Must be greater than 0.
159
+ # double scale = 3;
160
+ # }
161
+ #
162
+ # // Specifies a set of buckets with arbitrary widths.
163
+ # //
164
+ # // There are `size(bounds) + 1` (= N) buckets. Bucket `i` has the following
165
+ # // boundaries:
166
+ # //
167
+ # // Upper bound (0 <= i < N-1): bounds[i]
168
+ # // Lower bound (1 <= i < N); bounds[i - 1]
169
+ # //
170
+ # // The `bounds` field must contain at least one element. If `bounds` has
171
+ # // only one element, then there are no finite buckets, and that single
172
+ # // element is the common boundary of the overflow and underflow buckets.
173
+ # message Explicit {
174
+ # // The values must be monotonically increasing.
175
+ # repeated double bounds = 1;
176
+ # }
177
+ #
178
+ # // Exactly one of these three fields must be set.
179
+ # oneof options {
180
+ # // The linear bucket.
181
+ # Linear linear_buckets = 1;
182
+ #
183
+ # // The exponential buckets.
184
+ # Exponential exponential_buckets = 2;
185
+ #
186
+ # // The explicit buckets.
187
+ # Explicit explicit_buckets = 3;
188
+ # }
189
+ # }
190
+ #
191
+ # // Exemplars are example points that may be used to annotate aggregated
192
+ # // distribution values. They are metadata that gives information about a
193
+ # // particular value added to a Distribution bucket, such as a trace ID that
194
+ # // was active when a value was added. They may contain further information,
195
+ # // such as a example values and timestamps, origin, etc.
196
+ # message Exemplar {
197
+ # // Value of the exemplar point. This value determines to which bucket the
198
+ # // exemplar belongs.
199
+ # double value = 1;
200
+ #
201
+ # // The observation (sampling) time of the above value.
202
+ # google.protobuf.Timestamp timestamp = 2;
203
+ #
204
+ # // Contextual information about the example value. Examples are:
205
+ # //
206
+ # // Trace: type.googleapis.com/google.monitoring.v3.SpanContext
207
+ # //
208
+ # // Literal string: type.googleapis.com/google.protobuf.StringValue
209
+ # //
210
+ # // Labels dropped during aggregation:
211
+ # // type.googleapis.com/google.monitoring.v3.DroppedLabels
212
+ # //
213
+ # // There may be only a single attachment of any given message type in a
214
+ # // single exemplar, and this is enforced by the system.
215
+ # repeated google.protobuf.Any attachments = 3;
216
+ # }
217
+ #
218
+ # // The number of values in the population. Must be non-negative. This value
219
+ # // must equal the sum of the values in `bucket_counts` if a histogram is
220
+ # // provided.
221
+ # int64 count = 1;
222
+ #
223
+ # // The arithmetic mean of the values in the population. If `count` is zero
224
+ # // then this field must be zero.
225
+ # double mean = 2;
226
+ #
227
+ # // The sum of squared deviations from the mean of the values in the
228
+ # // population. For values x_i this is:
229
+ # //
230
+ # // Sum[i=1..n]((x_i - mean)^2)
231
+ # //
232
+ # // Knuth, "The Art of Computer Programming", Vol. 2, page 232, 3rd edition
233
+ # // describes Welford's method for accumulating this sum in one pass.
234
+ # //
235
+ # // If `count` is zero then this field must be zero.
236
+ # double sum_of_squared_deviation = 3;
237
+ #
238
+ # // If specified, contains the range of the population values. The field
239
+ # // must not be present if the `count` is zero.
240
+ # Range range = 4;
241
+ #
242
+ # // Defines the histogram bucket boundaries. If the distribution does not
243
+ # // contain a histogram, then omit this field.
244
+ # BucketOptions bucket_options = 6;
245
+ #
246
+ # // The number of values in each bucket of the histogram, as described in
247
+ # // `bucket_options`. If the distribution does not have a histogram, then omit
248
+ # // this field. If there is a histogram, then the sum of the values in
249
+ # // `bucket_counts` must equal the value in the `count` field of the
250
+ # // distribution.
251
+ # //
252
+ # // If present, `bucket_counts` should contain N values, where N is the number
253
+ # // of buckets specified in `bucket_options`. If you supply fewer than N
254
+ # // values, the remaining values are assumed to be 0.
255
+ # //
256
+ # // The order of the values in `bucket_counts` follows the bucket numbering
257
+ # // schemes described for the three bucket types. The first value must be the
258
+ # // count for the underflow bucket (number 0). The next N-2 values are the
259
+ # // counts for the finite buckets (number 1 through N-2). The N'th value in
260
+ # // `bucket_counts` is the count for the overflow bucket (number N-1).
261
+ # repeated int64 bucket_counts = 7;
262
+ #
263
+ # // Must be in increasing order of `value` field.
264
+ # repeated Exemplar exemplars = 10;
265
+ # }
@@ -1,29 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/documentation.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/documentation.proto", :syntax => :proto3) do
8
- add_message "google.api.Documentation" do
9
- optional :summary, :string, 1
10
- repeated :pages, :message, 5, "google.api.Page"
11
- repeated :rules, :message, 3, "google.api.DocumentationRule"
12
- optional :documentation_root_url, :string, 4
13
- optional :service_root_url, :string, 6
14
- optional :overview, :string, 2
15
- end
16
- add_message "google.api.DocumentationRule" do
17
- optional :selector, :string, 1
18
- optional :description, :string, 2
19
- optional :deprecation_description, :string, 3
20
- end
21
- add_message "google.api.Page" do
22
- optional :name, :string, 1
23
- optional :content, :string, 2
24
- repeated :subpages, :message, 3, "google.api.Page"
7
+
8
+ descriptor_data = "\n\x1egoogle/api/documentation.proto\x12\ngoogle.api\"\xbb\x01\n\rDocumentation\x12\x0f\n\x07summary\x18\x01 \x01(\t\x12\x1f\n\x05pages\x18\x05 \x03(\x0b\x32\x10.google.api.Page\x12,\n\x05rules\x18\x03 \x03(\x0b\x32\x1d.google.api.DocumentationRule\x12\x1e\n\x16\x64ocumentation_root_url\x18\x04 \x01(\t\x12\x18\n\x10service_root_url\x18\x06 \x01(\t\x12\x10\n\x08overview\x18\x02 \x01(\t\"[\n\x11\x44ocumentationRule\x12\x10\n\x08selector\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x1f\n\x17\x64\x65precation_description\x18\x03 \x01(\t\"I\n\x04Page\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0f\n\x07\x63ontent\x18\x02 \x01(\t\x12\"\n\x08subpages\x18\x03 \x03(\x0b\x32\x10.google.api.PageBt\n\x0e\x63om.google.apiB\x12\x44ocumentationProtoP\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}"
25
28
  end
26
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."
27
32
  end
28
33
 
29
34
  module Google
@@ -33,3 +38,174 @@ module Google
33
38
  Page = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Page").msgclass
34
39
  end
35
40
  end
41
+
42
+ #### Source proto file: google/api/documentation.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 = "DocumentationProto";
65
+ # option java_package = "com.google.api";
66
+ # option objc_class_prefix = "GAPI";
67
+ #
68
+ # // `Documentation` provides the information for describing a service.
69
+ # //
70
+ # // Example:
71
+ # // <pre><code>documentation:
72
+ # // summary: >
73
+ # // The Google Calendar API gives access
74
+ # // to most calendar features.
75
+ # // pages:
76
+ # // - name: Overview
77
+ # // content: &#40;== include google/foo/overview.md ==&#41;
78
+ # // - name: Tutorial
79
+ # // content: &#40;== include google/foo/tutorial.md ==&#41;
80
+ # // subpages;
81
+ # // - name: Java
82
+ # // content: &#40;== include google/foo/tutorial_java.md ==&#41;
83
+ # // rules:
84
+ # // - selector: google.calendar.Calendar.Get
85
+ # // description: >
86
+ # // ...
87
+ # // - selector: google.calendar.Calendar.Put
88
+ # // description: >
89
+ # // ...
90
+ # // </code></pre>
91
+ # // Documentation is provided in markdown syntax. In addition to
92
+ # // standard markdown features, definition lists, tables and fenced
93
+ # // code blocks are supported. Section headers can be provided and are
94
+ # // interpreted relative to the section nesting of the context where
95
+ # // a documentation fragment is embedded.
96
+ # //
97
+ # // Documentation from the IDL is merged with documentation defined
98
+ # // via the config at normalization time, where documentation provided
99
+ # // by config rules overrides IDL provided.
100
+ # //
101
+ # // A number of constructs specific to the API platform are supported
102
+ # // in documentation text.
103
+ # //
104
+ # // In order to reference a proto element, the following
105
+ # // notation can be used:
106
+ # // <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre>
107
+ # // To override the display text used for the link, this can be used:
108
+ # // <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre>
109
+ # // Text can be excluded from doc using the following notation:
110
+ # // <pre><code>&#40;-- internal comment --&#41;</code></pre>
111
+ # //
112
+ # // A few directives are available in documentation. Note that
113
+ # // directives must appear on a single line to be properly
114
+ # // identified. The `include` directive includes a markdown file from
115
+ # // an external source:
116
+ # // <pre><code>&#40;== include path/to/file ==&#41;</code></pre>
117
+ # // The `resource_for` directive marks a message to be the resource of
118
+ # // a collection in REST view. If it is not specified, tools attempt
119
+ # // to infer the resource from the operations in a collection:
120
+ # // <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre>
121
+ # // The directive `suppress_warning` does not directly affect documentation
122
+ # // and is documented together with service config validation.
123
+ # message Documentation {
124
+ # // A short description of what the service does. The summary must be plain
125
+ # // text. It becomes the overview of the service displayed in Google Cloud
126
+ # // Console.
127
+ # // NOTE: This field is equivalent to the standard field `description`.
128
+ # string summary = 1;
129
+ #
130
+ # // The top level pages for the documentation set.
131
+ # repeated Page pages = 5;
132
+ #
133
+ # // A list of documentation rules that apply to individual API elements.
134
+ # //
135
+ # // **NOTE:** All service configuration rules follow "last one wins" order.
136
+ # repeated DocumentationRule rules = 3;
137
+ #
138
+ # // The URL to the root of documentation.
139
+ # string documentation_root_url = 4;
140
+ #
141
+ # // Specifies the service root url if the default one (the service name
142
+ # // from the yaml file) is not suitable. This can be seen in any fully
143
+ # // specified service urls as well as sections that show a base that other
144
+ # // urls are relative to.
145
+ # string service_root_url = 6;
146
+ #
147
+ # // Declares a single overview page. For example:
148
+ # // <pre><code>documentation:
149
+ # // summary: ...
150
+ # // overview: &#40;== include overview.md ==&#41;
151
+ # // </code></pre>
152
+ # // This is a shortcut for the following declaration (using pages style):
153
+ # // <pre><code>documentation:
154
+ # // summary: ...
155
+ # // pages:
156
+ # // - name: Overview
157
+ # // content: &#40;== include overview.md ==&#41;
158
+ # // </code></pre>
159
+ # // Note: you cannot specify both `overview` field and `pages` field.
160
+ # string overview = 2;
161
+ # }
162
+ #
163
+ # // A documentation rule provides information about individual API elements.
164
+ # message DocumentationRule {
165
+ # // The selector is a comma-separated list of patterns for any element such as
166
+ # // a method, a field, an enum value. Each pattern is a qualified name of the
167
+ # // element which may end in "*", indicating a wildcard. Wildcards are only
168
+ # // allowed at the end and for a whole component of the qualified name,
169
+ # // i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match
170
+ # // one or more components. To specify a default for all applicable elements,
171
+ # // the whole pattern "*" is used.
172
+ # string selector = 1;
173
+ #
174
+ # // Description of the selected proto element (e.g. a message, a method, a
175
+ # // 'service' definition, or a field). Defaults to leading & trailing comments
176
+ # // taken from the proto source definition of the proto element.
177
+ # string description = 2;
178
+ #
179
+ # // Deprecation description of the selected element(s). It can be provided if
180
+ # // an element is marked as `deprecated`.
181
+ # string deprecation_description = 3;
182
+ # }
183
+ #
184
+ # // Represents a documentation page. A page can contain subpages to represent
185
+ # // nested documentation set structure.
186
+ # message Page {
187
+ # // The name of the page. It will be used as an identity of the page to
188
+ # // generate URI of the page, text of the link to this page in navigation,
189
+ # // etc. The full page name (start from the root page name to this page
190
+ # // concatenated with `.`) can be used as reference to the page in your
191
+ # // documentation. For example:
192
+ # // <pre><code>pages:
193
+ # // - name: Tutorial
194
+ # // content: &#40;== include tutorial.md ==&#41;
195
+ # // subpages:
196
+ # // - name: Java
197
+ # // content: &#40;== include tutorial_java.md ==&#41;
198
+ # // </code></pre>
199
+ # // You can reference `Java` page using Markdown reference link syntax:
200
+ # // `[Java][Tutorial.Java]`.
201
+ # string name = 1;
202
+ #
203
+ # // The Markdown content of the page. You can use <code>&#40;== include {path}
204
+ # // ==&#41;</code> to include content from a Markdown file. The content can be
205
+ # // used to produce the documentation page such as HTML format page.
206
+ # string content = 2;
207
+ #
208
+ # // Subpages of this page. The order of subpages specified here will be
209
+ # // honored in the generated docset.
210
+ # repeated Page subpages = 3;
211
+ # }
@@ -1,17 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/api/endpoint.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/api/endpoint.proto", :syntax => :proto3) do
8
- add_message "google.api.Endpoint" do
9
- optional :name, :string, 1
10
- repeated :aliases, :string, 2
11
- optional :target, :string, 101
12
- optional :allow_cors, :bool, 5
7
+
8
+ descriptor_data = "\n\x19google/api/endpoint.proto\x12\ngoogle.api\"Q\n\x08\x45ndpoint\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x07\x61liases\x18\x02 \x03(\tB\x02\x18\x01\x12\x0e\n\x06target\x18\x65 \x01(\t\x12\x12\n\nallow_cors\x18\x05 \x01(\x08\x42o\n\x0e\x63om.google.apiB\rEndpointProtoP\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}"
13
28
  end
14
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."
15
32
  end
16
33
 
17
34
  module Google
@@ -19,3 +36,79 @@ module Google
19
36
  Endpoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.Endpoint").msgclass
20
37
  end
21
38
  end
39
+
40
+ #### Source proto file: google/api/endpoint.proto ####
41
+ #
42
+ # // Copyright 2023 Google LLC
43
+ # //
44
+ # // Licensed under the Apache License, Version 2.0 (the "License");
45
+ # // you may not use this file except in compliance with the License.
46
+ # // You may obtain a copy of the License at
47
+ # //
48
+ # // http://www.apache.org/licenses/LICENSE-2.0
49
+ # //
50
+ # // Unless required by applicable law or agreed to in writing, software
51
+ # // distributed under the License is distributed on an "AS IS" BASIS,
52
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
53
+ # // See the License for the specific language governing permissions and
54
+ # // limitations under the License.
55
+ #
56
+ # syntax = "proto3";
57
+ #
58
+ # package google.api;
59
+ #
60
+ # option go_package = "google.golang.org/genproto/googleapis/api/serviceconfig;serviceconfig";
61
+ # option java_multiple_files = true;
62
+ # option java_outer_classname = "EndpointProto";
63
+ # option java_package = "com.google.api";
64
+ # option objc_class_prefix = "GAPI";
65
+ #
66
+ # // `Endpoint` describes a network address of a service that serves a set of
67
+ # // APIs. It is commonly known as a service endpoint. A service may expose
68
+ # // any number of service endpoints, and all service endpoints share the same
69
+ # // service definition, such as quota limits and monitoring metrics.
70
+ # //
71
+ # // Example:
72
+ # //
73
+ # // type: google.api.Service
74
+ # // name: library-example.googleapis.com
75
+ # // endpoints:
76
+ # // # Declares network address `https://library-example.googleapis.com`
77
+ # // # for service `library-example.googleapis.com`. The `https` scheme
78
+ # // # is implicit for all service endpoints. Other schemes may be
79
+ # // # supported in the future.
80
+ # // - name: library-example.googleapis.com
81
+ # // allow_cors: false
82
+ # // - name: content-staging-library-example.googleapis.com
83
+ # // # Allows HTTP OPTIONS calls to be passed to the API frontend, for it
84
+ # // # to decide whether the subsequent cross-origin request is allowed
85
+ # // # to proceed.
86
+ # // allow_cors: true
87
+ # message Endpoint {
88
+ # // The canonical name of this endpoint.
89
+ # string name = 1;
90
+ #
91
+ # // Unimplemented. Dot not use.
92
+ # //
93
+ # // DEPRECATED: This field is no longer supported. Instead of using aliases,
94
+ # // please specify multiple [google.api.Endpoint][google.api.Endpoint] for each
95
+ # // of the intended aliases.
96
+ # //
97
+ # // Additional names that this endpoint will be hosted on.
98
+ # repeated string aliases = 2 [deprecated = true];
99
+ #
100
+ # // The specification of an Internet routable address of API frontend that will
101
+ # // handle requests to this [API
102
+ # // Endpoint](https://cloud.google.com/apis/design/glossary). It should be
103
+ # // either a valid IPv4 address or a fully-qualified domain name. For example,
104
+ # // "8.8.8.8" or "myservice.appspot.com".
105
+ # string target = 101;
106
+ #
107
+ # // Allowing
108
+ # // [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
109
+ # // cross-domain traffic, would allow the backends served from this endpoint to
110
+ # // receive and respond to HTTP OPTIONS requests. The response will be used by
111
+ # // the browser to determine whether the subsequent cross-origin request is
112
+ # // allowed to proceed.
113
+ # bool allow_cors = 5;
114
+ # }