@bufbuild/protobuf 2.3.0 → 2.5.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 (139) hide show
  1. package/dist/cjs/codegenv1/enum.d.ts +2 -10
  2. package/dist/cjs/codegenv1/enum.js +3 -12
  3. package/dist/cjs/codegenv1/file.d.ts +1 -7
  4. package/dist/cjs/codegenv1/file.js +3 -20
  5. package/dist/cjs/codegenv1/index.d.ts +3 -3
  6. package/dist/cjs/codegenv1/index.js +3 -3
  7. package/dist/cjs/codegenv1/symbols.d.ts +60 -60
  8. package/dist/cjs/codegenv1/symbols.js +5 -31
  9. package/dist/cjs/codegenv1/types.d.ts +2 -1
  10. package/dist/cjs/codegenv2/enum.d.ts +18 -0
  11. package/dist/cjs/codegenv2/enum.js +40 -0
  12. package/dist/cjs/codegenv2/extension.d.ts +9 -0
  13. package/dist/cjs/codegenv2/extension.js +28 -0
  14. package/dist/cjs/codegenv2/file.d.ts +7 -0
  15. package/dist/cjs/codegenv2/file.js +35 -0
  16. package/dist/cjs/codegenv2/index.d.ts +10 -0
  17. package/dist/cjs/codegenv2/index.js +39 -0
  18. package/dist/cjs/codegenv2/message.d.ts +15 -0
  19. package/dist/cjs/codegenv2/message.js +24 -0
  20. package/dist/cjs/codegenv2/service.d.ts +8 -0
  21. package/dist/cjs/codegenv2/service.js +27 -0
  22. package/dist/cjs/codegenv2/symbols.d.ts +135 -0
  23. package/dist/cjs/codegenv2/symbols.js +72 -0
  24. package/dist/cjs/codegenv2/types.d.ts +81 -0
  25. package/dist/cjs/codegenv2/types.js +22 -0
  26. package/dist/cjs/reflect/nested-types.d.ts +23 -0
  27. package/dist/cjs/reflect/nested-types.js +40 -0
  28. package/dist/cjs/registry.js +8 -6
  29. package/dist/cjs/types.d.ts +25 -8
  30. package/dist/cjs/wkt/gen/google/protobuf/any_pb.d.ts +4 -2
  31. package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +2 -2
  32. package/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +10 -4
  33. package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +2 -2
  34. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +13 -5
  35. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +3 -3
  36. package/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.d.ts +91 -0
  37. package/dist/cjs/wkt/gen/google/protobuf/cpp_features_pb.js +60 -0
  38. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +100 -34
  39. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +3 -3
  40. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.d.ts +4 -2
  41. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +2 -2
  42. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.d.ts +4 -2
  43. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +2 -2
  44. package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.d.ts +4 -2
  45. package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +2 -2
  46. package/dist/cjs/wkt/gen/google/protobuf/go_features_pb.d.ts +124 -0
  47. package/dist/cjs/wkt/gen/google/protobuf/go_features_pb.js +90 -0
  48. package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.d.ts +115 -0
  49. package/dist/cjs/wkt/gen/google/protobuf/java_features_pb.js +67 -0
  50. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.d.ts +4 -2
  51. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +2 -2
  52. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.d.ts +10 -4
  53. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +3 -3
  54. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.d.ts +4 -2
  55. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +2 -2
  56. package/dist/cjs/wkt/gen/google/protobuf/type_pb.d.ts +16 -6
  57. package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +3 -3
  58. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +28 -10
  59. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +2 -2
  60. package/dist/cjs/wkt/index.d.ts +4 -1
  61. package/dist/cjs/wkt/index.js +4 -1
  62. package/dist/esm/codegenv1/enum.d.ts +2 -10
  63. package/dist/esm/codegenv1/enum.js +1 -11
  64. package/dist/esm/codegenv1/file.d.ts +1 -7
  65. package/dist/esm/codegenv1/file.js +1 -19
  66. package/dist/esm/codegenv1/index.d.ts +3 -3
  67. package/dist/esm/codegenv1/index.js +3 -3
  68. package/dist/esm/codegenv1/symbols.d.ts +60 -60
  69. package/dist/esm/codegenv1/symbols.js +5 -31
  70. package/dist/esm/codegenv1/types.d.ts +2 -1
  71. package/dist/esm/codegenv2/enum.d.ts +18 -0
  72. package/dist/esm/codegenv2/enum.js +36 -0
  73. package/dist/esm/codegenv2/extension.d.ts +9 -0
  74. package/dist/esm/codegenv2/extension.js +25 -0
  75. package/dist/esm/codegenv2/file.d.ts +7 -0
  76. package/dist/esm/codegenv2/file.js +32 -0
  77. package/dist/esm/codegenv2/index.d.ts +10 -0
  78. package/dist/esm/codegenv2/index.js +23 -0
  79. package/dist/esm/codegenv2/message.d.ts +15 -0
  80. package/dist/esm/codegenv2/message.js +21 -0
  81. package/dist/esm/codegenv2/service.d.ts +8 -0
  82. package/dist/esm/codegenv2/service.js +24 -0
  83. package/dist/esm/codegenv2/symbols.d.ts +135 -0
  84. package/dist/esm/codegenv2/symbols.js +69 -0
  85. package/dist/esm/codegenv2/types.d.ts +81 -0
  86. package/dist/esm/codegenv2/types.js +21 -0
  87. package/dist/esm/reflect/nested-types.d.ts +23 -0
  88. package/dist/esm/reflect/nested-types.js +39 -0
  89. package/dist/esm/registry.js +8 -6
  90. package/dist/esm/types.d.ts +25 -8
  91. package/dist/esm/wkt/gen/google/protobuf/any_pb.d.ts +4 -2
  92. package/dist/esm/wkt/gen/google/protobuf/any_pb.js +2 -2
  93. package/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +10 -4
  94. package/dist/esm/wkt/gen/google/protobuf/api_pb.js +2 -2
  95. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.d.ts +13 -5
  96. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +3 -3
  97. package/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.d.ts +91 -0
  98. package/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +57 -0
  99. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +100 -34
  100. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +3 -3
  101. package/dist/esm/wkt/gen/google/protobuf/duration_pb.d.ts +4 -2
  102. package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +2 -2
  103. package/dist/esm/wkt/gen/google/protobuf/empty_pb.d.ts +4 -2
  104. package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +2 -2
  105. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.d.ts +4 -2
  106. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +2 -2
  107. package/dist/esm/wkt/gen/google/protobuf/go_features_pb.d.ts +124 -0
  108. package/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +87 -0
  109. package/dist/esm/wkt/gen/google/protobuf/java_features_pb.d.ts +115 -0
  110. package/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +64 -0
  111. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.d.ts +4 -2
  112. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +2 -2
  113. package/dist/esm/wkt/gen/google/protobuf/struct_pb.d.ts +10 -4
  114. package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +3 -3
  115. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.d.ts +4 -2
  116. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +2 -2
  117. package/dist/esm/wkt/gen/google/protobuf/type_pb.d.ts +16 -6
  118. package/dist/esm/wkt/gen/google/protobuf/type_pb.js +3 -3
  119. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +28 -10
  120. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +2 -2
  121. package/dist/esm/wkt/index.d.ts +4 -1
  122. package/dist/esm/wkt/index.js +4 -1
  123. package/package.json +9 -2
  124. /package/dist/cjs/{codegenv1 → codegenv2}/boot.d.ts +0 -0
  125. /package/dist/cjs/{codegenv1 → codegenv2}/boot.js +0 -0
  126. /package/dist/cjs/{codegenv1 → codegenv2}/embed.d.ts +0 -0
  127. /package/dist/cjs/{codegenv1 → codegenv2}/embed.js +0 -0
  128. /package/dist/cjs/{codegenv1 → codegenv2}/restore-json-names.d.ts +0 -0
  129. /package/dist/cjs/{codegenv1 → codegenv2}/restore-json-names.js +0 -0
  130. /package/dist/cjs/{codegenv1 → codegenv2}/scalar.d.ts +0 -0
  131. /package/dist/cjs/{codegenv1 → codegenv2}/scalar.js +0 -0
  132. /package/dist/esm/{codegenv1 → codegenv2}/boot.d.ts +0 -0
  133. /package/dist/esm/{codegenv1 → codegenv2}/boot.js +0 -0
  134. /package/dist/esm/{codegenv1 → codegenv2}/embed.d.ts +0 -0
  135. /package/dist/esm/{codegenv1 → codegenv2}/embed.js +0 -0
  136. /package/dist/esm/{codegenv1 → codegenv2}/restore-json-names.d.ts +0 -0
  137. /package/dist/esm/{codegenv1 → codegenv2}/restore-json-names.js +0 -0
  138. /package/dist/esm/{codegenv1 → codegenv2}/scalar.d.ts +0 -0
  139. /package/dist/esm/{codegenv1 → codegenv2}/scalar.js +0 -0
