protobufjs 8.0.3-experimental → 8.0.3
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/LICENSE +39 -39
- package/README.md +727 -727
- package/dist/light/protobuf.js +7724 -7352
- package/dist/light/protobuf.js.map +1 -1
- package/dist/light/protobuf.min.js +3 -3
- package/dist/light/protobuf.min.js.map +1 -1
- package/dist/minimal/protobuf.js +2606 -2546
- package/dist/minimal/protobuf.js.map +1 -1
- package/dist/minimal/protobuf.min.js +3 -3
- package/dist/minimal/protobuf.min.js.map +1 -1
- package/dist/protobuf.js +9588 -9131
- package/dist/protobuf.js.map +1 -1
- package/dist/protobuf.min.js +3 -3
- package/dist/protobuf.min.js.map +1 -1
- package/ext/debug/README.md +4 -4
- package/ext/debug/index.js +71 -71
- package/ext/descriptor/README.md +72 -72
- package/ext/descriptor/index.d.ts +195 -191
- package/ext/descriptor/index.js +1181 -1052
- package/ext/descriptor/test.js +54 -54
- package/google/LICENSE +27 -27
- package/google/README.md +1 -1
- package/google/api/annotations.json +82 -82
- package/google/api/annotations.proto +10 -10
- package/google/api/http.json +85 -85
- package/google/api/http.proto +30 -30
- package/google/protobuf/api.json +117 -117
- package/google/protobuf/api.proto +33 -33
- package/google/protobuf/descriptor.json +1381 -738
- package/google/protobuf/descriptor.proto +535 -286
- package/google/protobuf/source_context.json +19 -19
- package/google/protobuf/source_context.proto +7 -7
- package/google/protobuf/type.json +201 -201
- package/google/protobuf/type.proto +89 -89
- package/index.d.ts +2817 -2792
- package/index.js +4 -4
- package/light.d.ts +2 -2
- package/light.js +3 -3
- package/minimal.d.ts +2 -2
- package/minimal.js +4 -4
- package/package.json +96 -112
- package/scripts/postinstall.js +32 -32
- package/src/common.js +399 -399
- package/src/converter.js +310 -301
- package/src/decoder.js +135 -127
- package/src/encoder.js +100 -100
- package/src/enum.js +226 -241
- package/src/field.js +453 -432
- package/src/index-light.js +104 -104
- package/src/index-minimal.js +36 -36
- package/src/index.js +12 -12
- package/src/mapfield.js +126 -126
- package/src/message.js +139 -139
- package/src/method.js +160 -160
- package/src/namespace.js +550 -434
- package/src/object.js +385 -330
- package/src/oneof.js +222 -222
- package/src/parse.js +1024 -944
- package/src/reader.js +426 -416
- package/src/reader_buffer.js +51 -51
- package/src/root.js +404 -384
- package/src/roots.js +17 -17
- package/src/rpc/service.js +142 -142
- package/src/rpc.js +36 -36
- package/src/service.js +193 -168
- package/src/tokenize.js +421 -416
- package/src/type.js +625 -590
- package/src/types.js +196 -196
- package/src/typescript.jsdoc +15 -15
- package/src/util/aspromise.d.ts +13 -0
- package/src/util/aspromise.js +52 -0
- package/src/util/base64.d.ts +32 -0
- package/src/util/base64.js +139 -0
- package/src/util/codegen.d.ts +31 -0
- package/src/util/codegen.js +113 -0
- package/src/util/eventemitter.d.ts +45 -0
- package/src/util/eventemitter.js +84 -0
- package/src/util/fetch.d.ts +56 -0
- package/src/util/fetch.js +114 -0
- package/src/util/float.d.ts +83 -0
- package/src/util/float.js +335 -0
- package/src/util/inquire.d.ts +9 -0
- package/src/util/inquire.js +37 -0
- package/src/util/longbits.js +200 -200
- package/src/util/minimal.js +461 -438
- package/src/util/path.d.ts +22 -0
- package/src/util/path.js +72 -0
- package/src/util/patterns.js +8 -0
- package/src/util/pool.d.ts +32 -0
- package/src/util/pool.js +48 -0
- package/src/util/utf8.d.ts +24 -0
- package/src/util/utf8.js +104 -0
- package/src/util.js +215 -213
- package/src/verifier.js +180 -177
- package/src/wrappers.js +103 -102
- package/src/writer.js +465 -465
- package/src/writer_buffer.js +85 -85
- package/tsconfig.json +8 -8
|
@@ -1,286 +1,535 @@
|
|
|
1
|
-
syntax = "proto2";
|
|
2
|
-
|
|
3
|
-
package google.protobuf;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
repeated
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
optional
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
optional
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
optional
|
|
112
|
-
optional
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
optional string
|
|
118
|
-
|
|
119
|
-
optional
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
optional
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
message
|
|
176
|
-
|
|
177
|
-
optional
|
|
178
|
-
optional
|
|
179
|
-
optional
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
optional
|
|
214
|
-
optional
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
message
|
|
237
|
-
|
|
238
|
-
optional bool
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
repeated
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
1
|
+
syntax = "proto2";
|
|
2
|
+
|
|
3
|
+
package google.protobuf;
|
|
4
|
+
|
|
5
|
+
option go_package = "google.golang.org/protobuf/types/descriptorpb";
|
|
6
|
+
option java_package = "com.google.protobuf";
|
|
7
|
+
option java_outer_classname = "DescriptorProtos";
|
|
8
|
+
option csharp_namespace = "Google.Protobuf.Reflection";
|
|
9
|
+
option objc_class_prefix = "GPB";
|
|
10
|
+
option cc_enable_arenas = true;
|
|
11
|
+
option optimize_for = "SPEED";
|
|
12
|
+
|
|
13
|
+
message FileDescriptorSet {
|
|
14
|
+
|
|
15
|
+
repeated FileDescriptorProto file = 1;
|
|
16
|
+
|
|
17
|
+
extensions 536000000;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
enum Edition {
|
|
21
|
+
|
|
22
|
+
EDITION_UNKNOWN = 0;
|
|
23
|
+
EDITION_LEGACY = 900;
|
|
24
|
+
EDITION_PROTO2 = 998;
|
|
25
|
+
EDITION_PROTO3 = 999;
|
|
26
|
+
EDITION_2023 = 1000;
|
|
27
|
+
EDITION_2024 = 1001;
|
|
28
|
+
EDITION_1_TEST_ONLY = 1;
|
|
29
|
+
EDITION_2_TEST_ONLY = 2;
|
|
30
|
+
EDITION_99997_TEST_ONLY = 99997;
|
|
31
|
+
EDITION_99998_TEST_ONLY = 99998;
|
|
32
|
+
EDITION_99999_TEST_ONLY = 99999;
|
|
33
|
+
EDITION_MAX = 2147483647;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
message FileDescriptorProto {
|
|
37
|
+
|
|
38
|
+
optional string name = 1;
|
|
39
|
+
optional string package = 2;
|
|
40
|
+
repeated string dependency = 3;
|
|
41
|
+
repeated int32 public_dependency = 10;
|
|
42
|
+
repeated int32 weak_dependency = 11;
|
|
43
|
+
repeated string option_dependency = 15;
|
|
44
|
+
repeated DescriptorProto message_type = 4;
|
|
45
|
+
repeated EnumDescriptorProto enum_type = 5;
|
|
46
|
+
repeated ServiceDescriptorProto service = 6;
|
|
47
|
+
repeated FieldDescriptorProto extension = 7;
|
|
48
|
+
optional FileOptions options = 8;
|
|
49
|
+
optional SourceCodeInfo source_code_info = 9;
|
|
50
|
+
optional string syntax = 12;
|
|
51
|
+
optional Edition edition = 14;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
message DescriptorProto {
|
|
55
|
+
|
|
56
|
+
optional string name = 1;
|
|
57
|
+
repeated FieldDescriptorProto field = 2;
|
|
58
|
+
repeated FieldDescriptorProto extension = 6;
|
|
59
|
+
repeated DescriptorProto nested_type = 3;
|
|
60
|
+
repeated EnumDescriptorProto enum_type = 4;
|
|
61
|
+
repeated ExtensionRange extension_range = 5;
|
|
62
|
+
repeated OneofDescriptorProto oneof_decl = 8;
|
|
63
|
+
optional MessageOptions options = 7;
|
|
64
|
+
repeated ReservedRange reserved_range = 9;
|
|
65
|
+
repeated string reserved_name = 10;
|
|
66
|
+
optional SymbolVisibility visibility = 11;
|
|
67
|
+
|
|
68
|
+
message ExtensionRange {
|
|
69
|
+
|
|
70
|
+
optional int32 start = 1;
|
|
71
|
+
optional int32 end = 2;
|
|
72
|
+
optional ExtensionRangeOptions options = 3;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message ReservedRange {
|
|
76
|
+
|
|
77
|
+
optional int32 start = 1;
|
|
78
|
+
optional int32 end = 2;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message ExtensionRangeOptions {
|
|
83
|
+
|
|
84
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
85
|
+
repeated Declaration declaration = 2 [retention="RETENTION_SOURCE"];
|
|
86
|
+
optional FeatureSet features = 50;
|
|
87
|
+
optional VerificationState verification = 3 [default=UNVERIFIED, retention="RETENTION_SOURCE"];
|
|
88
|
+
|
|
89
|
+
message Declaration {
|
|
90
|
+
|
|
91
|
+
optional int32 number = 1;
|
|
92
|
+
optional string full_name = 2;
|
|
93
|
+
optional string type = 3;
|
|
94
|
+
optional bool reserved = 5;
|
|
95
|
+
optional bool repeated = 6;
|
|
96
|
+
|
|
97
|
+
reserved 4;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
enum VerificationState {
|
|
101
|
+
|
|
102
|
+
DECLARATION = 0;
|
|
103
|
+
UNVERIFIED = 1;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
extensions 1000 to max;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message FieldDescriptorProto {
|
|
110
|
+
|
|
111
|
+
optional string name = 1;
|
|
112
|
+
optional int32 number = 3;
|
|
113
|
+
optional Label label = 4;
|
|
114
|
+
optional Type type = 5;
|
|
115
|
+
optional string type_name = 6;
|
|
116
|
+
optional string extendee = 2;
|
|
117
|
+
optional string default_value = 7;
|
|
118
|
+
optional int32 oneof_index = 9;
|
|
119
|
+
optional string json_name = 10;
|
|
120
|
+
optional FieldOptions options = 8;
|
|
121
|
+
optional bool proto3_optional = 17;
|
|
122
|
+
|
|
123
|
+
enum Type {
|
|
124
|
+
|
|
125
|
+
TYPE_DOUBLE = 1;
|
|
126
|
+
TYPE_FLOAT = 2;
|
|
127
|
+
TYPE_INT64 = 3;
|
|
128
|
+
TYPE_UINT64 = 4;
|
|
129
|
+
TYPE_INT32 = 5;
|
|
130
|
+
TYPE_FIXED64 = 6;
|
|
131
|
+
TYPE_FIXED32 = 7;
|
|
132
|
+
TYPE_BOOL = 8;
|
|
133
|
+
TYPE_STRING = 9;
|
|
134
|
+
TYPE_GROUP = 10;
|
|
135
|
+
TYPE_MESSAGE = 11;
|
|
136
|
+
TYPE_BYTES = 12;
|
|
137
|
+
TYPE_UINT32 = 13;
|
|
138
|
+
TYPE_ENUM = 14;
|
|
139
|
+
TYPE_SFIXED32 = 15;
|
|
140
|
+
TYPE_SFIXED64 = 16;
|
|
141
|
+
TYPE_SINT32 = 17;
|
|
142
|
+
TYPE_SINT64 = 18;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
enum Label {
|
|
146
|
+
|
|
147
|
+
LABEL_OPTIONAL = 1;
|
|
148
|
+
LABEL_REPEATED = 3;
|
|
149
|
+
LABEL_REQUIRED = 2;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
message OneofDescriptorProto {
|
|
154
|
+
|
|
155
|
+
optional string name = 1;
|
|
156
|
+
optional OneofOptions options = 2;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
message EnumDescriptorProto {
|
|
160
|
+
|
|
161
|
+
optional string name = 1;
|
|
162
|
+
repeated EnumValueDescriptorProto value = 2;
|
|
163
|
+
optional EnumOptions options = 3;
|
|
164
|
+
repeated EnumReservedRange reserved_range = 4;
|
|
165
|
+
repeated string reserved_name = 5;
|
|
166
|
+
optional SymbolVisibility visibility = 6;
|
|
167
|
+
|
|
168
|
+
message EnumReservedRange {
|
|
169
|
+
|
|
170
|
+
optional int32 start = 1;
|
|
171
|
+
optional int32 end = 2;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
message EnumValueDescriptorProto {
|
|
176
|
+
|
|
177
|
+
optional string name = 1;
|
|
178
|
+
optional int32 number = 2;
|
|
179
|
+
optional EnumValueOptions options = 3;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
message ServiceDescriptorProto {
|
|
183
|
+
|
|
184
|
+
optional string name = 1;
|
|
185
|
+
repeated MethodDescriptorProto method = 2;
|
|
186
|
+
optional ServiceOptions options = 3;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
message MethodDescriptorProto {
|
|
190
|
+
|
|
191
|
+
optional string name = 1;
|
|
192
|
+
optional string input_type = 2;
|
|
193
|
+
optional string output_type = 3;
|
|
194
|
+
optional MethodOptions options = 4;
|
|
195
|
+
optional bool client_streaming = 5;
|
|
196
|
+
optional bool server_streaming = 6;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
message FileOptions {
|
|
200
|
+
|
|
201
|
+
optional string java_package = 1;
|
|
202
|
+
optional string java_outer_classname = 8;
|
|
203
|
+
optional bool java_multiple_files = 10;
|
|
204
|
+
optional bool java_generate_equals_and_hash = 20 [deprecated=true];
|
|
205
|
+
optional bool java_string_check_utf8 = 27;
|
|
206
|
+
optional OptimizeMode optimize_for = 9 [default=SPEED];
|
|
207
|
+
optional string go_package = 11;
|
|
208
|
+
optional bool cc_generic_services = 16;
|
|
209
|
+
optional bool java_generic_services = 17;
|
|
210
|
+
optional bool py_generic_services = 18;
|
|
211
|
+
optional bool deprecated = 23;
|
|
212
|
+
optional bool cc_enable_arenas = 31 [default=true];
|
|
213
|
+
optional string objc_class_prefix = 36;
|
|
214
|
+
optional string csharp_namespace = 37;
|
|
215
|
+
optional string swift_prefix = 39;
|
|
216
|
+
optional string php_class_prefix = 40;
|
|
217
|
+
optional string php_namespace = 41;
|
|
218
|
+
optional string php_metadata_namespace = 44;
|
|
219
|
+
optional string ruby_package = 45;
|
|
220
|
+
optional FeatureSet features = 50;
|
|
221
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
222
|
+
|
|
223
|
+
enum OptimizeMode {
|
|
224
|
+
|
|
225
|
+
SPEED = 1;
|
|
226
|
+
CODE_SIZE = 2;
|
|
227
|
+
LITE_RUNTIME = 3;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
extensions 1000 to max;
|
|
231
|
+
|
|
232
|
+
reserved 42, 38;
|
|
233
|
+
reserved "php_generic_services";
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
message MessageOptions {
|
|
237
|
+
|
|
238
|
+
optional bool message_set_wire_format = 1;
|
|
239
|
+
optional bool no_standard_descriptor_accessor = 2;
|
|
240
|
+
optional bool deprecated = 3;
|
|
241
|
+
optional bool map_entry = 7;
|
|
242
|
+
optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated=true];
|
|
243
|
+
optional FeatureSet features = 12;
|
|
244
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
245
|
+
|
|
246
|
+
extensions 1000 to max;
|
|
247
|
+
|
|
248
|
+
reserved 4, 5, 6, 8, 9;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
message FieldOptions {
|
|
252
|
+
|
|
253
|
+
optional CType ctype = 1 [default=STRING];
|
|
254
|
+
optional bool packed = 2;
|
|
255
|
+
optional JSType jstype = 6 [default=JS_NORMAL];
|
|
256
|
+
optional bool lazy = 5;
|
|
257
|
+
optional bool unverified_lazy = 15;
|
|
258
|
+
optional bool deprecated = 3;
|
|
259
|
+
optional bool weak = 10 [deprecated=true];
|
|
260
|
+
optional bool debug_redact = 16;
|
|
261
|
+
optional OptionRetention retention = 17;
|
|
262
|
+
repeated OptionTargetType targets = 19;
|
|
263
|
+
repeated EditionDefault edition_defaults = 20;
|
|
264
|
+
optional FeatureSet features = 21;
|
|
265
|
+
optional FeatureSupport feature_support = 22;
|
|
266
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
267
|
+
|
|
268
|
+
enum CType {
|
|
269
|
+
|
|
270
|
+
STRING = 0;
|
|
271
|
+
CORD = 1;
|
|
272
|
+
STRING_PIECE = 2;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
enum JSType {
|
|
276
|
+
|
|
277
|
+
JS_NORMAL = 0;
|
|
278
|
+
JS_STRING = 1;
|
|
279
|
+
JS_NUMBER = 2;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
enum OptionRetention {
|
|
283
|
+
|
|
284
|
+
RETENTION_UNKNOWN = 0;
|
|
285
|
+
RETENTION_RUNTIME = 1;
|
|
286
|
+
RETENTION_SOURCE = 2;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
enum OptionTargetType {
|
|
290
|
+
|
|
291
|
+
TARGET_TYPE_UNKNOWN = 0;
|
|
292
|
+
TARGET_TYPE_FILE = 1;
|
|
293
|
+
TARGET_TYPE_EXTENSION_RANGE = 2;
|
|
294
|
+
TARGET_TYPE_MESSAGE = 3;
|
|
295
|
+
TARGET_TYPE_FIELD = 4;
|
|
296
|
+
TARGET_TYPE_ONEOF = 5;
|
|
297
|
+
TARGET_TYPE_ENUM = 6;
|
|
298
|
+
TARGET_TYPE_ENUM_ENTRY = 7;
|
|
299
|
+
TARGET_TYPE_SERVICE = 8;
|
|
300
|
+
TARGET_TYPE_METHOD = 9;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
message EditionDefault {
|
|
304
|
+
|
|
305
|
+
optional Edition edition = 3;
|
|
306
|
+
optional string value = 2;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
message FeatureSupport {
|
|
310
|
+
|
|
311
|
+
optional Edition edition_introduced = 1;
|
|
312
|
+
optional Edition edition_deprecated = 2;
|
|
313
|
+
optional string deprecation_warning = 3;
|
|
314
|
+
optional Edition edition_removed = 4;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
extensions 1000 to max;
|
|
318
|
+
|
|
319
|
+
reserved 4, 18;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
message OneofOptions {
|
|
323
|
+
|
|
324
|
+
optional FeatureSet features = 1;
|
|
325
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
326
|
+
|
|
327
|
+
extensions 1000 to max;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
message EnumOptions {
|
|
331
|
+
|
|
332
|
+
optional bool allow_alias = 2;
|
|
333
|
+
optional bool deprecated = 3;
|
|
334
|
+
optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated=true];
|
|
335
|
+
optional FeatureSet features = 7;
|
|
336
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
337
|
+
|
|
338
|
+
extensions 1000 to max;
|
|
339
|
+
|
|
340
|
+
reserved 5;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
message EnumValueOptions {
|
|
344
|
+
|
|
345
|
+
optional bool deprecated = 1;
|
|
346
|
+
optional FeatureSet features = 2;
|
|
347
|
+
optional bool debug_redact = 3;
|
|
348
|
+
optional FieldOptions.FeatureSupport feature_support = 4;
|
|
349
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
350
|
+
|
|
351
|
+
extensions 1000 to max;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
message ServiceOptions {
|
|
355
|
+
|
|
356
|
+
optional FeatureSet features = 34;
|
|
357
|
+
optional bool deprecated = 33;
|
|
358
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
359
|
+
|
|
360
|
+
extensions 1000 to max;
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
message MethodOptions {
|
|
364
|
+
|
|
365
|
+
optional bool deprecated = 33;
|
|
366
|
+
optional IdempotencyLevel idempotency_level = 34 [default=IDEMPOTENCY_UNKNOWN];
|
|
367
|
+
optional FeatureSet features = 35;
|
|
368
|
+
repeated UninterpretedOption uninterpreted_option = 999;
|
|
369
|
+
|
|
370
|
+
enum IdempotencyLevel {
|
|
371
|
+
|
|
372
|
+
IDEMPOTENCY_UNKNOWN = 0;
|
|
373
|
+
NO_SIDE_EFFECTS = 1;
|
|
374
|
+
IDEMPOTENT = 2;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
extensions 1000 to max;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
message UninterpretedOption {
|
|
381
|
+
|
|
382
|
+
repeated NamePart name = 2;
|
|
383
|
+
optional string identifier_value = 3;
|
|
384
|
+
optional uint64 positive_int_value = 4;
|
|
385
|
+
optional int64 negative_int_value = 5;
|
|
386
|
+
optional double double_value = 6;
|
|
387
|
+
optional bytes string_value = 7;
|
|
388
|
+
optional string aggregate_value = 8;
|
|
389
|
+
|
|
390
|
+
message NamePart {
|
|
391
|
+
|
|
392
|
+
required string name_part = 1;
|
|
393
|
+
required bool is_extension = 2;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
message FeatureSet {
|
|
398
|
+
|
|
399
|
+
optional FieldPresence field_presence = 1 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_2023", edition_defaults.value="EXPLICIT"];
|
|
400
|
+
optional EnumType enum_type = 2 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="OPEN"];
|
|
401
|
+
optional RepeatedFieldEncoding repeated_field_encoding = 3 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="PACKED"];
|
|
402
|
+
optional Utf8Validation utf8_validation = 4 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="VERIFY"];
|
|
403
|
+
optional MessageEncoding message_encoding = 5 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_LEGACY", edition_defaults.value="LENGTH_PREFIXED"];
|
|
404
|
+
optional JsonFormat json_format = 6 [retention="RETENTION_RUNTIME", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2023", edition_defaults.edition="EDITION_PROTO3", edition_defaults.value="ALLOW"];
|
|
405
|
+
optional EnforceNamingStyle enforce_naming_style = 7 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_METHOD", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="STYLE2024"];
|
|
406
|
+
optional VisibilityFeature.DefaultSymbolVisibility default_symbol_visibility = 8 [retention="RETENTION_SOURCE", targets="TARGET_TYPE_FILE", feature_support.edition_introduced="EDITION_2024", edition_defaults.edition="EDITION_2024", edition_defaults.value="EXPORT_TOP_LEVEL"];
|
|
407
|
+
|
|
408
|
+
enum FieldPresence {
|
|
409
|
+
|
|
410
|
+
FIELD_PRESENCE_UNKNOWN = 0;
|
|
411
|
+
EXPLICIT = 1;
|
|
412
|
+
IMPLICIT = 2;
|
|
413
|
+
LEGACY_REQUIRED = 3;
|
|
414
|
+
}
|
|
415
|
+
|
|
416
|
+
enum EnumType {
|
|
417
|
+
|
|
418
|
+
ENUM_TYPE_UNKNOWN = 0;
|
|
419
|
+
OPEN = 1;
|
|
420
|
+
CLOSED = 2;
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
enum RepeatedFieldEncoding {
|
|
424
|
+
|
|
425
|
+
REPEATED_FIELD_ENCODING_UNKNOWN = 0;
|
|
426
|
+
PACKED = 1;
|
|
427
|
+
EXPANDED = 2;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
enum Utf8Validation {
|
|
431
|
+
|
|
432
|
+
UTF8_VALIDATION_UNKNOWN = 0;
|
|
433
|
+
VERIFY = 2;
|
|
434
|
+
NONE = 3;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
enum MessageEncoding {
|
|
438
|
+
|
|
439
|
+
MESSAGE_ENCODING_UNKNOWN = 0;
|
|
440
|
+
LENGTH_PREFIXED = 1;
|
|
441
|
+
DELIMITED = 2;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
enum JsonFormat {
|
|
445
|
+
|
|
446
|
+
JSON_FORMAT_UNKNOWN = 0;
|
|
447
|
+
ALLOW = 1;
|
|
448
|
+
LEGACY_BEST_EFFORT = 2;
|
|
449
|
+
}
|
|
450
|
+
|
|
451
|
+
enum EnforceNamingStyle {
|
|
452
|
+
|
|
453
|
+
ENFORCE_NAMING_STYLE_UNKNOWN = 0;
|
|
454
|
+
STYLE2024 = 1;
|
|
455
|
+
STYLE_LEGACY = 2;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
message VisibilityFeature {
|
|
459
|
+
|
|
460
|
+
enum DefaultSymbolVisibility {
|
|
461
|
+
|
|
462
|
+
DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0;
|
|
463
|
+
EXPORT_ALL = 1;
|
|
464
|
+
EXPORT_TOP_LEVEL = 2;
|
|
465
|
+
LOCAL_ALL = 3;
|
|
466
|
+
STRICT = 4;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
reserved 1 to max;
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
extensions 1000 to 9994, 9995 to 9999, 10000;
|
|
473
|
+
|
|
474
|
+
reserved 999;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
message FeatureSetDefaults {
|
|
478
|
+
|
|
479
|
+
repeated FeatureSetEditionDefault defaults = 1;
|
|
480
|
+
optional Edition minimum_edition = 4;
|
|
481
|
+
optional Edition maximum_edition = 5;
|
|
482
|
+
|
|
483
|
+
message FeatureSetEditionDefault {
|
|
484
|
+
|
|
485
|
+
optional Edition edition = 3;
|
|
486
|
+
optional FeatureSet overridable_features = 4;
|
|
487
|
+
optional FeatureSet fixed_features = 5;
|
|
488
|
+
|
|
489
|
+
reserved 1, 2, "features";
|
|
490
|
+
}
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
message SourceCodeInfo {
|
|
494
|
+
|
|
495
|
+
repeated Location location = 1;
|
|
496
|
+
|
|
497
|
+
message Location {
|
|
498
|
+
|
|
499
|
+
repeated int32 path = 1 [packed=true];
|
|
500
|
+
repeated int32 span = 2 [packed=true];
|
|
501
|
+
optional string leading_comments = 3;
|
|
502
|
+
optional string trailing_comments = 4;
|
|
503
|
+
repeated string leading_detached_comments = 6;
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
extensions 536000000;
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
message GeneratedCodeInfo {
|
|
510
|
+
|
|
511
|
+
repeated Annotation annotation = 1;
|
|
512
|
+
|
|
513
|
+
message Annotation {
|
|
514
|
+
|
|
515
|
+
repeated int32 path = 1 [packed=true];
|
|
516
|
+
optional string source_file = 2;
|
|
517
|
+
optional int32 begin = 3;
|
|
518
|
+
optional int32 end = 4;
|
|
519
|
+
optional Semantic semantic = 5;
|
|
520
|
+
|
|
521
|
+
enum Semantic {
|
|
522
|
+
|
|
523
|
+
NONE = 0;
|
|
524
|
+
SET = 1;
|
|
525
|
+
ALIAS = 2;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
enum SymbolVisibility {
|
|
531
|
+
|
|
532
|
+
VISIBILITY_UNSET = 0;
|
|
533
|
+
VISIBILITY_LOCAL = 1;
|
|
534
|
+
VISIBILITY_EXPORT = 2;
|
|
535
|
+
}
|