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.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +13 -0
  3. data/lib/google/api/annotations_pb.rb +60 -2
  4. data/lib/google/api/auth_pb.rb +264 -34
  5. data/lib/google/api/backend_pb.rb +212 -23
  6. data/lib/google/api/billing_pb.rb +104 -8
  7. data/lib/google/api/client_pb.rb +422 -86
  8. data/lib/google/api/config_change_pb.rb +111 -17
  9. data/lib/google/api/consumer_pb.rb +109 -16
  10. data/lib/google/api/context_pb.rb +117 -11
  11. data/lib/google/api/control_pb.rb +71 -4
  12. data/lib/google/api/distribution_pb.rb +242 -39
  13. data/lib/google/api/documentation_pb.rb +195 -19
  14. data/lib/google/api/endpoint_pb.rb +100 -7
  15. data/lib/google/api/error_reason_pb.rb +597 -33
  16. data/lib/google/api/field_behavior_pb.rb +131 -11
  17. data/lib/google/api/http_pb.rb +406 -23
  18. data/lib/google/api/httpbody_pb.rb +109 -6
  19. data/lib/google/api/label_pb.rb +75 -11
  20. data/lib/google/api/launch_stage_pb.rb +99 -11
  21. data/lib/google/api/log_pb.rb +82 -7
  22. data/lib/google/api/logging_pb.rb +108 -9
  23. data/lib/google/api/metric_pb.rb +297 -38
  24. data/lib/google/api/monitored_resource_pb.rb +159 -17
  25. data/lib/google/api/monitoring_pb.rb +134 -9
  26. data/lib/google/api/policy_pb.rb +129 -0
  27. data/lib/google/api/quota_pb.rb +211 -21
  28. data/lib/google/api/resource_pb.rb +265 -23
  29. data/lib/google/api/routing_pb.rb +488 -8
  30. data/lib/google/api/service_pb.rb +239 -29
  31. data/lib/google/api/source_info_pb.rb +59 -4
  32. data/lib/google/api/system_parameter_pb.rb +123 -13
  33. data/lib/google/api/usage_pb.rb +123 -11
  34. data/lib/google/api/visibility_pb.rb +140 -8
  35. data/lib/google/logging/type/http_request_pb.rb +123 -18
  36. data/lib/google/logging/type/log_severity_pb.rb +98 -12
  37. data/lib/google/longrunning/operations_pb.rb +277 -37
  38. data/lib/google/rpc/code_pb.rb +213 -20
  39. data/lib/google/rpc/context/attribute_context_pb.rb +375 -66
  40. data/lib/google/rpc/context/audit_context_pb.rb +77 -8
  41. data/lib/google/rpc/error_details_pb.rb +313 -56
  42. data/lib/google/rpc/http_pb.rb +91 -17
  43. data/lib/google/rpc/status_pb.rb +77 -6
  44. data/lib/google/type/calendar_period_pb.rb +83 -11
  45. data/lib/google/type/color_pb.rb +202 -7
  46. data/lib/google/type/date_pb.rb +79 -6
  47. data/lib/google/type/datetime_pb.rb +132 -18
  48. data/lib/google/type/dayofweek_pb.rb +77 -11
  49. data/lib/google/type/decimal_pb.rb +122 -4
  50. data/lib/google/type/expr_pb.rb +100 -7
  51. data/lib/google/type/fraction_pb.rb +60 -5
  52. data/lib/google/type/interval_pb.rb +74 -5
  53. data/lib/google/type/latlng_pb.rb +64 -5
  54. data/lib/google/type/localized_text_pb.rb +63 -5
  55. data/lib/google/type/money_pb.rb +69 -6
  56. data/lib/google/type/month_pb.rb +92 -16
  57. data/lib/google/type/phone_number_pb.rb +140 -12
  58. data/lib/google/type/postal_address_pb.rb +161 -14
  59. data/lib/google/type/quaternion_pb.rb +121 -7
  60. data/lib/google/type/timeofday_pb.rb +71 -7
  61. data/lib/googleapis/common/protos/types/version.rb +1 -1
  62. metadata +6 -5
@@ -1,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
+ # }