@hyperlane-xyz/cli 16.2.0 → 18.0.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 (190) hide show
  1. package/cli-bundle/index.js +39174 -1835
  2. package/examples/submit/transactions/{alfajores-transactions.json → sepolia-transactions.json} +1 -1
  3. package/package.json +5 -5
  4. package/cli-bundle/798.index.js +0 -169715
  5. package/cli-bundle/proto/channelz.proto +0 -564
  6. package/cli-bundle/protos/compute_operations.d.ts +0 -7304
  7. package/cli-bundle/protos/compute_operations.js +0 -1
  8. package/cli-bundle/protos/compute_operations.json +0 -1
  9. package/cli-bundle/protos/google/api/annotations.proto +0 -31
  10. package/cli-bundle/protos/google/api/apikeys/v2/apikeys.proto +0 -288
  11. package/cli-bundle/protos/google/api/apikeys/v2/resources.proto +0 -175
  12. package/cli-bundle/protos/google/api/auth.proto +0 -237
  13. package/cli-bundle/protos/google/api/backend.proto +0 -185
  14. package/cli-bundle/protos/google/api/billing.proto +0 -77
  15. package/cli-bundle/protos/google/api/client.proto +0 -427
  16. package/cli-bundle/protos/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
  17. package/cli-bundle/protos/google/api/cloudquotas/v1/resources.proto +0 -311
  18. package/cli-bundle/protos/google/api/config_change.proto +0 -84
  19. package/cli-bundle/protos/google/api/consumer.proto +0 -82
  20. package/cli-bundle/protos/google/api/context.proto +0 -90
  21. package/cli-bundle/protos/google/api/control.proto +0 -41
  22. package/cli-bundle/protos/google/api/distribution.proto +0 -213
  23. package/cli-bundle/protos/google/api/documentation.proto +0 -168
  24. package/cli-bundle/protos/google/api/endpoint.proto +0 -73
  25. package/cli-bundle/protos/google/api/error_reason.proto +0 -589
  26. package/cli-bundle/protos/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
  27. package/cli-bundle/protos/google/api/expr/v1alpha1/checked.proto +0 -343
  28. package/cli-bundle/protos/google/api/expr/v1alpha1/eval.proto +0 -118
  29. package/cli-bundle/protos/google/api/expr/v1alpha1/explain.proto +0 -53
  30. package/cli-bundle/protos/google/api/expr/v1alpha1/syntax.proto +0 -400
  31. package/cli-bundle/protos/google/api/expr/v1alpha1/value.proto +0 -115
  32. package/cli-bundle/protos/google/api/expr/v1beta1/decl.proto +0 -84
  33. package/cli-bundle/protos/google/api/expr/v1beta1/eval.proto +0 -125
  34. package/cli-bundle/protos/google/api/expr/v1beta1/expr.proto +0 -265
  35. package/cli-bundle/protos/google/api/expr/v1beta1/source.proto +0 -62
  36. package/cli-bundle/protos/google/api/expr/v1beta1/value.proto +0 -114
  37. package/cli-bundle/protos/google/api/field_behavior.proto +0 -104
  38. package/cli-bundle/protos/google/api/field_info.proto +0 -79
  39. package/cli-bundle/protos/google/api/http.proto +0 -379
  40. package/cli-bundle/protos/google/api/httpbody.proto +0 -81
  41. package/cli-bundle/protos/google/api/label.proto +0 -48
  42. package/cli-bundle/protos/google/api/launch_stage.proto +0 -72
  43. package/cli-bundle/protos/google/api/log.proto +0 -54
  44. package/cli-bundle/protos/google/api/logging.proto +0 -81
  45. package/cli-bundle/protos/google/api/metric.proto +0 -268
  46. package/cli-bundle/protos/google/api/monitored_resource.proto +0 -130
  47. package/cli-bundle/protos/google/api/monitoring.proto +0 -107
  48. package/cli-bundle/protos/google/api/policy.proto +0 -85
  49. package/cli-bundle/protos/google/api/quota.proto +0 -184
  50. package/cli-bundle/protos/google/api/resource.proto +0 -238
  51. package/cli-bundle/protos/google/api/routing.proto +0 -461
  52. package/cli-bundle/protos/google/api/service.proto +0 -191
  53. package/cli-bundle/protos/google/api/servicecontrol/v1/check_error.proto +0 -124
  54. package/cli-bundle/protos/google/api/servicecontrol/v1/distribution.proto +0 -166
  55. package/cli-bundle/protos/google/api/servicecontrol/v1/http_request.proto +0 -93
  56. package/cli-bundle/protos/google/api/servicecontrol/v1/log_entry.proto +0 -126
  57. package/cli-bundle/protos/google/api/servicecontrol/v1/metric_value.proto +0 -81
  58. package/cli-bundle/protos/google/api/servicecontrol/v1/operation.proto +0 -123
  59. package/cli-bundle/protos/google/api/servicecontrol/v1/quota_controller.proto +0 -245
  60. package/cli-bundle/protos/google/api/servicecontrol/v1/service_controller.proto +0 -260
  61. package/cli-bundle/protos/google/api/servicecontrol/v2/service_controller.proto +0 -196
  62. package/cli-bundle/protos/google/api/servicemanagement/v1/resources.proto +0 -295
  63. package/cli-bundle/protos/google/api/servicemanagement/v1/servicemanager.proto +0 -508
  64. package/cli-bundle/protos/google/api/serviceusage/v1/resources.proto +0 -130
  65. package/cli-bundle/protos/google/api/serviceusage/v1/serviceusage.proto +0 -305
  66. package/cli-bundle/protos/google/api/serviceusage/v1beta1/resources.proto +0 -458
  67. package/cli-bundle/protos/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
  68. package/cli-bundle/protos/google/api/source_info.proto +0 -31
  69. package/cli-bundle/protos/google/api/system_parameter.proto +0 -96
  70. package/cli-bundle/protos/google/api/usage.proto +0 -96
  71. package/cli-bundle/protos/google/api/visibility.proto +0 -113
  72. package/cli-bundle/protos/google/cloud/location/locations.proto +0 -108
  73. package/cli-bundle/protos/google/iam/v1/iam_policy.proto +0 -155
  74. package/cli-bundle/protos/google/iam/v1/logging/audit_data.proto +0 -33
  75. package/cli-bundle/protos/google/iam/v1/options.proto +0 -48
  76. package/cli-bundle/protos/google/iam/v1/policy.proto +0 -410
  77. package/cli-bundle/protos/google/logging/type/http_request.proto +0 -95
  78. package/cli-bundle/protos/google/logging/type/log_severity.proto +0 -71
  79. package/cli-bundle/protos/google/longrunning/operations.proto +0 -247
  80. package/cli-bundle/protos/google/monitoring/v3/alert.proto +0 -669
  81. package/cli-bundle/protos/google/monitoring/v3/alert_service.proto +0 -256
  82. package/cli-bundle/protos/google/monitoring/v3/common.proto +0 -488
  83. package/cli-bundle/protos/google/monitoring/v3/dropped_labels.proto +0 -46
  84. package/cli-bundle/protos/google/monitoring/v3/group.proto +0 -90
  85. package/cli-bundle/protos/google/monitoring/v3/group_service.proto +0 -290
  86. package/cli-bundle/protos/google/monitoring/v3/metric.proto +0 -239
  87. package/cli-bundle/protos/google/monitoring/v3/metric_service.proto +0 -522
  88. package/cli-bundle/protos/google/monitoring/v3/mutation_record.proto +0 -36
  89. package/cli-bundle/protos/google/monitoring/v3/notification.proto +0 -195
  90. package/cli-bundle/protos/google/monitoring/v3/notification_service.proto +0 -448
  91. package/cli-bundle/protos/google/monitoring/v3/query_service.proto +0 -48
  92. package/cli-bundle/protos/google/monitoring/v3/service.proto +0 -457
  93. package/cli-bundle/protos/google/monitoring/v3/service_service.proto +0 -352
  94. package/cli-bundle/protos/google/monitoring/v3/snooze.proto +0 -78
  95. package/cli-bundle/protos/google/monitoring/v3/snooze_service.proto +0 -210
  96. package/cli-bundle/protos/google/monitoring/v3/span_context.proto +0 -45
  97. package/cli-bundle/protos/google/monitoring/v3/uptime.proto +0 -564
  98. package/cli-bundle/protos/google/monitoring/v3/uptime_service.proto +0 -259
  99. package/cli-bundle/protos/google/protobuf/any.proto +0 -162
  100. package/cli-bundle/protos/google/protobuf/api.proto +0 -207
  101. package/cli-bundle/protos/google/protobuf/bridge/message_set.proto +0 -76
  102. package/cli-bundle/protos/google/protobuf/compiler/plugin.proto +0 -180
  103. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code.proto +0 -77
  104. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2.proto +0 -78
  105. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2_import.proto +0 -12
  106. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit.proto +0 -16
  107. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy.proto +0 -16
  108. package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_implicit.proto +0 -14
  109. package/cli-bundle/protos/google/protobuf/cpp_features.proto +0 -45
  110. package/cli-bundle/protos/google/protobuf/descriptor.proto +0 -1225
  111. package/cli-bundle/protos/google/protobuf/duration.proto +0 -115
  112. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_enum.proto +0 -26
  113. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_group.proto +0 -18
  114. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_import.proto +0 -16
  115. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_inline_comments.proto +0 -33
  116. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_multiline_comments.proto +0 -33
  117. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_optional.proto +0 -65
  118. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_packed.proto +0 -14
  119. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_proto3_enum.proto +0 -18
  120. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_required.proto +0 -47
  121. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_unpacked.proto +0 -19
  122. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_disabled.proto +0 -16
  123. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_lite.proto +0 -17
  124. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_verify.proto +0 -14
  125. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_enum.proto +0 -26
  126. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_implicit.proto +0 -65
  127. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_import.proto +0 -16
  128. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_optional.proto +0 -47
  129. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_packed.proto +0 -20
  130. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_unpacked.proto +0 -19
  131. package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_utf8_strict.proto +0 -15
  132. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2.proto +0 -129
  133. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_lite.proto +0 -19
  134. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_utf8_disabled.proto +0 -18
  135. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3.proto +0 -32
  136. package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3_utf8_disabled.proto +0 -18
  137. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2.proto +0 -14
  138. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2_import.proto +0 -16
  139. package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto3.proto +0 -14
  140. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2.proto +0 -91
  141. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_lite.proto +0 -20
  142. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_utf8_disabled.proto +0 -19
  143. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3.proto +0 -25
  144. package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3_utf8_disabled.proto +0 -19
  145. package/cli-bundle/protos/google/protobuf/empty.proto +0 -51
  146. package/cli-bundle/protos/google/protobuf/field_mask.proto +0 -245
  147. package/cli-bundle/protos/google/protobuf/sample_messages_edition.proto +0 -427
  148. package/cli-bundle/protos/google/protobuf/source_context.proto +0 -48
  149. package/cli-bundle/protos/google/protobuf/struct.proto +0 -95
  150. package/cli-bundle/protos/google/protobuf/timestamp.proto +0 -144
  151. package/cli-bundle/protos/google/protobuf/type.proto +0 -193
  152. package/cli-bundle/protos/google/protobuf/util/json_format.proto +0 -116
  153. package/cli-bundle/protos/google/protobuf/util/json_format_proto3.proto +0 -301
  154. package/cli-bundle/protos/google/protobuf/wrappers.proto +0 -123
  155. package/cli-bundle/protos/google/rpc/code.proto +0 -186
  156. package/cli-bundle/protos/google/rpc/context/attribute_context.proto +0 -344
  157. package/cli-bundle/protos/google/rpc/context/audit_context.proto +0 -49
  158. package/cli-bundle/protos/google/rpc/error_details.proto +0 -285
  159. package/cli-bundle/protos/google/rpc/http.proto +0 -64
  160. package/cli-bundle/protos/google/rpc/status.proto +0 -49
  161. package/cli-bundle/protos/google/type/calendar_period.proto +0 -56
  162. package/cli-bundle/protos/google/type/color.proto +0 -174
  163. package/cli-bundle/protos/google/type/date.proto +0 -52
  164. package/cli-bundle/protos/google/type/datetime.proto +0 -104
  165. package/cli-bundle/protos/google/type/dayofweek.proto +0 -50
  166. package/cli-bundle/protos/google/type/decimal.proto +0 -95
  167. package/cli-bundle/protos/google/type/expr.proto +0 -73
  168. package/cli-bundle/protos/google/type/fraction.proto +0 -33
  169. package/cli-bundle/protos/google/type/interval.proto +0 -46
  170. package/cli-bundle/protos/google/type/latlng.proto +0 -37
  171. package/cli-bundle/protos/google/type/localized_text.proto +0 -36
  172. package/cli-bundle/protos/google/type/money.proto +0 -42
  173. package/cli-bundle/protos/google/type/month.proto +0 -65
  174. package/cli-bundle/protos/google/type/phone_number.proto +0 -113
  175. package/cli-bundle/protos/google/type/postal_address.proto +0 -134
  176. package/cli-bundle/protos/google/type/quaternion.proto +0 -94
  177. package/cli-bundle/protos/google/type/timeofday.proto +0 -44
  178. package/cli-bundle/protos/http.d.ts +0 -347
  179. package/cli-bundle/protos/http.js +0 -1
  180. package/cli-bundle/protos/iam_service.d.ts +0 -5035
  181. package/cli-bundle/protos/iam_service.js +0 -1
  182. package/cli-bundle/protos/iam_service.json +0 -1
  183. package/cli-bundle/protos/locations.d.ts +0 -4060
  184. package/cli-bundle/protos/locations.js +0 -1
  185. package/cli-bundle/protos/locations.json +0 -1
  186. package/cli-bundle/protos/operations.d.ts +0 -4783
  187. package/cli-bundle/protos/operations.js +0 -1
  188. package/cli-bundle/protos/operations.json +0 -1
  189. package/cli-bundle/protos/status.json +0 -1
  190. package/cli-bundle/worker2.js +0 -174
