@milaboratories/pl-client 2.4.10

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 (64) hide show
  1. package/README.md +52 -0
  2. package/dist/index.cjs +14527 -0
  3. package/dist/index.cjs.map +1 -0
  4. package/dist/index.js +14426 -0
  5. package/dist/index.js.map +1 -0
  6. package/package.json +49 -0
  7. package/src/core/auth.ts +27 -0
  8. package/src/core/client.test.ts +47 -0
  9. package/src/core/client.ts +302 -0
  10. package/src/core/config.test.ts +19 -0
  11. package/src/core/config.ts +197 -0
  12. package/src/core/default_client.ts +161 -0
  13. package/src/core/driver.ts +30 -0
  14. package/src/core/error.test.ts +14 -0
  15. package/src/core/errors.ts +84 -0
  16. package/src/core/http.ts +178 -0
  17. package/src/core/ll_client.test.ts +111 -0
  18. package/src/core/ll_client.ts +228 -0
  19. package/src/core/ll_transaction.test.ts +152 -0
  20. package/src/core/ll_transaction.ts +333 -0
  21. package/src/core/transaction.test.ts +173 -0
  22. package/src/core/transaction.ts +730 -0
  23. package/src/core/type_conversion.ts +121 -0
  24. package/src/core/types.test.ts +22 -0
  25. package/src/core/types.ts +223 -0
  26. package/src/core/unauth_client.test.ts +21 -0
  27. package/src/core/unauth_client.ts +48 -0
  28. package/src/helpers/pl.ts +141 -0
  29. package/src/helpers/poll.ts +178 -0
  30. package/src/helpers/rich_resource_types.test.ts +22 -0
  31. package/src/helpers/rich_resource_types.ts +84 -0
  32. package/src/helpers/smart_accessors.ts +146 -0
  33. package/src/helpers/state_helpers.ts +5 -0
  34. package/src/helpers/tx_helpers.ts +24 -0
  35. package/src/index.ts +14 -0
  36. package/src/proto/github.com/googleapis/googleapis/google/rpc/status.ts +125 -0
  37. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.client.ts +45 -0
  38. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/downloadapi/protocol.ts +271 -0
  39. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.client.ts +51 -0
  40. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/lsapi/protocol.ts +380 -0
  41. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.client.ts +59 -0
  42. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/progressapi/protocol.ts +450 -0
  43. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.client.ts +148 -0
  44. package/src/proto/github.com/milaboratory/pl/controllers/shared/grpc/streamingapi/protocol.ts +706 -0
  45. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.client.ts +406 -0
  46. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api.ts +12636 -0
  47. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/api_types.ts +1384 -0
  48. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/base_types.ts +181 -0
  49. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/import.ts +251 -0
  50. package/src/proto/github.com/milaboratory/pl/plapi/plapiproto/resource_types.ts +693 -0
  51. package/src/proto/google/api/http.ts +687 -0
  52. package/src/proto/google/protobuf/any.ts +326 -0
  53. package/src/proto/google/protobuf/descriptor.ts +4502 -0
  54. package/src/proto/google/protobuf/duration.ts +230 -0
  55. package/src/proto/google/protobuf/empty.ts +81 -0
  56. package/src/proto/google/protobuf/struct.ts +482 -0
  57. package/src/proto/google/protobuf/timestamp.ts +287 -0
  58. package/src/proto/google/protobuf/wrappers.ts +751 -0
  59. package/src/test/test_config.test.ts +6 -0
  60. package/src/test/test_config.ts +166 -0
  61. package/src/util/branding.ts +4 -0
  62. package/src/util/pl.ts +11 -0
  63. package/src/util/util.test.ts +10 -0
  64. package/src/util/util.ts +9 -0
