@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,64 +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/http;http";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "HttpProto";
22
- option java_package = "com.google.rpc";
23
- option objc_class_prefix = "RPC";
24
-
25
- // Represents an HTTP request.
26
- message HttpRequest {
27
- // The HTTP request method.
28
- string method = 1;
29
-
30
- // The HTTP request URI.
31
- string uri = 2;
32
-
33
- // The HTTP request headers. The ordering of the headers is significant.
34
- // Multiple headers with the same key may present for the request.
35
- repeated HttpHeader headers = 3;
36
-
37
- // The HTTP request body. If the body is not expected, it should be empty.
38
- bytes body = 4;
39
- }
40
-
41
- // Represents an HTTP response.
42
- message HttpResponse {
43
- // The HTTP status code, such as 200 or 404.
44
- int32 status = 1;
45
-
46
- // The HTTP reason phrase, such as "OK" or "Not Found".
47
- string reason = 2;
48
-
49
- // The HTTP response headers. The ordering of the headers is significant.
50
- // Multiple headers with the same key may present for the response.
51
- repeated HttpHeader headers = 3;
52
-
53
- // The HTTP response body. If the body is not expected, it should be empty.
54
- bytes body = 4;
55
- }
56
-
57
- // Represents an HTTP header.
58
- message HttpHeader {
59
- // The HTTP header key. It is case insensitive.
60
- string key = 1;
61
-
62
- // The HTTP header value.
63
- string value = 2;
64
- }
@@ -1,49 +0,0 @@
1
- // Copyright 2022 Google LLC
2
- //
3
- // Licensed under the Apache License, Version 2.0 (the "License");
4
- // you may not use this file except in compliance with the License.
5
- // You may obtain a copy of the License at
6
- //
7
- // http://www.apache.org/licenses/LICENSE-2.0
8
- //
9
- // Unless required by applicable law or agreed to in writing, software
10
- // distributed under the License is distributed on an "AS IS" BASIS,
11
- // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- // See the License for the specific language governing permissions and
13
- // limitations under the License.
14
-
15
- syntax = "proto3";
16
-
17
- package google.rpc;
18
-
19
- import "google/protobuf/any.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/rpc/status;status";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "StatusProto";
25
- option java_package = "com.google.rpc";
26
- option objc_class_prefix = "RPC";
27
-
28
- // The `Status` type defines a logical error model that is suitable for
29
- // different programming environments, including REST APIs and RPC APIs. It is
30
- // used by [gRPC](https://github.com/grpc). Each `Status` message contains
31
- // three pieces of data: error code, error message, and error details.
32
- //
33
- // You can find out more about this error model and how to work with it in the
34
- // [API Design Guide](https://cloud.google.com/apis/design/errors).
35
- message Status {
36
- // The status code, which should be an enum value of
37
- // [google.rpc.Code][google.rpc.Code].
38
- int32 code = 1;
39
-
40
- // A developer-facing error message, which should be in English. Any
41
- // user-facing error message should be localized and sent in the
42
- // [google.rpc.Status.details][google.rpc.Status.details] field, or localized
43
- // by the client.
44
- string message = 2;
45
-
46
- // A list of messages that carry the error details. There is a common set of
47
- // message types for APIs to use.
48
- repeated google.protobuf.Any details = 3;
49
- }
@@ -1,56 +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 go_package = "google.golang.org/genproto/googleapis/type/calendarperiod;calendarperiod";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "CalendarPeriodProto";
22
- option java_package = "com.google.type";
23
- option objc_class_prefix = "GTP";
24
-
25
- // A `CalendarPeriod` represents the abstract concept of a time period that has
26
- // a canonical start. Grammatically, "the start of the current
27
- // `CalendarPeriod`." All calendar times begin at midnight UTC.
28
- enum CalendarPeriod {
29
- // Undefined period, raises an error.
30
- CALENDAR_PERIOD_UNSPECIFIED = 0;
31
-
32
- // A day.
33
- DAY = 1;
34
-
35
- // A week. Weeks begin on Monday, following
36
- // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
37
- WEEK = 2;
38
-
39
- // A fortnight. The first calendar fortnight of the year begins at the start
40
- // of week 1 according to
41
- // [ISO 8601](https://en.wikipedia.org/wiki/ISO_week_date).
42
- FORTNIGHT = 3;
43
-
44
- // A month.
45
- MONTH = 4;
46
-
47
- // A quarter. Quarters start on dates 1-Jan, 1-Apr, 1-Jul, and 1-Oct of each
48
- // year.
49
- QUARTER = 5;
50
-
51
- // A half-year. Half-years start on dates 1-Jan and 1-Jul.
52
- HALF = 6;
53
-
54
- // A year.
55
- YEAR = 7;
56
- }
@@ -1,174 +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
- import "google/protobuf/wrappers.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/type/color;color";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "ColorProto";
25
- option java_package = "com.google.type";
26
- option objc_class_prefix = "GTP";
27
-
28
- // Represents a color in the RGBA color space. This representation is designed
29
- // for simplicity of conversion to/from color representations in various
30
- // languages over compactness. For example, the fields of this representation
31
- // can be trivially provided to the constructor of `java.awt.Color` in Java; it
32
- // can also be trivially provided to UIColor's `+colorWithRed:green:blue:alpha`
33
- // method in iOS; and, with just a little work, it can be easily formatted into
34
- // a CSS `rgba()` string in JavaScript.
35
- //
36
- // This reference page doesn't carry information about the absolute color
37
- // space
38
- // that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
39
- // DCI-P3, BT.2020, etc.). By default, applications should assume the sRGB color
40
- // space.
41
- //
42
- // When color equality needs to be decided, implementations, unless
43
- // documented otherwise, treat two colors as equal if all their red,
44
- // green, blue, and alpha values each differ by at most 1e-5.
45
- //
46
- // Example (Java):
47
- //
48
- // import com.google.type.Color;
49
- //
50
- // // ...
51
- // public static java.awt.Color fromProto(Color protocolor) {
52
- // float alpha = protocolor.hasAlpha()
53
- // ? protocolor.getAlpha().getValue()
54
- // : 1.0;
55
- //
56
- // return new java.awt.Color(
57
- // protocolor.getRed(),
58
- // protocolor.getGreen(),
59
- // protocolor.getBlue(),
60
- // alpha);
61
- // }
62
- //
63
- // public static Color toProto(java.awt.Color color) {
64
- // float red = (float) color.getRed();
65
- // float green = (float) color.getGreen();
66
- // float blue = (float) color.getBlue();
67
- // float denominator = 255.0;
68
- // Color.Builder resultBuilder =
69
- // Color
70
- // .newBuilder()
71
- // .setRed(red / denominator)
72
- // .setGreen(green / denominator)
73
- // .setBlue(blue / denominator);
74
- // int alpha = color.getAlpha();
75
- // if (alpha != 255) {
76
- // result.setAlpha(
77
- // FloatValue
78
- // .newBuilder()
79
- // .setValue(((float) alpha) / denominator)
80
- // .build());
81
- // }
82
- // return resultBuilder.build();
83
- // }
84
- // // ...
85
- //
86
- // Example (iOS / Obj-C):
87
- //
88
- // // ...
89
- // static UIColor* fromProto(Color* protocolor) {
90
- // float red = [protocolor red];
91
- // float green = [protocolor green];
92
- // float blue = [protocolor blue];
93
- // FloatValue* alpha_wrapper = [protocolor alpha];
94
- // float alpha = 1.0;
95
- // if (alpha_wrapper != nil) {
96
- // alpha = [alpha_wrapper value];
97
- // }
98
- // return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
99
- // }
100
- //
101
- // static Color* toProto(UIColor* color) {
102
- // CGFloat red, green, blue, alpha;
103
- // if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) {
104
- // return nil;
105
- // }
106
- // Color* result = [[Color alloc] init];
107
- // [result setRed:red];
108
- // [result setGreen:green];
109
- // [result setBlue:blue];
110
- // if (alpha <= 0.9999) {
111
- // [result setAlpha:floatWrapperWithValue(alpha)];
112
- // }
113
- // [result autorelease];
114
- // return result;
115
- // }
116
- // // ...
117
- //
118
- // Example (JavaScript):
119
- //
120
- // // ...
121
- //
122
- // var protoToCssColor = function(rgb_color) {
123
- // var redFrac = rgb_color.red || 0.0;
124
- // var greenFrac = rgb_color.green || 0.0;
125
- // var blueFrac = rgb_color.blue || 0.0;
126
- // var red = Math.floor(redFrac * 255);
127
- // var green = Math.floor(greenFrac * 255);
128
- // var blue = Math.floor(blueFrac * 255);
129
- //
130
- // if (!('alpha' in rgb_color)) {
131
- // return rgbToCssColor(red, green, blue);
132
- // }
133
- //
134
- // var alphaFrac = rgb_color.alpha.value || 0.0;
135
- // var rgbParams = [red, green, blue].join(',');
136
- // return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
137
- // };
138
- //
139
- // var rgbToCssColor = function(red, green, blue) {
140
- // var rgbNumber = new Number((red << 16) | (green << 8) | blue);
141
- // var hexString = rgbNumber.toString(16);
142
- // var missingZeros = 6 - hexString.length;
143
- // var resultBuilder = ['#'];
144
- // for (var i = 0; i < missingZeros; i++) {
145
- // resultBuilder.push('0');
146
- // }
147
- // resultBuilder.push(hexString);
148
- // return resultBuilder.join('');
149
- // };
150
- //
151
- // // ...
152
- message Color {
153
- // The amount of red in the color as a value in the interval [0, 1].
154
- float red = 1;
155
-
156
- // The amount of green in the color as a value in the interval [0, 1].
157
- float green = 2;
158
-
159
- // The amount of blue in the color as a value in the interval [0, 1].
160
- float blue = 3;
161
-
162
- // The fraction of this color that should be applied to the pixel. That is,
163
- // the final pixel color is defined by the equation:
164
- //
165
- // `pixel color = alpha * (this color) + (1.0 - alpha) * (background color)`
166
- //
167
- // This means that a value of 1.0 corresponds to a solid color, whereas
168
- // a value of 0.0 corresponds to a completely transparent color. This
169
- // uses a wrapper message rather than a simple float scalar so that it is
170
- // possible to distinguish between a default value and the value being unset.
171
- // If omitted, this color object is rendered as a solid color
172
- // (as if the alpha value had been explicitly given a value of 1.0).
173
- google.protobuf.FloatValue alpha = 4;
174
- }
@@ -1,52 +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/date;date";
21
- option java_multiple_files = true;
22
- option java_outer_classname = "DateProto";
23
- option java_package = "com.google.type";
24
- option objc_class_prefix = "GTP";
25
-
26
- // Represents a whole or partial calendar date, such as a birthday. The time of
27
- // day and time zone are either specified elsewhere or are insignificant. The
28
- // date is relative to the Gregorian Calendar. This can represent one of the
29
- // following:
30
- //
31
- // * A full date, with non-zero year, month, and day values
32
- // * A month and day value, with a zero year, such as an anniversary
33
- // * A year on its own, with zero month and day values
34
- // * A year and month value, with a zero day, such as a credit card expiration
35
- // date
36
- //
37
- // Related types are [google.type.TimeOfDay][google.type.TimeOfDay] and
38
- // `google.protobuf.Timestamp`.
39
- message Date {
40
- // Year of the date. Must be from 1 to 9999, or 0 to specify a date without
41
- // a year.
42
- int32 year = 1;
43
-
44
- // Month of a year. Must be from 1 to 12, or 0 to specify a year without a
45
- // month and day.
46
- int32 month = 2;
47
-
48
- // Day of a month. Must be from 1 to 31 and valid for the year and month, or 0
49
- // to specify a year by itself or a year and month where the day isn't
50
- // significant.
51
- int32 day = 3;
52
- }
@@ -1,104 +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
- import "google/protobuf/duration.proto";
20
-
21
- option cc_enable_arenas = true;
22
- option go_package = "google.golang.org/genproto/googleapis/type/datetime;datetime";
23
- option java_multiple_files = true;
24
- option java_outer_classname = "DateTimeProto";
25
- option java_package = "com.google.type";
26
- option objc_class_prefix = "GTP";
27
-
28
- // Represents civil time (or occasionally physical time).
29
- //
30
- // This type can represent a civil time in one of a few possible ways:
31
- //
32
- // * When utc_offset is set and time_zone is unset: a civil time on a calendar
33
- // day with a particular offset from UTC.
34
- // * When time_zone is set and utc_offset is unset: a civil time on a calendar
35
- // day in a particular time zone.
36
- // * When neither time_zone nor utc_offset is set: a civil time on a calendar
37
- // day in local time.
38
- //
39
- // The date is relative to the Proleptic Gregorian Calendar.
40
- //
41
- // If year is 0, the DateTime is considered not to have a specific year. month
42
- // and day must have valid, non-zero values.
43
- //
44
- // This type may also be used to represent a physical time if all the date and
45
- // time fields are set and either case of the `time_offset` oneof is set.
46
- // Consider using `Timestamp` message for physical time instead. If your use
47
- // case also would like to store the user's timezone, that can be done in
48
- // another field.
49
- //
50
- // This type is more flexible than some applications may want. Make sure to
51
- // document and validate your application's limitations.
52
- message DateTime {
53
- // Optional. Year of date. Must be from 1 to 9999, or 0 if specifying a
54
- // datetime without a year.
55
- int32 year = 1;
56
-
57
- // Required. Month of year. Must be from 1 to 12.
58
- int32 month = 2;
59
-
60
- // Required. Day of month. Must be from 1 to 31 and valid for the year and
61
- // month.
62
- int32 day = 3;
63
-
64
- // Required. Hours of day in 24 hour format. Should be from 0 to 23. An API
65
- // may choose to allow the value "24:00:00" for scenarios like business
66
- // closing time.
67
- int32 hours = 4;
68
-
69
- // Required. Minutes of hour of day. Must be from 0 to 59.
70
- int32 minutes = 5;
71
-
72
- // Required. Seconds of minutes of the time. Must normally be from 0 to 59. An
73
- // API may allow the value 60 if it allows leap-seconds.
74
- int32 seconds = 6;
75
-
76
- // Required. Fractions of seconds in nanoseconds. Must be from 0 to
77
- // 999,999,999.
78
- int32 nanos = 7;
79
-
80
- // Optional. Specifies either the UTC offset or the time zone of the DateTime.
81
- // Choose carefully between them, considering that time zone data may change
82
- // in the future (for example, a country modifies their DST start/end dates,
83
- // and future DateTimes in the affected range had already been stored).
84
- // If omitted, the DateTime is considered to be in local time.
85
- oneof time_offset {
86
- // UTC offset. Must be whole seconds, between -18 hours and +18 hours.
87
- // For example, a UTC offset of -4:00 would be represented as
88
- // { seconds: -14400 }.
89
- google.protobuf.Duration utc_offset = 8;
90
-
91
- // Time zone.
92
- TimeZone time_zone = 9;
93
- }
94
- }
95
-
96
- // Represents a time zone from the
97
- // [IANA Time Zone Database](https://www.iana.org/time-zones).
98
- message TimeZone {
99
- // IANA Time Zone Database time zone, e.g. "America/New_York".
100
- string id = 1;
101
-
102
- // Optional. IANA Time Zone Database version number, e.g. "2019a".
103
- string version = 2;
104
- }
@@ -1,50 +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 go_package = "google.golang.org/genproto/googleapis/type/dayofweek;dayofweek";
20
- option java_multiple_files = true;
21
- option java_outer_classname = "DayOfWeekProto";
22
- option java_package = "com.google.type";
23
- option objc_class_prefix = "GTP";
24
-
25
- // Represents a day of the week.
26
- enum DayOfWeek {
27
- // The day of the week is unspecified.
28
- DAY_OF_WEEK_UNSPECIFIED = 0;
29
-
30
- // Monday
31
- MONDAY = 1;
32
-
33
- // Tuesday
34
- TUESDAY = 2;
35
-
36
- // Wednesday
37
- WEDNESDAY = 3;
38
-
39
- // Thursday
40
- THURSDAY = 4;
41
-
42
- // Friday
43
- FRIDAY = 5;
44
-
45
- // Saturday
46
- SATURDAY = 6;
47
-
48
- // Sunday
49
- SUNDAY = 7;
50
- }
@@ -1,95 +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/decimal;decimal";
21
- option java_multiple_files = true;
22
- option java_outer_classname = "DecimalProto";
23
- option java_package = "com.google.type";
24
- option objc_class_prefix = "GTP";
25
-
26
- // A representation of a decimal value, such as 2.5. Clients may convert values
27
- // into language-native decimal formats, such as Java's [BigDecimal][] or
28
- // Python's [decimal.Decimal][].
29
- //
30
- // [BigDecimal]:
31
- // https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/math/BigDecimal.html
32
- // [decimal.Decimal]: https://docs.python.org/3/library/decimal.html
33
- message Decimal {
34
- // The decimal value, as a string.
35
- //
36
- // The string representation consists of an optional sign, `+` (`U+002B`)
37
- // or `-` (`U+002D`), followed by a sequence of zero or more decimal digits
38
- // ("the integer"), optionally followed by a fraction, optionally followed
39
- // by an exponent.
40
- //
41
- // The fraction consists of a decimal point followed by zero or more decimal
42
- // digits. The string must contain at least one digit in either the integer
43
- // or the fraction. The number formed by the sign, the integer and the
44
- // fraction is referred to as the significand.
45
- //
46
- // The exponent consists of the character `e` (`U+0065`) or `E` (`U+0045`)
47
- // followed by one or more decimal digits.
48
- //
49
- // Services **should** normalize decimal values before storing them by:
50
- //
51
- // - Removing an explicitly-provided `+` sign (`+2.5` -> `2.5`).
52
- // - Replacing a zero-length integer value with `0` (`.5` -> `0.5`).
53
- // - Coercing the exponent character to lower-case (`2.5E8` -> `2.5e8`).
54
- // - Removing an explicitly-provided zero exponent (`2.5e0` -> `2.5`).
55
- //
56
- // Services **may** perform additional normalization based on its own needs
57
- // and the internal decimal implementation selected, such as shifting the
58
- // decimal point and exponent value together (example: `2.5e-1` <-> `0.25`).
59
- // Additionally, services **may** preserve trailing zeroes in the fraction
60
- // to indicate increased precision, but are not required to do so.
61
- //
62
- // Note that only the `.` character is supported to divide the integer
63
- // and the fraction; `,` **should not** be supported regardless of locale.
64
- // Additionally, thousand separators **should not** be supported. If a
65
- // service does support them, values **must** be normalized.
66
- //
67
- // The ENBF grammar is:
68
- //
69
- // DecimalString =
70
- // [Sign] Significand [Exponent];
71
- //
72
- // Sign = '+' | '-';
73
- //
74
- // Significand =
75
- // Digits ['.'] [Digits] | [Digits] '.' Digits;
76
- //
77
- // Exponent = ('e' | 'E') [Sign] Digits;
78
- //
79
- // Digits = { '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' };
80
- //
81
- // Services **should** clearly document the range of supported values, the
82
- // maximum supported precision (total number of digits), and, if applicable,
83
- // the scale (number of digits after the decimal point), as well as how it
84
- // behaves when receiving out-of-bounds values.
85
- //
86
- // Services **may** choose to accept values passed as input even when the
87
- // value has a higher precision or scale than the service supports, and
88
- // **should** round the value to fit the supported scale. Alternatively, the
89
- // service **may** error with `400 Bad Request` (`INVALID_ARGUMENT` in gRPC)
90
- // if precision would be lost.
91
- //
92
- // Services **should** error with `400 Bad Request` (`INVALID_ARGUMENT` in
93
- // gRPC) if the service receives a value outside of the supported range.
94
- string value = 1;
95
- }