@bufbuild/protobuf 2.2.2 → 2.2.4

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 (129) hide show
  1. package/dist/cjs/clone.js +1 -1
  2. package/dist/cjs/codegenv1/boot.js +1 -1
  3. package/dist/cjs/codegenv1/embed.js +1 -1
  4. package/dist/cjs/codegenv1/enum.js +1 -1
  5. package/dist/cjs/codegenv1/extension.js +1 -1
  6. package/dist/cjs/codegenv1/file.js +1 -1
  7. package/dist/cjs/codegenv1/index.js +1 -1
  8. package/dist/cjs/codegenv1/message.js +1 -1
  9. package/dist/cjs/codegenv1/restore-json-names.js +1 -1
  10. package/dist/cjs/codegenv1/scalar.js +1 -1
  11. package/dist/cjs/codegenv1/service.js +1 -1
  12. package/dist/cjs/codegenv1/symbols.js +1 -1
  13. package/dist/cjs/codegenv1/types.js +1 -1
  14. package/dist/cjs/create.js +1 -1
  15. package/dist/cjs/descriptors.js +1 -1
  16. package/dist/cjs/equals.d.ts +34 -2
  17. package/dist/cjs/equals.js +104 -26
  18. package/dist/cjs/extensions.js +1 -1
  19. package/dist/cjs/fields.js +1 -1
  20. package/dist/cjs/from-binary.js +1 -1
  21. package/dist/cjs/from-json.js +2 -2
  22. package/dist/cjs/index.js +1 -1
  23. package/dist/cjs/is-message.js +1 -1
  24. package/dist/cjs/json-value.js +1 -1
  25. package/dist/cjs/proto-int64.js +1 -1
  26. package/dist/cjs/reflect/error.js +1 -1
  27. package/dist/cjs/reflect/guard.js +1 -1
  28. package/dist/cjs/reflect/index.js +1 -1
  29. package/dist/cjs/reflect/names.js +1 -1
  30. package/dist/cjs/reflect/nested-types.js +1 -1
  31. package/dist/cjs/reflect/reflect-check.js +23 -23
  32. package/dist/cjs/reflect/reflect-types.js +1 -1
  33. package/dist/cjs/reflect/reflect.js +1 -1
  34. package/dist/cjs/reflect/scalar.js +1 -1
  35. package/dist/cjs/reflect/unsafe.js +1 -1
  36. package/dist/cjs/registry.js +5 -2
  37. package/dist/cjs/to-binary.js +63 -55
  38. package/dist/cjs/to-json.js +1 -1
  39. package/dist/cjs/types.js +1 -1
  40. package/dist/cjs/wire/base64-encoding.js +1 -1
  41. package/dist/cjs/wire/binary-encoding.js +1 -1
  42. package/dist/cjs/wire/index.js +1 -1
  43. package/dist/cjs/wire/size-delimited.js +2 -2
  44. package/dist/cjs/wire/text-encoding.js +1 -1
  45. package/dist/cjs/wire/text-format.js +1 -1
  46. package/dist/cjs/wkt/any.js +3 -3
  47. package/dist/cjs/wkt/gen/google/protobuf/any_pb.js +1 -1
  48. package/dist/cjs/wkt/gen/google/protobuf/api_pb.d.ts +2 -2
  49. package/dist/cjs/wkt/gen/google/protobuf/api_pb.js +1 -1
  50. package/dist/cjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +1 -1
  51. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.d.ts +96 -9
  52. package/dist/cjs/wkt/gen/google/protobuf/descriptor_pb.js +27 -8
  53. package/dist/cjs/wkt/gen/google/protobuf/duration_pb.js +1 -1
  54. package/dist/cjs/wkt/gen/google/protobuf/empty_pb.js +1 -1
  55. package/dist/cjs/wkt/gen/google/protobuf/field_mask_pb.js +1 -1
  56. package/dist/cjs/wkt/gen/google/protobuf/source_context_pb.js +1 -1
  57. package/dist/cjs/wkt/gen/google/protobuf/struct_pb.js +1 -1
  58. package/dist/cjs/wkt/gen/google/protobuf/timestamp_pb.js +1 -1
  59. package/dist/cjs/wkt/gen/google/protobuf/type_pb.js +1 -1
  60. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.d.ts +54 -0
  61. package/dist/cjs/wkt/gen/google/protobuf/wrappers_pb.js +1 -1
  62. package/dist/cjs/wkt/index.js +1 -1
  63. package/dist/cjs/wkt/timestamp.js +1 -1
  64. package/dist/cjs/wkt/wrappers.js +1 -1
  65. package/dist/esm/clone.js +1 -1
  66. package/dist/esm/codegenv1/boot.js +1 -1
  67. package/dist/esm/codegenv1/embed.js +1 -1
  68. package/dist/esm/codegenv1/enum.js +1 -1
  69. package/dist/esm/codegenv1/extension.js +1 -1
  70. package/dist/esm/codegenv1/file.js +1 -1
  71. package/dist/esm/codegenv1/index.js +1 -1
  72. package/dist/esm/codegenv1/message.js +1 -1
  73. package/dist/esm/codegenv1/restore-json-names.js +1 -1
  74. package/dist/esm/codegenv1/scalar.js +1 -1
  75. package/dist/esm/codegenv1/service.js +1 -1
  76. package/dist/esm/codegenv1/symbols.js +1 -1
  77. package/dist/esm/codegenv1/types.js +1 -1
  78. package/dist/esm/create.js +1 -1
  79. package/dist/esm/descriptors.js +1 -1
  80. package/dist/esm/equals.d.ts +34 -2
  81. package/dist/esm/equals.js +104 -26
  82. package/dist/esm/extensions.js +1 -1
  83. package/dist/esm/fields.js +1 -1
  84. package/dist/esm/from-binary.js +1 -1
  85. package/dist/esm/from-json.js +2 -2
  86. package/dist/esm/index.js +1 -1
  87. package/dist/esm/is-message.js +1 -1
  88. package/dist/esm/json-value.js +1 -1
  89. package/dist/esm/proto-int64.js +1 -1
  90. package/dist/esm/reflect/error.js +1 -1
  91. package/dist/esm/reflect/guard.js +1 -1
  92. package/dist/esm/reflect/index.js +1 -1
  93. package/dist/esm/reflect/names.js +1 -1
  94. package/dist/esm/reflect/nested-types.js +1 -1
  95. package/dist/esm/reflect/reflect-check.js +23 -23
  96. package/dist/esm/reflect/reflect-types.js +1 -1
  97. package/dist/esm/reflect/reflect.js +1 -1
  98. package/dist/esm/reflect/scalar.js +1 -1
  99. package/dist/esm/reflect/unsafe.js +1 -1
  100. package/dist/esm/registry.js +5 -2
  101. package/dist/esm/to-binary.js +63 -55
  102. package/dist/esm/to-json.js +1 -1
  103. package/dist/esm/types.js +1 -1
  104. package/dist/esm/wire/base64-encoding.js +1 -1
  105. package/dist/esm/wire/binary-encoding.js +1 -1
  106. package/dist/esm/wire/index.js +1 -1
  107. package/dist/esm/wire/size-delimited.js +2 -2
  108. package/dist/esm/wire/text-encoding.js +1 -1
  109. package/dist/esm/wire/text-format.js +1 -1
  110. package/dist/esm/wkt/any.js +3 -3
  111. package/dist/esm/wkt/gen/google/protobuf/any_pb.js +1 -1
  112. package/dist/esm/wkt/gen/google/protobuf/api_pb.d.ts +2 -2
  113. package/dist/esm/wkt/gen/google/protobuf/api_pb.js +1 -1
  114. package/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +1 -1
  115. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.d.ts +96 -9
  116. package/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +26 -7
  117. package/dist/esm/wkt/gen/google/protobuf/duration_pb.js +1 -1
  118. package/dist/esm/wkt/gen/google/protobuf/empty_pb.js +1 -1
  119. package/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +1 -1
  120. package/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +1 -1
  121. package/dist/esm/wkt/gen/google/protobuf/struct_pb.js +1 -1
  122. package/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +1 -1
  123. package/dist/esm/wkt/gen/google/protobuf/type_pb.js +1 -1
  124. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.d.ts +54 -0
  125. package/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +1 -1
  126. package/dist/esm/wkt/index.js +1 -1
  127. package/dist/esm/wkt/timestamp.js +1 -1
  128. package/dist/esm/wkt/wrappers.js +1 -1
  129. package/package.json +1 -1
