@aptre/protobuf-es-lite 0.2.10 → 0.2.12

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 (79) hide show
  1. package/bin/protoc-gen-es-lite +2 -2
  2. package/dist/assert.js +4 -11
  3. package/dist/binary-encoding.js +69 -42
  4. package/dist/binary.js +87 -105
  5. package/dist/codegen-info.d.ts +0 -1
  6. package/dist/codegen-info.js +12 -16
  7. package/dist/create-descriptor-set.js +114 -118
  8. package/dist/descriptor-set.js +1 -2
  9. package/dist/enum.js +2 -7
  10. package/dist/feature-set.d.ts +1 -1
  11. package/dist/feature-set.js +18 -22
  12. package/dist/field-wrapper.js +12 -17
  13. package/dist/field.js +35 -34
  14. package/dist/google/index.js +9 -41
  15. package/dist/google/protobuf/any.pb.d.ts +2 -2
  16. package/dist/google/protobuf/any.pb.js +3 -6
  17. package/dist/google/protobuf/api.pb.d.ts +2 -2
  18. package/dist/google/protobuf/api.pb.js +56 -21
  19. package/dist/google/protobuf/compiler/plugin.pb.d.ts +2 -2
  20. package/dist/google/protobuf/compiler/plugin.pb.js +15 -18
  21. package/dist/google/protobuf/descriptor.pb.d.ts +19 -19
  22. package/dist/google/protobuf/descriptor.pb.js +831 -223
  23. package/dist/google/protobuf/duration.pb.d.ts +2 -2
  24. package/dist/google/protobuf/duration.pb.js +3 -6
  25. package/dist/google/protobuf/empty.pb.d.ts +2 -2
  26. package/dist/google/protobuf/empty.pb.js +3 -6
  27. package/dist/google/protobuf/source_context.pb.d.ts +2 -2
  28. package/dist/google/protobuf/source_context.pb.js +3 -6
  29. package/dist/google/protobuf/struct.pb.d.ts +3 -3
  30. package/dist/google/protobuf/struct.pb.js +31 -18
  31. package/dist/google/protobuf/timestamp.pb.d.ts +2 -2
  32. package/dist/google/protobuf/timestamp.pb.js +3 -6
  33. package/dist/google/protobuf/type.pb.d.ts +5 -5
  34. package/dist/google/protobuf/type.pb.js +74 -36
  35. package/dist/google/protobuf/wrappers.pb.d.ts +2 -2
  36. package/dist/google/protobuf/wrappers.pb.js +11 -14
  37. package/dist/index.js +12 -60
  38. package/dist/is-message.js +9 -16
  39. package/dist/json.d.ts +0 -9
  40. package/dist/json.js +72 -102
  41. package/dist/message.d.ts +3 -3
  42. package/dist/message.js +50 -57
  43. package/dist/names.js +12 -23
  44. package/dist/partial.js +15 -24
  45. package/dist/proto-base64.js +1 -4
  46. package/dist/proto-double.js +1 -4
  47. package/dist/proto-int64.js +9 -12
  48. package/dist/protoc-gen-es-lite/protoc-gen-es-lite-plugin.js +4 -7
  49. package/dist/protoc-gen-es-lite/typescript.js +27 -36
  50. package/dist/protoplugin/create-es-plugin.js +14 -18
  51. package/dist/protoplugin/ecmascript/file-preamble.js +5 -9
  52. package/dist/protoplugin/ecmascript/generated-file.js +16 -20
  53. package/dist/protoplugin/ecmascript/import-path.js +13 -20
  54. package/dist/protoplugin/ecmascript/import-symbol.js +1 -5
  55. package/dist/protoplugin/ecmascript/index.js +2 -7
  56. package/dist/protoplugin/ecmascript/jsdoc.js +1 -5
  57. package/dist/protoplugin/ecmascript/opaque-printables.js +1 -2
  58. package/dist/protoplugin/ecmascript/parameter.js +10 -14
  59. package/dist/protoplugin/ecmascript/reify-wkt.js +12 -16
  60. package/dist/protoplugin/ecmascript/runtime-imports.js +5 -9
  61. package/dist/protoplugin/ecmascript/schema.js +16 -20
  62. package/dist/protoplugin/ecmascript/target.js +1 -2
  63. package/dist/protoplugin/ecmascript/transpile.js +15 -42
  64. package/dist/protoplugin/error.js +4 -10
  65. package/dist/protoplugin/index.js +2 -7
  66. package/dist/protoplugin/plugin.js +1 -2
  67. package/dist/protoplugin/run-node.js +6 -10
  68. package/dist/scalar.js +9 -15
  69. package/dist/service-type.js +4 -7
  70. package/dist/text-format.js +25 -30
  71. package/dist/unknown.js +7 -12
  72. package/dist/util.d.ts +1 -1
  73. package/dist/util.js +49 -55
  74. package/dist/varint.js +7 -17
  75. package/example/example.pb.ts +24 -18
  76. package/package.json +10 -7
  77. package/tsconfig.base.json +3 -3
  78. package/dist/type-registry.d.ts +0 -43
  79. package/dist/type-registry.js +0 -15