@@ -0,0 +1,124 @@
1
+ import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js";
2
+ import type { FeatureSet } from "./descriptor_pb.js";
3
+ import type { Message } from "../../../../types.js";
4
+ /**
5
+ * Describes the file google/protobuf/go_features.proto.
6
+ */
7
+ export declare const file_google_protobuf_go_features: GenFile;
8
+ /**
9
+ * @generated from message pb.GoFeatures
10
+ */
11
+ export type GoFeatures = Message<"pb.GoFeatures"> & {
12
+ /**
13
+ * Whether or not to generate the deprecated UnmarshalJSON method for enums.
14
+ * Can only be true for proto using the Open Struct api.
15
+ *
16
+ * @generated from field: optional bool legacy_unmarshal_json_enum = 1;
17
+ */
18
+ legacyUnmarshalJsonEnum: boolean;
19
+ /**
20
+ * One of OPEN, HYBRID or OPAQUE.
21
+ *
22
+ * @generated from field: optional pb.GoFeatures.APILevel api_level = 2;
23
+ */
24
+ apiLevel: GoFeatures_APILevel;
25
+ /**
26
+ * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3;
27
+ */
28
+ stripEnumPrefix: GoFeatures_StripEnumPrefix;
29
+ };
30
+ /**
31
+ * @generated from message pb.GoFeatures
32
+ */
33
+ export type GoFeaturesJson = {
34
+ /**
35
+ * Whether or not to generate the deprecated UnmarshalJSON method for enums.
36
+ * Can only be true for proto using the Open Struct api.
37
+ *
38
+ * @generated from field: optional bool legacy_unmarshal_json_enum = 1;
39
+ */
40
+ legacyUnmarshalJsonEnum?: boolean;
41
+ /**
42
+ * One of OPEN, HYBRID or OPAQUE.
43
+ *
44
+ * @generated from field: optional pb.GoFeatures.APILevel api_level = 2;
45
+ */
46
+ apiLevel?: GoFeatures_APILevelJson;
47
+ /**
48
+ * @generated from field: optional pb.GoFeatures.StripEnumPrefix strip_enum_prefix = 3;
49
+ */
50
+ stripEnumPrefix?: GoFeatures_StripEnumPrefixJson;
51
+ };
52
+ /**
53
+ * Describes the message pb.GoFeatures.
54
+ * Use `create(GoFeaturesSchema)` to create a new message.
55
+ */
56
+ export declare const GoFeaturesSchema: GenMessage<GoFeatures, {
57
+ jsonType: GoFeaturesJson;
58
+ }>;
59
+ /**
60
+ * @generated from enum pb.GoFeatures.APILevel
61
+ */
62
+ export declare enum GoFeatures_APILevel {
63
+ /**
64
+ * API_LEVEL_UNSPECIFIED results in selecting the OPEN API,
65
+ * but needs to be a separate value to distinguish between
66
+ * an explicitly set api level or a missing api level.
67
+ *
68
+ * @generated from enum value: API_LEVEL_UNSPECIFIED = 0;
69
+ */
70
+ API_LEVEL_UNSPECIFIED = 0,
71
+ /**
72
+ * @generated from enum value: API_OPEN = 1;
73
+ */
74
+ API_OPEN = 1,
75
+ /**
76
+ * @generated from enum value: API_HYBRID = 2;
77
+ */
78
+ API_HYBRID = 2,
79
+ /**
80
+ * @generated from enum value: API_OPAQUE = 3;
81
+ */
82
+ API_OPAQUE = 3
83
+ }
84
+ /**
85
+ * @generated from enum pb.GoFeatures.APILevel
86
+ */
87
+ export type GoFeatures_APILevelJson = "API_LEVEL_UNSPECIFIED" | "API_OPEN" | "API_HYBRID" | "API_OPAQUE";
88
+ /**
89
+ * Describes the enum pb.GoFeatures.APILevel.
90
+ */
91
+ export declare const GoFeatures_APILevelSchema: GenEnum<GoFeatures_APILevel, GoFeatures_APILevelJson>;
92
+ /**
93
+ * @generated from enum pb.GoFeatures.StripEnumPrefix
94
+ */
95
+ export declare enum GoFeatures_StripEnumPrefix {
96
+ /**
97
+ * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0;
98
+ */
99
+ UNSPECIFIED = 0,
100
+ /**
101
+ * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1;
102
+ */
103
+ KEEP = 1,
104
+ /**
105
+ * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2;
106
+ */
107
+ GENERATE_BOTH = 2,
108
+ /**
109
+ * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3;
110
+ */
111
+ STRIP = 3
112
+ }
113
+ /**
114
+ * @generated from enum pb.GoFeatures.StripEnumPrefix
115
+ */
116
+ export type GoFeatures_StripEnumPrefixJson = "STRIP_ENUM_PREFIX_UNSPECIFIED" | "STRIP_ENUM_PREFIX_KEEP" | "STRIP_ENUM_PREFIX_GENERATE_BOTH" | "STRIP_ENUM_PREFIX_STRIP";
117
+ /**
118
+ * Describes the enum pb.GoFeatures.StripEnumPrefix.
119
+ */
120
+ export declare const GoFeatures_StripEnumPrefixSchema: GenEnum<GoFeatures_StripEnumPrefix, GoFeatures_StripEnumPrefixJson>;
121
+ /**
122
+ * @generated from extension: optional pb.GoFeatures go = 1002;
123
+ */
124
+ export declare const go: GenExtension<FeatureSet, GoFeatures>;
@@ -0,0 +1,87 @@
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ import { fileDesc } from "../../../../codegenv2/file.js";
15
+ import { file_google_protobuf_descriptor } from "./descriptor_pb.js";
16
+ import { messageDesc } from "../../../../codegenv2/message.js";
17
+ import { enumDesc } from "../../../../codegenv2/enum.js";
18
+ import { extDesc } from "../../../../codegenv2/extension.js";
19
+ /**
20
+ * Describes the file google/protobuf/go_features.proto.
21
+ */
22
+ export const file_google_protobuf_go_features = /*@__PURE__*/ fileDesc("CiFnb29nbGUvcHJvdG9idWYvZ29fZmVhdHVyZXMucHJvdG8SAnBiIvcECgpHb0ZlYXR1cmVzEqUBChpsZWdhY3lfdW5tYXJzaGFsX2pzb25fZW51bRgBIAEoCEKAAYgBAZgBBpgBAaIBCRIEdHJ1ZRiEB6IBChIFZmFsc2UY5weyAVsI6AcQ6AcaU1RoZSBsZWdhY3kgVW5tYXJzaGFsSlNPTiBBUEkgaXMgZGVwcmVjYXRlZCBhbmQgd2lsbCBiZSByZW1vdmVkIGluIGEgZnV0dXJlIGVkaXRpb24uEmoKCWFwaV9sZXZlbBgCIAEoDjIXLnBiLkdvRmVhdHVyZXMuQVBJTGV2ZWxCPogBAZgBA5gBAaIBGhIVQVBJX0xFVkVMX1VOU1BFQ0lGSUVEGIQHogEPEgpBUElfT1BBUVVFGOkHsgEDCOgHEmsKEXN0cmlwX2VudW1fcHJlZml4GAMgASgOMh4ucGIuR29GZWF0dXJlcy5TdHJpcEVudW1QcmVmaXhCMIgBAZgBBpgBB5gBAaIBGxIWU1RSSVBfRU5VTV9QUkVGSVhfS0VFUBiEB7IBAwjpByJTCghBUElMZXZlbBIZChVBUElfTEVWRUxfVU5TUEVDSUZJRUQQABIMCghBUElfT1BFThABEg4KCkFQSV9IWUJSSUQQAhIOCgpBUElfT1BBUVVFEAMikgEKD1N0cmlwRW51bVByZWZpeBIhCh1TVFJJUF9FTlVNX1BSRUZJWF9VTlNQRUNJRklFRBAAEhoKFlNUUklQX0VOVU1fUFJFRklYX0tFRVAQARIjCh9TVFJJUF9FTlVNX1BSRUZJWF9HRU5FUkFURV9CT1RIEAISGwoXU1RSSVBfRU5VTV9QUkVGSVhfU1RSSVAQAzo8CgJnbxIbLmdvb2dsZS5wcm90b2J1Zi5GZWF0dXJlU2V0GOoHIAEoCzIOLnBiLkdvRmVhdHVyZXNSAmdvQi9aLWdvb2dsZS5nb2xhbmcub3JnL3Byb3RvYnVmL3R5cGVzL2dvZmVhdHVyZXNwYg", [file_google_protobuf_descriptor]);
23
+ /**
24
+ * Describes the message pb.GoFeatures.
25
+ * Use `create(GoFeaturesSchema)` to create a new message.
26
+ */
27
+ export const GoFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_go_features, 0);
28
+ /**
29
+ * @generated from enum pb.GoFeatures.APILevel
30
+ */
31
+ export var GoFeatures_APILevel;
32
+ (function (GoFeatures_APILevel) {
33
+ /**
34
+ * API_LEVEL_UNSPECIFIED results in selecting the OPEN API,
35
+ * but needs to be a separate value to distinguish between
36
+ * an explicitly set api level or a missing api level.
37
+ *
38
+ * @generated from enum value: API_LEVEL_UNSPECIFIED = 0;
39
+ */
40
+ GoFeatures_APILevel[GoFeatures_APILevel["API_LEVEL_UNSPECIFIED"] = 0] = "API_LEVEL_UNSPECIFIED";
41
+ /**
42
+ * @generated from enum value: API_OPEN = 1;
43
+ */
44
+ GoFeatures_APILevel[GoFeatures_APILevel["API_OPEN"] = 1] = "API_OPEN";
45
+ /**
46
+ * @generated from enum value: API_HYBRID = 2;
47
+ */
48
+ GoFeatures_APILevel[GoFeatures_APILevel["API_HYBRID"] = 2] = "API_HYBRID";
49
+ /**
50
+ * @generated from enum value: API_OPAQUE = 3;
51
+ */
52
+ GoFeatures_APILevel[GoFeatures_APILevel["API_OPAQUE"] = 3] = "API_OPAQUE";
53
+ })(GoFeatures_APILevel || (GoFeatures_APILevel = {}));
54
+ /**
55
+ * Describes the enum pb.GoFeatures.APILevel.
56
+ */
57
+ export const GoFeatures_APILevelSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_go_features, 0, 0);
58
+ /**
59
+ * @generated from enum pb.GoFeatures.StripEnumPrefix
60
+ */
61
+ export var GoFeatures_StripEnumPrefix;
62
+ (function (GoFeatures_StripEnumPrefix) {
63
+ /**
64
+ * @generated from enum value: STRIP_ENUM_PREFIX_UNSPECIFIED = 0;
65
+ */
66
+ GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["UNSPECIFIED"] = 0] = "UNSPECIFIED";
67
+ /**
68
+ * @generated from enum value: STRIP_ENUM_PREFIX_KEEP = 1;
69
+ */
70
+ GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["KEEP"] = 1] = "KEEP";
71
+ /**
72
+ * @generated from enum value: STRIP_ENUM_PREFIX_GENERATE_BOTH = 2;
73
+ */
74
+ GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["GENERATE_BOTH"] = 2] = "GENERATE_BOTH";
75
+ /**
76
+ * @generated from enum value: STRIP_ENUM_PREFIX_STRIP = 3;
77
+ */
78
+ GoFeatures_StripEnumPrefix[GoFeatures_StripEnumPrefix["STRIP"] = 3] = "STRIP";
79
+ })(GoFeatures_StripEnumPrefix || (GoFeatures_StripEnumPrefix = {}));
80
+ /**
81
+ * Describes the enum pb.GoFeatures.StripEnumPrefix.
82
+ */
83
+ export const GoFeatures_StripEnumPrefixSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_go_features, 0, 1);
84
+ /**
85
+ * @generated from extension: optional pb.GoFeatures go = 1002;
86
+ */
87
+ export const go = /*@__PURE__*/ extDesc(file_google_protobuf_go_features, 0);
@@ -0,0 +1,115 @@
1
+ import type { GenEnum, GenExtension, GenFile, GenMessage } from "../../../../codegenv2/types.js";
2
+ import type { FeatureSet } from "./descriptor_pb.js";
3
+ import type { Message } from "../../../../types.js";
4
+ /**
5
+ * Describes the file google/protobuf/java_features.proto.
6
+ */
7
+ export declare const file_google_protobuf_java_features: GenFile;
8
+ /**
9
+ * @generated from message pb.JavaFeatures
10
+ */
11
+ export type JavaFeatures = Message<"pb.JavaFeatures"> & {
12
+ /**
13
+ * Whether or not to treat an enum field as closed. This option is only
14
+ * applicable to enum fields, and will be removed in the future. It is
15
+ * consistent with the legacy behavior of using proto3 enum types for proto2
16
+ * fields.
17
+ *
18
+ * @generated from field: optional bool legacy_closed_enum = 1;
19
+ */
20
+ legacyClosedEnum: boolean;
21
+ /**
22
+ * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2;
23
+ */
24
+ utf8Validation: JavaFeatures_Utf8Validation;
25
+ /**
26
+ * Whether to use the old default outer class name scheme, or the new feature
27
+ * which adds a "Proto" suffix to the outer class name.
28
+ *
29
+ * Users will not be able to set this option, because we removed it in the
30
+ * same edition that it was introduced. But we use it to determine which
31
+ * naming scheme to use for outer class name defaults.
32
+ *
33
+ * @generated from field: optional bool use_old_outer_classname_default = 4;
34
+ */
35
+ useOldOuterClassnameDefault: boolean;
36
+ };
37
+ /**
38
+ * @generated from message pb.JavaFeatures
39
+ */
40
+ export type JavaFeaturesJson = {
41
+ /**
42
+ * Whether or not to treat an enum field as closed. This option is only
43
+ * applicable to enum fields, and will be removed in the future. It is
44
+ * consistent with the legacy behavior of using proto3 enum types for proto2
45
+ * fields.
46
+ *
47
+ * @generated from field: optional bool legacy_closed_enum = 1;
48
+ */
49
+ legacyClosedEnum?: boolean;
50
+ /**
51
+ * @generated from field: optional pb.JavaFeatures.Utf8Validation utf8_validation = 2;
52
+ */
53
+ utf8Validation?: JavaFeatures_Utf8ValidationJson;
54
+ /**
55
+ * Whether to use the old default outer class name scheme, or the new feature
56
+ * which adds a "Proto" suffix to the outer class name.
57
+ *
58
+ * Users will not be able to set this option, because we removed it in the
59
+ * same edition that it was introduced. But we use it to determine which
60
+ * naming scheme to use for outer class name defaults.
61
+ *
62
+ * @generated from field: optional bool use_old_outer_classname_default = 4;
63
+ */
64
+ useOldOuterClassnameDefault?: boolean;
65
+ };
66
+ /**
67
+ * Describes the message pb.JavaFeatures.
68
+ * Use `create(JavaFeaturesSchema)` to create a new message.
69
+ */
70
+ export declare const JavaFeaturesSchema: GenMessage<JavaFeatures, {
71
+ jsonType: JavaFeaturesJson;
72
+ }>;
73
+ /**
74
+ * The UTF8 validation strategy to use. See go/editions-utf8-validation for
75
+ * more information on this feature.
76
+ *
77
+ * @generated from enum pb.JavaFeatures.Utf8Validation
78
+ */
79
+ export declare enum JavaFeatures_Utf8Validation {
80
+ /**
81
+ * Invalid default, which should never be used.
82
+ *
83
+ * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
84
+ */
85
+ UTF8_VALIDATION_UNKNOWN = 0,
86
+ /**
87
+ * Respect the UTF8 validation behavior specified by the global
88
+ * utf8_validation feature.
89
+ *
90
+ * @generated from enum value: DEFAULT = 1;
91
+ */
92
+ DEFAULT = 1,
93
+ /**
94
+ * Verifies UTF8 validity overriding the global utf8_validation
95
+ * feature. This represents the legacy java_string_check_utf8 option.
96
+ *
97
+ * @generated from enum value: VERIFY = 2;
98
+ */
99
+ VERIFY = 2
100
+ }
101
+ /**
102
+ * The UTF8 validation strategy to use. See go/editions-utf8-validation for
103
+ * more information on this feature.
104
+ *
105
+ * @generated from enum pb.JavaFeatures.Utf8Validation
106
+ */
107
+ export type JavaFeatures_Utf8ValidationJson = "UTF8_VALIDATION_UNKNOWN" | "DEFAULT" | "VERIFY";
108
+ /**
109
+ * Describes the enum pb.JavaFeatures.Utf8Validation.
110
+ */
111
+ export declare const JavaFeatures_Utf8ValidationSchema: GenEnum<JavaFeatures_Utf8Validation, JavaFeatures_Utf8ValidationJson>;
112
+ /**
113
+ * @generated from extension: optional pb.JavaFeatures java = 1001;
114
+ */
115
+ export declare const java: GenExtension<FeatureSet, JavaFeatures>;
@@ -0,0 +1,64 @@
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+ import { fileDesc } from "../../../../codegenv2/file.js";
15
+ import { file_google_protobuf_descriptor } from "./descriptor_pb.js";
16
+ import { messageDesc } from "../../../../codegenv2/message.js";
17
+ import { enumDesc } from "../../../../codegenv2/enum.js";
18
+ import { extDesc } from "../../../../codegenv2/extension.js";
19
+ /**
20
+ * Describes the file google/protobuf/java_features.proto.
21
+ */
22
+ export const file_google_protobuf_java_features = /*@__PURE__*/ fileDesc("CiNnb29nbGUvcHJvdG9idWYvamF2YV9mZWF0dXJlcy5wcm90bxICcGIizAUKDEphdmFGZWF0dXJlcxL+AQoSbGVnYWN5X2Nsb3NlZF9lbnVtGAEgASgIQuEBiAEBmAEEmAEBogEJEgR0cnVlGIQHogEKEgVmYWxzZRjnB7IBuwEI6AcQ6AcasgFUaGUgbGVnYWN5IGNsb3NlZCBlbnVtIGJlaGF2aW9yIGluIEphdmEgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgU2VlIGh0dHA6Ly9wcm90b2J1Zi5kZXYvcHJvZ3JhbW1pbmctZ3VpZGVzL2VudW0vI2phdmEgZm9yIG1vcmUgaW5mb3JtYXRpb24uEp8CCg91dGY4X3ZhbGlkYXRpb24YAiABKA4yHy5wYi5KYXZhRmVhdHVyZXMuVXRmOFZhbGlkYXRpb25C5AGIAQGYAQSYAQGiAQwSB0RFRkFVTFQYhAeyAcgBCOgHEOkHGr8BVGhlIEphdmEtc3BlY2lmaWMgdXRmOCB2YWxpZGF0aW9uIGZlYXR1cmUgaXMgZGVwcmVjYXRlZCBhbmQgaXMgc2NoZWR1bGVkIHRvIGJlIHJlbW92ZWQgaW4gZWRpdGlvbiAyMDI1LiAgVXRmOCB2YWxpZGF0aW9uIGJlaGF2aW9yIHNob3VsZCB1c2UgdGhlIGdsb2JhbCBjcm9zcy1sYW5ndWFnZSB1dGY4X3ZhbGlkYXRpb24gZmVhdHVyZS4SUQofdXNlX29sZF9vdXRlcl9jbGFzc25hbWVfZGVmYXVsdBgEIAEoCEIoiAEBmAEBogEJEgR0cnVlGIQHogEKEgVmYWxzZRjpB7IBBgjpByDpByJGCg5VdGY4VmFsaWRhdGlvbhIbChdVVEY4X1ZBTElEQVRJT05fVU5LTk9XThAAEgsKB0RFRkFVTFQQARIKCgZWRVJJRlkQAjpCCgRqYXZhEhsuZ29vZ2xlLnByb3RvYnVmLkZlYXR1cmVTZXQY6QcgASgLMhAucGIuSmF2YUZlYXR1cmVzUgRqYXZhQigKE2NvbS5nb29nbGUucHJvdG9idWZCEUphdmFGZWF0dXJlc1Byb3Rv", [file_google_protobuf_descriptor]);
23
+ /**
24
+ * Describes the message pb.JavaFeatures.
25
+ * Use `create(JavaFeaturesSchema)` to create a new message.
26
+ */
27
+ export const JavaFeaturesSchema = /*@__PURE__*/ messageDesc(file_google_protobuf_java_features, 0);
28
+ /**
29
+ * The UTF8 validation strategy to use. See go/editions-utf8-validation for
30
+ * more information on this feature.
31
+ *
32
+ * @generated from enum pb.JavaFeatures.Utf8Validation
33
+ */
34
+ export var JavaFeatures_Utf8Validation;
35
+ (function (JavaFeatures_Utf8Validation) {
36
+ /**
37
+ * Invalid default, which should never be used.
38
+ *
39
+ * @generated from enum value: UTF8_VALIDATION_UNKNOWN = 0;
40
+ */
41
+ JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
42
+ /**
43
+ * Respect the UTF8 validation behavior specified by the global
44
+ * utf8_validation feature.
45
+ *
46
+ * @generated from enum value: DEFAULT = 1;
47
+ */
48
+ JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["DEFAULT"] = 1] = "DEFAULT";
49
+ /**
50
+ * Verifies UTF8 validity overriding the global utf8_validation
51
+ * feature. This represents the legacy java_string_check_utf8 option.
52
+ *
53
+ * @generated from enum value: VERIFY = 2;
54
+ */
55
+ JavaFeatures_Utf8Validation[JavaFeatures_Utf8Validation["VERIFY"] = 2] = "VERIFY";
56
+ })(JavaFeatures_Utf8Validation || (JavaFeatures_Utf8Validation = {}));
57
+ /**
58
+ * Describes the enum pb.JavaFeatures.Utf8Validation.
59
+ */
60
+ export const JavaFeatures_Utf8ValidationSchema = /*@__PURE__*/ enumDesc(file_google_protobuf_java_features, 0, 0);
61
+ /**
62
+ * @generated from extension: optional pb.JavaFeatures java = 1001;
63
+ */
64
+ export const java = /*@__PURE__*/ extDesc(file_google_protobuf_java_features, 0);
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/source_context.proto.
@@ -38,4 +38,6 @@ export type SourceContextJson = {
38
38
  * Describes the message google.protobuf.SourceContext.
39
39
  * Use `create(SourceContextSchema)` to create a new message.
40
40
  */
41
- export declare const SourceContextSchema: GenMessage<SourceContext, SourceContextJson>;
41
+ export declare const SourceContextSchema: GenMessage<SourceContext, {
42
+ jsonType: SourceContextJson;
43
+ }>;
@@ -11,8 +11,8 @@
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { fileDesc } from "../../../../codegenv1/file.js";
15
- import { messageDesc } from "../../../../codegenv1/message.js";
14
+ import { fileDesc } from "../../../../codegenv2/file.js";
15
+ import { messageDesc } from "../../../../codegenv2/message.js";
16
16
  /**
17
17
  * Describes the file google/protobuf/source_context.proto.
18
18
  */
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  import type { JsonObject, JsonValue } from "../../../../json-value.js";
4
4
  /**
@@ -44,7 +44,9 @@ export type StructJson = JsonObject;
44
44
  * Describes the message google.protobuf.Struct.
45
45
  * Use `create(StructSchema)` to create a new message.
46
46
  */
47
- export declare const StructSchema: GenMessage<Struct, StructJson>;
47
+ export declare const StructSchema: GenMessage<Struct, {
48
+ jsonType: StructJson;
49
+ }>;
48
50
  /**
49
51
  * `Value` represents a dynamically typed value which can be either
50
52
  * null, a number, a string, a boolean, a recursive struct value, or a
@@ -129,7 +131,9 @@ export type ValueJson = JsonValue;
129
131
  * Describes the message google.protobuf.Value.
130
132
  * Use `create(ValueSchema)` to create a new message.
131
133
  */
132
- export declare const ValueSchema: GenMessage<Value, ValueJson>;
134
+ export declare const ValueSchema: GenMessage<Value, {
135
+ jsonType: ValueJson;
136
+ }>;
133
137
  /**
134
138
  * `ListValue` is a wrapper around a repeated field of values.
135
139
  *
@@ -157,7 +161,9 @@ export type ListValueJson = JsonValue[];
157
161
  * Describes the message google.protobuf.ListValue.
158
162
  * Use `create(ListValueSchema)` to create a new message.
159
163
  */
160
- export declare const ListValueSchema: GenMessage<ListValue, ListValueJson>;
164
+ export declare const ListValueSchema: GenMessage<ListValue, {
165
+ jsonType: ListValueJson;
166
+ }>;
161
167
  /**
162
168
  * `NullValue` is a singleton enumeration to represent the null value for the
163
169
  * `Value` type union.
@@ -11,9 +11,9 @@
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { fileDesc } from "../../../../codegenv1/file.js";
15
- import { messageDesc } from "../../../../codegenv1/message.js";
16
- import { enumDesc } from "../../../../codegenv1/enum.js";
14
+ import { fileDesc } from "../../../../codegenv2/file.js";
15
+ import { messageDesc } from "../../../../codegenv2/message.js";
16
+ import { enumDesc } from "../../../../codegenv2/enum.js";
17
17
  /**
18
18
  * Describes the file google/protobuf/struct.proto.
19
19
  */
@@ -1,4 +1,4 @@
1
- import type { GenFile, GenMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenFile, GenMessage } from "../../../../codegenv2/types.js";
2
2
  import type { Message } from "../../../../types.js";
3
3
  /**
4
4
  * Describes the file google/protobuf/timestamp.proto.
@@ -216,4 +216,6 @@ export type TimestampJson = string;
216
216
  * Describes the message google.protobuf.Timestamp.
217
217
  * Use `create(TimestampSchema)` to create a new message.
218
218
  */
219
- export declare const TimestampSchema: GenMessage<Timestamp, TimestampJson>;
219
+ export declare const TimestampSchema: GenMessage<Timestamp, {
220
+ jsonType: TimestampJson;
221
+ }>;
@@ -11,8 +11,8 @@
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { fileDesc } from "../../../../codegenv1/file.js";
15
- import { messageDesc } from "../../../../codegenv1/message.js";
14
+ import { fileDesc } from "../../../../codegenv2/file.js";
15
+ import { messageDesc } from "../../../../codegenv2/message.js";
16
16
  /**
17
17
  * Describes the file google/protobuf/timestamp.proto.
18
18
  */
@@ -1,4 +1,4 @@
1
- import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv1/types.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "../../../../codegenv2/types.js";
2
2
  import type { Any, AnyJson } from "./any_pb.js";
3
3
  import type { SourceContext, SourceContextJson } from "./source_context_pb.js";
4
4
  import type { Message } from "../../../../types.js";
@@ -108,7 +108,9 @@ export type TypeJson = {
108
108
  * Describes the message google.protobuf.Type.
109
109
  * Use `create(TypeSchema)` to create a new message.
110
110
  */
111
- export declare const TypeSchema: GenMessage<Type, TypeJson>;
111
+ export declare const TypeSchema: GenMessage<Type, {
112
+ jsonType: TypeJson;
113
+ }>;
112
114
  /**
113
115
  * A single field of a message type.
114
116
  *
@@ -251,7 +253,9 @@ export type FieldJson = {
251
253
  * Describes the message google.protobuf.Field.
252
254
  * Use `create(FieldSchema)` to create a new message.
253
255
  */
254
- export declare const FieldSchema: GenMessage<Field, FieldJson>;
256
+ export declare const FieldSchema: GenMessage<Field, {
257
+ jsonType: FieldJson;
258
+ }>;
255
259
  /**
256
260
  * Basic field types.
257
261
  *
@@ -514,7 +518,9 @@ export type EnumJson = {
514
518
  * Describes the message google.protobuf.Enum.
515
519
  * Use `create(EnumSchema)` to create a new message.
516
520
  */
517
- export declare const EnumSchema: GenMessage<Enum, EnumJson>;
521
+ export declare const EnumSchema: GenMessage<Enum, {
522
+ jsonType: EnumJson;
523
+ }>;
518
524
  /**
519
525
  * Enum value definition.
520
526
  *
@@ -569,7 +575,9 @@ export type EnumValueJson = {
569
575
  * Describes the message google.protobuf.EnumValue.
570
576
  * Use `create(EnumValueSchema)` to create a new message.
571
577
  */
572
- export declare const EnumValueSchema: GenMessage<EnumValue, EnumValueJson>;
578
+ export declare const EnumValueSchema: GenMessage<EnumValue, {
579
+ jsonType: EnumValueJson;
580
+ }>;
573
581
  /**
574
582
  * A protocol buffer option, which can be attached to a message, field,
575
583
  * enumeration, etc.
@@ -626,7 +634,9 @@ export type OptionJson = {
626
634
  * Describes the message google.protobuf.Option.
627
635
  * Use `create(OptionSchema)` to create a new message.
628
636
  */
629
- export declare const OptionSchema: GenMessage<Option, OptionJson>;
637
+ export declare const OptionSchema: GenMessage<Option, {
638
+ jsonType: OptionJson;
639
+ }>;
630
640
  /**
631
641
  * The syntax in which a protocol buffer element is defined.
632
642
  *
@@ -11,11 +11,11 @@
11
11
  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
- import { fileDesc } from "../../../../codegenv1/file.js";
14
+ import { fileDesc } from "../../../../codegenv2/file.js";
15
15
  import { file_google_protobuf_any } from "./any_pb.js";
16
16
  import { file_google_protobuf_source_context } from "./source_context_pb.js";
17
- import { messageDesc } from "../../../../codegenv1/message.js";
18
- import { enumDesc } from "../../../../codegenv1/enum.js";
17
+ import { messageDesc } from "../../../../codegenv2/message.js";
18
+ import { enumDesc } from "../../../../codegenv2/enum.js";
19
19
  /**
20
20
  * Describes the file google/protobuf/type.proto.
21
21
  */