@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.
- package/cli-bundle/index.js +39174 -1835
- package/examples/submit/transactions/{alfajores-transactions.json → sepolia-transactions.json} +1 -1
- package/package.json +5 -5
- package/cli-bundle/798.index.js +0 -169715
- package/cli-bundle/proto/channelz.proto +0 -564
- package/cli-bundle/protos/compute_operations.d.ts +0 -7304
- package/cli-bundle/protos/compute_operations.js +0 -1
- package/cli-bundle/protos/compute_operations.json +0 -1
- package/cli-bundle/protos/google/api/annotations.proto +0 -31
- package/cli-bundle/protos/google/api/apikeys/v2/apikeys.proto +0 -288
- package/cli-bundle/protos/google/api/apikeys/v2/resources.proto +0 -175
- package/cli-bundle/protos/google/api/auth.proto +0 -237
- package/cli-bundle/protos/google/api/backend.proto +0 -185
- package/cli-bundle/protos/google/api/billing.proto +0 -77
- package/cli-bundle/protos/google/api/client.proto +0 -427
- package/cli-bundle/protos/google/api/cloudquotas/v1/cloudquotas.proto +0 -322
- package/cli-bundle/protos/google/api/cloudquotas/v1/resources.proto +0 -311
- package/cli-bundle/protos/google/api/config_change.proto +0 -84
- package/cli-bundle/protos/google/api/consumer.proto +0 -82
- package/cli-bundle/protos/google/api/context.proto +0 -90
- package/cli-bundle/protos/google/api/control.proto +0 -41
- package/cli-bundle/protos/google/api/distribution.proto +0 -213
- package/cli-bundle/protos/google/api/documentation.proto +0 -168
- package/cli-bundle/protos/google/api/endpoint.proto +0 -73
- package/cli-bundle/protos/google/api/error_reason.proto +0 -589
- package/cli-bundle/protos/google/api/expr/conformance/v1alpha1/conformance_service.proto +0 -183
- package/cli-bundle/protos/google/api/expr/v1alpha1/checked.proto +0 -343
- package/cli-bundle/protos/google/api/expr/v1alpha1/eval.proto +0 -118
- package/cli-bundle/protos/google/api/expr/v1alpha1/explain.proto +0 -53
- package/cli-bundle/protos/google/api/expr/v1alpha1/syntax.proto +0 -400
- package/cli-bundle/protos/google/api/expr/v1alpha1/value.proto +0 -115
- package/cli-bundle/protos/google/api/expr/v1beta1/decl.proto +0 -84
- package/cli-bundle/protos/google/api/expr/v1beta1/eval.proto +0 -125
- package/cli-bundle/protos/google/api/expr/v1beta1/expr.proto +0 -265
- package/cli-bundle/protos/google/api/expr/v1beta1/source.proto +0 -62
- package/cli-bundle/protos/google/api/expr/v1beta1/value.proto +0 -114
- package/cli-bundle/protos/google/api/field_behavior.proto +0 -104
- package/cli-bundle/protos/google/api/field_info.proto +0 -79
- package/cli-bundle/protos/google/api/http.proto +0 -379
- package/cli-bundle/protos/google/api/httpbody.proto +0 -81
- package/cli-bundle/protos/google/api/label.proto +0 -48
- package/cli-bundle/protos/google/api/launch_stage.proto +0 -72
- package/cli-bundle/protos/google/api/log.proto +0 -54
- package/cli-bundle/protos/google/api/logging.proto +0 -81
- package/cli-bundle/protos/google/api/metric.proto +0 -268
- package/cli-bundle/protos/google/api/monitored_resource.proto +0 -130
- package/cli-bundle/protos/google/api/monitoring.proto +0 -107
- package/cli-bundle/protos/google/api/policy.proto +0 -85
- package/cli-bundle/protos/google/api/quota.proto +0 -184
- package/cli-bundle/protos/google/api/resource.proto +0 -238
- package/cli-bundle/protos/google/api/routing.proto +0 -461
- package/cli-bundle/protos/google/api/service.proto +0 -191
- package/cli-bundle/protos/google/api/servicecontrol/v1/check_error.proto +0 -124
- package/cli-bundle/protos/google/api/servicecontrol/v1/distribution.proto +0 -166
- package/cli-bundle/protos/google/api/servicecontrol/v1/http_request.proto +0 -93
- package/cli-bundle/protos/google/api/servicecontrol/v1/log_entry.proto +0 -126
- package/cli-bundle/protos/google/api/servicecontrol/v1/metric_value.proto +0 -81
- package/cli-bundle/protos/google/api/servicecontrol/v1/operation.proto +0 -123
- package/cli-bundle/protos/google/api/servicecontrol/v1/quota_controller.proto +0 -245
- package/cli-bundle/protos/google/api/servicecontrol/v1/service_controller.proto +0 -260
- package/cli-bundle/protos/google/api/servicecontrol/v2/service_controller.proto +0 -196
- package/cli-bundle/protos/google/api/servicemanagement/v1/resources.proto +0 -295
- package/cli-bundle/protos/google/api/servicemanagement/v1/servicemanager.proto +0 -508
- package/cli-bundle/protos/google/api/serviceusage/v1/resources.proto +0 -130
- package/cli-bundle/protos/google/api/serviceusage/v1/serviceusage.proto +0 -305
- package/cli-bundle/protos/google/api/serviceusage/v1beta1/resources.proto +0 -458
- package/cli-bundle/protos/google/api/serviceusage/v1beta1/serviceusage.proto +0 -793
- package/cli-bundle/protos/google/api/source_info.proto +0 -31
- package/cli-bundle/protos/google/api/system_parameter.proto +0 -96
- package/cli-bundle/protos/google/api/usage.proto +0 -96
- package/cli-bundle/protos/google/api/visibility.proto +0 -113
- package/cli-bundle/protos/google/cloud/location/locations.proto +0 -108
- package/cli-bundle/protos/google/iam/v1/iam_policy.proto +0 -155
- package/cli-bundle/protos/google/iam/v1/logging/audit_data.proto +0 -33
- package/cli-bundle/protos/google/iam/v1/options.proto +0 -48
- package/cli-bundle/protos/google/iam/v1/policy.proto +0 -410
- package/cli-bundle/protos/google/logging/type/http_request.proto +0 -95
- package/cli-bundle/protos/google/logging/type/log_severity.proto +0 -71
- package/cli-bundle/protos/google/longrunning/operations.proto +0 -247
- package/cli-bundle/protos/google/monitoring/v3/alert.proto +0 -669
- package/cli-bundle/protos/google/monitoring/v3/alert_service.proto +0 -256
- package/cli-bundle/protos/google/monitoring/v3/common.proto +0 -488
- package/cli-bundle/protos/google/monitoring/v3/dropped_labels.proto +0 -46
- package/cli-bundle/protos/google/monitoring/v3/group.proto +0 -90
- package/cli-bundle/protos/google/monitoring/v3/group_service.proto +0 -290
- package/cli-bundle/protos/google/monitoring/v3/metric.proto +0 -239
- package/cli-bundle/protos/google/monitoring/v3/metric_service.proto +0 -522
- package/cli-bundle/protos/google/monitoring/v3/mutation_record.proto +0 -36
- package/cli-bundle/protos/google/monitoring/v3/notification.proto +0 -195
- package/cli-bundle/protos/google/monitoring/v3/notification_service.proto +0 -448
- package/cli-bundle/protos/google/monitoring/v3/query_service.proto +0 -48
- package/cli-bundle/protos/google/monitoring/v3/service.proto +0 -457
- package/cli-bundle/protos/google/monitoring/v3/service_service.proto +0 -352
- package/cli-bundle/protos/google/monitoring/v3/snooze.proto +0 -78
- package/cli-bundle/protos/google/monitoring/v3/snooze_service.proto +0 -210
- package/cli-bundle/protos/google/monitoring/v3/span_context.proto +0 -45
- package/cli-bundle/protos/google/monitoring/v3/uptime.proto +0 -564
- package/cli-bundle/protos/google/monitoring/v3/uptime_service.proto +0 -259
- package/cli-bundle/protos/google/protobuf/any.proto +0 -162
- package/cli-bundle/protos/google/protobuf/api.proto +0 -207
- package/cli-bundle/protos/google/protobuf/bridge/message_set.proto +0 -76
- package/cli-bundle/protos/google/protobuf/compiler/plugin.proto +0 -180
- package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code.proto +0 -77
- package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2.proto +0 -78
- package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_code_proto2_import.proto +0 -12
- package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit.proto +0 -16
- package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_explicit_legacy.proto +0 -16
- package/cli-bundle/protos/google/protobuf/compiler/ruby/ruby_generated_pkg_implicit.proto +0 -14
- package/cli-bundle/protos/google/protobuf/cpp_features.proto +0 -45
- package/cli-bundle/protos/google/protobuf/descriptor.proto +0 -1225
- package/cli-bundle/protos/google/protobuf/duration.proto +0 -115
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_enum.proto +0 -26
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_group.proto +0 -18
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_import.proto +0 -16
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_inline_comments.proto +0 -33
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_multiline_comments.proto +0 -33
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_optional.proto +0 -65
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_packed.proto +0 -14
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_proto3_enum.proto +0 -18
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_required.proto +0 -47
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_unpacked.proto +0 -19
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_disabled.proto +0 -16
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_lite.proto +0 -17
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto2_utf8_verify.proto +0 -14
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_enum.proto +0 -26
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_implicit.proto +0 -65
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_import.proto +0 -16
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_optional.proto +0 -47
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_packed.proto +0 -20
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_unpacked.proto +0 -19
- package/cli-bundle/protos/google/protobuf/editions/codegen_tests/proto3_utf8_strict.proto +0 -15
- package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2.proto +0 -129
- package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_lite.proto +0 -19
- package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto2_utf8_disabled.proto +0 -18
- package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3.proto +0 -32
- package/cli-bundle/protos/google/protobuf/editions/golden/editions_transform_proto3_utf8_disabled.proto +0 -18
- package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2.proto +0 -14
- package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto2_import.proto +0 -16
- package/cli-bundle/protos/google/protobuf/editions/golden/simple_proto3.proto +0 -14
- package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2.proto +0 -91
- package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_lite.proto +0 -20
- package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto2_utf8_disabled.proto +0 -19
- package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3.proto +0 -25
- package/cli-bundle/protos/google/protobuf/editions/proto/editions_transform_proto3_utf8_disabled.proto +0 -19
- package/cli-bundle/protos/google/protobuf/empty.proto +0 -51
- package/cli-bundle/protos/google/protobuf/field_mask.proto +0 -245
- package/cli-bundle/protos/google/protobuf/sample_messages_edition.proto +0 -427
- package/cli-bundle/protos/google/protobuf/source_context.proto +0 -48
- package/cli-bundle/protos/google/protobuf/struct.proto +0 -95
- package/cli-bundle/protos/google/protobuf/timestamp.proto +0 -144
- package/cli-bundle/protos/google/protobuf/type.proto +0 -193
- package/cli-bundle/protos/google/protobuf/util/json_format.proto +0 -116
- package/cli-bundle/protos/google/protobuf/util/json_format_proto3.proto +0 -301
- package/cli-bundle/protos/google/protobuf/wrappers.proto +0 -123
- package/cli-bundle/protos/google/rpc/code.proto +0 -186
- package/cli-bundle/protos/google/rpc/context/attribute_context.proto +0 -344
- package/cli-bundle/protos/google/rpc/context/audit_context.proto +0 -49
- package/cli-bundle/protos/google/rpc/error_details.proto +0 -285
- package/cli-bundle/protos/google/rpc/http.proto +0 -64
- package/cli-bundle/protos/google/rpc/status.proto +0 -49
- package/cli-bundle/protos/google/type/calendar_period.proto +0 -56
- package/cli-bundle/protos/google/type/color.proto +0 -174
- package/cli-bundle/protos/google/type/date.proto +0 -52
- package/cli-bundle/protos/google/type/datetime.proto +0 -104
- package/cli-bundle/protos/google/type/dayofweek.proto +0 -50
- package/cli-bundle/protos/google/type/decimal.proto +0 -95
- package/cli-bundle/protos/google/type/expr.proto +0 -73
- package/cli-bundle/protos/google/type/fraction.proto +0 -33
- package/cli-bundle/protos/google/type/interval.proto +0 -46
- package/cli-bundle/protos/google/type/latlng.proto +0 -37
- package/cli-bundle/protos/google/type/localized_text.proto +0 -36
- package/cli-bundle/protos/google/type/money.proto +0 -42
- package/cli-bundle/protos/google/type/month.proto +0 -65
- package/cli-bundle/protos/google/type/phone_number.proto +0 -113
- package/cli-bundle/protos/google/type/postal_address.proto +0 -134
- package/cli-bundle/protos/google/type/quaternion.proto +0 -94
- package/cli-bundle/protos/google/type/timeofday.proto +0 -44
- package/cli-bundle/protos/http.d.ts +0 -347
- package/cli-bundle/protos/http.js +0 -1
- package/cli-bundle/protos/iam_service.d.ts +0 -5035
- package/cli-bundle/protos/iam_service.js +0 -1
- package/cli-bundle/protos/iam_service.json +0 -1
- package/cli-bundle/protos/locations.d.ts +0 -4060
- package/cli-bundle/protos/locations.js +0 -1
- package/cli-bundle/protos/locations.json +0 -1
- package/cli-bundle/protos/operations.d.ts +0 -4783
- package/cli-bundle/protos/operations.js +0 -1
- package/cli-bundle/protos/operations.json +0 -1
- package/cli-bundle/protos/status.json +0 -1
- package/cli-bundle/worker2.js +0 -174
|
@@ -1,245 +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
|
-
syntax = "proto3";
|
|
32
|
-
|
|
33
|
-
package google.protobuf;
|
|
34
|
-
|
|
35
|
-
option java_package = "com.google.protobuf";
|
|
36
|
-
option java_outer_classname = "FieldMaskProto";
|
|
37
|
-
option java_multiple_files = true;
|
|
38
|
-
option objc_class_prefix = "GPB";
|
|
39
|
-
option csharp_namespace = "Google.Protobuf.WellKnownTypes";
|
|
40
|
-
option go_package = "google.golang.org/protobuf/types/known/fieldmaskpb";
|
|
41
|
-
option cc_enable_arenas = true;
|
|
42
|
-
|
|
43
|
-
// `FieldMask` represents a set of symbolic field paths, for example:
|
|
44
|
-
//
|
|
45
|
-
// paths: "f.a"
|
|
46
|
-
// paths: "f.b.d"
|
|
47
|
-
//
|
|
48
|
-
// Here `f` represents a field in some root message, `a` and `b`
|
|
49
|
-
// fields in the message found in `f`, and `d` a field found in the
|
|
50
|
-
// message in `f.b`.
|
|
51
|
-
//
|
|
52
|
-
// Field masks are used to specify a subset of fields that should be
|
|
53
|
-
// returned by a get operation or modified by an update operation.
|
|
54
|
-
// Field masks also have a custom JSON encoding (see below).
|
|
55
|
-
//
|
|
56
|
-
// # Field Masks in Projections
|
|
57
|
-
//
|
|
58
|
-
// When used in the context of a projection, a response message or
|
|
59
|
-
// sub-message is filtered by the API to only contain those fields as
|
|
60
|
-
// specified in the mask. For example, if the mask in the previous
|
|
61
|
-
// example is applied to a response message as follows:
|
|
62
|
-
//
|
|
63
|
-
// f {
|
|
64
|
-
// a : 22
|
|
65
|
-
// b {
|
|
66
|
-
// d : 1
|
|
67
|
-
// x : 2
|
|
68
|
-
// }
|
|
69
|
-
// y : 13
|
|
70
|
-
// }
|
|
71
|
-
// z: 8
|
|
72
|
-
//
|
|
73
|
-
// The result will not contain specific values for fields x,y and z
|
|
74
|
-
// (their value will be set to the default, and omitted in proto text
|
|
75
|
-
// output):
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
// f {
|
|
79
|
-
// a : 22
|
|
80
|
-
// b {
|
|
81
|
-
// d : 1
|
|
82
|
-
// }
|
|
83
|
-
// }
|
|
84
|
-
//
|
|
85
|
-
// A repeated field is not allowed except at the last position of a
|
|
86
|
-
// paths string.
|
|
87
|
-
//
|
|
88
|
-
// If a FieldMask object is not present in a get operation, the
|
|
89
|
-
// operation applies to all fields (as if a FieldMask of all fields
|
|
90
|
-
// had been specified).
|
|
91
|
-
//
|
|
92
|
-
// Note that a field mask does not necessarily apply to the
|
|
93
|
-
// top-level response message. In case of a REST get operation, the
|
|
94
|
-
// field mask applies directly to the response, but in case of a REST
|
|
95
|
-
// list operation, the mask instead applies to each individual message
|
|
96
|
-
// in the returned resource list. In case of a REST custom method,
|
|
97
|
-
// other definitions may be used. Where the mask applies will be
|
|
98
|
-
// clearly documented together with its declaration in the API. In
|
|
99
|
-
// any case, the effect on the returned resource/resources is required
|
|
100
|
-
// behavior for APIs.
|
|
101
|
-
//
|
|
102
|
-
// # Field Masks in Update Operations
|
|
103
|
-
//
|
|
104
|
-
// A field mask in update operations specifies which fields of the
|
|
105
|
-
// targeted resource are going to be updated. The API is required
|
|
106
|
-
// to only change the values of the fields as specified in the mask
|
|
107
|
-
// and leave the others untouched. If a resource is passed in to
|
|
108
|
-
// describe the updated values, the API ignores the values of all
|
|
109
|
-
// fields not covered by the mask.
|
|
110
|
-
//
|
|
111
|
-
// If a repeated field is specified for an update operation, new values will
|
|
112
|
-
// be appended to the existing repeated field in the target resource. Note that
|
|
113
|
-
// a repeated field is only allowed in the last position of a `paths` string.
|
|
114
|
-
//
|
|
115
|
-
// If a sub-message is specified in the last position of the field mask for an
|
|
116
|
-
// update operation, then new value will be merged into the existing sub-message
|
|
117
|
-
// in the target resource.
|
|
118
|
-
//
|
|
119
|
-
// For example, given the target message:
|
|
120
|
-
//
|
|
121
|
-
// f {
|
|
122
|
-
// b {
|
|
123
|
-
// d: 1
|
|
124
|
-
// x: 2
|
|
125
|
-
// }
|
|
126
|
-
// c: [1]
|
|
127
|
-
// }
|
|
128
|
-
//
|
|
129
|
-
// And an update message:
|
|
130
|
-
//
|
|
131
|
-
// f {
|
|
132
|
-
// b {
|
|
133
|
-
// d: 10
|
|
134
|
-
// }
|
|
135
|
-
// c: [2]
|
|
136
|
-
// }
|
|
137
|
-
//
|
|
138
|
-
// then if the field mask is:
|
|
139
|
-
//
|
|
140
|
-
// paths: ["f.b", "f.c"]
|
|
141
|
-
//
|
|
142
|
-
// then the result will be:
|
|
143
|
-
//
|
|
144
|
-
// f {
|
|
145
|
-
// b {
|
|
146
|
-
// d: 10
|
|
147
|
-
// x: 2
|
|
148
|
-
// }
|
|
149
|
-
// c: [1, 2]
|
|
150
|
-
// }
|
|
151
|
-
//
|
|
152
|
-
// An implementation may provide options to override this default behavior for
|
|
153
|
-
// repeated and message fields.
|
|
154
|
-
//
|
|
155
|
-
// In order to reset a field's value to the default, the field must
|
|
156
|
-
// be in the mask and set to the default value in the provided resource.
|
|
157
|
-
// Hence, in order to reset all fields of a resource, provide a default
|
|
158
|
-
// instance of the resource and set all fields in the mask, or do
|
|
159
|
-
// not provide a mask as described below.
|
|
160
|
-
//
|
|
161
|
-
// If a field mask is not present on update, the operation applies to
|
|
162
|
-
// all fields (as if a field mask of all fields has been specified).
|
|
163
|
-
// Note that in the presence of schema evolution, this may mean that
|
|
164
|
-
// fields the client does not know and has therefore not filled into
|
|
165
|
-
// the request will be reset to their default. If this is unwanted
|
|
166
|
-
// behavior, a specific service may require a client to always specify
|
|
167
|
-
// a field mask, producing an error if not.
|
|
168
|
-
//
|
|
169
|
-
// As with get operations, the location of the resource which
|
|
170
|
-
// describes the updated values in the request message depends on the
|
|
171
|
-
// operation kind. In any case, the effect of the field mask is
|
|
172
|
-
// required to be honored by the API.
|
|
173
|
-
//
|
|
174
|
-
// ## Considerations for HTTP REST
|
|
175
|
-
//
|
|
176
|
-
// The HTTP kind of an update operation which uses a field mask must
|
|
177
|
-
// be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
|
178
|
-
// (PUT must only be used for full updates).
|
|
179
|
-
//
|
|
180
|
-
// # JSON Encoding of Field Masks
|
|
181
|
-
//
|
|
182
|
-
// In JSON, a field mask is encoded as a single string where paths are
|
|
183
|
-
// separated by a comma. Fields name in each path are converted
|
|
184
|
-
// to/from lower-camel naming conventions.
|
|
185
|
-
//
|
|
186
|
-
// As an example, consider the following message declarations:
|
|
187
|
-
//
|
|
188
|
-
// message Profile {
|
|
189
|
-
// User user = 1;
|
|
190
|
-
// Photo photo = 2;
|
|
191
|
-
// }
|
|
192
|
-
// message User {
|
|
193
|
-
// string display_name = 1;
|
|
194
|
-
// string address = 2;
|
|
195
|
-
// }
|
|
196
|
-
//
|
|
197
|
-
// In proto a field mask for `Profile` may look as such:
|
|
198
|
-
//
|
|
199
|
-
// mask {
|
|
200
|
-
// paths: "user.display_name"
|
|
201
|
-
// paths: "photo"
|
|
202
|
-
// }
|
|
203
|
-
//
|
|
204
|
-
// In JSON, the same mask is represented as below:
|
|
205
|
-
//
|
|
206
|
-
// {
|
|
207
|
-
// mask: "user.displayName,photo"
|
|
208
|
-
// }
|
|
209
|
-
//
|
|
210
|
-
// # Field Masks and Oneof Fields
|
|
211
|
-
//
|
|
212
|
-
// Field masks treat fields in oneofs just as regular fields. Consider the
|
|
213
|
-
// following message:
|
|
214
|
-
//
|
|
215
|
-
// message SampleMessage {
|
|
216
|
-
// oneof test_oneof {
|
|
217
|
-
// string name = 4;
|
|
218
|
-
// SubMessage sub_message = 9;
|
|
219
|
-
// }
|
|
220
|
-
// }
|
|
221
|
-
//
|
|
222
|
-
// The field mask can be:
|
|
223
|
-
//
|
|
224
|
-
// mask {
|
|
225
|
-
// paths: "name"
|
|
226
|
-
// }
|
|
227
|
-
//
|
|
228
|
-
// Or:
|
|
229
|
-
//
|
|
230
|
-
// mask {
|
|
231
|
-
// paths: "sub_message"
|
|
232
|
-
// }
|
|
233
|
-
//
|
|
234
|
-
// Note that oneof type names ("test_oneof" in this case) cannot be used in
|
|
235
|
-
// paths.
|
|
236
|
-
//
|
|
237
|
-
// ## Field Mask Verification
|
|
238
|
-
//
|
|
239
|
-
// The implementation of any API method which has a FieldMask type field in the
|
|
240
|
-
// request should verify the included field paths, and return an
|
|
241
|
-
// `INVALID_ARGUMENT` error if any path is unmappable.
|
|
242
|
-
message FieldMask {
|
|
243
|
-
// The set of field mask paths.
|
|
244
|
-
repeated string paths = 1;
|
|
245
|
-
}
|
|
@@ -1,427 +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
|
-
// Sample messages to generate example code.
|
|
9
|
-
|
|
10
|
-
edition = "2023";
|
|
11
|
-
|
|
12
|
-
package protobuf_test_messages.edition;
|
|
13
|
-
|
|
14
|
-
import "google/protobuf/cpp_features.proto";
|
|
15
|
-
|
|
16
|
-
option optimize_for = SPEED;
|
|
17
|
-
option features.(pb.cpp).string_type = VIEW;
|
|
18
|
-
|
|
19
|
-
// This proto includes every type of field in both singular and repeated
|
|
20
|
-
// forms.
|
|
21
|
-
//
|
|
22
|
-
// Also, crucially, all messages and enums in this file are eventually
|
|
23
|
-
// submessages of this message. So for example, a fuzz test of TestAllTypes
|
|
24
|
-
// could trigger bugs that occur in any message type in this file. We verify
|
|
25
|
-
// this stays true in a unit test.
|
|
26
|
-
message TestAllTypesEdition {
|
|
27
|
-
message NestedMessage {
|
|
28
|
-
int32 a = 1;
|
|
29
|
-
TestAllTypesEdition corecursive = 2;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
enum NestedEnum {
|
|
33
|
-
FOO = 0;
|
|
34
|
-
BAR = 1;
|
|
35
|
-
BAZ = 2;
|
|
36
|
-
NEG = -1; // Intentionally negative.
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
// Singular
|
|
40
|
-
int32 optional_int32 = 1;
|
|
41
|
-
int64 optional_int64 = 2;
|
|
42
|
-
uint32 optional_uint32 = 3;
|
|
43
|
-
uint64 optional_uint64 = 4;
|
|
44
|
-
sint32 optional_sint32 = 5;
|
|
45
|
-
sint64 optional_sint64 = 6;
|
|
46
|
-
fixed32 optional_fixed32 = 7;
|
|
47
|
-
fixed64 optional_fixed64 = 8;
|
|
48
|
-
sfixed32 optional_sfixed32 = 9;
|
|
49
|
-
sfixed64 optional_sfixed64 = 10;
|
|
50
|
-
float optional_float = 11;
|
|
51
|
-
double optional_double = 12;
|
|
52
|
-
bool optional_bool = 13;
|
|
53
|
-
string optional_string = 14;
|
|
54
|
-
bytes optional_bytes = 15;
|
|
55
|
-
|
|
56
|
-
NestedMessage optional_nested_message = 18;
|
|
57
|
-
ForeignMessageEdition optional_foreign_message = 19;
|
|
58
|
-
|
|
59
|
-
NestedEnum optional_nested_enum = 21;
|
|
60
|
-
ForeignEnumEdition optional_foreign_enum = 22;
|
|
61
|
-
|
|
62
|
-
string optional_string_piece = 24 [ctype = STRING_PIECE];
|
|
63
|
-
string optional_cord = 25 [ctype = CORD];
|
|
64
|
-
|
|
65
|
-
TestAllTypesEdition recursive_message = 27;
|
|
66
|
-
|
|
67
|
-
// Repeated
|
|
68
|
-
repeated int32 repeated_int32 = 31;
|
|
69
|
-
repeated int64 repeated_int64 = 32;
|
|
70
|
-
repeated uint32 repeated_uint32 = 33;
|
|
71
|
-
repeated uint64 repeated_uint64 = 34;
|
|
72
|
-
repeated sint32 repeated_sint32 = 35;
|
|
73
|
-
repeated sint64 repeated_sint64 = 36;
|
|
74
|
-
repeated fixed32 repeated_fixed32 = 37;
|
|
75
|
-
repeated fixed64 repeated_fixed64 = 38;
|
|
76
|
-
repeated sfixed32 repeated_sfixed32 = 39;
|
|
77
|
-
repeated sfixed64 repeated_sfixed64 = 40;
|
|
78
|
-
repeated float repeated_float = 41;
|
|
79
|
-
repeated double repeated_double = 42;
|
|
80
|
-
repeated bool repeated_bool = 43;
|
|
81
|
-
repeated string repeated_string = 44;
|
|
82
|
-
repeated bytes repeated_bytes = 45;
|
|
83
|
-
|
|
84
|
-
repeated NestedMessage repeated_nested_message = 48;
|
|
85
|
-
repeated ForeignMessageEdition repeated_foreign_message = 49;
|
|
86
|
-
|
|
87
|
-
repeated NestedEnum repeated_nested_enum = 51;
|
|
88
|
-
repeated ForeignEnumEdition repeated_foreign_enum = 52;
|
|
89
|
-
|
|
90
|
-
repeated string repeated_string_piece = 54 [ctype = STRING_PIECE];
|
|
91
|
-
repeated string repeated_cord = 55 [ctype = CORD];
|
|
92
|
-
|
|
93
|
-
// Packed
|
|
94
|
-
repeated int32 packed_int32 = 75 [features.repeated_field_encoding = PACKED];
|
|
95
|
-
repeated int64 packed_int64 = 76 [features.repeated_field_encoding = PACKED];
|
|
96
|
-
repeated uint32 packed_uint32 = 77
|
|
97
|
-
[features.repeated_field_encoding = PACKED];
|
|
98
|
-
repeated uint64 packed_uint64 = 78
|
|
99
|
-
[features.repeated_field_encoding = PACKED];
|
|
100
|
-
repeated sint32 packed_sint32 = 79
|
|
101
|
-
[features.repeated_field_encoding = PACKED];
|
|
102
|
-
repeated sint64 packed_sint64 = 80
|
|
103
|
-
[features.repeated_field_encoding = PACKED];
|
|
104
|
-
repeated fixed32 packed_fixed32 = 81
|
|
105
|
-
[features.repeated_field_encoding = PACKED];
|
|
106
|
-
repeated fixed64 packed_fixed64 = 82
|
|
107
|
-
[features.repeated_field_encoding = PACKED];
|
|
108
|
-
repeated sfixed32 packed_sfixed32 = 83
|
|
109
|
-
[features.repeated_field_encoding = PACKED];
|
|
110
|
-
repeated sfixed64 packed_sfixed64 = 84
|
|
111
|
-
[features.repeated_field_encoding = PACKED];
|
|
112
|
-
repeated float packed_float = 85 [features.repeated_field_encoding = PACKED];
|
|
113
|
-
repeated double packed_double = 86
|
|
114
|
-
[features.repeated_field_encoding = PACKED];
|
|
115
|
-
repeated bool packed_bool = 87 [features.repeated_field_encoding = PACKED];
|
|
116
|
-
repeated NestedEnum packed_nested_enum = 88
|
|
117
|
-
[features.repeated_field_encoding = PACKED];
|
|
118
|
-
|
|
119
|
-
// Unpacked
|
|
120
|
-
repeated int32 unpacked_int32 = 89
|
|
121
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
122
|
-
repeated int64 unpacked_int64 = 90
|
|
123
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
124
|
-
repeated uint32 unpacked_uint32 = 91
|
|
125
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
126
|
-
repeated uint64 unpacked_uint64 = 92
|
|
127
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
128
|
-
repeated sint32 unpacked_sint32 = 93
|
|
129
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
130
|
-
repeated sint64 unpacked_sint64 = 94
|
|
131
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
132
|
-
repeated fixed32 unpacked_fixed32 = 95
|
|
133
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
134
|
-
repeated fixed64 unpacked_fixed64 = 96
|
|
135
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
136
|
-
repeated sfixed32 unpacked_sfixed32 = 97
|
|
137
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
138
|
-
repeated sfixed64 unpacked_sfixed64 = 98
|
|
139
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
140
|
-
repeated float unpacked_float = 99
|
|
141
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
142
|
-
repeated double unpacked_double = 100
|
|
143
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
144
|
-
repeated bool unpacked_bool = 101
|
|
145
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
146
|
-
repeated NestedEnum unpacked_nested_enum = 102
|
|
147
|
-
[features.repeated_field_encoding = EXPANDED];
|
|
148
|
-
|
|
149
|
-
// Map
|
|
150
|
-
map<int32, int32> map_int32_int32 = 56;
|
|
151
|
-
map<int64, int64> map_int64_int64 = 57;
|
|
152
|
-
map<uint32, uint32> map_uint32_uint32 = 58;
|
|
153
|
-
map<uint64, uint64> map_uint64_uint64 = 59;
|
|
154
|
-
map<sint32, sint32> map_sint32_sint32 = 60;
|
|
155
|
-
map<sint64, sint64> map_sint64_sint64 = 61;
|
|
156
|
-
map<fixed32, fixed32> map_fixed32_fixed32 = 62;
|
|
157
|
-
map<fixed64, fixed64> map_fixed64_fixed64 = 63;
|
|
158
|
-
map<sfixed32, sfixed32> map_sfixed32_sfixed32 = 64;
|
|
159
|
-
map<sfixed64, sfixed64> map_sfixed64_sfixed64 = 65;
|
|
160
|
-
map<int32, float> map_int32_float = 66;
|
|
161
|
-
map<int32, double> map_int32_double = 67;
|
|
162
|
-
map<bool, bool> map_bool_bool = 68;
|
|
163
|
-
map<string, string> map_string_string = 69;
|
|
164
|
-
map<string, bytes> map_string_bytes = 70;
|
|
165
|
-
map<string, NestedMessage> map_string_nested_message = 71;
|
|
166
|
-
map<string, ForeignMessageEdition> map_string_foreign_message = 72;
|
|
167
|
-
map<string, NestedEnum> map_string_nested_enum = 73;
|
|
168
|
-
map<string, ForeignEnumEdition> map_string_foreign_enum = 74;
|
|
169
|
-
|
|
170
|
-
oneof oneof_field {
|
|
171
|
-
uint32 oneof_uint32 = 111;
|
|
172
|
-
NestedMessage oneof_nested_message = 112;
|
|
173
|
-
string oneof_string = 113;
|
|
174
|
-
bytes oneof_bytes = 114;
|
|
175
|
-
bool oneof_bool = 115;
|
|
176
|
-
uint64 oneof_uint64 = 116;
|
|
177
|
-
float oneof_float = 117;
|
|
178
|
-
double oneof_double = 118;
|
|
179
|
-
NestedEnum oneof_enum = 119;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
// extensions
|
|
183
|
-
extensions 120 to 200;
|
|
184
|
-
|
|
185
|
-
// groups
|
|
186
|
-
message Data {
|
|
187
|
-
int32 group_int32 = 202;
|
|
188
|
-
uint32 group_uint32 = 203;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
Data data = 201 [features.message_encoding = DELIMITED];
|
|
192
|
-
|
|
193
|
-
// default values
|
|
194
|
-
int32 default_int32 = 241 [default = -123456789];
|
|
195
|
-
int64 default_int64 = 242 [default = -9123456789123456789];
|
|
196
|
-
uint32 default_uint32 = 243 [default = 2123456789];
|
|
197
|
-
uint64 default_uint64 = 244 [default = 10123456789123456789];
|
|
198
|
-
sint32 default_sint32 = 245 [default = -123456789];
|
|
199
|
-
sint64 default_sint64 = 246 [default = -9123456789123456789];
|
|
200
|
-
fixed32 default_fixed32 = 247 [default = 2123456789];
|
|
201
|
-
fixed64 default_fixed64 = 248 [default = 10123456789123456789];
|
|
202
|
-
sfixed32 default_sfixed32 = 249 [default = -123456789];
|
|
203
|
-
sfixed64 default_sfixed64 = 250 [default = -9123456789123456789];
|
|
204
|
-
float default_float = 251 [default = 9e9];
|
|
205
|
-
double default_double = 252 [default = 7e22];
|
|
206
|
-
bool default_bool = 253 [default = true];
|
|
207
|
-
string default_string = 254 [default = "Rosebud"];
|
|
208
|
-
bytes default_bytes = 255 [default = "joshua"];
|
|
209
|
-
|
|
210
|
-
// Test field-name-to-JSON-name convention.
|
|
211
|
-
// (protobuf says names can be any valid C/C++ identifier.)
|
|
212
|
-
int32 fieldname1 = 401;
|
|
213
|
-
int32 field_name2 = 402;
|
|
214
|
-
int32 _field_name3 = 403;
|
|
215
|
-
int32 field__name4_ = 404;
|
|
216
|
-
int32 field0name5 = 405;
|
|
217
|
-
int32 field_0_name6 = 406;
|
|
218
|
-
int32 fieldName7 = 407;
|
|
219
|
-
int32 FieldName8 = 408;
|
|
220
|
-
int32 field_Name9 = 409;
|
|
221
|
-
int32 Field_Name10 = 410;
|
|
222
|
-
int32 FIELD_NAME11 = 411;
|
|
223
|
-
int32 FIELD_name12 = 412;
|
|
224
|
-
int32 __field_name13 = 413;
|
|
225
|
-
int32 __Field_name14 = 414;
|
|
226
|
-
int32 field__name15 = 415;
|
|
227
|
-
int32 field__Name16 = 416;
|
|
228
|
-
int32 field_name17__ = 417;
|
|
229
|
-
int32 Field_name18__ = 418;
|
|
230
|
-
|
|
231
|
-
// Reserved for unknown fields test.
|
|
232
|
-
reserved 1000 to 9999;
|
|
233
|
-
|
|
234
|
-
// message_set test case.
|
|
235
|
-
message MessageSetCorrect {
|
|
236
|
-
option message_set_wire_format = true;
|
|
237
|
-
|
|
238
|
-
extensions 4 to max;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
message MessageSetCorrectExtension1 {
|
|
242
|
-
extend MessageSetCorrect {
|
|
243
|
-
MessageSetCorrectExtension1 message_set_extension = 1547769;
|
|
244
|
-
}
|
|
245
|
-
string str = 25;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
message MessageSetCorrectExtension2 {
|
|
249
|
-
extend MessageSetCorrect {
|
|
250
|
-
MessageSetCorrectExtension2 message_set_extension = 4135312;
|
|
251
|
-
}
|
|
252
|
-
int32 i = 9;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message ForeignMessageEdition {
|
|
257
|
-
int32 c = 1;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
enum ForeignEnumEdition {
|
|
261
|
-
FOREIGN_FOO = 0;
|
|
262
|
-
FOREIGN_BAR = 1;
|
|
263
|
-
FOREIGN_BAZ = 2;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
extend TestAllTypesEdition {
|
|
267
|
-
int32 extension_int32 = 120;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
message UnknownToTestAllTypes {
|
|
271
|
-
int32 optional_int32 = 1001;
|
|
272
|
-
string optional_string = 1002;
|
|
273
|
-
ForeignMessageEdition nested_message = 1003;
|
|
274
|
-
message OptionalGroup {
|
|
275
|
-
int32 a = 1;
|
|
276
|
-
}
|
|
277
|
-
OptionalGroup optionalgroup = 1004 [features.message_encoding = DELIMITED];
|
|
278
|
-
bool optional_bool = 1006;
|
|
279
|
-
repeated int32 repeated_int32 = 1011;
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
message NullHypothesisEdition {}
|
|
283
|
-
|
|
284
|
-
message EnumOnlyEdition {
|
|
285
|
-
enum Bool {
|
|
286
|
-
kFalse = 0;
|
|
287
|
-
kTrue = 1;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
message OneStringEdition {
|
|
292
|
-
string data = 1;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
message ProtoWithKeywords {
|
|
296
|
-
int32 inline = 1;
|
|
297
|
-
string concept = 2;
|
|
298
|
-
repeated string requires = 3;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
message TestAllRequiredTypesEdition {
|
|
302
|
-
message NestedMessage {
|
|
303
|
-
int32 a = 1 [features.field_presence = LEGACY_REQUIRED];
|
|
304
|
-
TestAllRequiredTypesEdition corecursive = 2
|
|
305
|
-
[features.field_presence = LEGACY_REQUIRED];
|
|
306
|
-
TestAllRequiredTypesEdition optional_corecursive = 3;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
enum NestedEnum {
|
|
310
|
-
FOO = 0;
|
|
311
|
-
BAR = 1;
|
|
312
|
-
BAZ = 2;
|
|
313
|
-
NEG = -1; // Intentionally negative.
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
// Singular
|
|
317
|
-
int32 required_int32 = 1 [features.field_presence = LEGACY_REQUIRED];
|
|
318
|
-
int64 required_int64 = 2 [features.field_presence = LEGACY_REQUIRED];
|
|
319
|
-
uint32 required_uint32 = 3 [features.field_presence = LEGACY_REQUIRED];
|
|
320
|
-
uint64 required_uint64 = 4 [features.field_presence = LEGACY_REQUIRED];
|
|
321
|
-
sint32 required_sint32 = 5 [features.field_presence = LEGACY_REQUIRED];
|
|
322
|
-
sint64 required_sint64 = 6 [features.field_presence = LEGACY_REQUIRED];
|
|
323
|
-
fixed32 required_fixed32 = 7 [features.field_presence = LEGACY_REQUIRED];
|
|
324
|
-
fixed64 required_fixed64 = 8 [features.field_presence = LEGACY_REQUIRED];
|
|
325
|
-
sfixed32 required_sfixed32 = 9 [features.field_presence = LEGACY_REQUIRED];
|
|
326
|
-
sfixed64 required_sfixed64 = 10 [features.field_presence = LEGACY_REQUIRED];
|
|
327
|
-
float required_float = 11 [features.field_presence = LEGACY_REQUIRED];
|
|
328
|
-
double required_double = 12 [features.field_presence = LEGACY_REQUIRED];
|
|
329
|
-
bool required_bool = 13 [features.field_presence = LEGACY_REQUIRED];
|
|
330
|
-
string required_string = 14 [features.field_presence = LEGACY_REQUIRED];
|
|
331
|
-
bytes required_bytes = 15 [features.field_presence = LEGACY_REQUIRED];
|
|
332
|
-
|
|
333
|
-
NestedMessage required_nested_message = 18
|
|
334
|
-
[features.field_presence = LEGACY_REQUIRED];
|
|
335
|
-
ForeignMessageEdition required_foreign_message = 19
|
|
336
|
-
[features.field_presence = LEGACY_REQUIRED];
|
|
337
|
-
|
|
338
|
-
NestedEnum required_nested_enum = 21
|
|
339
|
-
[features.field_presence = LEGACY_REQUIRED];
|
|
340
|
-
ForeignEnumEdition required_foreign_enum = 22
|
|
341
|
-
[features.field_presence = LEGACY_REQUIRED];
|
|
342
|
-
|
|
343
|
-
string required_string_piece = 24
|
|
344
|
-
[ctype = STRING_PIECE, features.field_presence = LEGACY_REQUIRED];
|
|
345
|
-
string required_cord = 25
|
|
346
|
-
[ctype = CORD, features.field_presence = LEGACY_REQUIRED];
|
|
347
|
-
|
|
348
|
-
TestAllRequiredTypesEdition recursive_message = 27;
|
|
349
|
-
TestAllRequiredTypesEdition optional_recursive_message = 28;
|
|
350
|
-
|
|
351
|
-
// extensions
|
|
352
|
-
extensions 120 to 200;
|
|
353
|
-
|
|
354
|
-
// groups
|
|
355
|
-
message Data {
|
|
356
|
-
int32 group_int32 = 202 [features.field_presence = LEGACY_REQUIRED];
|
|
357
|
-
uint32 group_uint32 = 203 [features.field_presence = LEGACY_REQUIRED];
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
Data data = 201 [features.message_encoding = DELIMITED];
|
|
361
|
-
|
|
362
|
-
// default values
|
|
363
|
-
int32 default_int32 = 241
|
|
364
|
-
[default = -123456789, features.field_presence = LEGACY_REQUIRED];
|
|
365
|
-
int64 default_int64 = 242 [
|
|
366
|
-
default = -9123456789123456789,
|
|
367
|
-
features.field_presence = LEGACY_REQUIRED
|
|
368
|
-
];
|
|
369
|
-
uint32 default_uint32 = 243
|
|
370
|
-
[default = 2123456789, features.field_presence = LEGACY_REQUIRED];
|
|
371
|
-
uint64 default_uint64 = 244 [
|
|
372
|
-
default = 10123456789123456789,
|
|
373
|
-
features.field_presence = LEGACY_REQUIRED
|
|
374
|
-
];
|
|
375
|
-
sint32 default_sint32 = 245
|
|
376
|
-
[default = -123456789, features.field_presence = LEGACY_REQUIRED];
|
|
377
|
-
sint64 default_sint64 = 246 [
|
|
378
|
-
default = -9123456789123456789,
|
|
379
|
-
features.field_presence = LEGACY_REQUIRED
|
|
380
|
-
];
|
|
381
|
-
fixed32 default_fixed32 = 247
|
|
382
|
-
[default = 2123456789, features.field_presence = LEGACY_REQUIRED];
|
|
383
|
-
fixed64 default_fixed64 = 248 [
|
|
384
|
-
default = 10123456789123456789,
|
|
385
|
-
features.field_presence = LEGACY_REQUIRED
|
|
386
|
-
];
|
|
387
|
-
sfixed32 default_sfixed32 = 249
|
|
388
|
-
[default = -123456789, features.field_presence = LEGACY_REQUIRED];
|
|
389
|
-
sfixed64 default_sfixed64 = 250 [
|
|
390
|
-
default = -9123456789123456789,
|
|
391
|
-
features.field_presence = LEGACY_REQUIRED
|
|
392
|
-
];
|
|
393
|
-
float default_float = 251
|
|
394
|
-
[default = 9e9, features.field_presence = LEGACY_REQUIRED];
|
|
395
|
-
double default_double = 252
|
|
396
|
-
[default = 7e22, features.field_presence = LEGACY_REQUIRED];
|
|
397
|
-
bool default_bool = 253
|
|
398
|
-
[default = true, features.field_presence = LEGACY_REQUIRED];
|
|
399
|
-
string default_string = 254
|
|
400
|
-
[default = "Rosebud", features.field_presence = LEGACY_REQUIRED];
|
|
401
|
-
bytes default_bytes = 255
|
|
402
|
-
[default = "joshua", features.field_presence = LEGACY_REQUIRED];
|
|
403
|
-
|
|
404
|
-
// Reserved for unknown fields test.
|
|
405
|
-
reserved 1000 to 9999;
|
|
406
|
-
|
|
407
|
-
// message_set test case.
|
|
408
|
-
message MessageSetCorrect {
|
|
409
|
-
option message_set_wire_format = true;
|
|
410
|
-
|
|
411
|
-
extensions 4 to max;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
message MessageSetCorrectExtension1 {
|
|
415
|
-
extend MessageSetCorrect {
|
|
416
|
-
MessageSetCorrectExtension1 message_set_extension = 1547769;
|
|
417
|
-
}
|
|
418
|
-
string str = 25 [features.field_presence = LEGACY_REQUIRED];
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
message MessageSetCorrectExtension2 {
|
|
422
|
-
extend MessageSetCorrect {
|
|
423
|
-
MessageSetCorrectExtension2 message_set_extension = 4135312;
|
|
424
|
-
}
|
|
425
|
-
int32 i = 9 [features.field_presence = LEGACY_REQUIRED];
|
|
426
|
-
}
|
|
427
|
-
}
|