@aptre/protobuf-es-lite 0.2.9 → 0.2.11

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 (75) hide show
  1. package/bin/protoc-gen-es-lite +2 -2
  2. package/dist/assert.js +4 -11
  3. package/dist/binary-encoding.js +30 -35
  4. package/dist/binary.js +84 -96
  5. package/dist/codegen-info.js +12 -15
  6. package/dist/create-descriptor-set.js +113 -117
  7. package/dist/descriptor-set.js +1 -2
  8. package/dist/enum.js +2 -7
  9. package/dist/feature-set.js +16 -20
  10. package/dist/field-wrapper.js +12 -17
  11. package/dist/field.js +18 -27
  12. package/dist/google/index.js +9 -41
  13. package/dist/google/protobuf/any.pb.d.ts +2 -2
  14. package/dist/google/protobuf/any.pb.js +3 -6
  15. package/dist/google/protobuf/api.pb.d.ts +2 -2
  16. package/dist/google/protobuf/api.pb.js +14 -17
  17. package/dist/google/protobuf/compiler/plugin.pb.d.ts +2 -2
  18. package/dist/google/protobuf/compiler/plugin.pb.js +15 -18
  19. package/dist/google/protobuf/descriptor.pb.d.ts +19 -19
  20. package/dist/google/protobuf/descriptor.pb.js +156 -160
  21. package/dist/google/protobuf/duration.pb.d.ts +2 -2
  22. package/dist/google/protobuf/duration.pb.js +3 -6
  23. package/dist/google/protobuf/empty.pb.d.ts +2 -2
  24. package/dist/google/protobuf/empty.pb.js +3 -6
  25. package/dist/google/protobuf/source_context.pb.d.ts +2 -2
  26. package/dist/google/protobuf/source_context.pb.js +3 -6
  27. package/dist/google/protobuf/struct.pb.d.ts +3 -3
  28. package/dist/google/protobuf/struct.pb.js +13 -16
  29. package/dist/google/protobuf/timestamp.pb.d.ts +2 -2
  30. package/dist/google/protobuf/timestamp.pb.js +3 -6
  31. package/dist/google/protobuf/type.pb.d.ts +5 -5
  32. package/dist/google/protobuf/type.pb.js +31 -34
  33. package/dist/google/protobuf/wrappers.pb.d.ts +2 -2
  34. package/dist/google/protobuf/wrappers.pb.js +11 -14
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +12 -60
  37. package/dist/is-message.js +9 -16
  38. package/dist/json.js +72 -80
  39. package/dist/message.js +48 -55
  40. package/dist/names.js +12 -23
  41. package/dist/partial.js +13 -17
  42. package/dist/proto-base64.js +1 -4
  43. package/dist/proto-double.js +1 -4
  44. package/dist/proto-int64.js +9 -12
  45. package/dist/protoc-gen-es-lite/protoc-gen-es-lite-plugin.js +4 -7
  46. package/dist/protoc-gen-es-lite/typescript.js +27 -36
  47. package/dist/protoplugin/create-es-plugin.js +13 -17
  48. package/dist/protoplugin/ecmascript/file-preamble.js +5 -9
  49. package/dist/protoplugin/ecmascript/generated-file.js +16 -20
  50. package/dist/protoplugin/ecmascript/import-path.js +13 -20
  51. package/dist/protoplugin/ecmascript/import-symbol.js +1 -5
  52. package/dist/protoplugin/ecmascript/index.js +2 -7
  53. package/dist/protoplugin/ecmascript/jsdoc.js +1 -5
  54. package/dist/protoplugin/ecmascript/opaque-printables.js +1 -2
  55. package/dist/protoplugin/ecmascript/parameter.js +10 -14
  56. package/dist/protoplugin/ecmascript/reify-wkt.js +12 -16
  57. package/dist/protoplugin/ecmascript/runtime-imports.js +5 -9
  58. package/dist/protoplugin/ecmascript/schema.js +16 -20
  59. package/dist/protoplugin/ecmascript/target.js +1 -2
  60. package/dist/protoplugin/ecmascript/transpile.js +15 -42
  61. package/dist/protoplugin/error.js +3 -9
  62. package/dist/protoplugin/index.js +2 -7
  63. package/dist/protoplugin/plugin.js +1 -2
  64. package/dist/protoplugin/run-node.js +6 -10
  65. package/dist/scalar.js +9 -15
  66. package/dist/service-type.js +4 -7
  67. package/dist/text-format.js +25 -30
  68. package/dist/type-registry.js +1 -2
  69. package/dist/unknown.js +7 -12
  70. package/dist/util.d.ts +1 -1
  71. package/dist/util.js +49 -55
  72. package/dist/varint.js +7 -17
  73. package/example/example.pb.ts +1 -1
  74. package/package.json +10 -7
  75. package/tsconfig.base.json +2 -2
@@ -1,4 +1,3 @@
1
- "use strict";
2
1
  // Protocol Buffers - Google's data interchange format
3
2
  // Copyright 2008 Google Inc. All rights reserved.
4
3
  // https://developers.google.com/protocol-buffers/
@@ -28,18 +27,15 @@
28
27
  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29
28
  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30
29
  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
- Object.defineProperty(exports, "__esModule", { value: true });
32
- exports.OneofOptions = exports.DescriptorProto_ExtensionRange = exports.ExtensionRangeOptions = exports.ExtensionRangeOptions_Declaration = exports.EnumDescriptorProto = exports.EnumDescriptorProto_EnumReservedRange = exports.EnumOptions = exports.EnumValueDescriptorProto = exports.EnumValueOptions = exports.FieldDescriptorProto = exports.FieldOptions = exports.UninterpretedOption = exports.UninterpretedOption_NamePart = exports.FeatureSet = exports.FieldOptions_EditionDefault = exports.GeneratedCodeInfo_Annotation_Semantic_Enum = exports.GeneratedCodeInfo_Annotation_Semantic = exports.FeatureSet_JsonFormat_Enum = exports.FeatureSet_JsonFormat = exports.FeatureSet_MessageEncoding_Enum = exports.FeatureSet_MessageEncoding = exports.FeatureSet_Utf8Validation_Enum = exports.FeatureSet_Utf8Validation = exports.FeatureSet_RepeatedFieldEncoding_Enum = exports.FeatureSet_RepeatedFieldEncoding = exports.FeatureSet_EnumType_Enum = exports.FeatureSet_EnumType = exports.FeatureSet_FieldPresence_Enum = exports.FeatureSet_FieldPresence = exports.MethodOptions_IdempotencyLevel_Enum = exports.MethodOptions_IdempotencyLevel = exports.FieldOptions_OptionTargetType_Enum = exports.FieldOptions_OptionTargetType = exports.FieldOptions_OptionRetention_Enum = exports.FieldOptions_OptionRetention = exports.FieldOptions_JSType_Enum = exports.FieldOptions_JSType = exports.FieldOptions_CType_Enum = exports.FieldOptions_CType = exports.FileOptions_OptimizeMode_Enum = exports.FileOptions_OptimizeMode = exports.FieldDescriptorProto_Label_Enum = exports.FieldDescriptorProto_Label = exports.FieldDescriptorProto_Type_Enum = exports.FieldDescriptorProto_Type = exports.ExtensionRangeOptions_VerificationState_Enum = exports.ExtensionRangeOptions_VerificationState = exports.Edition_Enum = exports.Edition = exports.protobufPackage = void 0;
33
- exports.GeneratedCodeInfo = exports.GeneratedCodeInfo_Annotation = exports.FeatureSetDefaults = exports.FeatureSetDefaults_FeatureSetEditionDefault = exports.FileDescriptorSet = exports.FileDescriptorProto = exports.SourceCodeInfo = exports.SourceCodeInfo_Location = exports.FileOptions = exports.ServiceDescriptorProto = exports.ServiceOptions = exports.MethodDescriptorProto = exports.MethodOptions = exports.DescriptorProto = exports.DescriptorProto_ReservedRange = exports.MessageOptions = exports.OneofDescriptorProto = void 0;
34
- const __1 = require("../../");
35
- exports.protobufPackage = "google.protobuf";
30
+ import { createEnumType, createMessageType } from "../../index.js";
31
+ export const protobufPackage = "google.protobuf";
36
32
  /**
37
33
  * The full set of known editions.
38
34
  *
39
35
  *
40
36
  * @generated from enum google.protobuf.Edition
41
37
  */
