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,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/rpc/context/attribute_context.proto
3
4
 
@@ -8,74 +9,35 @@ require 'google/protobuf/duration_pb'
8
9
  require 'google/protobuf/struct_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/rpc/context/attribute_context.proto", :syntax => :proto3) do
13
- add_message "google.rpc.context.AttributeContext" do
14
- optional :origin, :message, 7, "google.rpc.context.AttributeContext.Peer"
15
- optional :source, :message, 1, "google.rpc.context.AttributeContext.Peer"
16
- optional :destination, :message, 2, "google.rpc.context.AttributeContext.Peer"
17
- optional :request, :message, 3, "google.rpc.context.AttributeContext.Request"
18
- optional :response, :message, 4, "google.rpc.context.AttributeContext.Response"
19
- optional :resource, :message, 5, "google.rpc.context.AttributeContext.Resource"
20
- optional :api, :message, 6, "google.rpc.context.AttributeContext.Api"
21
- repeated :extensions, :message, 8, "google.protobuf.Any"
22
- end
23
- add_message "google.rpc.context.AttributeContext.Peer" do
24
- optional :ip, :string, 1
25
- optional :port, :int64, 2
26
- map :labels, :string, :string, 6
27
- optional :principal, :string, 7
28
- optional :region_code, :string, 8
29
- end
30
- add_message "google.rpc.context.AttributeContext.Api" do
31
- optional :service, :string, 1
32
- optional :operation, :string, 2
33
- optional :protocol, :string, 3
34
- optional :version, :string, 4
35
- end
36
- add_message "google.rpc.context.AttributeContext.Auth" do
37
- optional :principal, :string, 1
38
- repeated :audiences, :string, 2
39
- optional :presenter, :string, 3
40
- optional :claims, :message, 4, "google.protobuf.Struct"
41
- repeated :access_levels, :string, 5
42
- end
43
- add_message "google.rpc.context.AttributeContext.Request" do
44
- optional :id, :string, 1
45
- optional :method, :string, 2
46
- map :headers, :string, :string, 3
47
- optional :path, :string, 4
48
- optional :host, :string, 5
49
- optional :scheme, :string, 6
50
- optional :query, :string, 7
51
- optional :time, :message, 9, "google.protobuf.Timestamp"
52
- optional :size, :int64, 10
53
- optional :protocol, :string, 11
54
- optional :reason, :string, 12
55
- optional :auth, :message, 13, "google.rpc.context.AttributeContext.Auth"
56
- end
57
- add_message "google.rpc.context.AttributeContext.Response" do
58
- optional :code, :int64, 1
59
- optional :size, :int64, 2
60
- map :headers, :string, :string, 3
61
- optional :time, :message, 4, "google.protobuf.Timestamp"
62
- optional :backend_latency, :message, 5, "google.protobuf.Duration"
63
- end
64
- add_message "google.rpc.context.AttributeContext.Resource" do
65
- optional :service, :string, 1
66
- optional :name, :string, 2
67
- optional :type, :string, 3
68
- map :labels, :string, :string, 4
69
- optional :uid, :string, 5
70
- map :annotations, :string, :string, 6
71
- optional :display_name, :string, 7
72
- optional :create_time, :message, 8, "google.protobuf.Timestamp"
73
- optional :update_time, :message, 9, "google.protobuf.Timestamp"
74
- optional :delete_time, :message, 10, "google.protobuf.Timestamp"
75
- optional :etag, :string, 11
76
- optional :location, :string, 12
12
+
13
+ descriptor_data = "\n*google/rpc/context/attribute_context.proto\x12\x12google.rpc.context\x1a\x19google/protobuf/any.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x83\x10\n\x10\x41ttributeContext\x12\x39\n\x06origin\x18\x07 \x01(\x0b\x32).google.rpc.context.AttributeContext.Peer\x12\x39\n\x06source\x18\x01 \x01(\x0b\x32).google.rpc.context.AttributeContext.Peer\x12>\n\x0b\x64\x65stination\x18\x02 \x01(\x0b\x32).google.rpc.context.AttributeContext.Peer\x12=\n\x07request\x18\x03 \x01(\x0b\x32,.google.rpc.context.AttributeContext.Request\x12?\n\x08response\x18\x04 \x01(\x0b\x32-.google.rpc.context.AttributeContext.Response\x12?\n\x08resource\x18\x05 \x01(\x0b\x32-.google.rpc.context.AttributeContext.Resource\x12\x35\n\x03\x61pi\x18\x06 \x01(\x0b\x32(.google.rpc.context.AttributeContext.Api\x12(\n\nextensions\x18\x08 \x03(\x0b\x32\x14.google.protobuf.Any\x1a\xbe\x01\n\x04Peer\x12\n\n\x02ip\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x03\x12\x45\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.rpc.context.AttributeContext.Peer.LabelsEntry\x12\x11\n\tprincipal\x18\x07 \x01(\t\x12\x13\n\x0bregion_code\x18\x08 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aL\n\x03\x41pi\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x11\n\toperation\x18\x02 \x01(\t\x12\x10\n\x08protocol\x18\x03 \x01(\t\x12\x0f\n\x07version\x18\x04 \x01(\t\x1a\x7f\n\x04\x41uth\x12\x11\n\tprincipal\x18\x01 \x01(\t\x12\x11\n\taudiences\x18\x02 \x03(\t\x12\x11\n\tpresenter\x18\x03 \x01(\t\x12\'\n\x06\x63laims\x18\x04 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x15\n\raccess_levels\x18\x05 \x03(\t\x1a\xef\x02\n\x07Request\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06method\x18\x02 \x01(\t\x12J\n\x07headers\x18\x03 \x03(\x0b\x32\x39.google.rpc.context.AttributeContext.Request.HeadersEntry\x12\x0c\n\x04path\x18\x04 \x01(\t\x12\x0c\n\x04host\x18\x05 \x01(\t\x12\x0e\n\x06scheme\x18\x06 \x01(\t\x12\r\n\x05query\x18\x07 \x01(\t\x12(\n\x04time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04size\x18\n \x01(\x03\x12\x10\n\x08protocol\x18\x0b \x01(\t\x12\x0e\n\x06reason\x18\x0c \x01(\t\x12\x37\n\x04\x61uth\x18\r \x01(\x0b\x32).google.rpc.context.AttributeContext.Auth\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x81\x02\n\x08Response\x12\x0c\n\x04\x63ode\x18\x01 \x01(\x03\x12\x0c\n\x04size\x18\x02 \x01(\x03\x12K\n\x07headers\x18\x03 \x03(\x0b\x32:.google.rpc.context.AttributeContext.Response.HeadersEntry\x12(\n\x04time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x0f\x62\x61\x63kend_latency\x18\x05 \x01(\x0b\x32\x19.google.protobuf.Duration\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x90\x04\n\x08Resource\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\x12I\n\x06labels\x18\x04 \x03(\x0b\x32\x39.google.rpc.context.AttributeContext.Resource.LabelsEntry\x12\x0b\n\x03uid\x18\x05 \x01(\t\x12S\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32>.google.rpc.context.AttributeContext.Resource.AnnotationsEntry\x12\x14\n\x0c\x64isplay_name\x18\x07 \x01(\t\x12/\n\x0b\x63reate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x64\x65lete_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04\x65tag\x18\x0b \x01(\t\x12\x10\n\x08location\x18\x0c \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x8b\x01\n\x16\x63om.google.rpc.contextB\x15\x41ttributeContextProtoP\x01ZUgoogle.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context\xf8\x01\x01\x62\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Any", "google/protobuf/any.proto"],
29
+ ["google.protobuf.Struct", "google/protobuf/struct.proto"],
30
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
31
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
32
+ ]
33
+ imports.each do |type_name, expected_filename|
34
+ import_file = pool.lookup(type_name).file_descriptor
35
+ if import_file.name != expected_filename
36
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
77
37
  end