@@ -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,121 +712,319 @@ 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
+ {
734
+ no: 1,
735
+ name: "field_presence",
736
+ kind: "enum",
737
+ T: FeatureSet_FieldPresence_Enum,
738
+ },
739
+ { no: 2, name: "enum_type", kind: "enum", T: FeatureSet_EnumType_Enum },
740
+ {
741
+ no: 3,
742
+ name: "repeated_field_encoding",
743
+ kind: "enum",
744
+ T: FeatureSet_RepeatedFieldEncoding_Enum,
745
+ },
746
+ {
747
+ no: 4,
748
+ name: "utf8_validation",
749
+ kind: "enum",
750
+ T: FeatureSet_Utf8Validation_Enum,
751
+ },
752
+ {
753
+ no: 5,
754
+ name: "message_encoding",
755
+ kind: "enum",
756
+ T: FeatureSet_MessageEncoding_Enum,
757
+ },
758
+ { no: 6, name: "json_format", kind: "enum", T: FeatureSet_JsonFormat_Enum },
743
759
  ],
744
760
  packedByDefault: false,
745
761
  });
746
- exports.UninterpretedOption_NamePart = (0, __1.createMessageType)({
762
+ export const UninterpretedOption_NamePart = createMessageType({
747
763
  typeName: "google.protobuf.UninterpretedOption.NamePart",
748
764
  fields: [
749
- { no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
750
- { no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
765
+ {
766
+ no: 1,
767
+ name: "name_part",
768
+ kind: "scalar",
769
+ T: 9 /* ScalarType.STRING */,
770
+ req: true,
771
+ },
772
+ {
773
+ no: 2,
774
+ name: "is_extension",
775
+ kind: "scalar",
776
+ T: 8 /* ScalarType.BOOL */,
777
+ req: true,
778
+ },
751
779
  ],
752
780
  packedByDefault: false,
753
781
  });
754
- exports.UninterpretedOption = (0, __1.createMessageType)({
782
+ export const UninterpretedOption = createMessageType({
755
783
  typeName: "google.protobuf.UninterpretedOption",
756
784
  fields: [
757
- { no: 2, name: "name", kind: "message", T: () => exports.UninterpretedOption_NamePart, repeated: true },
758
- { no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
759
- { no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */ },
760
- { no: 5, name: "negative_int_value", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
761
- { no: 6, name: "double_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
762
- { no: 7, name: "string_value", kind: "scalar", T: 12 /* ScalarType.BYTES */ },
763
- { no: 8, name: "aggregate_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
785
+ {
786
+ no: 2,
787
+ name: "name",
788
+ kind: "message",
789
+ T: () => UninterpretedOption_NamePart,
790
+ repeated: true,
791
+ },
792
+ {
793
+ no: 3,
794
+ name: "identifier_value",
795
+ kind: "scalar",
796
+ T: 9 /* ScalarType.STRING */,
797
+ },
798
+ {
799
+ no: 4,
800
+ name: "positive_int_value",
801
+ kind: "scalar",
802
+ T: 4 /* ScalarType.UINT64 */,
803
+ },
804
+ {
805
+ no: 5,
806
+ name: "negative_int_value",
807
+ kind: "scalar",
808
+ T: 3 /* ScalarType.INT64 */,
809
+ },
810
+ {
811
+ no: 6,
812
+ name: "double_value",
813
+ kind: "scalar",
814
+ T: 1 /* ScalarType.DOUBLE */,
815
+ },
816
+ {
817
+ no: 7,
818
+ name: "string_value",
819
+ kind: "scalar",
820
+ T: 12 /* ScalarType.BYTES */,
821
+ },
822
+ {
823
+ no: 8,
824
+ name: "aggregate_value",
825
+ kind: "scalar",
826
+ T: 9 /* ScalarType.STRING */,
827
+ },
764
828
  ],
765
829
  packedByDefault: false,
766
830
  });
767
- exports.FieldOptions = (0, __1.createMessageType)({
831
+ export const FieldOptions = createMessageType({
768
832
  typeName: "google.protobuf.FieldOptions",
769
833
  fields: [
770
- { no: 1, name: "ctype", kind: "enum", T: exports.FieldOptions_CType_Enum, default: FieldOptions_CType.STRING },
834
+ {
835
+ no: 1,
836
+ name: "ctype",
837
+ kind: "enum",
838
+ T: FieldOptions_CType_Enum,
839
+ default: FieldOptions_CType.STRING,
840
+ },
771
841
  { 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 },
773
- { no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
774
- { no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
775
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
776
- { no: 10, name: "weak", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
777
- { 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 },
842
+ {
843
+ no: 6,
844
+ name: "jstype",
845
+ kind: "enum",
846
+ T: FieldOptions_JSType_Enum,
847
+ default: FieldOptions_JSType.JS_NORMAL,
848
+ },
849
+ {
850
+ no: 5,
851
+ name: "lazy",
852
+ kind: "scalar",
853
+ T: 8 /* ScalarType.BOOL */,
854
+ default: false,
855
+ },
856
+ {
857
+ no: 15,
858
+ name: "unverified_lazy",
859
+ kind: "scalar",
860
+ T: 8 /* ScalarType.BOOL */,
861
+ default: false,
862
+ },
863
+ {
864
+ no: 3,
865
+ name: "deprecated",
866
+ kind: "scalar",
867
+ T: 8 /* ScalarType.BOOL */,
868
+ default: false,
869
+ },
870
+ {
871
+ no: 10,
872
+ name: "weak",
873
+ kind: "scalar",
874
+ T: 8 /* ScalarType.BOOL */,
875
+ default: false,
876
+ },
877
+ {
878
+ no: 16,
879
+ name: "debug_redact",
880
+ kind: "scalar",
881
+ T: 8 /* ScalarType.BOOL */,
882
+ default: false,
883
+ },
884
+ {
885
+ no: 17,
886
+ name: "retention",
887
+ kind: "enum",
888
+ T: FieldOptions_OptionRetention_Enum,
889
+ },
890
+ {
891
+ no: 19,
892
+ name: "targets",
893
+ kind: "enum",
894
+ T: FieldOptions_OptionTargetType_Enum,
895
+ repeated: true,
896
+ },
897
+ {
898
+ no: 20,
899
+ name: "edition_defaults",
900
+ kind: "message",
901
+ T: () => FieldOptions_EditionDefault,
902
+ repeated: true,
903
+ },
904
+ { no: 21, name: "features", kind: "message", T: () => FeatureSet },
905
+ {
906
+ no: 999,
907
+ name: "uninterpreted_option",
908
+ kind: "message",
909
+ T: () => UninterpretedOption,
910
+ repeated: true,
911
+ },
783
912
  ],
784
913
  packedByDefault: false,
785
914
  });
786
- exports.FieldDescriptorProto = (0, __1.createMessageType)({
915
+ export const FieldDescriptorProto = createMessageType({
787
916
  typeName: "google.protobuf.FieldDescriptorProto",
788
917
  fields: [
789
918
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
790
919
  { 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 },
793
- { no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
920
+ {
921
+ no: 4,
922
+ name: "label",
923
+ kind: "enum",
924
+ T: FieldDescriptorProto_Label_Enum,
925
+ },
926
+ { no: 5, name: "type", kind: "enum", T: FieldDescriptorProto_Type_Enum },
927
+ {
928
+ no: 6,
929
+ name: "type_name",
930
+ kind: "scalar",
931
+ T: 9 /* ScalarType.STRING */,
932
+ },
794
933
  { no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
795
- { no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */ },
796
- { no: 9, name: "oneof_index", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
797
- { no: 10, name: "json_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
798
- { no: 8, name: "options", kind: "message", T: () => exports.FieldOptions },
799
- { no: 17, name: "proto3_optional", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
934
+ {
935
+ no: 7,
936
+ name: "default_value",
937
+ kind: "scalar",
938
+ T: 9 /* ScalarType.STRING */,
939
+ },
940
+ {
941
+ no: 9,
942
+ name: "oneof_index",
943
+ kind: "scalar",
944
+ T: 5 /* ScalarType.INT32 */,
945
+ },
946
+ {
947
+ no: 10,
948
+ name: "json_name",
949
+ kind: "scalar",
950
+ T: 9 /* ScalarType.STRING */,
951
+ },
952
+ { no: 8, name: "options", kind: "message", T: () => FieldOptions },
953
+ {
954
+ no: 17,
955
+ name: "proto3_optional",
956
+ kind: "scalar",
957
+ T: 8 /* ScalarType.BOOL */,
958
+ },
800
959
  ],
801
960
  packedByDefault: false,
802
961
  });
803
- exports.EnumValueOptions = (0, __1.createMessageType)({
962
+ export const EnumValueOptions = createMessageType({
804
963
  typeName: "google.protobuf.EnumValueOptions",
805
964
  fields: [
806
- { no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
807
- { no: 2, name: "features", kind: "message", T: () => exports.FeatureSet },
808
- { 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 },
965
+ {
966
+ no: 1,
967
+ name: "deprecated",
968
+ kind: "scalar",
969
+ T: 8 /* ScalarType.BOOL */,
970
+ default: false,
971
+ },
972
+ { no: 2, name: "features", kind: "message", T: () => FeatureSet },
973
+ {
974
+ no: 3,
975
+ name: "debug_redact",
976
+ kind: "scalar",
977
+ T: 8 /* ScalarType.BOOL */,
978
+ default: false,
979
+ },
980
+ {
981
+ no: 999,
982
+ name: "uninterpreted_option",
983
+ kind: "message",
984
+ T: () => UninterpretedOption,
985
+ repeated: true,
986
+ },
810
987
  ],
811
988
  packedByDefault: false,
812
989
  });
813
- exports.EnumValueDescriptorProto = (0, __1.createMessageType)({
990
+ export const EnumValueDescriptorProto = createMessageType({
814
991
  typeName: "google.protobuf.EnumValueDescriptorProto",
815
992
  fields: [
816
993
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
817
994
  { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
818
- { no: 3, name: "options", kind: "message", T: () => exports.EnumValueOptions },
995
+ { no: 3, name: "options", kind: "message", T: () => EnumValueOptions },
819
996
  ],
820
997
  packedByDefault: false,
821
998
  });
822
- exports.EnumOptions = (0, __1.createMessageType)({
999
+ export const EnumOptions = createMessageType({
823
1000
  typeName: "google.protobuf.EnumOptions",
824
1001
  fields: [
825
1002
  { no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
826
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
827
- { 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 },
1003
+ {
1004
+ no: 3,
1005
+ name: "deprecated",
1006
+ kind: "scalar",
1007
+ T: 8 /* ScalarType.BOOL */,
1008
+ default: false,
1009
+ },
1010
+ {
1011
+ no: 6,
1012
+ name: "deprecated_legacy_json_field_conflicts",
1013
+ kind: "scalar",
1014
+ T: 8 /* ScalarType.BOOL */,
1015
+ },
1016
+ { no: 7, name: "features", kind: "message", T: () => FeatureSet },
1017
+ {
1018
+ no: 999,
1019
+ name: "uninterpreted_option",
1020
+ kind: "message",
1021
+ T: () => UninterpretedOption,
1022
+ repeated: true,
1023
+ },
830
1024
  ],
831
1025
  packedByDefault: false,
832
1026
  });
833
- exports.EnumDescriptorProto_EnumReservedRange = (0, __1.createMessageType)({
1027
+ export const EnumDescriptorProto_EnumReservedRange = createMessageType({
834
1028
  typeName: "google.protobuf.EnumDescriptorProto.EnumReservedRange",
835
1029
  fields: [
836
1030
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -838,77 +1032,158 @@ exports.EnumDescriptorProto_EnumReservedRange = (0, __1.createMessageType)({
838
1032
  ],
839
1033
  packedByDefault: false,
840
1034
  });
841
- exports.EnumDescriptorProto = (0, __1.createMessageType)({
1035
+ export const EnumDescriptorProto = createMessageType({
842
1036
  typeName: "google.protobuf.EnumDescriptorProto",
843
1037
  fields: [
844
1038
  { 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 },
848
- { no: 5, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1039
+ {
1040
+ no: 2,
1041
+ name: "value",
1042
+ kind: "message",
1043
+ T: () => EnumValueDescriptorProto,
1044
+ repeated: true,
1045
+ },
1046
+ { no: 3, name: "options", kind: "message", T: () => EnumOptions },
1047
+ {
1048
+ no: 4,
1049
+ name: "reserved_range",
1050
+ kind: "message",
1051
+ T: () => EnumDescriptorProto_EnumReservedRange,
1052
+ repeated: true,
1053
+ },
1054
+ {
1055
+ no: 5,
1056
+ name: "reserved_name",
1057
+ kind: "scalar",
1058
+ T: 9 /* ScalarType.STRING */,
1059
+ repeated: true,
1060
+ },
849
1061
  ],
850
1062
  packedByDefault: false,
851
1063
  });
852
- exports.ExtensionRangeOptions_Declaration = (0, __1.createMessageType)({
1064
+ export const ExtensionRangeOptions_Declaration = createMessageType({
853
1065
  typeName: "google.protobuf.ExtensionRangeOptions.Declaration",
854
1066
  fields: [
855
1067
  { no: 1, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
856
- { no: 2, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1068
+ {
1069
+ no: 2,
1070
+ name: "full_name",
1071
+ kind: "scalar",
1072
+ T: 9 /* ScalarType.STRING */,
1073
+ },
857
1074
  { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
858
1075
  { no: 5, name: "reserved", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
859
1076
  { no: 6, name: "repeated", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
860
1077
  ],
861
1078
  packedByDefault: false,
862
1079
  });
863
- exports.ExtensionRangeOptions = (0, __1.createMessageType)({
1080
+ export const ExtensionRangeOptions = createMessageType({
864
1081
  typeName: "google.protobuf.ExtensionRangeOptions",
865
1082
  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 },
1083
+ {
1084
+ no: 999,
1085
+ name: "uninterpreted_option",
1086
+ kind: "message",
1087
+ T: () => UninterpretedOption,
1088
+ repeated: true,
1089
+ },
1090
+ {
1091
+ no: 2,
1092
+ name: "declaration",
1093
+ kind: "message",
1094
+ T: () => ExtensionRangeOptions_Declaration,
1095
+ repeated: true,
1096
+ },
1097
+ { no: 50, name: "features", kind: "message", T: () => FeatureSet },
1098
+ {
1099
+ no: 3,
1100
+ name: "verification",
1101
+ kind: "enum",
1102
+ T: ExtensionRangeOptions_VerificationState_Enum,
1103
+ default: ExtensionRangeOptions_VerificationState.UNVERIFIED,
1104
+ },
870
1105
  ],
871
1106
  packedByDefault: false,
872
1107
  });
873
- exports.DescriptorProto_ExtensionRange = (0, __1.createMessageType)({
1108
+ export const DescriptorProto_ExtensionRange = createMessageType({
874
1109
  typeName: "google.protobuf.DescriptorProto.ExtensionRange",
875
1110
  fields: [
876
1111
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
877
1112
  { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
878
- { no: 3, name: "options", kind: "message", T: () => exports.ExtensionRangeOptions },
1113
+ {
1114
+ no: 3,
1115
+ name: "options",
1116
+ kind: "message",
1117
+ T: () => ExtensionRangeOptions,
1118
+ },
879
1119
  ],
880
1120
  packedByDefault: false,
881
1121
  });
882
- exports.OneofOptions = (0, __1.createMessageType)({
1122
+ export const OneofOptions = createMessageType({
883
1123
  typeName: "google.protobuf.OneofOptions",
884
1124
  fields: [
885
- { no: 1, name: "features", kind: "message", T: () => exports.FeatureSet },
886
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => exports.UninterpretedOption, repeated: true },
1125
+ { no: 1, name: "features", kind: "message", T: () => FeatureSet },
1126
+ {
1127
+ no: 999,
1128
+ name: "uninterpreted_option",
1129
+ kind: "message",
1130
+ T: () => UninterpretedOption,
1131
+ repeated: true,
1132
+ },
887
1133
  ],
888
1134
  packedByDefault: false,
889
1135
  });
890
- exports.OneofDescriptorProto = (0, __1.createMessageType)({
1136
+ export const OneofDescriptorProto = createMessageType({
891
1137
  typeName: "google.protobuf.OneofDescriptorProto",
892
1138
  fields: [
893
1139
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
894
- { no: 2, name: "options", kind: "message", T: () => exports.OneofOptions },
1140
+ { no: 2, name: "options", kind: "message", T: () => OneofOptions },
895
1141
  ],
896
1142
  packedByDefault: false,
897
1143
  });
898
- exports.MessageOptions = (0, __1.createMessageType)({
1144
+ export const MessageOptions = createMessageType({
899
1145
  typeName: "google.protobuf.MessageOptions",
900
1146
  fields: [
901
- { no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
902
- { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
903
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
1147
+ {
1148
+ no: 1,
1149
+ name: "message_set_wire_format",
1150
+ kind: "scalar",
1151
+ T: 8 /* ScalarType.BOOL */,
1152
+ default: false,
1153
+ },
1154
+ {
1155
+ no: 2,
1156
+ name: "no_standard_descriptor_accessor",
1157
+ kind: "scalar",
1158
+ T: 8 /* ScalarType.BOOL */,
1159
+ default: false,
1160
+ },
1161
+ {
1162
+ no: 3,
1163
+ name: "deprecated",
1164
+ kind: "scalar",
1165
+ T: 8 /* ScalarType.BOOL */,
1166
+ default: false,
1167
+ },
904
1168
  { no: 7, name: "map_entry", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
905
- { 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 },
1169
+ {
1170
+ no: 11,
1171
+ name: "deprecated_legacy_json_field_conflicts",
1172
+ kind: "scalar",
1173
+ T: 8 /* ScalarType.BOOL */,
1174
+ },
1175
+ { no: 12, name: "features", kind: "message", T: () => FeatureSet },
1176
+ {
1177
+ no: 999,
1178
+ name: "uninterpreted_option",
1179
+ kind: "message",
1180
+ T: () => UninterpretedOption,
1181
+ repeated: true,
1182
+ },
908
1183
  ],
909
1184
  packedByDefault: false,
910
1185
  });
911
- exports.DescriptorProto_ReservedRange = (0, __1.createMessageType)({
1186
+ export const DescriptorProto_ReservedRange = createMessageType({
912
1187
  typeName: "google.protobuf.DescriptorProto.ReservedRange",
913
1188
  fields: [
914
1189
  { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -916,165 +1191,498 @@ exports.DescriptorProto_ReservedRange = (0, __1.createMessageType)({
916
1191
  ],
917
1192
  packedByDefault: false,
918
1193
  });
919
- exports.DescriptorProto = (0, __1.createMessageType)({
1194
+ export const DescriptorProto = createMessageType({
920
1195
  typeName: "google.protobuf.DescriptorProto",
921
1196
  fields: [
922
1197
  { 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 },
931
- { no: 10, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1198
+ {
1199
+ no: 2,
1200
+ name: "field",
1201
+ kind: "message",
1202
+ T: () => FieldDescriptorProto,
1203
+ repeated: true,
1204
+ },
1205
+ {
1206
+ no: 6,
1207
+ name: "extension",
1208
+ kind: "message",
1209
+ T: () => FieldDescriptorProto,
1210
+ repeated: true,
1211
+ },
1212
+ {
1213
+ no: 3,
1214
+ name: "nested_type",
1215
+ kind: "message",
1216
+ T: () => DescriptorProto,
1217
+ repeated: true,
1218
+ },
1219
+ {
1220
+ no: 4,
1221
+ name: "enum_type",
1222
+ kind: "message",
1223
+ T: () => EnumDescriptorProto,
1224
+ repeated: true,
1225
+ },
1226
+ {
1227
+ no: 5,
1228
+ name: "extension_range",
1229
+ kind: "message",
1230
+ T: () => DescriptorProto_ExtensionRange,
1231
+ repeated: true,
1232
+ },
1233
+ {
1234
+ no: 8,
1235
+ name: "oneof_decl",
1236
+ kind: "message",
1237
+ T: () => OneofDescriptorProto,
1238
+ repeated: true,
1239
+ },
1240
+ { no: 7, name: "options", kind: "message", T: () => MessageOptions },
1241
+ {
1242
+ no: 9,
1243
+ name: "reserved_range",
1244
+ kind: "message",
1245
+ T: () => DescriptorProto_ReservedRange,
1246
+ repeated: true,
1247
+ },
1248
+ {
1249
+ no: 10,
1250
+ name: "reserved_name",
1251
+ kind: "scalar",
1252
+ T: 9 /* ScalarType.STRING */,
1253
+ repeated: true,
1254
+ },
932
1255
  ],
933
1256
  packedByDefault: false,
934
1257
  });
935
- exports.MethodOptions = (0, __1.createMessageType)({
1258
+ export const MethodOptions = createMessageType({
936
1259
  typeName: "google.protobuf.MethodOptions",
937
1260
  fields: [
938
- { 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 },
1261
+ {
1262
+ no: 33,
1263
+ name: "deprecated",
1264
+ kind: "scalar",
1265
+ T: 8 /* ScalarType.BOOL */,
1266
+ default: false,
1267
+ },
1268
+ {
1269
+ no: 34,
1270
+ name: "idempotency_level",
1271
+ kind: "enum",
1272
+ T: MethodOptions_IdempotencyLevel_Enum,
1273
+ default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
1274
+ },
1275
+ { no: 35, name: "features", kind: "message", T: () => FeatureSet },
1276
+ {
1277
+ no: 999,
1278
+ name: "uninterpreted_option",
1279
+ kind: "message",
1280
+ T: () => UninterpretedOption,
1281
+ repeated: true,
1282
+ },
942
1283
  ],
943
1284
  packedByDefault: false,
944
1285
  });
945
- exports.MethodDescriptorProto = (0, __1.createMessageType)({
1286
+ export const MethodDescriptorProto = createMessageType({
946
1287
  typeName: "google.protobuf.MethodDescriptorProto",
947
1288
  fields: [
948
1289
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
949
- { no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
950
- { no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
951
- { no: 4, name: "options", kind: "message", T: () => exports.MethodOptions },
952
- { no: 5, name: "client_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
953
- { no: 6, name: "server_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
1290
+ {
1291
+ no: 2,
1292
+ name: "input_type",
1293
+ kind: "scalar",
1294
+ T: 9 /* ScalarType.STRING */,
1295
+ },
1296
+ {
1297
+ no: 3,
1298
+ name: "output_type",
1299
+ kind: "scalar",
1300
+ T: 9 /* ScalarType.STRING */,
1301
+ },
1302
+ { no: 4, name: "options", kind: "message", T: () => MethodOptions },
1303
+ {
1304
+ no: 5,
1305
+ name: "client_streaming",
1306
+ kind: "scalar",
1307
+ T: 8 /* ScalarType.BOOL */,
1308
+ default: false,
1309
+ },
1310
+ {
1311
+ no: 6,
1312
+ name: "server_streaming",
1313
+ kind: "scalar",
1314
+ T: 8 /* ScalarType.BOOL */,
1315
+ default: false,
1316
+ },
954
1317
  ],
955
1318
  packedByDefault: false,
956
1319
  });
957
- exports.ServiceOptions = (0, __1.createMessageType)({
1320
+ export const ServiceOptions = createMessageType({
958
1321
  typeName: "google.protobuf.ServiceOptions",
959
1322
  fields: [
960
- { no: 34, name: "features", kind: "message", T: () => exports.FeatureSet },
961
- { 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 },
1323
+ { no: 34, name: "features", kind: "message", T: () => FeatureSet },
1324
+ {
1325
+ no: 33,
1326
+ name: "deprecated",
1327
+ kind: "scalar",
1328
+ T: 8 /* ScalarType.BOOL */,
1329
+ default: false,
1330
+ },
1331
+ {
1332
+ no: 999,
1333
+ name: "uninterpreted_option",
1334
+ kind: "message",
1335
+ T: () => UninterpretedOption,
1336
+ repeated: true,
1337
+ },
963
1338
  ],
964
1339
  packedByDefault: false,
965
1340
  });
966
- exports.ServiceDescriptorProto = (0, __1.createMessageType)({
1341
+ export const ServiceDescriptorProto = createMessageType({
967
1342
  typeName: "google.protobuf.ServiceDescriptorProto",
968
1343
  fields: [
969
1344
  { 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 },
1345
+ {
1346
+ no: 2,
1347
+ name: "method",
1348
+ kind: "message",
1349
+ T: () => MethodDescriptorProto,
1350
+ repeated: true,
1351
+ },
1352
+ { no: 3, name: "options", kind: "message", T: () => ServiceOptions },
972
1353
  ],
973
1354
  packedByDefault: false,
974
1355
  });
975
- exports.FileOptions = (0, __1.createMessageType)({
1356
+ export const FileOptions = createMessageType({
976
1357
  typeName: "google.protobuf.FileOptions",
977
1358
  fields: [
978
- { no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */ },
979
- { no: 8, name: "java_outer_classname", kind: "scalar", T: 9 /* ScalarType.STRING */ },
980
- { no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
981
- { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
982
- { 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 },
984
- { no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */ },
985
- { no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
986
- { no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
987
- { no: 18, name: "py_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
988
- { no: 23, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: false },
989
- { no: 31, name: "cc_enable_arenas", kind: "scalar", T: 8 /* ScalarType.BOOL */, default: true },
990
- { no: 36, name: "objc_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
991
- { no: 37, name: "csharp_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
992
- { no: 39, name: "swift_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
993
- { no: 40, name: "php_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */ },
994
- { no: 41, name: "php_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
995
- { no: 44, name: "php_metadata_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */ },
996
- { 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 },
1359
+ {
1360
+ no: 1,
1361
+ name: "java_package",
1362
+ kind: "scalar",
1363
+ T: 9 /* ScalarType.STRING */,
1364
+ },
1365
+ {
1366
+ no: 8,
1367
+ name: "java_outer_classname",
1368
+ kind: "scalar",
1369
+ T: 9 /* ScalarType.STRING */,
1370
+ },
1371
+ {
1372
+ no: 10,
1373
+ name: "java_multiple_files",
1374
+ kind: "scalar",
1375
+ T: 8 /* ScalarType.BOOL */,
1376
+ default: false,
1377
+ },
1378
+ {
1379
+ no: 20,
1380
+ name: "java_generate_equals_and_hash",
1381
+ kind: "scalar",
1382
+ T: 8 /* ScalarType.BOOL */,
1383
+ },
1384
+ {
1385
+ no: 27,
1386
+ name: "java_string_check_utf8",
1387
+ kind: "scalar",
1388
+ T: 8 /* ScalarType.BOOL */,
1389
+ default: false,
1390
+ },
1391
+ {
1392
+ no: 9,
1393
+ name: "optimize_for",
1394
+ kind: "enum",
1395
+ T: FileOptions_OptimizeMode_Enum,
1396
+ default: FileOptions_OptimizeMode.SPEED,
1397
+ },
1398
+ {
1399
+ no: 11,
1400
+ name: "go_package",
1401
+ kind: "scalar",
1402
+ T: 9 /* ScalarType.STRING */,
1403
+ },
1404
+ {
1405
+ no: 16,
1406
+ name: "cc_generic_services",
1407
+ kind: "scalar",
1408
+ T: 8 /* ScalarType.BOOL */,
1409
+ default: false,
1410
+ },
1411
+ {
1412
+ no: 17,
1413
+ name: "java_generic_services",
1414
+ kind: "scalar",
1415
+ T: 8 /* ScalarType.BOOL */,
1416
+ default: false,
1417
+ },
1418
+ {
1419
+ no: 18,
1420
+ name: "py_generic_services",
1421
+ kind: "scalar",
1422
+ T: 8 /* ScalarType.BOOL */,
1423
+ default: false,
1424
+ },
1425
+ {
1426
+ no: 23,
1427
+ name: "deprecated",
1428
+ kind: "scalar",
1429
+ T: 8 /* ScalarType.BOOL */,
1430
+ default: false,
1431
+ },
1432
+ {
1433
+ no: 31,
1434
+ name: "cc_enable_arenas",
1435
+ kind: "scalar",
1436
+ T: 8 /* ScalarType.BOOL */,
1437
+ default: true,
1438
+ },
1439
+ {
1440
+ no: 36,
1441
+ name: "objc_class_prefix",
1442
+ kind: "scalar",
1443
+ T: 9 /* ScalarType.STRING */,
1444
+ },
1445
+ {
1446
+ no: 37,
1447
+ name: "csharp_namespace",
1448
+ kind: "scalar",
1449
+ T: 9 /* ScalarType.STRING */,
1450
+ },
1451
+ {
1452
+ no: 39,
1453
+ name: "swift_prefix",
1454
+ kind: "scalar",
1455
+ T: 9 /* ScalarType.STRING */,
1456
+ },
1457
+ {
1458
+ no: 40,
1459
+ name: "php_class_prefix",
1460
+ kind: "scalar",
1461
+ T: 9 /* ScalarType.STRING */,
1462
+ },
1463
+ {
1464
+ no: 41,
1465
+ name: "php_namespace",
1466
+ kind: "scalar",
1467
+ T: 9 /* ScalarType.STRING */,
1468
+ },
1469
+ {
1470
+ no: 44,
1471
+ name: "php_metadata_namespace",
1472
+ kind: "scalar",
1473
+ T: 9 /* ScalarType.STRING */,
1474
+ },
1475
+ {
1476
+ no: 45,
1477
+ name: "ruby_package",
1478
+ kind: "scalar",
1479
+ T: 9 /* ScalarType.STRING */,
1480
+ },
1481
+ { no: 50, name: "features", kind: "message", T: () => FeatureSet },
1482
+ {
1483
+ no: 999,
1484
+ name: "uninterpreted_option",
1485
+ kind: "message",
1486
+ T: () => UninterpretedOption,
1487
+ repeated: true,
1488
+ },
999
1489
  ],
1000
1490
  packedByDefault: false,
1001
1491
  });
1002
- exports.SourceCodeInfo_Location = (0, __1.createMessageType)({
1492
+ export const SourceCodeInfo_Location = createMessageType({
1003
1493
  typeName: "google.protobuf.SourceCodeInfo.Location",
1004
1494
  fields: [
1005
- { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1006
- { no: 2, name: "span", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1007
- { no: 3, name: "leading_comments", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1008
- { no: 4, name: "trailing_comments", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1009
- { no: 6, name: "leading_detached_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1495
+ {
1496
+ no: 1,
1497
+ name: "path",
1498
+ kind: "scalar",
1499
+ T: 5 /* ScalarType.INT32 */,
1500
+ repeated: true,
1501
+ packed: true,
1502
+ },
1503
+ {
1504
+ no: 2,
1505
+ name: "span",
1506
+ kind: "scalar",
1507
+ T: 5 /* ScalarType.INT32 */,
1508
+ repeated: true,
1509
+ packed: true,
1510
+ },
1511
+ {
1512
+ no: 3,
1513
+ name: "leading_comments",
1514
+ kind: "scalar",
1515
+ T: 9 /* ScalarType.STRING */,
1516
+ },
1517
+ {
1518
+ no: 4,
1519
+ name: "trailing_comments",
1520
+ kind: "scalar",
1521
+ T: 9 /* ScalarType.STRING */,
1522
+ },
1523
+ {
1524
+ no: 6,
1525
+ name: "leading_detached_comments",
1526
+ kind: "scalar",
1527
+ T: 9 /* ScalarType.STRING */,
1528
+ repeated: true,
1529
+ },
1010
1530
  ],
1011
1531
  packedByDefault: false,
1012
1532
  });
1013
- exports.SourceCodeInfo = (0, __1.createMessageType)({
1533
+ export const SourceCodeInfo = createMessageType({
1014
1534
  typeName: "google.protobuf.SourceCodeInfo",
1015
1535
  fields: [
1016
- { no: 1, name: "location", kind: "message", T: () => exports.SourceCodeInfo_Location, repeated: true },
1536
+ {
1537
+ no: 1,
1538
+ name: "location",
1539
+ kind: "message",
1540
+ T: () => SourceCodeInfo_Location,
1541
+ repeated: true,
1542
+ },
1017
1543
  ],
1018
1544
  packedByDefault: false,
1019
1545
  });
1020
- exports.FileDescriptorProto = (0, __1.createMessageType)({
1546
+ export const FileDescriptorProto = createMessageType({
1021
1547
  typeName: "google.protobuf.FileDescriptorProto",
1022
1548
  fields: [
1023
1549
  { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1024
1550
  { no: 2, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1025
- { no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1026
- { no: 10, name: "public_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
1027
- { 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 },
1551
+ {
1552
+ no: 3,
1553
+ name: "dependency",
1554
+ kind: "scalar",
1555
+ T: 9 /* ScalarType.STRING */,
1556
+ repeated: true,
1557
+ },
1558
+ {
1559
+ no: 10,
1560
+ name: "public_dependency",
1561
+ kind: "scalar",
1562
+ T: 5 /* ScalarType.INT32 */,
1563
+ repeated: true,
1564
+ },
1565
+ {
1566
+ no: 11,
1567
+ name: "weak_dependency",
1568
+ kind: "scalar",
1569
+ T: 5 /* ScalarType.INT32 */,
1570
+ repeated: true,
1571
+ },
1572
+ {
1573
+ no: 4,
1574
+ name: "message_type",
1575
+ kind: "message",
1576
+ T: () => DescriptorProto,
1577
+ repeated: true,
1578
+ },
1579
+ {
1580
+ no: 5,
1581
+ name: "enum_type",
1582
+ kind: "message",
1583
+ T: () => EnumDescriptorProto,
1584
+ repeated: true,
1585
+ },
1586
+ {
1587
+ no: 6,
1588
+ name: "service",
1589
+ kind: "message",
1590
+ T: () => ServiceDescriptorProto,
1591
+ repeated: true,
1592
+ },
1593
+ {
1594
+ no: 7,
1595
+ name: "extension",
1596
+ kind: "message",
1597
+ T: () => FieldDescriptorProto,
1598
+ repeated: true,
1599
+ },
1600
+ { no: 8, name: "options", kind: "message", T: () => FileOptions },
1601
+ {
1602
+ no: 9,
1603
+ name: "source_code_info",
1604
+ kind: "message",
1605
+ T: () => SourceCodeInfo,
1606
+ },
1034
1607
  { no: 12, name: "syntax", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1035
- { no: 14, name: "edition", kind: "enum", T: exports.Edition_Enum },
1608
+ { no: 14, name: "edition", kind: "enum", T: Edition_Enum },
1036
1609
  ],
1037
1610
  packedByDefault: false,
1038
1611
  });
1039
- exports.FileDescriptorSet = (0, __1.createMessageType)({
1612
+ export const FileDescriptorSet = createMessageType({
1040
1613
  typeName: "google.protobuf.FileDescriptorSet",
1041
1614
  fields: [
1042
- { no: 1, name: "file", kind: "message", T: () => exports.FileDescriptorProto, repeated: true },
1615
+ {
1616
+ no: 1,
1617
+ name: "file",
1618
+ kind: "message",
1619
+ T: () => FileDescriptorProto,
1620
+ repeated: true,
1621
+ },
1043
1622
  ],
1044
1623
  packedByDefault: false,
1045
1624
  });
1046
- exports.FeatureSetDefaults_FeatureSetEditionDefault = (0, __1.createMessageType)({
1625
+ export const FeatureSetDefaults_FeatureSetEditionDefault = createMessageType({
1047
1626
  typeName: "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",
1048
1627
  fields: [
1049
- { no: 3, name: "edition", kind: "enum", T: exports.Edition_Enum },
1050
- { no: 2, name: "features", kind: "message", T: () => exports.FeatureSet },
1628
+ { no: 3, name: "edition", kind: "enum", T: Edition_Enum },
1629
+ { no: 2, name: "features", kind: "message", T: () => FeatureSet },
1051
1630
  ],
1052
1631
  packedByDefault: false,
1053
1632
  });
1054
- exports.FeatureSetDefaults = (0, __1.createMessageType)({
1633
+ export const FeatureSetDefaults = createMessageType({
1055
1634
  typeName: "google.protobuf.FeatureSetDefaults",
1056
1635
  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 },
1636
+ {
1637
+ no: 1,
1638
+ name: "defaults",
1639
+ kind: "message",
1640
+ T: () => FeatureSetDefaults_FeatureSetEditionDefault,
1641
+ repeated: true,
1642
+ },
1643
+ { no: 4, name: "minimum_edition", kind: "enum", T: Edition_Enum },
1644
+ { no: 5, name: "maximum_edition", kind: "enum", T: Edition_Enum },
1060
1645
  ],
1061
1646
  packedByDefault: false,
1062
1647
  });
1063
- exports.GeneratedCodeInfo_Annotation = (0, __1.createMessageType)({
1648
+ export const GeneratedCodeInfo_Annotation = createMessageType({
1064
1649
  typeName: "google.protobuf.GeneratedCodeInfo.Annotation",
1065
1650
  fields: [
1066
- { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1067
- { no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1651
+ {
1652
+ no: 1,
1653
+ name: "path",
1654
+ kind: "scalar",
1655
+ T: 5 /* ScalarType.INT32 */,
1656
+ repeated: true,
1657
+ packed: true,
1658
+ },
1659
+ {
1660
+ no: 2,
1661
+ name: "source_file",
1662
+ kind: "scalar",
1663
+ T: 9 /* ScalarType.STRING */,
1664
+ },
1068
1665
  { no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1069
1666
  { no: 4, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
1070
- { no: 5, name: "semantic", kind: "enum", T: exports.GeneratedCodeInfo_Annotation_Semantic_Enum },
1667
+ {
1668
+ no: 5,
1669
+ name: "semantic",
1670
+ kind: "enum",
1671
+ T: GeneratedCodeInfo_Annotation_Semantic_Enum,
1672
+ },
1071
1673
  ],
1072
1674
  packedByDefault: false,
1073
1675
  });
1074
- exports.GeneratedCodeInfo = (0, __1.createMessageType)({
1676
+ export const GeneratedCodeInfo = createMessageType({
1075
1677
  typeName: "google.protobuf.GeneratedCodeInfo",
1076
1678
  fields: [
1077
- { no: 1, name: "annotation", kind: "message", T: () => exports.GeneratedCodeInfo_Annotation, repeated: true },
1679
+ {
1680
+ no: 1,
1681
+ name: "annotation",
1682
+ kind: "message",
1683
+ T: () => GeneratedCodeInfo_Annotation,
1684
+ repeated: true,
1685
+ },
1078
1686
  ],
1079
1687
  packedByDefault: false,
1080
1688
  });