@@ -1,344 +0,0 @@
1
- // Copyright 2022 Google LLC
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package google.rpc.context;
18
-
19
- import "google/protobuf/any.proto";
20
- import "google/protobuf/duration.proto";
21
- import "google/protobuf/struct.proto";
22
- import "google/protobuf/timestamp.proto";
23
-
24
- option cc_enable_arenas = true;
25
- option go_package = "google.golang.org/genproto/googleapis/rpc/context/attribute_context;attribute_context";
26
- option java_multiple_files = true;
27
- option java_outer_classname = "AttributeContextProto";
28
- option java_package = "com.google.rpc.context";
29
-
30
- // This message defines the standard attribute vocabulary for Google APIs.
31
- //
32
- // An attribute is a piece of metadata that describes an activity on a network
33
- // service. For example, the size of an HTTP request, or the status code of
34
- // an HTTP response.
35
- //
36
- // Each attribute has a type and a name, which is logically defined as
37
- // a proto message field in `AttributeContext`. The field type becomes the
38
- // attribute type, and the field path becomes the attribute name. For example,
39
- // the attribute `source.ip` maps to field `AttributeContext.source.ip`.
40
- //
41
- // This message definition is guaranteed not to have any wire breaking change.
42
- // So you can use it directly for passing attributes across different systems.
43
- //
44
- // NOTE: Different system may generate different subset of attributes. Please
45
- // verify the system specification before relying on an attribute generated
46
- // a system.
47
- message AttributeContext {
48
- // This message defines attributes for a node that handles a network request.
49
- // The node can be either a service or an application that sends, forwards,
50
- // or receives the request. Service peers should fill in
51
- // `principal` and `labels` as appropriate.
52
- message Peer {
53
- // The IP address of the peer.
54
- string ip = 1;
55
-
56
- // The network port of the peer.
57
- int64 port = 2;
58
-
59
- // The labels associated with the peer.
60
- map<string, string> labels = 6;
61
-
62
- // The identity of this peer. Similar to `Request.auth.principal`, but
63
- // relative to the peer instead of the request. For example, the
64
- // identity associated with a load balancer that forwarded the request.
65
- string principal = 7;
66
-
67
- // The CLDR country/region code associated with the above IP address.
68
- // If the IP address is private, the `region_code` should reflect the
69
- // physical location where this peer is running.
70
- string region_code = 8;
71
- }
72
-
73
- // This message defines attributes associated with API operations, such as
74
- // a network API request. The terminology is based on the conventions used
75
- // by Google APIs, Istio, and OpenAPI.
76
- message Api {
77
- // The API service name. It is a logical identifier for a networked API,
78
- // such as "pubsub.googleapis.com". The naming syntax depends on the
79
- // API management system being used for handling the request.
80
- string service = 1;
81
-
82
- // The API operation name. For gRPC requests, it is the fully qualified API
83
- // method name, such as "google.pubsub.v1.Publisher.Publish". For OpenAPI
84
- // requests, it is the `operationId`, such as "getPet".
85
- string operation = 2;
86
-
87
- // The API protocol used for sending the request, such as "http", "https",
88
- // "grpc", or "internal".
89
- string protocol = 3;
90
-
91
- // The API version associated with the API operation above, such as "v1" or
92
- // "v1alpha1".
93
- string version = 4;
94
- }
95
-
96
- // This message defines request authentication attributes. Terminology is
97
- // based on the JSON Web Token (JWT) standard, but the terms also
98
- // correlate to concepts in other standards.
99
- message Auth {
100
- // The authenticated principal. Reflects the issuer (`iss`) and subject
101
- // (`sub`) claims within a JWT. The issuer and subject should be `/`
102
- // delimited, with `/` percent-encoded within the subject fragment. For
103
- // Google accounts, the principal format is:
104
- // "https://accounts.google.com/{id}"
105
- string principal = 1;
106
-
107
- // The intended audience(s) for this authentication information. Reflects
108
- // the audience (`aud`) claim within a JWT. The audience
109
- // value(s) depends on the `issuer`, but typically include one or more of
110
- // the following pieces of information:
111
- //
112
- // * The services intended to receive the credential. For example,
113
- // ["https://pubsub.googleapis.com/", "https://storage.googleapis.com/"].
114
- // * A set of service-based scopes. For example,
115
- // ["https://www.googleapis.com/auth/cloud-platform"].
116
- // * The client id of an app, such as the Firebase project id for JWTs
117
- // from Firebase Auth.
118
- //
119
- // Consult the documentation for the credential issuer to determine the
120
- // information provided.
121
- repeated string audiences = 2;
122
-
123
- // The authorized presenter of the credential. Reflects the optional
124
- // Authorized Presenter (`azp`) claim within a JWT or the
125
- // OAuth client id. For example, a Google Cloud Platform client id looks
126
- // as follows: "123456789012.apps.googleusercontent.com".
127
- string presenter = 3;
128
-
129
- // Structured claims presented with the credential. JWTs include
130
- // `{key: value}` pairs for standard and private claims. The following
131
- // is a subset of the standard required and optional claims that would
132
- // typically be presented for a Google-based JWT:
133
- //
134
- // {'iss': 'accounts.google.com',
135
- // 'sub': '113289723416554971153',
136
- // 'aud': ['123456789012', 'pubsub.googleapis.com'],
137
- // 'azp': '123456789012.apps.googleusercontent.com',
138
- // 'email': 'jsmith@example.com',
139
- // 'iat': 1353601026,
140
- // 'exp': 1353604926}
141
- //
142
- // SAML assertions are similarly specified, but with an identity provider
143
- // dependent structure.
144
- google.protobuf.Struct claims = 4;
145
-
146
- // A list of access level resource names that allow resources to be
147
- // accessed by authenticated requester. It is part of Secure GCP processing
148
- // for the incoming request. An access level string has the format:
149
- // "//{api_service_name}/accessPolicies/{policy_id}/accessLevels/{short_name}"
150
- //
151
- // Example:
152
- // "//accesscontextmanager.googleapis.com/accessPolicies/MY_POLICY_ID/accessLevels/MY_LEVEL"
153
- repeated string access_levels = 5;
154
- }
155
-
156
- // This message defines attributes for an HTTP request. If the actual
157
- // request is not an HTTP request, the runtime system should try to map
158
- // the actual request to an equivalent HTTP request.
159
- message Request {
160
- // The unique ID for a request, which can be propagated to downstream
161
- // systems. The ID should have low probability of collision
162
- // within a single day for a specific service.
163
- string id = 1;
164
-
165
- // The HTTP request method, such as `GET`, `POST`.
166
- string method = 2;
167
-
168
- // The HTTP request headers. If multiple headers share the same key, they
169
- // must be merged according to the HTTP spec. All header keys must be
170
- // lowercased, because HTTP header keys are case-insensitive.
171
- map<string, string> headers = 3;
172
-
173
- // The HTTP URL path, excluding the query parameters.
174
- string path = 4;
175
-
176
- // The HTTP request `Host` header value.
177
- string host = 5;
178
-
179
- // The HTTP URL scheme, such as `http` and `https`.
180
- string scheme = 6;
181
-
182
- // The HTTP URL query in the format of `name1=value1&name2=value2`, as it
183
- // appears in the first line of the HTTP request. No decoding is performed.
184
- string query = 7;
185
-
186
- // The timestamp when the `destination` service receives the last byte of
187
- // the request.
188
- google.protobuf.Timestamp time = 9;
189
-
190
- // The HTTP request size in bytes. If unknown, it must be -1.
191
- int64 size = 10;
192
-
193
- // The network protocol used with the request, such as "http/1.1",
194
- // "spdy/3", "h2", "h2c", "webrtc", "tcp", "udp", "quic". See
195
- // https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
196
- // for details.
197
- string protocol = 11;
198
-
199
- // A special parameter for request reason. It is used by security systems
200
- // to associate auditing information with a request.
201
- string reason = 12;
202
-
203
- // The request authentication. May be absent for unauthenticated requests.
204
- // Derived from the HTTP request `Authorization` header or equivalent.
205
- Auth auth = 13;
206
- }
207
-
208
- // This message defines attributes for a typical network response. It
209
- // generally models semantics of an HTTP response.
210
- message Response {
211
- // The HTTP response status code, such as `200` and `404`.
212
- int64 code = 1;
213
-
214
- // The HTTP response size in bytes. If unknown, it must be -1.
215
- int64 size = 2;
216
-
217
- // The HTTP response headers. If multiple headers share the same key, they
218
- // must be merged according to HTTP spec. All header keys must be
219
- // lowercased, because HTTP header keys are case-insensitive.
220
- map<string, string> headers = 3;
221
-
222
- // The timestamp when the `destination` service sends the last byte of
223
- // the response.
224
- google.protobuf.Timestamp time = 4;
225
-
226
- // The amount of time it takes the backend service to fully respond to a
227
- // request. Measured from when the destination service starts to send the
228
- // request to the backend until when the destination service receives the
229
- // complete response from the backend.
230
- google.protobuf.Duration backend_latency = 5;
231
- }
232
-
233
- // This message defines core attributes for a resource. A resource is an
234
- // addressable (named) entity provided by the destination service. For
235
- // example, a file stored on a network storage service.
236
- message Resource {
237
- // The name of the service that this resource belongs to, such as
238
- // `pubsub.googleapis.com`. The service may be different from the DNS
239
- // hostname that actually serves the request.
240
- string service = 1;
241
-
242
- // The stable identifier (name) of a resource on the `service`. A resource
243
- // can be logically identified as "//{resource.service}/{resource.name}".
244
- // The differences between a resource name and a URI are:
245
- //
246
- // * Resource name is a logical identifier, independent of network
247
- // protocol and API version. For example,
248
- // `//pubsub.googleapis.com/projects/123/topics/news-feed`.
249
- // * URI often includes protocol and version information, so it can
250
- // be used directly by applications. For example,
251
- // `https://pubsub.googleapis.com/v1/projects/123/topics/news-feed`.
252
- //
253
- // See https://cloud.google.com/apis/design/resource_names for details.
254
- string name = 2;
255
-
256
- // The type of the resource. The syntax is platform-specific because
257
- // different platforms define their resources differently.
258
- //
259
- // For Google APIs, the type format must be "{service}/{kind}", such as
260
- // "pubsub.googleapis.com/Topic".
261
- string type = 3;
262
-
263
- // The labels or tags on the resource, such as AWS resource tags and
264
- // Kubernetes resource labels.
265
- map<string, string> labels = 4;
266
-
267
- // The unique identifier of the resource. UID is unique in the time
268
- // and space for this resource within the scope of the service. It is
269
- // typically generated by the server on successful creation of a resource
270
- // and must not be changed. UID is used to uniquely identify resources
271
- // with resource name reuses. This should be a UUID4.
272
- string uid = 5;
273
-
274
- // Annotations is an unstructured key-value map stored with a resource that
275
- // may be set by external tools to store and retrieve arbitrary metadata.
276
- // They are not queryable and should be preserved when modifying objects.
277
- //
278
- // More info: https://kubernetes.io/docs/user-guide/annotations
279
- map<string, string> annotations = 6;
280
-
281
- // Mutable. The display name set by clients. Must be <= 63 characters.
282
- string display_name = 7;
283
-
284
- // Output only. The timestamp when the resource was created. This may
285
- // be either the time creation was initiated or when it was completed.
286
- google.protobuf.Timestamp create_time = 8;
287
-
288
- // Output only. The timestamp when the resource was last updated. Any
289
- // change to the resource made by users must refresh this value.
290
- // Changes to a resource made by the service should refresh this value.
291
- google.protobuf.Timestamp update_time = 9;
292
-
293
- // Output only. The timestamp when the resource was deleted.
294
- // If the resource is not deleted, this must be empty.
295
- google.protobuf.Timestamp delete_time = 10;
296
-
297
- // Output only. An opaque value that uniquely identifies a version or
298
- // generation of a resource. It can be used to confirm that the client
299
- // and server agree on the ordering of a resource being written.
300
- string etag = 11;
301
-
302
- // Immutable. The location of the resource. The location encoding is
303
- // specific to the service provider, and new encoding may be introduced
304
- // as the service evolves.
305
- //
306
- // For Google Cloud products, the encoding is what is used by Google Cloud
307
- // APIs, such as `us-east1`, `aws-us-east-1`, and `azure-eastus2`. The
308
- // semantics of `location` is identical to the
309
- // `cloud.googleapis.com/location` label used by some Google Cloud APIs.
310
- string location = 12;
311
- }
312
-
313
- // The origin of a network activity. In a multi hop network activity,
314
- // the origin represents the sender of the first hop. For the first hop,
315
- // the `source` and the `origin` must have the same content.
316
- Peer origin = 7;
317
-
318
- // The source of a network activity, such as starting a TCP connection.
319
- // In a multi hop network activity, the source represents the sender of the
320
- // last hop.
321
- Peer source = 1;
322
-
323
- // The destination of a network activity, such as accepting a TCP connection.
324
- // In a multi hop network activity, the destination represents the receiver of
325
- // the last hop.
326
- Peer destination = 2;
327
-
328
- // Represents a network request, such as an HTTP request.
329
- Request request = 3;
330
-
331
- // Represents a network response, such as an HTTP response.
332
- Response response = 4;
333
-
334
- // Represents a target resource that is involved with a network activity.
335
- // If multiple resources are involved with an activity, this must be the
336
- // primary one.
337
- Resource resource = 5;
338
-
339
- // Represents an API operation that is involved to a network activity.
340
- Api api = 6;
341
-
342
- // Supports extensions for advanced use cases, such as logs and metrics.
343
- repeated google.protobuf.Any extensions = 8;
344
- }
@@ -1,49 +0,0 @@
1
- // Copyright 2022 Google LLC
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package google.rpc.context;
18
-
19
- import "google/protobuf/struct.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/rpc/context;context";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "AuditContextProto";
25
- option java_package = "com.google.rpc.context";
26
-
27
- // `AuditContext` provides information that is needed for audit logging.
28
- message AuditContext {
29
- // Serialized audit log.
30
- bytes audit_log = 1;
31
-
32
- // An API request message that is scrubbed based on the method annotation.
33
- // This field should only be filled if audit_log field is present.
34
- // Service Control will use this to assemble a complete log for Cloud Audit
35
- // Logs and Google internal audit logs.
36
- google.protobuf.Struct scrubbed_request = 2;
37
-
38
- // An API response message that is scrubbed based on the method annotation.
39
- // This field should only be filled if audit_log field is present.
40
- // Service Control will use this to assemble a complete log for Cloud Audit
41
- // Logs and Google internal audit logs.
42
- google.protobuf.Struct scrubbed_response = 3;
43
-
44
- // Number of scrubbed response items.
45
- int32 scrubbed_response_item_count = 4;
46
-
47
- // Audit resource name which is scrubbed.
48
- string target_resource = 5;
49
- }
@@ -1,285 +0,0 @@
1
- // Copyright 2022 Google LLC
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package google.rpc;
18
-
19
- import "google/protobuf/duration.proto";
20
-
21
- option go_package = "google.golang.org/genproto/googleapis/rpc/errdetails;errdetails";
22
- option java_multiple_files = true;
23
- option java_outer_classname = "ErrorDetailsProto";
24
- option java_package = "com.google.rpc";
25
- option objc_class_prefix = "RPC";
26
-
27
- // Describes the cause of the error with structured details.
28
- //
29
- // Example of an error when contacting the "pubsub.googleapis.com" API when it
30
- // is not enabled:
31
- //
32
- // { "reason": "API_DISABLED"
33
- // "domain": "googleapis.com"
34
- // "metadata": {
35
- // "resource": "projects/123",
36
- // "service": "pubsub.googleapis.com"
37
- // }
38
- // }
39
- //
40
- // This response indicates that the pubsub.googleapis.com API is not enabled.
41
- //
42
- // Example of an error that is returned when attempting to create a Spanner
43
- // instance in a region that is out of stock:
44
- //
45
- // { "reason": "STOCKOUT"
46
- // "domain": "spanner.googleapis.com",
47
- // "metadata": {
48
- // "availableRegions": "us-central1,us-east2"
49
- // }
50
- // }
51
- message ErrorInfo {
52
- // The reason of the error. This is a constant value that identifies the
53
- // proximate cause of the error. Error reasons are unique within a particular
54
- // domain of errors. This should be at most 63 characters and match a
55
- // regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents
56
- // UPPER_SNAKE_CASE.
57
- string reason = 1;
58
-
59
- // The logical grouping to which the "reason" belongs. The error domain
60
- // is typically the registered service name of the tool or product that
61
- // generates the error. Example: "pubsub.googleapis.com". If the error is
62
- // generated by some common infrastructure, the error domain must be a
63
- // globally unique value that identifies the infrastructure. For Google API
64
- // infrastructure, the error domain is "googleapis.com".
65
- string domain = 2;
66
-
67
- // Additional structured details about this error.
68
- //
69
- // Keys should match /[a-zA-Z0-9-_]/ and be limited to 64 characters in
70
- // length. When identifying the current value of an exceeded limit, the units
71
- // should be contained in the key, not the value. For example, rather than
72
- // {"instanceLimit": "100/request"}, should be returned as,
73
- // {"instanceLimitPerRequest": "100"}, if the client exceeds the number of
74
- // instances that can be created in a single (batch) request.
75
- map<string, string> metadata = 3;
76
- }
77
-
78
- // Describes when the clients can retry a failed request. Clients could ignore
79
- // the recommendation here or retry when this information is missing from error
80
- // responses.
81
- //
82
- // It's always recommended that clients should use exponential backoff when
83
- // retrying.
84
- //
85
- // Clients should wait until `retry_delay` amount of time has passed since
86
- // receiving the error response before retrying. If retrying requests also
87
- // fail, clients should use an exponential backoff scheme to gradually increase
88
- // the delay between retries based on `retry_delay`, until either a maximum
89
- // number of retries have been reached or a maximum retry delay cap has been
90
- // reached.
91
- message RetryInfo {
92
- // Clients should wait at least this long between retrying the same request.
93
- google.protobuf.Duration retry_delay = 1;
94
- }
95
-
96
- // Describes additional debugging info.
97
- message DebugInfo {
98
- // The stack trace entries indicating where the error occurred.
99
- repeated string stack_entries = 1;
100
-
101
- // Additional debugging information provided by the server.
102
- string detail = 2;
103
- }
104
-
105
- // Describes how a quota check failed.
106
- //
107
- // For example if a daily limit was exceeded for the calling project,
108
- // a service could respond with a QuotaFailure detail containing the project
109
- // id and the description of the quota limit that was exceeded. If the
110
- // calling project hasn't enabled the service in the developer console, then
111
- // a service could respond with the project id and set `service_disabled`
112
- // to true.
113
- //
114
- // Also see RetryInfo and Help types for other details about handling a
115
- // quota failure.
116
- message QuotaFailure {
117
- // A message type used to describe a single quota violation. For example, a
118
- // daily quota or a custom quota that was exceeded.
119
- message Violation {
120
- // The subject on which the quota check failed.
121
- // For example, "clientip:<ip address of client>" or "project:<Google
122
- // developer project id>".
123
- string subject = 1;
124
-
125
- // A description of how the quota check failed. Clients can use this
126
- // description to find more about the quota configuration in the service's
127
- // public documentation, or find the relevant quota limit to adjust through
128
- // developer console.
129
- //
130
- // For example: "Service disabled" or "Daily Limit for read operations
131
- // exceeded".
132
- string description = 2;
133
- }
134
-
135
- // Describes all quota violations.
136
- repeated Violation violations = 1;
137
- }
138
-
139
- // Describes what preconditions have failed.
140
- //
141
- // For example, if an RPC failed because it required the Terms of Service to be
142
- // acknowledged, it could list the terms of service violation in the
143
- // PreconditionFailure message.
144
- message PreconditionFailure {
145
- // A message type used to describe a single precondition failure.
146
- message Violation {
147
- // The type of PreconditionFailure. We recommend using a service-specific
148
- // enum type to define the supported precondition violation subjects. For
149
- // example, "TOS" for "Terms of Service violation".
150
- string type = 1;
151
-
152
- // The subject, relative to the type, that failed.
153
- // For example, "google.com/cloud" relative to the "TOS" type would indicate
154
- // which terms of service is being referenced.
155
- string subject = 2;
156
-
157
- // A description of how the precondition failed. Developers can use this
158
- // description to understand how to fix the failure.
159
- //
160
- // For example: "Terms of service not accepted".
161
- string description = 3;
162
- }
163
-
164
- // Describes all precondition violations.
165
- repeated Violation violations = 1;
166
- }
167
-
168
- // Describes violations in a client request. This error type focuses on the
169
- // syntactic aspects of the request.
170
- message BadRequest {
171
- // A message type used to describe a single bad request field.
172
- message FieldViolation {
173
- // A path that leads to a field in the request body. The value will be a
174
- // sequence of dot-separated identifiers that identify a protocol buffer
175
- // field.
176
- //
177
- // Consider the following:
178
- //
179
- // message CreateContactRequest {
180
- // message EmailAddress {
181
- // enum Type {
182
- // TYPE_UNSPECIFIED = 0;
183
- // HOME = 1;
184
- // WORK = 2;
185
- // }
186
- //
187
- // optional string email = 1;
188
- // repeated EmailType type = 2;
189
- // }
190
- //
191
- // string full_name = 1;
192
- // repeated EmailAddress email_addresses = 2;
193
- // }
194
- //
195
- // In this example, in proto `field` could take one of the following values:
196
- //
197
- // * `full_name` for a violation in the `full_name` value
198
- // * `email_addresses[1].email` for a violation in the `email` field of the
199
- // first `email_addresses` message
200
- // * `email_addresses[3].type[2]` for a violation in the second `type`
201
- // value in the third `email_addresses` message.
202
- //
203
- // In JSON, the same values are represented as:
204
- //
205
- // * `fullName` for a violation in the `fullName` value
206
- // * `emailAddresses[1].email` for a violation in the `email` field of the
207
- // first `emailAddresses` message
208
- // * `emailAddresses[3].type[2]` for a violation in the second `type`
209
- // value in the third `emailAddresses` message.
210
- string field = 1;
211
-
212
- // A description of why the request element is bad.
213
- string description = 2;
214
- }
215
-
216
- // Describes all violations in a client request.
217
- repeated FieldViolation field_violations = 1;
218
- }
219
-
220
- // Contains metadata about the request that clients can attach when filing a bug
221
- // or providing other forms of feedback.
222
- message RequestInfo {
223
- // An opaque string that should only be interpreted by the service generating
224
- // it. For example, it can be used to identify requests in the service's logs.
225
- string request_id = 1;
226
-
227
- // Any data that was used to serve this request. For example, an encrypted
228
- // stack trace that can be sent back to the service provider for debugging.
229
- string serving_data = 2;
230
- }
231
-
232
- // Describes the resource that is being accessed.
233
- message ResourceInfo {
234
- // A name for the type of resource being accessed, e.g. "sql table",
235
- // "cloud storage bucket", "file", "Google calendar"; or the type URL
236
- // of the resource: e.g. "type.googleapis.com/google.pubsub.v1.Topic".
237
- string resource_type = 1;
238
-
239
- // The name of the resource being accessed. For example, a shared calendar
240
- // name: "example.com_4fghdhgsrgh@group.calendar.google.com", if the current
241
- // error is
242
- // [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].
243
- string resource_name = 2;
244
-
245
- // The owner of the resource (optional).
246
- // For example, "user:<owner email>" or "project:<Google developer project
247
- // id>".
248
- string owner = 3;
249
-
250
- // Describes what error is encountered when accessing this resource.
251
- // For example, updating a cloud project may require the `writer` permission
252
- // on the developer console project.
253
- string description = 4;
254
- }
255
-
256
- // Provides links to documentation or for performing an out of band action.
257
- //
258
- // For example, if a quota check failed with an error indicating the calling
259
- // project hasn't enabled the accessed service, this can contain a URL pointing
260
- // directly to the right place in the developer console to flip the bit.
261
- message Help {
262
- // Describes a URL link.
263
- message Link {
264
- // Describes what the link offers.
265
- string description = 1;
266
-
267
- // The URL of the link.
268
- string url = 2;
269
- }
270
-
271
- // URL(s) pointing to additional information on handling the current error.
272
- repeated Link links = 1;
273
- }
274
-
275
- // Provides a localized error message that is safe to return to the user
276
- // which can be attached to an RPC error.
277
- message LocalizedMessage {
278
- // The locale used following the specification defined at
279
- // https://www.rfc-editor.org/rfc/bcp/bcp47.txt.
280
- // Examples are: "en-US", "fr-CH", "es-MX"
281
- string locale = 1;
282
-
283
- // The localized error message in the above locale.
284
- string message = 2;
285
- }