78
38
  end
39
+ warn "Each proto file must use a consistent fully-qualified name."
40
+ warn "This will become an error in the next major version."
79
41
  end
80
42
 
81
43
  module Google
@@ -91,3 +53,350 @@ module Google
91
53
  end
92
54
  end
93
55
  end
56
+
57
+ #### Source proto file: google/rpc/context/attribute_context.proto ####
58
+ #
59
+ # // Copyright 2022 Google LLC
60
+ # //
61
+ # // Licensed under the Apache License, Version 2.0 (the "License");
62
+ # // you may not use this file except in compliance with the License.
63
+ # // You may obtain a copy of the License at
64
+ # //
65
+ # // http://www.apache.org/licenses/LICENSE-2.0
66
+ # //
67
+ # // Unless required by applicable law or agreed to in writing, software
68
+ # // distributed under the License is distributed on an "AS IS" BASIS,
69
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
70
+ # // See the License for the specific language governing permissions and
71
+ # // limitations under the License.
72
+ #
73
+ # syntax = "proto3";
74
+ #
75
+ # package google.rpc.context;
76
+ #
77
+ # import "google/protobuf/any.proto";
78
+ # import "google/protobuf/duration.proto";
79
+ # import "google/protobuf/struct.proto";
80
+ # import "google/protobuf/timestamp.proto";
81
+ #
82
+ # option cc_enable_arenas = true;
83
+ # option go_package = "google.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context";
84
+ # option java_multiple_files = true;
85
+ # option java_outer_classname = "AttributeContextProto";
86
+ # option java_package = "com.google.rpc.context";
87
+ #
88
+ # // This message defines the standard attribute vocabulary for Google APIs.
89
+ # //
90
+ # // An attribute is a piece of metadata that describes an activity on a network
91
+ # // service. For example, the size of an HTTP request, or the status code of
92
+ # // an HTTP response.
93
+ # //
94
+ # // Each attribute has a type and a name, which is logically defined as
95
+ # // a proto message field in `AttributeContext`. The field type becomes the
96
+ # // attribute type, and the field path becomes the attribute name. For example,
97
+ # // the attribute `source.ip` maps to field `AttributeContext.source.ip`.
98
+ # //
99
+ # // This message definition is guaranteed not to have any wire breaking change.
100
+ # // So you can use it directly for passing attributes across different systems.
101
+ # //
102
+ # // NOTE: Different system may generate different subset of attributes. Please
103
+ # // verify the system specification before relying on an attribute generated
104
+ # // a system.
105
+ # message AttributeContext {
106
+ # // This message defines attributes for a node that handles a network request.
107
+ # // The node can be either a service or an application that sends, forwards,
108
+ # // or receives the request. Service peers should fill in
109
+ # // `principal` and `labels` as appropriate.
110
+ # message Peer {
111
+ # // The IP address of the peer.
112
+ # string ip = 1;
113
+ #
114
+ # // The network port of the peer.
115
+ # int64 port = 2;
116
+ #
117
+ # // The labels associated with the peer.
118
+ # map<string, string> labels = 6;
119
+ #
120
+ # // The identity of this peer. Similar to `Request.auth.principal`, but
121
+ # // relative to the peer instead of the request. For example, the
122
+ # // identity associated with a load balancer that forwarded the request.
123
+ # string principal = 7;
124
+ #
125
+ # // The CLDR country/region code associated with the above IP address.
126
+ # // If the IP address is private, the `region_code` should reflect the
127
+ # // physical location where this peer is running.
128
+ # string region_code = 8;
129
+ # }
130
+ #
131
+ # // This message defines attributes associated with API operations, such as
132
+ # // a network API request. The terminology is based on the conventions used
133
+ # // by Google APIs, Istio, and OpenAPI.
134
+ # message Api {
135
+ # // The API service name. It is a logical identifier for a networked API,
136
+ # // such as "pubsub.googleapis.com". The naming syntax depends on the
137
+ # // API management system being used for handling the request.
138
+ # string service = 1;
139
+ #
140
+ # // The API operation name. For gRPC requests, it is the fully qualified API
141
+ # // method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
142
+ # // requests, it is the `operationId`, such as "getPet".
143
+ # string operation = 2;
144
+ #
145
+ # // The API protocol used for sending the request, such as "http", "https",
146
+ # // "grpc", or "internal".
147
+ # string protocol = 3;
148
+ #
149
+ # // The API version associated with the API operation above, such as "v1" or
150
+ # // "v1alpha1".
151
+ # string version = 4;
152
+ # }
153
+ #
154
+ # // This message defines request authentication attributes. Terminology is
155
+ # // based on the JSON Web Token (JWT) standard, but the terms also
156
+ # // correlate to concepts in other standards.
157
+ # message Auth {
158
+ # // The authenticated principal. Reflects the issuer (`iss`) and subject
159
+ # // (`sub`) claims within a JWT. The issuer and subject should be `/`
160
+ # // delimited, with `/` percent-encoded within the subject fragment. For
161
+ # // Google accounts, the principal format is:
162
+ # // "https://accounts.google.com/{id}"
163
+ # string principal = 1;
164
+ #
165
+ # // The intended audience(s) for this authentication information. Reflects
166
+ # // the audience (`aud`) claim within a JWT. The audience
167
+ # // value(s) depends on the `issuer`, but typically include one or more of
168
+ # // the following pieces of information:
169
+ # //
170
+ # // * The services intended to receive the credential. For example,
171
+ # // ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
172
+ # // * A set of service-based scopes. For example,
173
+ # // ["https://www.googleapis.com/auth/cloud-platform"].
174
+ # // * The client id of an app, such as the Firebase project id for JWTs
175
+ # // from Firebase Auth.
176
+ # //
177
+ # // Consult the documentation for the credential issuer to determine the
178
+ # // information provided.
179
+ # repeated string audiences = 2;
180
+ #
181
+ # // The authorized presenter of the credential. Reflects the optional
182
+ # // Authorized Presenter (`azp`) claim within a JWT or the
183
+ # // OAuth client id. For example, a Google Cloud Platform client id looks
184
+ # // as follows: "123456789012.apps.googleusercontent.com".
185
+ # string presenter = 3;
186
+ #
187
+ # // Structured claims presented with the credential. JWTs include
188
+ # // `{key: value}` pairs for standard and private claims. The following
189
+ # // is a subset of the standard required and optional claims that would
190
+ # // typically be presented for a Google-based JWT:
191
+ # //
192
+ # // {'iss': 'accounts.google.com',
193
+ # // 'sub': '113289723416554971153',
194
+ # // 'aud': ['123456789012', 'pubsub.googleapis.com'],
195
+ # // 'azp': '123456789012.apps.googleusercontent.com',
196
+ # // 'email': 'jsmith@example.com',
197
+ # // 'iat': 1353601026,
198
+ # // 'exp': 1353604926}
199
+ # //
200
+ # // SAML assertions are similarly specified, but with an identity provider
201
+ # // dependent structure.
202
+ # google.protobuf.Struct claims = 4;
203
+ #
204
+ # // A list of access level resource names that allow resources to be
205
+ # // accessed by authenticated requester. It is part of Secure GCP processing
206
+ # // for the incoming request. An access level string has the format:
207
+ # // "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
208
+ # //
209
+ # // Example:
210
+ # // "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
211
+ # repeated string access_levels = 5;
212
+ # }
213
+ #
214
+ # // This message defines attributes for an HTTP request. If the actual
215
+ # // request is not an HTTP request, the runtime system should try to map
216
+ # // the actual request to an equivalent HTTP request.
217
+ # message Request {
218
+ # // The unique ID for a request, which can be propagated to downstream
219
+ # // systems. The ID should have low probability of collision
220
+ # // within a single day for a specific service.
221
+ # string id = 1;
222
+ #
223
+ # // The HTTP request method, such as `GET`, `POST`.
224
+ # string method = 2;
225
+ #
226
+ # // The HTTP request headers. If multiple headers share the same key, they
227
+ # // must be merged according to the HTTP spec. All header keys must be
228
+ # // lowercased, because HTTP header keys are case-insensitive.
229
+ # map<string, string> headers = 3;
230
+ #
231
+ # // The HTTP URL path, excluding the query parameters.
232
+ # string path = 4;
233
+ #
234
+ # // The HTTP request `Host` header value.
235
+ # string host = 5;
236
+ #
237
+ # // The HTTP URL scheme, such as `http` and `https`.
238
+ # string scheme = 6;
239
+ #
240
+ # // The HTTP URL query in the format of `name1=value1&name2=value2`, as it
241
+ # // appears in the first line of the HTTP request. No decoding is performed.
242
+ # string query = 7;
243
+ #
244
+ # // The timestamp when the `destination` service receives the last byte of
245
+ # // the request.
246
+ # google.protobuf.Timestamp time = 9;
247
+ #
248
+ # // The HTTP request size in bytes. If unknown, it must be -1.
249
+ # int64 size = 10;
250
+ #
251
+ # // The network protocol used with the request, such as "http/1.1",
252
+ # // "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
253
+ # // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
254
+ # // for details.
255
+ # string protocol = 11;
256
+ #
257
+ # // A special parameter for request reason. It is used by security systems
258
+ # // to associate auditing information with a request.
259
+ # string reason = 12;
260
+ #
261
+ # // The request authentication. May be absent for unauthenticated requests.
262
+ # // Derived from the HTTP request `Authorization` header or equivalent.
263
+ # Auth auth = 13;
264
+ # }
265
+ #
266
+ # // This message defines attributes for a typical network response. It
267
+ # // generally models semantics of an HTTP response.
268
+ # message Response {
269
+ # // The HTTP response status code, such as `200` and `404`.
270
+ # int64 code = 1;
271
+ #
272
+ # // The HTTP response size in bytes. If unknown, it must be -1.
273
+ # int64 size = 2;
274
+ #
275
+ # // The HTTP response headers. If multiple headers share the same key, they
276
+ # // must be merged according to HTTP spec. All header keys must be
277
+ # // lowercased, because HTTP header keys are case-insensitive.
278
+ # map<string, string> headers = 3;
279
+ #
280
+ # // The timestamp when the `destination` service sends the last byte of
281
+ # // the response.
282
+ # google.protobuf.Timestamp time = 4;
283
+ #
284
+ # // The amount of time it takes the backend service to fully respond to a
285
+ # // request. Measured from when the destination service starts to send the
286
+ # // request to the backend until when the destination service receives the
287
+ # // complete response from the backend.
288
+ # google.protobuf.Duration backend_latency = 5;
289
+ # }
290
+ #
291
+ # // This message defines core attributes for a resource. A resource is an
292
+ # // addressable (named) entity provided by the destination service. For
293
+ # // example, a file stored on a network storage service.
294
+ # message Resource {
295
+ # // The name of the service that this resource belongs to, such as
296
+ # // `pubsub.googleapis.com`. The service may be different from the DNS
297
+ # // hostname that actually serves the request.
298
+ # string service = 1;
299
+ #
300
+ # // The stable identifier (name) of a resource on the `service`. A resource
301
+ # // can be logically identified as "//{resource.service}/{resource.name}".
302
+ # // The differences between a resource name and a URI are:
303
+ # //
304
+ # // * Resource name is a logical identifier, independent of network
305
+ # // protocol and API version. For example,
306
+ # // `//pubsub.googleapis.com/projects/123/topics/news-feed`.
307
+ # // * URI often includes protocol and version information, so it can
308
+ # // be used directly by applications. For example,
309
+ # // `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
310
+ # //
311
+ # // See https://cloud.google.com/apis/design/resource_names for details.
312
+ # string name = 2;
313
+ #
314
+ # // The type of the resource. The syntax is platform-specific because
315
+ # // different platforms define their resources differently.
316
+ # //
317
+ # // For Google APIs, the type format must be "{service}/{kind}", such as
318
+ # // "pubsub.googleapis.com/Topic".
319
+ # string type = 3;
320
+ #
321
+ # // The labels or tags on the resource, such as AWS resource tags and
322
+ # // Kubernetes resource labels.
323
+ # map<string, string> labels = 4;
324
+ #
325
+ # // The unique identifier of the resource. UID is unique in the time
326
+ # // and space for this resource within the scope of the service. It is
327
+ # // typically generated by the server on successful creation of a resource
328
+ # // and must not be changed. UID is used to uniquely identify resources
329
+ # // with resource name reuses. This should be a UUID4.
330
+ # string uid = 5;
331
+ #
332
+ # // Annotations is an unstructured key-value map stored with a resource that
333
+ # // may be set by external tools to store and retrieve arbitrary metadata.
334
+ # // They are not queryable and should be preserved when modifying objects.
335
+ # //
336
+ # // More info: https://kubernetes.io/docs/user-guide/annotations
337
+ # map<string, string> annotations = 6;
338
+ #
339
+ # // Mutable. The display name set by clients. Must be <= 63 characters.
340
+ # string display_name = 7;
341
+ #
342
+ # // Output only. The timestamp when the resource was created. This may
343
+ # // be either the time creation was initiated or when it was completed.
344
+ # google.protobuf.Timestamp create_time = 8;
345
+ #
346
+ # // Output only. The timestamp when the resource was last updated. Any
347
+ # // change to the resource made by users must refresh this value.
348
+ # // Changes to a resource made by the service should refresh this value.
349
+ # google.protobuf.Timestamp update_time = 9;
350
+ #
351
+ # // Output only. The timestamp when the resource was deleted.
352
+ # // If the resource is not deleted, this must be empty.
353
+ # google.protobuf.Timestamp delete_time = 10;
354
+ #
355
+ # // Output only. An opaque value that uniquely identifies a version or
356
+ # // generation of a resource. It can be used to confirm that the client
357
+ # // and server agree on the ordering of a resource being written.
358
+ # string etag = 11;
359
+ #
360
+ # // Immutable. The location of the resource. The location encoding is
361
+ # // specific to the service provider, and new encoding may be introduced
362
+ # // as the service evolves.
363
+ # //
364
+ # // For Google Cloud products, the encoding is what is used by Google Cloud
365
+ # // APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
366
+ # // semantics of `location` is identical to the
367
+ # // `cloud.googleapis.com/location` label used by some Google Cloud APIs.
368
+ # string location = 12;
369
+ # }
370
+ #
371
+ # // The origin of a network activity. In a multi hop network activity,
372
+ # // the origin represents the sender of the first hop. For the first hop,
373
+ # // the `source` and the `origin` must have the same content.
374
+ # Peer origin = 7;
375
+ #
376
+ # // The source of a network activity, such as starting a TCP connection.
377
+ # // In a multi hop network activity, the source represents the sender of the
378
+ # // last hop.
379
+ # Peer source = 1;
380
+ #
381
+ # // The destination of a network activity, such as accepting a TCP connection.
382
+ # // In a multi hop network activity, the destination represents the receiver of
383
+ # // the last hop.
384
+ # Peer destination = 2;
385
+ #
386
+ # // Represents a network request, such as an HTTP request.
387
+ # Request request = 3;
388
+ #
389
+ # // Represents a network response, such as an HTTP response.
390
+ # Response response = 4;
391
+ #
392
+ # // Represents a target resource that is involved with a network activity.
393
+ # // If multiple resources are involved with an activity, this must be the
394
+ # // primary one.
395
+ # Resource resource = 5;
396
+ #
397
+ # // Represents an API operation that is involved to a network activity.
398
+ # Api api = 6;
399
+ #
400
+ # // Supports extensions for advanced use cases, such as logs and metrics.
401
+ # repeated google.protobuf.Any extensions = 8;
402
+ # }
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/rpc/context/audit_context.proto
3
4
 