@@ -0,0 +1,4502 @@
1
+ // @generated by protobuf-ts 2.9.4 with parameter client_generic,optimize_speed,generate_dependencies,force_server_none
2
+ // @generated from protobuf file "google/protobuf/descriptor.proto" (package "google.protobuf", syntax proto2)
3
+ // tslint:disable
4
+ //
5
+ // Protocol Buffers - Google's data interchange format
6
+ // Copyright 2008 Google Inc. All rights reserved.
7
+ // https://developers.google.com/protocol-buffers/
8
+ //
9
+ // Redistribution and use in source and binary forms, with or without
10
+ // modification, are permitted provided that the following conditions are
11
+ // met:
12
+ //
13
+ // * Redistributions of source code must retain the above copyright
14
+ // notice, this list of conditions and the following disclaimer.
15
+ // * Redistributions in binary form must reproduce the above
16
+ // copyright notice, this list of conditions and the following disclaimer
17
+ // in the documentation and/or other materials provided with the
18
+ // distribution.
19
+ // * Neither the name of Google Inc. nor the names of its
20
+ // contributors may be used to endorse or promote products derived from
21
+ // this software without specific prior written permission.
22
+ //
23
+ // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
+ // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
+ // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
+ // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
+ // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
+ // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
+ // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
+ // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
+ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
+ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
+ // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
+ //
35
+ //
36
+ // Author: kenton@google.com (Kenton Varda)
37
+ // Based on original Protocol Buffers design by
38
+ // Sanjay Ghemawat, Jeff Dean, and others.
39
+ //
40
+ // The messages in this file describe the definitions found in .proto files.
41
+ // A valid .proto file can be translated directly to a FileDescriptorProto
42
+ // without any other information (e.g. without reading its imports).
43
+ //
44
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
45
+ import type { IBinaryWriter } from "@protobuf-ts/runtime";
46
+ import { WireType } from "@protobuf-ts/runtime";
47
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
48
+ import type { IBinaryReader } from "@protobuf-ts/runtime";
49
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
50
+ import type { PartialMessage } from "@protobuf-ts/runtime";
51
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
52
+ import { MessageType } from "@protobuf-ts/runtime";
53
+ /**
54
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
55
+ * files it parses.
56
+ *
57
+ * @generated from protobuf message google.protobuf.FileDescriptorSet
58
+ */
59
+ export interface FileDescriptorSet {
60
+ /**
61
+ * @generated from protobuf field: repeated google.protobuf.FileDescriptorProto file = 1;
62
+ */
63
+ file: FileDescriptorProto[];
64
+ }
65
+ /**
66
+ * Describes a complete .proto file.
67
+ *
68
+ * @generated from protobuf message google.protobuf.FileDescriptorProto
69
+ */
70
+ export interface FileDescriptorProto {
71
+ /**
72
+ * @generated from protobuf field: optional string name = 1;
73
+ */
74
+ name?: string; // file name, relative to root of source tree
75
+ /**
76
+ * @generated from protobuf field: optional string package = 2;
77
+ */
78
+ package?: string; // e.g. "foo", "foo.bar", etc.
79
+ /**
80
+ * Names of files imported by this file.
81
+ *
82
+ * @generated from protobuf field: repeated string dependency = 3;
83
+ */
84
+ dependency: string[];
85
+ /**
86
+ * Indexes of the public imported files in the dependency list above.
87
+ *
88
+ * @generated from protobuf field: repeated int32 public_dependency = 10;
89
+ */
90
+ publicDependency: number[];
91
+ /**
92
+ * Indexes of the weak imported files in the dependency list.
93
+ * For Google-internal migration only. Do not use.
94
+ *
95
+ * @generated from protobuf field: repeated int32 weak_dependency = 11;
96
+ */
97
+ weakDependency: number[];
98
+ /**
99
+ * All top-level definitions in this file.
100
+ *
101
+ * @generated from protobuf field: repeated google.protobuf.DescriptorProto message_type = 4;
102
+ */
103
+ messageType: DescriptorProto[];
104
+ /**
105
+ * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;
106
+ */
107
+ enumType: EnumDescriptorProto[];
108
+ /**
109
+ * @generated from protobuf field: repeated google.protobuf.ServiceDescriptorProto service = 6;
110
+ */
111
+ service: ServiceDescriptorProto[];
112
+ /**
113
+ * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 7;
114
+ */
115
+ extension: FieldDescriptorProto[];
116
+ /**
117
+ * @generated from protobuf field: optional google.protobuf.FileOptions options = 8;
118
+ */
119
+ options?: FileOptions;
120
+ /**
121
+ * This field contains optional information about the original source code.
122
+ * You may safely remove this entire field without harming runtime
123
+ * functionality of the descriptors -- the information is needed only by
124
+ * development tools.
125
+ *
126
+ * @generated from protobuf field: optional google.protobuf.SourceCodeInfo source_code_info = 9;
127
+ */
128
+ sourceCodeInfo?: SourceCodeInfo;
129
+ /**
130
+ * The syntax of the proto file.
131
+ * The supported values are "proto2", "proto3", and "editions".
132
+ *
133
+ * If `edition` is present, this value must be "editions".
134
+ *
135
+ * @generated from protobuf field: optional string syntax = 12;
136
+ */
137
+ syntax?: string;
138
+ /**
139
+ * The edition of the proto file.
140
+ *
141
+ * @generated from protobuf field: optional google.protobuf.Edition edition = 14;
142
+ */
143
+ edition?: Edition;
144
+ }
145
+ /**
146
+ * Describes a message type.
147
+ *
148
+ * @generated from protobuf message google.protobuf.DescriptorProto
149
+ */
150
+ export interface DescriptorProto {
151
+ /**
152
+ * @generated from protobuf field: optional string name = 1;
153
+ */
154
+ name?: string;
155
+ /**
156
+ * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto field = 2;
157
+ */
158
+ field: FieldDescriptorProto[];
159
+ /**
160
+ * @generated from protobuf field: repeated google.protobuf.FieldDescriptorProto extension = 6;
161
+ */
162
+ extension: FieldDescriptorProto[];
163
+ /**
164
+ * @generated from protobuf field: repeated google.protobuf.DescriptorProto nested_type = 3;
165
+ */
166
+ nestedType: DescriptorProto[];
167
+ /**
168
+ * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto enum_type = 4;
169
+ */
170
+ enumType: EnumDescriptorProto[];
171
+ /**
172
+ * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
173
+ */
174
+ extensionRange: DescriptorProto_ExtensionRange[];
175
+ /**
176
+ * @generated from protobuf field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
177
+ */
178
+ oneofDecl: OneofDescriptorProto[];
179
+ /**
180
+ * @generated from protobuf field: optional google.protobuf.MessageOptions options = 7;
181
+ */
182
+ options?: MessageOptions;
183
+ /**
184
+ * @generated from protobuf field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
185
+ */
186
+ reservedRange: DescriptorProto_ReservedRange[];
187
+ /**
188
+ * Reserved field names, which may not be used by fields in the same message.
189
+ * A given name may only be reserved once.
190
+ *
191
+ * @generated from protobuf field: repeated string reserved_name = 10;
192
+ */
193
+ reservedName: string[];
194
+ }
195
+ /**
196
+ * @generated from protobuf message google.protobuf.DescriptorProto.ExtensionRange
197
+ */
198
+ export interface DescriptorProto_ExtensionRange {
199
+ /**
200
+ * @generated from protobuf field: optional int32 start = 1;
201
+ */
202
+ start?: number; // Inclusive.
203
+ /**
204
+ * @generated from protobuf field: optional int32 end = 2;
205
+ */
206
+ end?: number; // Exclusive.
207
+ /**
208
+ * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions options = 3;
209
+ */
210
+ options?: ExtensionRangeOptions;
211
+ }
212
+ /**
213
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
214
+ * fields or extension ranges in the same message. Reserved ranges may
215
+ * not overlap.
216
+ *
217
+ * @generated from protobuf message google.protobuf.DescriptorProto.ReservedRange
218
+ */
219
+ export interface DescriptorProto_ReservedRange {
220
+ /**
221
+ * @generated from protobuf field: optional int32 start = 1;
222
+ */
223
+ start?: number; // Inclusive.
224
+ /**
225
+ * @generated from protobuf field: optional int32 end = 2;
226
+ */
227
+ end?: number; // Exclusive.
228
+ }
229
+ /**
230
+ * @generated from protobuf message google.protobuf.ExtensionRangeOptions
231
+ */
232
+ export interface ExtensionRangeOptions {
233
+ /**
234
+ * The parser stores options it doesn't recognize here. See above.
235
+ *
236
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
237
+ */
238
+ uninterpretedOption: UninterpretedOption[];
239
+ /**
240
+ * For external users: DO NOT USE. We are in the process of open sourcing
241
+ * extension declaration and executing internal cleanups before it can be
242
+ * used externally.
243
+ *
244
+ * @generated from protobuf field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2;
245
+ */
246
+ declaration: ExtensionRangeOptions_Declaration[];
247
+ /**
248
+ * Any features defined in the specific edition.
249
+ *
250
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50;
251
+ */
252
+ features?: FeatureSet;
253
+ /**
254
+ * The verification state of the range.
255
+ * TODO: flip the default to DECLARATION once all empty ranges
256
+ * are marked as UNVERIFIED.
257
+ *
258
+ * @generated from protobuf field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3;
259
+ */
260
+ verification?: ExtensionRangeOptions_VerificationState;
261
+ }
262
+ /**
263
+ * @generated from protobuf message google.protobuf.ExtensionRangeOptions.Declaration
264
+ */
265
+ export interface ExtensionRangeOptions_Declaration {
266
+ /**
267
+ * The extension number declared within the extension range.
268
+ *
269
+ * @generated from protobuf field: optional int32 number = 1;
270
+ */
271
+ number?: number;
272
+ /**
273
+ * The fully-qualified name of the extension field. There must be a leading
274
+ * dot in front of the full name.
275
+ *
276
+ * @generated from protobuf field: optional string full_name = 2;
277
+ */
278
+ fullName?: string;
279
+ /**
280
+ * The fully-qualified type name of the extension field. Unlike
281
+ * Metadata.type, Declaration.type must have a leading dot for messages
282
+ * and enums.
283
+ *
284
+ * @generated from protobuf field: optional string type = 3;
285
+ */
286
+ type?: string;
287
+ /**
288
+ * If true, indicates that the number is reserved in the extension range,
289
+ * and any extension field with the number will fail to compile. Set this
290
+ * when a declared extension field is deleted.
291
+ *
292
+ * @generated from protobuf field: optional bool reserved = 5;
293
+ */
294
+ reserved?: boolean;
295
+ /**
296
+ * If true, indicates that the extension must be defined as repeated.
297
+ * Otherwise the extension must be defined as optional.
298
+ *
299
+ * @generated from protobuf field: optional bool repeated = 6;
300
+ */
301
+ repeated?: boolean;
302
+ }
303
+ /**
304
+ * The verification state of the extension range.
305
+ *
306
+ * @generated from protobuf enum google.protobuf.ExtensionRangeOptions.VerificationState
307
+ */
308
+ export enum ExtensionRangeOptions_VerificationState {
309
+ /**
310
+ * All the extensions of the range must be declared.
311
+ *
312
+ * @generated from protobuf enum value: DECLARATION = 0;
313
+ */
314
+ DECLARATION = 0,
315
+ /**
316
+ * @generated from protobuf enum value: UNVERIFIED = 1;
317
+ */
318
+ UNVERIFIED = 1
319
+ }
320
+ /**
321
+ * Describes a field within a message.
322
+ *
323
+ * @generated from protobuf message google.protobuf.FieldDescriptorProto
324
+ */
325
+ export interface FieldDescriptorProto {
326
+ /**
327
+ * @generated from protobuf field: optional string name = 1;
328
+ */
329
+ name?: string;
330
+ /**
331
+ * @generated from protobuf field: optional int32 number = 3;
332
+ */
333
+ number?: number;
334
+ /**
335
+ * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Label label = 4;
336
+ */
337
+ label?: FieldDescriptorProto_Label;
338
+ /**
339
+ * If type_name is set, this need not be set. If both this and type_name
340
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
341
+ *
342
+ * @generated from protobuf field: optional google.protobuf.FieldDescriptorProto.Type type = 5;
343
+ */
344
+ type?: FieldDescriptorProto_Type;
345
+ /**
346
+ * For message and enum types, this is the name of the type. If the name
347
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
348
+ * rules are used to find the type (i.e. first the nested types within this
349
+ * message are searched, then within the parent, on up to the root
350
+ * namespace).
351
+ *
352
+ * @generated from protobuf field: optional string type_name = 6;
353
+ */
354
+ typeName?: string;
355
+ /**
356
+ * For extensions, this is the name of the type being extended. It is
357
+ * resolved in the same manner as type_name.
358
+ *
359
+ * @generated from protobuf field: optional string extendee = 2;
360
+ */
361
+ extendee?: string;
362
+ /**
363
+ * For numeric types, contains the original text representation of the value.
364
+ * For booleans, "true" or "false".
365
+ * For strings, contains the default text contents (not escaped in any way).
366
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
367
+ *
368
+ * @generated from protobuf field: optional string default_value = 7;
369
+ */
370
+ defaultValue?: string;
371
+ /**
372
+ * If set, gives the index of a oneof in the containing type's oneof_decl
373
+ * list. This field is a member of that oneof.
374
+ *
375
+ * @generated from protobuf field: optional int32 oneof_index = 9;
376
+ */
377
+ oneofIndex?: number;
378
+ /**
379
+ * JSON name of this field. The value is set by protocol compiler. If the
380
+ * user has set a "json_name" option on this field, that option's value
381
+ * will be used. Otherwise, it's deduced from the field's name by converting
382
+ * it to camelCase.
383
+ *
384
+ * @generated from protobuf field: optional string json_name = 10;
385
+ */
386
+ jsonName?: string;
387
+ /**
388
+ * @generated from protobuf field: optional google.protobuf.FieldOptions options = 8;
389
+ */
390
+ options?: FieldOptions;
391
+ /**
392
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
393
+ * tracks presence regardless of field type.
394
+ *
395
+ * When proto3_optional is true, this field must belong to a oneof to signal
396
+ * to old proto3 clients that presence is tracked for this field. This oneof
397
+ * is known as a "synthetic" oneof, and this field must be its sole member
398
+ * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
399
+ * exist in the descriptor only, and do not generate any API. Synthetic oneofs
400
+ * must be ordered after all "real" oneofs.
401
+ *
402
+ * For message fields, proto3_optional doesn't create any semantic change,
403
+ * since non-repeated message fields always track presence. However it still
404
+ * indicates the semantic detail of whether the user wrote "optional" or not.
405
+ * This can be useful for round-tripping the .proto file. For consistency we
406
+ * give message fields a synthetic oneof also, even though it is not required
407
+ * to track presence. This is especially important because the parser can't
408
+ * tell if a field is a message or an enum, so it must always create a
409
+ * synthetic oneof.
410
+ *
411
+ * Proto2 optional fields do not set this flag, because they already indicate
412
+ * optional with `LABEL_OPTIONAL`.
413
+ *
414
+ * @generated from protobuf field: optional bool proto3_optional = 17;
415
+ */
416
+ proto3Optional?: boolean;
417
+ }
418
+ /**
419
+ * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Type
420
+ */
421
+ export enum FieldDescriptorProto_Type {
422
+ /**
423
+ * @generated synthetic value - protobuf-ts requires all enums to have a 0 value
424
+ */
425
+ UNSPECIFIED$ = 0,
426
+ /**
427
+ * 0 is reserved for errors.
428
+ * Order is weird for historical reasons.
429
+ *
430
+ * @generated from protobuf enum value: TYPE_DOUBLE = 1;
431
+ */
432
+ DOUBLE = 1,
433
+ /**
434
+ * @generated from protobuf enum value: TYPE_FLOAT = 2;
435
+ */
436
+ FLOAT = 2,
437
+ /**
438
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
439
+ * negative values are likely.
440
+ *
441
+ * @generated from protobuf enum value: TYPE_INT64 = 3;
442
+ */
443
+ INT64 = 3,
444
+ /**
445
+ * @generated from protobuf enum value: TYPE_UINT64 = 4;
446
+ */
447
+ UINT64 = 4,
448
+ /**
449
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
450
+ * negative values are likely.
451
+ *
452
+ * @generated from protobuf enum value: TYPE_INT32 = 5;
453
+ */
454
+ INT32 = 5,
455
+ /**
456
+ * @generated from protobuf enum value: TYPE_FIXED64 = 6;
457
+ */
458
+ FIXED64 = 6,
459
+ /**
460
+ * @generated from protobuf enum value: TYPE_FIXED32 = 7;
461
+ */
462
+ FIXED32 = 7,
463
+ /**
464
+ * @generated from protobuf enum value: TYPE_BOOL = 8;
465
+ */
466
+ BOOL = 8,
467
+ /**
468
+ * @generated from protobuf enum value: TYPE_STRING = 9;
469
+ */
470
+ STRING = 9,
471
+ /**
472
+ * Tag-delimited aggregate.
473
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
474
+ * implementations should still be able to parse the group wire format and
475
+ * treat group fields as unknown fields. In Editions, the group wire format
476
+ * can be enabled via the `message_encoding` feature.
477
+ *
478
+ * @generated from protobuf enum value: TYPE_GROUP = 10;
479
+ */
480
+ GROUP = 10,
481
+ /**
482
+ * Length-delimited aggregate.
483
+ *
484
+ * @generated from protobuf enum value: TYPE_MESSAGE = 11;
485
+ */
486
+ MESSAGE = 11,
487
+ /**
488
+ * New in version 2.
489
+ *
490
+ * @generated from protobuf enum value: TYPE_BYTES = 12;
491
+ */
492
+ BYTES = 12,
493
+ /**
494
+ * @generated from protobuf enum value: TYPE_UINT32 = 13;
495
+ */
496
+ UINT32 = 13,
497
+ /**
498
+ * @generated from protobuf enum value: TYPE_ENUM = 14;
499
+ */
500
+ ENUM = 14,
501
+ /**
502
+ * @generated from protobuf enum value: TYPE_SFIXED32 = 15;
503
+ */
504
+ SFIXED32 = 15,
505
+ /**
506
+ * @generated from protobuf enum value: TYPE_SFIXED64 = 16;
507
+ */
508
+ SFIXED64 = 16,
509
+ /**
510
+ * Uses ZigZag encoding.
511
+ *
512
+ * @generated from protobuf enum value: TYPE_SINT32 = 17;
513
+ */
514
+ SINT32 = 17,
515
+ /**
516
+ * Uses ZigZag encoding.
517
+ *
518
+ * @generated from protobuf enum value: TYPE_SINT64 = 18;
519
+ */
520
+ SINT64 = 18
521
+ }
522
+ /**
523
+ * @generated from protobuf enum google.protobuf.FieldDescriptorProto.Label
524
+ */
525
+ export enum FieldDescriptorProto_Label {
526
+ /**
527
+ * @generated synthetic value - protobuf-ts requires all enums to have a 0 value
528
+ */
529
+ UNSPECIFIED$ = 0,
530
+ /**
531
+ * 0 is reserved for errors
532
+ *
533
+ * @generated from protobuf enum value: LABEL_OPTIONAL = 1;
534
+ */
535
+ OPTIONAL = 1,
536
+ /**
537
+ * @generated from protobuf enum value: LABEL_REPEATED = 3;
538
+ */
539
+ REPEATED = 3,
540
+ /**
541
+ * The required label is only allowed in google.protobuf. In proto3 and Editions
542
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
543
+ * can be used to get this behavior.
544
+ *
545
+ * @generated from protobuf enum value: LABEL_REQUIRED = 2;
546
+ */
547
+ REQUIRED = 2
548
+ }
549
+ /**
550
+ * Describes a oneof.
551
+ *
552
+ * @generated from protobuf message google.protobuf.OneofDescriptorProto
553
+ */
554
+ export interface OneofDescriptorProto {
555
+ /**
556
+ * @generated from protobuf field: optional string name = 1;
557
+ */
558
+ name?: string;
559
+ /**
560
+ * @generated from protobuf field: optional google.protobuf.OneofOptions options = 2;
561
+ */
562
+ options?: OneofOptions;
563
+ }
564
+ /**
565
+ * Describes an enum type.
566
+ *
567
+ * @generated from protobuf message google.protobuf.EnumDescriptorProto
568
+ */
569
+ export interface EnumDescriptorProto {
570
+ /**
571
+ * @generated from protobuf field: optional string name = 1;
572
+ */
573
+ name?: string;
574
+ /**
575
+ * @generated from protobuf field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
576
+ */
577
+ value: EnumValueDescriptorProto[];
578
+ /**
579
+ * @generated from protobuf field: optional google.protobuf.EnumOptions options = 3;
580
+ */
581
+ options?: EnumOptions;
582
+ /**
583
+ * Range of reserved numeric values. Reserved numeric values may not be used
584
+ * by enum values in the same enum declaration. Reserved ranges may not
585
+ * overlap.
586
+ *
587
+ * @generated from protobuf field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
588
+ */
589
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
590
+ /**
591
+ * Reserved enum value names, which may not be reused. A given name may only
592
+ * be reserved once.
593
+ *
594
+ * @generated from protobuf field: repeated string reserved_name = 5;
595
+ */
596
+ reservedName: string[];
597
+ }
598
+ /**
599
+ * Range of reserved numeric values. Reserved values may not be used by
600
+ * entries in the same enum. Reserved ranges may not overlap.
601
+ *
602
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
603
+ * is inclusive such that it can appropriately represent the entire int32
604
+ * domain.
605
+ *
606
+ * @generated from protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange
607
+ */
608
+ export interface EnumDescriptorProto_EnumReservedRange {
609
+ /**
610
+ * @generated from protobuf field: optional int32 start = 1;
611
+ */
612
+ start?: number; // Inclusive.
613
+ /**
614
+ * @generated from protobuf field: optional int32 end = 2;
615
+ */
616
+ end?: number; // Inclusive.
617
+ }
618
+ /**
619
+ * Describes a value within an enum.
620
+ *
621
+ * @generated from protobuf message google.protobuf.EnumValueDescriptorProto
622
+ */
623
+ export interface EnumValueDescriptorProto {
624
+ /**
625
+ * @generated from protobuf field: optional string name = 1;
626
+ */
627
+ name?: string;
628
+ /**
629
+ * @generated from protobuf field: optional int32 number = 2;
630
+ */
631
+ number?: number;
632
+ /**
633
+ * @generated from protobuf field: optional google.protobuf.EnumValueOptions options = 3;
634
+ */
635
+ options?: EnumValueOptions;
636
+ }
637
+ /**
638
+ * Describes a service.
639
+ *
640
+ * @generated from protobuf message google.protobuf.ServiceDescriptorProto
641
+ */
642
+ export interface ServiceDescriptorProto {
643
+ /**
644
+ * @generated from protobuf field: optional string name = 1;
645
+ */
646
+ name?: string;
647
+ /**
648
+ * @generated from protobuf field: repeated google.protobuf.MethodDescriptorProto method = 2;
649
+ */
650
+ method: MethodDescriptorProto[];
651
+ /**
652
+ * @generated from protobuf field: optional google.protobuf.ServiceOptions options = 3;
653
+ */
654
+ options?: ServiceOptions;
655
+ }
656
+ /**
657
+ * Describes a method of a service.
658
+ *
659
+ * @generated from protobuf message google.protobuf.MethodDescriptorProto
660
+ */
661
+ export interface MethodDescriptorProto {
662
+ /**
663
+ * @generated from protobuf field: optional string name = 1;
664
+ */
665
+ name?: string;
666
+ /**
667
+ * Input and output type names. These are resolved in the same way as
668
+ * FieldDescriptorProto.type_name, but must refer to a message type.
669
+ *
670
+ * @generated from protobuf field: optional string input_type = 2;
671
+ */
672
+ inputType?: string;
673
+ /**
674
+ * @generated from protobuf field: optional string output_type = 3;
675
+ */
676
+ outputType?: string;
677
+ /**
678
+ * @generated from protobuf field: optional google.protobuf.MethodOptions options = 4;
679
+ */
680
+ options?: MethodOptions;
681
+ /**
682
+ * Identifies if client streams multiple client messages
683
+ *
684
+ * @generated from protobuf field: optional bool client_streaming = 5;
685
+ */
686
+ clientStreaming?: boolean;
687
+ /**
688
+ * Identifies if server streams multiple server messages
689
+ *
690
+ * @generated from protobuf field: optional bool server_streaming = 6;
691
+ */
692
+ serverStreaming?: boolean;
693
+ }
694
+ // ===================================================================
695
+ // Options
696
+
697
+ // Each of the definitions above may have "options" attached. These are
698
+ // just annotations which may cause code to be generated slightly differently
699
+ // or may contain hints for code that manipulates protocol messages.
700
+ //
701
+ // Clients may define custom options as extensions of the *Options messages.
702
+ // These extensions may not yet be known at parsing time, so the parser cannot
703
+ // store the values in them. Instead it stores them in a field in the *Options
704
+ // message called uninterpreted_option. This field must have the same name
705
+ // across all *Options messages. We then use this field to populate the
706
+ // extensions when we build a descriptor, at which point all protos have been
707
+ // parsed and so all extensions are known.
708
+ //
709
+ // Extension numbers for custom options may be chosen as follows:
710
+ // * For options which will only be used within a single application or
711
+ // organization, or for experimental options, use field numbers 50000
712
+ // through 99999. It is up to you to ensure that you do not use the
713
+ // same number for multiple options.
714
+ // * For options which will be published and used publicly by multiple
715
+ // independent entities, e-mail protobuf-global-extension-registry@google.com
716
+ // to reserve extension numbers. Simply provide your project name (e.g.
717
+ // Objective-C plugin) and your project website (if available) -- there's no
718
+ // need to explain how you intend to use them. Usually you only need one
719
+ // extension number. You can declare multiple options with only one extension
720
+ // number by putting them in a sub-message. See the Custom Options section of
721
+ // the docs for examples:
722
+ // https://developers.google.com/protocol-buffers/docs/proto#options
723
+ // If this turns out to be popular, a web service will be set up
724
+ // to automatically assign option numbers.
725
+
726
+ /**
727
+ * @generated from protobuf message google.protobuf.FileOptions
728
+ */
729
+ export interface FileOptions {
730
+ /**
731
+ * Sets the Java package where classes generated from this .proto will be
732
+ * placed. By default, the proto package is used, but this is often
733
+ * inappropriate because proto packages do not normally start with backwards
734
+ * domain names.
735
+ *
736
+ * @generated from protobuf field: optional string java_package = 1;
737
+ */
738
+ javaPackage?: string;
739
+ /**
740
+ * Controls the name of the wrapper Java class generated for the .proto file.
741
+ * That class will always contain the .proto file's getDescriptor() method as
742
+ * well as any top-level extensions defined in the .proto file.
743
+ * If java_multiple_files is disabled, then all the other classes from the
744
+ * .proto file will be nested inside the single wrapper outer class.
745
+ *
746
+ * @generated from protobuf field: optional string java_outer_classname = 8;
747
+ */
748
+ javaOuterClassname?: string;
749
+ /**
750
+ * If enabled, then the Java code generator will generate a separate .java
751
+ * file for each top-level message, enum, and service defined in the .proto
752
+ * file. Thus, these types will *not* be nested inside the wrapper class
753
+ * named by java_outer_classname. However, the wrapper class will still be
754
+ * generated to contain the file's getDescriptor() method as well as any
755
+ * top-level extensions defined in the file.
756
+ *
757
+ * @generated from protobuf field: optional bool java_multiple_files = 10;
758
+ */
759
+ javaMultipleFiles?: boolean;
760
+ /**
761
+ * This option does nothing.
762
+ *
763
+ * @deprecated
764
+ * @generated from protobuf field: optional bool java_generate_equals_and_hash = 20 [deprecated = true];
765
+ */
766
+ javaGenerateEqualsAndHash?: boolean;
767
+ /**
768
+ * If set true, then the Java2 code generator will generate code that
769
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
770
+ * byte sequence to a string field.
771
+ * Message reflection will do the same.
772
+ * However, an extension field still accepts non-UTF-8 byte sequences.
773
+ * This option has no effect on when used with the lite runtime.
774
+ *
775
+ * @generated from protobuf field: optional bool java_string_check_utf8 = 27;
776
+ */
777
+ javaStringCheckUtf8?: boolean;
778
+ /**
779
+ * @generated from protobuf field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9;
780
+ */
781
+ optimizeFor?: FileOptions_OptimizeMode;
782
+ /**
783
+ * Sets the Go package where structs generated from this .proto will be
784
+ * placed. If omitted, the Go package will be derived from the following:
785
+ * - The basename of the package import path, if provided.
786
+ * - Otherwise, the package statement in the .proto file, if present.
787
+ * - Otherwise, the basename of the .proto file, without extension.
788
+ *
789
+ * @generated from protobuf field: optional string go_package = 11;
790
+ */
791
+ goPackage?: string;
792
+ /**
793
+ * Should generic services be generated in each language? "Generic" services
794
+ * are not specific to any particular RPC system. They are generated by the
795
+ * main code generators in each language (without additional plugins).
796
+ * Generic services were the only kind of service generation supported by
797
+ * early versions of google.protobuf.
798
+ *
799
+ * Generic services are now considered deprecated in favor of using plugins
800
+ * that generate code specific to your particular RPC system. Therefore,
801
+ * these default to false. Old code which depends on generic services should
802
+ * explicitly set them to true.
803
+ *
804
+ * @generated from protobuf field: optional bool cc_generic_services = 16;
805
+ */
806
+ ccGenericServices?: boolean;
807
+ /**
808
+ * @generated from protobuf field: optional bool java_generic_services = 17;
809
+ */
810
+ javaGenericServices?: boolean;
811
+ /**
812
+ * @generated from protobuf field: optional bool py_generic_services = 18;
813
+ */
814
+ pyGenericServices?: boolean;
815
+ /**
816
+ * Is this file deprecated?
817
+ * Depending on the target platform, this can emit Deprecated annotations
818
+ * for everything in the file, or it will be completely ignored; in the very
819
+ * least, this is a formalization for deprecating files.
820
+ *
821
+ * @generated from protobuf field: optional bool deprecated = 23;
822
+ */
823
+ deprecated?: boolean;
824
+ /**
825
+ * Enables the use of arenas for the proto messages in this file. This applies
826
+ * only to generated classes for C++.
827
+ *
828
+ * @generated from protobuf field: optional bool cc_enable_arenas = 31;
829
+ */
830
+ ccEnableArenas?: boolean;
831
+ /**
832
+ * Sets the objective c class prefix which is prepended to all objective c
833
+ * generated classes from this .proto. There is no default.
834
+ *
835
+ * @generated from protobuf field: optional string objc_class_prefix = 36;
836
+ */
837
+ objcClassPrefix?: string;
838
+ /**
839
+ * Namespace for generated classes; defaults to the package.
840
+ *
841
+ * @generated from protobuf field: optional string csharp_namespace = 37;
842
+ */
843
+ csharpNamespace?: string;
844
+ /**
845
+ * By default Swift generators will take the proto package and CamelCase it
846
+ * replacing '.' with underscore and use that to prefix the types/symbols
847
+ * defined. When this options is provided, they will use this value instead
848
+ * to prefix the types/symbols defined.
849
+ *
850
+ * @generated from protobuf field: optional string swift_prefix = 39;
851
+ */
852
+ swiftPrefix?: string;
853
+ /**
854
+ * Sets the php class prefix which is prepended to all php generated classes
855
+ * from this .proto. Default is empty.
856
+ *
857
+ * @generated from protobuf field: optional string php_class_prefix = 40;
858
+ */
859
+ phpClassPrefix?: string;
860
+ /**
861
+ * Use this option to change the namespace of php generated classes. Default
862
+ * is empty. When this option is empty, the package name will be used for
863
+ * determining the namespace.
864
+ *
865
+ * @generated from protobuf field: optional string php_namespace = 41;
866
+ */
867
+ phpNamespace?: string;
868
+ /**
869
+ * Use this option to change the namespace of php generated metadata classes.
870
+ * Default is empty. When this option is empty, the proto file name will be
871
+ * used for determining the namespace.
872
+ *
873
+ * @generated from protobuf field: optional string php_metadata_namespace = 44;
874
+ */
875
+ phpMetadataNamespace?: string;
876
+ /**
877
+ * Use this option to change the package of ruby generated classes. Default
878
+ * is empty. When this option is not set, the package name will be used for
879
+ * determining the ruby package.
880
+ *
881
+ * @generated from protobuf field: optional string ruby_package = 45;
882
+ */
883
+ rubyPackage?: string;
884
+ /**
885
+ * Any features defined in the specific edition.
886
+ *
887
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 50;
888
+ */
889
+ features?: FeatureSet;
890
+ /**
891
+ * The parser stores options it doesn't recognize here.
892
+ * See the documentation for the "Options" section above.
893
+ *
894
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
895
+ */
896
+ uninterpretedOption: UninterpretedOption[];
897
+ }
898
+ /**
899
+ * Generated classes can be optimized for speed or code size.
900
+ *
901
+ * @generated from protobuf enum google.protobuf.FileOptions.OptimizeMode
902
+ */
903
+ export enum FileOptions_OptimizeMode {
904
+ /**
905
+ * @generated synthetic value - protobuf-ts requires all enums to have a 0 value
906
+ */
907
+ UNSPECIFIED$ = 0,
908
+ /**
909
+ * Generate complete code for parsing, serialization,
910
+ *
911
+ * @generated from protobuf enum value: SPEED = 1;
912
+ */
913
+ SPEED = 1,
914
+ /**
915
+ * etc.
916
+ *
917
+ * Use ReflectionOps to implement these methods.
918
+ *
919
+ * @generated from protobuf enum value: CODE_SIZE = 2;
920
+ */
921
+ CODE_SIZE = 2,
922
+ /**
923
+ * Generate code using MessageLite and the lite runtime.
924
+ *
925
+ * @generated from protobuf enum value: LITE_RUNTIME = 3;
926
+ */
927
+ LITE_RUNTIME = 3
928
+ }
929
+ /**
930
+ * @generated from protobuf message google.protobuf.MessageOptions
931
+ */
932
+ export interface MessageOptions {
933
+ /**
934
+ * Set true to use the old proto1 MessageSet wire format for extensions.
935
+ * This is provided for backwards-compatibility with the MessageSet wire
936
+ * format. You should not use this for any other reason: It's less
937
+ * efficient, has fewer features, and is more complicated.
938
+ *
939
+ * The message must be defined exactly as follows:
940
+ * message Foo {
941
+ * option message_set_wire_format = true;
942
+ * extensions 4 to max;
943
+ * }
944
+ * Note that the message cannot have any defined fields; MessageSets only
945
+ * have extensions.
946
+ *
947
+ * All extensions of your type must be singular messages; e.g. they cannot
948
+ * be int32s, enums, or repeated messages.
949
+ *
950
+ * Because this is an option, the above two restrictions are not enforced by
951
+ * the protocol compiler.
952
+ *
953
+ * @generated from protobuf field: optional bool message_set_wire_format = 1;
954
+ */
955
+ messageSetWireFormat?: boolean;
956
+ /**
957
+ * Disables the generation of the standard "descriptor()" accessor, which can
958
+ * conflict with a field of the same name. This is meant to make migration
959
+ * from proto1 easier; new code should avoid fields named "descriptor".
960
+ *
961
+ * @generated from protobuf field: optional bool no_standard_descriptor_accessor = 2;
962
+ */
963
+ noStandardDescriptorAccessor?: boolean;
964
+ /**
965
+ * Is this message deprecated?
966
+ * Depending on the target platform, this can emit Deprecated annotations
967
+ * for the message, or it will be completely ignored; in the very least,
968
+ * this is a formalization for deprecating messages.
969
+ *
970
+ * @generated from protobuf field: optional bool deprecated = 3;
971
+ */
972
+ deprecated?: boolean;
973
+ /**
974
+ * Whether the message is an automatically generated map entry type for the
975
+ * maps field.
976
+ *
977
+ * For maps fields:
978
+ * map<KeyType, ValueType> map_field = 1;
979
+ * The parsed descriptor looks like:
980
+ * message MapFieldEntry {
981
+ * option map_entry = true;
982
+ * optional KeyType key = 1;
983
+ * optional ValueType value = 2;
984
+ * }
985
+ * repeated MapFieldEntry map_field = 1;
986
+ *
987
+ * Implementations may choose not to generate the map_entry=true message, but
988
+ * use a native map in the target language to hold the keys and values.
989
+ * The reflection APIs in such implementations still need to work as
990
+ * if the field is a repeated message field.
991
+ *
992
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
993
+ * instead. The option should only be implicitly set by the proto compiler
994
+ * parser.
995
+ *
996
+ * @generated from protobuf field: optional bool map_entry = 7;
997
+ */
998
+ mapEntry?: boolean;
999
+ /**
1000
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
1001
+ * and strips underscored from the fields before comparison in proto3 only.
1002
+ * The new behavior takes `json_name` into account and applies to proto2 as
1003
+ * well.
1004
+ *
1005
+ * This should only be used as a temporary measure against broken builds due
1006
+ * to the change in behavior for JSON field name conflicts.
1007
+ *
1008
+ * TODO This is legacy behavior we plan to remove once downstream
1009
+ * teams have had time to migrate.
1010
+ *
1011
+ * @deprecated
1012
+ * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
1013
+ */
1014
+ deprecatedLegacyJsonFieldConflicts?: boolean;
1015
+ /**
1016
+ * Any features defined in the specific edition.
1017
+ *
1018
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 12;
1019
+ */
1020
+ features?: FeatureSet;
1021
+ /**
1022
+ * The parser stores options it doesn't recognize here. See above.
1023
+ *
1024
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1025
+ */
1026
+ uninterpretedOption: UninterpretedOption[];
1027
+ }
1028
+ /**
1029
+ * @generated from protobuf message google.protobuf.FieldOptions
1030
+ */
1031
+ export interface FieldOptions {
1032
+ /**
1033
+ * The ctype option instructs the C++ code generator to use a different
1034
+ * representation of the field than it normally would. See the specific
1035
+ * options below. This option is only implemented to support use of
1036
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
1037
+ * type "bytes" in the open source release -- sorry, we'll try to include
1038
+ * other types in a future version!
1039
+ *
1040
+ * @generated from protobuf field: optional google.protobuf.FieldOptions.CType ctype = 1;
1041
+ */
1042
+ ctype?: FieldOptions_CType;
1043
+ /**
1044
+ * The packed option can be enabled for repeated primitive fields to enable
1045
+ * a more efficient representation on the wire. Rather than repeatedly
1046
+ * writing the tag and type for each element, the entire array is encoded as
1047
+ * a single length-delimited blob. In proto3, only explicit setting it to
1048
+ * false will avoid using packed encoding. This option is prohibited in
1049
+ * Editions, but the `repeated_field_encoding` feature can be used to control
1050
+ * the behavior.
1051
+ *
1052
+ * @generated from protobuf field: optional bool packed = 2;
1053
+ */
1054
+ packed?: boolean;
1055
+ /**
1056
+ * The jstype option determines the JavaScript type used for values of the
1057
+ * field. The option is permitted only for 64 bit integral and fixed types
1058
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1059
+ * is represented as JavaScript string, which avoids loss of precision that
1060
+ * can happen when a large value is converted to a floating point JavaScript.
1061
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1062
+ * use the JavaScript "number" type. The behavior of the default option
1063
+ * JS_NORMAL is implementation dependent.
1064
+ *
1065
+ * This option is an enum to permit additional types to be added, e.g.
1066
+ * goog.math.Integer.
1067
+ *
1068
+ * @generated from protobuf field: optional google.protobuf.FieldOptions.JSType jstype = 6;
1069
+ */
1070
+ jstype?: FieldOptions_JSType;
1071
+ /**
1072
+ * Should this field be parsed lazily? Lazy applies only to message-type
1073
+ * fields. It means that when the outer message is initially parsed, the
1074
+ * inner message's contents will not be parsed but instead stored in encoded
1075
+ * form. The inner message will actually be parsed when it is first accessed.
1076
+ *
1077
+ * This is only a hint. Implementations are free to choose whether to use
1078
+ * eager or lazy parsing regardless of the value of this option. However,
1079
+ * setting this option true suggests that the protocol author believes that
1080
+ * using lazy parsing on this field is worth the additional bookkeeping
1081
+ * overhead typically needed to implement it.
1082
+ *
1083
+ * This option does not affect the public interface of any generated code;
1084
+ * all method signatures remain the same. Furthermore, thread-safety of the
1085
+ * interface is not affected by this option; const methods remain safe to
1086
+ * call from multiple threads concurrently, while non-const methods continue
1087
+ * to require exclusive access.
1088
+ *
1089
+ * Note that lazy message fields are still eagerly verified to check
1090
+ * ill-formed wireformat or missing required fields. Calling IsInitialized()
1091
+ * on the outer message would fail if the inner message has missing required
1092
+ * fields. Failed verification would result in parsing failure (except when
1093
+ * uninitialized messages are acceptable).
1094
+ *
1095
+ * @generated from protobuf field: optional bool lazy = 5;
1096
+ */
1097
+ lazy?: boolean;
1098
+ /**
1099
+ * unverified_lazy does no correctness checks on the byte stream. This should
1100
+ * only be used where lazy with verification is prohibitive for performance
1101
+ * reasons.
1102
+ *
1103
+ * @generated from protobuf field: optional bool unverified_lazy = 15;
1104
+ */
1105
+ unverifiedLazy?: boolean;
1106
+ /**
1107
+ * Is this field deprecated?
1108
+ * Depending on the target platform, this can emit Deprecated annotations
1109
+ * for accessors, or it will be completely ignored; in the very least, this
1110
+ * is a formalization for deprecating fields.
1111
+ *
1112
+ * @generated from protobuf field: optional bool deprecated = 3;
1113
+ */
1114
+ deprecated?: boolean;
1115
+ /**
1116
+ * For Google-internal migration only. Do not use.
1117
+ *
1118
+ * @generated from protobuf field: optional bool weak = 10;
1119
+ */
1120
+ weak?: boolean;
1121
+ /**
1122
+ * Indicate that the field value should not be printed out when using debug
1123
+ * formats, e.g. when the field contains sensitive credentials.
1124
+ *
1125
+ * @generated from protobuf field: optional bool debug_redact = 16;
1126
+ */
1127
+ debugRedact?: boolean;
1128
+ /**
1129
+ * @generated from protobuf field: optional google.protobuf.FieldOptions.OptionRetention retention = 17;
1130
+ */
1131
+ retention?: FieldOptions_OptionRetention;
1132
+ /**
1133
+ * @generated from protobuf field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19;
1134
+ */
1135
+ targets: FieldOptions_OptionTargetType[];
1136
+ /**
1137
+ * @generated from protobuf field: repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20;
1138
+ */
1139
+ editionDefaults: FieldOptions_EditionDefault[];
1140
+ /**
1141
+ * Any features defined in the specific edition.
1142
+ *
1143
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 21;
1144
+ */
1145
+ features?: FeatureSet;
1146
+ /**
1147
+ * The parser stores options it doesn't recognize here. See above.
1148
+ *
1149
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1150
+ */
1151
+ uninterpretedOption: UninterpretedOption[];
1152
+ }
1153
+ /**
1154
+ * @generated from protobuf message google.protobuf.FieldOptions.EditionDefault
1155
+ */
1156
+ export interface FieldOptions_EditionDefault {
1157
+ /**
1158
+ * @generated from protobuf field: optional google.protobuf.Edition edition = 3;
1159
+ */
1160
+ edition?: Edition;
1161
+ /**
1162
+ * @generated from protobuf field: optional string value = 2;
1163
+ */
1164
+ value?: string; // Textproto value.
1165
+ }
1166
+ /**
1167
+ * @generated from protobuf enum google.protobuf.FieldOptions.CType
1168
+ */
1169
+ export enum FieldOptions_CType {
1170
+ /**
1171
+ * Default mode.
1172
+ *
1173
+ * @generated from protobuf enum value: STRING = 0;
1174
+ */
1175
+ STRING = 0,
1176
+ /**
1177
+ * The option [ctype=CORD] may be applied to a non-repeated field of type
1178
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
1179
+ * instead of a string. For very large strings, this may reduce memory
1180
+ * fragmentation. It may also allow better performance when parsing from a
1181
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
1182
+ * alias the original buffer.
1183
+ *
1184
+ * @generated from protobuf enum value: CORD = 1;
1185
+ */
1186
+ CORD = 1,
1187
+ /**
1188
+ * @generated from protobuf enum value: STRING_PIECE = 2;
1189
+ */
1190
+ STRING_PIECE = 2
1191
+ }
1192
+ /**
1193
+ * @generated from protobuf enum google.protobuf.FieldOptions.JSType
1194
+ */
1195
+ export enum FieldOptions_JSType {
1196
+ /**
1197
+ * Use the default type.
1198
+ *
1199
+ * @generated from protobuf enum value: JS_NORMAL = 0;
1200
+ */
1201
+ JS_NORMAL = 0,
1202
+ /**
1203
+ * Use JavaScript strings.
1204
+ *
1205
+ * @generated from protobuf enum value: JS_STRING = 1;
1206
+ */
1207
+ JS_STRING = 1,
1208
+ /**
1209
+ * Use JavaScript numbers.
1210
+ *
1211
+ * @generated from protobuf enum value: JS_NUMBER = 2;
1212
+ */
1213
+ JS_NUMBER = 2
1214
+ }
1215
+ /**
1216
+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.
1217
+ * Note: as of January 2023, support for this is in progress and does not yet
1218
+ * have an effect (b/264593489).
1219
+ *
1220
+ * @generated from protobuf enum google.protobuf.FieldOptions.OptionRetention
1221
+ */
1222
+ export enum FieldOptions_OptionRetention {
1223
+ /**
1224
+ * @generated from protobuf enum value: RETENTION_UNKNOWN = 0;
1225
+ */
1226
+ RETENTION_UNKNOWN = 0,
1227
+ /**
1228
+ * @generated from protobuf enum value: RETENTION_RUNTIME = 1;
1229
+ */
1230
+ RETENTION_RUNTIME = 1,
1231
+ /**
1232
+ * @generated from protobuf enum value: RETENTION_SOURCE = 2;
1233
+ */
1234
+ RETENTION_SOURCE = 2
1235
+ }
1236
+ /**
1237
+ * This indicates the types of entities that the field may apply to when used
1238
+ * as an option. If it is unset, then the field may be freely used as an
1239
+ * option on any kind of entity. Note: as of January 2023, support for this is
1240
+ * in progress and does not yet have an effect (b/264593489).
1241
+ *
1242
+ * @generated from protobuf enum google.protobuf.FieldOptions.OptionTargetType
1243
+ */
1244
+ export enum FieldOptions_OptionTargetType {
1245
+ /**
1246
+ * @generated from protobuf enum value: TARGET_TYPE_UNKNOWN = 0;
1247
+ */
1248
+ TARGET_TYPE_UNKNOWN = 0,
1249
+ /**
1250
+ * @generated from protobuf enum value: TARGET_TYPE_FILE = 1;
1251
+ */
1252
+ TARGET_TYPE_FILE = 1,
1253
+ /**
1254
+ * @generated from protobuf enum value: TARGET_TYPE_EXTENSION_RANGE = 2;
1255
+ */
1256
+ TARGET_TYPE_EXTENSION_RANGE = 2,
1257
+ /**
1258
+ * @generated from protobuf enum value: TARGET_TYPE_MESSAGE = 3;
1259
+ */
1260
+ TARGET_TYPE_MESSAGE = 3,
1261
+ /**
1262
+ * @generated from protobuf enum value: TARGET_TYPE_FIELD = 4;
1263
+ */
1264
+ TARGET_TYPE_FIELD = 4,
1265
+ /**
1266
+ * @generated from protobuf enum value: TARGET_TYPE_ONEOF = 5;
1267
+ */
1268
+ TARGET_TYPE_ONEOF = 5,
1269
+ /**
1270
+ * @generated from protobuf enum value: TARGET_TYPE_ENUM = 6;
1271
+ */
1272
+ TARGET_TYPE_ENUM = 6,
1273
+ /**
1274
+ * @generated from protobuf enum value: TARGET_TYPE_ENUM_ENTRY = 7;
1275
+ */
1276
+ TARGET_TYPE_ENUM_ENTRY = 7,
1277
+ /**
1278
+ * @generated from protobuf enum value: TARGET_TYPE_SERVICE = 8;
1279
+ */
1280
+ TARGET_TYPE_SERVICE = 8,
1281
+ /**
1282
+ * @generated from protobuf enum value: TARGET_TYPE_METHOD = 9;
1283
+ */
1284
+ TARGET_TYPE_METHOD = 9
1285
+ }
1286
+ /**
1287
+ * @generated from protobuf message google.protobuf.OneofOptions
1288
+ */
1289
+ export interface OneofOptions {
1290
+ /**
1291
+ * Any features defined in the specific edition.
1292
+ *
1293
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 1;
1294
+ */
1295
+ features?: FeatureSet;
1296
+ /**
1297
+ * The parser stores options it doesn't recognize here. See above.
1298
+ *
1299
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1300
+ */
1301
+ uninterpretedOption: UninterpretedOption[];
1302
+ }
1303
+ /**
1304
+ * @generated from protobuf message google.protobuf.EnumOptions
1305
+ */
1306
+ export interface EnumOptions {
1307
+ /**
1308
+ * Set this option to true to allow mapping different tag names to the same
1309
+ * value.
1310
+ *
1311
+ * @generated from protobuf field: optional bool allow_alias = 2;
1312
+ */
1313
+ allowAlias?: boolean;
1314
+ /**
1315
+ * Is this enum deprecated?
1316
+ * Depending on the target platform, this can emit Deprecated annotations
1317
+ * for the enum, or it will be completely ignored; in the very least, this
1318
+ * is a formalization for deprecating enums.
1319
+ *
1320
+ * @generated from protobuf field: optional bool deprecated = 3;
1321
+ */
1322
+ deprecated?: boolean;
1323
+ /**
1324
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
1325
+ * and strips underscored from the fields before comparison in proto3 only.
1326
+ * The new behavior takes `json_name` into account and applies to proto2 as
1327
+ * well.
1328
+ * TODO Remove this legacy behavior once downstream teams have
1329
+ * had time to migrate.
1330
+ *
1331
+ * @deprecated
1332
+ * @generated from protobuf field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
1333
+ */
1334
+ deprecatedLegacyJsonFieldConflicts?: boolean;
1335
+ /**
1336
+ * Any features defined in the specific edition.
1337
+ *
1338
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 7;
1339
+ */
1340
+ features?: FeatureSet;
1341
+ /**
1342
+ * The parser stores options it doesn't recognize here. See above.
1343
+ *
1344
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1345
+ */
1346
+ uninterpretedOption: UninterpretedOption[];
1347
+ }
1348
+ /**
1349
+ * @generated from protobuf message google.protobuf.EnumValueOptions
1350
+ */
1351
+ export interface EnumValueOptions {
1352
+ /**
1353
+ * Is this enum value deprecated?
1354
+ * Depending on the target platform, this can emit Deprecated annotations
1355
+ * for the enum value, or it will be completely ignored; in the very least,
1356
+ * this is a formalization for deprecating enum values.
1357
+ *
1358
+ * @generated from protobuf field: optional bool deprecated = 1;
1359
+ */
1360
+ deprecated?: boolean;
1361
+ /**
1362
+ * Any features defined in the specific edition.
1363
+ *
1364
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2;
1365
+ */
1366
+ features?: FeatureSet;
1367
+ /**
1368
+ * Indicate that fields annotated with this enum value should not be printed
1369
+ * out when using debug formats, e.g. when the field contains sensitive
1370
+ * credentials.
1371
+ *
1372
+ * @generated from protobuf field: optional bool debug_redact = 3;
1373
+ */
1374
+ debugRedact?: boolean;
1375
+ /**
1376
+ * The parser stores options it doesn't recognize here. See above.
1377
+ *
1378
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1379
+ */
1380
+ uninterpretedOption: UninterpretedOption[];
1381
+ }
1382
+ /**
1383
+ * @generated from protobuf message google.protobuf.ServiceOptions
1384
+ */
1385
+ export interface ServiceOptions {
1386
+ /**
1387
+ * Any features defined in the specific edition.
1388
+ *
1389
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 34;
1390
+ */
1391
+ features?: FeatureSet;
1392
+ // Note: Field numbers 1 through 32 are reserved for Google's internal RPC
1393
+ // framework. We apologize for hoarding these numbers to ourselves, but
1394
+ // we were already using them long before we decided to release Protocol
1395
+ // Buffers.
1396
+
1397
+ /**
1398
+ * Is this service deprecated?
1399
+ * Depending on the target platform, this can emit Deprecated annotations
1400
+ * for the service, or it will be completely ignored; in the very least,
1401
+ * this is a formalization for deprecating services.
1402
+ *
1403
+ * @generated from protobuf field: optional bool deprecated = 33;
1404
+ */
1405
+ deprecated?: boolean;
1406
+ /**
1407
+ * The parser stores options it doesn't recognize here. See above.
1408
+ *
1409
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1410
+ */
1411
+ uninterpretedOption: UninterpretedOption[];
1412
+ }
1413
+ /**
1414
+ * @generated from protobuf message google.protobuf.MethodOptions
1415
+ */
1416
+ export interface MethodOptions {
1417
+ // Note: Field numbers 1 through 32 are reserved for Google's internal RPC
1418
+ // framework. We apologize for hoarding these numbers to ourselves, but
1419
+ // we were already using them long before we decided to release Protocol
1420
+ // Buffers.
1421
+
1422
+ /**
1423
+ * Is this method deprecated?
1424
+ * Depending on the target platform, this can emit Deprecated annotations
1425
+ * for the method, or it will be completely ignored; in the very least,
1426
+ * this is a formalization for deprecating methods.
1427
+ *
1428
+ * @generated from protobuf field: optional bool deprecated = 33;
1429
+ */
1430
+ deprecated?: boolean;
1431
+ /**
1432
+ * @generated from protobuf field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34;
1433
+ */
1434
+ idempotencyLevel?: MethodOptions_IdempotencyLevel;
1435
+ /**
1436
+ * Any features defined in the specific edition.
1437
+ *
1438
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 35;
1439
+ */
1440
+ features?: FeatureSet;
1441
+ /**
1442
+ * The parser stores options it doesn't recognize here. See above.
1443
+ *
1444
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1445
+ */
1446
+ uninterpretedOption: UninterpretedOption[];
1447
+ }
1448
+ /**
1449
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
1450
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
1451
+ * methods, and PUT verb for idempotent methods instead of the default POST.
1452
+ *
1453
+ * @generated from protobuf enum google.protobuf.MethodOptions.IdempotencyLevel
1454
+ */
1455
+ export enum MethodOptions_IdempotencyLevel {
1456
+ /**
1457
+ * @generated from protobuf enum value: IDEMPOTENCY_UNKNOWN = 0;
1458
+ */
1459
+ IDEMPOTENCY_UNKNOWN = 0,
1460
+ /**
1461
+ * implies idempotent
1462
+ *
1463
+ * @generated from protobuf enum value: NO_SIDE_EFFECTS = 1;
1464
+ */
1465
+ NO_SIDE_EFFECTS = 1,
1466
+ /**
1467
+ * idempotent, but may have side effects
1468
+ *
1469
+ * @generated from protobuf enum value: IDEMPOTENT = 2;
1470
+ */
1471
+ IDEMPOTENT = 2
1472
+ }
1473
+ /**
1474
+ * A message representing a option the parser does not recognize. This only
1475
+ * appears in options protos created by the compiler::Parser class.
1476
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1477
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1478
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1479
+ * in them.
1480
+ *
1481
+ * @generated from protobuf message google.protobuf.UninterpretedOption
1482
+ */
1483
+ export interface UninterpretedOption {
1484
+ /**
1485
+ * @generated from protobuf field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1486
+ */
1487
+ name: UninterpretedOption_NamePart[];
1488
+ /**
1489
+ * The value of the uninterpreted option, in whatever type the tokenizer
1490
+ * identified it as during parsing. Exactly one of these should be set.
1491
+ *
1492
+ * @generated from protobuf field: optional string identifier_value = 3;
1493
+ */
1494
+ identifierValue?: string;
1495
+ /**
1496
+ * @generated from protobuf field: optional uint64 positive_int_value = 4;
1497
+ */
1498
+ positiveIntValue?: bigint;
1499
+ /**
1500
+ * @generated from protobuf field: optional int64 negative_int_value = 5;
1501
+ */
1502
+ negativeIntValue?: bigint;
1503
+ /**
1504
+ * @generated from protobuf field: optional double double_value = 6;
1505
+ */
1506
+ doubleValue?: number;
1507
+ /**
1508
+ * @generated from protobuf field: optional bytes string_value = 7;
1509
+ */
1510
+ stringValue?: Uint8Array;
1511
+ /**
1512
+ * @generated from protobuf field: optional string aggregate_value = 8;
1513
+ */
1514
+ aggregateValue?: string;
1515
+ }
1516
+ /**
1517
+ * The name of the uninterpreted option. Each string represents a segment in
1518
+ * a dot-separated name. is_extension is true iff a segment represents an
1519
+ * extension (denoted with parentheses in options specs in .proto files).
1520
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
1521
+ * "foo.(bar.baz).moo".
1522
+ *
1523
+ * @generated from protobuf message google.protobuf.UninterpretedOption.NamePart
1524
+ */
1525
+ export interface UninterpretedOption_NamePart {
1526
+ /**
1527
+ * @generated from protobuf field: string name_part = 1;
1528
+ */
1529
+ namePart: string;
1530
+ /**
1531
+ * @generated from protobuf field: bool is_extension = 2;
1532
+ */
1533
+ isExtension: boolean;
1534
+ }
1535
+ // ===================================================================
1536
+ // Features
1537
+
1538
+ /**
1539
+ * TODO Enums in C++ gencode (and potentially other languages) are
1540
+ * not well scoped. This means that each of the feature enums below can clash
1541
+ * with each other. The short names we've chosen maximize call-site
1542
+ * readability, but leave us very open to this scenario. A future feature will
1543
+ * be designed and implemented to handle this, hopefully before we ever hit a
1544
+ * conflict here.
1545
+ *
1546
+ * @generated from protobuf message google.protobuf.FeatureSet
1547
+ */
1548
+ export interface FeatureSet {
1549
+ /**
1550
+ * @generated from protobuf field: optional google.protobuf.FeatureSet.FieldPresence field_presence = 1;
1551
+ */
1552
+ fieldPresence?: FeatureSet_FieldPresence;
1553
+ /**
1554
+ * @generated from protobuf field: optional google.protobuf.FeatureSet.EnumType enum_type = 2;
1555
+ */
1556
+ enumType?: FeatureSet_EnumType;
1557
+ /**
1558
+ * @generated from protobuf field: optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3;
1559
+ */
1560
+ repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding;
1561
+ /**
1562
+ * @generated from protobuf field: optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4;
1563
+ */
1564
+ utf8Validation?: FeatureSet_Utf8Validation;
1565
+ /**
1566
+ * @generated from protobuf field: optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5;
1567
+ */
1568
+ messageEncoding?: FeatureSet_MessageEncoding;
1569
+ /**
1570
+ * @generated from protobuf field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
1571
+ */
1572
+ jsonFormat?: FeatureSet_JsonFormat;
1573
+ }
1574
+ /**
1575
+ * @generated from protobuf enum google.protobuf.FeatureSet.FieldPresence
1576
+ */
1577
+ export enum FeatureSet_FieldPresence {
1578
+ /**
1579
+ * @generated from protobuf enum value: FIELD_PRESENCE_UNKNOWN = 0;
1580
+ */
1581
+ FIELD_PRESENCE_UNKNOWN = 0,
1582
+ /**
1583
+ * @generated from protobuf enum value: EXPLICIT = 1;
1584
+ */
1585
+ EXPLICIT = 1,
1586
+ /**
1587
+ * @generated from protobuf enum value: IMPLICIT = 2;
1588
+ */
1589
+ IMPLICIT = 2,
1590
+ /**
1591
+ * @generated from protobuf enum value: LEGACY_REQUIRED = 3;
1592
+ */
1593
+ LEGACY_REQUIRED = 3
1594
+ }
1595
+ /**
1596
+ * @generated from protobuf enum google.protobuf.FeatureSet.EnumType
1597
+ */
1598
+ export enum FeatureSet_EnumType {
1599
+ /**
1600
+ * @generated from protobuf enum value: ENUM_TYPE_UNKNOWN = 0;
1601
+ */
1602
+ ENUM_TYPE_UNKNOWN = 0,
1603
+ /**
1604
+ * @generated from protobuf enum value: OPEN = 1;
1605
+ */
1606
+ OPEN = 1,
1607
+ /**
1608
+ * @generated from protobuf enum value: CLOSED = 2;
1609
+ */
1610
+ CLOSED = 2
1611
+ }
1612
+ /**
1613
+ * @generated from protobuf enum google.protobuf.FeatureSet.RepeatedFieldEncoding
1614
+ */
1615
+ export enum FeatureSet_RepeatedFieldEncoding {
1616
+ /**
1617
+ * @generated from protobuf enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0;
1618
+ */
1619
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
1620
+ /**
1621
+ * @generated from protobuf enum value: PACKED = 1;
1622
+ */
1623
+ PACKED = 1,
1624
+ /**
1625
+ * @generated from protobuf enum value: EXPANDED = 2;
1626
+ */
1627
+ EXPANDED = 2
1628
+ }
1629
+ /**
1630
+ * @generated from protobuf enum google.protobuf.FeatureSet.Utf8Validation
1631
+ */
1632
+ export enum FeatureSet_Utf8Validation {
1633
+ /**
1634
+ * @generated from protobuf enum value: UTF8_VALIDATION_UNKNOWN = 0;
1635
+ */
1636
+ UTF8_VALIDATION_UNKNOWN = 0,
1637
+ /**
1638
+ * @generated from protobuf enum value: VERIFY = 2;
1639
+ */
1640
+ VERIFY = 2,
1641
+ /**
1642
+ * @generated from protobuf enum value: NONE = 3;
1643
+ */
1644
+ NONE = 3
1645
+ }
1646
+ /**
1647
+ * @generated from protobuf enum google.protobuf.FeatureSet.MessageEncoding
1648
+ */
1649
+ export enum FeatureSet_MessageEncoding {
1650
+ /**
1651
+ * @generated from protobuf enum value: MESSAGE_ENCODING_UNKNOWN = 0;
1652
+ */
1653
+ MESSAGE_ENCODING_UNKNOWN = 0,
1654
+ /**
1655
+ * @generated from protobuf enum value: LENGTH_PREFIXED = 1;
1656
+ */
1657
+ LENGTH_PREFIXED = 1,
1658
+ /**
1659
+ * @generated from protobuf enum value: DELIMITED = 2;
1660
+ */
1661
+ DELIMITED = 2
1662
+ }
1663
+ /**
1664
+ * @generated from protobuf enum google.protobuf.FeatureSet.JsonFormat
1665
+ */
1666
+ export enum FeatureSet_JsonFormat {
1667
+ /**
1668
+ * @generated from protobuf enum value: JSON_FORMAT_UNKNOWN = 0;
1669
+ */
1670
+ JSON_FORMAT_UNKNOWN = 0,
1671
+ /**
1672
+ * @generated from protobuf enum value: ALLOW = 1;
1673
+ */
1674
+ ALLOW = 1,
1675
+ /**
1676
+ * @generated from protobuf enum value: LEGACY_BEST_EFFORT = 2;
1677
+ */
1678
+ LEGACY_BEST_EFFORT = 2
1679
+ }
1680
+ /**
1681
+ * A compiled specification for the defaults of a set of features. These
1682
+ * messages are generated from FeatureSet extensions and can be used to seed
1683
+ * feature resolution. The resolution with this object becomes a simple search
1684
+ * for the closest matching edition, followed by proto merges.
1685
+ *
1686
+ * @generated from protobuf message google.protobuf.FeatureSetDefaults
1687
+ */
1688
+ export interface FeatureSetDefaults {
1689
+ /**
1690
+ * @generated from protobuf field: repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
1691
+ */
1692
+ defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
1693
+ /**
1694
+ * The minimum supported edition (inclusive) when this was constructed.
1695
+ * Editions before this will not have defaults.
1696
+ *
1697
+ * @generated from protobuf field: optional google.protobuf.Edition minimum_edition = 4;
1698
+ */
1699
+ minimumEdition?: Edition;
1700
+ /**
1701
+ * The maximum known edition (inclusive) when this was constructed. Editions
1702
+ * after this will not have reliable defaults.
1703
+ *
1704
+ * @generated from protobuf field: optional google.protobuf.Edition maximum_edition = 5;
1705
+ */
1706
+ maximumEdition?: Edition;
1707
+ }
1708
+ /**
1709
+ * A map from every known edition with a unique set of defaults to its
1710
+ * defaults. Not all editions may be contained here. For a given edition,
1711
+ * the defaults at the closest matching edition ordered at or before it should
1712
+ * be used. This field must be in strict ascending order by edition.
1713
+ *
1714
+ * @generated from protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
1715
+ */
1716
+ export interface FeatureSetDefaults_FeatureSetEditionDefault {
1717
+ /**
1718
+ * @generated from protobuf field: optional google.protobuf.Edition edition = 3;
1719
+ */
1720
+ edition?: Edition;
1721
+ /**
1722
+ * @generated from protobuf field: optional google.protobuf.FeatureSet features = 2;
1723
+ */
1724
+ features?: FeatureSet;
1725
+ }
1726
+ // ===================================================================
1727
+ // Optional source code info
1728
+
1729
+ /**
1730
+ * Encapsulates information about the original source file from which a
1731
+ * FileDescriptorProto was generated.
1732
+ *
1733
+ * @generated from protobuf message google.protobuf.SourceCodeInfo
1734
+ */
1735
+ export interface SourceCodeInfo {
1736
+ /**
1737
+ * A Location identifies a piece of source code in a .proto file which
1738
+ * corresponds to a particular definition. This information is intended
1739
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1740
+ * tools.
1741
+ *
1742
+ * For example, say we have a file like:
1743
+ * message Foo {
1744
+ * optional string foo = 1;
1745
+ * }
1746
+ * Let's look at just the field definition:
1747
+ * optional string foo = 1;
1748
+ * ^ ^^ ^^ ^ ^^^
1749
+ * a bc de f ghi
1750
+ * We have the following locations:
1751
+ * span path represents
1752
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1753
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1754
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1755
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1756
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1757
+ *
1758
+ * Notes:
1759
+ * - A location may refer to a repeated field itself (i.e. not to any
1760
+ * particular index within it). This is used whenever a set of elements are
1761
+ * logically enclosed in a single code segment. For example, an entire
1762
+ * extend block (possibly containing multiple extension definitions) will
1763
+ * have an outer location whose path refers to the "extensions" repeated
1764
+ * field without an index.
1765
+ * - Multiple locations may have the same path. This happens when a single
1766
+ * logical declaration is spread out across multiple places. The most
1767
+ * obvious example is the "extend" block again -- there may be multiple
1768
+ * extend blocks in the same scope, each of which will have the same path.
1769
+ * - A location's span is not always a subset of its parent's span. For
1770
+ * example, the "extendee" of an extension declaration appears at the
1771
+ * beginning of the "extend" block and is shared by all extensions within
1772
+ * the block.
1773
+ * - Just because a location's span is a subset of some other location's span
1774
+ * does not mean that it is a descendant. For example, a "group" defines
1775
+ * both a type and a field in a single declaration. Thus, the locations
1776
+ * corresponding to the type and field and their components will overlap.
1777
+ * - Code which tries to interpret locations should probably be designed to
1778
+ * ignore those that it doesn't understand, as more types of locations could
1779
+ * be recorded in the future.
1780
+ *
1781
+ * @generated from protobuf field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1782
+ */
1783
+ location: SourceCodeInfo_Location[];
1784
+ }
1785
+ /**
1786
+ * @generated from protobuf message google.protobuf.SourceCodeInfo.Location
1787
+ */
1788
+ export interface SourceCodeInfo_Location {
1789
+ /**
1790
+ * Identifies which part of the FileDescriptorProto was defined at this
1791
+ * location.
1792
+ *
1793
+ * Each element is a field number or an index. They form a path from
1794
+ * the root FileDescriptorProto to the place where the definition appears.
1795
+ * For example, this path:
1796
+ * [ 4, 3, 2, 7, 1 ]
1797
+ * refers to:
1798
+ * file.message_type(3) // 4, 3
1799
+ * .field(7) // 2, 7
1800
+ * .name() // 1
1801
+ * This is because FileDescriptorProto.message_type has field number 4:
1802
+ * repeated DescriptorProto message_type = 4;
1803
+ * and DescriptorProto.field has field number 2:
1804
+ * repeated FieldDescriptorProto field = 2;
1805
+ * and FieldDescriptorProto.name has field number 1:
1806
+ * optional string name = 1;
1807
+ *
1808
+ * Thus, the above path gives the location of a field name. If we removed
1809
+ * the last element:
1810
+ * [ 4, 3, 2, 7 ]
1811
+ * this path refers to the whole field declaration (from the beginning
1812
+ * of the label to the terminating semicolon).
1813
+ *
1814
+ * @generated from protobuf field: repeated int32 path = 1 [packed = true];
1815
+ */
1816
+ path: number[];
1817
+ /**
1818
+ * Always has exactly three or four elements: start line, start column,
1819
+ * end line (optional, otherwise assumed same as start line), end column.
1820
+ * These are packed into a single field for efficiency. Note that line
1821
+ * and column numbers are zero-based -- typically you will want to add
1822
+ * 1 to each before displaying to a user.
1823
+ *
1824
+ * @generated from protobuf field: repeated int32 span = 2 [packed = true];
1825
+ */
1826
+ span: number[];
1827
+ /**
1828
+ * If this SourceCodeInfo represents a complete declaration, these are any
1829
+ * comments appearing before and after the declaration which appear to be
1830
+ * attached to the declaration.
1831
+ *
1832
+ * A series of line comments appearing on consecutive lines, with no other
1833
+ * tokens appearing on those lines, will be treated as a single comment.
1834
+ *
1835
+ * leading_detached_comments will keep paragraphs of comments that appear
1836
+ * before (but not connected to) the current element. Each paragraph,
1837
+ * separated by empty lines, will be one comment element in the repeated
1838
+ * field.
1839
+ *
1840
+ * Only the comment content is provided; comment markers (e.g. //) are
1841
+ * stripped out. For block comments, leading whitespace and an asterisk
1842
+ * will be stripped from the beginning of each line other than the first.
1843
+ * Newlines are included in the output.
1844
+ *
1845
+ * Examples:
1846
+ *
1847
+ * optional int32 foo = 1; // Comment attached to foo.
1848
+ * // Comment attached to bar.
1849
+ * optional int32 bar = 2;
1850
+ *
1851
+ * optional string baz = 3;
1852
+ * // Comment attached to baz.
1853
+ * // Another line attached to baz.
1854
+ *
1855
+ * // Comment attached to moo.
1856
+ * //
1857
+ * // Another line attached to moo.
1858
+ * optional double moo = 4;
1859
+ *
1860
+ * // Detached comment for corge. This is not leading or trailing comments
1861
+ * // to moo or corge because there are blank lines separating it from
1862
+ * // both.
1863
+ *
1864
+ * // Detached comment for corge paragraph 2.
1865
+ *
1866
+ * optional string corge = 5;
1867
+ * /* Block comment attached
1868
+ * * to corge. Leading asterisks
1869
+ * * will be removed. *\/
1870
+ * /* Block comment attached to
1871
+ * * grault. *\/
1872
+ * optional int32 grault = 6;
1873
+ *
1874
+ * // ignored detached comments.
1875
+ *
1876
+ * @generated from protobuf field: optional string leading_comments = 3;
1877
+ */
1878
+ leadingComments?: string;
1879
+ /**
1880
+ * @generated from protobuf field: optional string trailing_comments = 4;
1881
+ */
1882
+ trailingComments?: string;
1883
+ /**
1884
+ * @generated from protobuf field: repeated string leading_detached_comments = 6;
1885
+ */
1886
+ leadingDetachedComments: string[];
1887
+ }
1888
+ /**
1889
+ * Describes the relationship between generated code and its original source
1890
+ * file. A GeneratedCodeInfo message is associated with only one generated
1891
+ * source file, but may contain references to different source .proto files.
1892
+ *
1893
+ * @generated from protobuf message google.protobuf.GeneratedCodeInfo
1894
+ */
1895
+ export interface GeneratedCodeInfo {
1896
+ /**
1897
+ * An Annotation connects some span of text in generated code to an element
1898
+ * of its generating .proto file.
1899
+ *
1900
+ * @generated from protobuf field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
1901
+ */
1902
+ annotation: GeneratedCodeInfo_Annotation[];
1903
+ }
1904
+ /**
1905
+ * @generated from protobuf message google.protobuf.GeneratedCodeInfo.Annotation
1906
+ */
1907
+ export interface GeneratedCodeInfo_Annotation {
1908
+ /**
1909
+ * Identifies the element in the original source .proto file. This field
1910
+ * is formatted the same as SourceCodeInfo.Location.path.
1911
+ *
1912
+ * @generated from protobuf field: repeated int32 path = 1 [packed = true];
1913
+ */
1914
+ path: number[];
1915
+ /**
1916
+ * Identifies the filesystem path to the original source .proto.
1917
+ *
1918
+ * @generated from protobuf field: optional string source_file = 2;
1919
+ */
1920
+ sourceFile?: string;
1921
+ /**
1922
+ * Identifies the starting offset in bytes in the generated code
1923
+ * that relates to the identified object.
1924
+ *
1925
+ * @generated from protobuf field: optional int32 begin = 3;
1926
+ */
1927
+ begin?: number;
1928
+ /**
1929
+ * Identifies the ending offset in bytes in the generated code that
1930
+ * relates to the identified object. The end offset should be one past
1931
+ * the last relevant byte (so the length of the text = end - begin).
1932
+ *
1933
+ * @generated from protobuf field: optional int32 end = 4;
1934
+ */
1935
+ end?: number;
1936
+ /**
1937
+ * @generated from protobuf field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
1938
+ */
1939
+ semantic?: GeneratedCodeInfo_Annotation_Semantic;
1940
+ }
1941
+ /**
1942
+ * Represents the identified object's effect on the element in the original
1943
+ * .proto file.
1944
+ *
1945
+ * @generated from protobuf enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
1946
+ */
1947
+ export enum GeneratedCodeInfo_Annotation_Semantic {
1948
+ /**
1949
+ * There is no effect or the effect is indescribable.
1950
+ *
1951
+ * @generated from protobuf enum value: NONE = 0;
1952
+ */
1953
+ NONE = 0,
1954
+ /**
1955
+ * The element is set or otherwise mutated.
1956
+ *
1957
+ * @generated from protobuf enum value: SET = 1;
1958
+ */
1959
+ SET = 1,
1960
+ /**
1961
+ * An alias to the element is returned.
1962
+ *
1963
+ * @generated from protobuf enum value: ALIAS = 2;
1964
+ */
1965
+ ALIAS = 2
1966
+ }
1967
+ /**
1968
+ * The full set of known editions.
1969
+ *
1970
+ * @generated from protobuf enum google.protobuf.Edition
1971
+ */
1972
+ export enum Edition {
1973
+ /**
1974
+ * A placeholder for an unknown edition value.
1975
+ *
1976
+ * @generated from protobuf enum value: EDITION_UNKNOWN = 0;
1977
+ */
1978
+ EDITION_UNKNOWN = 0,
1979
+ /**
1980
+ * Legacy syntax "editions". These pre-date editions, but behave much like
1981
+ * distinct editions. These can't be used to specify the edition of proto
1982
+ * files, but feature definitions must supply proto2/proto3 defaults for
1983
+ * backwards compatibility.
1984
+ *
1985
+ * @generated from protobuf enum value: EDITION_PROTO2 = 998;
1986
+ */
1987
+ EDITION_PROTO2 = 998,
1988
+ /**
1989
+ * @generated from protobuf enum value: EDITION_PROTO3 = 999;
1990
+ */
1991
+ EDITION_PROTO3 = 999,
1992
+ /**
1993
+ * Editions that have been released. The specific values are arbitrary and
1994
+ * should not be depended on, but they will always be time-ordered for easy
1995
+ * comparison.
1996
+ *
1997
+ * @generated from protobuf enum value: EDITION_2023 = 1000;
1998
+ */
1999
+ EDITION_2023 = 1000,
2000
+ /**
2001
+ * @generated from protobuf enum value: EDITION_2024 = 1001;
2002
+ */
2003
+ EDITION_2024 = 1001,
2004
+ /**
2005
+ * Placeholder editions for testing feature resolution. These should not be
2006
+ * used or relyed on outside of tests.
2007
+ *
2008
+ * @generated from protobuf enum value: EDITION_1_TEST_ONLY = 1;
2009
+ */
2010
+ EDITION_1_TEST_ONLY = 1,
2011
+ /**
2012
+ * @generated from protobuf enum value: EDITION_2_TEST_ONLY = 2;
2013
+ */
2014
+ EDITION_2_TEST_ONLY = 2,
2015
+ /**
2016
+ * @generated from protobuf enum value: EDITION_99997_TEST_ONLY = 99997;
2017
+ */
2018
+ EDITION_99997_TEST_ONLY = 99997,
2019
+ /**
2020
+ * @generated from protobuf enum value: EDITION_99998_TEST_ONLY = 99998;
2021
+ */
2022
+ EDITION_99998_TEST_ONLY = 99998,
2023
+ /**
2024
+ * @generated from protobuf enum value: EDITION_99999_TEST_ONLY = 99999;
2025
+ */
2026
+ EDITION_99999_TEST_ONLY = 99999,
2027
+ /**
2028
+ * Placeholder for specifying unbounded edition support. This should only
2029
+ * ever be used by plugins that can expect to never require any changes to
2030
+ * support a new edition.
2031
+ *
2032
+ * @generated from protobuf enum value: EDITION_MAX = 2147483647;
2033
+ */
2034
+ EDITION_MAX = 2147483647
2035
+ }
2036
+ // @generated message type with reflection information, may provide speed optimized methods
2037
+ class FileDescriptorSet$Type extends MessageType<FileDescriptorSet> {
2038
+ constructor() {
2039
+ super("google.protobuf.FileDescriptorSet", [
2040
+ { no: 1, name: "file", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FileDescriptorProto }
2041
+ ]);
2042
+ }
2043
+ create(value?: PartialMessage<FileDescriptorSet>): FileDescriptorSet {
2044
+ const message = globalThis.Object.create((this.messagePrototype!));
2045
+ message.file = [];
2046
+ if (value !== undefined)
2047
+ reflectionMergePartial<FileDescriptorSet>(this, message, value);
2048
+ return message;
2049
+ }
2050
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDescriptorSet): FileDescriptorSet {
2051
+ let message = target ?? this.create(), end = reader.pos + length;
2052
+ while (reader.pos < end) {
2053
+ let [fieldNo, wireType] = reader.tag();
2054
+ switch (fieldNo) {
2055
+ case /* repeated google.protobuf.FileDescriptorProto file */ 1:
2056
+ message.file.push(FileDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2057
+ break;
2058
+ default:
2059
+ let u = options.readUnknownField;
2060
+ if (u === "throw")
2061
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2062
+ let d = reader.skip(wireType);
2063
+ if (u !== false)
2064
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2065
+ }
2066
+ }
2067
+ return message;
2068
+ }
2069
+ internalBinaryWrite(message: FileDescriptorSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2070
+ /* repeated google.protobuf.FileDescriptorProto file = 1; */
2071
+ for (let i = 0; i < message.file.length; i++)
2072
+ FileDescriptorProto.internalBinaryWrite(message.file[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2073
+ let u = options.writeUnknownFields;
2074
+ if (u !== false)
2075
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2076
+ return writer;
2077
+ }
2078
+ }
2079
+ /**
2080
+ * @generated MessageType for protobuf message google.protobuf.FileDescriptorSet
2081
+ */
2082
+ export const FileDescriptorSet = new FileDescriptorSet$Type();
2083
+ // @generated message type with reflection information, may provide speed optimized methods
2084
+ class FileDescriptorProto$Type extends MessageType<FileDescriptorProto> {
2085
+ constructor() {
2086
+ super("google.protobuf.FileDescriptorProto", [
2087
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2088
+ { no: 2, name: "package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2089
+ { no: 3, name: "dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
2090
+ { no: 10, name: "public_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ },
2091
+ { no: 11, name: "weak_dependency", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 5 /*ScalarType.INT32*/ },
2092
+ { no: 4, name: "message_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto },
2093
+ { no: 5, name: "enum_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumDescriptorProto },
2094
+ { no: 6, name: "service", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ServiceDescriptorProto },
2095
+ { no: 7, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldDescriptorProto },
2096
+ { no: 8, name: "options", kind: "message", T: () => FileOptions },
2097
+ { no: 9, name: "source_code_info", kind: "message", T: () => SourceCodeInfo },
2098
+ { no: 12, name: "syntax", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2099
+ { no: 14, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }
2100
+ ]);
2101
+ }
2102
+ create(value?: PartialMessage<FileDescriptorProto>): FileDescriptorProto {
2103
+ const message = globalThis.Object.create((this.messagePrototype!));
2104
+ message.dependency = [];
2105
+ message.publicDependency = [];
2106
+ message.weakDependency = [];
2107
+ message.messageType = [];
2108
+ message.enumType = [];
2109
+ message.service = [];
2110
+ message.extension = [];
2111
+ if (value !== undefined)
2112
+ reflectionMergePartial<FileDescriptorProto>(this, message, value);
2113
+ return message;
2114
+ }
2115
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileDescriptorProto): FileDescriptorProto {
2116
+ let message = target ?? this.create(), end = reader.pos + length;
2117
+ while (reader.pos < end) {
2118
+ let [fieldNo, wireType] = reader.tag();
2119
+ switch (fieldNo) {
2120
+ case /* optional string name */ 1:
2121
+ message.name = reader.string();
2122
+ break;
2123
+ case /* optional string package */ 2:
2124
+ message.package = reader.string();
2125
+ break;
2126
+ case /* repeated string dependency */ 3:
2127
+ message.dependency.push(reader.string());
2128
+ break;
2129
+ case /* repeated int32 public_dependency */ 10:
2130
+ if (wireType === WireType.LengthDelimited)
2131
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
2132
+ message.publicDependency.push(reader.int32());
2133
+ else
2134
+ message.publicDependency.push(reader.int32());
2135
+ break;
2136
+ case /* repeated int32 weak_dependency */ 11:
2137
+ if (wireType === WireType.LengthDelimited)
2138
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
2139
+ message.weakDependency.push(reader.int32());
2140
+ else
2141
+ message.weakDependency.push(reader.int32());
2142
+ break;
2143
+ case /* repeated google.protobuf.DescriptorProto message_type */ 4:
2144
+ message.messageType.push(DescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2145
+ break;
2146
+ case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 5:
2147
+ message.enumType.push(EnumDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2148
+ break;
2149
+ case /* repeated google.protobuf.ServiceDescriptorProto service */ 6:
2150
+ message.service.push(ServiceDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2151
+ break;
2152
+ case /* repeated google.protobuf.FieldDescriptorProto extension */ 7:
2153
+ message.extension.push(FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2154
+ break;
2155
+ case /* optional google.protobuf.FileOptions options */ 8:
2156
+ message.options = FileOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2157
+ break;
2158
+ case /* optional google.protobuf.SourceCodeInfo source_code_info */ 9:
2159
+ message.sourceCodeInfo = SourceCodeInfo.internalBinaryRead(reader, reader.uint32(), options, message.sourceCodeInfo);
2160
+ break;
2161
+ case /* optional string syntax */ 12:
2162
+ message.syntax = reader.string();
2163
+ break;
2164
+ case /* optional google.protobuf.Edition edition */ 14:
2165
+ message.edition = reader.int32();
2166
+ break;
2167
+ default:
2168
+ let u = options.readUnknownField;
2169
+ if (u === "throw")
2170
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2171
+ let d = reader.skip(wireType);
2172
+ if (u !== false)
2173
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2174
+ }
2175
+ }
2176
+ return message;
2177
+ }
2178
+ internalBinaryWrite(message: FileDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2179
+ /* optional string name = 1; */
2180
+ if (message.name !== undefined)
2181
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2182
+ /* optional string package = 2; */
2183
+ if (message.package !== undefined)
2184
+ writer.tag(2, WireType.LengthDelimited).string(message.package);
2185
+ /* repeated string dependency = 3; */
2186
+ for (let i = 0; i < message.dependency.length; i++)
2187
+ writer.tag(3, WireType.LengthDelimited).string(message.dependency[i]);
2188
+ /* repeated int32 public_dependency = 10; */
2189
+ for (let i = 0; i < message.publicDependency.length; i++)
2190
+ writer.tag(10, WireType.Varint).int32(message.publicDependency[i]);
2191
+ /* repeated int32 weak_dependency = 11; */
2192
+ for (let i = 0; i < message.weakDependency.length; i++)
2193
+ writer.tag(11, WireType.Varint).int32(message.weakDependency[i]);
2194
+ /* repeated google.protobuf.DescriptorProto message_type = 4; */
2195
+ for (let i = 0; i < message.messageType.length; i++)
2196
+ DescriptorProto.internalBinaryWrite(message.messageType[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2197
+ /* repeated google.protobuf.EnumDescriptorProto enum_type = 5; */
2198
+ for (let i = 0; i < message.enumType.length; i++)
2199
+ EnumDescriptorProto.internalBinaryWrite(message.enumType[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2200
+ /* repeated google.protobuf.ServiceDescriptorProto service = 6; */
2201
+ for (let i = 0; i < message.service.length; i++)
2202
+ ServiceDescriptorProto.internalBinaryWrite(message.service[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2203
+ /* repeated google.protobuf.FieldDescriptorProto extension = 7; */
2204
+ for (let i = 0; i < message.extension.length; i++)
2205
+ FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2206
+ /* optional google.protobuf.FileOptions options = 8; */
2207
+ if (message.options)
2208
+ FileOptions.internalBinaryWrite(message.options, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2209
+ /* optional google.protobuf.SourceCodeInfo source_code_info = 9; */
2210
+ if (message.sourceCodeInfo)
2211
+ SourceCodeInfo.internalBinaryWrite(message.sourceCodeInfo, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
2212
+ /* optional string syntax = 12; */
2213
+ if (message.syntax !== undefined)
2214
+ writer.tag(12, WireType.LengthDelimited).string(message.syntax);
2215
+ /* optional google.protobuf.Edition edition = 14; */
2216
+ if (message.edition !== undefined)
2217
+ writer.tag(14, WireType.Varint).int32(message.edition);
2218
+ let u = options.writeUnknownFields;
2219
+ if (u !== false)
2220
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2221
+ return writer;
2222
+ }
2223
+ }
2224
+ /**
2225
+ * @generated MessageType for protobuf message google.protobuf.FileDescriptorProto
2226
+ */
2227
+ export const FileDescriptorProto = new FileDescriptorProto$Type();
2228
+ // @generated message type with reflection information, may provide speed optimized methods
2229
+ class DescriptorProto$Type extends MessageType<DescriptorProto> {
2230
+ constructor() {
2231
+ super("google.protobuf.DescriptorProto", [
2232
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2233
+ { no: 2, name: "field", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldDescriptorProto },
2234
+ { no: 6, name: "extension", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldDescriptorProto },
2235
+ { no: 3, name: "nested_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto },
2236
+ { no: 4, name: "enum_type", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumDescriptorProto },
2237
+ { no: 5, name: "extension_range", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto_ExtensionRange },
2238
+ { no: 8, name: "oneof_decl", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OneofDescriptorProto },
2239
+ { no: 7, name: "options", kind: "message", T: () => MessageOptions },
2240
+ { no: 9, name: "reserved_range", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => DescriptorProto_ReservedRange },
2241
+ { no: 10, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
2242
+ ]);
2243
+ }
2244
+ create(value?: PartialMessage<DescriptorProto>): DescriptorProto {
2245
+ const message = globalThis.Object.create((this.messagePrototype!));
2246
+ message.field = [];
2247
+ message.extension = [];
2248
+ message.nestedType = [];
2249
+ message.enumType = [];
2250
+ message.extensionRange = [];
2251
+ message.oneofDecl = [];
2252
+ message.reservedRange = [];
2253
+ message.reservedName = [];
2254
+ if (value !== undefined)
2255
+ reflectionMergePartial<DescriptorProto>(this, message, value);
2256
+ return message;
2257
+ }
2258
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto): DescriptorProto {
2259
+ let message = target ?? this.create(), end = reader.pos + length;
2260
+ while (reader.pos < end) {
2261
+ let [fieldNo, wireType] = reader.tag();
2262
+ switch (fieldNo) {
2263
+ case /* optional string name */ 1:
2264
+ message.name = reader.string();
2265
+ break;
2266
+ case /* repeated google.protobuf.FieldDescriptorProto field */ 2:
2267
+ message.field.push(FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2268
+ break;
2269
+ case /* repeated google.protobuf.FieldDescriptorProto extension */ 6:
2270
+ message.extension.push(FieldDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2271
+ break;
2272
+ case /* repeated google.protobuf.DescriptorProto nested_type */ 3:
2273
+ message.nestedType.push(DescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2274
+ break;
2275
+ case /* repeated google.protobuf.EnumDescriptorProto enum_type */ 4:
2276
+ message.enumType.push(EnumDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2277
+ break;
2278
+ case /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range */ 5:
2279
+ message.extensionRange.push(DescriptorProto_ExtensionRange.internalBinaryRead(reader, reader.uint32(), options));
2280
+ break;
2281
+ case /* repeated google.protobuf.OneofDescriptorProto oneof_decl */ 8:
2282
+ message.oneofDecl.push(OneofDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2283
+ break;
2284
+ case /* optional google.protobuf.MessageOptions options */ 7:
2285
+ message.options = MessageOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2286
+ break;
2287
+ case /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range */ 9:
2288
+ message.reservedRange.push(DescriptorProto_ReservedRange.internalBinaryRead(reader, reader.uint32(), options));
2289
+ break;
2290
+ case /* repeated string reserved_name */ 10:
2291
+ message.reservedName.push(reader.string());
2292
+ break;
2293
+ default:
2294
+ let u = options.readUnknownField;
2295
+ if (u === "throw")
2296
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2297
+ let d = reader.skip(wireType);
2298
+ if (u !== false)
2299
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2300
+ }
2301
+ }
2302
+ return message;
2303
+ }
2304
+ internalBinaryWrite(message: DescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2305
+ /* optional string name = 1; */
2306
+ if (message.name !== undefined)
2307
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2308
+ /* repeated google.protobuf.FieldDescriptorProto field = 2; */
2309
+ for (let i = 0; i < message.field.length; i++)
2310
+ FieldDescriptorProto.internalBinaryWrite(message.field[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2311
+ /* repeated google.protobuf.FieldDescriptorProto extension = 6; */
2312
+ for (let i = 0; i < message.extension.length; i++)
2313
+ FieldDescriptorProto.internalBinaryWrite(message.extension[i], writer.tag(6, WireType.LengthDelimited).fork(), options).join();
2314
+ /* repeated google.protobuf.DescriptorProto nested_type = 3; */
2315
+ for (let i = 0; i < message.nestedType.length; i++)
2316
+ DescriptorProto.internalBinaryWrite(message.nestedType[i], writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2317
+ /* repeated google.protobuf.EnumDescriptorProto enum_type = 4; */
2318
+ for (let i = 0; i < message.enumType.length; i++)
2319
+ EnumDescriptorProto.internalBinaryWrite(message.enumType[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2320
+ /* repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5; */
2321
+ for (let i = 0; i < message.extensionRange.length; i++)
2322
+ DescriptorProto_ExtensionRange.internalBinaryWrite(message.extensionRange[i], writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2323
+ /* repeated google.protobuf.OneofDescriptorProto oneof_decl = 8; */
2324
+ for (let i = 0; i < message.oneofDecl.length; i++)
2325
+ OneofDescriptorProto.internalBinaryWrite(message.oneofDecl[i], writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2326
+ /* optional google.protobuf.MessageOptions options = 7; */
2327
+ if (message.options)
2328
+ MessageOptions.internalBinaryWrite(message.options, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
2329
+ /* repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9; */
2330
+ for (let i = 0; i < message.reservedRange.length; i++)
2331
+ DescriptorProto_ReservedRange.internalBinaryWrite(message.reservedRange[i], writer.tag(9, WireType.LengthDelimited).fork(), options).join();
2332
+ /* repeated string reserved_name = 10; */
2333
+ for (let i = 0; i < message.reservedName.length; i++)
2334
+ writer.tag(10, WireType.LengthDelimited).string(message.reservedName[i]);
2335
+ let u = options.writeUnknownFields;
2336
+ if (u !== false)
2337
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2338
+ return writer;
2339
+ }
2340
+ }
2341
+ /**
2342
+ * @generated MessageType for protobuf message google.protobuf.DescriptorProto
2343
+ */
2344
+ export const DescriptorProto = new DescriptorProto$Type();
2345
+ // @generated message type with reflection information, may provide speed optimized methods
2346
+ class DescriptorProto_ExtensionRange$Type extends MessageType<DescriptorProto_ExtensionRange> {
2347
+ constructor() {
2348
+ super("google.protobuf.DescriptorProto.ExtensionRange", [
2349
+ { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2350
+ { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2351
+ { no: 3, name: "options", kind: "message", T: () => ExtensionRangeOptions }
2352
+ ]);
2353
+ }
2354
+ create(value?: PartialMessage<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange {
2355
+ const message = globalThis.Object.create((this.messagePrototype!));
2356
+ if (value !== undefined)
2357
+ reflectionMergePartial<DescriptorProto_ExtensionRange>(this, message, value);
2358
+ return message;
2359
+ }
2360
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto_ExtensionRange): DescriptorProto_ExtensionRange {
2361
+ let message = target ?? this.create(), end = reader.pos + length;
2362
+ while (reader.pos < end) {
2363
+ let [fieldNo, wireType] = reader.tag();
2364
+ switch (fieldNo) {
2365
+ case /* optional int32 start */ 1:
2366
+ message.start = reader.int32();
2367
+ break;
2368
+ case /* optional int32 end */ 2:
2369
+ message.end = reader.int32();
2370
+ break;
2371
+ case /* optional google.protobuf.ExtensionRangeOptions options */ 3:
2372
+ message.options = ExtensionRangeOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2373
+ break;
2374
+ default:
2375
+ let u = options.readUnknownField;
2376
+ if (u === "throw")
2377
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2378
+ let d = reader.skip(wireType);
2379
+ if (u !== false)
2380
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2381
+ }
2382
+ }
2383
+ return message;
2384
+ }
2385
+ internalBinaryWrite(message: DescriptorProto_ExtensionRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2386
+ /* optional int32 start = 1; */
2387
+ if (message.start !== undefined)
2388
+ writer.tag(1, WireType.Varint).int32(message.start);
2389
+ /* optional int32 end = 2; */
2390
+ if (message.end !== undefined)
2391
+ writer.tag(2, WireType.Varint).int32(message.end);
2392
+ /* optional google.protobuf.ExtensionRangeOptions options = 3; */
2393
+ if (message.options)
2394
+ ExtensionRangeOptions.internalBinaryWrite(message.options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2395
+ let u = options.writeUnknownFields;
2396
+ if (u !== false)
2397
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2398
+ return writer;
2399
+ }
2400
+ }
2401
+ /**
2402
+ * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ExtensionRange
2403
+ */
2404
+ export const DescriptorProto_ExtensionRange = new DescriptorProto_ExtensionRange$Type();
2405
+ // @generated message type with reflection information, may provide speed optimized methods
2406
+ class DescriptorProto_ReservedRange$Type extends MessageType<DescriptorProto_ReservedRange> {
2407
+ constructor() {
2408
+ super("google.protobuf.DescriptorProto.ReservedRange", [
2409
+ { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2410
+ { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
2411
+ ]);
2412
+ }
2413
+ create(value?: PartialMessage<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange {
2414
+ const message = globalThis.Object.create((this.messagePrototype!));
2415
+ if (value !== undefined)
2416
+ reflectionMergePartial<DescriptorProto_ReservedRange>(this, message, value);
2417
+ return message;
2418
+ }
2419
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: DescriptorProto_ReservedRange): DescriptorProto_ReservedRange {
2420
+ let message = target ?? this.create(), end = reader.pos + length;
2421
+ while (reader.pos < end) {
2422
+ let [fieldNo, wireType] = reader.tag();
2423
+ switch (fieldNo) {
2424
+ case /* optional int32 start */ 1:
2425
+ message.start = reader.int32();
2426
+ break;
2427
+ case /* optional int32 end */ 2:
2428
+ message.end = reader.int32();
2429
+ break;
2430
+ default:
2431
+ let u = options.readUnknownField;
2432
+ if (u === "throw")
2433
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2434
+ let d = reader.skip(wireType);
2435
+ if (u !== false)
2436
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2437
+ }
2438
+ }
2439
+ return message;
2440
+ }
2441
+ internalBinaryWrite(message: DescriptorProto_ReservedRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2442
+ /* optional int32 start = 1; */
2443
+ if (message.start !== undefined)
2444
+ writer.tag(1, WireType.Varint).int32(message.start);
2445
+ /* optional int32 end = 2; */
2446
+ if (message.end !== undefined)
2447
+ writer.tag(2, WireType.Varint).int32(message.end);
2448
+ let u = options.writeUnknownFields;
2449
+ if (u !== false)
2450
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2451
+ return writer;
2452
+ }
2453
+ }
2454
+ /**
2455
+ * @generated MessageType for protobuf message google.protobuf.DescriptorProto.ReservedRange
2456
+ */
2457
+ export const DescriptorProto_ReservedRange = new DescriptorProto_ReservedRange$Type();
2458
+ // @generated message type with reflection information, may provide speed optimized methods
2459
+ class ExtensionRangeOptions$Type extends MessageType<ExtensionRangeOptions> {
2460
+ constructor() {
2461
+ super("google.protobuf.ExtensionRangeOptions", [
2462
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption },
2463
+ { no: 2, name: "declaration", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ExtensionRangeOptions_Declaration },
2464
+ { no: 50, name: "features", kind: "message", T: () => FeatureSet },
2465
+ { no: 3, name: "verification", kind: "enum", opt: true, T: () => ["google.protobuf.ExtensionRangeOptions.VerificationState", ExtensionRangeOptions_VerificationState] }
2466
+ ]);
2467
+ }
2468
+ create(value?: PartialMessage<ExtensionRangeOptions>): ExtensionRangeOptions {
2469
+ const message = globalThis.Object.create((this.messagePrototype!));
2470
+ message.uninterpretedOption = [];
2471
+ message.declaration = [];
2472
+ if (value !== undefined)
2473
+ reflectionMergePartial<ExtensionRangeOptions>(this, message, value);
2474
+ return message;
2475
+ }
2476
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions): ExtensionRangeOptions {
2477
+ let message = target ?? this.create(), end = reader.pos + length;
2478
+ while (reader.pos < end) {
2479
+ let [fieldNo, wireType] = reader.tag();
2480
+ switch (fieldNo) {
2481
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
2482
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
2483
+ break;
2484
+ case /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration */ 2:
2485
+ message.declaration.push(ExtensionRangeOptions_Declaration.internalBinaryRead(reader, reader.uint32(), options));
2486
+ break;
2487
+ case /* optional google.protobuf.FeatureSet features */ 50:
2488
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
2489
+ break;
2490
+ case /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification */ 3:
2491
+ message.verification = reader.int32();
2492
+ break;
2493
+ default:
2494
+ let u = options.readUnknownField;
2495
+ if (u === "throw")
2496
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2497
+ let d = reader.skip(wireType);
2498
+ if (u !== false)
2499
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2500
+ }
2501
+ }
2502
+ return message;
2503
+ }
2504
+ internalBinaryWrite(message: ExtensionRangeOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2505
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
2506
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
2507
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
2508
+ /* repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2; */
2509
+ for (let i = 0; i < message.declaration.length; i++)
2510
+ ExtensionRangeOptions_Declaration.internalBinaryWrite(message.declaration[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2511
+ /* optional google.protobuf.FeatureSet features = 50; */
2512
+ if (message.features)
2513
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join();
2514
+ /* optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3; */
2515
+ if (message.verification !== undefined)
2516
+ writer.tag(3, WireType.Varint).int32(message.verification);
2517
+ let u = options.writeUnknownFields;
2518
+ if (u !== false)
2519
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2520
+ return writer;
2521
+ }
2522
+ }
2523
+ /**
2524
+ * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions
2525
+ */
2526
+ export const ExtensionRangeOptions = new ExtensionRangeOptions$Type();
2527
+ // @generated message type with reflection information, may provide speed optimized methods
2528
+ class ExtensionRangeOptions_Declaration$Type extends MessageType<ExtensionRangeOptions_Declaration> {
2529
+ constructor() {
2530
+ super("google.protobuf.ExtensionRangeOptions.Declaration", [
2531
+ { no: 1, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2532
+ { no: 2, name: "full_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2533
+ { no: 3, name: "type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2534
+ { no: 5, name: "reserved", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
2535
+ { no: 6, name: "repeated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
2536
+ ]);
2537
+ }
2538
+ create(value?: PartialMessage<ExtensionRangeOptions_Declaration>): ExtensionRangeOptions_Declaration {
2539
+ const message = globalThis.Object.create((this.messagePrototype!));
2540
+ if (value !== undefined)
2541
+ reflectionMergePartial<ExtensionRangeOptions_Declaration>(this, message, value);
2542
+ return message;
2543
+ }
2544
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ExtensionRangeOptions_Declaration): ExtensionRangeOptions_Declaration {
2545
+ let message = target ?? this.create(), end = reader.pos + length;
2546
+ while (reader.pos < end) {
2547
+ let [fieldNo, wireType] = reader.tag();
2548
+ switch (fieldNo) {
2549
+ case /* optional int32 number */ 1:
2550
+ message.number = reader.int32();
2551
+ break;
2552
+ case /* optional string full_name */ 2:
2553
+ message.fullName = reader.string();
2554
+ break;
2555
+ case /* optional string type */ 3:
2556
+ message.type = reader.string();
2557
+ break;
2558
+ case /* optional bool reserved */ 5:
2559
+ message.reserved = reader.bool();
2560
+ break;
2561
+ case /* optional bool repeated */ 6:
2562
+ message.repeated = reader.bool();
2563
+ break;
2564
+ default:
2565
+ let u = options.readUnknownField;
2566
+ if (u === "throw")
2567
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2568
+ let d = reader.skip(wireType);
2569
+ if (u !== false)
2570
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2571
+ }
2572
+ }
2573
+ return message;
2574
+ }
2575
+ internalBinaryWrite(message: ExtensionRangeOptions_Declaration, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2576
+ /* optional int32 number = 1; */
2577
+ if (message.number !== undefined)
2578
+ writer.tag(1, WireType.Varint).int32(message.number);
2579
+ /* optional string full_name = 2; */
2580
+ if (message.fullName !== undefined)
2581
+ writer.tag(2, WireType.LengthDelimited).string(message.fullName);
2582
+ /* optional string type = 3; */
2583
+ if (message.type !== undefined)
2584
+ writer.tag(3, WireType.LengthDelimited).string(message.type);
2585
+ /* optional bool reserved = 5; */
2586
+ if (message.reserved !== undefined)
2587
+ writer.tag(5, WireType.Varint).bool(message.reserved);
2588
+ /* optional bool repeated = 6; */
2589
+ if (message.repeated !== undefined)
2590
+ writer.tag(6, WireType.Varint).bool(message.repeated);
2591
+ let u = options.writeUnknownFields;
2592
+ if (u !== false)
2593
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2594
+ return writer;
2595
+ }
2596
+ }
2597
+ /**
2598
+ * @generated MessageType for protobuf message google.protobuf.ExtensionRangeOptions.Declaration
2599
+ */
2600
+ export const ExtensionRangeOptions_Declaration = new ExtensionRangeOptions_Declaration$Type();
2601
+ // @generated message type with reflection information, may provide speed optimized methods
2602
+ class FieldDescriptorProto$Type extends MessageType<FieldDescriptorProto> {
2603
+ constructor() {
2604
+ super("google.protobuf.FieldDescriptorProto", [
2605
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2606
+ { no: 3, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2607
+ { no: 4, name: "label", kind: "enum", opt: true, T: () => ["google.protobuf.FieldDescriptorProto.Label", FieldDescriptorProto_Label, "LABEL_"] },
2608
+ { no: 5, name: "type", kind: "enum", opt: true, T: () => ["google.protobuf.FieldDescriptorProto.Type", FieldDescriptorProto_Type, "TYPE_"] },
2609
+ { no: 6, name: "type_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2610
+ { no: 2, name: "extendee", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2611
+ { no: 7, name: "default_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2612
+ { no: 9, name: "oneof_index", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2613
+ { no: 10, name: "json_name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2614
+ { no: 8, name: "options", kind: "message", T: () => FieldOptions },
2615
+ { no: 17, name: "proto3_optional", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
2616
+ ]);
2617
+ }
2618
+ create(value?: PartialMessage<FieldDescriptorProto>): FieldDescriptorProto {
2619
+ const message = globalThis.Object.create((this.messagePrototype!));
2620
+ if (value !== undefined)
2621
+ reflectionMergePartial<FieldDescriptorProto>(this, message, value);
2622
+ return message;
2623
+ }
2624
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldDescriptorProto): FieldDescriptorProto {
2625
+ let message = target ?? this.create(), end = reader.pos + length;
2626
+ while (reader.pos < end) {
2627
+ let [fieldNo, wireType] = reader.tag();
2628
+ switch (fieldNo) {
2629
+ case /* optional string name */ 1:
2630
+ message.name = reader.string();
2631
+ break;
2632
+ case /* optional int32 number */ 3:
2633
+ message.number = reader.int32();
2634
+ break;
2635
+ case /* optional google.protobuf.FieldDescriptorProto.Label label */ 4:
2636
+ message.label = reader.int32();
2637
+ break;
2638
+ case /* optional google.protobuf.FieldDescriptorProto.Type type */ 5:
2639
+ message.type = reader.int32();
2640
+ break;
2641
+ case /* optional string type_name */ 6:
2642
+ message.typeName = reader.string();
2643
+ break;
2644
+ case /* optional string extendee */ 2:
2645
+ message.extendee = reader.string();
2646
+ break;
2647
+ case /* optional string default_value */ 7:
2648
+ message.defaultValue = reader.string();
2649
+ break;
2650
+ case /* optional int32 oneof_index */ 9:
2651
+ message.oneofIndex = reader.int32();
2652
+ break;
2653
+ case /* optional string json_name */ 10:
2654
+ message.jsonName = reader.string();
2655
+ break;
2656
+ case /* optional google.protobuf.FieldOptions options */ 8:
2657
+ message.options = FieldOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2658
+ break;
2659
+ case /* optional bool proto3_optional */ 17:
2660
+ message.proto3Optional = reader.bool();
2661
+ break;
2662
+ default:
2663
+ let u = options.readUnknownField;
2664
+ if (u === "throw")
2665
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2666
+ let d = reader.skip(wireType);
2667
+ if (u !== false)
2668
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2669
+ }
2670
+ }
2671
+ return message;
2672
+ }
2673
+ internalBinaryWrite(message: FieldDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2674
+ /* optional string name = 1; */
2675
+ if (message.name !== undefined)
2676
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2677
+ /* optional int32 number = 3; */
2678
+ if (message.number !== undefined)
2679
+ writer.tag(3, WireType.Varint).int32(message.number);
2680
+ /* optional google.protobuf.FieldDescriptorProto.Label label = 4; */
2681
+ if (message.label !== undefined)
2682
+ writer.tag(4, WireType.Varint).int32(message.label);
2683
+ /* optional google.protobuf.FieldDescriptorProto.Type type = 5; */
2684
+ if (message.type !== undefined)
2685
+ writer.tag(5, WireType.Varint).int32(message.type);
2686
+ /* optional string type_name = 6; */
2687
+ if (message.typeName !== undefined)
2688
+ writer.tag(6, WireType.LengthDelimited).string(message.typeName);
2689
+ /* optional string extendee = 2; */
2690
+ if (message.extendee !== undefined)
2691
+ writer.tag(2, WireType.LengthDelimited).string(message.extendee);
2692
+ /* optional string default_value = 7; */
2693
+ if (message.defaultValue !== undefined)
2694
+ writer.tag(7, WireType.LengthDelimited).string(message.defaultValue);
2695
+ /* optional int32 oneof_index = 9; */
2696
+ if (message.oneofIndex !== undefined)
2697
+ writer.tag(9, WireType.Varint).int32(message.oneofIndex);
2698
+ /* optional string json_name = 10; */
2699
+ if (message.jsonName !== undefined)
2700
+ writer.tag(10, WireType.LengthDelimited).string(message.jsonName);
2701
+ /* optional google.protobuf.FieldOptions options = 8; */
2702
+ if (message.options)
2703
+ FieldOptions.internalBinaryWrite(message.options, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
2704
+ /* optional bool proto3_optional = 17; */
2705
+ if (message.proto3Optional !== undefined)
2706
+ writer.tag(17, WireType.Varint).bool(message.proto3Optional);
2707
+ let u = options.writeUnknownFields;
2708
+ if (u !== false)
2709
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2710
+ return writer;
2711
+ }
2712
+ }
2713
+ /**
2714
+ * @generated MessageType for protobuf message google.protobuf.FieldDescriptorProto
2715
+ */
2716
+ export const FieldDescriptorProto = new FieldDescriptorProto$Type();
2717
+ // @generated message type with reflection information, may provide speed optimized methods
2718
+ class OneofDescriptorProto$Type extends MessageType<OneofDescriptorProto> {
2719
+ constructor() {
2720
+ super("google.protobuf.OneofDescriptorProto", [
2721
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2722
+ { no: 2, name: "options", kind: "message", T: () => OneofOptions }
2723
+ ]);
2724
+ }
2725
+ create(value?: PartialMessage<OneofDescriptorProto>): OneofDescriptorProto {
2726
+ const message = globalThis.Object.create((this.messagePrototype!));
2727
+ if (value !== undefined)
2728
+ reflectionMergePartial<OneofDescriptorProto>(this, message, value);
2729
+ return message;
2730
+ }
2731
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofDescriptorProto): OneofDescriptorProto {
2732
+ let message = target ?? this.create(), end = reader.pos + length;
2733
+ while (reader.pos < end) {
2734
+ let [fieldNo, wireType] = reader.tag();
2735
+ switch (fieldNo) {
2736
+ case /* optional string name */ 1:
2737
+ message.name = reader.string();
2738
+ break;
2739
+ case /* optional google.protobuf.OneofOptions options */ 2:
2740
+ message.options = OneofOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2741
+ break;
2742
+ default:
2743
+ let u = options.readUnknownField;
2744
+ if (u === "throw")
2745
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2746
+ let d = reader.skip(wireType);
2747
+ if (u !== false)
2748
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2749
+ }
2750
+ }
2751
+ return message;
2752
+ }
2753
+ internalBinaryWrite(message: OneofDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2754
+ /* optional string name = 1; */
2755
+ if (message.name !== undefined)
2756
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2757
+ /* optional google.protobuf.OneofOptions options = 2; */
2758
+ if (message.options)
2759
+ OneofOptions.internalBinaryWrite(message.options, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2760
+ let u = options.writeUnknownFields;
2761
+ if (u !== false)
2762
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2763
+ return writer;
2764
+ }
2765
+ }
2766
+ /**
2767
+ * @generated MessageType for protobuf message google.protobuf.OneofDescriptorProto
2768
+ */
2769
+ export const OneofDescriptorProto = new OneofDescriptorProto$Type();
2770
+ // @generated message type with reflection information, may provide speed optimized methods
2771
+ class EnumDescriptorProto$Type extends MessageType<EnumDescriptorProto> {
2772
+ constructor() {
2773
+ super("google.protobuf.EnumDescriptorProto", [
2774
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2775
+ { no: 2, name: "value", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumValueDescriptorProto },
2776
+ { no: 3, name: "options", kind: "message", T: () => EnumOptions },
2777
+ { no: 4, name: "reserved_range", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => EnumDescriptorProto_EnumReservedRange },
2778
+ { no: 5, name: "reserved_name", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
2779
+ ]);
2780
+ }
2781
+ create(value?: PartialMessage<EnumDescriptorProto>): EnumDescriptorProto {
2782
+ const message = globalThis.Object.create((this.messagePrototype!));
2783
+ message.value = [];
2784
+ message.reservedRange = [];
2785
+ message.reservedName = [];
2786
+ if (value !== undefined)
2787
+ reflectionMergePartial<EnumDescriptorProto>(this, message, value);
2788
+ return message;
2789
+ }
2790
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumDescriptorProto): EnumDescriptorProto {
2791
+ let message = target ?? this.create(), end = reader.pos + length;
2792
+ while (reader.pos < end) {
2793
+ let [fieldNo, wireType] = reader.tag();
2794
+ switch (fieldNo) {
2795
+ case /* optional string name */ 1:
2796
+ message.name = reader.string();
2797
+ break;
2798
+ case /* repeated google.protobuf.EnumValueDescriptorProto value */ 2:
2799
+ message.value.push(EnumValueDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2800
+ break;
2801
+ case /* optional google.protobuf.EnumOptions options */ 3:
2802
+ message.options = EnumOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2803
+ break;
2804
+ case /* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range */ 4:
2805
+ message.reservedRange.push(EnumDescriptorProto_EnumReservedRange.internalBinaryRead(reader, reader.uint32(), options));
2806
+ break;
2807
+ case /* repeated string reserved_name */ 5:
2808
+ message.reservedName.push(reader.string());
2809
+ break;
2810
+ default:
2811
+ let u = options.readUnknownField;
2812
+ if (u === "throw")
2813
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2814
+ let d = reader.skip(wireType);
2815
+ if (u !== false)
2816
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2817
+ }
2818
+ }
2819
+ return message;
2820
+ }
2821
+ internalBinaryWrite(message: EnumDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2822
+ /* optional string name = 1; */
2823
+ if (message.name !== undefined)
2824
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2825
+ /* repeated google.protobuf.EnumValueDescriptorProto value = 2; */
2826
+ for (let i = 0; i < message.value.length; i++)
2827
+ EnumValueDescriptorProto.internalBinaryWrite(message.value[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2828
+ /* optional google.protobuf.EnumOptions options = 3; */
2829
+ if (message.options)
2830
+ EnumOptions.internalBinaryWrite(message.options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2831
+ /* repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4; */
2832
+ for (let i = 0; i < message.reservedRange.length; i++)
2833
+ EnumDescriptorProto_EnumReservedRange.internalBinaryWrite(message.reservedRange[i], writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2834
+ /* repeated string reserved_name = 5; */
2835
+ for (let i = 0; i < message.reservedName.length; i++)
2836
+ writer.tag(5, WireType.LengthDelimited).string(message.reservedName[i]);
2837
+ let u = options.writeUnknownFields;
2838
+ if (u !== false)
2839
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2840
+ return writer;
2841
+ }
2842
+ }
2843
+ /**
2844
+ * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto
2845
+ */
2846
+ export const EnumDescriptorProto = new EnumDescriptorProto$Type();
2847
+ // @generated message type with reflection information, may provide speed optimized methods
2848
+ class EnumDescriptorProto_EnumReservedRange$Type extends MessageType<EnumDescriptorProto_EnumReservedRange> {
2849
+ constructor() {
2850
+ super("google.protobuf.EnumDescriptorProto.EnumReservedRange", [
2851
+ { no: 1, name: "start", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2852
+ { no: 2, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ }
2853
+ ]);
2854
+ }
2855
+ create(value?: PartialMessage<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange {
2856
+ const message = globalThis.Object.create((this.messagePrototype!));
2857
+ if (value !== undefined)
2858
+ reflectionMergePartial<EnumDescriptorProto_EnumReservedRange>(this, message, value);
2859
+ return message;
2860
+ }
2861
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumDescriptorProto_EnumReservedRange): EnumDescriptorProto_EnumReservedRange {
2862
+ let message = target ?? this.create(), end = reader.pos + length;
2863
+ while (reader.pos < end) {
2864
+ let [fieldNo, wireType] = reader.tag();
2865
+ switch (fieldNo) {
2866
+ case /* optional int32 start */ 1:
2867
+ message.start = reader.int32();
2868
+ break;
2869
+ case /* optional int32 end */ 2:
2870
+ message.end = reader.int32();
2871
+ break;
2872
+ default:
2873
+ let u = options.readUnknownField;
2874
+ if (u === "throw")
2875
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2876
+ let d = reader.skip(wireType);
2877
+ if (u !== false)
2878
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2879
+ }
2880
+ }
2881
+ return message;
2882
+ }
2883
+ internalBinaryWrite(message: EnumDescriptorProto_EnumReservedRange, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2884
+ /* optional int32 start = 1; */
2885
+ if (message.start !== undefined)
2886
+ writer.tag(1, WireType.Varint).int32(message.start);
2887
+ /* optional int32 end = 2; */
2888
+ if (message.end !== undefined)
2889
+ writer.tag(2, WireType.Varint).int32(message.end);
2890
+ let u = options.writeUnknownFields;
2891
+ if (u !== false)
2892
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2893
+ return writer;
2894
+ }
2895
+ }
2896
+ /**
2897
+ * @generated MessageType for protobuf message google.protobuf.EnumDescriptorProto.EnumReservedRange
2898
+ */
2899
+ export const EnumDescriptorProto_EnumReservedRange = new EnumDescriptorProto_EnumReservedRange$Type();
2900
+ // @generated message type with reflection information, may provide speed optimized methods
2901
+ class EnumValueDescriptorProto$Type extends MessageType<EnumValueDescriptorProto> {
2902
+ constructor() {
2903
+ super("google.protobuf.EnumValueDescriptorProto", [
2904
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2905
+ { no: 2, name: "number", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
2906
+ { no: 3, name: "options", kind: "message", T: () => EnumValueOptions }
2907
+ ]);
2908
+ }
2909
+ create(value?: PartialMessage<EnumValueDescriptorProto>): EnumValueDescriptorProto {
2910
+ const message = globalThis.Object.create((this.messagePrototype!));
2911
+ if (value !== undefined)
2912
+ reflectionMergePartial<EnumValueDescriptorProto>(this, message, value);
2913
+ return message;
2914
+ }
2915
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumValueDescriptorProto): EnumValueDescriptorProto {
2916
+ let message = target ?? this.create(), end = reader.pos + length;
2917
+ while (reader.pos < end) {
2918
+ let [fieldNo, wireType] = reader.tag();
2919
+ switch (fieldNo) {
2920
+ case /* optional string name */ 1:
2921
+ message.name = reader.string();
2922
+ break;
2923
+ case /* optional int32 number */ 2:
2924
+ message.number = reader.int32();
2925
+ break;
2926
+ case /* optional google.protobuf.EnumValueOptions options */ 3:
2927
+ message.options = EnumValueOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2928
+ break;
2929
+ default:
2930
+ let u = options.readUnknownField;
2931
+ if (u === "throw")
2932
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2933
+ let d = reader.skip(wireType);
2934
+ if (u !== false)
2935
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2936
+ }
2937
+ }
2938
+ return message;
2939
+ }
2940
+ internalBinaryWrite(message: EnumValueDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
2941
+ /* optional string name = 1; */
2942
+ if (message.name !== undefined)
2943
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
2944
+ /* optional int32 number = 2; */
2945
+ if (message.number !== undefined)
2946
+ writer.tag(2, WireType.Varint).int32(message.number);
2947
+ /* optional google.protobuf.EnumValueOptions options = 3; */
2948
+ if (message.options)
2949
+ EnumValueOptions.internalBinaryWrite(message.options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2950
+ let u = options.writeUnknownFields;
2951
+ if (u !== false)
2952
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2953
+ return writer;
2954
+ }
2955
+ }
2956
+ /**
2957
+ * @generated MessageType for protobuf message google.protobuf.EnumValueDescriptorProto
2958
+ */
2959
+ export const EnumValueDescriptorProto = new EnumValueDescriptorProto$Type();
2960
+ // @generated message type with reflection information, may provide speed optimized methods
2961
+ class ServiceDescriptorProto$Type extends MessageType<ServiceDescriptorProto> {
2962
+ constructor() {
2963
+ super("google.protobuf.ServiceDescriptorProto", [
2964
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
2965
+ { no: 2, name: "method", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MethodDescriptorProto },
2966
+ { no: 3, name: "options", kind: "message", T: () => ServiceOptions }
2967
+ ]);
2968
+ }
2969
+ create(value?: PartialMessage<ServiceDescriptorProto>): ServiceDescriptorProto {
2970
+ const message = globalThis.Object.create((this.messagePrototype!));
2971
+ message.method = [];
2972
+ if (value !== undefined)
2973
+ reflectionMergePartial<ServiceDescriptorProto>(this, message, value);
2974
+ return message;
2975
+ }
2976
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ServiceDescriptorProto): ServiceDescriptorProto {
2977
+ let message = target ?? this.create(), end = reader.pos + length;
2978
+ while (reader.pos < end) {
2979
+ let [fieldNo, wireType] = reader.tag();
2980
+ switch (fieldNo) {
2981
+ case /* optional string name */ 1:
2982
+ message.name = reader.string();
2983
+ break;
2984
+ case /* repeated google.protobuf.MethodDescriptorProto method */ 2:
2985
+ message.method.push(MethodDescriptorProto.internalBinaryRead(reader, reader.uint32(), options));
2986
+ break;
2987
+ case /* optional google.protobuf.ServiceOptions options */ 3:
2988
+ message.options = ServiceOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
2989
+ break;
2990
+ default:
2991
+ let u = options.readUnknownField;
2992
+ if (u === "throw")
2993
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2994
+ let d = reader.skip(wireType);
2995
+ if (u !== false)
2996
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2997
+ }
2998
+ }
2999
+ return message;
3000
+ }
3001
+ internalBinaryWrite(message: ServiceDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3002
+ /* optional string name = 1; */
3003
+ if (message.name !== undefined)
3004
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
3005
+ /* repeated google.protobuf.MethodDescriptorProto method = 2; */
3006
+ for (let i = 0; i < message.method.length; i++)
3007
+ MethodDescriptorProto.internalBinaryWrite(message.method[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3008
+ /* optional google.protobuf.ServiceOptions options = 3; */
3009
+ if (message.options)
3010
+ ServiceOptions.internalBinaryWrite(message.options, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
3011
+ let u = options.writeUnknownFields;
3012
+ if (u !== false)
3013
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3014
+ return writer;
3015
+ }
3016
+ }
3017
+ /**
3018
+ * @generated MessageType for protobuf message google.protobuf.ServiceDescriptorProto
3019
+ */
3020
+ export const ServiceDescriptorProto = new ServiceDescriptorProto$Type();
3021
+ // @generated message type with reflection information, may provide speed optimized methods
3022
+ class MethodDescriptorProto$Type extends MessageType<MethodDescriptorProto> {
3023
+ constructor() {
3024
+ super("google.protobuf.MethodDescriptorProto", [
3025
+ { no: 1, name: "name", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3026
+ { no: 2, name: "input_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3027
+ { no: 3, name: "output_type", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3028
+ { no: 4, name: "options", kind: "message", T: () => MethodOptions },
3029
+ { no: 5, name: "client_streaming", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3030
+ { no: 6, name: "server_streaming", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ }
3031
+ ]);
3032
+ }
3033
+ create(value?: PartialMessage<MethodDescriptorProto>): MethodDescriptorProto {
3034
+ const message = globalThis.Object.create((this.messagePrototype!));
3035
+ if (value !== undefined)
3036
+ reflectionMergePartial<MethodDescriptorProto>(this, message, value);
3037
+ return message;
3038
+ }
3039
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MethodDescriptorProto): MethodDescriptorProto {
3040
+ let message = target ?? this.create(), end = reader.pos + length;
3041
+ while (reader.pos < end) {
3042
+ let [fieldNo, wireType] = reader.tag();
3043
+ switch (fieldNo) {
3044
+ case /* optional string name */ 1:
3045
+ message.name = reader.string();
3046
+ break;
3047
+ case /* optional string input_type */ 2:
3048
+ message.inputType = reader.string();
3049
+ break;
3050
+ case /* optional string output_type */ 3:
3051
+ message.outputType = reader.string();
3052
+ break;
3053
+ case /* optional google.protobuf.MethodOptions options */ 4:
3054
+ message.options = MethodOptions.internalBinaryRead(reader, reader.uint32(), options, message.options);
3055
+ break;
3056
+ case /* optional bool client_streaming */ 5:
3057
+ message.clientStreaming = reader.bool();
3058
+ break;
3059
+ case /* optional bool server_streaming */ 6:
3060
+ message.serverStreaming = reader.bool();
3061
+ break;
3062
+ default:
3063
+ let u = options.readUnknownField;
3064
+ if (u === "throw")
3065
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3066
+ let d = reader.skip(wireType);
3067
+ if (u !== false)
3068
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3069
+ }
3070
+ }
3071
+ return message;
3072
+ }
3073
+ internalBinaryWrite(message: MethodDescriptorProto, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3074
+ /* optional string name = 1; */
3075
+ if (message.name !== undefined)
3076
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
3077
+ /* optional string input_type = 2; */
3078
+ if (message.inputType !== undefined)
3079
+ writer.tag(2, WireType.LengthDelimited).string(message.inputType);
3080
+ /* optional string output_type = 3; */
3081
+ if (message.outputType !== undefined)
3082
+ writer.tag(3, WireType.LengthDelimited).string(message.outputType);
3083
+ /* optional google.protobuf.MethodOptions options = 4; */
3084
+ if (message.options)
3085
+ MethodOptions.internalBinaryWrite(message.options, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
3086
+ /* optional bool client_streaming = 5; */
3087
+ if (message.clientStreaming !== undefined)
3088
+ writer.tag(5, WireType.Varint).bool(message.clientStreaming);
3089
+ /* optional bool server_streaming = 6; */
3090
+ if (message.serverStreaming !== undefined)
3091
+ writer.tag(6, WireType.Varint).bool(message.serverStreaming);
3092
+ let u = options.writeUnknownFields;
3093
+ if (u !== false)
3094
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3095
+ return writer;
3096
+ }
3097
+ }
3098
+ /**
3099
+ * @generated MessageType for protobuf message google.protobuf.MethodDescriptorProto
3100
+ */
3101
+ export const MethodDescriptorProto = new MethodDescriptorProto$Type();
3102
+ // @generated message type with reflection information, may provide speed optimized methods
3103
+ class FileOptions$Type extends MessageType<FileOptions> {
3104
+ constructor() {
3105
+ super("google.protobuf.FileOptions", [
3106
+ { no: 1, name: "java_package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3107
+ { no: 8, name: "java_outer_classname", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3108
+ { no: 10, name: "java_multiple_files", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3109
+ { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3110
+ { no: 27, name: "java_string_check_utf8", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3111
+ { no: 9, name: "optimize_for", kind: "enum", opt: true, T: () => ["google.protobuf.FileOptions.OptimizeMode", FileOptions_OptimizeMode] },
3112
+ { no: 11, name: "go_package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3113
+ { no: 16, name: "cc_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3114
+ { no: 17, name: "java_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3115
+ { no: 18, name: "py_generic_services", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3116
+ { no: 23, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3117
+ { no: 31, name: "cc_enable_arenas", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3118
+ { no: 36, name: "objc_class_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3119
+ { no: 37, name: "csharp_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3120
+ { no: 39, name: "swift_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3121
+ { no: 40, name: "php_class_prefix", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3122
+ { no: 41, name: "php_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3123
+ { no: 44, name: "php_metadata_namespace", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3124
+ { no: 45, name: "ruby_package", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3125
+ { no: 50, name: "features", kind: "message", T: () => FeatureSet },
3126
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3127
+ ]);
3128
+ }
3129
+ create(value?: PartialMessage<FileOptions>): FileOptions {
3130
+ const message = globalThis.Object.create((this.messagePrototype!));
3131
+ message.uninterpretedOption = [];
3132
+ if (value !== undefined)
3133
+ reflectionMergePartial<FileOptions>(this, message, value);
3134
+ return message;
3135
+ }
3136
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FileOptions): FileOptions {
3137
+ let message = target ?? this.create(), end = reader.pos + length;
3138
+ while (reader.pos < end) {
3139
+ let [fieldNo, wireType] = reader.tag();
3140
+ switch (fieldNo) {
3141
+ case /* optional string java_package */ 1:
3142
+ message.javaPackage = reader.string();
3143
+ break;
3144
+ case /* optional string java_outer_classname */ 8:
3145
+ message.javaOuterClassname = reader.string();
3146
+ break;
3147
+ case /* optional bool java_multiple_files */ 10:
3148
+ message.javaMultipleFiles = reader.bool();
3149
+ break;
3150
+ case /* optional bool java_generate_equals_and_hash = 20 [deprecated = true];*/ 20:
3151
+ message.javaGenerateEqualsAndHash = reader.bool();
3152
+ break;
3153
+ case /* optional bool java_string_check_utf8 */ 27:
3154
+ message.javaStringCheckUtf8 = reader.bool();
3155
+ break;
3156
+ case /* optional google.protobuf.FileOptions.OptimizeMode optimize_for */ 9:
3157
+ message.optimizeFor = reader.int32();
3158
+ break;
3159
+ case /* optional string go_package */ 11:
3160
+ message.goPackage = reader.string();
3161
+ break;
3162
+ case /* optional bool cc_generic_services */ 16:
3163
+ message.ccGenericServices = reader.bool();
3164
+ break;
3165
+ case /* optional bool java_generic_services */ 17:
3166
+ message.javaGenericServices = reader.bool();
3167
+ break;
3168
+ case /* optional bool py_generic_services */ 18:
3169
+ message.pyGenericServices = reader.bool();
3170
+ break;
3171
+ case /* optional bool deprecated */ 23:
3172
+ message.deprecated = reader.bool();
3173
+ break;
3174
+ case /* optional bool cc_enable_arenas */ 31:
3175
+ message.ccEnableArenas = reader.bool();
3176
+ break;
3177
+ case /* optional string objc_class_prefix */ 36:
3178
+ message.objcClassPrefix = reader.string();
3179
+ break;
3180
+ case /* optional string csharp_namespace */ 37:
3181
+ message.csharpNamespace = reader.string();
3182
+ break;
3183
+ case /* optional string swift_prefix */ 39:
3184
+ message.swiftPrefix = reader.string();
3185
+ break;
3186
+ case /* optional string php_class_prefix */ 40:
3187
+ message.phpClassPrefix = reader.string();
3188
+ break;
3189
+ case /* optional string php_namespace */ 41:
3190
+ message.phpNamespace = reader.string();
3191
+ break;
3192
+ case /* optional string php_metadata_namespace */ 44:
3193
+ message.phpMetadataNamespace = reader.string();
3194
+ break;
3195
+ case /* optional string ruby_package */ 45:
3196
+ message.rubyPackage = reader.string();
3197
+ break;
3198
+ case /* optional google.protobuf.FeatureSet features */ 50:
3199
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3200
+ break;
3201
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3202
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3203
+ break;
3204
+ default:
3205
+ let u = options.readUnknownField;
3206
+ if (u === "throw")
3207
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3208
+ let d = reader.skip(wireType);
3209
+ if (u !== false)
3210
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3211
+ }
3212
+ }
3213
+ return message;
3214
+ }
3215
+ internalBinaryWrite(message: FileOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3216
+ /* optional string java_package = 1; */
3217
+ if (message.javaPackage !== undefined)
3218
+ writer.tag(1, WireType.LengthDelimited).string(message.javaPackage);
3219
+ /* optional string java_outer_classname = 8; */
3220
+ if (message.javaOuterClassname !== undefined)
3221
+ writer.tag(8, WireType.LengthDelimited).string(message.javaOuterClassname);
3222
+ /* optional bool java_multiple_files = 10; */
3223
+ if (message.javaMultipleFiles !== undefined)
3224
+ writer.tag(10, WireType.Varint).bool(message.javaMultipleFiles);
3225
+ /* optional bool java_generate_equals_and_hash = 20 [deprecated = true]; */
3226
+ if (message.javaGenerateEqualsAndHash !== undefined)
3227
+ writer.tag(20, WireType.Varint).bool(message.javaGenerateEqualsAndHash);
3228
+ /* optional bool java_string_check_utf8 = 27; */
3229
+ if (message.javaStringCheckUtf8 !== undefined)
3230
+ writer.tag(27, WireType.Varint).bool(message.javaStringCheckUtf8);
3231
+ /* optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9; */
3232
+ if (message.optimizeFor !== undefined)
3233
+ writer.tag(9, WireType.Varint).int32(message.optimizeFor);
3234
+ /* optional string go_package = 11; */
3235
+ if (message.goPackage !== undefined)
3236
+ writer.tag(11, WireType.LengthDelimited).string(message.goPackage);
3237
+ /* optional bool cc_generic_services = 16; */
3238
+ if (message.ccGenericServices !== undefined)
3239
+ writer.tag(16, WireType.Varint).bool(message.ccGenericServices);
3240
+ /* optional bool java_generic_services = 17; */
3241
+ if (message.javaGenericServices !== undefined)
3242
+ writer.tag(17, WireType.Varint).bool(message.javaGenericServices);
3243
+ /* optional bool py_generic_services = 18; */
3244
+ if (message.pyGenericServices !== undefined)
3245
+ writer.tag(18, WireType.Varint).bool(message.pyGenericServices);
3246
+ /* optional bool deprecated = 23; */
3247
+ if (message.deprecated !== undefined)
3248
+ writer.tag(23, WireType.Varint).bool(message.deprecated);
3249
+ /* optional bool cc_enable_arenas = 31; */
3250
+ if (message.ccEnableArenas !== undefined)
3251
+ writer.tag(31, WireType.Varint).bool(message.ccEnableArenas);
3252
+ /* optional string objc_class_prefix = 36; */
3253
+ if (message.objcClassPrefix !== undefined)
3254
+ writer.tag(36, WireType.LengthDelimited).string(message.objcClassPrefix);
3255
+ /* optional string csharp_namespace = 37; */
3256
+ if (message.csharpNamespace !== undefined)
3257
+ writer.tag(37, WireType.LengthDelimited).string(message.csharpNamespace);
3258
+ /* optional string swift_prefix = 39; */
3259
+ if (message.swiftPrefix !== undefined)
3260
+ writer.tag(39, WireType.LengthDelimited).string(message.swiftPrefix);
3261
+ /* optional string php_class_prefix = 40; */
3262
+ if (message.phpClassPrefix !== undefined)
3263
+ writer.tag(40, WireType.LengthDelimited).string(message.phpClassPrefix);
3264
+ /* optional string php_namespace = 41; */
3265
+ if (message.phpNamespace !== undefined)
3266
+ writer.tag(41, WireType.LengthDelimited).string(message.phpNamespace);
3267
+ /* optional string php_metadata_namespace = 44; */
3268
+ if (message.phpMetadataNamespace !== undefined)
3269
+ writer.tag(44, WireType.LengthDelimited).string(message.phpMetadataNamespace);
3270
+ /* optional string ruby_package = 45; */
3271
+ if (message.rubyPackage !== undefined)
3272
+ writer.tag(45, WireType.LengthDelimited).string(message.rubyPackage);
3273
+ /* optional google.protobuf.FeatureSet features = 50; */
3274
+ if (message.features)
3275
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(50, WireType.LengthDelimited).fork(), options).join();
3276
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3277
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3278
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3279
+ let u = options.writeUnknownFields;
3280
+ if (u !== false)
3281
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3282
+ return writer;
3283
+ }
3284
+ }
3285
+ /**
3286
+ * @generated MessageType for protobuf message google.protobuf.FileOptions
3287
+ */
3288
+ export const FileOptions = new FileOptions$Type();
3289
+ // @generated message type with reflection information, may provide speed optimized methods
3290
+ class MessageOptions$Type extends MessageType<MessageOptions> {
3291
+ constructor() {
3292
+ super("google.protobuf.MessageOptions", [
3293
+ { no: 1, name: "message_set_wire_format", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3294
+ { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3295
+ { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3296
+ { no: 7, name: "map_entry", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3297
+ { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3298
+ { no: 12, name: "features", kind: "message", T: () => FeatureSet },
3299
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3300
+ ]);
3301
+ }
3302
+ create(value?: PartialMessage<MessageOptions>): MessageOptions {
3303
+ const message = globalThis.Object.create((this.messagePrototype!));
3304
+ message.uninterpretedOption = [];
3305
+ if (value !== undefined)
3306
+ reflectionMergePartial<MessageOptions>(this, message, value);
3307
+ return message;
3308
+ }
3309
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MessageOptions): MessageOptions {
3310
+ let message = target ?? this.create(), end = reader.pos + length;
3311
+ while (reader.pos < end) {
3312
+ let [fieldNo, wireType] = reader.tag();
3313
+ switch (fieldNo) {
3314
+ case /* optional bool message_set_wire_format */ 1:
3315
+ message.messageSetWireFormat = reader.bool();
3316
+ break;
3317
+ case /* optional bool no_standard_descriptor_accessor */ 2:
3318
+ message.noStandardDescriptorAccessor = reader.bool();
3319
+ break;
3320
+ case /* optional bool deprecated */ 3:
3321
+ message.deprecated = reader.bool();
3322
+ break;
3323
+ case /* optional bool map_entry */ 7:
3324
+ message.mapEntry = reader.bool();
3325
+ break;
3326
+ case /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];*/ 11:
3327
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
3328
+ break;
3329
+ case /* optional google.protobuf.FeatureSet features */ 12:
3330
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3331
+ break;
3332
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3333
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3334
+ break;
3335
+ default:
3336
+ let u = options.readUnknownField;
3337
+ if (u === "throw")
3338
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3339
+ let d = reader.skip(wireType);
3340
+ if (u !== false)
3341
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3342
+ }
3343
+ }
3344
+ return message;
3345
+ }
3346
+ internalBinaryWrite(message: MessageOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3347
+ /* optional bool message_set_wire_format = 1; */
3348
+ if (message.messageSetWireFormat !== undefined)
3349
+ writer.tag(1, WireType.Varint).bool(message.messageSetWireFormat);
3350
+ /* optional bool no_standard_descriptor_accessor = 2; */
3351
+ if (message.noStandardDescriptorAccessor !== undefined)
3352
+ writer.tag(2, WireType.Varint).bool(message.noStandardDescriptorAccessor);
3353
+ /* optional bool deprecated = 3; */
3354
+ if (message.deprecated !== undefined)
3355
+ writer.tag(3, WireType.Varint).bool(message.deprecated);
3356
+ /* optional bool map_entry = 7; */
3357
+ if (message.mapEntry !== undefined)
3358
+ writer.tag(7, WireType.Varint).bool(message.mapEntry);
3359
+ /* optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true]; */
3360
+ if (message.deprecatedLegacyJsonFieldConflicts !== undefined)
3361
+ writer.tag(11, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts);
3362
+ /* optional google.protobuf.FeatureSet features = 12; */
3363
+ if (message.features)
3364
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(12, WireType.LengthDelimited).fork(), options).join();
3365
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3366
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3367
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3368
+ let u = options.writeUnknownFields;
3369
+ if (u !== false)
3370
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3371
+ return writer;
3372
+ }
3373
+ }
3374
+ /**
3375
+ * @generated MessageType for protobuf message google.protobuf.MessageOptions
3376
+ */
3377
+ export const MessageOptions = new MessageOptions$Type();
3378
+ // @generated message type with reflection information, may provide speed optimized methods
3379
+ class FieldOptions$Type extends MessageType<FieldOptions> {
3380
+ constructor() {
3381
+ super("google.protobuf.FieldOptions", [
3382
+ { no: 1, name: "ctype", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.CType", FieldOptions_CType] },
3383
+ { no: 2, name: "packed", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3384
+ { no: 6, name: "jstype", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.JSType", FieldOptions_JSType] },
3385
+ { no: 5, name: "lazy", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3386
+ { no: 15, name: "unverified_lazy", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3387
+ { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3388
+ { no: 10, name: "weak", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3389
+ { no: 16, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3390
+ { no: 17, name: "retention", kind: "enum", opt: true, T: () => ["google.protobuf.FieldOptions.OptionRetention", FieldOptions_OptionRetention] },
3391
+ { no: 19, name: "targets", kind: "enum", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ["google.protobuf.FieldOptions.OptionTargetType", FieldOptions_OptionTargetType] },
3392
+ { no: 20, name: "edition_defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FieldOptions_EditionDefault },
3393
+ { no: 21, name: "features", kind: "message", T: () => FeatureSet },
3394
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3395
+ ]);
3396
+ }
3397
+ create(value?: PartialMessage<FieldOptions>): FieldOptions {
3398
+ const message = globalThis.Object.create((this.messagePrototype!));
3399
+ message.targets = [];
3400
+ message.editionDefaults = [];
3401
+ message.uninterpretedOption = [];
3402
+ if (value !== undefined)
3403
+ reflectionMergePartial<FieldOptions>(this, message, value);
3404
+ return message;
3405
+ }
3406
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions): FieldOptions {
3407
+ let message = target ?? this.create(), end = reader.pos + length;
3408
+ while (reader.pos < end) {
3409
+ let [fieldNo, wireType] = reader.tag();
3410
+ switch (fieldNo) {
3411
+ case /* optional google.protobuf.FieldOptions.CType ctype */ 1:
3412
+ message.ctype = reader.int32();
3413
+ break;
3414
+ case /* optional bool packed */ 2:
3415
+ message.packed = reader.bool();
3416
+ break;
3417
+ case /* optional google.protobuf.FieldOptions.JSType jstype */ 6:
3418
+ message.jstype = reader.int32();
3419
+ break;
3420
+ case /* optional bool lazy */ 5:
3421
+ message.lazy = reader.bool();
3422
+ break;
3423
+ case /* optional bool unverified_lazy */ 15:
3424
+ message.unverifiedLazy = reader.bool();
3425
+ break;
3426
+ case /* optional bool deprecated */ 3:
3427
+ message.deprecated = reader.bool();
3428
+ break;
3429
+ case /* optional bool weak */ 10:
3430
+ message.weak = reader.bool();
3431
+ break;
3432
+ case /* optional bool debug_redact */ 16:
3433
+ message.debugRedact = reader.bool();
3434
+ break;
3435
+ case /* optional google.protobuf.FieldOptions.OptionRetention retention */ 17:
3436
+ message.retention = reader.int32();
3437
+ break;
3438
+ case /* repeated google.protobuf.FieldOptions.OptionTargetType targets */ 19:
3439
+ if (wireType === WireType.LengthDelimited)
3440
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
3441
+ message.targets.push(reader.int32());
3442
+ else
3443
+ message.targets.push(reader.int32());
3444
+ break;
3445
+ case /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults */ 20:
3446
+ message.editionDefaults.push(FieldOptions_EditionDefault.internalBinaryRead(reader, reader.uint32(), options));
3447
+ break;
3448
+ case /* optional google.protobuf.FeatureSet features */ 21:
3449
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3450
+ break;
3451
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3452
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3453
+ break;
3454
+ default:
3455
+ let u = options.readUnknownField;
3456
+ if (u === "throw")
3457
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3458
+ let d = reader.skip(wireType);
3459
+ if (u !== false)
3460
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3461
+ }
3462
+ }
3463
+ return message;
3464
+ }
3465
+ internalBinaryWrite(message: FieldOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3466
+ /* optional google.protobuf.FieldOptions.CType ctype = 1; */
3467
+ if (message.ctype !== undefined)
3468
+ writer.tag(1, WireType.Varint).int32(message.ctype);
3469
+ /* optional bool packed = 2; */
3470
+ if (message.packed !== undefined)
3471
+ writer.tag(2, WireType.Varint).bool(message.packed);
3472
+ /* optional google.protobuf.FieldOptions.JSType jstype = 6; */
3473
+ if (message.jstype !== undefined)
3474
+ writer.tag(6, WireType.Varint).int32(message.jstype);
3475
+ /* optional bool lazy = 5; */
3476
+ if (message.lazy !== undefined)
3477
+ writer.tag(5, WireType.Varint).bool(message.lazy);
3478
+ /* optional bool unverified_lazy = 15; */
3479
+ if (message.unverifiedLazy !== undefined)
3480
+ writer.tag(15, WireType.Varint).bool(message.unverifiedLazy);
3481
+ /* optional bool deprecated = 3; */
3482
+ if (message.deprecated !== undefined)
3483
+ writer.tag(3, WireType.Varint).bool(message.deprecated);
3484
+ /* optional bool weak = 10; */
3485
+ if (message.weak !== undefined)
3486
+ writer.tag(10, WireType.Varint).bool(message.weak);
3487
+ /* optional bool debug_redact = 16; */
3488
+ if (message.debugRedact !== undefined)
3489
+ writer.tag(16, WireType.Varint).bool(message.debugRedact);
3490
+ /* optional google.protobuf.FieldOptions.OptionRetention retention = 17; */
3491
+ if (message.retention !== undefined)
3492
+ writer.tag(17, WireType.Varint).int32(message.retention);
3493
+ /* repeated google.protobuf.FieldOptions.OptionTargetType targets = 19; */
3494
+ for (let i = 0; i < message.targets.length; i++)
3495
+ writer.tag(19, WireType.Varint).int32(message.targets[i]);
3496
+ /* repeated google.protobuf.FieldOptions.EditionDefault edition_defaults = 20; */
3497
+ for (let i = 0; i < message.editionDefaults.length; i++)
3498
+ FieldOptions_EditionDefault.internalBinaryWrite(message.editionDefaults[i], writer.tag(20, WireType.LengthDelimited).fork(), options).join();
3499
+ /* optional google.protobuf.FeatureSet features = 21; */
3500
+ if (message.features)
3501
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(21, WireType.LengthDelimited).fork(), options).join();
3502
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3503
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3504
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3505
+ let u = options.writeUnknownFields;
3506
+ if (u !== false)
3507
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3508
+ return writer;
3509
+ }
3510
+ }
3511
+ /**
3512
+ * @generated MessageType for protobuf message google.protobuf.FieldOptions
3513
+ */
3514
+ export const FieldOptions = new FieldOptions$Type();
3515
+ // @generated message type with reflection information, may provide speed optimized methods
3516
+ class FieldOptions_EditionDefault$Type extends MessageType<FieldOptions_EditionDefault> {
3517
+ constructor() {
3518
+ super("google.protobuf.FieldOptions.EditionDefault", [
3519
+ { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
3520
+ { no: 2, name: "value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
3521
+ ]);
3522
+ }
3523
+ create(value?: PartialMessage<FieldOptions_EditionDefault>): FieldOptions_EditionDefault {
3524
+ const message = globalThis.Object.create((this.messagePrototype!));
3525
+ if (value !== undefined)
3526
+ reflectionMergePartial<FieldOptions_EditionDefault>(this, message, value);
3527
+ return message;
3528
+ }
3529
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FieldOptions_EditionDefault): FieldOptions_EditionDefault {
3530
+ let message = target ?? this.create(), end = reader.pos + length;
3531
+ while (reader.pos < end) {
3532
+ let [fieldNo, wireType] = reader.tag();
3533
+ switch (fieldNo) {
3534
+ case /* optional google.protobuf.Edition edition */ 3:
3535
+ message.edition = reader.int32();
3536
+ break;
3537
+ case /* optional string value */ 2:
3538
+ message.value = reader.string();
3539
+ break;
3540
+ default:
3541
+ let u = options.readUnknownField;
3542
+ if (u === "throw")
3543
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3544
+ let d = reader.skip(wireType);
3545
+ if (u !== false)
3546
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3547
+ }
3548
+ }
3549
+ return message;
3550
+ }
3551
+ internalBinaryWrite(message: FieldOptions_EditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3552
+ /* optional google.protobuf.Edition edition = 3; */
3553
+ if (message.edition !== undefined)
3554
+ writer.tag(3, WireType.Varint).int32(message.edition);
3555
+ /* optional string value = 2; */
3556
+ if (message.value !== undefined)
3557
+ writer.tag(2, WireType.LengthDelimited).string(message.value);
3558
+ let u = options.writeUnknownFields;
3559
+ if (u !== false)
3560
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3561
+ return writer;
3562
+ }
3563
+ }
3564
+ /**
3565
+ * @generated MessageType for protobuf message google.protobuf.FieldOptions.EditionDefault
3566
+ */
3567
+ export const FieldOptions_EditionDefault = new FieldOptions_EditionDefault$Type();
3568
+ // @generated message type with reflection information, may provide speed optimized methods
3569
+ class OneofOptions$Type extends MessageType<OneofOptions> {
3570
+ constructor() {
3571
+ super("google.protobuf.OneofOptions", [
3572
+ { no: 1, name: "features", kind: "message", T: () => FeatureSet },
3573
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3574
+ ]);
3575
+ }
3576
+ create(value?: PartialMessage<OneofOptions>): OneofOptions {
3577
+ const message = globalThis.Object.create((this.messagePrototype!));
3578
+ message.uninterpretedOption = [];
3579
+ if (value !== undefined)
3580
+ reflectionMergePartial<OneofOptions>(this, message, value);
3581
+ return message;
3582
+ }
3583
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OneofOptions): OneofOptions {
3584
+ let message = target ?? this.create(), end = reader.pos + length;
3585
+ while (reader.pos < end) {
3586
+ let [fieldNo, wireType] = reader.tag();
3587
+ switch (fieldNo) {
3588
+ case /* optional google.protobuf.FeatureSet features */ 1:
3589
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3590
+ break;
3591
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3592
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3593
+ break;
3594
+ default:
3595
+ let u = options.readUnknownField;
3596
+ if (u === "throw")
3597
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3598
+ let d = reader.skip(wireType);
3599
+ if (u !== false)
3600
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3601
+ }
3602
+ }
3603
+ return message;
3604
+ }
3605
+ internalBinaryWrite(message: OneofOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3606
+ /* optional google.protobuf.FeatureSet features = 1; */
3607
+ if (message.features)
3608
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
3609
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3610
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3611
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3612
+ let u = options.writeUnknownFields;
3613
+ if (u !== false)
3614
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3615
+ return writer;
3616
+ }
3617
+ }
3618
+ /**
3619
+ * @generated MessageType for protobuf message google.protobuf.OneofOptions
3620
+ */
3621
+ export const OneofOptions = new OneofOptions$Type();
3622
+ // @generated message type with reflection information, may provide speed optimized methods
3623
+ class EnumOptions$Type extends MessageType<EnumOptions> {
3624
+ constructor() {
3625
+ super("google.protobuf.EnumOptions", [
3626
+ { no: 2, name: "allow_alias", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3627
+ { no: 3, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3628
+ { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3629
+ { no: 7, name: "features", kind: "message", T: () => FeatureSet },
3630
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3631
+ ]);
3632
+ }
3633
+ create(value?: PartialMessage<EnumOptions>): EnumOptions {
3634
+ const message = globalThis.Object.create((this.messagePrototype!));
3635
+ message.uninterpretedOption = [];
3636
+ if (value !== undefined)
3637
+ reflectionMergePartial<EnumOptions>(this, message, value);
3638
+ return message;
3639
+ }
3640
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumOptions): EnumOptions {
3641
+ let message = target ?? this.create(), end = reader.pos + length;
3642
+ while (reader.pos < end) {
3643
+ let [fieldNo, wireType] = reader.tag();
3644
+ switch (fieldNo) {
3645
+ case /* optional bool allow_alias */ 2:
3646
+ message.allowAlias = reader.bool();
3647
+ break;
3648
+ case /* optional bool deprecated */ 3:
3649
+ message.deprecated = reader.bool();
3650
+ break;
3651
+ case /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];*/ 6:
3652
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
3653
+ break;
3654
+ case /* optional google.protobuf.FeatureSet features */ 7:
3655
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3656
+ break;
3657
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3658
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3659
+ break;
3660
+ default:
3661
+ let u = options.readUnknownField;
3662
+ if (u === "throw")
3663
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3664
+ let d = reader.skip(wireType);
3665
+ if (u !== false)
3666
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3667
+ }
3668
+ }
3669
+ return message;
3670
+ }
3671
+ internalBinaryWrite(message: EnumOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3672
+ /* optional bool allow_alias = 2; */
3673
+ if (message.allowAlias !== undefined)
3674
+ writer.tag(2, WireType.Varint).bool(message.allowAlias);
3675
+ /* optional bool deprecated = 3; */
3676
+ if (message.deprecated !== undefined)
3677
+ writer.tag(3, WireType.Varint).bool(message.deprecated);
3678
+ /* optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true]; */
3679
+ if (message.deprecatedLegacyJsonFieldConflicts !== undefined)
3680
+ writer.tag(6, WireType.Varint).bool(message.deprecatedLegacyJsonFieldConflicts);
3681
+ /* optional google.protobuf.FeatureSet features = 7; */
3682
+ if (message.features)
3683
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
3684
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3685
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3686
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3687
+ let u = options.writeUnknownFields;
3688
+ if (u !== false)
3689
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3690
+ return writer;
3691
+ }
3692
+ }
3693
+ /**
3694
+ * @generated MessageType for protobuf message google.protobuf.EnumOptions
3695
+ */
3696
+ export const EnumOptions = new EnumOptions$Type();
3697
+ // @generated message type with reflection information, may provide speed optimized methods
3698
+ class EnumValueOptions$Type extends MessageType<EnumValueOptions> {
3699
+ constructor() {
3700
+ super("google.protobuf.EnumValueOptions", [
3701
+ { no: 1, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3702
+ { no: 2, name: "features", kind: "message", T: () => FeatureSet },
3703
+ { no: 3, name: "debug_redact", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3704
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3705
+ ]);
3706
+ }
3707
+ create(value?: PartialMessage<EnumValueOptions>): EnumValueOptions {
3708
+ const message = globalThis.Object.create((this.messagePrototype!));
3709
+ message.uninterpretedOption = [];
3710
+ if (value !== undefined)
3711
+ reflectionMergePartial<EnumValueOptions>(this, message, value);
3712
+ return message;
3713
+ }
3714
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: EnumValueOptions): EnumValueOptions {
3715
+ let message = target ?? this.create(), end = reader.pos + length;
3716
+ while (reader.pos < end) {
3717
+ let [fieldNo, wireType] = reader.tag();
3718
+ switch (fieldNo) {
3719
+ case /* optional bool deprecated */ 1:
3720
+ message.deprecated = reader.bool();
3721
+ break;
3722
+ case /* optional google.protobuf.FeatureSet features */ 2:
3723
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3724
+ break;
3725
+ case /* optional bool debug_redact */ 3:
3726
+ message.debugRedact = reader.bool();
3727
+ break;
3728
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3729
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3730
+ break;
3731
+ default:
3732
+ let u = options.readUnknownField;
3733
+ if (u === "throw")
3734
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3735
+ let d = reader.skip(wireType);
3736
+ if (u !== false)
3737
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3738
+ }
3739
+ }
3740
+ return message;
3741
+ }
3742
+ internalBinaryWrite(message: EnumValueOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3743
+ /* optional bool deprecated = 1; */
3744
+ if (message.deprecated !== undefined)
3745
+ writer.tag(1, WireType.Varint).bool(message.deprecated);
3746
+ /* optional google.protobuf.FeatureSet features = 2; */
3747
+ if (message.features)
3748
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3749
+ /* optional bool debug_redact = 3; */
3750
+ if (message.debugRedact !== undefined)
3751
+ writer.tag(3, WireType.Varint).bool(message.debugRedact);
3752
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3753
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3754
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3755
+ let u = options.writeUnknownFields;
3756
+ if (u !== false)
3757
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3758
+ return writer;
3759
+ }
3760
+ }
3761
+ /**
3762
+ * @generated MessageType for protobuf message google.protobuf.EnumValueOptions
3763
+ */
3764
+ export const EnumValueOptions = new EnumValueOptions$Type();
3765
+ // @generated message type with reflection information, may provide speed optimized methods
3766
+ class ServiceOptions$Type extends MessageType<ServiceOptions> {
3767
+ constructor() {
3768
+ super("google.protobuf.ServiceOptions", [
3769
+ { no: 34, name: "features", kind: "message", T: () => FeatureSet },
3770
+ { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3771
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3772
+ ]);
3773
+ }
3774
+ create(value?: PartialMessage<ServiceOptions>): ServiceOptions {
3775
+ const message = globalThis.Object.create((this.messagePrototype!));
3776
+ message.uninterpretedOption = [];
3777
+ if (value !== undefined)
3778
+ reflectionMergePartial<ServiceOptions>(this, message, value);
3779
+ return message;
3780
+ }
3781
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ServiceOptions): ServiceOptions {
3782
+ let message = target ?? this.create(), end = reader.pos + length;
3783
+ while (reader.pos < end) {
3784
+ let [fieldNo, wireType] = reader.tag();
3785
+ switch (fieldNo) {
3786
+ case /* optional google.protobuf.FeatureSet features */ 34:
3787
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3788
+ break;
3789
+ case /* optional bool deprecated */ 33:
3790
+ message.deprecated = reader.bool();
3791
+ break;
3792
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3793
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3794
+ break;
3795
+ default:
3796
+ let u = options.readUnknownField;
3797
+ if (u === "throw")
3798
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3799
+ let d = reader.skip(wireType);
3800
+ if (u !== false)
3801
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3802
+ }
3803
+ }
3804
+ return message;
3805
+ }
3806
+ internalBinaryWrite(message: ServiceOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3807
+ /* optional google.protobuf.FeatureSet features = 34; */
3808
+ if (message.features)
3809
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(34, WireType.LengthDelimited).fork(), options).join();
3810
+ /* optional bool deprecated = 33; */
3811
+ if (message.deprecated !== undefined)
3812
+ writer.tag(33, WireType.Varint).bool(message.deprecated);
3813
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3814
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3815
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3816
+ let u = options.writeUnknownFields;
3817
+ if (u !== false)
3818
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3819
+ return writer;
3820
+ }
3821
+ }
3822
+ /**
3823
+ * @generated MessageType for protobuf message google.protobuf.ServiceOptions
3824
+ */
3825
+ export const ServiceOptions = new ServiceOptions$Type();
3826
+ // @generated message type with reflection information, may provide speed optimized methods
3827
+ class MethodOptions$Type extends MessageType<MethodOptions> {
3828
+ constructor() {
3829
+ super("google.protobuf.MethodOptions", [
3830
+ { no: 33, name: "deprecated", kind: "scalar", opt: true, T: 8 /*ScalarType.BOOL*/ },
3831
+ { no: 34, name: "idempotency_level", kind: "enum", opt: true, T: () => ["google.protobuf.MethodOptions.IdempotencyLevel", MethodOptions_IdempotencyLevel] },
3832
+ { no: 35, name: "features", kind: "message", T: () => FeatureSet },
3833
+ { no: 999, name: "uninterpreted_option", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption }
3834
+ ]);
3835
+ }
3836
+ create(value?: PartialMessage<MethodOptions>): MethodOptions {
3837
+ const message = globalThis.Object.create((this.messagePrototype!));
3838
+ message.uninterpretedOption = [];
3839
+ if (value !== undefined)
3840
+ reflectionMergePartial<MethodOptions>(this, message, value);
3841
+ return message;
3842
+ }
3843
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MethodOptions): MethodOptions {
3844
+ let message = target ?? this.create(), end = reader.pos + length;
3845
+ while (reader.pos < end) {
3846
+ let [fieldNo, wireType] = reader.tag();
3847
+ switch (fieldNo) {
3848
+ case /* optional bool deprecated */ 33:
3849
+ message.deprecated = reader.bool();
3850
+ break;
3851
+ case /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level */ 34:
3852
+ message.idempotencyLevel = reader.int32();
3853
+ break;
3854
+ case /* optional google.protobuf.FeatureSet features */ 35:
3855
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
3856
+ break;
3857
+ case /* repeated google.protobuf.UninterpretedOption uninterpreted_option */ 999:
3858
+ message.uninterpretedOption.push(UninterpretedOption.internalBinaryRead(reader, reader.uint32(), options));
3859
+ break;
3860
+ default:
3861
+ let u = options.readUnknownField;
3862
+ if (u === "throw")
3863
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3864
+ let d = reader.skip(wireType);
3865
+ if (u !== false)
3866
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3867
+ }
3868
+ }
3869
+ return message;
3870
+ }
3871
+ internalBinaryWrite(message: MethodOptions, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3872
+ /* optional bool deprecated = 33; */
3873
+ if (message.deprecated !== undefined)
3874
+ writer.tag(33, WireType.Varint).bool(message.deprecated);
3875
+ /* optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34; */
3876
+ if (message.idempotencyLevel !== undefined)
3877
+ writer.tag(34, WireType.Varint).int32(message.idempotencyLevel);
3878
+ /* optional google.protobuf.FeatureSet features = 35; */
3879
+ if (message.features)
3880
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(35, WireType.LengthDelimited).fork(), options).join();
3881
+ /* repeated google.protobuf.UninterpretedOption uninterpreted_option = 999; */
3882
+ for (let i = 0; i < message.uninterpretedOption.length; i++)
3883
+ UninterpretedOption.internalBinaryWrite(message.uninterpretedOption[i], writer.tag(999, WireType.LengthDelimited).fork(), options).join();
3884
+ let u = options.writeUnknownFields;
3885
+ if (u !== false)
3886
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3887
+ return writer;
3888
+ }
3889
+ }
3890
+ /**
3891
+ * @generated MessageType for protobuf message google.protobuf.MethodOptions
3892
+ */
3893
+ export const MethodOptions = new MethodOptions$Type();
3894
+ // @generated message type with reflection information, may provide speed optimized methods
3895
+ class UninterpretedOption$Type extends MessageType<UninterpretedOption> {
3896
+ constructor() {
3897
+ super("google.protobuf.UninterpretedOption", [
3898
+ { no: 2, name: "name", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => UninterpretedOption_NamePart },
3899
+ { no: 3, name: "identifier_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
3900
+ { no: 4, name: "positive_int_value", kind: "scalar", opt: true, T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
3901
+ { no: 5, name: "negative_int_value", kind: "scalar", opt: true, T: 3 /*ScalarType.INT64*/, L: 0 /*LongType.BIGINT*/ },
3902
+ { no: 6, name: "double_value", kind: "scalar", opt: true, T: 1 /*ScalarType.DOUBLE*/ },
3903
+ { no: 7, name: "string_value", kind: "scalar", opt: true, T: 12 /*ScalarType.BYTES*/ },
3904
+ { no: 8, name: "aggregate_value", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ }
3905
+ ]);
3906
+ }
3907
+ create(value?: PartialMessage<UninterpretedOption>): UninterpretedOption {
3908
+ const message = globalThis.Object.create((this.messagePrototype!));
3909
+ message.name = [];
3910
+ if (value !== undefined)
3911
+ reflectionMergePartial<UninterpretedOption>(this, message, value);
3912
+ return message;
3913
+ }
3914
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UninterpretedOption): UninterpretedOption {
3915
+ let message = target ?? this.create(), end = reader.pos + length;
3916
+ while (reader.pos < end) {
3917
+ let [fieldNo, wireType] = reader.tag();
3918
+ switch (fieldNo) {
3919
+ case /* repeated google.protobuf.UninterpretedOption.NamePart name */ 2:
3920
+ message.name.push(UninterpretedOption_NamePart.internalBinaryRead(reader, reader.uint32(), options));
3921
+ break;
3922
+ case /* optional string identifier_value */ 3:
3923
+ message.identifierValue = reader.string();
3924
+ break;
3925
+ case /* optional uint64 positive_int_value */ 4:
3926
+ message.positiveIntValue = reader.uint64().toBigInt();
3927
+ break;
3928
+ case /* optional int64 negative_int_value */ 5:
3929
+ message.negativeIntValue = reader.int64().toBigInt();
3930
+ break;
3931
+ case /* optional double double_value */ 6:
3932
+ message.doubleValue = reader.double();
3933
+ break;
3934
+ case /* optional bytes string_value */ 7:
3935
+ message.stringValue = reader.bytes();
3936
+ break;
3937
+ case /* optional string aggregate_value */ 8:
3938
+ message.aggregateValue = reader.string();
3939
+ break;
3940
+ default:
3941
+ let u = options.readUnknownField;
3942
+ if (u === "throw")
3943
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
3944
+ let d = reader.skip(wireType);
3945
+ if (u !== false)
3946
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
3947
+ }
3948
+ }
3949
+ return message;
3950
+ }
3951
+ internalBinaryWrite(message: UninterpretedOption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
3952
+ /* repeated google.protobuf.UninterpretedOption.NamePart name = 2; */
3953
+ for (let i = 0; i < message.name.length; i++)
3954
+ UninterpretedOption_NamePart.internalBinaryWrite(message.name[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
3955
+ /* optional string identifier_value = 3; */
3956
+ if (message.identifierValue !== undefined)
3957
+ writer.tag(3, WireType.LengthDelimited).string(message.identifierValue);
3958
+ /* optional uint64 positive_int_value = 4; */
3959
+ if (message.positiveIntValue !== undefined)
3960
+ writer.tag(4, WireType.Varint).uint64(message.positiveIntValue);
3961
+ /* optional int64 negative_int_value = 5; */
3962
+ if (message.negativeIntValue !== undefined)
3963
+ writer.tag(5, WireType.Varint).int64(message.negativeIntValue);
3964
+ /* optional double double_value = 6; */
3965
+ if (message.doubleValue !== undefined)
3966
+ writer.tag(6, WireType.Bit64).double(message.doubleValue);
3967
+ /* optional bytes string_value = 7; */
3968
+ if (message.stringValue !== undefined)
3969
+ writer.tag(7, WireType.LengthDelimited).bytes(message.stringValue);
3970
+ /* optional string aggregate_value = 8; */
3971
+ if (message.aggregateValue !== undefined)
3972
+ writer.tag(8, WireType.LengthDelimited).string(message.aggregateValue);
3973
+ let u = options.writeUnknownFields;
3974
+ if (u !== false)
3975
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
3976
+ return writer;
3977
+ }
3978
+ }
3979
+ /**
3980
+ * @generated MessageType for protobuf message google.protobuf.UninterpretedOption
3981
+ */
3982
+ export const UninterpretedOption = new UninterpretedOption$Type();
3983
+ // @generated message type with reflection information, may provide speed optimized methods
3984
+ class UninterpretedOption_NamePart$Type extends MessageType<UninterpretedOption_NamePart> {
3985
+ constructor() {
3986
+ super("google.protobuf.UninterpretedOption.NamePart", [
3987
+ { no: 1, name: "name_part", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
3988
+ { no: 2, name: "is_extension", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
3989
+ ]);
3990
+ }
3991
+ create(value?: PartialMessage<UninterpretedOption_NamePart>): UninterpretedOption_NamePart {
3992
+ const message = globalThis.Object.create((this.messagePrototype!));
3993
+ message.namePart = "";
3994
+ message.isExtension = false;
3995
+ if (value !== undefined)
3996
+ reflectionMergePartial<UninterpretedOption_NamePart>(this, message, value);
3997
+ return message;
3998
+ }
3999
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UninterpretedOption_NamePart): UninterpretedOption_NamePart {
4000
+ let message = target ?? this.create(), end = reader.pos + length;
4001
+ while (reader.pos < end) {
4002
+ let [fieldNo, wireType] = reader.tag();
4003
+ switch (fieldNo) {
4004
+ case /* string name_part */ 1:
4005
+ message.namePart = reader.string();
4006
+ break;
4007
+ case /* bool is_extension */ 2:
4008
+ message.isExtension = reader.bool();
4009
+ break;
4010
+ default:
4011
+ let u = options.readUnknownField;
4012
+ if (u === "throw")
4013
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4014
+ let d = reader.skip(wireType);
4015
+ if (u !== false)
4016
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4017
+ }
4018
+ }
4019
+ return message;
4020
+ }
4021
+ internalBinaryWrite(message: UninterpretedOption_NamePart, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4022
+ /* string name_part = 1; */
4023
+ if (message.namePart !== "")
4024
+ writer.tag(1, WireType.LengthDelimited).string(message.namePart);
4025
+ /* bool is_extension = 2; */
4026
+ if (message.isExtension !== false)
4027
+ writer.tag(2, WireType.Varint).bool(message.isExtension);
4028
+ let u = options.writeUnknownFields;
4029
+ if (u !== false)
4030
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4031
+ return writer;
4032
+ }
4033
+ }
4034
+ /**
4035
+ * @generated MessageType for protobuf message google.protobuf.UninterpretedOption.NamePart
4036
+ */
4037
+ export const UninterpretedOption_NamePart = new UninterpretedOption_NamePart$Type();
4038
+ // @generated message type with reflection information, may provide speed optimized methods
4039
+ class FeatureSet$Type extends MessageType<FeatureSet> {
4040
+ constructor() {
4041
+ super("google.protobuf.FeatureSet", [
4042
+ { no: 1, name: "field_presence", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.FieldPresence", FeatureSet_FieldPresence] },
4043
+ { no: 2, name: "enum_type", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.EnumType", FeatureSet_EnumType] },
4044
+ { no: 3, name: "repeated_field_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.RepeatedFieldEncoding", FeatureSet_RepeatedFieldEncoding] },
4045
+ { no: 4, name: "utf8_validation", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.Utf8Validation", FeatureSet_Utf8Validation] },
4046
+ { no: 5, name: "message_encoding", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.MessageEncoding", FeatureSet_MessageEncoding] },
4047
+ { no: 6, name: "json_format", kind: "enum", opt: true, T: () => ["google.protobuf.FeatureSet.JsonFormat", FeatureSet_JsonFormat] }
4048
+ ]);
4049
+ }
4050
+ create(value?: PartialMessage<FeatureSet>): FeatureSet {
4051
+ const message = globalThis.Object.create((this.messagePrototype!));
4052
+ if (value !== undefined)
4053
+ reflectionMergePartial<FeatureSet>(this, message, value);
4054
+ return message;
4055
+ }
4056
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSet): FeatureSet {
4057
+ let message = target ?? this.create(), end = reader.pos + length;
4058
+ while (reader.pos < end) {
4059
+ let [fieldNo, wireType] = reader.tag();
4060
+ switch (fieldNo) {
4061
+ case /* optional google.protobuf.FeatureSet.FieldPresence field_presence */ 1:
4062
+ message.fieldPresence = reader.int32();
4063
+ break;
4064
+ case /* optional google.protobuf.FeatureSet.EnumType enum_type */ 2:
4065
+ message.enumType = reader.int32();
4066
+ break;
4067
+ case /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding */ 3:
4068
+ message.repeatedFieldEncoding = reader.int32();
4069
+ break;
4070
+ case /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation */ 4:
4071
+ message.utf8Validation = reader.int32();
4072
+ break;
4073
+ case /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding */ 5:
4074
+ message.messageEncoding = reader.int32();
4075
+ break;
4076
+ case /* optional google.protobuf.FeatureSet.JsonFormat json_format */ 6:
4077
+ message.jsonFormat = reader.int32();
4078
+ break;
4079
+ default:
4080
+ let u = options.readUnknownField;
4081
+ if (u === "throw")
4082
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4083
+ let d = reader.skip(wireType);
4084
+ if (u !== false)
4085
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4086
+ }
4087
+ }
4088
+ return message;
4089
+ }
4090
+ internalBinaryWrite(message: FeatureSet, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4091
+ /* optional google.protobuf.FeatureSet.FieldPresence field_presence = 1; */
4092
+ if (message.fieldPresence !== undefined)
4093
+ writer.tag(1, WireType.Varint).int32(message.fieldPresence);
4094
+ /* optional google.protobuf.FeatureSet.EnumType enum_type = 2; */
4095
+ if (message.enumType !== undefined)
4096
+ writer.tag(2, WireType.Varint).int32(message.enumType);
4097
+ /* optional google.protobuf.FeatureSet.RepeatedFieldEncoding repeated_field_encoding = 3; */
4098
+ if (message.repeatedFieldEncoding !== undefined)
4099
+ writer.tag(3, WireType.Varint).int32(message.repeatedFieldEncoding);
4100
+ /* optional google.protobuf.FeatureSet.Utf8Validation utf8_validation = 4; */
4101
+ if (message.utf8Validation !== undefined)
4102
+ writer.tag(4, WireType.Varint).int32(message.utf8Validation);
4103
+ /* optional google.protobuf.FeatureSet.MessageEncoding message_encoding = 5; */
4104
+ if (message.messageEncoding !== undefined)
4105
+ writer.tag(5, WireType.Varint).int32(message.messageEncoding);
4106
+ /* optional google.protobuf.FeatureSet.JsonFormat json_format = 6; */
4107
+ if (message.jsonFormat !== undefined)
4108
+ writer.tag(6, WireType.Varint).int32(message.jsonFormat);
4109
+ let u = options.writeUnknownFields;
4110
+ if (u !== false)
4111
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4112
+ return writer;
4113
+ }
4114
+ }
4115
+ /**
4116
+ * @generated MessageType for protobuf message google.protobuf.FeatureSet
4117
+ */
4118
+ export const FeatureSet = new FeatureSet$Type();
4119
+ // @generated message type with reflection information, may provide speed optimized methods
4120
+ class FeatureSetDefaults$Type extends MessageType<FeatureSetDefaults> {
4121
+ constructor() {
4122
+ super("google.protobuf.FeatureSetDefaults", [
4123
+ { no: 1, name: "defaults", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => FeatureSetDefaults_FeatureSetEditionDefault },
4124
+ { no: 4, name: "minimum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
4125
+ { no: 5, name: "maximum_edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] }
4126
+ ]);
4127
+ }
4128
+ create(value?: PartialMessage<FeatureSetDefaults>): FeatureSetDefaults {
4129
+ const message = globalThis.Object.create((this.messagePrototype!));
4130
+ message.defaults = [];
4131
+ if (value !== undefined)
4132
+ reflectionMergePartial<FeatureSetDefaults>(this, message, value);
4133
+ return message;
4134
+ }
4135
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults): FeatureSetDefaults {
4136
+ let message = target ?? this.create(), end = reader.pos + length;
4137
+ while (reader.pos < end) {
4138
+ let [fieldNo, wireType] = reader.tag();
4139
+ switch (fieldNo) {
4140
+ case /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults */ 1:
4141
+ message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryRead(reader, reader.uint32(), options));
4142
+ break;
4143
+ case /* optional google.protobuf.Edition minimum_edition */ 4:
4144
+ message.minimumEdition = reader.int32();
4145
+ break;
4146
+ case /* optional google.protobuf.Edition maximum_edition */ 5:
4147
+ message.maximumEdition = reader.int32();
4148
+ break;
4149
+ default:
4150
+ let u = options.readUnknownField;
4151
+ if (u === "throw")
4152
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4153
+ let d = reader.skip(wireType);
4154
+ if (u !== false)
4155
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4156
+ }
4157
+ }
4158
+ return message;
4159
+ }
4160
+ internalBinaryWrite(message: FeatureSetDefaults, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4161
+ /* repeated google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1; */
4162
+ for (let i = 0; i < message.defaults.length; i++)
4163
+ FeatureSetDefaults_FeatureSetEditionDefault.internalBinaryWrite(message.defaults[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4164
+ /* optional google.protobuf.Edition minimum_edition = 4; */
4165
+ if (message.minimumEdition !== undefined)
4166
+ writer.tag(4, WireType.Varint).int32(message.minimumEdition);
4167
+ /* optional google.protobuf.Edition maximum_edition = 5; */
4168
+ if (message.maximumEdition !== undefined)
4169
+ writer.tag(5, WireType.Varint).int32(message.maximumEdition);
4170
+ let u = options.writeUnknownFields;
4171
+ if (u !== false)
4172
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4173
+ return writer;
4174
+ }
4175
+ }
4176
+ /**
4177
+ * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults
4178
+ */
4179
+ export const FeatureSetDefaults = new FeatureSetDefaults$Type();
4180
+ // @generated message type with reflection information, may provide speed optimized methods
4181
+ class FeatureSetDefaults_FeatureSetEditionDefault$Type extends MessageType<FeatureSetDefaults_FeatureSetEditionDefault> {
4182
+ constructor() {
4183
+ super("google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault", [
4184
+ { no: 3, name: "edition", kind: "enum", opt: true, T: () => ["google.protobuf.Edition", Edition] },
4185
+ { no: 2, name: "features", kind: "message", T: () => FeatureSet }
4186
+ ]);
4187
+ }
4188
+ create(value?: PartialMessage<FeatureSetDefaults_FeatureSetEditionDefault>): FeatureSetDefaults_FeatureSetEditionDefault {
4189
+ const message = globalThis.Object.create((this.messagePrototype!));
4190
+ if (value !== undefined)
4191
+ reflectionMergePartial<FeatureSetDefaults_FeatureSetEditionDefault>(this, message, value);
4192
+ return message;
4193
+ }
4194
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: FeatureSetDefaults_FeatureSetEditionDefault): FeatureSetDefaults_FeatureSetEditionDefault {
4195
+ let message = target ?? this.create(), end = reader.pos + length;
4196
+ while (reader.pos < end) {
4197
+ let [fieldNo, wireType] = reader.tag();
4198
+ switch (fieldNo) {
4199
+ case /* optional google.protobuf.Edition edition */ 3:
4200
+ message.edition = reader.int32();
4201
+ break;
4202
+ case /* optional google.protobuf.FeatureSet features */ 2:
4203
+ message.features = FeatureSet.internalBinaryRead(reader, reader.uint32(), options, message.features);
4204
+ break;
4205
+ default:
4206
+ let u = options.readUnknownField;
4207
+ if (u === "throw")
4208
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4209
+ let d = reader.skip(wireType);
4210
+ if (u !== false)
4211
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4212
+ }
4213
+ }
4214
+ return message;
4215
+ }
4216
+ internalBinaryWrite(message: FeatureSetDefaults_FeatureSetEditionDefault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4217
+ /* optional google.protobuf.Edition edition = 3; */
4218
+ if (message.edition !== undefined)
4219
+ writer.tag(3, WireType.Varint).int32(message.edition);
4220
+ /* optional google.protobuf.FeatureSet features = 2; */
4221
+ if (message.features)
4222
+ FeatureSet.internalBinaryWrite(message.features, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
4223
+ let u = options.writeUnknownFields;
4224
+ if (u !== false)
4225
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4226
+ return writer;
4227
+ }
4228
+ }
4229
+ /**
4230
+ * @generated MessageType for protobuf message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault
4231
+ */
4232
+ export const FeatureSetDefaults_FeatureSetEditionDefault = new FeatureSetDefaults_FeatureSetEditionDefault$Type();
4233
+ // @generated message type with reflection information, may provide speed optimized methods
4234
+ class SourceCodeInfo$Type extends MessageType<SourceCodeInfo> {
4235
+ constructor() {
4236
+ super("google.protobuf.SourceCodeInfo", [
4237
+ { no: 1, name: "location", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => SourceCodeInfo_Location }
4238
+ ]);
4239
+ }
4240
+ create(value?: PartialMessage<SourceCodeInfo>): SourceCodeInfo {
4241
+ const message = globalThis.Object.create((this.messagePrototype!));
4242
+ message.location = [];
4243
+ if (value !== undefined)
4244
+ reflectionMergePartial<SourceCodeInfo>(this, message, value);
4245
+ return message;
4246
+ }
4247
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SourceCodeInfo): SourceCodeInfo {
4248
+ let message = target ?? this.create(), end = reader.pos + length;
4249
+ while (reader.pos < end) {
4250
+ let [fieldNo, wireType] = reader.tag();
4251
+ switch (fieldNo) {
4252
+ case /* repeated google.protobuf.SourceCodeInfo.Location location */ 1:
4253
+ message.location.push(SourceCodeInfo_Location.internalBinaryRead(reader, reader.uint32(), options));
4254
+ break;
4255
+ default:
4256
+ let u = options.readUnknownField;
4257
+ if (u === "throw")
4258
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4259
+ let d = reader.skip(wireType);
4260
+ if (u !== false)
4261
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4262
+ }
4263
+ }
4264
+ return message;
4265
+ }
4266
+ internalBinaryWrite(message: SourceCodeInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4267
+ /* repeated google.protobuf.SourceCodeInfo.Location location = 1; */
4268
+ for (let i = 0; i < message.location.length; i++)
4269
+ SourceCodeInfo_Location.internalBinaryWrite(message.location[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4270
+ let u = options.writeUnknownFields;
4271
+ if (u !== false)
4272
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4273
+ return writer;
4274
+ }
4275
+ }
4276
+ /**
4277
+ * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo
4278
+ */
4279
+ export const SourceCodeInfo = new SourceCodeInfo$Type();
4280
+ // @generated message type with reflection information, may provide speed optimized methods
4281
+ class SourceCodeInfo_Location$Type extends MessageType<SourceCodeInfo_Location> {
4282
+ constructor() {
4283
+ super("google.protobuf.SourceCodeInfo.Location", [
4284
+ { no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
4285
+ { no: 2, name: "span", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
4286
+ { no: 3, name: "leading_comments", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
4287
+ { no: 4, name: "trailing_comments", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
4288
+ { no: 6, name: "leading_detached_comments", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
4289
+ ]);
4290
+ }
4291
+ create(value?: PartialMessage<SourceCodeInfo_Location>): SourceCodeInfo_Location {
4292
+ const message = globalThis.Object.create((this.messagePrototype!));
4293
+ message.path = [];
4294
+ message.span = [];
4295
+ message.leadingDetachedComments = [];
4296
+ if (value !== undefined)
4297
+ reflectionMergePartial<SourceCodeInfo_Location>(this, message, value);
4298
+ return message;
4299
+ }
4300
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: SourceCodeInfo_Location): SourceCodeInfo_Location {
4301
+ let message = target ?? this.create(), end = reader.pos + length;
4302
+ while (reader.pos < end) {
4303
+ let [fieldNo, wireType] = reader.tag();
4304
+ switch (fieldNo) {
4305
+ case /* repeated int32 path = 1 [packed = true];*/ 1:
4306
+ if (wireType === WireType.LengthDelimited)
4307
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
4308
+ message.path.push(reader.int32());
4309
+ else
4310
+ message.path.push(reader.int32());
4311
+ break;
4312
+ case /* repeated int32 span = 2 [packed = true];*/ 2:
4313
+ if (wireType === WireType.LengthDelimited)
4314
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
4315
+ message.span.push(reader.int32());
4316
+ else
4317
+ message.span.push(reader.int32());
4318
+ break;
4319
+ case /* optional string leading_comments */ 3:
4320
+ message.leadingComments = reader.string();
4321
+ break;
4322
+ case /* optional string trailing_comments */ 4:
4323
+ message.trailingComments = reader.string();
4324
+ break;
4325
+ case /* repeated string leading_detached_comments */ 6:
4326
+ message.leadingDetachedComments.push(reader.string());
4327
+ break;
4328
+ default:
4329
+ let u = options.readUnknownField;
4330
+ if (u === "throw")
4331
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4332
+ let d = reader.skip(wireType);
4333
+ if (u !== false)
4334
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4335
+ }
4336
+ }
4337
+ return message;
4338
+ }
4339
+ internalBinaryWrite(message: SourceCodeInfo_Location, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4340
+ /* repeated int32 path = 1 [packed = true]; */
4341
+ if (message.path.length) {
4342
+ writer.tag(1, WireType.LengthDelimited).fork();
4343
+ for (let i = 0; i < message.path.length; i++)
4344
+ writer.int32(message.path[i]);
4345
+ writer.join();
4346
+ }
4347
+ /* repeated int32 span = 2 [packed = true]; */
4348
+ if (message.span.length) {
4349
+ writer.tag(2, WireType.LengthDelimited).fork();
4350
+ for (let i = 0; i < message.span.length; i++)
4351
+ writer.int32(message.span[i]);
4352
+ writer.join();
4353
+ }
4354
+ /* optional string leading_comments = 3; */
4355
+ if (message.leadingComments !== undefined)
4356
+ writer.tag(3, WireType.LengthDelimited).string(message.leadingComments);
4357
+ /* optional string trailing_comments = 4; */
4358
+ if (message.trailingComments !== undefined)
4359
+ writer.tag(4, WireType.LengthDelimited).string(message.trailingComments);
4360
+ /* repeated string leading_detached_comments = 6; */
4361
+ for (let i = 0; i < message.leadingDetachedComments.length; i++)
4362
+ writer.tag(6, WireType.LengthDelimited).string(message.leadingDetachedComments[i]);
4363
+ let u = options.writeUnknownFields;
4364
+ if (u !== false)
4365
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4366
+ return writer;
4367
+ }
4368
+ }
4369
+ /**
4370
+ * @generated MessageType for protobuf message google.protobuf.SourceCodeInfo.Location
4371
+ */
4372
+ export const SourceCodeInfo_Location = new SourceCodeInfo_Location$Type();
4373
+ // @generated message type with reflection information, may provide speed optimized methods
4374
+ class GeneratedCodeInfo$Type extends MessageType<GeneratedCodeInfo> {
4375
+ constructor() {
4376
+ super("google.protobuf.GeneratedCodeInfo", [
4377
+ { no: 1, name: "annotation", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => GeneratedCodeInfo_Annotation }
4378
+ ]);
4379
+ }
4380
+ create(value?: PartialMessage<GeneratedCodeInfo>): GeneratedCodeInfo {
4381
+ const message = globalThis.Object.create((this.messagePrototype!));
4382
+ message.annotation = [];
4383
+ if (value !== undefined)
4384
+ reflectionMergePartial<GeneratedCodeInfo>(this, message, value);
4385
+ return message;
4386
+ }
4387
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GeneratedCodeInfo): GeneratedCodeInfo {
4388
+ let message = target ?? this.create(), end = reader.pos + length;
4389
+ while (reader.pos < end) {
4390
+ let [fieldNo, wireType] = reader.tag();
4391
+ switch (fieldNo) {
4392
+ case /* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation */ 1:
4393
+ message.annotation.push(GeneratedCodeInfo_Annotation.internalBinaryRead(reader, reader.uint32(), options));
4394
+ break;
4395
+ default:
4396
+ let u = options.readUnknownField;
4397
+ if (u === "throw")
4398
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4399
+ let d = reader.skip(wireType);
4400
+ if (u !== false)
4401
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4402
+ }
4403
+ }
4404
+ return message;
4405
+ }
4406
+ internalBinaryWrite(message: GeneratedCodeInfo, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4407
+ /* repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1; */
4408
+ for (let i = 0; i < message.annotation.length; i++)
4409
+ GeneratedCodeInfo_Annotation.internalBinaryWrite(message.annotation[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
4410
+ let u = options.writeUnknownFields;
4411
+ if (u !== false)
4412
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4413
+ return writer;
4414
+ }
4415
+ }
4416
+ /**
4417
+ * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo
4418
+ */
4419
+ export const GeneratedCodeInfo = new GeneratedCodeInfo$Type();
4420
+ // @generated message type with reflection information, may provide speed optimized methods
4421
+ class GeneratedCodeInfo_Annotation$Type extends MessageType<GeneratedCodeInfo_Annotation> {
4422
+ constructor() {
4423
+ super("google.protobuf.GeneratedCodeInfo.Annotation", [
4424
+ { no: 1, name: "path", kind: "scalar", repeat: 1 /*RepeatType.PACKED*/, T: 5 /*ScalarType.INT32*/ },
4425
+ { no: 2, name: "source_file", kind: "scalar", opt: true, T: 9 /*ScalarType.STRING*/ },
4426
+ { no: 3, name: "begin", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
4427
+ { no: 4, name: "end", kind: "scalar", opt: true, T: 5 /*ScalarType.INT32*/ },
4428
+ { no: 5, name: "semantic", kind: "enum", opt: true, T: () => ["google.protobuf.GeneratedCodeInfo.Annotation.Semantic", GeneratedCodeInfo_Annotation_Semantic] }
4429
+ ]);
4430
+ }
4431
+ create(value?: PartialMessage<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation {
4432
+ const message = globalThis.Object.create((this.messagePrototype!));
4433
+ message.path = [];
4434
+ if (value !== undefined)
4435
+ reflectionMergePartial<GeneratedCodeInfo_Annotation>(this, message, value);
4436
+ return message;
4437
+ }
4438
+ internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GeneratedCodeInfo_Annotation): GeneratedCodeInfo_Annotation {
4439
+ let message = target ?? this.create(), end = reader.pos + length;
4440
+ while (reader.pos < end) {
4441
+ let [fieldNo, wireType] = reader.tag();
4442
+ switch (fieldNo) {
4443
+ case /* repeated int32 path = 1 [packed = true];*/ 1:
4444
+ if (wireType === WireType.LengthDelimited)
4445
+ for (let e = reader.int32() + reader.pos; reader.pos < e;)
4446
+ message.path.push(reader.int32());
4447
+ else
4448
+ message.path.push(reader.int32());
4449
+ break;
4450
+ case /* optional string source_file */ 2:
4451
+ message.sourceFile = reader.string();
4452
+ break;
4453
+ case /* optional int32 begin */ 3:
4454
+ message.begin = reader.int32();
4455
+ break;
4456
+ case /* optional int32 end */ 4:
4457
+ message.end = reader.int32();
4458
+ break;
4459
+ case /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic */ 5:
4460
+ message.semantic = reader.int32();
4461
+ break;
4462
+ default:
4463
+ let u = options.readUnknownField;
4464
+ if (u === "throw")
4465
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
4466
+ let d = reader.skip(wireType);
4467
+ if (u !== false)
4468
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
4469
+ }
4470
+ }
4471
+ return message;
4472
+ }
4473
+ internalBinaryWrite(message: GeneratedCodeInfo_Annotation, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
4474
+ /* repeated int32 path = 1 [packed = true]; */
4475
+ if (message.path.length) {
4476
+ writer.tag(1, WireType.LengthDelimited).fork();
4477
+ for (let i = 0; i < message.path.length; i++)
4478
+ writer.int32(message.path[i]);
4479
+ writer.join();
4480
+ }
4481
+ /* optional string source_file = 2; */
4482
+ if (message.sourceFile !== undefined)
4483
+ writer.tag(2, WireType.LengthDelimited).string(message.sourceFile);
4484
+ /* optional int32 begin = 3; */
4485
+ if (message.begin !== undefined)
4486
+ writer.tag(3, WireType.Varint).int32(message.begin);
4487
+ /* optional int32 end = 4; */
4488
+ if (message.end !== undefined)
4489
+ writer.tag(4, WireType.Varint).int32(message.end);
4490
+ /* optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5; */
4491
+ if (message.semantic !== undefined)
4492
+ writer.tag(5, WireType.Varint).int32(message.semantic);
4493
+ let u = options.writeUnknownFields;
4494
+ if (u !== false)
4495
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
4496
+ return writer;
4497
+ }
4498
+ }
4499
+ /**
4500
+ * @generated MessageType for protobuf message google.protobuf.GeneratedCodeInfo.Annotation
4501
+ */
4502
+ export const GeneratedCodeInfo_Annotation = new GeneratedCodeInfo_Annotation$Type();