package/dist/esm/types.js CHANGED
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ var __await = (this && this.__await) || function (v) { return this instanceof __
22
22
  var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
23
23
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
24
24
  var g = generator.apply(thisArg, _arguments || []), i, q = [];
25
- return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
25
+ return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
26
26
  function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
27
27
  function verb(n, f) { if (g[n]) { i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; if (f) i[n] = f(i[n]); } }
28
28
  function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -42,7 +42,7 @@ export function anyUnpack(any, registryOrMessageDesc) {
42
42
  const desc = registryOrMessageDesc.kind == "message"
43
43
  ? registryOrMessageDesc
44
44
  : registryOrMessageDesc.getMessage(typeUrlToName(any.typeUrl));
45
- if (!desc) {
45
+ if (!desc || !anyIs(any, desc)) {
46
46
  return undefined;
47
47
  }
48
48
  return fromBinary(desc, any.value);
@@ -51,7 +51,7 @@ export function anyUnpack(any, registryOrMessageDesc) {
51
51
  * Same as anyUnpack but unpacks into the target message.
52
52
  */
53
53
  export function anyUnpackTo(any, schema, message) {
54
- if (any.typeUrl === "") {
54
+ if (!anyIs(any, schema)) {
55
55
  return undefined;
56
56
  }
57
57
  return mergeFromBinary(schema, message, any.value);
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -318,7 +318,7 @@ export declare const MethodSchema: GenMessage<Method, MethodJson>;
318
318
  * The mixin construct implies that all methods in `AccessControl` are
319
319
  * also declared with same name and request/response types in
320
320
  * `Storage`. A documentation generator or annotation processor will
321
- * see the effective `Storage.GetAcl` method after inherting
321
+ * see the effective `Storage.GetAcl` method after inheriting
322
322
  * documentation and annotations as follows:
323
323
  *
324
324
  * service Storage {
@@ -415,7 +415,7 @@ export type Mixin = Message<"google.protobuf.Mixin"> & {
415
415
  * The mixin construct implies that all methods in `AccessControl` are
416
416
  * also declared with same name and request/response types in
417
417
  * `Storage`. A documentation generator or annotation processor will
418
- * see the effective `Storage.GetAcl` method after inherting
418
+ * see the effective `Storage.GetAcl` method after inheriting
419
419
  * documentation and annotations as follows:
420
420
  *
421
421
  * service Storage {
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -1,4 +1,4 @@
1
- // Copyright 2021-2024 Buf Technologies, Inc.
1
+ // Copyright 2021-2025 Buf Technologies, Inc.
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -106,12 +106,18 @@ export type FileDescriptorProto = Message<"google.protobuf.FileDescriptorProto">
106
106
  * The supported values are "proto2", "proto3", and "editions".
107
107
  *
108
108
  * If `edition` is present, this value must be "editions".
109
+ * WARNING: This field should only be used by protobuf plugins or special
110
+ * cases like the proto compiler. Other uses are discouraged and
111
+ * developers should rely on the protoreflect APIs for their client language.
109
112
  *
110
113
  * @generated from field: optional string syntax = 12;
111
114
  */
112
115
  syntax: string;
113
116
  /**
114
117
  * The edition of the proto file.
118
+ * WARNING: This field should only be used by protobuf plugins or special
119
+ * cases like the proto compiler. Other uses are discouraged and
120
+ * developers should rely on the protoreflect APIs for their client language.
115
121
  *
116
122
  * @generated from field: optional google.protobuf.Edition edition = 14;
117
123
  */
@@ -190,12 +196,18 @@ export type FileDescriptorProtoJson = {
190
196
  * The supported values are "proto2", "proto3", and "editions".
191
197
  *
192
198
  * If `edition` is present, this value must be "editions".
199
+ * WARNING: This field should only be used by protobuf plugins or special
200
+ * cases like the proto compiler. Other uses are discouraged and
201
+ * developers should rely on the protoreflect APIs for their client language.
193
202
  *
194
203
  * @generated from field: optional string syntax = 12;
195
204
  */
196
205
  syntax?: string;
197
206
  /**
198
207
  * The edition of the proto file.
208
+ * WARNING: This field should only be used by protobuf plugins or special
209
+ * cases like the proto compiler. Other uses are discouraged and
210
+ * developers should rely on the protoreflect APIs for their client language.
199
211
  *
200
212
  * @generated from field: optional google.protobuf.Edition edition = 14;
201
213
  */
@@ -1422,6 +1434,9 @@ export type FileOptions = Message<"google.protobuf.FileOptions"> & {
1422
1434
  rubyPackage: string;
1423
1435
  /**
1424
1436
  * Any features defined in the specific edition.
1437
+ * WARNING: This field should only be used by protobuf plugins or special
1438
+ * cases like the proto compiler. Other uses are discouraged and
1439
+ * developers should rely on the protoreflect APIs for their client language.
1425
1440
  *
1426
1441
  * @generated from field: optional google.protobuf.FeatureSet features = 50;
1427
1442
  */
@@ -1598,6 +1613,9 @@ export type FileOptionsJson = {
1598
1613
  rubyPackage?: string;
1599
1614
  /**
1600
1615
  * Any features defined in the specific edition.
1616
+ * WARNING: This field should only be used by protobuf plugins or special
1617
+ * cases like the proto compiler. Other uses are discouraged and
1618
+ * developers should rely on the protoreflect APIs for their client language.
1601
1619
  *
1602
1620
  * @generated from field: optional google.protobuf.FeatureSet features = 50;
1603
1621
  */
@@ -1740,6 +1758,9 @@ export type MessageOptions = Message<"google.protobuf.MessageOptions"> & {
1740
1758
  deprecatedLegacyJsonFieldConflicts: boolean;
1741
1759
  /**
1742
1760
  * Any features defined in the specific edition.
1761
+ * WARNING: This field should only be used by protobuf plugins or special
1762
+ * cases like the proto compiler. Other uses are discouraged and
1763
+ * developers should rely on the protoreflect APIs for their client language.
1743
1764
  *
1744
1765
  * @generated from field: optional google.protobuf.FeatureSet features = 12;
1745
1766
  */
@@ -1839,6 +1860,9 @@ export type MessageOptionsJson = {
1839
1860
  deprecatedLegacyJsonFieldConflicts?: boolean;
1840
1861
  /**
1841
1862
  * Any features defined in the specific edition.
1863
+ * WARNING: This field should only be used by protobuf plugins or special
1864
+ * cases like the proto compiler. Other uses are discouraged and
1865
+ * developers should rely on the protoreflect APIs for their client language.
1842
1866
  *
1843
1867
  * @generated from field: optional google.protobuf.FeatureSet features = 12;
1844
1868
  */
@@ -1970,6 +1994,9 @@ export type FieldOptions = Message<"google.protobuf.FieldOptions"> & {
1970
1994
  editionDefaults: FieldOptions_EditionDefault[];
1971
1995
  /**
1972
1996
  * Any features defined in the specific edition.
1997
+ * WARNING: This field should only be used by protobuf plugins or special
1998
+ * cases like the proto compiler. Other uses are discouraged and
1999
+ * developers should rely on the protoreflect APIs for their client language.
1973
2000
  *
1974
2001
  * @generated from field: optional google.protobuf.FeatureSet features = 21;
1975
2002
  */
@@ -2100,6 +2127,9 @@ export type FieldOptionsJson = {
2100
2127
  editionDefaults?: FieldOptions_EditionDefaultJson[];
2101
2128
  /**
2102
2129
  * Any features defined in the specific edition.
2130
+ * WARNING: This field should only be used by protobuf plugins or special
2131
+ * cases like the proto compiler. Other uses are discouraged and
2132
+ * developers should rely on the protoreflect APIs for their client language.
2103
2133
  *
2104
2134
  * @generated from field: optional google.protobuf.FeatureSet features = 21;
2105
2135
  */
@@ -2301,8 +2331,6 @@ export type FieldOptions_JSTypeJson = "JS_NORMAL" | "JS_STRING" | "JS_NUMBER";
2301
2331
  export declare const FieldOptions_JSTypeSchema: GenEnum<FieldOptions_JSType, FieldOptions_JSTypeJson>;
2302
2332
  /**
2303
2333
  * If set to RETENTION_SOURCE, the option will be omitted from the binary.
2304
- * Note: as of January 2023, support for this is in progress and does not yet
2305
- * have an effect (b/264593489).
2306
2334
  *
2307
2335
  * @generated from enum google.protobuf.FieldOptions.OptionRetention
2308
2336
  */
@@ -2322,8 +2350,6 @@ export declare enum FieldOptions_OptionRetention {
2322
2350
  }
2323
2351
  /**
2324
2352
  * If set to RETENTION_SOURCE, the option will be omitted from the binary.
2325
- * Note: as of January 2023, support for this is in progress and does not yet
2326
- * have an effect (b/264593489).
2327
2353
  *
2328
2354
  * @generated from enum google.protobuf.FieldOptions.OptionRetention
2329
2355
  */
@@ -2335,8 +2361,7 @@ export declare const FieldOptions_OptionRetentionSchema: GenEnum<FieldOptions_Op
2335
2361
  /**
2336
2362
  * This indicates the types of entities that the field may apply to when used
2337
2363
  * as an option. If it is unset, then the field may be freely used as an
2338
- * option on any kind of entity. Note: as of January 2023, support for this is
2339
- * in progress and does not yet have an effect (b/264593489).
2364
+ * option on any kind of entity.
2340
2365
  *
2341
2366
  * @generated from enum google.protobuf.FieldOptions.OptionTargetType
2342
2367
  */
@@ -2385,8 +2410,7 @@ export declare enum FieldOptions_OptionTargetType {
2385
2410
  /**
2386
2411
  * This indicates the types of entities that the field may apply to when used
2387
2412
  * as an option. If it is unset, then the field may be freely used as an
2388
- * option on any kind of entity. Note: as of January 2023, support for this is
2389
- * in progress and does not yet have an effect (b/264593489).
2413
+ * option on any kind of entity.
2390
2414
  *
2391
2415
  * @generated from enum google.protobuf.FieldOptions.OptionTargetType
2392
2416
  */
@@ -2401,6 +2425,9 @@ export declare const FieldOptions_OptionTargetTypeSchema: GenEnum<FieldOptions_O
2401
2425
  export type OneofOptions = Message<"google.protobuf.OneofOptions"> & {
2402
2426
  /**
2403
2427
  * Any features defined in the specific edition.
2428
+ * WARNING: This field should only be used by protobuf plugins or special
2429
+ * cases like the proto compiler. Other uses are discouraged and
2430
+ * developers should rely on the protoreflect APIs for their client language.
2404
2431
  *
2405
2432
  * @generated from field: optional google.protobuf.FeatureSet features = 1;
2406
2433
  */
@@ -2418,6 +2445,9 @@ export type OneofOptions = Message<"google.protobuf.OneofOptions"> & {
2418
2445
  export type OneofOptionsJson = {
2419
2446
  /**
2420
2447
  * Any features defined in the specific edition.
2448
+ * WARNING: This field should only be used by protobuf plugins or special
2449
+ * cases like the proto compiler. Other uses are discouraged and
2450
+ * developers should rely on the protoreflect APIs for their client language.
2421
2451
  *
2422
2452
  * @generated from field: optional google.protobuf.FeatureSet features = 1;
2423
2453
  */
@@ -2468,6 +2498,9 @@ export type EnumOptions = Message<"google.protobuf.EnumOptions"> & {
2468
2498
  deprecatedLegacyJsonFieldConflicts: boolean;
2469
2499
  /**
2470
2500
  * Any features defined in the specific edition.
2501
+ * WARNING: This field should only be used by protobuf plugins or special
2502
+ * cases like the proto compiler. Other uses are discouraged and
2503
+ * developers should rely on the protoreflect APIs for their client language.
2471
2504
  *
2472
2505
  * @generated from field: optional google.protobuf.FeatureSet features = 7;
2473
2506
  */
@@ -2513,6 +2546,9 @@ export type EnumOptionsJson = {
2513
2546
  deprecatedLegacyJsonFieldConflicts?: boolean;
2514
2547
  /**
2515
2548
  * Any features defined in the specific edition.
2549
+ * WARNING: This field should only be used by protobuf plugins or special
2550
+ * cases like the proto compiler. Other uses are discouraged and
2551
+ * developers should rely on the protoreflect APIs for their client language.
2516
2552
  *
2517
2553
  * @generated from field: optional google.protobuf.FeatureSet features = 7;
2518
2554
  */
@@ -2544,6 +2580,9 @@ export type EnumValueOptions = Message<"google.protobuf.EnumValueOptions"> & {
2544
2580
  deprecated: boolean;
2545
2581
  /**
2546
2582
  * Any features defined in the specific edition.
2583
+ * WARNING: This field should only be used by protobuf plugins or special
2584
+ * cases like the proto compiler. Other uses are discouraged and
2585
+ * developers should rely on the protoreflect APIs for their client language.
2547
2586
  *
2548
2587
  * @generated from field: optional google.protobuf.FeatureSet features = 2;
2549
2588
  */
@@ -2584,6 +2623,9 @@ export type EnumValueOptionsJson = {
2584
2623
  deprecated?: boolean;
2585
2624
  /**
2586
2625
  * Any features defined in the specific edition.
2626
+ * WARNING: This field should only be used by protobuf plugins or special
2627
+ * cases like the proto compiler. Other uses are discouraged and
2628
+ * developers should rely on the protoreflect APIs for their client language.
2587
2629
  *
2588
2630
  * @generated from field: optional google.protobuf.FeatureSet features = 2;
2589
2631
  */
@@ -2620,6 +2662,9 @@ export declare const EnumValueOptionsSchema: GenMessage<EnumValueOptions, EnumVa
2620
2662
  export type ServiceOptions = Message<"google.protobuf.ServiceOptions"> & {
2621
2663
  /**
2622
2664
  * Any features defined in the specific edition.
2665
+ * WARNING: This field should only be used by protobuf plugins or special
2666
+ * cases like the proto compiler. Other uses are discouraged and
2667
+ * developers should rely on the protoreflect APIs for their client language.
2623
2668
  *
2624
2669
  * @generated from field: optional google.protobuf.FeatureSet features = 34;
2625
2670
  */
@@ -2646,6 +2691,9 @@ export type ServiceOptions = Message<"google.protobuf.ServiceOptions"> & {
2646
2691
  export type ServiceOptionsJson = {
2647
2692
  /**
2648
2693
  * Any features defined in the specific edition.
2694
+ * WARNING: This field should only be used by protobuf plugins or special
2695
+ * cases like the proto compiler. Other uses are discouraged and
2696
+ * developers should rely on the protoreflect APIs for their client language.
2649
2697
  *
2650
2698
  * @generated from field: optional google.protobuf.FeatureSet features = 34;
2651
2699
  */
@@ -2690,6 +2738,9 @@ export type MethodOptions = Message<"google.protobuf.MethodOptions"> & {
2690
2738
  idempotencyLevel: MethodOptions_IdempotencyLevel;
2691
2739
  /**
2692
2740
  * Any features defined in the specific edition.
2741
+ * WARNING: This field should only be used by protobuf plugins or special
2742
+ * cases like the proto compiler. Other uses are discouraged and
2743
+ * developers should rely on the protoreflect APIs for their client language.
2693
2744
  *
2694
2745
  * @generated from field: optional google.protobuf.FeatureSet features = 35;
2695
2746
  */
@@ -2720,6 +2771,9 @@ export type MethodOptionsJson = {
2720
2771
  idempotencyLevel?: MethodOptions_IdempotencyLevelJson;
2721
2772
  /**
2722
2773
  * Any features defined in the specific edition.
2774
+ * WARNING: This field should only be used by protobuf plugins or special
2775
+ * cases like the proto compiler. Other uses are discouraged and
2776
+ * developers should rely on the protoreflect APIs for their client language.
2723
2777
  *
2724
2778
  * @generated from field: optional google.protobuf.FeatureSet features = 35;
2725
2779
  */
@@ -2942,6 +2996,10 @@ export type FeatureSet = Message<"google.protobuf.FeatureSet"> & {
2942
2996
  * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
2943
2997
  */
2944
2998
  jsonFormat: FeatureSet_JsonFormat;
2999
+ /**
3000
+ * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7;
3001
+ */
3002
+ enforceNamingStyle: FeatureSet_EnforceNamingStyle;
2945
3003
  };
2946
3004
  /**
2947
3005
  * TODO Enums in C++ gencode (and potentially other languages) are
@@ -2978,6 +3036,10 @@ export type FeatureSetJson = {
2978
3036
  * @generated from field: optional google.protobuf.FeatureSet.JsonFormat json_format = 6;
2979
3037
  */
2980
3038
  jsonFormat?: FeatureSet_JsonFormatJson;
3039
+ /**
3040
+ * @generated from field: optional google.protobuf.FeatureSet.EnforceNamingStyle enforce_naming_style = 7;
3041
+ */
3042
+ enforceNamingStyle?: FeatureSet_EnforceNamingStyleJson;
2981
3043
  };
2982
3044
  /**
2983
3045
  * Describes the message google.protobuf.FeatureSet.
@@ -3138,6 +3200,31 @@ export type FeatureSet_JsonFormatJson = "JSON_FORMAT_UNKNOWN" | "ALLOW" | "LEGAC
3138
3200
  * Describes the enum google.protobuf.FeatureSet.JsonFormat.
3139
3201
  */
3140
3202
  export declare const FeatureSet_JsonFormatSchema: GenEnum<FeatureSet_JsonFormat, FeatureSet_JsonFormatJson>;
3203
+ /**
3204
+ * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle
3205
+ */
3206
+ export declare enum FeatureSet_EnforceNamingStyle {
3207
+ /**
3208
+ * @generated from enum value: ENFORCE_NAMING_STYLE_UNKNOWN = 0;
3209
+ */
3210
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0,
3211
+ /**
3212
+ * @generated from enum value: STYLE2024 = 1;
3213
+ */
3214
+ STYLE2024 = 1,
3215
+ /**
3216
+ * @generated from enum value: STYLE_LEGACY = 2;
3217
+ */
3218
+ STYLE_LEGACY = 2
3219
+ }
3220
+ /**
3221
+ * @generated from enum google.protobuf.FeatureSet.EnforceNamingStyle
3222
+ */
3223
+ export type FeatureSet_EnforceNamingStyleJson = "ENFORCE_NAMING_STYLE_UNKNOWN" | "STYLE2024" | "STYLE_LEGACY";
3224
+ /**
3225
+ * Describes the enum google.protobuf.FeatureSet.EnforceNamingStyle.
3226
+ */
3227
+ export declare const FeatureSet_EnforceNamingStyleSchema: GenEnum<FeatureSet_EnforceNamingStyle, FeatureSet_EnforceNamingStyleJson>;
3141
3228
  /**
3142
3229
  * A compiled specification for the defaults of a set of features. These
3143
3230
  * messages are generated from FeatureSet extensions and can be used to seed
@@ -3783,7 +3870,7 @@ export declare enum Edition {
3783
3870
  EDITION_2024 = 1001,
3784
3871
  /**
3785
3872
  * Placeholder editions for testing feature resolution. These should not be
3786
- * used or relyed on outside of tests.
3873
+ * used or relied on outside of tests.
3787
3874
  *
3788
3875
  * @generated from enum value: EDITION_1_TEST_ONLY = 1;
3789
3876
  */