@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,76 +0,0 @@
1
- // Protocol Buffers - Google's data interchange format
2
- // Copyright 2007 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
- // Author: kenton@google.com (Kenton Varda)
32
- //
33
- // This is proto2's version of MessageSet. See go/messageset to learn what
34
- // MessageSets are and how they are used.
35
- //
36
- // In proto2, we implement MessageSet in terms of extensions, except with a
37
- // special wire format for backwards-compatibility. To define a message that
38
- // goes in a MessageSet in proto2, you must declare within that message's
39
- // scope an extension of MessageSet named "message_set_extension" and with
40
- // the field number matching the type ID. So, for example, this proto1 code:
41
- // message Foo {
42
- // enum TypeId { MESSAGE_TYPE_ID = 1234; }
43
- // }
44
- // becomes this proto2 code:
45
- // message Foo {
46
- // extend google.protobuf.bridge.MessageSet {
47
- // optional Foo message_set_extension = 1234;
48
- // }
49
- // }
50
- //
51
- // Now you can use the usual proto2 extensions accessors to access this
52
- // message. For example, the proto1 code:
53
- // MessageSet mset;
54
- // Foo* foo = mset.get_mutable<Foo>();
55
- // becomes this proto2 code:
56
- // google::protobuf::bridge::MessageSet mset;
57
- // Foo* foo = mset.MutableExtension(Foo::message_set_extension);
58
- //
59
- // Of course, new code that doesn't have backwards-compatibility requirements
60
- // should just use extensions themselves and not worry about MessageSet.
61
-
62
- syntax = "proto2";
63
-
64
- package google.protobuf.bridge;
65
-
66
- option java_outer_classname = "MessageSetProtos";
67
- option java_multiple_files = true;
68
- option cc_enable_arenas = true;
69
- option objc_class_prefix = "GPB";
70
-
71
- // This is proto2's version of MessageSet.
72
- message MessageSet {
73
- option message_set_wire_format = true;
74
-
75
- extensions 4 to max [verification = UNVERIFIED];
76
- }
@@ -1,180 +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
- // Author: kenton@google.com (Kenton Varda)
9
- //
10
- // protoc (aka the Protocol Compiler) can be extended via plugins. A plugin is
11
- // just a program that reads a CodeGeneratorRequest from stdin and writes a
12
- // CodeGeneratorResponse to stdout.
13
- //
14
- // Plugins written using C++ can use google/protobuf/compiler/plugin.h instead
15
- // of dealing with the raw protocol defined here.
16
- //
17
- // A plugin executable needs only to be placed somewhere in the path. The
18
- // plugin should be named "protoc-gen-$NAME", and will then be used when the
19
- // flag "--${NAME}_out" is passed to protoc.
20
-
21
- syntax = "proto2";
22
-
23
- package google.protobuf.compiler;
24
- option java_package = "com.google.protobuf.compiler";
25
- option java_outer_classname = "PluginProtos";
26
-
27
- option csharp_namespace = "Google.Protobuf.Compiler";
28
- option go_package = "google.golang.org/protobuf/types/pluginpb";
29
-
30
- import "google/protobuf/descriptor.proto";
31
-
32
- // The version number of protocol compiler.
33
- message Version {
34
- optional int32 major = 1;
35
- optional int32 minor = 2;
36
- optional int32 patch = 3;
37
- // A suffix for alpha, beta or rc release, e.g., "alpha-1", "rc2". It should
38
- // be empty for mainline stable releases.
39
- optional string suffix = 4;
40
- }
41
-
42
- // An encoded CodeGeneratorRequest is written to the plugin's stdin.
43
- message CodeGeneratorRequest {
44
- // The .proto files that were explicitly listed on the command-line. The
45
- // code generator should generate code only for these files. Each file's
46
- // descriptor will be included in proto_file, below.
47
- repeated string file_to_generate = 1;
48
-
49
- // The generator parameter passed on the command-line.
50
- optional string parameter = 2;
51
-
52
- // FileDescriptorProtos for all files in files_to_generate and everything
53
- // they import. The files will appear in topological order, so each file
54
- // appears before any file that imports it.
55
- //
56
- // Note: the files listed in files_to_generate will include runtime-retention
57
- // options only, but all other files will include source-retention options.
58
- // The source_file_descriptors field below is available in case you need
59
- // source-retention options for files_to_generate.
60
- //
61
- // protoc guarantees that all proto_files will be written after
62
- // the fields above, even though this is not technically guaranteed by the
63
- // protobuf wire format. This theoretically could allow a plugin to stream
64
- // in the FileDescriptorProtos and handle them one by one rather than read
65
- // the entire set into memory at once. However, as of this writing, this
66
- // is not similarly optimized on protoc's end -- it will store all fields in
67
- // memory at once before sending them to the plugin.
68
- //
69
- // Type names of fields and extensions in the FileDescriptorProto are always
70
- // fully qualified.
71
- repeated FileDescriptorProto proto_file = 15;
72
-
73
- // File descriptors with all options, including source-retention options.
74
- // These descriptors are only provided for the files listed in
75
- // files_to_generate.
76
- repeated FileDescriptorProto source_file_descriptors = 17;
77
-
78
- // The version number of protocol compiler.
79
- optional Version compiler_version = 3;
80
- }
81
-
82
- // The plugin writes an encoded CodeGeneratorResponse to stdout.
83
- message CodeGeneratorResponse {
84
- // Error message. If non-empty, code generation failed. The plugin process
85
- // should exit with status code zero even if it reports an error in this way.
86
- //
87
- // This should be used to indicate errors in .proto files which prevent the
88
- // code generator from generating correct code. Errors which indicate a
89
- // problem in protoc itself -- such as the input CodeGeneratorRequest being
90
- // unparseable -- should be reported by writing a message to stderr and
91
- // exiting with a non-zero status code.
92
- optional string error = 1;
93
-
94
- // A bitmask of supported features that the code generator supports.
95
- // This is a bitwise "or" of values from the Feature enum.
96
- optional uint64 supported_features = 2;
97
-
98
- // Sync with code_generator.h.
99
- enum Feature {
100
- FEATURE_NONE = 0;
101
- FEATURE_PROTO3_OPTIONAL = 1;
102
- FEATURE_SUPPORTS_EDITIONS = 2;
103
- }
104
-
105
- // The minimum edition this plugin supports. This will be treated as an
106
- // Edition enum, but we want to allow unknown values. It should be specified
107
- // according the edition enum value, *not* the edition number. Only takes
108
- // effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
109
- optional int32 minimum_edition = 3;
110
-
111
- // The maximum edition this plugin supports. This will be treated as an
112
- // Edition enum, but we want to allow unknown values. It should be specified
113
- // according the edition enum value, *not* the edition number. Only takes
114
- // effect for plugins that have FEATURE_SUPPORTS_EDITIONS set.
115
- optional int32 maximum_edition = 4;
116
-
117
- // Represents a single generated file.
118
- message File {
119
- // The file name, relative to the output directory. The name must not
120
- // contain "." or ".." components and must be relative, not be absolute (so,
121
- // the file cannot lie outside the output directory). "/" must be used as
122
- // the path separator, not "\".
123
- //
124
- // If the name is omitted, the content will be appended to the previous
125
- // file. This allows the generator to break large files into small chunks,
126
- // and allows the generated text to be streamed back to protoc so that large
127
- // files need not reside completely in memory at one time. Note that as of
128
- // this writing protoc does not optimize for this -- it will read the entire
129
- // CodeGeneratorResponse before writing files to disk.
130
- optional string name = 1;
131
-
132
- // If non-empty, indicates that the named file should already exist, and the
133
- // content here is to be inserted into that file at a defined insertion
134
- // point. This feature allows a code generator to extend the output
135
- // produced by another code generator. The original generator may provide
136
- // insertion points by placing special annotations in the file that look
137
- // like:
138
- // @@protoc_insertion_point(NAME)
139
- // The annotation can have arbitrary text before and after it on the line,
140
- // which allows it to be placed in a comment. NAME should be replaced with
141
- // an identifier naming the point -- this is what other generators will use
142
- // as the insertion_point. Code inserted at this point will be placed
143
- // immediately above the line containing the insertion point (thus multiple
144
- // insertions to the same point will come out in the order they were added).
145
- // The double-@ is intended to make it unlikely that the generated code
146
- // could contain things that look like insertion points by accident.
147
- //
148
- // For example, the C++ code generator places the following line in the
149
- // .pb.h files that it generates:
150
- // // @@protoc_insertion_point(namespace_scope)
151
- // This line appears within the scope of the file's package namespace, but
152
- // outside of any particular class. Another plugin can then specify the
153
- // insertion_point "namespace_scope" to generate additional classes or
154
- // other declarations that should be placed in this scope.
155
- //
156
- // Note that if the line containing the insertion point begins with
157
- // whitespace, the same whitespace will be added to every line of the
158
- // inserted text. This is useful for languages like Python, where
159
- // indentation matters. In these languages, the insertion point comment
160
- // should be indented the same amount as any inserted code will need to be
161
- // in order to work correctly in that context.
162
- //
163
- // The code generator that generates the initial file and the one which
164
- // inserts into it must both run as part of a single invocation of protoc.
165
- // Code generators are executed in the order in which they appear on the
166
- // command line.
167
- //
168
- // If |insertion_point| is present, |name| must also be present.
169
- optional string insertion_point = 2;
170
-
171
- // The file contents.
172
- optional string content = 15;
173
-
174
- // Information describing the file content being inserted. If an insertion
175
- // point is used, this information will be appropriately offset and inserted
176
- // into the code generation metadata for the generated files.
177
- optional GeneratedCodeInfo generated_code_info = 16;
178
- }
179
- repeated File file = 15;
180
- }
@@ -1,77 +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 A.B.C;
11
-
12
- import "ruby_generated_code_proto2_import.proto";
13
-
14
- message TestMessage {
15
- int32 optional_int32 = 1;
16
- int64 optional_int64 = 2;
17
- uint32 optional_uint32 = 3;
18
- uint64 optional_uint64 = 4;
19
- bool optional_bool = 5;
20
- double optional_double = 6;
21
- float optional_float = 7;
22
- string optional_string = 8;
23
- bytes optional_bytes = 9;
24
- TestEnum optional_enum = 10;
25
- TestMessage optional_msg = 11;
26
- TestImportedMessage optional_proto2_submessage = 12;
27
-
28
- repeated int32 repeated_int32 = 21;
29
- repeated int64 repeated_int64 = 22;
30
- repeated uint32 repeated_uint32 = 23;
31
- repeated uint64 repeated_uint64 = 24;
32
- repeated bool repeated_bool = 25;
33
- repeated double repeated_double = 26;
34
- repeated float repeated_float = 27;
35
- repeated string repeated_string = 28;
36
- repeated bytes repeated_bytes = 29;
37
- repeated TestEnum repeated_enum = 30;
38
- repeated TestMessage repeated_msg = 31;
39
-
40
- oneof my_oneof {
41
- int32 oneof_int32 = 41;
42
- int64 oneof_int64 = 42;
43
- uint32 oneof_uint32 = 43;
44
- uint64 oneof_uint64 = 44;
45
- bool oneof_bool = 45;
46
- double oneof_double = 46;
47
- float oneof_float = 47;
48
- string oneof_string = 48;
49
- bytes oneof_bytes = 49;
50
- TestEnum oneof_enum = 50;
51
- TestMessage oneof_msg = 51;
52
- }
53
-
54
- map<int32, string> map_int32_string = 61;
55
- map<int64, string> map_int64_string = 62;
56
- map<uint32, string> map_uint32_string = 63;
57
- map<uint64, string> map_uint64_string = 64;
58
- map<bool, string> map_bool_string = 65;
59
- map<string, string> map_string_string = 66;
60
- map<string, TestMessage> map_string_msg = 67;
61
- map<string, TestEnum> map_string_enum = 68;
62
- map<string, int32> map_string_int32 = 69;
63
- map<string, bool> map_string_bool = 70;
64
-
65
- message NestedMessage {
66
- int32 foo = 1;
67
- }
68
-
69
- NestedMessage nested_message = 80;
70
- }
71
-
72
- enum TestEnum {
73
- Default = 0;
74
- A = 1;
75
- B = 2;
76
- C = 3;
77
- }
@@ -1,78 +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 = "proto2";
9
-
10
- package A.B.C;
11
-
12
- import "ruby_generated_code_proto2_import.proto";
13
-
14
- message TestMessage {
15
- optional int32 optional_int32 = 1 [default = 1];
16
- optional int64 optional_int64 = 2 [default = 2];
17
- optional uint32 optional_uint32 = 3 [default = 3];
18
- optional uint64 optional_uint64 = 4 [default = 4];
19
- optional bool optional_bool = 5 [default = true];
20
- optional double optional_double = 6 [default = 6.0];
21
- optional float optional_float = 7 [default = 7.0];
22
- optional string optional_string = 8 [default = "default str"];
23
- optional bytes optional_bytes = 9 [default = "\0\1\2\100fubar"];
24
- optional TestEnum optional_enum = 10 [default = A];
25
- optional TestMessage optional_msg = 11;
26
- optional TestImportedMessage optional_proto2_submessage = 12;
27
-
28
- repeated int32 repeated_int32 = 21;
29
- repeated int64 repeated_int64 = 22;
30
- repeated uint32 repeated_uint32 = 23;
31
- repeated uint64 repeated_uint64 = 24;
32
- repeated bool repeated_bool = 25;
33
- repeated double repeated_double = 26;
34
- repeated float repeated_float = 27;
35
- repeated string repeated_string = 28;
36
- repeated bytes repeated_bytes = 29;
37
- repeated TestEnum repeated_enum = 30;
38
- repeated TestMessage repeated_msg = 31;
39
-
40
- required int32 required_int32 = 41;
41
- required int64 required_int64 = 42;
42
- required uint32 required_uint32 = 43;
43
- required uint64 required_uint64 = 44;
44
- required bool required_bool = 45;
45
- required double required_double = 46;
46
- required float required_float = 47;
47
- required string required_string = 48;
48
- required bytes required_bytes = 49;
49
- required TestEnum required_enum = 50;
50
- required TestMessage required_msg = 51;
51
-
52
- oneof my_oneof {
53
- int32 oneof_int32 = 61;
54
- int64 oneof_int64 = 62;
55
- uint32 oneof_uint32 = 63;
56
- uint64 oneof_uint64 = 64;
57
- bool oneof_bool = 65;
58
- double oneof_double = 66;
59
- float oneof_float = 67;
60
- string oneof_string = 68;
61
- bytes oneof_bytes = 69;
62
- TestEnum oneof_enum = 70;
63
- TestMessage oneof_msg = 71;
64
- }
65
-
66
- message NestedMessage {
67
- optional int32 foo = 1;
68
- }
69
-
70
- optional NestedMessage nested_message = 80;
71
- }
72
-
73
- enum TestEnum {
74
- Default = 0;
75
- A = 1;
76
- B = 2;
77
- C = 3;
78
- }
@@ -1,12 +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 = "proto2";
9
-
10
- package A.B.C;
11
-
12
- message TestImportedMessage {}
@@ -1,16 +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 one.two.a_three;
11
-
12
- option ruby_package = "A::B::C";
13
-
14
- message Four {
15
- string a_string = 1;
16
- }
@@ -1,16 +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 one.two.a_three.and;
11
-
12
- option ruby_package = "AA.BB.CC";
13
-
14
- message Four {
15
- string another_string = 1;
16
- }
@@ -1,14 +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 one.two.a_three;
11
-
12
- message Four {
13
- string a_string = 1;
14
- }
@@ -1,45 +0,0 @@
1
- // Protocol Buffers - Google's data interchange format
2
- // Copyright 2023 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 = "proto2";
9
-
10
- package pb;
11
-
12
- import "google/protobuf/descriptor.proto";
13
-
14
- extend google.protobuf.FeatureSet {
15
- optional CppFeatures cpp = 1000;
16
- }
17
-
18
- message CppFeatures {
19
- // Whether or not to treat an enum field as closed. This option is only
20
- // applicable to enum fields, and will be removed in the future. It is
21
- // consistent with the legacy behavior of using proto3 enum types for proto2
22
- // fields.
23
- optional bool legacy_closed_enum = 1 [
24
- retention = RETENTION_RUNTIME,
25
- targets = TARGET_TYPE_FIELD,
26
- targets = TARGET_TYPE_FILE,
27
- edition_defaults = { edition: EDITION_PROTO2, value: "true" },
28
- edition_defaults = { edition: EDITION_PROTO3, value: "false" }
29
- ];
30
-
31
- enum StringType {
32
- STRING_TYPE_UNKNOWN = 0;
33
- VIEW = 1;
34
- CORD = 2;
35
- STRING = 3;
36
- }
37
-
38
- optional StringType string_type = 2 [
39
- retention = RETENTION_RUNTIME,
40
- targets = TARGET_TYPE_FIELD,
41
- targets = TARGET_TYPE_FILE,
42
- edition_defaults = { edition: EDITION_PROTO2, value: "STRING" },
43
- edition_defaults = { edition: EDITION_2024, value: "VIEW" }
44
- ];
45
- }