@aptre/protobuf-es-lite 0.2.15 → 0.3.1

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 (37) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +10 -15
  3. package/dist/binary.d.ts +13 -10
  4. package/dist/binary.js +24 -23
  5. package/dist/codegen-info.d.ts +8 -0
  6. package/dist/codegen-info.js +12 -4
  7. package/dist/descriptor-set.d.ts +8 -9
  8. package/dist/field-wrapper.d.ts +2 -2
  9. package/dist/google/protobuf/any.pb.d.ts +55 -2
  10. package/dist/google/protobuf/any.pb.js +85 -4
  11. package/dist/google/protobuf/api.pb.js +34 -13
  12. package/dist/google/protobuf/descriptor.pb.js +1045 -161
  13. package/dist/google/protobuf/duration.pb.d.ts +7 -2
  14. package/dist/google/protobuf/duration.pb.js +54 -4
  15. package/dist/google/protobuf/empty.pb.js +1 -0
  16. package/dist/google/protobuf/source_context.pb.js +3 -2
  17. package/dist/google/protobuf/struct.pb.d.ts +17 -4
  18. package/dist/google/protobuf/struct.pb.js +162 -12
  19. package/dist/google/protobuf/timestamp.pb.d.ts +8 -2
  20. package/dist/google/protobuf/timestamp.pb.js +68 -4
  21. package/dist/google/protobuf/type.pb.js +62 -21
  22. package/dist/google/protobuf/wrappers.pb.d.ts +47 -10
  23. package/dist/google/protobuf/wrappers.pb.js +280 -19
  24. package/dist/index.d.ts +5 -1
  25. package/dist/index.js +4 -1
  26. package/dist/json.d.ts +30 -4
  27. package/dist/json.js +17 -16
  28. package/dist/message.d.ts +5 -12
  29. package/dist/message.js +75 -77
  30. package/dist/protoc-gen-es-lite/typescript.d.ts +2 -2
  31. package/dist/protoc-gen-es-lite/typescript.js +348 -26
  32. package/dist/protoplugin/ecmascript/reify-wkt.d.ts +1 -5
  33. package/dist/protoplugin/ecmascript/reify-wkt.js +0 -10
  34. package/dist/type-registry.d.ts +43 -0
  35. package/dist/type-registry.js +14 -0
  36. package/example/example.pb.ts +56 -32
  37. package/package.json +3 -1
@@ -27,7 +27,7 @@
27
27
  // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
28
28
  // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
29
29
  // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- import { createEnumType, createMessageType } from "../../index.js";
30
+ import { createEnumType, createMessageType, ScalarType, } from "../../index.js";
31
31
  export const protobufPackage = "google.protobuf";
32
32
  /**
33
33
  * The full set of known editions.
@@ -691,358 +691,1242 @@ export const GeneratedCodeInfo_Annotation_Semantic_Enum = createEnumType("google
691
691
  { no: 1, name: "SET" },
692
692
  { no: 2, name: "ALIAS" },
693
693
  ]);
694
+ // FieldOptions_EditionDefault contains the message type declaration for FieldOptions_EditionDefault.
694
695
  export const FieldOptions_EditionDefault = createMessageType({
695
696
  typeName: "google.protobuf.FieldOptions.EditionDefault",
696
697
  fields: [
697
698
  { no: 3, name: "edition", kind: "enum", T: Edition_Enum, opt: true },
698
- { no: 2, name: "value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
699
+ { no: 2, name: "value", kind: "scalar", T: ScalarType.STRING, opt: true },
699
700
  ],
700
701
  packedByDefault: false,
701
702
  });
703
+ // FeatureSet contains the message type declaration for FeatureSet.
702
704
  export const FeatureSet = createMessageType({
703
705
  typeName: "google.protobuf.FeatureSet",
704
706
  fields: [
705
- { no: 1, name: "field_presence", kind: "enum", T: FeatureSet_FieldPresence_Enum, opt: true },
706
- { no: 2, name: "enum_type", kind: "enum", T: FeatureSet_EnumType_Enum, opt: true },
707
- { no: 3, name: "repeated_field_encoding", kind: "enum", T: FeatureSet_RepeatedFieldEncoding_Enum, opt: true },
708
- { no: 4, name: "utf8_validation", kind: "enum", T: FeatureSet_Utf8Validation_Enum, opt: true },
709
- { no: 5, name: "message_encoding", kind: "enum", T: FeatureSet_MessageEncoding_Enum, opt: true },
710
- { no: 6, name: "json_format", kind: "enum", T: FeatureSet_JsonFormat_Enum, opt: true },
707
+ {
708
+ no: 1,
709
+ name: "field_presence",
710
+ kind: "enum",
711
+ T: FeatureSet_FieldPresence_Enum,
712
+ opt: true,
713
+ },
714
+ {
715
+ no: 2,
716
+ name: "enum_type",
717
+ kind: "enum",
718
+ T: FeatureSet_EnumType_Enum,
719
+ opt: true,
720
+ },
721
+ {
722
+ no: 3,
723
+ name: "repeated_field_encoding",
724
+ kind: "enum",
725
+ T: FeatureSet_RepeatedFieldEncoding_Enum,
726
+ opt: true,
727
+ },
728
+ {
729
+ no: 4,
730
+ name: "utf8_validation",
731
+ kind: "enum",
732
+ T: FeatureSet_Utf8Validation_Enum,
733
+ opt: true,
734
+ },
735
+ {
736
+ no: 5,
737
+ name: "message_encoding",
738
+ kind: "enum",
739
+ T: FeatureSet_MessageEncoding_Enum,
740
+ opt: true,
741
+ },
742
+ {
743
+ no: 6,
744
+ name: "json_format",
745
+ kind: "enum",
746
+ T: FeatureSet_JsonFormat_Enum,
747
+ opt: true,
748
+ },
711
749
  ],
712
750
  packedByDefault: false,
713
751
  });
752
+ // UninterpretedOption_NamePart contains the message type declaration for UninterpretedOption_NamePart.
714
753
  export const UninterpretedOption_NamePart = createMessageType({
715
754
  typeName: "google.protobuf.UninterpretedOption.NamePart",
716
755
  fields: [
717
- { no: 1, name: "name_part", kind: "scalar", T: 9 /* ScalarType.STRING */, req: true },
718
- { no: 2, name: "is_extension", kind: "scalar", T: 8 /* ScalarType.BOOL */, req: true },
756
+ {
757
+ no: 1,
758
+ name: "name_part",
759
+ kind: "scalar",
760
+ T: ScalarType.STRING,
761
+ req: true,
762
+ },
763
+ {
764
+ no: 2,
765
+ name: "is_extension",
766
+ kind: "scalar",
767
+ T: ScalarType.BOOL,
768
+ req: true,
769
+ },
719
770
  ],
720
771
  packedByDefault: false,
721
772
  });
