@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,301 +0,0 @@
1
- // Protocol Buffers - Google's data interchange format
2
- // Copyright 2008 Google Inc. All rights reserved.
3
- //
4
- // Use of this source code is governed by a BSD-style
5
- // license that can be found in the LICENSE file or at
6
- // https://developers.google.com/open-source/licenses/bsd
7
-
8
- syntax = "proto3";
9
-
10
- package proto3;
11
-
12
- import "google/protobuf/any.proto";
13
- import "google/protobuf/duration.proto";
14
- import "google/protobuf/field_mask.proto";
15
- import "google/protobuf/struct.proto";
16
- import "google/protobuf/timestamp.proto";
17
- import "google/protobuf/wrappers.proto";
18
- import "google/protobuf/unittest.proto";
19
-
20
- option java_package = "com.google.protobuf.util";
21
- option java_outer_classname = "JsonFormatProto3";
22
-
23
- enum EnumType {
24
- FOO = 0;
25
- BAR = 1;
26
- TLSv1_2 = 2;
27
- }
28
-
29
- message MessageType {
30
- int32 value = 1;
31
- }
32
-
33
- message TestMessage {
34
- bool bool_value = 1;
35
- int32 int32_value = 2;
36
- int64 int64_value = 3;
37
- uint32 uint32_value = 4;
38
- uint64 uint64_value = 5;
39
- float float_value = 6;
40
- double double_value = 7;
41
- string string_value = 8;
42
- bytes bytes_value = 9;
43
- EnumType enum_value = 10;
44
- MessageType message_value = 11;
45
-
46
- repeated bool repeated_bool_value = 21;
47
- repeated int32 repeated_int32_value = 22;
48
- repeated int64 repeated_int64_value = 23;
49
- repeated uint32 repeated_uint32_value = 24;
50
- repeated uint64 repeated_uint64_value = 25;
51
- repeated float repeated_float_value = 26;
52
- repeated double repeated_double_value = 27;
53
- repeated string repeated_string_value = 28;
54
- repeated bytes repeated_bytes_value = 29;
55
- repeated EnumType repeated_enum_value = 30;
56
- repeated MessageType repeated_message_value = 31;
57
-
58
- optional bool optional_bool_value = 41;
59
- optional int32 optional_int32_value = 42;
60
- optional int64 optional_int64_value = 43;
61
- optional uint32 optional_uint32_value = 44;
62
- optional uint64 optional_uint64_value = 45;
63
- optional float optional_float_value = 46;
64
- optional double optional_double_value = 47;
65
- optional string optional_string_value = 48;
66
- optional bytes optional_bytes_value = 49;
67
- optional EnumType optional_enum_value = 50;
68
- optional MessageType optional_message_value = 51;
69
- }
70
-
71
- message TestOneof {
72
- // In JSON format oneof fields behave mostly the same as optional
73
- // fields except that:
74
- // 1. Oneof fields have field presence information and will be
75
- // printed if it's set no matter whether it's the default value.
76
- // 2. Multiple oneof fields in the same oneof cannot appear at the
77
- // same time in the input.
78
- oneof oneof_value {
79
- int32 oneof_int32_value = 1;
80
- string oneof_string_value = 2;
81
- bytes oneof_bytes_value = 3;
82
- EnumType oneof_enum_value = 4;
83
- MessageType oneof_message_value = 5;
84
- google.protobuf.NullValue oneof_null_value = 6;
85
- }
86
- }
87
-
88
- message TestMap {
89
- map<bool, int32> bool_map = 1;
90
- map<int32, int32> int32_map = 2;
91
- map<int64, int32> int64_map = 3;
92
- map<uint32, int32> uint32_map = 4;
93
- map<uint64, int32> uint64_map = 5;
94
- map<string, int32> string_map = 6;
95
- }
96
-
97
- message TestNestedMap {
98
- map<bool, int32> bool_map = 1;
99
- map<int32, int32> int32_map = 2;
100
- map<int64, int32> int64_map = 3;
101
- map<uint32, int32> uint32_map = 4;
102
- map<uint64, int32> uint64_map = 5;
103
- map<string, int32> string_map = 6;
104
- map<string, TestNestedMap> map_map = 7;
105
- }
106
-
107
- message TestStringMap {
108
- map<string, string> string_map = 1;
109
- }
110
-
111
- message TestWrapper {
112
- google.protobuf.BoolValue bool_value = 1;
113
- google.protobuf.Int32Value int32_value = 2;
114
- google.protobuf.Int64Value int64_value = 3;
115
- google.protobuf.UInt32Value uint32_value = 4;
116
- google.protobuf.UInt64Value uint64_value = 5;
117
- google.protobuf.FloatValue float_value = 6;
118
- google.protobuf.DoubleValue double_value = 7;
119
- google.protobuf.StringValue string_value = 8;
120
- google.protobuf.BytesValue bytes_value = 9;
121
-
122
- repeated google.protobuf.BoolValue repeated_bool_value = 11;
123
- repeated google.protobuf.Int32Value repeated_int32_value = 12;
124
- repeated google.protobuf.Int64Value repeated_int64_value = 13;
125
- repeated google.protobuf.UInt32Value repeated_uint32_value = 14;
126
- repeated google.protobuf.UInt64Value repeated_uint64_value = 15;
127
- repeated google.protobuf.FloatValue repeated_float_value = 16;
128
- repeated google.protobuf.DoubleValue repeated_double_value = 17;
129
- repeated google.protobuf.StringValue repeated_string_value = 18;
130
- repeated google.protobuf.BytesValue repeated_bytes_value = 19;
131
- }
132
-
133
- message TestTimestamp {
134
- google.protobuf.Timestamp value = 1;
135
- repeated google.protobuf.Timestamp repeated_value = 2;
136
- }
137
-
138
- message TestDuration {
139
- google.protobuf.Duration value = 1;
140
- repeated google.protobuf.Duration repeated_value = 2;
141
- }
142
-
143
- message TestFieldMask {
144
- google.protobuf.FieldMask value = 1;
145
- }
146
-
147
- message TestStruct {
148
- google.protobuf.Struct value = 1;
149
- repeated google.protobuf.Struct repeated_value = 2;
150
- }
151
-
152
- message TestAny {
153
- google.protobuf.Any value = 1;
154
- repeated google.protobuf.Any repeated_value = 2;
155
- }
156
-
157
- message TestValue {
158
- google.protobuf.Value value = 1;
159
- repeated google.protobuf.Value repeated_value = 2;
160
- }
161
-
162
- message TestListValue {
163
- google.protobuf.ListValue value = 1;
164
- repeated google.protobuf.ListValue repeated_value = 2;
165
- }
166
-
167
- message TestBoolValue {
168
- bool bool_value = 1;
169
- map<bool, int32> bool_map = 2;
170
- }
171
-
172
- message TestNullValue {
173
- google.protobuf.NullValue null_value = 20;
174
- repeated google.protobuf.NullValue repeated_null_value = 21;
175
- }
176
-
177
- message TestCustomJsonName {
178
- int32 value = 1 [json_name = "@value"];
179
- }
180
-
181
- message TestEvilJson {
182
- int32 regular_value = 1 [json_name = "regular_name"];
183
- int32 script = 2 [json_name = "</script>"];
184
- int32 quotes = 3 [json_name = "unbalanced\"quotes"];
185
- int32 script_and_quotes = 4
186
- [json_name = "\"<script>alert('hello!);</script>"];
187
- }
188
-
189
- message TestExtensions {
190
- .protobuf_unittest.TestAllExtensions extensions = 1;
191
- }
192
-
193
- message TestEnumValue {
194
- EnumType enum_value1 = 1;
195
- EnumType enum_value2 = 2;
196
- EnumType enum_value3 = 3;
197
- }
198
-
199
- message MapsTestCases {
200
- EmptyMap empty_map = 1;
201
- StringtoInt string_to_int = 2;
202
- IntToString int_to_string = 3;
203
- Mixed1 mixed1 = 4;
204
- Mixed2 mixed2 = 5;
205
- MapOfObjects map_of_objects = 6;
206
-
207
- // Empty key tests
208
- StringtoInt empty_key_string_to_int1 = 7;
209
- StringtoInt empty_key_string_to_int2 = 8;
210
- StringtoInt empty_key_string_to_int3 = 9;
211
- BoolToString empty_key_bool_to_string = 10;
212
- IntToString empty_key_int_to_string = 11;
213
- Mixed1 empty_key_mixed = 12;
214
- MapOfObjects empty_key_map_objects = 13;
215
- }
216
-
217
- message EmptyMap {
218
- map<int32, int32> map = 1;
219
- }
220
-
221
- message StringtoInt {
222
- map<string, int32> map = 1;
223
- }
224
-
225
- message IntToString {
226
- map<int32, string> map = 1;
227
- }
228
-
229
- message BoolToString {
230
- map<bool, string> map = 1;
231
- }
232
-
233
- message Mixed1 {
234
- string msg = 1;
235
- map<string, float> map = 2;
236
- }
237
-
238
- message Mixed2 {
239
- enum E {
240
- E0 = 0;
241
- E1 = 1;
242
- E2 = 2;
243
- E3 = 3;
244
- }
245
- map<int32, bool> map = 1;
246
- E ee = 2;
247
- }
248
-
249
- message MapOfObjects {
250
- message M {
251
- string inner_text = 1;
252
- }
253
- map<string, M> map = 1;
254
- }
255
-
256
- message MapIn {
257
- string other = 1;
258
- repeated string things = 2;
259
- map<string, string> map_input = 3;
260
- map<string, google.protobuf.Any> map_any = 4;
261
- }
262
-
263
- message MapOut {
264
- map<string, MapM> map1 = 1;
265
- map<string, MapOut> map2 = 2;
266
- map<int32, string> map3 = 3;
267
- map<bool, string> map4 = 5;
268
- string bar = 4;
269
- }
270
-
271
- // A message with exactly the same wire representation as MapOut, but using
272
- // repeated message fields instead of map fields. We use this message to test
273
- // the wire-format compatibility of the JSON transcoder (e.g., whether it
274
- // handles missing keys correctly).
275
- message MapOutWireFormat {
276
- message Map1Entry {
277
- string key = 1;
278
- MapM value = 2;
279
- }
280
- repeated Map1Entry map1 = 1;
281
- message Map2Entry {
282
- string key = 1;
283
- MapOut value = 2;
284
- }
285
- repeated Map2Entry map2 = 2;
286
- message Map3Entry {
287
- int32 key = 1;
288
- string value = 2;
289
- }
290
- repeated Map3Entry map3 = 3;
291
- message Map4Entry {
292
- bool key = 1;
293
- string value = 2;
294
- }
295
- repeated Map4Entry map4 = 5;
296
- string bar = 4;
297
- }
298
-
299
- message MapM {
300
- string foo = 1;
301
- }
@@ -1,123 +0,0 @@
1
- // Protocol Buffers - Google's data interchange format
2
- // Copyright 2008 Google Inc. All rights reserved.
3
- // https://developers.google.com/protocol-buffers/
4
- //
5
- // Redistribution and use in source and binary forms, with or without
6
- // modification, are permitted provided that the following conditions are
7
- // met:
8
- //
9
- // * Redistributions of source code must retain the above copyright
10
- // notice, this list of conditions and the following disclaimer.
11
- // * Redistributions in binary form must reproduce the above
12
- // copyright notice, this list of conditions and the following disclaimer
13
- // in the documentation and/or other materials provided with the
14
- // distribution.
15
- // * Neither the name of Google Inc. nor the names of its
16
- // contributors may be used to endorse or promote products derived from
17
- // this software without specific prior written permission.
18
- //
19
- // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
20
- // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
21
- // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
22
- // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
23
- // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
24
- // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
25
- // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
26
- // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
27
- // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
- // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
- // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- //
31
- // Wrappers for primitive (non-message) types. These types are useful
32
- // for embedding primitives in the `google.protobuf.Any` type and for places
33
- // where we need to distinguish between the absence of a primitive
34
- // typed field and its default value.
35
- //
36
- // These wrappers have no meaningful use within repeated fields as they lack
37
- // the ability to detect presence on individual elements.
38
- // These wrappers have no meaningful use within a map or a oneof since
39
- // individual entries of a map or fields of a oneof can already detect presence.
40
-
41
- syntax = "proto3";
42
-
43
- package google.protobuf;
44
-
45
- option cc_enable_arenas = true;
46
- option go_package = "google.golang.org/protobuf/types/known/wrapperspb";
47
- option java_package = "com.google.protobuf";
48
- option java_outer_classname = "WrappersProto";
49
- option java_multiple_files = true;
50
- option objc_class_prefix = "GPB";
51
- option csharp_namespace = "Google.Protobuf.WellKnownTypes";
52
-
53
- // Wrapper message for `double`.
54
- //
55
- // The JSON representation for `DoubleValue` is JSON number.
56
- message DoubleValue {
57
- // The double value.
58
- double value = 1;
59
- }
60
-
61
- // Wrapper message for `float`.
62
- //
63
- // The JSON representation for `FloatValue` is JSON number.
64
- message FloatValue {
65
- // The float value.
66
- float value = 1;
67
- }
68
-
69
- // Wrapper message for `int64`.
70
- //
71
- // The JSON representation for `Int64Value` is JSON string.
72
- message Int64Value {
73
- // The int64 value.
74
- int64 value = 1;
75
- }
76
-
77
- // Wrapper message for `uint64`.
78
- //
79
- // The JSON representation for `UInt64Value` is JSON string.
80
- message UInt64Value {
81
- // The uint64 value.
82
- uint64 value = 1;
83
- }
84
-
85
- // Wrapper message for `int32`.
86
- //
87
- // The JSON representation for `Int32Value` is JSON number.
88
- message Int32Value {
89
- // The int32 value.
90
- int32 value = 1;
91
- }
92
-
93
- // Wrapper message for `uint32`.
94
- //
95
- // The JSON representation for `UInt32Value` is JSON number.
96
- message UInt32Value {
97
- // The uint32 value.
98
- uint32 value = 1;
99
- }
100
-
101
- // Wrapper message for `bool`.
102
- //
103
- // The JSON representation for `BoolValue` is JSON `true` and `false`.
104
- message BoolValue {
105
- // The bool value.
106
- bool value = 1;
107
- }
108
-
109
- // Wrapper message for `string`.
110
- //
111
- // The JSON representation for `StringValue` is JSON string.
112
- message StringValue {
113
- // The string value.
114
- string value = 1;
115
- }
116
-
117
- // Wrapper message for `bytes`.
118
- //
119
- // The JSON representation for `BytesValue` is JSON string.
120
- message BytesValue {
121
- // The bytes value.
122
- bytes value = 1;
123
- }
@@ -1,186 +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
- option go_package = "google.golang.org/genproto/googleapis/rpc/code;code";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "CodeProto";
22
- option java_package = "com.google.rpc";
23
- option objc_class_prefix = "RPC";
24
-
25
- // The canonical error codes for gRPC APIs.
26
- //
27
- //
28
- // Sometimes multiple error codes may apply. Services should return
29
- // the most specific error code that applies. For example, prefer
30
- // `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
31
- // Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
32
- enum Code {
33
- // Not an error; returned on success.
34
- //
35
- // HTTP Mapping: 200 OK
36
- OK = 0;
37
-
38
- // The operation was cancelled, typically by the caller.
39
- //
40
- // HTTP Mapping: 499 Client Closed Request
41
- CANCELLED = 1;
42
-
43
- // Unknown error. For example, this error may be returned when
44
- // a `Status` value received from another address space belongs to
45
- // an error space that is not known in this address space. Also
46
- // errors raised by APIs that do not return enough error information
47
- // may be converted to this error.
48
- //
49
- // HTTP Mapping: 500 Internal Server Error
50
- UNKNOWN = 2;
51
-
52
- // The client specified an invalid argument. Note that this differs
53
- // from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
54
- // that are problematic regardless of the state of the system
55
- // (e.g., a malformed file name).
56
- //
57
- // HTTP Mapping: 400 Bad Request
58
- INVALID_ARGUMENT = 3;
59
-
60
- // The deadline expired before the operation could complete. For operations
61
- // that change the state of the system, this error may be returned
62
- // even if the operation has completed successfully. For example, a
63
- // successful response from a server could have been delayed long
64
- // enough for the deadline to expire.
65
- //
66
- // HTTP Mapping: 504 Gateway Timeout
67
- DEADLINE_EXCEEDED = 4;
68
-
69
- // Some requested entity (e.g., file or directory) was not found.
70
- //
71
- // Note to server developers: if a request is denied for an entire class
72
- // of users, such as gradual feature rollout or undocumented allowlist,
73
- // `NOT_FOUND` may be used. If a request is denied for some users within
74
- // a class of users, such as user-based access control, `PERMISSION_DENIED`
75
- // must be used.
76
- //
77
- // HTTP Mapping: 404 Not Found
78
- NOT_FOUND = 5;
79
-
80
- // The entity that a client attempted to create (e.g., file or directory)
81
- // already exists.
82
- //
83
- // HTTP Mapping: 409 Conflict
84
- ALREADY_EXISTS = 6;
85
-
86
- // The caller does not have permission to execute the specified
87
- // operation. `PERMISSION_DENIED` must not be used for rejections
88
- // caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
89
- // instead for those errors). `PERMISSION_DENIED` must not be
90
- // used if the caller can not be identified (use `UNAUTHENTICATED`
91
- // instead for those errors). This error code does not imply the
92
- // request is valid or the requested entity exists or satisfies
93
- // other pre-conditions.
94
- //
95
- // HTTP Mapping: 403 Forbidden
96
- PERMISSION_DENIED = 7;
97
-
98
- // The request does not have valid authentication credentials for the
99
- // operation.
100
- //
101
- // HTTP Mapping: 401 Unauthorized
102
- UNAUTHENTICATED = 16;
103
-
104
- // Some resource has been exhausted, perhaps a per-user quota, or
105
- // perhaps the entire file system is out of space.
106
- //
107
- // HTTP Mapping: 429 Too Many Requests
108
- RESOURCE_EXHAUSTED = 8;
109
-
110
- // The operation was rejected because the system is not in a state
111
- // required for the operation's execution. For example, the directory
112
- // to be deleted is non-empty, an rmdir operation is applied to
113
- // a non-directory, etc.
114
- //
115
- // Service implementors can use the following guidelines to decide
116
- // between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
117
- // (a) Use `UNAVAILABLE` if the client can retry just the failing call.
118
- // (b) Use `ABORTED` if the client should retry at a higher level. For
119
- // example, when a client-specified test-and-set fails, indicating the
120
- // client should restart a read-modify-write sequence.
121
- // (c) Use `FAILED_PRECONDITION` if the client should not retry until
122
- // the system state has been explicitly fixed. For example, if an "rmdir"
123
- // fails because the directory is non-empty, `FAILED_PRECONDITION`
124
- // should be returned since the client should not retry unless
125
- // the files are deleted from the directory.
126
- //
127
- // HTTP Mapping: 400 Bad Request
128
- FAILED_PRECONDITION = 9;
129
-
130
- // The operation was aborted, typically due to a concurrency issue such as
131
- // a sequencer check failure or transaction abort.
132
- //
133
- // See the guidelines above for deciding between `FAILED_PRECONDITION`,
134
- // `ABORTED`, and `UNAVAILABLE`.
135
- //
136
- // HTTP Mapping: 409 Conflict
137
- ABORTED = 10;
138
-
139
- // The operation was attempted past the valid range. E.g., seeking or
140
- // reading past end-of-file.
141
- //
142
- // Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
143
- // be fixed if the system state changes. For example, a 32-bit file
144
- // system will generate `INVALID_ARGUMENT` if asked to read at an
145
- // offset that is not in the range [0,2^32-1], but it will generate
146
- // `OUT_OF_RANGE` if asked to read from an offset past the current
147
- // file size.
148
- //
149
- // There is a fair bit of overlap between `FAILED_PRECONDITION` and
150
- // `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
151
- // error) when it applies so that callers who are iterating through
152
- // a space can easily look for an `OUT_OF_RANGE` error to detect when
153
- // they are done.
154
- //
155
- // HTTP Mapping: 400 Bad Request
156
- OUT_OF_RANGE = 11;
157
-
158
- // The operation is not implemented or is not supported/enabled in this
159
- // service.
160
- //
161
- // HTTP Mapping: 501 Not Implemented
162
- UNIMPLEMENTED = 12;
163
-
164
- // Internal errors. This means that some invariants expected by the
165
- // underlying system have been broken. This error code is reserved
166
- // for serious errors.
167
- //
168
- // HTTP Mapping: 500 Internal Server Error
169
- INTERNAL = 13;
170
-
171
- // The service is currently unavailable. This is most likely a
172
- // transient condition, which can be corrected by retrying with
173
- // a backoff. Note that it is not always safe to retry
174
- // non-idempotent operations.
175
- //
176
- // See the guidelines above for deciding between `FAILED_PRECONDITION`,
177
- // `ABORTED`, and `UNAVAILABLE`.
178
- //
179
- // HTTP Mapping: 503 Service Unavailable
180
- UNAVAILABLE = 14;
181
-
182
- // Unrecoverable data loss or corruption.
183
- //
184
- // HTTP Mapping: 500 Internal Server Error
185
- DATA_LOSS = 15;
186
- }