@@ -5,16 +6,32 @@ require 'google/protobuf'
5
6
 
6
7
  require 'google/protobuf/struct_pb'
7
8
 
8
- Google::Protobuf::DescriptorPool.generated_pool.build do
9
- add_file("google/rpc/context/audit_context.proto", :syntax => :proto3) do
10
- add_message "google.rpc.context.AuditContext" do
11
- optional :audit_log, :bytes, 1
12
- optional :scrubbed_request, :message, 2, "google.protobuf.Struct"
13
- optional :scrubbed_response, :message, 3, "google.protobuf.Struct"
14
- optional :scrubbed_response_item_count, :int32, 4
15
- optional :target_resource, :string, 5
9
+
10
+ descriptor_data = "\n&google/rpc/context/audit_context.proto\x12\x12google.rpc.context\x1a\x1cgoogle/protobuf/struct.proto\"\xc7\x01\n\x0c\x41uditContext\x12\x11\n\taudit_log\x18\x01 \x01(\x0c\x12\x31\n\x10scrubbed_request\x18\x02 \x01(\x0b\x32\x17.google.protobuf.Struct\x12\x32\n\x11scrubbed_response\x18\x03 \x01(\x0b\x32\x17.google.protobuf.Struct\x12$\n\x1cscrubbed_response_item_count\x18\x04 \x01(\x05\x12\x17\n\x0ftarget_resource\x18\x05 \x01(\tBk\n\x16\x63om.google.rpc.contextB\x11\x41uditContextProtoP\x01Z9google.golang.org/genproto/googleapis/rpc/context;context\xf8\x01\x01\x62\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.Struct", "google/protobuf/struct.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}"
16
31
  end
