@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,94 +0,0 @@
1
- // Copyright 2021 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.type;
18
-
19
- option cc_enable_arenas = true;
20
- option go_package = "google.golang.org/genproto/googleapis/type/quaternion;quaternion";
21
- option java_multiple_files = true;
22
- option java_outer_classname = "QuaternionProto";
23
- option java_package = "com.google.type";
24
- option objc_class_prefix = "GTP";
25
-
26
- // A quaternion is defined as the quotient of two directed lines in a
27
- // three-dimensional space or equivalently as the quotient of two Euclidean
28
- // vectors (https://en.wikipedia.org/wiki/Quaternion).
29
- //
30
- // Quaternions are often used in calculations involving three-dimensional
31
- // rotations (https://en.wikipedia.org/wiki/Quaternions_and_spatial_rotation),
32
- // as they provide greater mathematical robustness by avoiding the gimbal lock
33
- // problems that can be encountered when using Euler angles
34
- // (https://en.wikipedia.org/wiki/Gimbal_lock).
35
- //
36
- // Quaternions are generally represented in this form:
37
- //
38
- // w + xi + yj + zk
39
- //
40
- // where x, y, z, and w are real numbers, and i, j, and k are three imaginary
41
- // numbers.
42
- //
43
- // Our naming choice `(x, y, z, w)` comes from the desire to avoid confusion for
44
- // those interested in the geometric properties of the quaternion in the 3D
45
- // Cartesian space. Other texts often use alternative names or subscripts, such
46
- // as `(a, b, c, d)`, `(1, i, j, k)`, or `(0, 1, 2, 3)`, which are perhaps
47
- // better suited for mathematical interpretations.
48
- //
49
- // To avoid any confusion, as well as to maintain compatibility with a large
50
- // number of software libraries, the quaternions represented using the protocol
51
- // buffer below *must* follow the Hamilton convention, which defines `ij = k`
52
- // (i.e. a right-handed algebra), and therefore:
53
- //
54
- // i^2 = j^2 = k^2 = ijk = −1
55
- // ij = −ji = k
56
- // jk = −kj = i
57
- // ki = −ik = j
58
- //
59
- // Please DO NOT use this to represent quaternions that follow the JPL
60
- // convention, or any of the other quaternion flavors out there.
61
- //
62
- // Definitions:
63
- //
64
- // - Quaternion norm (or magnitude): `sqrt(x^2 + y^2 + z^2 + w^2)`.
65
- // - Unit (or normalized) quaternion: a quaternion whose norm is 1.
66
- // - Pure quaternion: a quaternion whose scalar component (`w`) is 0.
67
- // - Rotation quaternion: a unit quaternion used to represent rotation.
68
- // - Orientation quaternion: a unit quaternion used to represent orientation.
69
- //
70
- // A quaternion can be normalized by dividing it by its norm. The resulting
71
- // quaternion maintains the same direction, but has a norm of 1, i.e. it moves
72
- // on the unit sphere. This is generally necessary for rotation and orientation
73
- // quaternions, to avoid rounding errors:
74
- // https://en.wikipedia.org/wiki/Rotation_formalisms_in_three_dimensions
75
- //
76
- // Note that `(x, y, z, w)` and `(-x, -y, -z, -w)` represent the same rotation,
77
- // but normalization would be even more useful, e.g. for comparison purposes, if
78
- // it would produce a unique representation. It is thus recommended that `w` be
79
- // kept positive, which can be achieved by changing all the signs when `w` is
80
- // negative.
81
- //
82
- message Quaternion {
83
- // The x component.
84
- double x = 1;
85
-
86
- // The y component.
87
- double y = 2;
88
-
89
- // The z component.
90
- double z = 3;
91
-
92
- // The scalar component.
93
- double w = 4;
94
- }
@@ -1,44 +0,0 @@
1
- // Copyright 2021 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.type;
18
-
19
- option cc_enable_arenas = true;
20
- option go_package = "google.golang.org/genproto/googleapis/type/timeofday;timeofday";
21
- option java_multiple_files = true;
22
- option java_outer_classname = "TimeOfDayProto";
23
- option java_package = "com.google.type";
24
- option objc_class_prefix = "GTP";
25
-
26
- // Represents a time of day. The date and time zone are either not significant
27
- // or are specified elsewhere. An API may choose to allow leap seconds. Related
28
- // types are [google.type.Date][google.type.Date] and
29
- // `google.protobuf.Timestamp`.
30
- message TimeOfDay {
31
- // Hours of day in 24 hour format. Should be from 0 to 23. An API may choose
32
- // to allow the value "24:00:00" for scenarios like business closing time.
33
- int32 hours = 1;
34
-
35
- // Minutes of hour of day. Must be from 0 to 59.
36
- int32 minutes = 2;
37
-
38
- // Seconds of minutes of the time. Must normally be from 0 to 59. An API may
39
- // allow the value 60 if it allows leap-seconds.
40
- int32 seconds = 3;
41
-
42
- // Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
43
- int32 nanos = 4;
44
- }
@@ -1,347 +0,0 @@
1
- import * as $protobuf from "protobufjs";
2
- /** Namespace google. */
3
- export namespace google {
4
-
5
- /** Namespace api. */
6
- namespace api {
7
-
8
- /** Properties of a Http. */
9
- interface IHttp {
10
-
11
- /** Http rules */
12
- rules?: (google.api.IHttpRule[]|null);
13
-
14
- /** Http fully_decode_reserved_expansion */
15
- fully_decode_reserved_expansion?: (boolean|null);
16
- }
17
-
18
- /** Represents a Http. */
19
- class Http implements IHttp {
20
-
21
- /**
22
- * Constructs a new Http.
23
- * @param [properties] Properties to set
24
- */
25
- constructor(properties?: google.api.IHttp);
26
-
27
- /** Http rules. */
28
- public rules: google.api.IHttpRule[];
29
-
30
- /** Http fully_decode_reserved_expansion. */
31
- public fully_decode_reserved_expansion: boolean;
32
-
33
- /**
34
- * Creates a new Http instance using the specified properties.
35
- * @param [properties] Properties to set
36
- * @returns Http instance
37
- */
38
- public static create(properties?: google.api.IHttp): google.api.Http;
39
-
40
- /**
41
- * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
42
- * @param message Http message or plain object to encode
43
- * @param [writer] Writer to encode to
44
- * @returns Writer
45
- */
46
- public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
47
-
48
- /**
49
- * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
50
- * @param message Http message or plain object to encode
51
- * @param [writer] Writer to encode to
52
- * @returns Writer
53
- */
54
- public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
55
-
56
- /**
57
- * Decodes a Http message from the specified reader or buffer.
58
- * @param reader Reader or buffer to decode from
59
- * @param [length] Message length if known beforehand
60
- * @returns Http
61
- * @throws {Error} If the payload is not a reader or valid buffer
62
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
63
- */
64
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
65
-
66
- /**
67
- * Decodes a Http message from the specified reader or buffer, length delimited.
68
- * @param reader Reader or buffer to decode from
69
- * @returns Http
70
- * @throws {Error} If the payload is not a reader or valid buffer
71
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72
- */
73
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
74
-
75
- /**
76
- * Verifies a Http message.
77
- * @param message Plain object to verify
78
- * @returns `null` if valid, otherwise the reason why it is not
79
- */
80
- public static verify(message: { [k: string]: any }): (string|null);
81
-
82
- /**
83
- * Creates a Http message from a plain object. Also converts values to their respective internal types.
84
- * @param object Plain object
85
- * @returns Http
86
- */
87
- public static fromObject(object: { [k: string]: any }): google.api.Http;
88
-
89
- /**
90
- * Creates a plain object from a Http message. Also converts values to other types if specified.
91
- * @param message Http
92
- * @param [options] Conversion options
93
- * @returns Plain object
94
- */
95
- public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
96
-
97
- /**
98
- * Converts this Http to JSON.
99
- * @returns JSON object
100
- */
101
- public toJSON(): { [k: string]: any };
102
- }
103
-
104
- /** Properties of a HttpRule. */
105
- interface IHttpRule {
106
-
107
- /** HttpRule selector */
108
- selector?: (string|null);
109
-
110
- /** HttpRule get */
111
- get?: (string|null);
112
-
113
- /** HttpRule put */
114
- put?: (string|null);
115
-
116
- /** HttpRule post */
117
- post?: (string|null);
118
-
119
- /** HttpRule delete */
120
- "delete"?: (string|null);
121
-
122
- /** HttpRule patch */
123
- patch?: (string|null);
124
-
125
- /** HttpRule custom */
126
- custom?: (google.api.ICustomHttpPattern|null);
127
-
128
- /** HttpRule body */
129
- body?: (string|null);
130
-
131
- /** HttpRule response_body */
132
- response_body?: (string|null);
133
-
134
- /** HttpRule additional_bindings */
135
- additional_bindings?: (google.api.IHttpRule[]|null);
136
- }
137
-
138
- /** Represents a HttpRule. */
139
- class HttpRule implements IHttpRule {
140
-
141
- /**
142
- * Constructs a new HttpRule.
143
- * @param [properties] Properties to set
144
- */
145
- constructor(properties?: google.api.IHttpRule);
146
-
147
- /** HttpRule selector. */
148
- public selector: string;
149
-
150
- /** HttpRule get. */
151
- public get: string;
152
-
153
- /** HttpRule put. */
154
- public put: string;
155
-
156
- /** HttpRule post. */
157
- public post: string;
158
-
159
- /** HttpRule delete. */
160
- public delete: string;
161
-
162
- /** HttpRule patch. */
163
- public patch: string;
164
-
165
- /** HttpRule custom. */
166
- public custom?: (google.api.ICustomHttpPattern|null);
167
-
168
- /** HttpRule body. */
169
- public body: string;
170
-
171
- /** HttpRule response_body. */
172
- public response_body: string;
173
-
174
- /** HttpRule additional_bindings. */
175
- public additional_bindings: google.api.IHttpRule[];
176
-
177
- /** HttpRule pattern. */
178
- public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
179
-
180
- /**
181
- * Creates a new HttpRule instance using the specified properties.
182
- * @param [properties] Properties to set
183
- * @returns HttpRule instance
184
- */
185
- public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
186
-
187
- /**
188
- * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
189
- * @param message HttpRule message or plain object to encode
190
- * @param [writer] Writer to encode to
191
- * @returns Writer
192
- */
193
- public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
194
-
195
- /**
196
- * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
197
- * @param message HttpRule message or plain object to encode
198
- * @param [writer] Writer to encode to
199
- * @returns Writer
200
- */
201
- public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
202
-
203
- /**
204
- * Decodes a HttpRule message from the specified reader or buffer.
205
- * @param reader Reader or buffer to decode from
206
- * @param [length] Message length if known beforehand
207
- * @returns HttpRule
208
- * @throws {Error} If the payload is not a reader or valid buffer
209
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
210
- */
211
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
212
-
213
- /**
214
- * Decodes a HttpRule message from the specified reader or buffer, length delimited.
215
- * @param reader Reader or buffer to decode from
216
- * @returns HttpRule
217
- * @throws {Error} If the payload is not a reader or valid buffer
218
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
219
- */
220
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
221
-
222
- /**
223
- * Verifies a HttpRule message.
224
- * @param message Plain object to verify
225
- * @returns `null` if valid, otherwise the reason why it is not
226
- */
227
- public static verify(message: { [k: string]: any }): (string|null);
228
-
229
- /**
230
- * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
231
- * @param object Plain object
232
- * @returns HttpRule
233
- */
234
- public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
235
-
236
- /**
237
- * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
238
- * @param message HttpRule
239
- * @param [options] Conversion options
240
- * @returns Plain object
241
- */
242
- public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
243
-
244
- /**
245
- * Converts this HttpRule to JSON.
246
- * @returns JSON object
247
- */
248
- public toJSON(): { [k: string]: any };
249
- }
250
-
251
- /** Properties of a CustomHttpPattern. */
252
- interface ICustomHttpPattern {
253
-
254
- /** CustomHttpPattern kind */
255
- kind?: (string|null);
256
-
257
- /** CustomHttpPattern path */
258
- path?: (string|null);
259
- }
260
-
261
- /** Represents a CustomHttpPattern. */
262
- class CustomHttpPattern implements ICustomHttpPattern {
263
-
264
- /**
265
- * Constructs a new CustomHttpPattern.
266
- * @param [properties] Properties to set
267
- */
268
- constructor(properties?: google.api.ICustomHttpPattern);
269
-
270
- /** CustomHttpPattern kind. */
271
- public kind: string;
272
-
273
- /** CustomHttpPattern path. */
274
- public path: string;
275
-
276
- /**
277
- * Creates a new CustomHttpPattern instance using the specified properties.
278
- * @param [properties] Properties to set
279
- * @returns CustomHttpPattern instance
280
- */
281
- public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
282
-
283
- /**
284
- * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
285
- * @param message CustomHttpPattern message or plain object to encode
286
- * @param [writer] Writer to encode to
287
- * @returns Writer
288
- */
289
- public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
290
-
291
- /**
292
- * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
293
- * @param message CustomHttpPattern message or plain object to encode
294
- * @param [writer] Writer to encode to
295
- * @returns Writer
296
- */
297
- public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
298
-
299
- /**
300
- * Decodes a CustomHttpPattern message from the specified reader or buffer.
301
- * @param reader Reader or buffer to decode from
302
- * @param [length] Message length if known beforehand
303
- * @returns CustomHttpPattern
304
- * @throws {Error} If the payload is not a reader or valid buffer
305
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
306
- */
307
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
308
-
309
- /**
310
- * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
311
- * @param reader Reader or buffer to decode from
312
- * @returns CustomHttpPattern
313
- * @throws {Error} If the payload is not a reader or valid buffer
314
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
315
- */
316
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
317
-
318
- /**
319
- * Verifies a CustomHttpPattern message.
320
- * @param message Plain object to verify
321
- * @returns `null` if valid, otherwise the reason why it is not
322
- */
323
- public static verify(message: { [k: string]: any }): (string|null);
324
-
325
- /**
326
- * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
327
- * @param object Plain object
328
- * @returns CustomHttpPattern
329
- */
330
- public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
331
-
332
- /**
333
- * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
334
- * @param message CustomHttpPattern
335
- * @param [options] Conversion options
336
- * @returns Plain object
337
- */
338
- public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
339
-
340
- /**
341
- * Converts this CustomHttpPattern to JSON.
342
- * @returns JSON object
343
- */
344
- public toJSON(): { [k: string]: any };
345
- }
346
- }
347
- }
@@ -1 +0,0 @@
1
- !function(e){"function"==typeof define&&define.amd?define(["protobufjs/minimal"],e):"function"==typeof require&&"object"==typeof module&&module&&module.exports&&(module.exports=e(require("protobufjs/minimal")))}(function(e){"use strict";var t,n,r,i=e.Reader,o=e.Writer,l=e.util,s=e.roots.default||(e.roots.default={});function a(e){if(this.rules=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}function p(e){if(this.additional_bindings=[],e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}function u(e){if(e)for(var t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return s.google=((r={}).api=((n={}).Http=(a.prototype.rules=l.emptyArray,a.prototype.fully_decode_reserved_expansion=!1,a.create=function(e){return new a(e)},a.encode=function(e,t){if(t=t||o.create(),null!=e.rules&&e.rules.length)for(var n=0;n<e.rules.length;++n)s.google.api.HttpRule.encode(e.rules[n],t.uint32(10).fork()).ldelim();return null!=e.fully_decode_reserved_expansion&&Object.hasOwnProperty.call(e,"fully_decode_reserved_expansion")&&t.uint32(16).bool(e.fully_decode_reserved_expansion),t},a.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},a.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.api.Http;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.rules&&r.rules.length||(r.rules=[]),r.rules.push(s.google.api.HttpRule.decode(e,e.uint32()));break;case 2:r.fully_decode_reserved_expansion=e.bool();break;default:e.skipType(7&o)}}return r},a.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},a.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.rules&&e.hasOwnProperty("rules")){if(!Array.isArray(e.rules))return"rules: array expected";for(var t=0;t<e.rules.length;++t){var n=s.google.api.HttpRule.verify(e.rules[t]);if(n)return"rules."+n}}return null!=e.fully_decode_reserved_expansion&&e.hasOwnProperty("fully_decode_reserved_expansion")&&"boolean"!=typeof e.fully_decode_reserved_expansion?"fully_decode_reserved_expansion: boolean expected":null},a.fromObject=function(e){if(e instanceof s.google.api.Http)return e;var t=new s.google.api.Http;if(e.rules){if(!Array.isArray(e.rules))throw TypeError(".google.api.Http.rules: array expected");t.rules=[];for(var n=0;n<e.rules.length;++n){if("object"!=typeof e.rules[n])throw TypeError(".google.api.Http.rules: object expected");t.rules[n]=s.google.api.HttpRule.fromObject(e.rules[n])}}return null!=e.fully_decode_reserved_expansion&&(t.fully_decode_reserved_expansion=Boolean(e.fully_decode_reserved_expansion)),t},a.toObject=function(e,t){var n={};if(((t=t||{}).arrays||t.defaults)&&(n.rules=[]),t.defaults&&(n.fully_decode_reserved_expansion=!1),e.rules&&e.rules.length){n.rules=[];for(var r=0;r<e.rules.length;++r)n.rules[r]=s.google.api.HttpRule.toObject(e.rules[r],t)}return null!=e.fully_decode_reserved_expansion&&e.hasOwnProperty("fully_decode_reserved_expansion")&&(n.fully_decode_reserved_expansion=e.fully_decode_reserved_expansion),n},a.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},a),n.HttpRule=(p.prototype.selector="",p.prototype.get="",p.prototype.put="",p.prototype.post="",p.prototype.delete="",p.prototype.patch="",p.prototype.custom=null,p.prototype.body="",p.prototype.response_body="",p.prototype.additional_bindings=l.emptyArray,Object.defineProperty(p.prototype,"pattern",{get:l.oneOfGetter(t=["get","put","post","delete","patch","custom"]),set:l.oneOfSetter(t)}),p.create=function(e){return new p(e)},p.encode=function(e,t){if(t=t||o.create(),null!=e.selector&&Object.hasOwnProperty.call(e,"selector")&&t.uint32(10).string(e.selector),null!=e.get&&Object.hasOwnProperty.call(e,"get")&&t.uint32(18).string(e.get),null!=e.put&&Object.hasOwnProperty.call(e,"put")&&t.uint32(26).string(e.put),null!=e.post&&Object.hasOwnProperty.call(e,"post")&&t.uint32(34).string(e.post),null!=e.delete&&Object.hasOwnProperty.call(e,"delete")&&t.uint32(42).string(e.delete),null!=e.patch&&Object.hasOwnProperty.call(e,"patch")&&t.uint32(50).string(e.patch),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(58).string(e.body),null!=e.custom&&Object.hasOwnProperty.call(e,"custom")&&s.google.api.CustomHttpPattern.encode(e.custom,t.uint32(66).fork()).ldelim(),null!=e.additional_bindings&&e.additional_bindings.length)for(var n=0;n<e.additional_bindings.length;++n)s.google.api.HttpRule.encode(e.additional_bindings[n],t.uint32(90).fork()).ldelim();return null!=e.response_body&&Object.hasOwnProperty.call(e,"response_body")&&t.uint32(98).string(e.response_body),t},p.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},p.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.api.HttpRule;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.selector=e.string();break;case 2:r.get=e.string();break;case 3:r.put=e.string();break;case 4:r.post=e.string();break;case 5:r.delete=e.string();break;case 6:r.patch=e.string();break;case 8:r.custom=s.google.api.CustomHttpPattern.decode(e,e.uint32());break;case 7:r.body=e.string();break;case 12:r.response_body=e.string();break;case 11:r.additional_bindings&&r.additional_bindings.length||(r.additional_bindings=[]),r.additional_bindings.push(s.google.api.HttpRule.decode(e,e.uint32()));break;default:e.skipType(7&o)}}return r},p.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},p.verify=function(e){if("object"!=typeof e||null===e)return"object expected";var t={};if(null!=e.selector&&e.hasOwnProperty("selector")&&!l.isString(e.selector))return"selector: string expected";if(null!=e.get&&e.hasOwnProperty("get")&&(t.pattern=1,!l.isString(e.get)))return"get: string expected";if(null!=e.put&&e.hasOwnProperty("put")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.put))return"put: string expected"}if(null!=e.post&&e.hasOwnProperty("post")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.post))return"post: string expected"}if(null!=e.delete&&e.hasOwnProperty("delete")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.delete))return"delete: string expected"}if(null!=e.patch&&e.hasOwnProperty("patch")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,!l.isString(e.patch))return"patch: string expected"}if(null!=e.custom&&e.hasOwnProperty("custom")){if(1===t.pattern)return"pattern: multiple values";if(t.pattern=1,n=s.google.api.CustomHttpPattern.verify(e.custom))return"custom."+n}if(null!=e.body&&e.hasOwnProperty("body")&&!l.isString(e.body))return"body: string expected";if(null!=e.response_body&&e.hasOwnProperty("response_body")&&!l.isString(e.response_body))return"response_body: string expected";if(null!=e.additional_bindings&&e.hasOwnProperty("additional_bindings")){if(!Array.isArray(e.additional_bindings))return"additional_bindings: array expected";for(var n,r=0;r<e.additional_bindings.length;++r)if(n=s.google.api.HttpRule.verify(e.additional_bindings[r]))return"additional_bindings."+n}return null},p.fromObject=function(e){if(e instanceof s.google.api.HttpRule)return e;var t=new s.google.api.HttpRule;if(null!=e.selector&&(t.selector=String(e.selector)),null!=e.get&&(t.get=String(e.get)),null!=e.put&&(t.put=String(e.put)),null!=e.post&&(t.post=String(e.post)),null!=e.delete&&(t.delete=String(e.delete)),null!=e.patch&&(t.patch=String(e.patch)),null!=e.custom){if("object"!=typeof e.custom)throw TypeError(".google.api.HttpRule.custom: object expected");t.custom=s.google.api.CustomHttpPattern.fromObject(e.custom)}if(null!=e.body&&(t.body=String(e.body)),null!=e.response_body&&(t.response_body=String(e.response_body)),e.additional_bindings){if(!Array.isArray(e.additional_bindings))throw TypeError(".google.api.HttpRule.additional_bindings: array expected");t.additional_bindings=[];for(var n=0;n<e.additional_bindings.length;++n){if("object"!=typeof e.additional_bindings[n])throw TypeError(".google.api.HttpRule.additional_bindings: object expected");t.additional_bindings[n]=s.google.api.HttpRule.fromObject(e.additional_bindings[n])}}return t},p.toObject=function(e,t){var n={};if(((t=t||{}).arrays||t.defaults)&&(n.additional_bindings=[]),t.defaults&&(n.selector="",n.body="",n.response_body=""),null!=e.selector&&e.hasOwnProperty("selector")&&(n.selector=e.selector),null!=e.get&&e.hasOwnProperty("get")&&(n.get=e.get,t.oneofs)&&(n.pattern="get"),null!=e.put&&e.hasOwnProperty("put")&&(n.put=e.put,t.oneofs)&&(n.pattern="put"),null!=e.post&&e.hasOwnProperty("post")&&(n.post=e.post,t.oneofs)&&(n.pattern="post"),null!=e.delete&&e.hasOwnProperty("delete")&&(n.delete=e.delete,t.oneofs)&&(n.pattern="delete"),null!=e.patch&&e.hasOwnProperty("patch")&&(n.patch=e.patch,t.oneofs)&&(n.pattern="patch"),null!=e.body&&e.hasOwnProperty("body")&&(n.body=e.body),null!=e.custom&&e.hasOwnProperty("custom")&&(n.custom=s.google.api.CustomHttpPattern.toObject(e.custom,t),t.oneofs)&&(n.pattern="custom"),e.additional_bindings&&e.additional_bindings.length){n.additional_bindings=[];for(var r=0;r<e.additional_bindings.length;++r)n.additional_bindings[r]=s.google.api.HttpRule.toObject(e.additional_bindings[r],t)}return null!=e.response_body&&e.hasOwnProperty("response_body")&&(n.response_body=e.response_body),n},p.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},p),n.CustomHttpPattern=(u.prototype.kind="",u.prototype.path="",u.create=function(e){return new u(e)},u.encode=function(e,t){return t=t||o.create(),null!=e.kind&&Object.hasOwnProperty.call(e,"kind")&&t.uint32(10).string(e.kind),null!=e.path&&Object.hasOwnProperty.call(e,"path")&&t.uint32(18).string(e.path),t},u.encodeDelimited=function(e,t){return this.encode(e,t).ldelim()},u.decode=function(e,t){e instanceof i||(e=i.create(e));for(var n=void 0===t?e.len:e.pos+t,r=new s.google.api.CustomHttpPattern;e.pos<n;){var o=e.uint32();switch(o>>>3){case 1:r.kind=e.string();break;case 2:r.path=e.string();break;default:e.skipType(7&o)}}return r},u.decodeDelimited=function(e){return e instanceof i||(e=new i(e)),this.decode(e,e.uint32())},u.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.kind&&e.hasOwnProperty("kind")&&!l.isString(e.kind)?"kind: string expected":null!=e.path&&e.hasOwnProperty("path")&&!l.isString(e.path)?"path: string expected":null},u.fromObject=function(e){var t;return e instanceof s.google.api.CustomHttpPattern?e:(t=new s.google.api.CustomHttpPattern,null!=e.kind&&(t.kind=String(e.kind)),null!=e.path&&(t.path=String(e.path)),t)},u.toObject=function(e,t){var n={};return(t=t||{}).defaults&&(n.kind="",n.path=""),null!=e.kind&&e.hasOwnProperty("kind")&&(n.kind=e.kind),null!=e.path&&e.hasOwnProperty("path")&&(n.path=e.path),n},u.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},u),n),r),s});