42
- var Edition;
38
+ export var Edition;
43
39
  (function (Edition) {
44
40
  /**
45
41
  * A placeholder for an unknown edition value.
@@ -108,9 +104,9 @@ var Edition;
108
104
  * @generated from enum value: EDITION_MAX = 2147483647;
109
105
  */
110
106
  Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX";
111
- })(Edition || (exports.Edition = Edition = {}));
107
+ })(Edition || (Edition = {}));
112
108
  // Edition_Enum is the enum type for Edition.
113
- exports.Edition_Enum = (0, __1.createEnumType)("google.protobuf.Edition", [
109
+ export const Edition_Enum = createEnumType("google.protobuf.Edition", [
114
110
  { no: 0, name: "EDITION_UNKNOWN" },
115
111
  { no: 998, name: "EDITION_PROTO2" },
116
112
  { no: 999, name: "EDITION_PROTO3" },
@@ -129,7 +125,7 @@ exports.Edition_Enum = (0, __1.createEnumType)("google.protobuf.Edition", [
129
125
  *
130
126
  * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState
131
127
  */
132
- var ExtensionRangeOptions_VerificationState;
128
+ export var ExtensionRangeOptions_VerificationState;
133
129
  (function (ExtensionRangeOptions_VerificationState) {
134
130
  /**
135
131
  * All the extensions of the range must be declared.
@@ -142,16 +138,16 @@ var ExtensionRangeOptions_VerificationState;
142
138
  * @generated from enum value: UNVERIFIED = 1;
143
139
  */
144
140
  ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED";
145
- })(ExtensionRangeOptions_VerificationState || (exports.ExtensionRangeOptions_VerificationState = ExtensionRangeOptions_VerificationState = {}));
141
+ })(ExtensionRangeOptions_VerificationState || (ExtensionRangeOptions_VerificationState = {}));
146
142
  // ExtensionRangeOptions_VerificationState_Enum is the enum type for ExtensionRangeOptions_VerificationState.
147
- exports.ExtensionRangeOptions_VerificationState_Enum = (0, __1.createEnumType)("google.protobuf.ExtensionRangeOptions.VerificationState", [
143
+ export const ExtensionRangeOptions_VerificationState_Enum = createEnumType("google.protobuf.ExtensionRangeOptions.VerificationState", [
148
144
  { no: 0, name: "DECLARATION" },
149
145
  { no: 1, name: "UNVERIFIED" },
150
146
  ]);
151
147
  /**
152
148
  * @generated from enum google.protobuf.FieldDescriptorProto.Type
153
149
  */
154
- var FieldDescriptorProto_Type;
150
+ export var FieldDescriptorProto_Type;
155
151
  (function (FieldDescriptorProto_Type) {
156
152
  /**
157
153
  * 0 is reserved for errors.
@@ -253,9 +249,9 @@ var FieldDescriptorProto_Type;
253
249
  * @generated from enum value: TYPE_SINT64 = 18;
254
250
  */
255
251
  FieldDescriptorProto_Type[FieldDescriptorProto_Type["SINT64"] = 18] = "SINT64";
256
- })(FieldDescriptorProto_Type || (exports.FieldDescriptorProto_Type = FieldDescriptorProto_Type = {}));
252
+ })(FieldDescriptorProto_Type || (FieldDescriptorProto_Type = {}));
257
253
  // FieldDescriptorProto_Type_Enum is the enum type for FieldDescriptorProto_Type.
258
- exports.FieldDescriptorProto_Type_Enum = (0, __1.createEnumType)("google.protobuf.FieldDescriptorProto.Type", [
254
+ export const FieldDescriptorProto_Type_Enum = createEnumType("google.protobuf.FieldDescriptorProto.Type", [
259
255
  { no: 1, name: "TYPE_DOUBLE" },
260
256
  { no: 2, name: "TYPE_FLOAT" },
261
257
  { no: 3, name: "TYPE_INT64" },
@@ -278,7 +274,7 @@ exports.FieldDescriptorProto_Type_Enum = (0, __1.createEnumType)("google.protobu
278
274
  /**
279
275
  * @generated from enum google.protobuf.FieldDescriptorProto.Label
280
276
  */
281
- var FieldDescriptorProto_Label;
277
+ export var FieldDescriptorProto_Label;
282
278
  (function (FieldDescriptorProto_Label) {
283
279
  /**
284
280
  * 0 is reserved for errors
@@ -300,9 +296,9 @@ var FieldDescriptorProto_Label;
300
296
  * @generated from enum value: LABEL_REQUIRED = 2;
301
297
  */
302
298
  FieldDescriptorProto_Label[FieldDescriptorProto_Label["REQUIRED"] = 2] = "REQUIRED";
303
- })(FieldDescriptorProto_Label || (exports.FieldDescriptorProto_Label = FieldDescriptorProto_Label = {}));
299
+ })(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {}));
304
300
  // FieldDescriptorProto_Label_Enum is the enum type for FieldDescriptorProto_Label.
305
- exports.FieldDescriptorProto_Label_Enum = (0, __1.createEnumType)("google.protobuf.FieldDescriptorProto.Label", [
301
+ export const FieldDescriptorProto_Label_Enum = createEnumType("google.protobuf.FieldDescriptorProto.Label", [
306
302
  { no: 1, name: "LABEL_OPTIONAL" },
307
303
  { no: 3, name: "LABEL_REPEATED" },
308
304
  { no: 2, name: "LABEL_REQUIRED" },
@@ -313,7 +309,7 @@ exports.FieldDescriptorProto_Label_Enum = (0, __1.createEnumType)("google.protob
313
309
  *
314
310
  * @generated from enum google.protobuf.FileOptions.OptimizeMode
315
311
  */
316
- var FileOptions_OptimizeMode;
312
+ export var FileOptions_OptimizeMode;
317
313
  (function (FileOptions_OptimizeMode) {
318
314
  /**
319
315
  * Generate complete code for parsing, serialization,
@@ -335,9 +331,9 @@ var FileOptions_OptimizeMode;
335
331
  * @generated from enum value: LITE_RUNTIME = 3;
336
332
  */
337
333
  FileOptions_OptimizeMode[FileOptions_OptimizeMode["LITE_RUNTIME"] = 3] = "LITE_RUNTIME";
338
- })(FileOptions_OptimizeMode || (exports.FileOptions_OptimizeMode = FileOptions_OptimizeMode = {}));
334
+ })(FileOptions_OptimizeMode || (FileOptions_OptimizeMode = {}));
339
335
  // FileOptions_OptimizeMode_Enum is the enum type for FileOptions_OptimizeMode.
340
- exports.FileOptions_OptimizeMode_Enum = (0, __1.createEnumType)("google.protobuf.FileOptions.OptimizeMode", [
336
+ export const FileOptions_OptimizeMode_Enum = createEnumType("google.protobuf.FileOptions.OptimizeMode", [
341
337
  { no: 1, name: "SPEED" },
342
338
  { no: 2, name: "CODE_SIZE" },
343
339
  { no: 3, name: "LITE_RUNTIME" },
@@ -345,7 +341,7 @@ exports.FileOptions_OptimizeMode_Enum = (0, __1.createEnumType)("google.protobuf
345
341
  /**
346
342
  * @generated from enum google.protobuf.FieldOptions.CType
347
343
  */
348
- var FieldOptions_CType;
344
+ export var FieldOptions_CType;
349
345
  (function (FieldOptions_CType) {
350
346
  /**
351
347
  * Default mode.
@@ -370,9 +366,9 @@ var FieldOptions_CType;
370
366
  * @generated from enum value: STRING_PIECE = 2;
371
367
  */
372
368
  FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
373
- })(FieldOptions_CType || (exports.FieldOptions_CType = FieldOptions_CType = {}));
369
+ })(FieldOptions_CType || (FieldOptions_CType = {}));
374
370
  // FieldOptions_CType_Enum is the enum type for FieldOptions_CType.
375
- exports.FieldOptions_CType_Enum = (0, __1.createEnumType)("google.protobuf.FieldOptions.CType", [
371
+ export const FieldOptions_CType_Enum = createEnumType("google.protobuf.FieldOptions.CType", [
376
372
  { no: 0, name: "STRING" },
377
373
  { no: 1, name: "CORD" },
378
374
  { no: 2, name: "STRING_PIECE" },
@@ -380,7 +376,7 @@ exports.FieldOptions_CType_Enum = (0, __1.createEnumType)("google.protobuf.Field
380
376
  /**
381
377
  * @generated from enum google.protobuf.FieldOptions.JSType
382
378
  */
383
- var FieldOptions_JSType;
379
+ export var FieldOptions_JSType;
384
380
  (function (FieldOptions_JSType) {
385
381
  /**
386
382
  * Use the default type.
@@ -403,9 +399,9 @@ var FieldOptions_JSType;
403
399
  * @generated from enum value: JS_NUMBER = 2;
404
400
  */
405
401
  FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
406
- })(FieldOptions_JSType || (exports.FieldOptions_JSType = FieldOptions_JSType = {}));
402
+ })(FieldOptions_JSType || (FieldOptions_JSType = {}));
407
403
  // FieldOptions_JSType_Enum is the enum type for FieldOptions_JSType.
408
- exports.FieldOptions_JSType_Enum = (0, __1.createEnumType)("google.protobuf.FieldOptions.JSType", [
404
+ export const FieldOptions_JSType_Enum = createEnumType("google.protobuf.FieldOptions.JSType", [
409
405
  { no: 0, name: "JS_NORMAL" },
410
406
  { no: 1, name: "JS_STRING" },
411
407
  { no: 2, name: "JS_NUMBER" },
@@ -418,7 +414,7 @@ exports.FieldOptions_JSType_Enum = (0, __1.createEnumType)("google.protobuf.Fiel
418
414
  *
419
415
  * @generated from enum google.protobuf.FieldOptions.OptionRetention
420
416
  */
421
- var FieldOptions_OptionRetention;
417
+ export var FieldOptions_OptionRetention;
422
418
  (function (FieldOptions_OptionRetention) {
423
419
  /**
424
420
  * @generated from enum value: RETENTION_UNKNOWN = 0;
@@ -432,9 +428,9 @@ var FieldOptions_OptionRetention;
432
428
  * @generated from enum value: RETENTION_SOURCE = 2;
433
429
  */
434
430
  FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE";
435
- })(FieldOptions_OptionRetention || (exports.FieldOptions_OptionRetention = FieldOptions_OptionRetention = {}));
431
+ })(FieldOptions_OptionRetention || (FieldOptions_OptionRetention = {}));
436
432
  // FieldOptions_OptionRetention_Enum is the enum type for FieldOptions_OptionRetention.
437
- exports.FieldOptions_OptionRetention_Enum = (0, __1.createEnumType)("google.protobuf.FieldOptions.OptionRetention", [
433
+ export const FieldOptions_OptionRetention_Enum = createEnumType("google.protobuf.FieldOptions.OptionRetention", [
438
434
  { no: 0, name: "RETENTION_UNKNOWN" },
439
435
  { no: 1, name: "RETENTION_RUNTIME" },
440
436
  { no: 2, name: "RETENTION_SOURCE" },
@@ -448,7 +444,7 @@ exports.FieldOptions_OptionRetention_Enum = (0, __1.createEnumType)("google.prot
448
444
  *
449
445
  * @generated from enum google.protobuf.FieldOptions.OptionTargetType
450
446
  */
451
- var FieldOptions_OptionTargetType;
447
+ export var FieldOptions_OptionTargetType;
452
448
  (function (FieldOptions_OptionTargetType) {
453
449
  /**
454
450
  * @generated from enum value: TARGET_TYPE_UNKNOWN = 0;
@@ -490,9 +486,9 @@ var FieldOptions_OptionTargetType;
490
486
  * @generated from enum value: TARGET_TYPE_METHOD = 9;
491
487
  */
492
488
  FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD";
493
- })(FieldOptions_OptionTargetType || (exports.FieldOptions_OptionTargetType = FieldOptions_OptionTargetType = {}));
489
+ })(FieldOptions_OptionTargetType || (FieldOptions_OptionTargetType = {}));
494
490
  // FieldOptions_OptionTargetType_Enum is the enum type for FieldOptions_OptionTargetType.
495
- exports.FieldOptions_OptionTargetType_Enum = (0, __1.createEnumType)("google.protobuf.FieldOptions.OptionTargetType", [
491
+ export const FieldOptions_OptionTargetType_Enum = createEnumType("google.protobuf.FieldOptions.OptionTargetType", [
496
492
  { no: 0, name: "TARGET_TYPE_UNKNOWN" },
497
493
  { no: 1, name: "TARGET_TYPE_FILE" },
498
494
  { no: 2, name: "TARGET_TYPE_EXTENSION_RANGE" },
@@ -512,7 +508,7 @@ exports.FieldOptions_OptionTargetType_Enum = (0, __1.createEnumType)("google.pro
512
508
  *
513
509
  * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel
514
510
  */
515
- var MethodOptions_IdempotencyLevel;
511
+ export var MethodOptions_IdempotencyLevel;
516
512
  (function (MethodOptions_IdempotencyLevel) {
517
513
  /**
518
514
  * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0;
@@ -530,9 +526,9 @@ var MethodOptions_IdempotencyLevel;
530
526
  * @generated from enum value: IDEMPOTENT = 2;
531
527
  */
532
528
  MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
533
- })(MethodOptions_IdempotencyLevel || (exports.MethodOptions_IdempotencyLevel = MethodOptions_IdempotencyLevel = {}));
529
+ })(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {}));
534
530
  // MethodOptions_IdempotencyLevel_Enum is the enum type for MethodOptions_IdempotencyLevel.
535
- exports.MethodOptions_IdempotencyLevel_Enum = (0, __1.createEnumType)("google.protobuf.MethodOptions.IdempotencyLevel", [
531
+ export const MethodOptions_IdempotencyLevel_Enum = createEnumType("google.protobuf.MethodOptions.IdempotencyLevel", [
536
532
  { no: 0, name: "IDEMPOTENCY_UNKNOWN" },
537
533
  { no: 1, name: "NO_SIDE_EFFECTS" },
538
534
  { no: 2, name: "IDEMPOTENT" },
@@ -540,7 +536,7 @@ exports.MethodOptions_IdempotencyLevel_Enum = (0, __1.createEnumType)("google.pr
540
536
  /**
541
537
  * @generated from enum google.protobuf.FeatureSet.FieldPresence
542
538
  */
543
- var FeatureSet_FieldPresence;
539
+ export var FeatureSet_FieldPresence;
544
540
  (function (FeatureSet_FieldPresence) {
545
541
  /**
546
542
  * @generated from enum value: FIELD_PRESENCE_UNKNOWN = 0;
@@ -558,9 +554,9 @@ var FeatureSet_FieldPresence;
558
554
  * @generated from enum value: LEGACY_REQUIRED = 3;
559
555
  */
560
556
  FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED";
561
- })(FeatureSet_FieldPresence || (exports.FeatureSet_FieldPresence = FeatureSet_FieldPresence = {}));
557
+ })(FeatureSet_FieldPresence || (FeatureSet_FieldPresence = {}));
562
558
  // FeatureSet_FieldPresence_Enum is the enum type for FeatureSet_FieldPresence.
563
- exports.FeatureSet_FieldPresence_Enum = (0, __1.createEnumType)("google.protobuf.FeatureSet.FieldPresence", [
559
+ export const FeatureSet_FieldPresence_Enum = createEnumType("google.protobuf.FeatureSet.FieldPresence", [
564
560
  { no: 0, name: "FIELD_PRESENCE_UNKNOWN" },
565
561
  { no: 1, name: "EXPLICIT" },
566
562
  { no: 2, name: "IMPLICIT" },
@@ -569,7 +565,7 @@ exports.FeatureSet_FieldPresence_Enum = (0, __1.createEnumType)("google.protobuf
569
565
  /**
570
566
  * @generated from enum google.protobuf.FeatureSet.EnumType
571
567
  */
572
- var FeatureSet_EnumType;
568
+ export var FeatureSet_EnumType;
573
569
  (function (FeatureSet_EnumType) {
574
570
  /**
575
571
  * @generated from enum value: ENUM_TYPE_UNKNOWN = 0;
@@ -583,9 +579,9 @@ var FeatureSet_EnumType;
583
579
  * @generated from enum value: CLOSED = 2;
584
580
  */
585
581
  FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED";
586
- })(FeatureSet_EnumType || (exports.FeatureSet_EnumType = FeatureSet_EnumType = {}));
582
+ })(FeatureSet_EnumType || (FeatureSet_EnumType = {}));
587
583
  // FeatureSet_EnumType_Enum is the enum type for FeatureSet_EnumType.
588
- exports.FeatureSet_EnumType_Enum = (0, __1.createEnumType)("google.protobuf.FeatureSet.EnumType", [
584
+ export const FeatureSet_EnumType_Enum = createEnumType("google.protobuf.FeatureSet.EnumType", [
589
585
  { no: 0, name: "ENUM_TYPE_UNKNOWN" },
590
586
  { no: 1, name: "OPEN" },
591
587
  { no: 2, name: "CLOSED" },
@@ -593,7 +589,7 @@ exports.FeatureSet_EnumType_Enum = (0, __1.createEnumType)("google.protobuf.Feat
593
589
  /**
594
590
  * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding
595
591
  */
596
- var FeatureSet_RepeatedFieldEncoding;
592
+ export var FeatureSet_RepeatedFieldEncoding;
597
593
  (function (FeatureSet_RepeatedFieldEncoding) {
598
594
  /**
599
595
  * @generated from enum value: REPEATED_FIELD_ENCODING_UNKNOWN = 0;
@@ -607,9 +603,9 @@ var FeatureSet_RepeatedFieldEncoding;
607
603
  * @generated from enum value: EXPANDED = 2;
608
604
  */
609
605
  FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED";
610
- })(FeatureSet_RepeatedFieldEncoding || (exports.FeatureSet_RepeatedFieldEncoding = FeatureSet_RepeatedFieldEncoding = {}));
606
+ })(FeatureSet_RepeatedFieldEncoding || (FeatureSet_RepeatedFieldEncoding = {}));
611
607
  // FeatureSet_RepeatedFieldEncoding_Enum is the enum type for FeatureSet_RepeatedFieldEncoding.
612
- exports.FeatureSet_RepeatedFieldEncoding_Enum = (0, __1.createEnumType)("google.protobuf.FeatureSet.RepeatedFieldEncoding", [
608
+ export const FeatureSet_RepeatedFieldEncoding_Enum = createEnumType("google.protobuf.FeatureSet.RepeatedFieldEncoding", [
613
609
  { no: 0, name: "REPEATED_FIELD_ENCODING_UNKNOWN" },
614
610
  { no: 1, name: "PACKED" },
615
611
  { no: 2, name: "EXPANDED" },
@@ -617,7 +613,7 @@ exports.FeatureSet_RepeatedFieldEncoding_Enum = (0, __1.createEnumType)("google.
617
613
  /**
618
614
  * @generated from enum google.protobuf.FeatureSet.Utf8Validation
619
615
  */
620
- var FeatureSet_Utf8Validation;
616
+ export var FeatureSet_Utf8Validation;
621
617
  (function (FeatureSet_Utf8Validation) {
622
618
  /**
623
619
  * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
@@ -631,9 +627,9 @@ var FeatureSet_Utf8Validation;
631
627
  * @generated from enum value: NONE = 3;
632
628
  */
633
629
  FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE";
634
- })(FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = FeatureSet_Utf8Validation = {}));
630
+ })(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {}));
635
631
  // FeatureSet_Utf8Validation_Enum is the enum type for FeatureSet_Utf8Validation.
636
- exports.FeatureSet_Utf8Validation_Enum = (0, __1.createEnumType)("google.protobuf.FeatureSet.Utf8Validation", [
632
+ export const FeatureSet_Utf8Validation_Enum = createEnumType("google.protobuf.FeatureSet.Utf8Validation", [
637
633
  { no: 0, name: "UTF8_VALIDATION_UNKNOWN" },
638
634
  { no: 2, name: "VERIFY" },
639
635
  { no: 3, name: "NONE" },
@@ -641,7 +637,7 @@ exports.FeatureSet_Utf8Validation_Enum = (0, __1.createEnumType)("google.protobu
641
637
  /**
642
638
  * @generated from enum google.protobuf.FeatureSet.MessageEncoding
643
639
  */
644
- var FeatureSet_MessageEncoding;
640
+ export var FeatureSet_MessageEncoding;
645
641
  (function (FeatureSet_MessageEncoding) {
646
642
  /**
647
643
  * @generated from enum value: MESSAGE_ENCODING_UNKNOWN = 0;
@@ -655,9 +651,9 @@ var FeatureSet_MessageEncoding;
655
651
  * @generated from enum value: DELIMITED = 2;
656
652
  */
657
653
  FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED";
658
- })(FeatureSet_MessageEncoding || (exports.FeatureSet_MessageEncoding = FeatureSet_MessageEncoding = {}));
654
+ })(FeatureSet_MessageEncoding || (FeatureSet_MessageEncoding = {}));
659
655
  // FeatureSet_MessageEncoding_Enum is the enum type for FeatureSet_MessageEncoding.
660
- exports.FeatureSet_MessageEncoding_Enum = (0, __1.createEnumType)("google.protobuf.FeatureSet.MessageEncoding", [
656
+ export const FeatureSet_MessageEncoding_Enum = createEnumType("google.protobuf.FeatureSet.MessageEncoding", [
661
657
  { no: 0, name: "MESSAGE_ENCODING_UNKNOWN" },
662
658
  { no: 1, name: "LENGTH_PREFIXED" },
663
659
  { no: 2, name: "DELIMITED" },
@@ -665,7 +661,7 @@ exports.FeatureSet_MessageEncoding_Enum = (0, __1.createEnumType)("google.protob
665
661
  /**
666
662
  * @generated from enum google.protobuf.FeatureSet.JsonFormat
667
663
  */
668
- var FeatureSet_JsonFormat;
664
+ export var FeatureSet_JsonFormat;
669
665
  (function (FeatureSet_JsonFormat) {
670
666
  /**
671
667
  * @generated from enum value: JSON_FORMAT_UNKNOWN = 0;
@@ -679,9 +675,9 @@ var FeatureSet_JsonFormat;
679
675
  * @generated from enum value: LEGACY_BEST_EFFORT = 2;
680
676
  */
681
677
  FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT";
682
- })(FeatureSet_JsonFormat || (exports.FeatureSet_JsonFormat = FeatureSet_JsonFormat = {}));
678
+ })(FeatureSet_JsonFormat || (FeatureSet_JsonFormat = {}));
683
679
  // FeatureSet_JsonFormat_Enum is the enum type for FeatureSet_JsonFormat.
684
- exports.FeatureSet_JsonFormat_Enum = (0, __1.createEnumType)("google.protobuf.FeatureSet.JsonFormat", [
680
+ export const FeatureSet_JsonFormat_Enum = createEnumType("google.protobuf.FeatureSet.JsonFormat", [
685
681
  { no: 0, name: "JSON_FORMAT_UNKNOWN" },
686
682
  { no: 1, name: "ALLOW" },
687
683
  { no: 2, name: "LEGACY_BEST_EFFORT" },
@@ -693,7 +689,7 @@ exports.FeatureSet_JsonFormat_Enum = (0, __1.createEnumType)("google.protobuf.Fe
693
689
  *
694
690
  * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
695
691
  */
696
- var GeneratedCodeInfo_Annotation_Semantic;
692
+ export var GeneratedCodeInfo_Annotation_Semantic;
697
693
  (function (GeneratedCodeInfo_Annotation_Semantic) {
698
694
  /**
699
695
  * There is no effect or the effect is indescribable.
@@ -716,34 +712,34 @@ var GeneratedCodeInfo_Annotation_Semantic;
716
712
  * @generated from enum value: ALIAS = 2;
717
713
  */
718
714
  GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS";
719
- })(GeneratedCodeInfo_Annotation_Semantic || (exports.GeneratedCodeInfo_Annotation_Semantic = GeneratedCodeInfo_Annotation_Semantic = {}));
715
+ })(GeneratedCodeInfo_Annotation_Semantic || (GeneratedCodeInfo_Annotation_Semantic = {}));
720
716
  // GeneratedCodeInfo_Annotation_Semantic_Enum is the enum type for GeneratedCodeInfo_Annotation_Semantic.
721
- exports.GeneratedCodeInfo_Annotation_Semantic_Enum = (0, __1.createEnumType)("google.protobuf.GeneratedCodeInfo.Annotation.Semantic", [
717
+ export const GeneratedCodeInfo_Annotation_Semantic_Enum = createEnumType("google.protobuf.GeneratedCodeInfo.Annotation.Semantic", [
722
718
  { no: 0, name: "NONE" },
723
719
  { no: 1, name: "SET" },
724
720
  { no: 2, name: "ALIAS" },
725
721
  ]);
726
- exports.FieldOptions_EditionDefault = (0, __1.createMessageType)({
722
+ export const FieldOptions_EditionDefault = createMessageType({
727
723
  typeName: "google.protobuf.FieldOptions.EditionDefault",
728
724
  fields: [
729
- { no: 3, name: "edition", kind: "enum", T: exports.Edition_Enum },
725
+ { no: 3, name: "edition", kind: "enum", T: Edition_Enum },
730
726
  { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
731
727
  ],
732
728
  packedByDefault: false,
733
729
  });
734
- exports.FeatureSet = (0, __1.createMessageType)({
730
+ export const FeatureSet = createMessageType({
735
731
  typeName: "google.protobuf.FeatureSet",
736
732
  fields: [
737
- { no: 1, name: "field_presence", kind: "enum", T: exports.FeatureSet_FieldPresence_Enum },
738
- { no: 2, name: "enum_type", kind: "enum", T: exports.FeatureSet_EnumType_Enum },
739
- { no: 3, name: "repeated_field_encoding", kind: "enum", T: exports.FeatureSet_RepeatedFieldEncoding_Enum },
740
- { no: 4, name: "utf8_validation", kind: "enum", T: exports.FeatureSet_Utf8Validation_Enum },
741
- { no: 5, name: "message_encoding", kind: "enum", T: exports.FeatureSet_MessageEncoding_Enum },
742
- { no: 6, name: "json_format", kind: "enum", T: exports.FeatureSet_JsonFormat_Enum },
733
+ { no: 1, name: "field_presence", kind: "enum", T: FeatureSet_FieldPresence_Enum },
734
+ { no: 2, name: "enum_type", kind: "enum", T: FeatureSet_EnumType_Enum },
735
+ { no: 3, name: "repeated_field_encoding", kind: "enum", T: FeatureSet_RepeatedFieldEncoding_Enum },
736
+ { no: 4, name: "utf8_validation", kind: "enum", T: FeatureSet_Utf8Validation_Enum },
737
+ { no: 5, name: "message_encoding", kind: "enum", T: FeatureSet_MessageEncoding_Enum },
738
+ { no: 6, name: "json_format", kind: "enum", T: FeatureSet_JsonFormat_Enum },
743
739
  ],
744
740
  packedByDefault: false,
745
741
  });
746
- exports.UninterpretedOption_NamePart = (0, __1.createMessageType)({
742
+ export const UninterpretedOption_NamePart = createMessageType({
747
743
  typeName: "google.protobuf.UninterpretedOption.NamePart",
748
744
  fields: [
749
745
  { no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
@@ -751,10 +747,10 @@ exports.UninterpretedOption_NamePart = (0, __1.createMessageType)({
751
747
  ],
752
748
  packedByDefault: false,
753
749
  });
754
- exports.UninterpretedOption = (0, __1.createMessageType)({
750
+ export const UninterpretedOption = createMessageType({
755
751
  typeName: "google.protobuf.UninterpretedOption",
756
752
  fields: [
757
- { no: 2, name: "name", kind: "message", T: () => exports.UninterpretedOption_NamePart, repeated: true },
753
+ { no: 2, name: "name", kind: "message", T: () => UninterpretedOption_NamePart, repeated: true },
758
754
  { no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
759
755
  { no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
760
756
  { no: 5, name: "negative_int_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
@@ -764,73 +760,73 @@ exports.UninterpretedOption = (0, __1.createMessageType)({
764
760
  ],
765
761
  packedByDefault: false,
766
762
  });
767
- exports.FieldOptions = (0, __1.createMessageType)({
763
+ export const FieldOptions = createMessageType({
768
764
  typeName: "google.protobuf.FieldOptions",
769
765
  fields: [
770
- { no: 1, name: "ctype", kind: "enum", T: exports.FieldOptions_CType_Enum, default: FieldOptions_CType.STRING },
766
+ { no: 1, name: "ctype", kind: "enum", T: FieldOptions_CType_Enum, default: FieldOptions_CType.STRING },
771
767
  { no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
772
- { no: 6, name: "jstype", kind: "enum", T: exports.FieldOptions_JSType_Enum, default: FieldOptions_JSType.JS_NORMAL },
768
+ { no: 6, name: "jstype", kind: "enum", T: FieldOptions_JSType_Enum, default: FieldOptions_JSType.JS_NORMAL },
773
769
  { no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
774
770
  { no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
775
771
  { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
776
772
  { no: 10, name: "weak", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
777
773
  { no: 16, name: "debug_redact", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
778
- { no: 17, name: "retention", kind: "enum", T: exports.FieldOptions_OptionRetention_Enum },
779
- { no: 19, name: "targets", kind: "enum", T: exports.FieldOptions_OptionTargetType_Enum, repeated: true },
780
- { no: 20, name: "edition_defaults", kind: "message", T: () => exports.FieldOptions_EditionDefault, repeated: true },
781
- { no: 21, name: "features", kind: "message", T: () => exports.FeatureSet },
782
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
774
+ { no: 17, name: "retention", kind: "enum", T: FieldOptions_OptionRetention_Enum },
775
+ { no: 19, name: "targets", kind: "enum", T: FieldOptions_OptionTargetType_Enum, repeated: true },
776
+ { no: 20, name: "edition_defaults", kind: "message", T: () => FieldOptions_EditionDefault, repeated: true },
777
+ { no: 21, name: "features", kind: "message", T: () => FeatureSet },
778
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
783
779
  ],
784
780
  packedByDefault: false,
785
781
  });
786
- exports.FieldDescriptorProto = (0, __1.createMessageType)({
782
+ export const FieldDescriptorProto = createMessageType({
787
783
  typeName: "google.protobuf.FieldDescriptorProto",
788
784
  fields: [
789
785
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
790
786
  { no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
791
- { no: 4, name: "label", kind: "enum", T: exports.FieldDescriptorProto_Label_Enum },
792
- { no: 5, name: "type", kind: "enum", T: exports.FieldDescriptorProto_Type_Enum },
787
+ { no: 4, name: "label", kind: "enum", T: FieldDescriptorProto_Label_Enum },
788
+ { no: 5, name: "type", kind: "enum", T: FieldDescriptorProto_Type_Enum },
793
789
  { no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
794
790
  { no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
795
791
  { no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
796
792
  { no: 9, name: "oneof_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
797
793
  { no: 10, name: "json_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
798
- { no: 8, name: "options", kind: "message", T: () => exports.FieldOptions },
794
+ { no: 8, name: "options", kind: "message", T: () => FieldOptions },
799
795
  { no: 17, name: "proto3_optional", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
800
796
  ],
801
797
  packedByDefault: false,
802
798
  });
803
- exports.EnumValueOptions = (0, __1.createMessageType)({
799
+ export const EnumValueOptions = createMessageType({
804
800
  typeName: "google.protobuf.EnumValueOptions",
805
801
  fields: [
806
802
  { no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
807
- { no: 2, name: "features", kind: "message", T: () => exports.FeatureSet },
803
+ { no: 2, name: "features", kind: "message", T: () => FeatureSet },
808
804
  { no: 3, name: "debug_redact", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
809
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
805
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
810
806
  ],
811
807
  packedByDefault: false,
812
808
  });
813
- exports.EnumValueDescriptorProto = (0, __1.createMessageType)({
809
+ export const EnumValueDescriptorProto = createMessageType({
814
810
  typeName: "google.protobuf.EnumValueDescriptorProto",
815
811
  fields: [
816
812
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
817
813
  { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
818
- { no: 3, name: "options", kind: "message", T: () => exports.EnumValueOptions },
814
+ { no: 3, name: "options", kind: "message", T: () => EnumValueOptions },
819
815
  ],
820
816
  packedByDefault: false,
821
817
  });
822
- exports.EnumOptions = (0, __1.createMessageType)({
818
+ export const EnumOptions = createMessageType({
823
819
  typeName: "google.protobuf.EnumOptions",
824
820
  fields: [
825
821
  { no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
826
822
  { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
827
823
  { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
828
- { no: 7, name: "features", kind: "message", T: () => exports.FeatureSet },
829
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
824
+ { no: 7, name: "features", kind: "message", T: () => FeatureSet },
825
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
830
826
  ],
831
827
  packedByDefault: false,
832
828
  });
833
- exports.EnumDescriptorProto_EnumReservedRange = (0, __1.createMessageType)({
829
+ export const EnumDescriptorProto_EnumReservedRange = createMessageType({
834
830
  typeName: "google.protobuf.EnumDescriptorProto.EnumReservedRange",
835
831
  fields: [
836
832
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -838,18 +834,18 @@ exports.EnumDescriptorProto_EnumReservedRange = (0, __1.createMessageType)({
838
834
  ],
839
835
  packedByDefault: false,
840
836
  });
841
- exports.EnumDescriptorProto = (0, __1.createMessageType)({
837
+ export const EnumDescriptorProto = createMessageType({
842
838
  typeName: "google.protobuf.EnumDescriptorProto",
843
839
  fields: [
844
840
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
845
- { no: 2, name: "value", kind: "message", T: () => exports.EnumValueDescriptorProto, repeated: true },
846
- { no: 3, name: "options", kind: "message", T: () => exports.EnumOptions },
847
- { no: 4, name: "reserved_range", kind: "message", T: () => exports.EnumDescriptorProto_EnumReservedRange, repeated: true },
841
+ { no: 2, name: "value", kind: "message", T: () => EnumValueDescriptorProto, repeated: true },
842
+ { no: 3, name: "options", kind: "message", T: () => EnumOptions },
843
+ { no: 4, name: "reserved_range", kind: "message", T: () => EnumDescriptorProto_EnumReservedRange, repeated: true },
848
844
  { no: 5, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
849
845
  ],
850
846
  packedByDefault: false,
851
847
  });
852
- exports.ExtensionRangeOptions_Declaration = (0, __1.createMessageType)({
848
+ export const ExtensionRangeOptions_Declaration = createMessageType({
853
849
  typeName: "google.protobuf.ExtensionRangeOptions.Declaration",
854
850
  fields: [
855
851
  { no: 1, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -860,42 +856,42 @@ exports.ExtensionRangeOptions_Declaration = (0, __1.createMessageType)({
860
856
  ],
861
857
  packedByDefault: false,
862
858
  });
863
- exports.ExtensionRangeOptions = (0, __1.createMessageType)({
859
+ export const ExtensionRangeOptions = createMessageType({
864
860
  typeName: "google.protobuf.ExtensionRangeOptions",
865
861
  fields: [
866
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
867
- { no: 2, name: "declaration", kind: "message", T: () => exports.ExtensionRangeOptions_Declaration, repeated: true },
868
- { no: 50, name: "features", kind: "message", T: () => exports.FeatureSet },
869
- { no: 3, name: "verification", kind: "enum", T: exports.ExtensionRangeOptions_VerificationState_Enum, default: ExtensionRangeOptions_VerificationState.UNVERIFIED },
862
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
863
+ { no: 2, name: "declaration", kind: "message", T: () => ExtensionRangeOptions_Declaration, repeated: true },
864
+ { no: 50, name: "features", kind: "message", T: () => FeatureSet },
865
+ { no: 3, name: "verification", kind: "enum", T: ExtensionRangeOptions_VerificationState_Enum, default: ExtensionRangeOptions_VerificationState.UNVERIFIED },
870
866
  ],
871
867
  packedByDefault: false,
872
868
  });
873
- exports.DescriptorProto_ExtensionRange = (0, __1.createMessageType)({
869
+ export const DescriptorProto_ExtensionRange = createMessageType({
874
870
  typeName: "google.protobuf.DescriptorProto.ExtensionRange",
875
871
  fields: [
876
872
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
877
873
  { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
878
- { no: 3, name: "options", kind: "message", T: () => exports.ExtensionRangeOptions },
874
+ { no: 3, name: "options", kind: "message", T: () => ExtensionRangeOptions },
879
875
  ],
880
876
  packedByDefault: false,
881
877
  });
882
- exports.OneofOptions = (0, __1.createMessageType)({
878
+ export const OneofOptions = createMessageType({
883
879
  typeName: "google.protobuf.OneofOptions",
884
880
  fields: [
885
- { no: 1, name: "features", kind: "message", T: () => exports.FeatureSet },
886
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
881
+ { no: 1, name: "features", kind: "message", T: () => FeatureSet },
882
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
887
883
  ],
888
884
  packedByDefault: false,
889
885
  });
890
- exports.OneofDescriptorProto = (0, __1.createMessageType)({
886
+ export const OneofDescriptorProto = createMessageType({
891
887
  typeName: "google.protobuf.OneofDescriptorProto",
892
888
  fields: [
893
889
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
894
- { no: 2, name: "options", kind: "message", T: () => exports.OneofOptions },
890
+ { no: 2, name: "options", kind: "message", T: () => OneofOptions },
895
891
  ],
896
892
  packedByDefault: false,
897
893
  });
898
- exports.MessageOptions = (0, __1.createMessageType)({
894
+ export const MessageOptions = createMessageType({
899
895
  typeName: "google.protobuf.MessageOptions",
900
896
  fields: [
901
897
  { no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
@@ -903,12 +899,12 @@ exports.MessageOptions = (0, __1.createMessageType)({
903
899
  { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
904
900
  { no: 7, name: "map_entry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
905
901
  { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
906
- { no: 12, name: "features", kind: "message", T: () => exports.FeatureSet },
907
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
902
+ { no: 12, name: "features", kind: "message", T: () => FeatureSet },
903
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
908
904
  ],
909
905
  packedByDefault: false,
910
906
  });
911
- exports.DescriptorProto_ReservedRange = (0, __1.createMessageType)({
907
+ export const DescriptorProto_ReservedRange = createMessageType({
912
908
  typeName: "google.protobuf.DescriptorProto.ReservedRange",
913
909
  fields: [
914
910
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -916,63 +912,63 @@ exports.DescriptorProto_ReservedRange = (0, __1.createMessageType)({
916
912
  ],
917
913
  packedByDefault: false,
918
914
  });
919
- exports.DescriptorProto = (0, __1.createMessageType)({
915
+ export const DescriptorProto = createMessageType({
920
916
  typeName: "google.protobuf.DescriptorProto",
921
917
  fields: [
922
918
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
923
- { no: 2, name: "field", kind: "message", T: () => exports.FieldDescriptorProto, repeated: true },
924
- { no: 6, name: "extension", kind: "message", T: () => exports.FieldDescriptorProto, repeated: true },
925
- { no: 3, name: "nested_type", kind: "message", T: () => exports.DescriptorProto, repeated: true },
926
- { no: 4, name: "enum_type", kind: "message", T: () => exports.EnumDescriptorProto, repeated: true },
927
- { no: 5, name: "extension_range", kind: "message", T: () => exports.DescriptorProto_ExtensionRange, repeated: true },
928
- { no: 8, name: "oneof_decl", kind: "message", T: () => exports.OneofDescriptorProto, repeated: true },
929
- { no: 7, name: "options", kind: "message", T: () => exports.MessageOptions },
930
- { no: 9, name: "reserved_range", kind: "message", T: () => exports.DescriptorProto_ReservedRange, repeated: true },
919
+ { no: 2, name: "field", kind: "message", T: () => FieldDescriptorProto, repeated: true },
920
+ { no: 6, name: "extension", kind: "message", T: () => FieldDescriptorProto, repeated: true },
921
+ { no: 3, name: "nested_type", kind: "message", T: () => DescriptorProto, repeated: true },
922
+ { no: 4, name: "enum_type", kind: "message", T: () => EnumDescriptorProto, repeated: true },
923
+ { no: 5, name: "extension_range", kind: "message", T: () => DescriptorProto_ExtensionRange, repeated: true },
924
+ { no: 8, name: "oneof_decl", kind: "message", T: () => OneofDescriptorProto, repeated: true },
925
+ { no: 7, name: "options", kind: "message", T: () => MessageOptions },
926
+ { no: 9, name: "reserved_range", kind: "message", T: () => DescriptorProto_ReservedRange, repeated: true },
931
927
  { no: 10, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
932
928
  ],
933
929
  packedByDefault: false,
934
930
  });
935
- exports.MethodOptions = (0, __1.createMessageType)({
931
+ export const MethodOptions = createMessageType({
936
932
  typeName: "google.protobuf.MethodOptions",
937
933
  fields: [
938
934
  { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
939
- { no: 34, name: "idempotency_level", kind: "enum", T: exports.MethodOptions_IdempotencyLevel_Enum, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
940
- { no: 35, name: "features", kind: "message", T: () => exports.FeatureSet },
941
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
935
+ { no: 34, name: "idempotency_level", kind: "enum", T: MethodOptions_IdempotencyLevel_Enum, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
936
+ { no: 35, name: "features", kind: "message", T: () => FeatureSet },
937
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
942
938
  ],
943
939
  packedByDefault: false,
944
940
  });
945
- exports.MethodDescriptorProto = (0, __1.createMessageType)({
941
+ export const MethodDescriptorProto = createMessageType({
946
942
  typeName: "google.protobuf.MethodDescriptorProto",
947
943
  fields: [
948
944
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
949
945
  { no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
950
946
  { no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
951
- { no: 4, name: "options", kind: "message", T: () => exports.MethodOptions },
947
+ { no: 4, name: "options", kind: "message", T: () => MethodOptions },
952
948
  { no: 5, name: "client_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
953
949
  { no: 6, name: "server_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
954
950
  ],
955
951
  packedByDefault: false,
956
952
  });
957
- exports.ServiceOptions = (0, __1.createMessageType)({
953
+ export const ServiceOptions = createMessageType({
958
954
  typeName: "google.protobuf.ServiceOptions",
959
955
  fields: [
960
- { no: 34, name: "features", kind: "message", T: () => exports.FeatureSet },
956
+ { no: 34, name: "features", kind: "message", T: () => FeatureSet },
961
957
  { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
962
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
958
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
963
959
  ],
964
960
  packedByDefault: false,
965
961
  });
966
- exports.ServiceDescriptorProto = (0, __1.createMessageType)({
962
+ export const ServiceDescriptorProto = createMessageType({
967
963
  typeName: "google.protobuf.ServiceDescriptorProto",
968
964
  fields: [
969
965
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
970
- { no: 2, name: "method", kind: "message", T: () => exports.MethodDescriptorProto, repeated: true },
971
- { no: 3, name: "options", kind: "message", T: () => exports.ServiceOptions },
966
+ { no: 2, name: "method", kind: "message", T: () => MethodDescriptorProto, repeated: true },
967
+ { no: 3, name: "options", kind: "message", T: () => ServiceOptions },
972
968
  ],
973
969
  packedByDefault: false,
974
970
  });
975
- exports.FileOptions = (0, __1.createMessageType)({
971
+ export const FileOptions = createMessageType({
976
972
  typeName: "google.protobuf.FileOptions",
977
973
  fields: [
978
974
  { no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -980,7 +976,7 @@ exports.FileOptions = (0, __1.createMessageType)({
980
976
  { no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
981
977
  { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
982
978
  { no: 27, name: "java_string_check_utf8", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
983
- { no: 9, name: "optimize_for", kind: "enum", T: exports.FileOptions_OptimizeMode_Enum, default: FileOptions_OptimizeMode.SPEED },
979
+ { no: 9, name: "optimize_for", kind: "enum", T: FileOptions_OptimizeMode_Enum, default: FileOptions_OptimizeMode.SPEED },
984
980
  { no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */ },
985
981
  { no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
986
982
  { no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
@@ -994,12 +990,12 @@ exports.FileOptions = (0, __1.createMessageType)({
994
990
  { no: 41, name: "php_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
995
991
  { no: 44, name: "php_metadata_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
996
992
  { no: 45, name: "ruby_package", kind: "scalar", T: 9 /* ScalarType.STRING */ },
997
- { no: 50, name: "features", kind: "message", T: () => exports.FeatureSet },
998
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
993
+ { no: 50, name: "features", kind: "message", T: () => FeatureSet },
994
+ { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
999
995
  ],
1000
996
  packedByDefault: false,
1001
997
  });
1002
- exports.SourceCodeInfo_Location = (0, __1.createMessageType)({
998
+ export const SourceCodeInfo_Location = createMessageType({
1003
999
  typeName: "google.protobuf.SourceCodeInfo.Location",
1004
1000
  fields: [
1005
1001
  { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
@@ -1010,14 +1006,14 @@ exports.SourceCodeInfo_Location = (0, __1.createMessageType)({
1010
1006
  ],
1011
1007
  packedByDefault: false,
1012
1008
  });
1013
- exports.SourceCodeInfo = (0, __1.createMessageType)({
1009
+ export const SourceCodeInfo = createMessageType({
1014
1010
  typeName: "google.protobuf.SourceCodeInfo",
1015
1011
  fields: [
1016
- { no: 1, name: "location", kind: "message", T: () => exports.SourceCodeInfo_Location, repeated: true },
1012
+ { no: 1, name: "location", kind: "message", T: () => SourceCodeInfo_Location, repeated: true },
1017
1013
  ],
1018
1014
  packedByDefault: false,
1019
1015
  });
1020
- exports.FileDescriptorProto = (0, __1.createMessageType)({
1016
+ export const FileDescriptorProto = createMessageType({
1021
1017
  typeName: "google.protobuf.FileDescriptorProto",
1022
1018
  fields: [
1023
1019
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
@@ -1025,56 +1021,56 @@ exports.FileDescriptorProto = (0, __1.createMessageType)({
1025
1021
  { no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1026
1022
  { no: 10, name: "public_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
1027
1023
  { no: 11, name: "weak_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
1028
- { no: 4, name: "message_type", kind: "message", T: () => exports.DescriptorProto, repeated: true },
1029
- { no: 5, name: "enum_type", kind: "message", T: () => exports.EnumDescriptorProto, repeated: true },
1030
- { no: 6, name: "service", kind: "message", T: () => exports.ServiceDescriptorProto, repeated: true },
1031
- { no: 7, name: "extension", kind: "message", T: () => exports.FieldDescriptorProto, repeated: true },
1032
- { no: 8, name: "options", kind: "message", T: () => exports.FileOptions },
1033
- { no: 9, name: "source_code_info", kind: "message", T: () => exports.SourceCodeInfo },
1024
+ { no: 4, name: "message_type", kind: "message", T: () => DescriptorProto, repeated: true },
1025
+ { no: 5, name: "enum_type", kind: "message", T: () => EnumDescriptorProto, repeated: true },
1026
+ { no: 6, name: "service", kind: "message", T: () => ServiceDescriptorProto, repeated: true },
1027
+ { no: 7, name: "extension", kind: "message", T: () => FieldDescriptorProto, repeated: true },
1028
+ { no: 8, name: "options", kind: "message", T: () => FileOptions },
1029
+ { no: 9, name: "source_code_info", kind: "message", T: () => SourceCodeInfo },
1034
1030
  { no: 12, name: "syntax", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1035
- { no: 14, name: "edition", kind: "enum", T: exports.Edition_Enum },
1031
+ { no: 14, name: "edition", kind: "enum", T: Edition_Enum },
1036
1032
  ],
1037
1033
  packedByDefault: false,
1038
1034
  });
1039
- exports.FileDescriptorSet = (0, __1.createMessageType)({
1035
+ export const FileDescriptorSet = createMessageType({
1040
1036
  typeName: "google.protobuf.FileDescriptorSet",
1041
1037
  fields: [
1042
- { no: 1, name: "file", kind: "message", T: () => exports.FileDescriptorProto, repeated: true },
1038
+ { no: 1, name: "file", kind: "message", T: () => FileDescriptorProto, repeated: true },
1043
1039
  ],
1044
1040
  packedByDefault: false,
1045
1041
  });
1046
- exports.FeatureSetDefaults_FeatureSetEditionDefault = (0, __1.createMessageType)({
1042
+ export const FeatureSetDefaults_FeatureSetEditionDefault = createMessageType({
1047
1043
  typeName: "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",
1048
1044
  fields: [
1049
- { no: 3, name: "edition", kind: "enum", T: exports.Edition_Enum },
1050
- { no: 2, name: "features", kind: "message", T: () => exports.FeatureSet },
1045
+ { no: 3, name: "edition", kind: "enum", T: Edition_Enum },
1046
+ { no: 2, name: "features", kind: "message", T: () => FeatureSet },
1051
1047
  ],
1052
1048
  packedByDefault: false,
1053
1049
  });
1054
- exports.FeatureSetDefaults = (0, __1.createMessageType)({
1050
+ export const FeatureSetDefaults = createMessageType({
1055
1051
  typeName: "google.protobuf.FeatureSetDefaults",
1056
1052
  fields: [
1057
- { no: 1, name: "defaults", kind: "message", T: () => exports.FeatureSetDefaults_FeatureSetEditionDefault, repeated: true },
1058
- { no: 4, name: "minimum_edition", kind: "enum", T: exports.Edition_Enum },
1059
- { no: 5, name: "maximum_edition", kind: "enum", T: exports.Edition_Enum },
1053
+ { no: 1, name: "defaults", kind: "message", T: () => FeatureSetDefaults_FeatureSetEditionDefault, repeated: true },
1054
+ { no: 4, name: "minimum_edition", kind: "enum", T: Edition_Enum },
1055
+ { no: 5, name: "maximum_edition", kind: "enum", T: Edition_Enum },
1060
1056
  ],
1061
1057
  packedByDefault: false,
1062
1058
  });
1063
- exports.GeneratedCodeInfo_Annotation = (0, __1.createMessageType)({
1059
+ export const GeneratedCodeInfo_Annotation = createMessageType({
1064
1060
  typeName: "google.protobuf.GeneratedCodeInfo.Annotation",
1065
1061
  fields: [
1066
1062
  { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1067
1063
  { no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1068
1064
  { no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1069
1065
  { no: 4, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1070
- { no: 5, name: "semantic", kind: "enum", T: exports.GeneratedCodeInfo_Annotation_Semantic_Enum },
1066
+ { no: 5, name: "semantic", kind: "enum", T: GeneratedCodeInfo_Annotation_Semantic_Enum },
1071
1067
  ],
1072
1068
  packedByDefault: false,
1073
1069
  });
1074
- exports.GeneratedCodeInfo = (0, __1.createMessageType)({
1070
+ export const GeneratedCodeInfo = createMessageType({
1075
1071
  typeName: "google.protobuf.GeneratedCodeInfo",
1076
1072
  fields: [
1077
- { no: 1, name: "annotation", kind: "message", T: () => exports.GeneratedCodeInfo_Annotation, repeated: true },
1073
+ { no: 1, name: "annotation", kind: "message", T: () => GeneratedCodeInfo_Annotation, repeated: true },
1078
1074
  ],
1079
1075
  packedByDefault: false,
1080
1076
  });