17
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."
18
35
  end
19
36
 
20
37
  module Google
@@ -24,3 +41,55 @@ module Google
24
41
  end
25
42
  end
26
43
  end
44
+
45
+ #### Source proto file: google/rpc/context/audit_context.proto ####
46
+ #
47
+ # // Copyright 2022 Google LLC
48
+ # //
49
+ # // Licensed under the Apache License, Version 2.0 (the "License");
50
+ # // you may not use this file except in compliance with the License.
51
+ # // You may obtain a copy of the License at
52
+ # //
53
+ # // http://www.apache.org/licenses/LICENSE-2.0
54
+ # //
55
+ # // Unless required by applicable law or agreed to in writing, software
56
+ # // distributed under the License is distributed on an "AS IS" BASIS,
57
+ # // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
58
+ # // See the License for the specific language governing permissions and
59
+ # // limitations under the License.
60
+ #
61
+ # syntax = "proto3";
62
+ #
63
+ # package google.rpc.context;
64
+ #
65
+ # import "google/protobuf/struct.proto";
66
+ #
67
+ # option cc_enable_arenas = true;
68
+ # option go_package = "google.golang.org/genproto/googleapis/rpc/context;context";
69
+ # option java_multiple_files = true;
70
+ # option java_outer_classname = "AuditContextProto";
71
+ # option java_package = "com.google.rpc.context";
72
+ #
73
+ # // `AuditContext` provides information that is needed for audit logging.
74
+ # message AuditContext {
75
+ # // Serialized audit log.
76
+ # bytes audit_log = 1;
77
+ #
78
+ # // An API request message that is scrubbed based on the method annotation.
79
+ # // This field should only be filled if audit_log field is present.
80
+ # // Service Control will use this to assemble a complete log for Cloud Audit
81
+ # // Logs and Google internal audit logs.
82
+ # google.protobuf.Struct scrubbed_request = 2;
83
+ #
84
+ # // An API response message that is scrubbed based on the method annotation.
85
+ # // This field should only be filled if audit_log field is present.
86
+ # // Service Control will use this to assemble a complete log for Cloud Audit
87
+ # // Logs and Google internal audit logs.
88
+ # google.protobuf.Struct scrubbed_response = 3;
89
+ #
90
+ # // Number of scrubbed response items.
91
+ # int32 scrubbed_response_item_count = 4;
92
+ #
93
+ # // Audit resource name which is scrubbed.
94
+ # string target_resource = 5;
95
+ # }