@bufbuild/protobuf 2.0.0-beta.2 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) hide show
  1. package/README.md +15 -13
  2. package/dist/cjs/clone.js +1 -2
  3. package/dist/cjs/codegenv1/boot.js +2 -3
  4. package/dist/cjs/codegenv1/embed.js +3 -4
  5. package/dist/cjs/codegenv1/enum.d.ts +2 -2
  6. package/dist/cjs/codegenv1/enum.js +2 -3
  7. package/dist/cjs/codegenv1/extension.d.ts +2 -2
  8. package/dist/cjs/codegenv1/extension.js +1 -2
  9. package/dist/cjs/codegenv1/file.js +1 -2
  10. package/dist/cjs/codegenv1/message.d.ts +2 -2
  11. package/dist/cjs/codegenv1/message.js +1 -2
  12. package/dist/cjs/codegenv1/restore-json-names.js +1 -2
  13. package/dist/cjs/codegenv1/scalar.js +2 -3
  14. package/dist/cjs/codegenv1/service.d.ts +2 -2
  15. package/dist/cjs/codegenv1/service.js +1 -2
  16. package/dist/cjs/codegenv1/symbols.d.ts +5 -5
  17. package/dist/cjs/codegenv1/symbols.js +5 -5
  18. package/dist/cjs/codegenv1/types.d.ts +9 -7
  19. package/dist/cjs/create.js +5 -4
  20. package/dist/cjs/descriptors.d.ts +4 -0
  21. package/dist/cjs/equals.js +1 -2
  22. package/dist/cjs/extensions.js +7 -8
  23. package/dist/cjs/fields.js +2 -3
  24. package/dist/cjs/from-binary.js +3 -4
  25. package/dist/cjs/from-json.js +6 -7
  26. package/dist/cjs/is-message.js +1 -2
  27. package/dist/cjs/reflect/error.js +2 -2
  28. package/dist/cjs/reflect/guard.js +5 -6
  29. package/dist/cjs/reflect/names.js +2 -3
  30. package/dist/cjs/reflect/nested-types.js +2 -3
  31. package/dist/cjs/reflect/reflect-check.js +4 -5
  32. package/dist/cjs/reflect/reflect.js +3 -4
  33. package/dist/cjs/reflect/scalar.js +3 -4
  34. package/dist/cjs/reflect/unsafe.js +7 -7
  35. package/dist/cjs/registry.js +23 -11
  36. package/dist/cjs/to-binary.js +2 -3
  37. package/dist/cjs/to-json.js +5 -6
  38. package/dist/cjs/types.d.ts +8 -8
  39. package/dist/cjs/wire/base64-encoding.js +2 -3
  40. package/dist/cjs/wire/size-delimited.js +3 -4
  41. package/dist/cjs/wire/text-encoding.js +2 -3
  42. package/dist/cjs/wire/text-format.js +2 -3
  43. package/dist/cjs/wire/varint.js +7 -8
  44. package/dist/cjs/wkt/any.js +4 -5
  45. package/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts +3 -3
  46. package/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +5 -5
  47. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +7 -7
  48. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +52 -52
  49. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts +3 -3
  50. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +3 -3
  51. package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +3 -3
  52. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +3 -3
  53. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts +6 -6
  54. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +3 -3
  55. package/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +10 -10
  56. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +11 -11
  57. package/dist/cjs/wkt/timestamp.js +5 -6
  58. package/dist/cjs/wkt/wrappers.js +2 -3
  59. package/dist/esm/codegenv1/enum.d.ts +2 -2
  60. package/dist/esm/codegenv1/extension.d.ts +2 -2
  61. package/dist/esm/codegenv1/message.d.ts +2 -2
  62. package/dist/esm/codegenv1/service.d.ts +2 -2
  63. package/dist/esm/codegenv1/symbols.d.ts +5 -5
  64. package/dist/esm/codegenv1/symbols.js +5 -5
  65. package/dist/esm/codegenv1/types.d.ts +9 -7
  66. package/dist/esm/create.js +4 -2
  67. package/dist/esm/descriptors.d.ts +4 -0
  68. package/dist/esm/registry.js +19 -7
  69. package/dist/esm/to-json.js +2 -2
  70. package/dist/esm/types.d.ts +8 -8
  71. package/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +3 -3
  72. package/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +5 -5
  73. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +7 -7
  74. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +52 -52
  75. package/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +3 -3
  76. package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +3 -3
  77. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +3 -3
  78. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +3 -3
  79. package/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +6 -6
  80. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +3 -3
  81. package/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +10 -10
  82. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +11 -11
  83. package/package.json +8 -4