773
+ // UninterpretedOption contains the message type declaration for UninterpretedOption.
722
774
  export const UninterpretedOption = createMessageType({
723
775
  typeName: "google.protobuf.UninterpretedOption",
724
776
  fields: [
725
- { no: 2, name: "name", kind: "message", T: () => UninterpretedOption_NamePart, repeated: true },
726
- { no: 3, name: "identifier_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
727
- { no: 4, name: "positive_int_value", kind: "scalar", T: 4 /* ScalarType.UINT64 */, opt: true },
728
- { no: 5, name: "negative_int_value", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
729
- { no: 6, name: "double_value", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
730
- { no: 7, name: "string_value", kind: "scalar", T: 12 /* ScalarType.BYTES */, opt: true },
731
- { no: 8, name: "aggregate_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
777
+ {
778
+ no: 2,
779
+ name: "name",
780
+ kind: "message",
781
+ T: () => UninterpretedOption_NamePart,
782
+ repeated: true,
783
+ },
784
+ {
785
+ no: 3,
786
+ name: "identifier_value",
787
+ kind: "scalar",
788
+ T: ScalarType.STRING,
789
+ opt: true,
790
+ },
791
+ {
792
+ no: 4,
793
+ name: "positive_int_value",
794
+ kind: "scalar",
795
+ T: ScalarType.UINT64,
796
+ opt: true,
797
+ },
798
+ {
799
+ no: 5,
800
+ name: "negative_int_value",
801
+ kind: "scalar",
802
+ T: ScalarType.INT64,
803
+ opt: true,
804
+ },
805
+ {
806
+ no: 6,
807
+ name: "double_value",
808
+ kind: "scalar",
809
+ T: ScalarType.DOUBLE,
810
+ opt: true,
811
+ },
812
+ {
813
+ no: 7,
814
+ name: "string_value",
815
+ kind: "scalar",
816
+ T: ScalarType.BYTES,
817
+ opt: true,
818
+ },
819
+ {
820
+ no: 8,
821
+ name: "aggregate_value",
822
+ kind: "scalar",
823
+ T: ScalarType.STRING,
824
+ opt: true,
825
+ },
732
826
  ],
733
827
  packedByDefault: false,
734
828
  });
829
+ // FieldOptions contains the message type declaration for FieldOptions.
735
830
  export const FieldOptions = createMessageType({
736
831
  typeName: "google.protobuf.FieldOptions",
737
832
  fields: [
738
- { no: 1, name: "ctype", kind: "enum", T: FieldOptions_CType_Enum, opt: true, default: FieldOptions_CType.STRING },
739
- { no: 2, name: "packed", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
740
- { no: 6, name: "jstype", kind: "enum", T: FieldOptions_JSType_Enum, opt: true, default: FieldOptions_JSType.JS_NORMAL },
741
- { no: 5, name: "lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
742
- { no: 15, name: "unverified_lazy", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
743
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
744
- { no: 10, name: "weak", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
745
- { no: 16, name: "debug_redact", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
746
- { no: 17, name: "retention", kind: "enum", T: FieldOptions_OptionRetention_Enum, opt: true },
747
- { no: 19, name: "targets", kind: "enum", T: FieldOptions_OptionTargetType_Enum, repeated: true },
748
- { no: 20, name: "edition_defaults", kind: "message", T: () => FieldOptions_EditionDefault, repeated: true },
749
- { no: 21, name: "features", kind: "message", T: () => FeatureSet, opt: true },
750
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
833
+ {
834
+ no: 1,
835
+ name: "ctype",
836
+ kind: "enum",
837
+ T: FieldOptions_CType_Enum,
838
+ opt: true,
839
+ default: FieldOptions_CType.STRING,
840
+ },
841
+ { no: 2, name: "packed", kind: "scalar", T: ScalarType.BOOL, opt: true },
842
+ {
843
+ no: 6,
844
+ name: "jstype",
845
+ kind: "enum",
846
+ T: FieldOptions_JSType_Enum,
847
+ opt: true,
848
+ default: FieldOptions_JSType.JS_NORMAL,
849
+ },
850
+ {
851
+ no: 5,
852
+ name: "lazy",
853
+ kind: "scalar",
854
+ T: ScalarType.BOOL,
855
+ opt: true,
856
+ default: false,
857
+ },
858
+ {
859
+ no: 15,
860
+ name: "unverified_lazy",
861
+ kind: "scalar",
862
+ T: ScalarType.BOOL,
863
+ opt: true,
864
+ default: false,
865
+ },
866
+ {
867
+ no: 3,
868
+ name: "deprecated",
869
+ kind: "scalar",
870
+ T: ScalarType.BOOL,
871
+ opt: true,
872
+ default: false,
873
+ },
874
+ {
875
+ no: 10,
876
+ name: "weak",
877
+ kind: "scalar",
878
+ T: ScalarType.BOOL,
879
+ opt: true,
880
+ default: false,
881
+ },
882
+ {
883
+ no: 16,
884
+ name: "debug_redact",
885
+ kind: "scalar",
886
+ T: ScalarType.BOOL,
887
+ opt: true,
888
+ default: false,
889
+ },
890
+ {
891
+ no: 17,
892
+ name: "retention",
893
+ kind: "enum",
894
+ T: FieldOptions_OptionRetention_Enum,
895
+ opt: true,
896
+ },
897
+ {
898
+ no: 19,
899
+ name: "targets",
900
+ kind: "enum",
901
+ T: FieldOptions_OptionTargetType_Enum,
902
+ repeated: true,
903
+ },
904
+ {
905
+ no: 20,
906
+ name: "edition_defaults",
907
+ kind: "message",
908
+ T: () => FieldOptions_EditionDefault,
909
+ repeated: true,
910
+ },
911
+ {
912
+ no: 21,
913
+ name: "features",
914
+ kind: "message",
915
+ T: () => FeatureSet,
916
+ opt: true,
917
+ },
918
+ {
919
+ no: 999,
920
+ name: "uninterpreted_option",
921
+ kind: "message",
922
+ T: () => UninterpretedOption,
923
+ repeated: true,
924
+ },
751
925
  ],
752
926
  packedByDefault: false,
753
927
  });
928
+ // FieldDescriptorProto contains the message type declaration for FieldDescriptorProto.
754
929
  export const FieldDescriptorProto = createMessageType({
755
930
  typeName: "google.protobuf.FieldDescriptorProto",
756
931
  fields: [
757
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
758
- { no: 3, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
759
- { no: 4, name: "label", kind: "enum", T: FieldDescriptorProto_Label_Enum, opt: true },
760
- { no: 5, name: "type", kind: "enum", T: FieldDescriptorProto_Type_Enum, opt: true },
761
- { no: 6, name: "type_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
762
- { no: 2, name: "extendee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
763
- { no: 7, name: "default_value", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
764
- { no: 9, name: "oneof_index", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
765
- { no: 10, name: "json_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
766
- { no: 8, name: "options", kind: "message", T: () => FieldOptions, opt: true },
767
- { no: 17, name: "proto3_optional", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
932
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
933
+ { no: 3, name: "number", kind: "scalar", T: ScalarType.INT32, opt: true },
934
+ {
935
+ no: 4,
936
+ name: "label",
937
+ kind: "enum",
938
+ T: FieldDescriptorProto_Label_Enum,
939
+ opt: true,
940
+ },
941
+ {
942
+ no: 5,
943
+ name: "type",
944
+ kind: "enum",
945
+ T: FieldDescriptorProto_Type_Enum,
946
+ opt: true,
947
+ },
948
+ {
949
+ no: 6,
950
+ name: "type_name",
951
+ kind: "scalar",
952
+ T: ScalarType.STRING,
953
+ opt: true,
954
+ },
955
+ {
956
+ no: 2,
957
+ name: "extendee",
958
+ kind: "scalar",
959
+ T: ScalarType.STRING,
960
+ opt: true,
961
+ },
962
+ {
963
+ no: 7,
964
+ name: "default_value",
965
+ kind: "scalar",
966
+ T: ScalarType.STRING,
967
+ opt: true,
968
+ },
969
+ {
970
+ no: 9,
971
+ name: "oneof_index",
972
+ kind: "scalar",
973
+ T: ScalarType.INT32,
974
+ opt: true,
975
+ },
976
+ {
977
+ no: 10,
978
+ name: "json_name",
979
+ kind: "scalar",
980
+ T: ScalarType.STRING,
981
+ opt: true,
982
+ },
983
+ {
984
+ no: 8,
985
+ name: "options",
986
+ kind: "message",
987
+ T: () => FieldOptions,
988
+ opt: true,
989
+ },
990
+ {
991
+ no: 17,
992
+ name: "proto3_optional",
993
+ kind: "scalar",
994
+ T: ScalarType.BOOL,
995
+ opt: true,
996
+ },
768
997
  ],
769
998
  packedByDefault: false,
770
999
  });
1000
+ // EnumValueOptions contains the message type declaration for EnumValueOptions.
771
1001
  export const EnumValueOptions = createMessageType({
772
1002
  typeName: "google.protobuf.EnumValueOptions",
773
1003
  fields: [
774
- { no: 1, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
775
- { no: 2, name: "features", kind: "message", T: () => FeatureSet, opt: true },
776
- { no: 3, name: "debug_redact", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
777
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
1004
+ {
1005
+ no: 1,
1006
+ name: "deprecated",
1007
+ kind: "scalar",
1008
+ T: ScalarType.BOOL,
1009
+ opt: true,
1010
+ default: false,
1011
+ },
1012
+ {
1013
+ no: 2,
1014
+ name: "features",
1015
+ kind: "message",
1016
+ T: () => FeatureSet,
1017
+ opt: true,
1018
+ },
1019
+ {
1020
+ no: 3,
1021
+ name: "debug_redact",
1022
+ kind: "scalar",
1023
+ T: ScalarType.BOOL,
1024
+ opt: true,
1025
+ default: false,
1026
+ },
1027
+ {
1028
+ no: 999,
1029
+ name: "uninterpreted_option",
1030
+ kind: "message",
1031
+ T: () => UninterpretedOption,
1032
+ repeated: true,
1033
+ },
778
1034
  ],
779
1035
  packedByDefault: false,
780
1036
  });
1037
+ // EnumValueDescriptorProto contains the message type declaration for EnumValueDescriptorProto.
781
1038
  export const EnumValueDescriptorProto = createMessageType({
782
1039
  typeName: "google.protobuf.EnumValueDescriptorProto",
783
1040
  fields: [
784
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
785
- { no: 2, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
786
- { no: 3, name: "options", kind: "message", T: () => EnumValueOptions, opt: true },
1041
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
1042
+ { no: 2, name: "number", kind: "scalar", T: ScalarType.INT32, opt: true },
1043
+ {
1044
+ no: 3,
1045
+ name: "options",
1046
+ kind: "message",
1047
+ T: () => EnumValueOptions,
1048
+ opt: true,
1049
+ },
787
1050
  ],
788
1051
  packedByDefault: false,
789
1052
  });
1053
+ // EnumOptions contains the message type declaration for EnumOptions.
790
1054
  export const EnumOptions = createMessageType({
791
1055
  typeName: "google.protobuf.EnumOptions",
792
1056
  fields: [
793
- { no: 2, name: "allow_alias", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
794
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
795
- { no: 6, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
796
- { no: 7, name: "features", kind: "message", T: () => FeatureSet, opt: true },
797
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
1057
+ {
1058
+ no: 2,
1059
+ name: "allow_alias",
1060
+ kind: "scalar",
1061
+ T: ScalarType.BOOL,
1062
+ opt: true,
1063
+ },
1064
+ {
1065
+ no: 3,
1066
+ name: "deprecated",
1067
+ kind: "scalar",
1068
+ T: ScalarType.BOOL,
1069
+ opt: true,
1070
+ default: false,
1071
+ },
1072
+ {
1073
+ no: 6,
1074
+ name: "deprecated_legacy_json_field_conflicts",
1075
+ kind: "scalar",
1076
+ T: ScalarType.BOOL,
1077
+ opt: true,
1078
+ },
1079
+ {
1080
+ no: 7,
1081
+ name: "features",
1082
+ kind: "message",
1083
+ T: () => FeatureSet,
1084
+ opt: true,
1085
+ },
1086
+ {
1087
+ no: 999,
1088
+ name: "uninterpreted_option",
1089
+ kind: "message",
1090
+ T: () => UninterpretedOption,
1091
+ repeated: true,
1092
+ },
798
1093
  ],
799
1094
  packedByDefault: false,
800
1095
  });
1096
+ // EnumDescriptorProto_EnumReservedRange contains the message type declaration for EnumDescriptorProto_EnumReservedRange.
801
1097
  export const EnumDescriptorProto_EnumReservedRange = createMessageType({
802
1098
  typeName: "google.protobuf.EnumDescriptorProto.EnumReservedRange",
803
1099
  fields: [
804
- { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
805
- { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1100
+ { no: 1, name: "start", kind: "scalar", T: ScalarType.INT32, opt: true },
1101
+ { no: 2, name: "end", kind: "scalar", T: ScalarType.INT32, opt: true },
806
1102
  ],
807
1103
  packedByDefault: false,
808
1104
  });
1105
+ // EnumDescriptorProto contains the message type declaration for EnumDescriptorProto.
809
1106
  export const EnumDescriptorProto = createMessageType({
810
1107
  typeName: "google.protobuf.EnumDescriptorProto",
811
1108
  fields: [
812
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
813
- { no: 2, name: "value", kind: "message", T: () => EnumValueDescriptorProto, repeated: true },
814
- { no: 3, name: "options", kind: "message", T: () => EnumOptions, opt: true },
815
- { no: 4, name: "reserved_range", kind: "message", T: () => EnumDescriptorProto_EnumReservedRange, repeated: true },
816
- { no: 5, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1109
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
1110
+ {
1111
+ no: 2,
1112
+ name: "value",
1113
+ kind: "message",
1114
+ T: () => EnumValueDescriptorProto,
1115
+ repeated: true,
1116
+ },
1117
+ {
1118
+ no: 3,
1119
+ name: "options",
1120
+ kind: "message",
1121
+ T: () => EnumOptions,
1122
+ opt: true,
1123
+ },
1124
+ {
1125
+ no: 4,
1126
+ name: "reserved_range",
1127
+ kind: "message",
1128
+ T: () => EnumDescriptorProto_EnumReservedRange,
1129
+ repeated: true,
1130
+ },
1131
+ {
1132
+ no: 5,
1133
+ name: "reserved_name",
1134
+ kind: "scalar",
1135
+ T: ScalarType.STRING,
1136
+ repeated: true,
1137
+ },
817
1138
  ],
818
1139
  packedByDefault: false,
819
1140
  });
1141
+ // ExtensionRangeOptions_Declaration contains the message type declaration for ExtensionRangeOptions_Declaration.
820
1142
  export const ExtensionRangeOptions_Declaration = createMessageType({
821
1143
  typeName: "google.protobuf.ExtensionRangeOptions.Declaration",
822
1144
  fields: [
823
- { no: 1, name: "number", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
824
- { no: 2, name: "full_name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
825
- { no: 3, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
826
- { no: 5, name: "reserved", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
827
- { no: 6, name: "repeated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1145
+ { no: 1, name: "number", kind: "scalar", T: ScalarType.INT32, opt: true },
1146
+ {
1147
+ no: 2,
1148
+ name: "full_name",
1149
+ kind: "scalar",
1150
+ T: ScalarType.STRING,
1151
+ opt: true,
1152
+ },
1153
+ { no: 3, name: "type", kind: "scalar", T: ScalarType.STRING, opt: true },
1154
+ {
1155
+ no: 5,
1156
+ name: "reserved",
1157
+ kind: "scalar",
1158
+ T: ScalarType.BOOL,
1159
+ opt: true,
1160
+ },
1161
+ {
1162
+ no: 6,
1163
+ name: "repeated",
1164
+ kind: "scalar",
1165
+ T: ScalarType.BOOL,
1166
+ opt: true,
1167
+ },
828
1168
  ],
829
1169
  packedByDefault: false,
830
1170
  });
1171
+ // ExtensionRangeOptions contains the message type declaration for ExtensionRangeOptions.
831
1172
  export const ExtensionRangeOptions = createMessageType({
832
1173
  typeName: "google.protobuf.ExtensionRangeOptions",
833
1174
  fields: [
834
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
835
- { no: 2, name: "declaration", kind: "message", T: () => ExtensionRangeOptions_Declaration, repeated: true },
836
- { no: 50, name: "features", kind: "message", T: () => FeatureSet, opt: true },
837
- { no: 3, name: "verification", kind: "enum", T: ExtensionRangeOptions_VerificationState_Enum, opt: true, default: ExtensionRangeOptions_VerificationState.UNVERIFIED },
1175
+ {
1176
+ no: 999,
1177
+ name: "uninterpreted_option",
1178
+ kind: "message",
1179
+ T: () => UninterpretedOption,
1180
+ repeated: true,
1181
+ },
1182
+ {
1183
+ no: 2,
1184
+ name: "declaration",
1185
+ kind: "message",
1186
+ T: () => ExtensionRangeOptions_Declaration,
1187
+ repeated: true,
1188
+ },
1189
+ {
1190
+ no: 50,
1191
+ name: "features",
1192
+ kind: "message",
1193
+ T: () => FeatureSet,
1194
+ opt: true,
1195
+ },
1196
+ {
1197
+ no: 3,
1198
+ name: "verification",
1199
+ kind: "enum",
1200
+ T: ExtensionRangeOptions_VerificationState_Enum,
1201
+ opt: true,
1202
+ default: ExtensionRangeOptions_VerificationState.UNVERIFIED,
1203
+ },
838
1204
  ],
839
1205
  packedByDefault: false,
840
1206
  });
1207
+ // DescriptorProto_ExtensionRange contains the message type declaration for DescriptorProto_ExtensionRange.
841
1208
  export const DescriptorProto_ExtensionRange = createMessageType({
842
1209
  typeName: "google.protobuf.DescriptorProto.ExtensionRange",
843
1210
  fields: [
844
- { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
845
- { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
846
- { no: 3, name: "options", kind: "message", T: () => ExtensionRangeOptions, opt: true },
1211
+ { no: 1, name: "start", kind: "scalar", T: ScalarType.INT32, opt: true },
1212
+ { no: 2, name: "end", kind: "scalar", T: ScalarType.INT32, opt: true },
1213
+ {
1214
+ no: 3,
1215
+ name: "options",
1216
+ kind: "message",
1217
+ T: () => ExtensionRangeOptions,
1218
+ opt: true,
1219
+ },
847
1220
  ],
848
1221
  packedByDefault: false,
849
1222
  });
1223
+ // OneofOptions contains the message type declaration for OneofOptions.
850
1224
  export const OneofOptions = createMessageType({
851
1225
  typeName: "google.protobuf.OneofOptions",
852
1226
  fields: [
853
- { no: 1, name: "features", kind: "message", T: () => FeatureSet, opt: true },
854
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
1227
+ {
1228
+ no: 1,
1229
+ name: "features",
1230
+ kind: "message",
1231
+ T: () => FeatureSet,
1232
+ opt: true,
1233
+ },
1234
+ {
1235
+ no: 999,
1236
+ name: "uninterpreted_option",
1237
+ kind: "message",
1238
+ T: () => UninterpretedOption,
1239
+ repeated: true,
1240
+ },
855
1241
  ],
856
1242
  packedByDefault: false,
857
1243
  });
1244
+ // OneofDescriptorProto contains the message type declaration for OneofDescriptorProto.
858
1245
  export const OneofDescriptorProto = createMessageType({
859
1246
  typeName: "google.protobuf.OneofDescriptorProto",
860
1247
  fields: [
861
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
862
- { no: 2, name: "options", kind: "message", T: () => OneofOptions, opt: true },
1248
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
1249
+ {
1250
+ no: 2,
1251
+ name: "options",
1252
+ kind: "message",
1253
+ T: () => OneofOptions,
1254
+ opt: true,
1255
+ },
863
1256
  ],
864
1257
  packedByDefault: false,
865
1258
  });
1259
+ // MessageOptions contains the message type declaration for MessageOptions.
866
1260
  export const MessageOptions = createMessageType({
867
1261
  typeName: "google.protobuf.MessageOptions",
868
1262
  fields: [
869
- { no: 1, name: "message_set_wire_format", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
870
- { no: 2, name: "no_standard_descriptor_accessor", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
871
- { no: 3, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
872
- { no: 7, name: "map_entry", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
873
- { no: 11, name: "deprecated_legacy_json_field_conflicts", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
874
- { no: 12, name: "features", kind: "message", T: () => FeatureSet, opt: true },
875
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
1263
+ {
1264
+ no: 1,
1265
+ name: "message_set_wire_format",
1266
+ kind: "scalar",
1267
+ T: ScalarType.BOOL,
1268
+ opt: true,
1269
+ default: false,
1270
+ },
1271
+ {
1272
+ no: 2,
1273
+ name: "no_standard_descriptor_accessor",
1274
+ kind: "scalar",
1275
+ T: ScalarType.BOOL,
1276
+ opt: true,
1277
+ default: false,
1278
+ },
1279
+ {
1280
+ no: 3,
1281
+ name: "deprecated",
1282
+ kind: "scalar",
1283
+ T: ScalarType.BOOL,
1284
+ opt: true,
1285
+ default: false,
1286
+ },
1287
+ { no: 7, name: "map_entry", kind: "scalar", T: ScalarType.BOOL, opt: true },
1288
+ {
1289
+ no: 11,
1290
+ name: "deprecated_legacy_json_field_conflicts",
1291
+ kind: "scalar",
1292
+ T: ScalarType.BOOL,
1293
+ opt: true,
1294
+ },
1295
+ {
1296
+ no: 12,
1297
+ name: "features",
1298
+ kind: "message",
1299
+ T: () => FeatureSet,
1300
+ opt: true,
1301
+ },
1302
+ {
1303
+ no: 999,
1304
+ name: "uninterpreted_option",
1305
+ kind: "message",
1306
+ T: () => UninterpretedOption,
1307
+ repeated: true,
1308
+ },
876
1309
  ],
877
1310
  packedByDefault: false,
878
1311
  });
1312
+ // DescriptorProto_ReservedRange contains the message type declaration for DescriptorProto_ReservedRange.
879
1313
  export const DescriptorProto_ReservedRange = createMessageType({
880
1314
  typeName: "google.protobuf.DescriptorProto.ReservedRange",
881
1315
  fields: [
882
- { no: 1, name: "start", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
883
- { no: 2, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1316
+ { no: 1, name: "start", kind: "scalar", T: ScalarType.INT32, opt: true },
1317
+ { no: 2, name: "end", kind: "scalar", T: ScalarType.INT32, opt: true },
884
1318
  ],
885
1319
  packedByDefault: false,
886
1320
  });
1321
+ // DescriptorProto contains the message type declaration for DescriptorProto.
887
1322
  export const DescriptorProto = createMessageType({
888
1323
  typeName: "google.protobuf.DescriptorProto",
889
1324
  fields: [
890
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
891
- { no: 2, name: "field", kind: "message", T: () => FieldDescriptorProto, repeated: true },
892
- { no: 6, name: "extension", kind: "message", T: () => FieldDescriptorProto, repeated: true },
893
- { no: 3, name: "nested_type", kind: "message", T: () => DescriptorProto, repeated: true },
894
- { no: 4, name: "enum_type", kind: "message", T: () => EnumDescriptorProto, repeated: true },
895
- { no: 5, name: "extension_range", kind: "message", T: () => DescriptorProto_ExtensionRange, repeated: true },
896
- { no: 8, name: "oneof_decl", kind: "message", T: () => OneofDescriptorProto, repeated: true },
897
- { no: 7, name: "options", kind: "message", T: () => MessageOptions, opt: true },
898
- { no: 9, name: "reserved_range", kind: "message", T: () => DescriptorProto_ReservedRange, repeated: true },
899
- { no: 10, name: "reserved_name", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1325
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
1326
+ {
1327
+ no: 2,
1328
+ name: "field",
1329
+ kind: "message",
1330
+ T: () => FieldDescriptorProto,
1331
+ repeated: true,
1332
+ },
1333
+ {
1334
+ no: 6,
1335
+ name: "extension",
1336
+ kind: "message",
1337
+ T: () => FieldDescriptorProto,
1338
+ repeated: true,
1339
+ },
1340
+ {
1341
+ no: 3,
1342
+ name: "nested_type",
1343
+ kind: "message",
1344
+ T: () => DescriptorProto,
1345
+ repeated: true,
1346
+ },
1347
+ {
1348
+ no: 4,
1349
+ name: "enum_type",
1350
+ kind: "message",
1351
+ T: () => EnumDescriptorProto,
1352
+ repeated: true,
1353
+ },
1354
+ {
1355
+ no: 5,
1356
+ name: "extension_range",
1357
+ kind: "message",
1358
+ T: () => DescriptorProto_ExtensionRange,
1359
+ repeated: true,
1360
+ },
1361
+ {
1362
+ no: 8,
1363
+ name: "oneof_decl",
1364
+ kind: "message",
1365
+ T: () => OneofDescriptorProto,
1366
+ repeated: true,
1367
+ },
1368
+ {
1369
+ no: 7,
1370
+ name: "options",
1371
+ kind: "message",
1372
+ T: () => MessageOptions,
1373
+ opt: true,
1374
+ },
1375
+ {
1376
+ no: 9,
1377
+ name: "reserved_range",
1378
+ kind: "message",
1379
+ T: () => DescriptorProto_ReservedRange,
1380
+ repeated: true,
1381
+ },
1382
+ {
1383
+ no: 10,
1384
+ name: "reserved_name",
1385
+ kind: "scalar",
1386
+ T: ScalarType.STRING,
1387
+ repeated: true,
1388
+ },
900
1389
  ],
901
1390
  packedByDefault: false,
902
1391
  });
1392
+ // MethodOptions contains the message type declaration for MethodOptions.
903
1393
  export const MethodOptions = createMessageType({
904
1394
  typeName: "google.protobuf.MethodOptions",
905
1395
  fields: [
906
- { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
907
- { no: 34, name: "idempotency_level", kind: "enum", T: MethodOptions_IdempotencyLevel_Enum, opt: true, default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN },
908
- { no: 35, name: "features", kind: "message", T: () => FeatureSet, opt: true },
909
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
1396
+ {
1397
+ no: 33,
1398
+ name: "deprecated",
1399
+ kind: "scalar",
1400
+ T: ScalarType.BOOL,
1401
+ opt: true,
1402
+ default: false,
1403
+ },
1404
+ {
1405
+ no: 34,
1406
+ name: "idempotency_level",
1407
+ kind: "enum",
1408
+ T: MethodOptions_IdempotencyLevel_Enum,
1409
+ opt: true,
1410
+ default: MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN,
1411
+ },
1412
+ {
1413
+ no: 35,
1414
+ name: "features",
1415
+ kind: "message",
1416
+ T: () => FeatureSet,
1417
+ opt: true,
1418
+ },
1419
+ {
1420
+ no: 999,
1421
+ name: "uninterpreted_option",
1422
+ kind: "message",
1423
+ T: () => UninterpretedOption,
1424
+ repeated: true,
1425
+ },
910
1426
  ],
911
1427
  packedByDefault: false,
912
1428
  });
1429
+ // MethodDescriptorProto contains the message type declaration for MethodDescriptorProto.
913
1430
  export const MethodDescriptorProto = createMessageType({
914
1431
  typeName: "google.protobuf.MethodDescriptorProto",
915
1432
  fields: [
916
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
917
- { no: 2, name: "input_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
918
- { no: 3, name: "output_type", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
919
- { no: 4, name: "options", kind: "message", T: () => MethodOptions, opt: true },
920
- { no: 5, name: "client_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
921
- { no: 6, name: "server_streaming", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
1433
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
1434
+ {
1435
+ no: 2,
1436
+ name: "input_type",
1437
+ kind: "scalar",
1438
+ T: ScalarType.STRING,
1439
+ opt: true,
1440
+ },
1441
+ {
1442
+ no: 3,
1443
+ name: "output_type",
1444
+ kind: "scalar",
1445
+ T: ScalarType.STRING,
1446
+ opt: true,
1447
+ },
1448
+ {
1449
+ no: 4,
1450
+ name: "options",
1451
+ kind: "message",
1452
+ T: () => MethodOptions,
1453
+ opt: true,
1454
+ },
1455
+ {
1456
+ no: 5,
1457
+ name: "client_streaming",
1458
+ kind: "scalar",
1459
+ T: ScalarType.BOOL,
1460
+ opt: true,
1461
+ default: false,
1462
+ },
1463
+ {
1464
+ no: 6,
1465
+ name: "server_streaming",
1466
+ kind: "scalar",
1467
+ T: ScalarType.BOOL,
1468
+ opt: true,
1469
+ default: false,
1470
+ },
922
1471
  ],
923
1472
  packedByDefault: false,
924
1473
  });
1474
+ // ServiceOptions contains the message type declaration for ServiceOptions.
925
1475
  export const ServiceOptions = createMessageType({
926
1476
  typeName: "google.protobuf.ServiceOptions",
927
1477
  fields: [
928
- { no: 34, name: "features", kind: "message", T: () => FeatureSet, opt: true },
929
- { no: 33, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
930
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
1478
+ {
1479
+ no: 34,
1480
+ name: "features",
1481
+ kind: "message",
1482
+ T: () => FeatureSet,
1483
+ opt: true,
1484
+ },
1485
+ {
1486
+ no: 33,
1487
+ name: "deprecated",
1488
+ kind: "scalar",
1489
+ T: ScalarType.BOOL,
1490
+ opt: true,
1491
+ default: false,
1492
+ },
1493
+ {
1494
+ no: 999,
1495
+ name: "uninterpreted_option",
1496
+ kind: "message",
1497
+ T: () => UninterpretedOption,
1498
+ repeated: true,
1499
+ },
931
1500
  ],
932
1501
  packedByDefault: false,
933
1502
  });
1503
+ // ServiceDescriptorProto contains the message type declaration for ServiceDescriptorProto.
934
1504
  export const ServiceDescriptorProto = createMessageType({
935
1505
  typeName: "google.protobuf.ServiceDescriptorProto",
936
1506
  fields: [
937
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
938
- { no: 2, name: "method", kind: "message", T: () => MethodDescriptorProto, repeated: true },
939
- { no: 3, name: "options", kind: "message", T: () => ServiceOptions, opt: true },
1507
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
1508
+ {
1509
+ no: 2,
1510
+ name: "method",
1511
+ kind: "message",
1512
+ T: () => MethodDescriptorProto,
1513
+ repeated: true,
1514
+ },
1515
+ {
1516
+ no: 3,
1517
+ name: "options",
1518
+ kind: "message",
1519
+ T: () => ServiceOptions,
1520
+ opt: true,
1521
+ },
940
1522
  ],
941
1523
  packedByDefault: false,
942
1524
  });
1525
+ // FileOptions contains the message type declaration for FileOptions.
943
1526
  export const FileOptions = createMessageType({
944
1527
  typeName: "google.protobuf.FileOptions",
945
1528
  fields: [
946
- { no: 1, name: "java_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
947
- { no: 8, name: "java_outer_classname", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
948
- { no: 10, name: "java_multiple_files", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
949
- { no: 20, name: "java_generate_equals_and_hash", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
950
- { no: 27, name: "java_string_check_utf8", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
951
- { no: 9, name: "optimize_for", kind: "enum", T: FileOptions_OptimizeMode_Enum, opt: true, default: FileOptions_OptimizeMode.SPEED },
952
- { no: 11, name: "go_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
953
- { no: 16, name: "cc_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
954
- { no: 17, name: "java_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
955
- { no: 18, name: "py_generic_services", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
956
- { no: 23, name: "deprecated", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: false },
957
- { no: 31, name: "cc_enable_arenas", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true, default: true },
958
- { no: 36, name: "objc_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
959
- { no: 37, name: "csharp_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
960
- { no: 39, name: "swift_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
961
- { no: 40, name: "php_class_prefix", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
962
- { no: 41, name: "php_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
963
- { no: 44, name: "php_metadata_namespace", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
964
- { no: 45, name: "ruby_package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
965
- { no: 50, name: "features", kind: "message", T: () => FeatureSet, opt: true },
966
- { no: 999, name: "uninterpreted_option", kind: "message", T: () => UninterpretedOption, repeated: true },
1529
+ {
1530
+ no: 1,
1531
+ name: "java_package",
1532
+ kind: "scalar",
1533
+ T: ScalarType.STRING,
1534
+ opt: true,
1535
+ },
1536
+ {
1537
+ no: 8,
1538
+ name: "java_outer_classname",
1539
+ kind: "scalar",
1540
+ T: ScalarType.STRING,
1541
+ opt: true,
1542
+ },
1543
+ {
1544
+ no: 10,
1545
+ name: "java_multiple_files",
1546
+ kind: "scalar",
1547
+ T: ScalarType.BOOL,
1548
+ opt: true,
1549
+ default: false,
1550
+ },
1551
+ {
1552
+ no: 20,
1553
+ name: "java_generate_equals_and_hash",
1554
+ kind: "scalar",
1555
+ T: ScalarType.BOOL,
1556
+ opt: true,
1557
+ },
1558
+ {
1559
+ no: 27,
1560
+ name: "java_string_check_utf8",
1561
+ kind: "scalar",
1562
+ T: ScalarType.BOOL,
1563
+ opt: true,
1564
+ default: false,
1565
+ },
1566
+ {
1567
+ no: 9,
1568
+ name: "optimize_for",
1569
+ kind: "enum",
1570
+ T: FileOptions_OptimizeMode_Enum,
1571
+ opt: true,
1572
+ default: FileOptions_OptimizeMode.SPEED,
1573
+ },
1574
+ {
1575
+ no: 11,
1576
+ name: "go_package",
1577
+ kind: "scalar",
1578
+ T: ScalarType.STRING,
1579
+ opt: true,
1580
+ },
1581
+ {
1582
+ no: 16,
1583
+ name: "cc_generic_services",
1584
+ kind: "scalar",
1585
+ T: ScalarType.BOOL,
1586
+ opt: true,
1587
+ default: false,
1588
+ },
1589
+ {
1590
+ no: 17,
1591
+ name: "java_generic_services",
1592
+ kind: "scalar",
1593
+ T: ScalarType.BOOL,
1594
+ opt: true,
1595
+ default: false,
1596
+ },
1597
+ {
1598
+ no: 18,
1599
+ name: "py_generic_services",
1600
+ kind: "scalar",
1601
+ T: ScalarType.BOOL,
1602
+ opt: true,
1603
+ default: false,
1604
+ },
1605
+ {
1606
+ no: 23,
1607
+ name: "deprecated",
1608
+ kind: "scalar",
1609
+ T: ScalarType.BOOL,
1610
+ opt: true,
1611
+ default: false,
1612
+ },
1613
+ {
1614
+ no: 31,
1615
+ name: "cc_enable_arenas",
1616
+ kind: "scalar",
1617
+ T: ScalarType.BOOL,
1618
+ opt: true,
1619
+ default: true,
1620
+ },
1621
+ {
1622
+ no: 36,
1623
+ name: "objc_class_prefix",
1624
+ kind: "scalar",
1625
+ T: ScalarType.STRING,
1626
+ opt: true,
1627
+ },
1628
+ {
1629
+ no: 37,
1630
+ name: "csharp_namespace",
1631
+ kind: "scalar",
1632
+ T: ScalarType.STRING,
1633
+ opt: true,
1634
+ },
1635
+ {
1636
+ no: 39,
1637
+ name: "swift_prefix",
1638
+ kind: "scalar",
1639
+ T: ScalarType.STRING,
1640
+ opt: true,
1641
+ },
1642
+ {
1643
+ no: 40,
1644
+ name: "php_class_prefix",
1645
+ kind: "scalar",
1646
+ T: ScalarType.STRING,
1647
+ opt: true,
1648
+ },
1649
+ {
1650
+ no: 41,
1651
+ name: "php_namespace",
1652
+ kind: "scalar",
1653
+ T: ScalarType.STRING,
1654
+ opt: true,
1655
+ },
1656
+ {
1657
+ no: 44,
1658
+ name: "php_metadata_namespace",
1659
+ kind: "scalar",
1660
+ T: ScalarType.STRING,
1661
+ opt: true,
1662
+ },
1663
+ {
1664
+ no: 45,
1665
+ name: "ruby_package",
1666
+ kind: "scalar",
1667
+ T: ScalarType.STRING,
1668
+ opt: true,
1669
+ },
1670
+ {
1671
+ no: 50,
1672
+ name: "features",
1673
+ kind: "message",
1674
+ T: () => FeatureSet,
1675
+ opt: true,
1676
+ },
1677
+ {
1678
+ no: 999,
1679
+ name: "uninterpreted_option",
1680
+ kind: "message",
1681
+ T: () => UninterpretedOption,
1682
+ repeated: true,
1683
+ },
967
1684
  ],
968
1685
  packedByDefault: false,
969
1686
  });
1687
+ // SourceCodeInfo_Location contains the message type declaration for SourceCodeInfo_Location.
970
1688
  export const SourceCodeInfo_Location = createMessageType({
971
1689
  typeName: "google.protobuf.SourceCodeInfo.Location",
972
1690
  fields: [
973
- { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
974
- { no: 2, name: "span", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
975
- { no: 3, name: "leading_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
976
- { no: 4, name: "trailing_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
977
- { no: 6, name: "leading_detached_comments", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
1691
+ {
1692
+ no: 1,
1693
+ name: "path",
1694
+ kind: "scalar",
1695
+ T: ScalarType.INT32,
1696
+ repeated: true,
1697
+ packed: true,
1698
+ },
1699
+ {
1700
+ no: 2,
1701
+ name: "span",
1702
+ kind: "scalar",
1703
+ T: ScalarType.INT32,
1704
+ repeated: true,
1705
+ packed: true,
1706
+ },
1707
+ {
1708
+ no: 3,
1709
+ name: "leading_comments",
1710
+ kind: "scalar",
1711
+ T: ScalarType.STRING,
1712
+ opt: true,
1713
+ },
1714
+ {
1715
+ no: 4,
1716
+ name: "trailing_comments",
1717
+ kind: "scalar",
1718
+ T: ScalarType.STRING,
1719
+ opt: true,
1720
+ },
1721
+ {
1722
+ no: 6,
1723
+ name: "leading_detached_comments",
1724
+ kind: "scalar",
1725
+ T: ScalarType.STRING,
1726
+ repeated: true,
1727
+ },
978
1728
  ],
979
1729
  packedByDefault: false,
980
1730
  });
1731
+ // SourceCodeInfo contains the message type declaration for SourceCodeInfo.
981
1732
  export const SourceCodeInfo = createMessageType({
982
1733
  typeName: "google.protobuf.SourceCodeInfo",
983
1734
  fields: [
984
- { no: 1, name: "location", kind: "message", T: () => SourceCodeInfo_Location, repeated: true },
1735
+ {
1736
+ no: 1,
1737
+ name: "location",
1738
+ kind: "message",
1739
+ T: () => SourceCodeInfo_Location,
1740
+ repeated: true,
1741
+ },
985
1742
  ],
986
1743
  packedByDefault: false,
987
1744
  });
1745
+ // FileDescriptorProto contains the message type declaration for FileDescriptorProto.
988
1746
  export const FileDescriptorProto = createMessageType({
989
1747
  typeName: "google.protobuf.FileDescriptorProto",
990
1748
  fields: [
991
- { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
992
- { no: 2, name: "package", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
993
- { no: 3, name: "dependency", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
994
- { no: 10, name: "public_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
995
- { no: 11, name: "weak_dependency", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true },
996
- { no: 4, name: "message_type", kind: "message", T: () => DescriptorProto, repeated: true },
997
- { no: 5, name: "enum_type", kind: "message", T: () => EnumDescriptorProto, repeated: true },
998
- { no: 6, name: "service", kind: "message", T: () => ServiceDescriptorProto, repeated: true },
999
- { no: 7, name: "extension", kind: "message", T: () => FieldDescriptorProto, repeated: true },
1000
- { no: 8, name: "options", kind: "message", T: () => FileOptions, opt: true },
1001
- { no: 9, name: "source_code_info", kind: "message", T: () => SourceCodeInfo, opt: true },
1002
- { no: 12, name: "syntax", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1749
+ { no: 1, name: "name", kind: "scalar", T: ScalarType.STRING, opt: true },
1750
+ {
1751
+ no: 2,
1752
+ name: "package",
1753
+ kind: "scalar",
1754
+ T: ScalarType.STRING,
1755
+ opt: true,
1756
+ },
1757
+ {
1758
+ no: 3,
1759
+ name: "dependency",
1760
+ kind: "scalar",
1761
+ T: ScalarType.STRING,
1762
+ repeated: true,
1763
+ },
1764
+ {
1765
+ no: 10,
1766
+ name: "public_dependency",
1767
+ kind: "scalar",
1768
+ T: ScalarType.INT32,
1769
+ repeated: true,
1770
+ },
1771
+ {
1772
+ no: 11,
1773
+ name: "weak_dependency",
1774
+ kind: "scalar",
1775
+ T: ScalarType.INT32,
1776
+ repeated: true,
1777
+ },
1778
+ {
1779
+ no: 4,
1780
+ name: "message_type",
1781
+ kind: "message",
1782
+ T: () => DescriptorProto,
1783
+ repeated: true,
1784
+ },
1785
+ {
1786
+ no: 5,
1787
+ name: "enum_type",
1788
+ kind: "message",
1789
+ T: () => EnumDescriptorProto,
1790
+ repeated: true,
1791
+ },
1792
+ {
1793
+ no: 6,
1794
+ name: "service",
1795
+ kind: "message",
1796
+ T: () => ServiceDescriptorProto,
1797
+ repeated: true,
1798
+ },
1799
+ {
1800
+ no: 7,
1801
+ name: "extension",
1802
+ kind: "message",
1803
+ T: () => FieldDescriptorProto,
1804
+ repeated: true,
1805
+ },
1806
+ {
1807
+ no: 8,
1808
+ name: "options",
1809
+ kind: "message",
1810
+ T: () => FileOptions,
1811
+ opt: true,
1812
+ },
1813
+ {
1814
+ no: 9,
1815
+ name: "source_code_info",
1816
+ kind: "message",
1817
+ T: () => SourceCodeInfo,
1818
+ opt: true,
1819
+ },
1820
+ {
1821
+ no: 12,
1822
+ name: "syntax",
1823
+ kind: "scalar",
1824
+ T: ScalarType.STRING,
1825
+ opt: true,
1826
+ },
1003
1827
  { no: 14, name: "edition", kind: "enum", T: Edition_Enum, opt: true },
1004
1828
  ],
1005
1829
  packedByDefault: false,
1006
1830
  });
1831
+ // FileDescriptorSet contains the message type declaration for FileDescriptorSet.
1007
1832
  export const FileDescriptorSet = createMessageType({
1008
1833
  typeName: "google.protobuf.FileDescriptorSet",
1009
1834
  fields: [
1010
- { no: 1, name: "file", kind: "message", T: () => FileDescriptorProto, repeated: true },
1835
+ {
1836
+ no: 1,
1837
+ name: "file",
1838
+ kind: "message",
1839
+ T: () => FileDescriptorProto,
1840
+ repeated: true,
1841
+ },
1011
1842
  ],
1012
1843
  packedByDefault: false,
1013
1844
  });
1845
+ // FeatureSetDefaults_FeatureSetEditionDefault contains the message type declaration for FeatureSetDefaults_FeatureSetEditionDefault.
1014
1846
  export const FeatureSetDefaults_FeatureSetEditionDefault = createMessageType({
1015
1847
  typeName: "google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault",
1016
1848
  fields: [
1017
1849
  { no: 3, name: "edition", kind: "enum", T: Edition_Enum, opt: true },
1018
- { no: 2, name: "features", kind: "message", T: () => FeatureSet, opt: true },
1850
+ {
1851
+ no: 2,
1852
+ name: "features",
1853
+ kind: "message",
1854
+ T: () => FeatureSet,
1855
+ opt: true,
1856
+ },
1019
1857
  ],
1020
1858
  packedByDefault: false,
1021
1859
  });
1860
+ // FeatureSetDefaults contains the message type declaration for FeatureSetDefaults.
1022
1861
  export const FeatureSetDefaults = createMessageType({
1023
1862
  typeName: "google.protobuf.FeatureSetDefaults",
1024
1863
  fields: [
1025
- { no: 1, name: "defaults", kind: "message", T: () => FeatureSetDefaults_FeatureSetEditionDefault, repeated: true },
1026
- { no: 4, name: "minimum_edition", kind: "enum", T: Edition_Enum, opt: true },
1027
- { no: 5, name: "maximum_edition", kind: "enum", T: Edition_Enum, opt: true },
1864
+ {
1865
+ no: 1,
1866
+ name: "defaults",
1867
+ kind: "message",
1868
+ T: () => FeatureSetDefaults_FeatureSetEditionDefault,
1869
+ repeated: true,
1870
+ },
1871
+ {
1872
+ no: 4,
1873
+ name: "minimum_edition",
1874
+ kind: "enum",
1875
+ T: Edition_Enum,
1876
+ opt: true,
1877
+ },
1878
+ {
1879
+ no: 5,
1880
+ name: "maximum_edition",
1881
+ kind: "enum",
1882
+ T: Edition_Enum,
1883
+ opt: true,
1884
+ },
1028
1885
  ],
1029
1886
  packedByDefault: false,
1030
1887
  });
1888
+ // GeneratedCodeInfo_Annotation contains the message type declaration for GeneratedCodeInfo_Annotation.
1031
1889
  export const GeneratedCodeInfo_Annotation = createMessageType({
1032
1890
  typeName: "google.protobuf.GeneratedCodeInfo.Annotation",
1033
1891
  fields: [
1034
- { no: 1, name: "path", kind: "scalar", T: 5 /* ScalarType.INT32 */, repeated: true, packed: true },
1035
- { no: 2, name: "source_file", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1036
- { no: 3, name: "begin", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1037
- { no: 4, name: "end", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
1038
- { no: 5, name: "semantic", kind: "enum", T: GeneratedCodeInfo_Annotation_Semantic_Enum, opt: true },
1892
+ {
1893
+ no: 1,
1894
+ name: "path",
1895
+ kind: "scalar",
1896
+ T: ScalarType.INT32,
1897
+ repeated: true,
1898
+ packed: true,
1899
+ },
1900
+ {
1901
+ no: 2,
1902
+ name: "source_file",
1903
+ kind: "scalar",
1904
+ T: ScalarType.STRING,
1905
+ opt: true,
1906
+ },
1907
+ { no: 3, name: "begin", kind: "scalar", T: ScalarType.INT32, opt: true },
1908
+ { no: 4, name: "end", kind: "scalar", T: ScalarType.INT32, opt: true },
1909
+ {
1910
+ no: 5,
1911
+ name: "semantic",
1912
+ kind: "enum",
1913
+ T: GeneratedCodeInfo_Annotation_Semantic_Enum,
1914
+ opt: true,
1915
+ },
1039
1916
  ],
1040
1917
  packedByDefault: false,
1041
1918
  });
1919
+ // GeneratedCodeInfo contains the message type declaration for GeneratedCodeInfo.
1042
1920
  export const GeneratedCodeInfo = createMessageType({
1043
1921
  typeName: "google.protobuf.GeneratedCodeInfo",
1044
1922
  fields: [
1045
- { no: 1, name: "annotation", kind: "message", T: () => GeneratedCodeInfo_Annotation, repeated: true },
1923
+ {
1924
+ no: 1,
1925
+ name: "annotation",
1926
+ kind: "message",
1927
+ T: () => GeneratedCodeInfo_Annotation,
1928
+ repeated: true,
1929
+ },
1046
1930
  ],
1047
1931
  packedByDefault: false,
1048
1932
  });