@@ -1,9 +1,9 @@
1
- import type { GenDescEnum, GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv1/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/descriptor.proto.
5
5
  */
6
- export declare const file_google_protobuf_descriptor: GenDescFile;
6
+ export declare const file_google_protobuf_descriptor: GenFile;
7
7
  /**
8
8
  * The protocol compiler can output a FileDescriptorSet containing the .proto
9
9
  * files it parses.
@@ -29,7 +29,7 @@ export type FileDescriptorSetJson = {
29
29
  * Describes the message google.protobuf.FileDescriptorSet.
30
30
  * Use `create(FileDescriptorSetSchema)` to create a new message.
31
31
  */
32
- export declare const FileDescriptorSetSchema: GenDescMessage<FileDescriptorSet, FileDescriptorSetJson>;
32
+ export declare const FileDescriptorSetSchema: GenMessage<FileDescriptorSet, FileDescriptorSetJson>;
33
33
  /**
34
34
  * Describes a complete .proto file.
35
35
  *
@@ -175,7 +175,7 @@ export type FileDescriptorProtoJson = {
175
175
  * Describes the message google.protobuf.FileDescriptorProto.
176
176
  * Use `create(FileDescriptorProtoSchema)` to create a new message.
177
177
  */
178
- export declare const FileDescriptorProtoSchema: GenDescMessage<FileDescriptorProto, FileDescriptorProtoJson>;
178
+ export declare const FileDescriptorProtoSchema: GenMessage<FileDescriptorProto, FileDescriptorProtoJson>;
179
179
  /**
180
180
  * Describes a message type.
181
181
  *
@@ -275,7 +275,7 @@ export type DescriptorProtoJson = {
275
275
  * Describes the message google.protobuf.DescriptorProto.
276
276
  * Use `create(DescriptorProtoSchema)` to create a new message.
277
277
  */
278
- export declare const DescriptorProtoSchema: GenDescMessage<DescriptorProto, DescriptorProtoJson>;
278
+ export declare const DescriptorProtoSchema: GenMessage<DescriptorProto, DescriptorProtoJson>;
279
279
  /**
280
280
  * @generated from message google.protobuf.DescriptorProto.ExtensionRange
281
281
  */
@@ -318,7 +318,7 @@ export type DescriptorProto_ExtensionRangeJson = {
318
318
  * Describes the message google.protobuf.DescriptorProto.ExtensionRange.
319
319
  * Use `create(DescriptorProto_ExtensionRangeSchema)` to create a new message.
320
320
  */
321
- export declare const DescriptorProto_ExtensionRangeSchema: GenDescMessage<DescriptorProto_ExtensionRange, DescriptorProto_ExtensionRangeJson>;
321
+ export declare const DescriptorProto_ExtensionRangeSchema: GenMessage<DescriptorProto_ExtensionRange, DescriptorProto_ExtensionRangeJson>;
322
322
  /**
323
323
  * Range of reserved tag numbers. Reserved tag numbers may not be used by
324
324
  * fields or extension ranges in the same message. Reserved ranges may
@@ -357,7 +357,7 @@ export type DescriptorProto_ReservedRangeJson = {
357
357
  * Describes the message google.protobuf.DescriptorProto.ReservedRange.
358
358
  * Use `create(DescriptorProto_ReservedRangeSchema)` to create a new message.
359
359
  */
360
- export declare const DescriptorProto_ReservedRangeSchema: GenDescMessage<DescriptorProto_ReservedRange, DescriptorProto_ReservedRangeJson>;
360
+ export declare const DescriptorProto_ReservedRangeSchema: GenMessage<DescriptorProto_ReservedRange, DescriptorProto_ReservedRangeJson>;
361
361
  /**
362
362
  * @generated from message google.protobuf.ExtensionRangeOptions
363
363
  */
@@ -416,7 +416,7 @@ export type ExtensionRangeOptionsJson = {
416
416
  * Describes the message google.protobuf.ExtensionRangeOptions.
417
417
  * Use `create(ExtensionRangeOptionsSchema)` to create a new message.
418
418
  */
419
- export declare const ExtensionRangeOptionsSchema: GenDescMessage<ExtensionRangeOptions, ExtensionRangeOptionsJson>;
419
+ export declare const ExtensionRangeOptionsSchema: GenMessage<ExtensionRangeOptions, ExtensionRangeOptionsJson>;
420
420
  /**
421
421
  * @generated from message google.protobuf.ExtensionRangeOptions.Declaration
422
422
  */
@@ -487,7 +487,7 @@ export type ExtensionRangeOptions_DeclarationJson = {
487
487
  * Describes the message google.protobuf.ExtensionRangeOptions.Declaration.
488
488
  * Use `create(ExtensionRangeOptions_DeclarationSchema)` to create a new message.
489
489
  */
490
- export declare const ExtensionRangeOptions_DeclarationSchema: GenDescMessage<ExtensionRangeOptions_Declaration, ExtensionRangeOptions_DeclarationJson>;
490
+ export declare const ExtensionRangeOptions_DeclarationSchema: GenMessage<ExtensionRangeOptions_Declaration, ExtensionRangeOptions_DeclarationJson>;
491
491
  /**
492
492
  * The verification state of the extension range.
493
493
  *
@@ -512,7 +512,7 @@ export type ExtensionRangeOptions_VerificationStateJson = "DECLARATION" | "UNVER
512
512
  /**
513
513
  * Describes the enum google.protobuf.ExtensionRangeOptions.VerificationState.
514
514
  */
515
- export declare const ExtensionRangeOptions_VerificationStateSchema: GenDescEnum<ExtensionRangeOptions_VerificationState, ExtensionRangeOptions_VerificationStateJson>;
515
+ export declare const ExtensionRangeOptions_VerificationStateSchema: GenEnum<ExtensionRangeOptions_VerificationState, ExtensionRangeOptions_VerificationStateJson>;
516
516
  /**
517
517
  * Describes a field within a message.
518
518
  *
@@ -664,7 +664,7 @@ export type FieldDescriptorProtoJson = {
664
664
  * Describes the message google.protobuf.FieldDescriptorProto.
665
665
  * Use `create(FieldDescriptorProtoSchema)` to create a new message.
666
666
  */
667
- export declare const FieldDescriptorProtoSchema: GenDescMessage<FieldDescriptorProto, FieldDescriptorProtoJson>;
667
+ export declare const FieldDescriptorProtoSchema: GenMessage<FieldDescriptorProto, FieldDescriptorProtoJson>;
668
668
  /**
669
669
  * @generated from enum google.protobuf.FieldDescriptorProto.Type
670
670
  */
@@ -772,7 +772,7 @@ export type FieldDescriptorProto_TypeJson = "TYPE_DOUBLE" | "TYPE_FLOAT" | "TYPE
772
772
  /**
773
773
  * Describes the enum google.protobuf.FieldDescriptorProto.Type.
774
774
  */
775
- export declare const FieldDescriptorProto_TypeSchema: GenDescEnum<FieldDescriptorProto_Type, FieldDescriptorProto_TypeJson>;
775
+ export declare const FieldDescriptorProto_TypeSchema: GenEnum<FieldDescriptorProto_Type, FieldDescriptorProto_TypeJson>;
776
776
  /**
777
777
  * @generated from enum google.protobuf.FieldDescriptorProto.Label
778
778
  */
@@ -803,7 +803,7 @@ export type FieldDescriptorProto_LabelJson = "LABEL_OPTIONAL" | "LABEL_REPEATED"
803
803
  /**
804
804
  * Describes the enum google.protobuf.FieldDescriptorProto.Label.
805
805
  */
806
- export declare const FieldDescriptorProto_LabelSchema: GenDescEnum<FieldDescriptorProto_Label, FieldDescriptorProto_LabelJson>;
806
+ export declare const FieldDescriptorProto_LabelSchema: GenEnum<FieldDescriptorProto_Label, FieldDescriptorProto_LabelJson>;
807
807
  /**
808
808
  * Describes a oneof.
809
809
  *
@@ -836,7 +836,7 @@ export type OneofDescriptorProtoJson = {
836
836
  * Describes the message google.protobuf.OneofDescriptorProto.
837
837
  * Use `create(OneofDescriptorProtoSchema)` to create a new message.
838
838
  */
839
- export declare const OneofDescriptorProtoSchema: GenDescMessage<OneofDescriptorProto, OneofDescriptorProtoJson>;
839
+ export declare const OneofDescriptorProtoSchema: GenMessage<OneofDescriptorProto, OneofDescriptorProtoJson>;
840
840
  /**
841
841
  * Describes an enum type.
842
842
  *
@@ -900,7 +900,7 @@ export type EnumDescriptorProtoJson = {
900
900
  * Describes the message google.protobuf.EnumDescriptorProto.
901
901
  * Use `create(EnumDescriptorProtoSchema)` to create a new message.
902
902
  */
903
- export declare const EnumDescriptorProtoSchema: GenDescMessage<EnumDescriptorProto, EnumDescriptorProtoJson>;
903
+ export declare const EnumDescriptorProtoSchema: GenMessage<EnumDescriptorProto, EnumDescriptorProtoJson>;
904
904
  /**
905
905
  * Range of reserved numeric values. Reserved values may not be used by
906
906
  * entries in the same enum. Reserved ranges may not overlap.
@@ -942,7 +942,7 @@ export type EnumDescriptorProto_EnumReservedRangeJson = {
942
942
  * Describes the message google.protobuf.EnumDescriptorProto.EnumReservedRange.
943
943
  * Use `create(EnumDescriptorProto_EnumReservedRangeSchema)` to create a new message.
944
944
  */
945
- export declare const EnumDescriptorProto_EnumReservedRangeSchema: GenDescMessage<EnumDescriptorProto_EnumReservedRange, EnumDescriptorProto_EnumReservedRangeJson>;
945
+ export declare const EnumDescriptorProto_EnumReservedRangeSchema: GenMessage<EnumDescriptorProto_EnumReservedRange, EnumDescriptorProto_EnumReservedRangeJson>;
946
946
  /**
947
947
  * Describes a value within an enum.
948
948
  *
@@ -983,7 +983,7 @@ export type EnumValueDescriptorProtoJson = {
983
983
  * Describes the message google.protobuf.EnumValueDescriptorProto.
984
984
  * Use `create(EnumValueDescriptorProtoSchema)` to create a new message.
985
985
  */
986
- export declare const EnumValueDescriptorProtoSchema: GenDescMessage<EnumValueDescriptorProto, EnumValueDescriptorProtoJson>;
986
+ export declare const EnumValueDescriptorProtoSchema: GenMessage<EnumValueDescriptorProto, EnumValueDescriptorProtoJson>;
987
987
  /**
988
988
  * Describes a service.
989
989
  *
@@ -1024,7 +1024,7 @@ export type ServiceDescriptorProtoJson = {
1024
1024
  * Describes the message google.protobuf.ServiceDescriptorProto.
1025
1025
  * Use `create(ServiceDescriptorProtoSchema)` to create a new message.
1026
1026
  */
1027
- export declare const ServiceDescriptorProtoSchema: GenDescMessage<ServiceDescriptorProto, ServiceDescriptorProtoJson>;
1027
+ export declare const ServiceDescriptorProtoSchema: GenMessage<ServiceDescriptorProto, ServiceDescriptorProtoJson>;
1028
1028
  /**
1029
1029
  * Describes a method of a service.
1030
1030
  *
@@ -1096,7 +1096,7 @@ export type MethodDescriptorProtoJson = {
1096
1096
  * Describes the message google.protobuf.MethodDescriptorProto.
1097
1097
  * Use `create(MethodDescriptorProtoSchema)` to create a new message.
1098
1098
  */
1099
- export declare const MethodDescriptorProtoSchema: GenDescMessage<MethodDescriptorProto, MethodDescriptorProtoJson>;
1099
+ export declare const MethodDescriptorProtoSchema: GenMessage<MethodDescriptorProto, MethodDescriptorProtoJson>;
1100
1100
  /**
1101
1101
  * @generated from message google.protobuf.FileOptions
1102
1102
  */
@@ -1366,7 +1366,7 @@ export type FileOptionsJson = {
1366
1366
  * Describes the message google.protobuf.FileOptions.
1367
1367
  * Use `create(FileOptionsSchema)` to create a new message.
1368
1368
  */
1369
- export declare const FileOptionsSchema: GenDescMessage<FileOptions, FileOptionsJson>;
1369
+ export declare const FileOptionsSchema: GenMessage<FileOptions, FileOptionsJson>;
1370
1370
  /**
1371
1371
  * Generated classes can be optimized for speed or code size.
1372
1372
  *
@@ -1401,7 +1401,7 @@ export type FileOptions_OptimizeModeJson = "SPEED" | "CODE_SIZE" | "LITE_RUNTIME
1401
1401
  /**
1402
1402
  * Describes the enum google.protobuf.FileOptions.OptimizeMode.
1403
1403
  */
1404
- export declare const FileOptions_OptimizeModeSchema: GenDescEnum<FileOptions_OptimizeMode, FileOptions_OptimizeModeJson>;
1404
+ export declare const FileOptions_OptimizeModeSchema: GenEnum<FileOptions_OptimizeMode, FileOptions_OptimizeModeJson>;
1405
1405
  /**
1406
1406
  * @generated from message google.protobuf.MessageOptions
1407
1407
  */
@@ -1538,7 +1538,7 @@ export type MessageOptionsJson = {
1538
1538
  * Describes the message google.protobuf.MessageOptions.
1539
1539
  * Use `create(MessageOptionsSchema)` to create a new message.
1540
1540
  */
1541
- export declare const MessageOptionsSchema: GenDescMessage<MessageOptions, MessageOptionsJson>;
1541
+ export declare const MessageOptionsSchema: GenMessage<MessageOptions, MessageOptionsJson>;
1542
1542
  /**
1543
1543
  * @generated from message google.protobuf.FieldOptions
1544
1544
  */
@@ -1733,7 +1733,7 @@ export type FieldOptionsJson = {
1733
1733
  * Describes the message google.protobuf.FieldOptions.
1734
1734
  * Use `create(FieldOptionsSchema)` to create a new message.
1735
1735
  */
1736
- export declare const FieldOptionsSchema: GenDescMessage<FieldOptions, FieldOptionsJson>;
1736
+ export declare const FieldOptionsSchema: GenMessage<FieldOptions, FieldOptionsJson>;
1737
1737
  /**
1738
1738
  * @generated from message google.protobuf.FieldOptions.EditionDefault
1739
1739
  */
@@ -1766,7 +1766,7 @@ export type FieldOptions_EditionDefaultJson = {
1766
1766
  * Describes the message google.protobuf.FieldOptions.EditionDefault.
1767
1767
  * Use `create(FieldOptions_EditionDefaultSchema)` to create a new message.
1768
1768
  */
1769
- export declare const FieldOptions_EditionDefaultSchema: GenDescMessage<FieldOptions_EditionDefault, FieldOptions_EditionDefaultJson>;
1769
+ export declare const FieldOptions_EditionDefaultSchema: GenMessage<FieldOptions_EditionDefault, FieldOptions_EditionDefaultJson>;
1770
1770
  /**
1771
1771
  * Information about the support window of a feature.
1772
1772
  *
@@ -1829,7 +1829,7 @@ export type FieldOptions_FeatureSupportJson = {
1829
1829
  * Describes the message google.protobuf.FieldOptions.FeatureSupport.
1830
1830
  * Use `create(FieldOptions_FeatureSupportSchema)` to create a new message.
1831
1831
  */
1832
- export declare const FieldOptions_FeatureSupportSchema: GenDescMessage<FieldOptions_FeatureSupport, FieldOptions_FeatureSupportJson>;
1832
+ export declare const FieldOptions_FeatureSupportSchema: GenMessage<FieldOptions_FeatureSupport, FieldOptions_FeatureSupportJson>;
1833
1833
  /**
1834
1834
  * @generated from enum google.protobuf.FieldOptions.CType
1835
1835
  */
@@ -1863,7 +1863,7 @@ export type FieldOptions_CTypeJson = "STRING" | "CORD" | "STRING_PIECE";
1863
1863
  /**
1864
1864
  * Describes the enum google.protobuf.FieldOptions.CType.
1865
1865
  */
1866
- export declare const FieldOptions_CTypeSchema: GenDescEnum<FieldOptions_CType, FieldOptions_CTypeJson>;
1866
+ export declare const FieldOptions_CTypeSchema: GenEnum<FieldOptions_CType, FieldOptions_CTypeJson>;
1867
1867
  /**
1868
1868
  * @generated from enum google.protobuf.FieldOptions.JSType
1869
1869
  */
@@ -1894,7 +1894,7 @@ export type FieldOptions_JSTypeJson = "JS_NORMAL" | "JS_STRING" | "JS_NUMBER";
1894
1894
  /**
1895
1895
  * Describes the enum google.protobuf.FieldOptions.JSType.
1896
1896
  */
1897
- export declare const FieldOptions_JSTypeSchema: GenDescEnum<FieldOptions_JSType, FieldOptions_JSTypeJson>;
1897
+ export declare const FieldOptions_JSTypeSchema: GenEnum<FieldOptions_JSType, FieldOptions_JSTypeJson>;
1898
1898
  /**
1899
1899
  * If set to RETENTION_SOURCE, the option will be omitted from the binary.
1900
1900
  * Note: as of January 2023, support for this is in progress and does not yet
@@ -1923,7 +1923,7 @@ export type FieldOptions_OptionRetentionJson = "RETENTION_UNKNOWN" | "RETENTION_
1923
1923
  /**
1924
1924
  * Describes the enum google.protobuf.FieldOptions.OptionRetention.
1925
1925
  */
1926
- export declare const FieldOptions_OptionRetentionSchema: GenDescEnum<FieldOptions_OptionRetention, FieldOptions_OptionRetentionJson>;
1926
+ export declare const FieldOptions_OptionRetentionSchema: GenEnum<FieldOptions_OptionRetention, FieldOptions_OptionRetentionJson>;
1927
1927
  /**
1928
1928
  * This indicates the types of entities that the field may apply to when used
1929
1929
  * as an option. If it is unset, then the field may be freely used as an
@@ -1981,7 +1981,7 @@ export type FieldOptions_OptionTargetTypeJson = "TARGET_TYPE_UNKNOWN" | "TARGET_
1981
1981
  /**
1982
1982
  * Describes the enum google.protobuf.FieldOptions.OptionTargetType.
1983
1983
  */
1984
- export declare const FieldOptions_OptionTargetTypeSchema: GenDescEnum<FieldOptions_OptionTargetType, FieldOptions_OptionTargetTypeJson>;
1984
+ export declare const FieldOptions_OptionTargetTypeSchema: GenEnum<FieldOptions_OptionTargetType, FieldOptions_OptionTargetTypeJson>;
1985
1985
  /**
1986
1986
  * @generated from message google.protobuf.OneofOptions
1987
1987
  */
@@ -2016,7 +2016,7 @@ export type OneofOptionsJson = {
2016
2016
  * Describes the message google.protobuf.OneofOptions.
2017
2017
  * Use `create(OneofOptionsSchema)` to create a new message.
2018
2018
  */
2019
- export declare const OneofOptionsSchema: GenDescMessage<OneofOptions, OneofOptionsJson>;
2019
+ export declare const OneofOptionsSchema: GenMessage<OneofOptions, OneofOptionsJson>;
2020
2020
  /**
2021
2021
  * @generated from message google.protobuf.EnumOptions
2022
2022
  */
@@ -2091,7 +2091,7 @@ export type EnumOptionsJson = {
2091
2091
  * Describes the message google.protobuf.EnumOptions.
2092
2092
  * Use `create(EnumOptionsSchema)` to create a new message.
2093
2093
  */
2094
- export declare const EnumOptionsSchema: GenDescMessage<EnumOptions, EnumOptionsJson>;
2094
+ export declare const EnumOptionsSchema: GenMessage<EnumOptions, EnumOptionsJson>;
2095
2095
  /**
2096
2096
  * @generated from message google.protobuf.EnumValueOptions
2097
2097
  */
@@ -2161,7 +2161,7 @@ export type EnumValueOptionsJson = {
2161
2161
  * Describes the message google.protobuf.EnumValueOptions.
2162
2162
  * Use `create(EnumValueOptionsSchema)` to create a new message.
2163
2163
  */
2164
- export declare const EnumValueOptionsSchema: GenDescMessage<EnumValueOptions, EnumValueOptionsJson>;
2164
+ export declare const EnumValueOptionsSchema: GenMessage<EnumValueOptions, EnumValueOptionsJson>;
2165
2165
  /**
2166
2166
  * @generated from message google.protobuf.ServiceOptions
2167
2167
  */
@@ -2209,7 +2209,7 @@ export type ServiceOptionsJson = {
2209
2209
  * Describes the message google.protobuf.ServiceOptions.
2210
2210
  * Use `create(ServiceOptionsSchema)` to create a new message.
2211
2211
  */
2212
- export declare const ServiceOptionsSchema: GenDescMessage<ServiceOptions, ServiceOptionsJson>;
2212
+ export declare const ServiceOptionsSchema: GenMessage<ServiceOptions, ServiceOptionsJson>;
2213
2213
  /**
2214
2214
  * @generated from message google.protobuf.MethodOptions
2215
2215
  */
@@ -2265,7 +2265,7 @@ export type MethodOptionsJson = {
2265
2265
  * Describes the message google.protobuf.MethodOptions.
2266
2266
  * Use `create(MethodOptionsSchema)` to create a new message.
2267
2267
  */
2268
- export declare const MethodOptionsSchema: GenDescMessage<MethodOptions, MethodOptionsJson>;
2268
+ export declare const MethodOptionsSchema: GenMessage<MethodOptions, MethodOptionsJson>;
2269
2269
  /**
2270
2270
  * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
2271
2271
  * or neither? HTTP based RPC implementation may choose GET verb for safe
@@ -2298,7 +2298,7 @@ export type MethodOptions_IdempotencyLevelJson = "IDEMPOTENCY_UNKNOWN" | "NO_SID
2298
2298
  /**
2299
2299
  * Describes the enum google.protobuf.MethodOptions.IdempotencyLevel.
2300
2300
  */
2301
- export declare const MethodOptions_IdempotencyLevelSchema: GenDescEnum<MethodOptions_IdempotencyLevel, MethodOptions_IdempotencyLevelJson>;
2301
+ export declare const MethodOptions_IdempotencyLevelSchema: GenEnum<MethodOptions_IdempotencyLevel, MethodOptions_IdempotencyLevelJson>;
2302
2302
  /**
2303
2303
  * A message representing a option the parser does not recognize. This only
2304
2304
  * appears in options protos created by the compiler::Parser class.
@@ -2379,7 +2379,7 @@ export type UninterpretedOptionJson = {
2379
2379
  * Describes the message google.protobuf.UninterpretedOption.
2380
2380
  * Use `create(UninterpretedOptionSchema)` to create a new message.
2381
2381
  */
2382
- export declare const UninterpretedOptionSchema: GenDescMessage<UninterpretedOption, UninterpretedOptionJson>;
2382
+ export declare const UninterpretedOptionSchema: GenMessage<UninterpretedOption, UninterpretedOptionJson>;
2383
2383
  /**
2384
2384
  * The name of the uninterpreted option. Each string represents a segment in
2385
2385
  * a dot-separated name. is_extension is true iff a segment represents an
@@ -2416,7 +2416,7 @@ export type UninterpretedOption_NamePartJson = {
2416
2416
  * Describes the message google.protobuf.UninterpretedOption.NamePart.
2417
2417
  * Use `create(UninterpretedOption_NamePartSchema)` to create a new message.
2418
2418
  */
2419
- export declare const UninterpretedOption_NamePartSchema: GenDescMessage<UninterpretedOption_NamePart, UninterpretedOption_NamePartJson>;
2419
+ export declare const UninterpretedOption_NamePartSchema: GenMessage<UninterpretedOption_NamePart, UninterpretedOption_NamePartJson>;
2420
2420
  /**
2421
2421
  * TODO Enums in C++ gencode (and potentially other languages) are
2422
2422
  * not well scoped. This means that each of the feature enums below can clash
@@ -2486,7 +2486,7 @@ export type FeatureSetJson = {
2486
2486
  * Describes the message google.protobuf.FeatureSet.
2487
2487
  * Use `create(FeatureSetSchema)` to create a new message.
2488
2488
  */
2489
- export declare const FeatureSetSchema: GenDescMessage<FeatureSet, FeatureSetJson>;
2489
+ export declare const FeatureSetSchema: GenMessage<FeatureSet, FeatureSetJson>;
2490
2490
  /**
2491
2491
  * @generated from enum google.protobuf.FeatureSet.FieldPresence
2492
2492
  */
@@ -2515,7 +2515,7 @@ export type FeatureSet_FieldPresenceJson = "FIELD_PRESENCE_UNKNOWN" | "EXPLICIT"
2515
2515
  /**
2516
2516
  * Describes the enum google.protobuf.FeatureSet.FieldPresence.
2517
2517
  */
2518
- export declare const FeatureSet_FieldPresenceSchema: GenDescEnum<FeatureSet_FieldPresence, FeatureSet_FieldPresenceJson>;
2518
+ export declare const FeatureSet_FieldPresenceSchema: GenEnum<FeatureSet_FieldPresence, FeatureSet_FieldPresenceJson>;
2519
2519
  /**
2520
2520
  * @generated from enum google.protobuf.FeatureSet.EnumType
2521
2521
  */
@@ -2540,7 +2540,7 @@ export type FeatureSet_EnumTypeJson = "ENUM_TYPE_UNKNOWN" | "OPEN" | "CLOSED";
2540
2540
  /**
2541
2541
  * Describes the enum google.protobuf.FeatureSet.EnumType.
2542
2542
  */
2543
- export declare const FeatureSet_EnumTypeSchema: GenDescEnum<FeatureSet_EnumType, FeatureSet_EnumTypeJson>;
2543
+ export declare const FeatureSet_EnumTypeSchema: GenEnum<FeatureSet_EnumType, FeatureSet_EnumTypeJson>;
2544
2544
  /**
2545
2545
  * @generated from enum google.protobuf.FeatureSet.RepeatedFieldEncoding
2546
2546
  */
@@ -2565,7 +2565,7 @@ export type FeatureSet_RepeatedFieldEncodingJson = "REPEATED_FIELD_ENCODING_UNKN
2565
2565
  /**
2566
2566
  * Describes the enum google.protobuf.FeatureSet.RepeatedFieldEncoding.
2567
2567
  */
2568
- export declare const FeatureSet_RepeatedFieldEncodingSchema: GenDescEnum<FeatureSet_RepeatedFieldEncoding, FeatureSet_RepeatedFieldEncodingJson>;
2568
+ export declare const FeatureSet_RepeatedFieldEncodingSchema: GenEnum<FeatureSet_RepeatedFieldEncoding, FeatureSet_RepeatedFieldEncodingJson>;
2569
2569
  /**
2570
2570
  * @generated from enum google.protobuf.FeatureSet.Utf8Validation
2571
2571
  */
@@ -2590,7 +2590,7 @@ export type FeatureSet_Utf8ValidationJson = "UTF8_VALIDATION_UNKNOWN" | "VERIFY"
2590
2590
  /**
2591
2591
  * Describes the enum google.protobuf.FeatureSet.Utf8Validation.
2592
2592
  */
2593
- export declare const FeatureSet_Utf8ValidationSchema: GenDescEnum<FeatureSet_Utf8Validation, FeatureSet_Utf8ValidationJson>;
2593
+ export declare const FeatureSet_Utf8ValidationSchema: GenEnum<FeatureSet_Utf8Validation, FeatureSet_Utf8ValidationJson>;
2594
2594
  /**
2595
2595
  * @generated from enum google.protobuf.FeatureSet.MessageEncoding
2596
2596
  */
@@ -2615,7 +2615,7 @@ export type FeatureSet_MessageEncodingJson = "MESSAGE_ENCODING_UNKNOWN" | "LENGT
2615
2615
  /**
2616
2616
  * Describes the enum google.protobuf.FeatureSet.MessageEncoding.
2617
2617
  */
2618
- export declare const FeatureSet_MessageEncodingSchema: GenDescEnum<FeatureSet_MessageEncoding, FeatureSet_MessageEncodingJson>;
2618
+ export declare const FeatureSet_MessageEncodingSchema: GenEnum<FeatureSet_MessageEncoding, FeatureSet_MessageEncodingJson>;
2619
2619
  /**
2620
2620
  * @generated from enum google.protobuf.FeatureSet.JsonFormat
2621
2621
  */
@@ -2640,7 +2640,7 @@ export type FeatureSet_JsonFormatJson = "JSON_FORMAT_UNKNOWN" | "ALLOW" | "LEGAC
2640
2640
  /**
2641
2641
  * Describes the enum google.protobuf.FeatureSet.JsonFormat.
2642
2642
  */
2643
- export declare const FeatureSet_JsonFormatSchema: GenDescEnum<FeatureSet_JsonFormat, FeatureSet_JsonFormatJson>;
2643
+ export declare const FeatureSet_JsonFormatSchema: GenEnum<FeatureSet_JsonFormat, FeatureSet_JsonFormatJson>;
2644
2644
  /**
2645
2645
  * A compiled specification for the defaults of a set of features. These
2646
2646
  * messages are generated from FeatureSet extensions and can be used to seed
@@ -2690,7 +2690,7 @@ export type FeatureSetDefaultsJson = {
2690
2690
  * Describes the message google.protobuf.FeatureSetDefaults.
2691
2691
  * Use `create(FeatureSetDefaultsSchema)` to create a new message.
2692
2692
  */
2693
- export declare const FeatureSetDefaultsSchema: GenDescMessage<FeatureSetDefaults, FeatureSetDefaultsJson>;
2693
+ export declare const FeatureSetDefaultsSchema: GenMessage<FeatureSetDefaults, FeatureSetDefaultsJson>;
2694
2694
  /**
2695
2695
  * A map from every known edition with a unique set of defaults to its
2696
2696
  * defaults. Not all editions may be contained here. For a given edition,
@@ -2738,7 +2738,7 @@ export type FeatureSetDefaults_FeatureSetEditionDefaultJson = {
2738
2738
  * Describes the message google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault.
2739
2739
  * Use `create(FeatureSetDefaults_FeatureSetEditionDefaultSchema)` to create a new message.
2740
2740
  */
2741
- export declare const FeatureSetDefaults_FeatureSetEditionDefaultSchema: GenDescMessage<FeatureSetDefaults_FeatureSetEditionDefault, FeatureSetDefaults_FeatureSetEditionDefaultJson>;
2741
+ export declare const FeatureSetDefaults_FeatureSetEditionDefaultSchema: GenMessage<FeatureSetDefaults_FeatureSetEditionDefault, FeatureSetDefaults_FeatureSetEditionDefaultJson>;
2742
2742
  /**
2743
2743
  * Encapsulates information about the original source file from which a
2744
2744
  * FileDescriptorProto was generated.
@@ -2808,7 +2808,7 @@ export type SourceCodeInfoJson = {
2808
2808
  * Describes the message google.protobuf.SourceCodeInfo.
2809
2809
  * Use `create(SourceCodeInfoSchema)` to create a new message.
2810
2810
  */
2811
- export declare const SourceCodeInfoSchema: GenDescMessage<SourceCodeInfo, SourceCodeInfoJson>;
2811
+ export declare const SourceCodeInfoSchema: GenMessage<SourceCodeInfo, SourceCodeInfoJson>;
2812
2812
  /**
2813
2813
  * @generated from message google.protobuf.SourceCodeInfo.Location
2814
2814
  */
@@ -2941,7 +2941,7 @@ export type SourceCodeInfo_LocationJson = {
2941
2941
  * Describes the message google.protobuf.SourceCodeInfo.Location.
2942
2942
  * Use `create(SourceCodeInfo_LocationSchema)` to create a new message.
2943
2943
  */
2944
- export declare const SourceCodeInfo_LocationSchema: GenDescMessage<SourceCodeInfo_Location, SourceCodeInfo_LocationJson>;
2944
+ export declare const SourceCodeInfo_LocationSchema: GenMessage<SourceCodeInfo_Location, SourceCodeInfo_LocationJson>;
2945
2945
  /**
2946
2946
  * Describes the relationship between generated code and its original source
2947
2947
  * file. A GeneratedCodeInfo message is associated with only one generated
@@ -2971,7 +2971,7 @@ export type GeneratedCodeInfoJson = {
2971
2971
  * Describes the message google.protobuf.GeneratedCodeInfo.
2972
2972
  * Use `create(GeneratedCodeInfoSchema)` to create a new message.
2973
2973
  */
2974
- export declare const GeneratedCodeInfoSchema: GenDescMessage<GeneratedCodeInfo, GeneratedCodeInfoJson>;
2974
+ export declare const GeneratedCodeInfoSchema: GenMessage<GeneratedCodeInfo, GeneratedCodeInfoJson>;
2975
2975
  /**
2976
2976
  * @generated from message google.protobuf.GeneratedCodeInfo.Annotation
2977
2977
  */
@@ -3038,7 +3038,7 @@ export type GeneratedCodeInfo_AnnotationJson = {
3038
3038
  * Describes the message google.protobuf.GeneratedCodeInfo.Annotation.
3039
3039
  * Use `create(GeneratedCodeInfo_AnnotationSchema)` to create a new message.
3040
3040
  */
3041
- export declare const GeneratedCodeInfo_AnnotationSchema: GenDescMessage<GeneratedCodeInfo_Annotation, GeneratedCodeInfo_AnnotationJson>;
3041
+ export declare const GeneratedCodeInfo_AnnotationSchema: GenMessage<GeneratedCodeInfo_Annotation, GeneratedCodeInfo_AnnotationJson>;
3042
3042
  /**
3043
3043
  * Represents the identified object's effect on the element in the original
3044
3044
  * .proto file.
@@ -3072,7 +3072,7 @@ export type GeneratedCodeInfo_Annotation_SemanticJson = "NONE" | "SET" | "ALIAS"
3072
3072
  /**
3073
3073
  * Describes the enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic.
3074
3074
  */
3075
- export declare const GeneratedCodeInfo_Annotation_SemanticSchema: GenDescEnum<GeneratedCodeInfo_Annotation_Semantic, GeneratedCodeInfo_Annotation_SemanticJson>;
3075
+ export declare const GeneratedCodeInfo_Annotation_SemanticSchema: GenEnum<GeneratedCodeInfo_Annotation_Semantic, GeneratedCodeInfo_Annotation_SemanticJson>;
3076
3076
  /**
3077
3077
  * The full set of known editions.
3078
3078
  *
@@ -3156,4 +3156,4 @@ export type EditionJson = "EDITION_UNKNOWN" | "EDITION_LEGACY" | "EDITION_PROTO2
3156
3156
  /**
3157
3157
  * Describes the enum google.protobuf.Edition.
3158
3158
  */
3159
- export declare const EditionSchema: GenDescEnum<Edition, EditionJson>;
3159
+ export declare const EditionSchema: GenEnum<Edition, EditionJson>;
@@ -1,9 +1,9 @@
1
- import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenFile, GenMessage } from "../../../../codegenv1/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/duration.proto.
5
5
  */
6
- export declare const file_google_protobuf_duration: GenDescFile;
6
+ export declare const file_google_protobuf_duration: GenFile;
7
7
  /**
8
8
  * A Duration represents a signed, fixed-length span of time represented
9
9
  * as a count of seconds and fractions of seconds at nanosecond
@@ -96,4 +96,4 @@ export type DurationJson = string;
96
96
  * Describes the message google.protobuf.Duration.
97
97
  * Use `create(DurationSchema)` to create a new message.
98
98
  */
99
- export declare const DurationSchema: GenDescMessage<Duration, DurationJson>;
99
+ export declare const DurationSchema: GenMessage<Duration, DurationJson>;
@@ -1,9 +1,9 @@
1
- import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenFile, GenMessage } from "../../../../codegenv1/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/empty.proto.
5
5
  */
6
- export declare const file_google_protobuf_empty: GenDescFile;
6
+ export declare const file_google_protobuf_empty: GenFile;
7
7
  /**
8
8
  * A generic empty message that you can re-use to avoid defining duplicated
9
9
  * empty messages in your APIs. A typical example is to use it as the request
@@ -25,4 +25,4 @@ export type EmptyJson = Record<string, never>;
25
25
  * Describes the message google.protobuf.Empty.
26
26
  * Use `create(EmptySchema)` to create a new message.
27
27
  */
28
- export declare const EmptySchema: GenDescMessage<Empty, EmptyJson>;
28
+ export declare const EmptySchema: GenMessage<Empty, EmptyJson>;
@@ -1,9 +1,9 @@
1
- import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenFile, GenMessage } from "../../../../codegenv1/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/field_mask.proto.
5
5
  */
6
- export declare const file_google_protobuf_field_mask: GenDescFile;
6
+ export declare const file_google_protobuf_field_mask: GenFile;
7
7
  /**
8
8
  * `FieldMask` represents a set of symbolic field paths, for example:
9
9
  *
@@ -223,4 +223,4 @@ export type FieldMaskJson = string;
223
223
  * Describes the message google.protobuf.FieldMask.
224
224
  * Use `create(FieldMaskSchema)` to create a new message.
225
225
  */
226
- export declare const FieldMaskSchema: GenDescMessage<FieldMask, FieldMaskJson>;
226
+ export declare const FieldMaskSchema: GenMessage<FieldMask, FieldMaskJson>;
@@ -1,9 +1,9 @@
1
- import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenFile, GenMessage } from "../../../../codegenv1/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/source_context.proto.
5
5
  */
6
- export declare const file_google_protobuf_source_context: GenDescFile;
6
+ export declare const file_google_protobuf_source_context: GenFile;
7
7
  /**
8
8
  * `SourceContext` represents information about the source of a
9
9
  * protobuf element, like the file in which it is defined.
@@ -32,4 +32,4 @@ export type SourceContextJson = {
32
32
  * Describes the message google.protobuf.SourceContext.
33
33
  * Use `create(SourceContextSchema)` to create a new message.
34
34
  */
35
- export declare const SourceContextSchema: GenDescMessage<SourceContext, SourceContextJson>;
35
+ export declare const SourceContextSchema: GenMessage<SourceContext, SourceContextJson>;
@@ -1,10 +1,10 @@
1
- import type { GenDescEnum, GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv1/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  import type { JsonObject, JsonValue } from "../../../../json-value.js";
4
4
  /**
5
5
  * Describes the file google/protobuf/struct.proto.
6
6
  */
7
- export declare const file_google_protobuf_struct: GenDescFile;
7
+ export declare const file_google_protobuf_struct: GenFile;
8
8
  /**
9
9
  * `Struct` represents a structured data value, consisting of fields
10
10
  * which map to dynamically typed values. In some languages, `Struct`
@@ -35,7 +35,7 @@ export type StructJson = JsonObject;
35
35
  * Describes the message google.protobuf.Struct.
36
36
  * Use `create(StructSchema)` to create a new message.
37
37
  */
38
- export declare const StructSchema: GenDescMessage<Struct, StructJson>;
38
+ export declare const StructSchema: GenMessage<Struct, StructJson>;
39
39
  /**
40
40
  * `Value` represents a dynamically typed value which can be either
41
41
  * null, a number, a string, a boolean, a recursive struct value, or a
@@ -113,7 +113,7 @@ export type ValueJson = JsonValue;
113
113
  * Describes the message google.protobuf.Value.
114
114
  * Use `create(ValueSchema)` to create a new message.
115
115
  */
116
- export declare const ValueSchema: GenDescMessage<Value, ValueJson>;
116
+ export declare const ValueSchema: GenMessage<Value, ValueJson>;
117
117
  /**
118
118
  * `ListValue` is a wrapper around a repeated field of values.
119
119
  *
@@ -137,7 +137,7 @@ export type ListValueJson = JsonValue[];
137
137
  * Describes the message google.protobuf.ListValue.
138
138
  * Use `create(ListValueSchema)` to create a new message.
139
139
  */
140
- export declare const ListValueSchema: GenDescMessage<ListValue, ListValueJson>;
140
+ export declare const ListValueSchema: GenMessage<ListValue, ListValueJson>;
141
141
  /**
142
142
  * `NullValue` is a singleton enumeration to represent the null value for the
143
143
  * `Value` type union.
@@ -161,4 +161,4 @@ export type NullValueJson = null;
161
161
  /**
162
162
  * Describes the enum google.protobuf.NullValue.
163
163
  */
164
- export declare const NullValueSchema: GenDescEnum<NullValue, NullValueJson>;
164
+ export declare const NullValueSchema: GenEnum<NullValue, NullValueJson>;
@@ -1,9 +1,9 @@
1
- import type { GenDescFile, GenDescMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenFile, GenMessage } from "../../../../codegenv1/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/timestamp.proto.
5
5
  */
6
- export declare const file_google_protobuf_timestamp: GenDescFile;
6
+ export declare const file_google_protobuf_timestamp: GenFile;
7
7
  /**
8
8
  * A Timestamp represents a point in time independent of any time zone or local
9
9
  * calendar, encoded as a count of seconds and fractions of seconds at
@@ -125,4 +125,4 @@ export type TimestampJson = string;
125
125
  * Describes the message google.protobuf.Timestamp.
126
126
  * Use `create(TimestampSchema)` to create a new message.
127
127
  */
128
- export declare const TimestampSchema: GenDescMessage<Timestamp, TimestampJson>;
128
+ export declare const TimestampSchema: GenMessage<Timestamp, TimestampJson>;