@fatehan/tsrp 1.5.3 → 1.5.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 (76) hide show
  1. package/dist/fatehan/activities/workflow.d.ts +8 -0
  2. package/dist/fatehan/activities/workflow.d.ts.map +1 -1
  3. package/dist/fatehan/activities/workflow.js +66 -3
  4. package/dist/fatehan/apis/client.d.ts +1 -1
  5. package/dist/fatehan/apis/client.js +3 -3
  6. package/dist/fatehan/areas/area.js +2 -2
  7. package/dist/fatehan/devices/devices.js +2 -2
  8. package/dist/fatehan/devices/maintenance.js +2 -2
  9. package/dist/fatehan/financial/financial.js +2 -2
  10. package/dist/fatehan/google/protobuf/descriptor.d.ts +470 -39
  11. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
  12. package/dist/fatehan/google/protobuf/descriptor.js +1070 -57
  13. package/dist/fatehan/google/protobuf/duration.js +2 -2
  14. package/dist/fatehan/google/protobuf/field_mask.d.ts +16 -18
  15. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
  16. package/dist/fatehan/google/protobuf/field_mask.js +2 -2
  17. package/dist/fatehan/google/protobuf/timestamp.d.ts +10 -9
  18. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
  19. package/dist/fatehan/google/protobuf/timestamp.js +2 -2
  20. package/dist/fatehan/identities/authentication.d.ts +82 -6
  21. package/dist/fatehan/identities/authentication.d.ts.map +1 -1
  22. package/dist/fatehan/identities/authentication.js +575 -47
  23. package/dist/fatehan/identities/identities.d.ts +13 -1
  24. package/dist/fatehan/identities/identities.d.ts.map +1 -1
  25. package/dist/fatehan/identities/identities.js +15 -3
  26. package/dist/fatehan/models/fusion.js +2 -2
  27. package/dist/fatehan/models/models.js +2 -2
  28. package/dist/fatehan/notifies/notify.js +2 -2
  29. package/dist/fatehan/packets/{messages.d.ts → commands.d.ts} +58 -1
  30. package/dist/fatehan/packets/commands.d.ts.map +1 -0
  31. package/dist/fatehan/packets/{messages.js → commands.js} +588 -3
  32. package/dist/fatehan/packets/dataModel.d.ts +188 -127
  33. package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
  34. package/dist/fatehan/packets/dataModel.js +1641 -1005
  35. package/dist/fatehan/packets/dataModule.js +2 -2
  36. package/dist/fatehan/packets/forge.d.ts +117 -0
  37. package/dist/fatehan/packets/forge.d.ts.map +1 -0
  38. package/dist/fatehan/packets/forge.js +1079 -0
  39. package/dist/fatehan/services/api.d.ts +812 -26
  40. package/dist/fatehan/services/api.d.ts.map +1 -1
  41. package/dist/fatehan/services/api.js +8438 -244
  42. package/dist/fatehan/services/repositories.js +2 -2
  43. package/dist/fatehan/stream/stream.d.ts +224 -0
  44. package/dist/fatehan/stream/stream.d.ts.map +1 -0
  45. package/dist/fatehan/stream/stream.js +1416 -0
  46. package/dist/fatehan/trips/trip.d.ts +159 -159
  47. package/dist/fatehan/trips/trip.d.ts.map +1 -1
  48. package/dist/fatehan/trips/trip.js +169 -169
  49. package/dist/fatehan/utils/buf/validate/validate.js +2 -2
  50. package/dist/services.d.ts +65 -0
  51. package/dist/services.d.ts.map +1 -0
  52. package/dist/services.js +205 -0
  53. package/package.json +12 -12
  54. package/dist/api.d.ts +0 -36
  55. package/dist/api.d.ts.map +0 -1
  56. package/dist/api.js +0 -146
  57. package/dist/fatehan/activities/camera.d.ts +0 -95
  58. package/dist/fatehan/activities/camera.d.ts.map +0 -1
  59. package/dist/fatehan/activities/camera.js +0 -811
  60. package/dist/fatehan/google/protobuf/any.d.ts +0 -146
  61. package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
  62. package/dist/fatehan/google/protobuf/any.js +0 -104
  63. package/dist/fatehan/google/status.d.ts +0 -53
  64. package/dist/fatehan/google/status.d.ts.map +0 -1
  65. package/dist/fatehan/google/status.js +0 -95
  66. package/dist/fatehan/packets/messages.d.ts.map +0 -1
  67. package/dist/fatehan/reports/report.d.ts +0 -830
  68. package/dist/fatehan/reports/report.d.ts.map +0 -1
  69. package/dist/fatehan/reports/report.js +0 -8380
  70. package/dist/index.d.ts +0 -2
  71. package/dist/index.d.ts.map +0 -1
  72. package/dist/index.js +0 -1
  73. package/dist/report.d.ts +0 -29
  74. package/dist/report.d.ts.map +0 -1
  75. package/dist/report.js +0 -139
  76. package/readme.md +0 -26
@@ -1,12 +1,78 @@
1
1
  // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
2
  // versions:
3
- // protoc-gen-ts_proto v2.10.1
4
- // protoc v3.21.12
3
+ // protoc-gen-ts_proto v2.11.6
4
+ // protoc v7.34.1
5
5
  // source: google/protobuf/descriptor.proto
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import Long from "long";
9
9
  export const protobufPackage = "google.protobuf";
10
+ /** The full set of known editions. */
11
+ export var Edition;
12
+ (function (Edition) {
13
+ /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
14
+ Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
15
+ /**
16
+ * EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature
17
+ * was first introduced. This is effectively an "infinite past".
18
+ */
19
+ Edition[Edition["EDITION_LEGACY"] = 900] = "EDITION_LEGACY";
20
+ /**
21
+ * EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
22
+ * distinct editions. These can't be used to specify the edition of proto
23
+ * files, but feature definitions must supply proto2/proto3 defaults for
24
+ * backwards compatibility.
25
+ */
26
+ Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
27
+ Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
28
+ /**
29
+ * EDITION_2023 - Editions that have been released. The specific values are arbitrary and
30
+ * should not be depended on, but they will always be time-ordered for easy
31
+ * comparison.
32
+ */
33
+ Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
34
+ Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024";
35
+ /** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
36
+ Edition[Edition["EDITION_UNSTABLE"] = 9999] = "EDITION_UNSTABLE";
37
+ /**
38
+ * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
39
+ * used or relied on outside of tests.
40
+ */
41
+ Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";
42
+ Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";
43
+ Edition[Edition["EDITION_99997_TEST_ONLY"] = 99997] = "EDITION_99997_TEST_ONLY";
44
+ Edition[Edition["EDITION_99998_TEST_ONLY"] = 99998] = "EDITION_99998_TEST_ONLY";
45
+ Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
46
+ /**
47
+ * EDITION_MAX - Placeholder for specifying unbounded edition support. This should only
48
+ * ever be used by plugins that can expect to never require any changes to
49
+ * support a new edition.
50
+ */
51
+ Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX";
52
+ Edition[Edition["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
53
+ })(Edition || (Edition = {}));
54
+ /**
55
+ * Describes the 'visibility' of a symbol with respect to the proto import
56
+ * system. Symbols can only be imported when the visibility rules do not prevent
57
+ * it (ex: local symbols cannot be imported). Visibility modifiers can only set
58
+ * on `message` and `enum` as they are the only types available to be referenced
59
+ * from other files.
60
+ */
61
+ export var SymbolVisibility;
62
+ (function (SymbolVisibility) {
63
+ SymbolVisibility[SymbolVisibility["VISIBILITY_UNSET"] = 0] = "VISIBILITY_UNSET";
64
+ SymbolVisibility[SymbolVisibility["VISIBILITY_LOCAL"] = 1] = "VISIBILITY_LOCAL";
65
+ SymbolVisibility[SymbolVisibility["VISIBILITY_EXPORT"] = 2] = "VISIBILITY_EXPORT";
66
+ SymbolVisibility[SymbolVisibility["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
67
+ })(SymbolVisibility || (SymbolVisibility = {}));
68
+ /** The verification state of the extension range. */
69
+ export var ExtensionRangeOptions_VerificationState;
70
+ (function (ExtensionRangeOptions_VerificationState) {
71
+ /** DECLARATION - All the extensions of the range must be declared. */
72
+ ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["DECLARATION"] = 0] = "DECLARATION";
73
+ ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNVERIFIED"] = 1] = "UNVERIFIED";
74
+ ExtensionRangeOptions_VerificationState[ExtensionRangeOptions_VerificationState["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
75
+ })(ExtensionRangeOptions_VerificationState || (ExtensionRangeOptions_VerificationState = {}));
10
76
  export var FieldDescriptorProto_Type;
11
77
  (function (FieldDescriptorProto_Type) {
12
78
  /**
@@ -32,9 +98,10 @@ export var FieldDescriptorProto_Type;
32
98
  FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_STRING"] = 9] = "TYPE_STRING";
33
99
  /**
34
100
  * TYPE_GROUP - Tag-delimited aggregate.
35
- * Group type is deprecated and not supported in proto3. However, Proto3
101
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
36
102
  * implementations should still be able to parse the group wire format and
37
- * treat group fields as unknown fields.
103
+ * treat group fields as unknown fields. In Editions, the group wire format
104
+ * can be enabled via the `message_encoding` feature.
38
105
  */
39
106
  FieldDescriptorProto_Type[FieldDescriptorProto_Type["TYPE_GROUP"] = 10] = "TYPE_GROUP";
40
107
  /** TYPE_MESSAGE - Length-delimited aggregate. */
@@ -55,8 +122,13 @@ export var FieldDescriptorProto_Label;
55
122
  (function (FieldDescriptorProto_Label) {
56
123
  /** LABEL_OPTIONAL - 0 is reserved for errors */
57
124
  FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_OPTIONAL"] = 1] = "LABEL_OPTIONAL";
58
- FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
59
125
  FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REPEATED"] = 3] = "LABEL_REPEATED";
126
+ /**
127
+ * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
128
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
129
+ * can be used to get this behavior.
130
+ */
131
+ FieldDescriptorProto_Label[FieldDescriptorProto_Label["LABEL_REQUIRED"] = 2] = "LABEL_REQUIRED";
60
132
  FieldDescriptorProto_Label[FieldDescriptorProto_Label["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
61
133
  })(FieldDescriptorProto_Label || (FieldDescriptorProto_Label = {}));
62
134
  /** Generated classes can be optimized for speed or code size. */
@@ -74,6 +146,14 @@ export var FieldOptions_CType;
74
146
  (function (FieldOptions_CType) {
75
147
  /** STRING - Default mode. */
76
148
  FieldOptions_CType[FieldOptions_CType["STRING"] = 0] = "STRING";
149
+ /**
150
+ * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
151
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
152
+ * instead of a string. For very large strings, this may reduce memory
153
+ * fragmentation. It may also allow better performance when parsing from a
154
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
155
+ * alias the original buffer.
156
+ */
77
157
  FieldOptions_CType[FieldOptions_CType["CORD"] = 1] = "CORD";
78
158
  FieldOptions_CType[FieldOptions_CType["STRING_PIECE"] = 2] = "STRING_PIECE";
79
159
  FieldOptions_CType[FieldOptions_CType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
@@ -88,6 +168,33 @@ export var FieldOptions_JSType;
88
168
  FieldOptions_JSType[FieldOptions_JSType["JS_NUMBER"] = 2] = "JS_NUMBER";
89
169
  FieldOptions_JSType[FieldOptions_JSType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
90
170
  })(FieldOptions_JSType || (FieldOptions_JSType = {}));
171
+ /** If set to RETENTION_SOURCE, the option will be omitted from the binary. */
172
+ export var FieldOptions_OptionRetention;
173
+ (function (FieldOptions_OptionRetention) {
174
+ FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_UNKNOWN"] = 0] = "RETENTION_UNKNOWN";
175
+ FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_RUNTIME"] = 1] = "RETENTION_RUNTIME";
176
+ FieldOptions_OptionRetention[FieldOptions_OptionRetention["RETENTION_SOURCE"] = 2] = "RETENTION_SOURCE";
177
+ FieldOptions_OptionRetention[FieldOptions_OptionRetention["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
178
+ })(FieldOptions_OptionRetention || (FieldOptions_OptionRetention = {}));
179
+ /**
180
+ * This indicates the types of entities that the field may apply to when used
181
+ * as an option. If it is unset, then the field may be freely used as an
182
+ * option on any kind of entity.
183
+ */
184
+ export var FieldOptions_OptionTargetType;
185
+ (function (FieldOptions_OptionTargetType) {
186
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_UNKNOWN"] = 0] = "TARGET_TYPE_UNKNOWN";
187
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FILE"] = 1] = "TARGET_TYPE_FILE";
188
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_EXTENSION_RANGE"] = 2] = "TARGET_TYPE_EXTENSION_RANGE";
189
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_MESSAGE"] = 3] = "TARGET_TYPE_MESSAGE";
190
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_FIELD"] = 4] = "TARGET_TYPE_FIELD";
191
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ONEOF"] = 5] = "TARGET_TYPE_ONEOF";
192
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM"] = 6] = "TARGET_TYPE_ENUM";
193
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_ENUM_ENTRY"] = 7] = "TARGET_TYPE_ENUM_ENTRY";
194
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_SERVICE"] = 8] = "TARGET_TYPE_SERVICE";
195
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["TARGET_TYPE_METHOD"] = 9] = "TARGET_TYPE_METHOD";
196
+ FieldOptions_OptionTargetType[FieldOptions_OptionTargetType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
197
+ })(FieldOptions_OptionTargetType || (FieldOptions_OptionTargetType = {}));
91
198
  /**
92
199
  * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
93
200
  * or neither? HTTP based RPC implementation may choose GET verb for safe
@@ -102,6 +209,87 @@ export var MethodOptions_IdempotencyLevel;
102
209
  MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["IDEMPOTENT"] = 2] = "IDEMPOTENT";
103
210
  MethodOptions_IdempotencyLevel[MethodOptions_IdempotencyLevel["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
104
211
  })(MethodOptions_IdempotencyLevel || (MethodOptions_IdempotencyLevel = {}));
212
+ export var FeatureSet_FieldPresence;
213
+ (function (FeatureSet_FieldPresence) {
214
+ FeatureSet_FieldPresence[FeatureSet_FieldPresence["FIELD_PRESENCE_UNKNOWN"] = 0] = "FIELD_PRESENCE_UNKNOWN";
215
+ FeatureSet_FieldPresence[FeatureSet_FieldPresence["EXPLICIT"] = 1] = "EXPLICIT";
216
+ FeatureSet_FieldPresence[FeatureSet_FieldPresence["IMPLICIT"] = 2] = "IMPLICIT";
217
+ FeatureSet_FieldPresence[FeatureSet_FieldPresence["LEGACY_REQUIRED"] = 3] = "LEGACY_REQUIRED";
218
+ FeatureSet_FieldPresence[FeatureSet_FieldPresence["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
219
+ })(FeatureSet_FieldPresence || (FeatureSet_FieldPresence = {}));
220
+ export var FeatureSet_EnumType;
221
+ (function (FeatureSet_EnumType) {
222
+ FeatureSet_EnumType[FeatureSet_EnumType["ENUM_TYPE_UNKNOWN"] = 0] = "ENUM_TYPE_UNKNOWN";
223
+ FeatureSet_EnumType[FeatureSet_EnumType["OPEN"] = 1] = "OPEN";
224
+ FeatureSet_EnumType[FeatureSet_EnumType["CLOSED"] = 2] = "CLOSED";
225
+ FeatureSet_EnumType[FeatureSet_EnumType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
226
+ })(FeatureSet_EnumType || (FeatureSet_EnumType = {}));
227
+ export var FeatureSet_RepeatedFieldEncoding;
228
+ (function (FeatureSet_RepeatedFieldEncoding) {
229
+ FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["REPEATED_FIELD_ENCODING_UNKNOWN"] = 0] = "REPEATED_FIELD_ENCODING_UNKNOWN";
230
+ FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["PACKED"] = 1] = "PACKED";
231
+ FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["EXPANDED"] = 2] = "EXPANDED";
232
+ FeatureSet_RepeatedFieldEncoding[FeatureSet_RepeatedFieldEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
233
+ })(FeatureSet_RepeatedFieldEncoding || (FeatureSet_RepeatedFieldEncoding = {}));
234
+ export var FeatureSet_Utf8Validation;
235
+ (function (FeatureSet_Utf8Validation) {
236
+ FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
237
+ FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
238
+ FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE";
239
+ FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
240
+ })(FeatureSet_Utf8Validation || (FeatureSet_Utf8Validation = {}));
241
+ export var FeatureSet_MessageEncoding;
242
+ (function (FeatureSet_MessageEncoding) {
243
+ FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["MESSAGE_ENCODING_UNKNOWN"] = 0] = "MESSAGE_ENCODING_UNKNOWN";
244
+ FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["LENGTH_PREFIXED"] = 1] = "LENGTH_PREFIXED";
245
+ FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["DELIMITED"] = 2] = "DELIMITED";
246
+ FeatureSet_MessageEncoding[FeatureSet_MessageEncoding["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
247
+ })(FeatureSet_MessageEncoding || (FeatureSet_MessageEncoding = {}));
248
+ export var FeatureSet_JsonFormat;
249
+ (function (FeatureSet_JsonFormat) {
250
+ FeatureSet_JsonFormat[FeatureSet_JsonFormat["JSON_FORMAT_UNKNOWN"] = 0] = "JSON_FORMAT_UNKNOWN";
251
+ FeatureSet_JsonFormat[FeatureSet_JsonFormat["ALLOW"] = 1] = "ALLOW";
252
+ FeatureSet_JsonFormat[FeatureSet_JsonFormat["LEGACY_BEST_EFFORT"] = 2] = "LEGACY_BEST_EFFORT";
253
+ FeatureSet_JsonFormat[FeatureSet_JsonFormat["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
254
+ })(FeatureSet_JsonFormat || (FeatureSet_JsonFormat = {}));
255
+ export var FeatureSet_EnforceNamingStyle;
256
+ (function (FeatureSet_EnforceNamingStyle) {
257
+ FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["ENFORCE_NAMING_STYLE_UNKNOWN"] = 0] = "ENFORCE_NAMING_STYLE_UNKNOWN";
258
+ FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE2024"] = 1] = "STYLE2024";
259
+ FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["STYLE_LEGACY"] = 2] = "STYLE_LEGACY";
260
+ FeatureSet_EnforceNamingStyle[FeatureSet_EnforceNamingStyle["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
261
+ })(FeatureSet_EnforceNamingStyle || (FeatureSet_EnforceNamingStyle = {}));
262
+ export var FeatureSet_VisibilityFeature_DefaultSymbolVisibility;
263
+ (function (FeatureSet_VisibilityFeature_DefaultSymbolVisibility) {
264
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["DEFAULT_SYMBOL_VISIBILITY_UNKNOWN"] = 0] = "DEFAULT_SYMBOL_VISIBILITY_UNKNOWN";
265
+ /** EXPORT_ALL - Default pre-EDITION_2024, all UNSET visibility are export. */
266
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_ALL"] = 1] = "EXPORT_ALL";
267
+ /** EXPORT_TOP_LEVEL - All top-level symbols default to export, nested default to local. */
268
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["EXPORT_TOP_LEVEL"] = 2] = "EXPORT_TOP_LEVEL";
269
+ /** LOCAL_ALL - All symbols default to local. */
270
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["LOCAL_ALL"] = 3] = "LOCAL_ALL";
271
+ /**
272
+ * STRICT - All symbols local by default. Nested types cannot be exported.
273
+ * With special case caveat for message { enum {} reserved 1 to max; }
274
+ * This is the recommended setting for new protos.
275
+ */
276
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["STRICT"] = 4] = "STRICT";
277
+ FeatureSet_VisibilityFeature_DefaultSymbolVisibility[FeatureSet_VisibilityFeature_DefaultSymbolVisibility["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
278
+ })(FeatureSet_VisibilityFeature_DefaultSymbolVisibility || (FeatureSet_VisibilityFeature_DefaultSymbolVisibility = {}));
279
+ /**
280
+ * Represents the identified object's effect on the element in the original
281
+ * .proto file.
282
+ */
283
+ export var GeneratedCodeInfo_Annotation_Semantic;
284
+ (function (GeneratedCodeInfo_Annotation_Semantic) {
285
+ /** NONE - There is no effect or the effect is indescribable. */
286
+ GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["NONE"] = 0] = "NONE";
287
+ /** SET - The element is set or otherwise mutated. */
288
+ GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["SET"] = 1] = "SET";
289
+ /** ALIAS - An alias to the element is returned. */
290
+ GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["ALIAS"] = 2] = "ALIAS";
291
+ GeneratedCodeInfo_Annotation_Semantic[GeneratedCodeInfo_Annotation_Semantic["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
292
+ })(GeneratedCodeInfo_Annotation_Semantic || (GeneratedCodeInfo_Annotation_Semantic = {}));
105
293
  function createBaseFileDescriptorSet() {
106
294
  return { file: [] };
107
295
  }
@@ -150,6 +338,7 @@ function createBaseFileDescriptorProto() {
150
338
  dependency: [],
151
339
  publicDependency: [],
152
340
  weakDependency: [],
341
+ optionDependency: [],
153
342
  messageType: [],
154
343
  enumType: [],
155
344
  service: [],
@@ -157,6 +346,7 @@ function createBaseFileDescriptorProto() {
157
346
  options: undefined,
158
347
  sourceCodeInfo: undefined,
159
348
  syntax: "",
349
+ edition: 0,
160
350
  };
161
351
  }
162
352
  export const FileDescriptorProto = {
@@ -176,6 +366,9 @@ export const FileDescriptorProto = {
176
366
  for (const v of message.weakDependency) {
177
367
  writer.uint32(88).int32(v);
178
368
  }
369
+ for (const v of message.optionDependency) {
370
+ writer.uint32(122).string(v);
371
+ }
179
372
  for (const v of message.messageType) {
180
373
  DescriptorProto.encode(v, writer.uint32(34).fork()).join();
181
374
  }
@@ -197,6 +390,9 @@ export const FileDescriptorProto = {
197
390
  if (message.syntax !== undefined && message.syntax !== "") {
198
391
  writer.uint32(98).string(message.syntax);
199
392
  }
393
+ if (message.edition !== undefined && message.edition !== 0) {
394
+ writer.uint32(112).int32(message.edition);
395
+ }
200
396
  return writer;
201
397
  },
202
398
  decode(input, length) {
@@ -255,6 +451,13 @@ export const FileDescriptorProto = {
255
451
  }
256
452
  break;
257
453
  }
454
+ case 15: {
455
+ if (tag !== 122) {
456
+ break;
457
+ }
458
+ message.optionDependency.push(reader.string());
459
+ continue;
460
+ }
258
461
  case 4: {
259
462
  if (tag !== 34) {
260
463
  break;
@@ -304,6 +507,13 @@ export const FileDescriptorProto = {
304
507
  message.syntax = reader.string();
305
508
  continue;
306
509
  }
510
+ case 14: {
511
+ if (tag !== 112) {
512
+ break;
513
+ }
514
+ message.edition = reader.int32();
515
+ continue;
516
+ }
307
517
  }
308
518
  if ((tag & 7) === 4 || tag === 0) {
309
519
  break;
@@ -322,6 +532,7 @@ export const FileDescriptorProto = {
322
532
  message.dependency = object.dependency?.map((e) => e) || [];
323
533
  message.publicDependency = object.publicDependency?.map((e) => e) || [];
324
534
  message.weakDependency = object.weakDependency?.map((e) => e) || [];
535
+ message.optionDependency = object.optionDependency?.map((e) => e) || [];
325
536
  message.messageType = object.messageType?.map((e) => DescriptorProto.fromPartial(e)) || [];
326
537
  message.enumType = object.enumType?.map((e) => EnumDescriptorProto.fromPartial(e)) || [];
327
538
  message.service = object.service?.map((e) => ServiceDescriptorProto.fromPartial(e)) || [];
@@ -333,6 +544,7 @@ export const FileDescriptorProto = {
333
544
  ? SourceCodeInfo.fromPartial(object.sourceCodeInfo)
334
545
  : undefined;
335
546
  message.syntax = object.syntax ?? "";
547
+ message.edition = object.edition ?? 0;
336
548
  return message;
337
549
  },
338
550
  };
@@ -348,6 +560,7 @@ function createBaseDescriptorProto() {
348
560
  options: undefined,
349
561
  reservedRange: [],
350
562
  reservedName: [],
563
+ visibility: 0,
351
564
  };
352
565
  }
353
566
  export const DescriptorProto = {
@@ -382,6 +595,9 @@ export const DescriptorProto = {
382
595
  for (const v of message.reservedName) {
383
596
  writer.uint32(82).string(v);
384
597
  }
598
+ if (message.visibility !== undefined && message.visibility !== 0) {
599
+ writer.uint32(88).int32(message.visibility);
600
+ }
385
601
  return writer;
386
602
  },
387
603
  decode(input, length) {
@@ -461,6 +677,13 @@ export const DescriptorProto = {
461
677
  message.reservedName.push(reader.string());
462
678
  continue;
463
679
  }
680
+ case 11: {
681
+ if (tag !== 88) {
682
+ break;
683
+ }
684
+ message.visibility = reader.int32();
685
+ continue;
686
+ }
464
687
  }
465
688
  if ((tag & 7) === 4 || tag === 0) {
466
689
  break;
@@ -486,6 +709,7 @@ export const DescriptorProto = {
486
709
  : undefined;
487
710
  message.reservedRange = object.reservedRange?.map((e) => DescriptorProto_ReservedRange.fromPartial(e)) || [];
488
711
  message.reservedName = object.reservedName?.map((e) => e) || [];
712
+ message.visibility = object.visibility ?? 0;
489
713
  return message;
490
714
  },
491
715
  };
@@ -607,13 +831,22 @@ export const DescriptorProto_ReservedRange = {
607
831
  },
608
832
  };
609
833
  function createBaseExtensionRangeOptions() {
610
- return { uninterpretedOption: [] };
834
+ return { uninterpretedOption: [], declaration: [], features: undefined, verification: 1 };
611
835
  }
612
836
  export const ExtensionRangeOptions = {
613
837
  encode(message, writer = new BinaryWriter()) {
614
838
  for (const v of message.uninterpretedOption) {
615
839
  UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
616
840
  }
841
+ for (const v of message.declaration) {
842
+ ExtensionRangeOptions_Declaration.encode(v, writer.uint32(18).fork()).join();
843
+ }
844
+ if (message.features !== undefined) {
845
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).join();
846
+ }
847
+ if (message.verification !== undefined && message.verification !== 1) {
848
+ writer.uint32(24).int32(message.verification);
849
+ }
617
850
  return writer;
618
851
  },
619
852
  decode(input, length) {
@@ -630,6 +863,27 @@ export const ExtensionRangeOptions = {
630
863
  message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
631
864
  continue;
632
865
  }
866
+ case 2: {
867
+ if (tag !== 18) {
868
+ break;
869
+ }
870
+ message.declaration.push(ExtensionRangeOptions_Declaration.decode(reader, reader.uint32()));
871
+ continue;
872
+ }
873
+ case 50: {
874
+ if (tag !== 402) {
875
+ break;
876
+ }
877
+ message.features = FeatureSet.decode(reader, reader.uint32());
878
+ continue;
879
+ }
880
+ case 3: {
881
+ if (tag !== 24) {
882
+ break;
883
+ }
884
+ message.verification = reader.int32();
885
+ continue;
886
+ }
633
887
  }
634
888
  if ((tag & 7) === 4 || tag === 0) {
635
889
  break;
@@ -644,6 +898,96 @@ export const ExtensionRangeOptions = {
644
898
  fromPartial(object) {
645
899
  const message = createBaseExtensionRangeOptions();
646
900
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
901
+ message.declaration = object.declaration?.map((e) => ExtensionRangeOptions_Declaration.fromPartial(e)) || [];
902
+ message.features = (object.features !== undefined && object.features !== null)
903
+ ? FeatureSet.fromPartial(object.features)
904
+ : undefined;
905
+ message.verification = object.verification ?? 1;
906
+ return message;
907
+ },
908
+ };
909
+ function createBaseExtensionRangeOptions_Declaration() {
910
+ return { number: 0, fullName: "", type: "", reserved: false, repeated: false };
911
+ }
912
+ export const ExtensionRangeOptions_Declaration = {
913
+ encode(message, writer = new BinaryWriter()) {
914
+ if (message.number !== undefined && message.number !== 0) {
915
+ writer.uint32(8).int32(message.number);
916
+ }
917
+ if (message.fullName !== undefined && message.fullName !== "") {
918
+ writer.uint32(18).string(message.fullName);
919
+ }
920
+ if (message.type !== undefined && message.type !== "") {
921
+ writer.uint32(26).string(message.type);
922
+ }
923
+ if (message.reserved !== undefined && message.reserved !== false) {
924
+ writer.uint32(40).bool(message.reserved);
925
+ }
926
+ if (message.repeated !== undefined && message.repeated !== false) {
927
+ writer.uint32(48).bool(message.repeated);
928
+ }
929
+ return writer;
930
+ },
931
+ decode(input, length) {
932
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
933
+ const end = length === undefined ? reader.len : reader.pos + length;
934
+ const message = createBaseExtensionRangeOptions_Declaration();
935
+ while (reader.pos < end) {
936
+ const tag = reader.uint32();
937
+ switch (tag >>> 3) {
938
+ case 1: {
939
+ if (tag !== 8) {
940
+ break;
941
+ }
942
+ message.number = reader.int32();
943
+ continue;
944
+ }
945
+ case 2: {
946
+ if (tag !== 18) {
947
+ break;
948
+ }
949
+ message.fullName = reader.string();
950
+ continue;
951
+ }
952
+ case 3: {
953
+ if (tag !== 26) {
954
+ break;
955
+ }
956
+ message.type = reader.string();
957
+ continue;
958
+ }
959
+ case 5: {
960
+ if (tag !== 40) {
961
+ break;
962
+ }
963
+ message.reserved = reader.bool();
964
+ continue;
965
+ }
966
+ case 6: {
967
+ if (tag !== 48) {
968
+ break;
969
+ }
970
+ message.repeated = reader.bool();
971
+ continue;
972
+ }
973
+ }
974
+ if ((tag & 7) === 4 || tag === 0) {
975
+ break;
976
+ }
977
+ reader.skip(tag & 7);
978
+ }
979
+ return message;
980
+ },
981
+ create(base) {
982
+ return ExtensionRangeOptions_Declaration.fromPartial(base ?? {});
983
+ },
984
+ fromPartial(object) {
985
+ const message = createBaseExtensionRangeOptions_Declaration();
986
+ message.number = object.number ?? 0;
987
+ message.fullName = object.fullName ?? "";
988
+ message.type = object.type ?? "";
989
+ message.reserved = object.reserved ?? false;
990
+ message.repeated = object.repeated ?? false;
647
991
  return message;
648
992
  },
649
993
  };
@@ -867,7 +1211,7 @@ export const OneofDescriptorProto = {
867
1211
  },
868
1212
  };
869
1213
  function createBaseEnumDescriptorProto() {
870
- return { name: "", value: [], options: undefined, reservedRange: [], reservedName: [] };
1214
+ return { name: "", value: [], options: undefined, reservedRange: [], reservedName: [], visibility: 0 };
871
1215
  }
872
1216
  export const EnumDescriptorProto = {
873
1217
  encode(message, writer = new BinaryWriter()) {
@@ -886,6 +1230,9 @@ export const EnumDescriptorProto = {
886
1230
  for (const v of message.reservedName) {
887
1231
  writer.uint32(42).string(v);
888
1232
  }
1233
+ if (message.visibility !== undefined && message.visibility !== 0) {
1234
+ writer.uint32(48).int32(message.visibility);
1235
+ }
889
1236
  return writer;
890
1237
  },
891
1238
  decode(input, length) {
@@ -930,6 +1277,13 @@ export const EnumDescriptorProto = {
930
1277
  message.reservedName.push(reader.string());
931
1278
  continue;
932
1279
  }
1280
+ case 6: {
1281
+ if (tag !== 48) {
1282
+ break;
1283
+ }
1284
+ message.visibility = reader.int32();
1285
+ continue;
1286
+ }
933
1287
  }
934
1288
  if ((tag & 7) === 4 || tag === 0) {
935
1289
  break;
@@ -951,6 +1305,7 @@ export const EnumDescriptorProto = {
951
1305
  message.reservedRange = object.reservedRange?.map((e) => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) ||
952
1306
  [];
953
1307
  message.reservedName = object.reservedName?.map((e) => e) || [];
1308
+ message.visibility = object.visibility ?? 0;
954
1309
  return message;
955
1310
  },
956
1311
  };
@@ -1253,7 +1608,6 @@ function createBaseFileOptions() {
1253
1608
  ccGenericServices: false,
1254
1609
  javaGenericServices: false,
1255
1610
  pyGenericServices: false,
1256
- phpGenericServices: false,
1257
1611
  deprecated: false,
1258
1612
  ccEnableArenas: true,
1259
1613
  objcClassPrefix: "",
@@ -1263,6 +1617,7 @@ function createBaseFileOptions() {
1263
1617
  phpNamespace: "",
1264
1618
  phpMetadataNamespace: "",
1265
1619
  rubyPackage: "",
1620
+ features: undefined,
1266
1621
  uninterpretedOption: [],
1267
1622
  };
1268
1623
  }
@@ -1298,9 +1653,6 @@ export const FileOptions = {
1298
1653
  if (message.pyGenericServices !== undefined && message.pyGenericServices !== false) {
1299
1654
  writer.uint32(144).bool(message.pyGenericServices);
1300
1655
  }
1301
- if (message.phpGenericServices !== undefined && message.phpGenericServices !== false) {
1302
- writer.uint32(336).bool(message.phpGenericServices);
1303
- }
1304
1656
  if (message.deprecated !== undefined && message.deprecated !== false) {
1305
1657
  writer.uint32(184).bool(message.deprecated);
1306
1658
  }
@@ -1328,6 +1680,9 @@ export const FileOptions = {
1328
1680
  if (message.rubyPackage !== undefined && message.rubyPackage !== "") {
1329
1681
  writer.uint32(362).string(message.rubyPackage);
1330
1682
  }
1683
+ if (message.features !== undefined) {
1684
+ FeatureSet.encode(message.features, writer.uint32(402).fork()).join();
1685
+ }
1331
1686
  for (const v of message.uninterpretedOption) {
1332
1687
  UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
1333
1688
  }
@@ -1410,13 +1765,6 @@ export const FileOptions = {
1410
1765
  message.pyGenericServices = reader.bool();
1411
1766
  continue;
1412
1767
  }
1413
- case 42: {
1414
- if (tag !== 336) {
1415
- break;
1416
- }
1417
- message.phpGenericServices = reader.bool();
1418
- continue;
1419
- }
1420
1768
  case 23: {
1421
1769
  if (tag !== 184) {
1422
1770
  break;
@@ -1480,6 +1828,13 @@ export const FileOptions = {
1480
1828
  message.rubyPackage = reader.string();
1481
1829
  continue;
1482
1830
  }
1831
+ case 50: {
1832
+ if (tag !== 402) {
1833
+ break;
1834
+ }
1835
+ message.features = FeatureSet.decode(reader, reader.uint32());
1836
+ continue;
1837
+ }
1483
1838
  case 999: {
1484
1839
  if (tag !== 7994) {
1485
1840
  break;
@@ -1510,7 +1865,6 @@ export const FileOptions = {
1510
1865
  message.ccGenericServices = object.ccGenericServices ?? false;
1511
1866
  message.javaGenericServices = object.javaGenericServices ?? false;
1512
1867
  message.pyGenericServices = object.pyGenericServices ?? false;
1513
- message.phpGenericServices = object.phpGenericServices ?? false;
1514
1868
  message.deprecated = object.deprecated ?? false;
1515
1869
  message.ccEnableArenas = object.ccEnableArenas ?? true;
1516
1870
  message.objcClassPrefix = object.objcClassPrefix ?? "";
@@ -1520,6 +1874,9 @@ export const FileOptions = {
1520
1874
  message.phpNamespace = object.phpNamespace ?? "";
1521
1875
  message.phpMetadataNamespace = object.phpMetadataNamespace ?? "";
1522
1876
  message.rubyPackage = object.rubyPackage ?? "";
1877
+ message.features = (object.features !== undefined && object.features !== null)
1878
+ ? FeatureSet.fromPartial(object.features)
1879
+ : undefined;
1523
1880
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
1524
1881
  return message;
1525
1882
  },
@@ -1530,6 +1887,8 @@ function createBaseMessageOptions() {
1530
1887
  noStandardDescriptorAccessor: false,
1531
1888
  deprecated: false,
1532
1889
  mapEntry: false,
1890
+ deprecatedLegacyJsonFieldConflicts: false,
1891
+ features: undefined,
1533
1892
  uninterpretedOption: [],
1534
1893
  };
1535
1894
  }
@@ -1547,6 +1906,12 @@ export const MessageOptions = {
1547
1906
  if (message.mapEntry !== undefined && message.mapEntry !== false) {
1548
1907
  writer.uint32(56).bool(message.mapEntry);
1549
1908
  }
1909
+ if (message.deprecatedLegacyJsonFieldConflicts !== undefined && message.deprecatedLegacyJsonFieldConflicts !== false) {
1910
+ writer.uint32(88).bool(message.deprecatedLegacyJsonFieldConflicts);
1911
+ }
1912
+ if (message.features !== undefined) {
1913
+ FeatureSet.encode(message.features, writer.uint32(98).fork()).join();
1914
+ }
1550
1915
  for (const v of message.uninterpretedOption) {
1551
1916
  UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
1552
1917
  }
@@ -1587,6 +1952,20 @@ export const MessageOptions = {
1587
1952
  message.mapEntry = reader.bool();
1588
1953
  continue;
1589
1954
  }
1955
+ case 11: {
1956
+ if (tag !== 88) {
1957
+ break;
1958
+ }
1959
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
1960
+ continue;
1961
+ }
1962
+ case 12: {
1963
+ if (tag !== 98) {
1964
+ break;
1965
+ }
1966
+ message.features = FeatureSet.decode(reader, reader.uint32());
1967
+ continue;
1968
+ }
1590
1969
  case 999: {
1591
1970
  if (tag !== 7994) {
1592
1971
  break;
@@ -1611,6 +1990,10 @@ export const MessageOptions = {
1611
1990
  message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false;
1612
1991
  message.deprecated = object.deprecated ?? false;
1613
1992
  message.mapEntry = object.mapEntry ?? false;
1993
+ message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
1994
+ message.features = (object.features !== undefined && object.features !== null)
1995
+ ? FeatureSet.fromPartial(object.features)
1996
+ : undefined;
1614
1997
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
1615
1998
  return message;
1616
1999
  },
@@ -1624,6 +2007,12 @@ function createBaseFieldOptions() {
1624
2007
  unverifiedLazy: false,
1625
2008
  deprecated: false,
1626
2009
  weak: false,
2010
+ debugRedact: false,
2011
+ retention: 0,
2012
+ targets: [],
2013
+ editionDefaults: [],
2014
+ features: undefined,
2015
+ featureSupport: undefined,
1627
2016
  uninterpretedOption: [],
1628
2017
  };
1629
2018
  }
@@ -1650,6 +2039,24 @@ export const FieldOptions = {
1650
2039
  if (message.weak !== undefined && message.weak !== false) {
1651
2040
  writer.uint32(80).bool(message.weak);
1652
2041
  }
2042
+ if (message.debugRedact !== undefined && message.debugRedact !== false) {
2043
+ writer.uint32(128).bool(message.debugRedact);
2044
+ }
2045
+ if (message.retention !== undefined && message.retention !== 0) {
2046
+ writer.uint32(136).int32(message.retention);
2047
+ }
2048
+ for (const v of message.targets) {
2049
+ writer.uint32(152).int32(v);
2050
+ }
2051
+ for (const v of message.editionDefaults) {
2052
+ FieldOptions_EditionDefault.encode(v, writer.uint32(162).fork()).join();
2053
+ }
2054
+ if (message.features !== undefined) {
2055
+ FeatureSet.encode(message.features, writer.uint32(170).fork()).join();
2056
+ }
2057
+ if (message.featureSupport !== undefined) {
2058
+ FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(178).fork()).join();
2059
+ }
1653
2060
  for (const v of message.uninterpretedOption) {
1654
2061
  UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
1655
2062
  }
@@ -1711,6 +2118,55 @@ export const FieldOptions = {
1711
2118
  message.weak = reader.bool();
1712
2119
  continue;
1713
2120
  }
2121
+ case 16: {
2122
+ if (tag !== 128) {
2123
+ break;
2124
+ }
2125
+ message.debugRedact = reader.bool();
2126
+ continue;
2127
+ }
2128
+ case 17: {
2129
+ if (tag !== 136) {
2130
+ break;
2131
+ }
2132
+ message.retention = reader.int32();
2133
+ continue;
2134
+ }
2135
+ case 19: {
2136
+ if (tag === 152) {
2137
+ message.targets.push(reader.int32());
2138
+ continue;
2139
+ }
2140
+ if (tag === 154) {
2141
+ const end2 = reader.uint32() + reader.pos;
2142
+ while (reader.pos < end2) {
2143
+ message.targets.push(reader.int32());
2144
+ }
2145
+ continue;
2146
+ }
2147
+ break;
2148
+ }
2149
+ case 20: {
2150
+ if (tag !== 162) {
2151
+ break;
2152
+ }
2153
+ message.editionDefaults.push(FieldOptions_EditionDefault.decode(reader, reader.uint32()));
2154
+ continue;
2155
+ }
2156
+ case 21: {
2157
+ if (tag !== 170) {
2158
+ break;
2159
+ }
2160
+ message.features = FeatureSet.decode(reader, reader.uint32());
2161
+ continue;
2162
+ }
2163
+ case 22: {
2164
+ if (tag !== 178) {
2165
+ break;
2166
+ }
2167
+ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());
2168
+ continue;
2169
+ }
1714
2170
  case 999: {
1715
2171
  if (tag !== 7994) {
1716
2172
  break;
@@ -1738,32 +2194,52 @@ export const FieldOptions = {
1738
2194
  message.unverifiedLazy = object.unverifiedLazy ?? false;
1739
2195
  message.deprecated = object.deprecated ?? false;
1740
2196
  message.weak = object.weak ?? false;
2197
+ message.debugRedact = object.debugRedact ?? false;
2198
+ message.retention = object.retention ?? 0;
2199
+ message.targets = object.targets?.map((e) => e) || [];
2200
+ message.editionDefaults = object.editionDefaults?.map((e) => FieldOptions_EditionDefault.fromPartial(e)) || [];
2201
+ message.features = (object.features !== undefined && object.features !== null)
2202
+ ? FeatureSet.fromPartial(object.features)
2203
+ : undefined;
2204
+ message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)
2205
+ ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)
2206
+ : undefined;
1741
2207
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
1742
2208
  return message;
1743
2209
  },
1744
2210
  };
1745
- function createBaseOneofOptions() {
1746
- return { uninterpretedOption: [] };
2211
+ function createBaseFieldOptions_EditionDefault() {
2212
+ return { edition: 0, value: "" };
1747
2213
  }
1748
- export const OneofOptions = {
2214
+ export const FieldOptions_EditionDefault = {
1749
2215
  encode(message, writer = new BinaryWriter()) {
1750
- for (const v of message.uninterpretedOption) {
1751
- UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
2216
+ if (message.edition !== undefined && message.edition !== 0) {
2217
+ writer.uint32(24).int32(message.edition);
2218
+ }
2219
+ if (message.value !== undefined && message.value !== "") {
2220
+ writer.uint32(18).string(message.value);
1752
2221
  }
1753
2222
  return writer;
1754
2223
  },
1755
2224
  decode(input, length) {
1756
2225
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1757
2226
  const end = length === undefined ? reader.len : reader.pos + length;
1758
- const message = createBaseOneofOptions();
2227
+ const message = createBaseFieldOptions_EditionDefault();
1759
2228
  while (reader.pos < end) {
1760
2229
  const tag = reader.uint32();
1761
2230
  switch (tag >>> 3) {
1762
- case 999: {
1763
- if (tag !== 7994) {
2231
+ case 3: {
2232
+ if (tag !== 24) {
1764
2233
  break;
1765
2234
  }
1766
- message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2235
+ message.edition = reader.int32();
2236
+ continue;
2237
+ }
2238
+ case 2: {
2239
+ if (tag !== 18) {
2240
+ break;
2241
+ }
2242
+ message.value = reader.string();
1767
2243
  continue;
1768
2244
  }
1769
2245
  }
@@ -1775,56 +2251,77 @@ export const OneofOptions = {
1775
2251
  return message;
1776
2252
  },
1777
2253
  create(base) {
1778
- return OneofOptions.fromPartial(base ?? {});
2254
+ return FieldOptions_EditionDefault.fromPartial(base ?? {});
1779
2255
  },
1780
2256
  fromPartial(object) {
1781
- const message = createBaseOneofOptions();
1782
- message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2257
+ const message = createBaseFieldOptions_EditionDefault();
2258
+ message.edition = object.edition ?? 0;
2259
+ message.value = object.value ?? "";
1783
2260
  return message;
1784
2261
  },
1785
2262
  };
1786
- function createBaseEnumOptions() {
1787
- return { allowAlias: false, deprecated: false, uninterpretedOption: [] };
2263
+ function createBaseFieldOptions_FeatureSupport() {
2264
+ return { editionIntroduced: 0, editionDeprecated: 0, deprecationWarning: "", editionRemoved: 0, removalError: "" };
1788
2265
  }
1789
- export const EnumOptions = {
2266
+ export const FieldOptions_FeatureSupport = {
1790
2267
  encode(message, writer = new BinaryWriter()) {
1791
- if (message.allowAlias !== undefined && message.allowAlias !== false) {
1792
- writer.uint32(16).bool(message.allowAlias);
2268
+ if (message.editionIntroduced !== undefined && message.editionIntroduced !== 0) {
2269
+ writer.uint32(8).int32(message.editionIntroduced);
1793
2270
  }
1794
- if (message.deprecated !== undefined && message.deprecated !== false) {
1795
- writer.uint32(24).bool(message.deprecated);
2271
+ if (message.editionDeprecated !== undefined && message.editionDeprecated !== 0) {
2272
+ writer.uint32(16).int32(message.editionDeprecated);
1796
2273
  }
1797
- for (const v of message.uninterpretedOption) {
1798
- UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
2274
+ if (message.deprecationWarning !== undefined && message.deprecationWarning !== "") {
2275
+ writer.uint32(26).string(message.deprecationWarning);
2276
+ }
2277
+ if (message.editionRemoved !== undefined && message.editionRemoved !== 0) {
2278
+ writer.uint32(32).int32(message.editionRemoved);
2279
+ }
2280
+ if (message.removalError !== undefined && message.removalError !== "") {
2281
+ writer.uint32(42).string(message.removalError);
1799
2282
  }
1800
2283
  return writer;
1801
2284
  },
1802
2285
  decode(input, length) {
1803
2286
  const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
1804
2287
  const end = length === undefined ? reader.len : reader.pos + length;
1805
- const message = createBaseEnumOptions();
2288
+ const message = createBaseFieldOptions_FeatureSupport();
1806
2289
  while (reader.pos < end) {
1807
2290
  const tag = reader.uint32();
1808
2291
  switch (tag >>> 3) {
2292
+ case 1: {
2293
+ if (tag !== 8) {
2294
+ break;
2295
+ }
2296
+ message.editionIntroduced = reader.int32();
2297
+ continue;
2298
+ }
1809
2299
  case 2: {
1810
2300
  if (tag !== 16) {
1811
2301
  break;
1812
2302
  }
1813
- message.allowAlias = reader.bool();
2303
+ message.editionDeprecated = reader.int32();
1814
2304
  continue;
1815
2305
  }
1816
2306
  case 3: {
1817
- if (tag !== 24) {
2307
+ if (tag !== 26) {
1818
2308
  break;
1819
2309
  }
1820
- message.deprecated = reader.bool();
2310
+ message.deprecationWarning = reader.string();
1821
2311
  continue;
1822
2312
  }
1823
- case 999: {
1824
- if (tag !== 7994) {
2313
+ case 4: {
2314
+ if (tag !== 32) {
1825
2315
  break;
1826
2316
  }
1827
- message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2317
+ message.editionRemoved = reader.int32();
2318
+ continue;
2319
+ }
2320
+ case 5: {
2321
+ if (tag !== 42) {
2322
+ break;
2323
+ }
2324
+ message.removalError = reader.string();
1828
2325
  continue;
1829
2326
  }
1830
2327
  }
@@ -1836,24 +2333,188 @@ export const EnumOptions = {
1836
2333
  return message;
1837
2334
  },
1838
2335
  create(base) {
1839
- return EnumOptions.fromPartial(base ?? {});
2336
+ return FieldOptions_FeatureSupport.fromPartial(base ?? {});
1840
2337
  },
1841
2338
  fromPartial(object) {
1842
- const message = createBaseEnumOptions();
1843
- message.allowAlias = object.allowAlias ?? false;
1844
- message.deprecated = object.deprecated ?? false;
1845
- message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2339
+ const message = createBaseFieldOptions_FeatureSupport();
2340
+ message.editionIntroduced = object.editionIntroduced ?? 0;
2341
+ message.editionDeprecated = object.editionDeprecated ?? 0;
2342
+ message.deprecationWarning = object.deprecationWarning ?? "";
2343
+ message.editionRemoved = object.editionRemoved ?? 0;
2344
+ message.removalError = object.removalError ?? "";
1846
2345
  return message;
1847
2346
  },
1848
2347
  };
1849
- function createBaseEnumValueOptions() {
1850
- return { deprecated: false, uninterpretedOption: [] };
2348
+ function createBaseOneofOptions() {
2349
+ return { features: undefined, uninterpretedOption: [] };
2350
+ }
2351
+ export const OneofOptions = {
2352
+ encode(message, writer = new BinaryWriter()) {
2353
+ if (message.features !== undefined) {
2354
+ FeatureSet.encode(message.features, writer.uint32(10).fork()).join();
2355
+ }
2356
+ for (const v of message.uninterpretedOption) {
2357
+ UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
2358
+ }
2359
+ return writer;
2360
+ },
2361
+ decode(input, length) {
2362
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2363
+ const end = length === undefined ? reader.len : reader.pos + length;
2364
+ const message = createBaseOneofOptions();
2365
+ while (reader.pos < end) {
2366
+ const tag = reader.uint32();
2367
+ switch (tag >>> 3) {
2368
+ case 1: {
2369
+ if (tag !== 10) {
2370
+ break;
2371
+ }
2372
+ message.features = FeatureSet.decode(reader, reader.uint32());
2373
+ continue;
2374
+ }
2375
+ case 999: {
2376
+ if (tag !== 7994) {
2377
+ break;
2378
+ }
2379
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2380
+ continue;
2381
+ }
2382
+ }
2383
+ if ((tag & 7) === 4 || tag === 0) {
2384
+ break;
2385
+ }
2386
+ reader.skip(tag & 7);
2387
+ }
2388
+ return message;
2389
+ },
2390
+ create(base) {
2391
+ return OneofOptions.fromPartial(base ?? {});
2392
+ },
2393
+ fromPartial(object) {
2394
+ const message = createBaseOneofOptions();
2395
+ message.features = (object.features !== undefined && object.features !== null)
2396
+ ? FeatureSet.fromPartial(object.features)
2397
+ : undefined;
2398
+ message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2399
+ return message;
2400
+ },
2401
+ };
2402
+ function createBaseEnumOptions() {
2403
+ return {
2404
+ allowAlias: false,
2405
+ deprecated: false,
2406
+ deprecatedLegacyJsonFieldConflicts: false,
2407
+ features: undefined,
2408
+ uninterpretedOption: [],
2409
+ };
2410
+ }
2411
+ export const EnumOptions = {
2412
+ encode(message, writer = new BinaryWriter()) {
2413
+ if (message.allowAlias !== undefined && message.allowAlias !== false) {
2414
+ writer.uint32(16).bool(message.allowAlias);
2415
+ }
2416
+ if (message.deprecated !== undefined && message.deprecated !== false) {
2417
+ writer.uint32(24).bool(message.deprecated);
2418
+ }
2419
+ if (message.deprecatedLegacyJsonFieldConflicts !== undefined && message.deprecatedLegacyJsonFieldConflicts !== false) {
2420
+ writer.uint32(48).bool(message.deprecatedLegacyJsonFieldConflicts);
2421
+ }
2422
+ if (message.features !== undefined) {
2423
+ FeatureSet.encode(message.features, writer.uint32(58).fork()).join();
2424
+ }
2425
+ for (const v of message.uninterpretedOption) {
2426
+ UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
2427
+ }
2428
+ return writer;
2429
+ },
2430
+ decode(input, length) {
2431
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2432
+ const end = length === undefined ? reader.len : reader.pos + length;
2433
+ const message = createBaseEnumOptions();
2434
+ while (reader.pos < end) {
2435
+ const tag = reader.uint32();
2436
+ switch (tag >>> 3) {
2437
+ case 2: {
2438
+ if (tag !== 16) {
2439
+ break;
2440
+ }
2441
+ message.allowAlias = reader.bool();
2442
+ continue;
2443
+ }
2444
+ case 3: {
2445
+ if (tag !== 24) {
2446
+ break;
2447
+ }
2448
+ message.deprecated = reader.bool();
2449
+ continue;
2450
+ }
2451
+ case 6: {
2452
+ if (tag !== 48) {
2453
+ break;
2454
+ }
2455
+ message.deprecatedLegacyJsonFieldConflicts = reader.bool();
2456
+ continue;
2457
+ }
2458
+ case 7: {
2459
+ if (tag !== 58) {
2460
+ break;
2461
+ }
2462
+ message.features = FeatureSet.decode(reader, reader.uint32());
2463
+ continue;
2464
+ }
2465
+ case 999: {
2466
+ if (tag !== 7994) {
2467
+ break;
2468
+ }
2469
+ message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32()));
2470
+ continue;
2471
+ }
2472
+ }
2473
+ if ((tag & 7) === 4 || tag === 0) {
2474
+ break;
2475
+ }
2476
+ reader.skip(tag & 7);
2477
+ }
2478
+ return message;
2479
+ },
2480
+ create(base) {
2481
+ return EnumOptions.fromPartial(base ?? {});
2482
+ },
2483
+ fromPartial(object) {
2484
+ const message = createBaseEnumOptions();
2485
+ message.allowAlias = object.allowAlias ?? false;
2486
+ message.deprecated = object.deprecated ?? false;
2487
+ message.deprecatedLegacyJsonFieldConflicts = object.deprecatedLegacyJsonFieldConflicts ?? false;
2488
+ message.features = (object.features !== undefined && object.features !== null)
2489
+ ? FeatureSet.fromPartial(object.features)
2490
+ : undefined;
2491
+ message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2492
+ return message;
2493
+ },
2494
+ };
2495
+ function createBaseEnumValueOptions() {
2496
+ return {
2497
+ deprecated: false,
2498
+ features: undefined,
2499
+ debugRedact: false,
2500
+ featureSupport: undefined,
2501
+ uninterpretedOption: [],
2502
+ };
1851
2503
  }
1852
2504
  export const EnumValueOptions = {
1853
2505
  encode(message, writer = new BinaryWriter()) {
1854
2506
  if (message.deprecated !== undefined && message.deprecated !== false) {
1855
2507
  writer.uint32(8).bool(message.deprecated);
1856
2508
  }
2509
+ if (message.features !== undefined) {
2510
+ FeatureSet.encode(message.features, writer.uint32(18).fork()).join();
2511
+ }
2512
+ if (message.debugRedact !== undefined && message.debugRedact !== false) {
2513
+ writer.uint32(24).bool(message.debugRedact);
2514
+ }
2515
+ if (message.featureSupport !== undefined) {
2516
+ FieldOptions_FeatureSupport.encode(message.featureSupport, writer.uint32(34).fork()).join();
2517
+ }
1857
2518
  for (const v of message.uninterpretedOption) {
1858
2519
  UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
1859
2520
  }
@@ -1873,6 +2534,27 @@ export const EnumValueOptions = {
1873
2534
  message.deprecated = reader.bool();
1874
2535
  continue;
1875
2536
  }
2537
+ case 2: {
2538
+ if (tag !== 18) {
2539
+ break;
2540
+ }
2541
+ message.features = FeatureSet.decode(reader, reader.uint32());
2542
+ continue;
2543
+ }
2544
+ case 3: {
2545
+ if (tag !== 24) {
2546
+ break;
2547
+ }
2548
+ message.debugRedact = reader.bool();
2549
+ continue;
2550
+ }
2551
+ case 4: {
2552
+ if (tag !== 34) {
2553
+ break;
2554
+ }
2555
+ message.featureSupport = FieldOptions_FeatureSupport.decode(reader, reader.uint32());
2556
+ continue;
2557
+ }
1876
2558
  case 999: {
1877
2559
  if (tag !== 7994) {
1878
2560
  break;
@@ -1894,15 +2576,25 @@ export const EnumValueOptions = {
1894
2576
  fromPartial(object) {
1895
2577
  const message = createBaseEnumValueOptions();
1896
2578
  message.deprecated = object.deprecated ?? false;
2579
+ message.features = (object.features !== undefined && object.features !== null)
2580
+ ? FeatureSet.fromPartial(object.features)
2581
+ : undefined;
2582
+ message.debugRedact = object.debugRedact ?? false;
2583
+ message.featureSupport = (object.featureSupport !== undefined && object.featureSupport !== null)
2584
+ ? FieldOptions_FeatureSupport.fromPartial(object.featureSupport)
2585
+ : undefined;
1897
2586
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
1898
2587
  return message;
1899
2588
  },
1900
2589
  };
1901
2590
  function createBaseServiceOptions() {
1902
- return { deprecated: false, uninterpretedOption: [] };
2591
+ return { features: undefined, deprecated: false, uninterpretedOption: [] };
1903
2592
  }
1904
2593
  export const ServiceOptions = {
1905
2594
  encode(message, writer = new BinaryWriter()) {
2595
+ if (message.features !== undefined) {
2596
+ FeatureSet.encode(message.features, writer.uint32(274).fork()).join();
2597
+ }
1906
2598
  if (message.deprecated !== undefined && message.deprecated !== false) {
1907
2599
  writer.uint32(264).bool(message.deprecated);
1908
2600
  }
@@ -1918,6 +2610,13 @@ export const ServiceOptions = {
1918
2610
  while (reader.pos < end) {
1919
2611
  const tag = reader.uint32();
1920
2612
  switch (tag >>> 3) {
2613
+ case 34: {
2614
+ if (tag !== 274) {
2615
+ break;
2616
+ }
2617
+ message.features = FeatureSet.decode(reader, reader.uint32());
2618
+ continue;
2619
+ }
1921
2620
  case 33: {
1922
2621
  if (tag !== 264) {
1923
2622
  break;
@@ -1945,13 +2644,16 @@ export const ServiceOptions = {
1945
2644
  },
1946
2645
  fromPartial(object) {
1947
2646
  const message = createBaseServiceOptions();
2647
+ message.features = (object.features !== undefined && object.features !== null)
2648
+ ? FeatureSet.fromPartial(object.features)
2649
+ : undefined;
1948
2650
  message.deprecated = object.deprecated ?? false;
1949
2651
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
1950
2652
  return message;
1951
2653
  },
1952
2654
  };
1953
2655
  function createBaseMethodOptions() {
1954
- return { deprecated: false, idempotencyLevel: 0, uninterpretedOption: [] };
2656
+ return { deprecated: false, idempotencyLevel: 0, features: undefined, uninterpretedOption: [] };
1955
2657
  }
1956
2658
  export const MethodOptions = {
1957
2659
  encode(message, writer = new BinaryWriter()) {
@@ -1961,6 +2663,9 @@ export const MethodOptions = {
1961
2663
  if (message.idempotencyLevel !== undefined && message.idempotencyLevel !== 0) {
1962
2664
  writer.uint32(272).int32(message.idempotencyLevel);
1963
2665
  }
2666
+ if (message.features !== undefined) {
2667
+ FeatureSet.encode(message.features, writer.uint32(282).fork()).join();
2668
+ }
1964
2669
  for (const v of message.uninterpretedOption) {
1965
2670
  UninterpretedOption.encode(v, writer.uint32(7994).fork()).join();
1966
2671
  }
@@ -1987,6 +2692,13 @@ export const MethodOptions = {
1987
2692
  message.idempotencyLevel = reader.int32();
1988
2693
  continue;
1989
2694
  }
2695
+ case 35: {
2696
+ if (tag !== 282) {
2697
+ break;
2698
+ }
2699
+ message.features = FeatureSet.decode(reader, reader.uint32());
2700
+ continue;
2701
+ }
1990
2702
  case 999: {
1991
2703
  if (tag !== 7994) {
1992
2704
  break;
@@ -2009,6 +2721,9 @@ export const MethodOptions = {
2009
2721
  const message = createBaseMethodOptions();
2010
2722
  message.deprecated = object.deprecated ?? false;
2011
2723
  message.idempotencyLevel = object.idempotencyLevel ?? 0;
2724
+ message.features = (object.features !== undefined && object.features !== null)
2725
+ ? FeatureSet.fromPartial(object.features)
2726
+ : undefined;
2012
2727
  message.uninterpretedOption = object.uninterpretedOption?.map((e) => UninterpretedOption.fromPartial(e)) || [];
2013
2728
  return message;
2014
2729
  },
@@ -2184,6 +2899,293 @@ export const UninterpretedOption_NamePart = {
2184
2899
  return message;
2185
2900
  },
2186
2901
  };
2902
+ function createBaseFeatureSet() {
2903
+ return {
2904
+ fieldPresence: 0,
2905
+ enumType: 0,
2906
+ repeatedFieldEncoding: 0,
2907
+ utf8Validation: 0,
2908
+ messageEncoding: 0,
2909
+ jsonFormat: 0,
2910
+ enforceNamingStyle: 0,
2911
+ defaultSymbolVisibility: 0,
2912
+ };
2913
+ }
2914
+ export const FeatureSet = {
2915
+ encode(message, writer = new BinaryWriter()) {
2916
+ if (message.fieldPresence !== undefined && message.fieldPresence !== 0) {
2917
+ writer.uint32(8).int32(message.fieldPresence);
2918
+ }
2919
+ if (message.enumType !== undefined && message.enumType !== 0) {
2920
+ writer.uint32(16).int32(message.enumType);
2921
+ }
2922
+ if (message.repeatedFieldEncoding !== undefined && message.repeatedFieldEncoding !== 0) {
2923
+ writer.uint32(24).int32(message.repeatedFieldEncoding);
2924
+ }
2925
+ if (message.utf8Validation !== undefined && message.utf8Validation !== 0) {
2926
+ writer.uint32(32).int32(message.utf8Validation);
2927
+ }
2928
+ if (message.messageEncoding !== undefined && message.messageEncoding !== 0) {
2929
+ writer.uint32(40).int32(message.messageEncoding);
2930
+ }
2931
+ if (message.jsonFormat !== undefined && message.jsonFormat !== 0) {
2932
+ writer.uint32(48).int32(message.jsonFormat);
2933
+ }
2934
+ if (message.enforceNamingStyle !== undefined && message.enforceNamingStyle !== 0) {
2935
+ writer.uint32(56).int32(message.enforceNamingStyle);
2936
+ }
2937
+ if (message.defaultSymbolVisibility !== undefined && message.defaultSymbolVisibility !== 0) {
2938
+ writer.uint32(64).int32(message.defaultSymbolVisibility);
2939
+ }
2940
+ return writer;
2941
+ },
2942
+ decode(input, length) {
2943
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
2944
+ const end = length === undefined ? reader.len : reader.pos + length;
2945
+ const message = createBaseFeatureSet();
2946
+ while (reader.pos < end) {
2947
+ const tag = reader.uint32();
2948
+ switch (tag >>> 3) {
2949
+ case 1: {
2950
+ if (tag !== 8) {
2951
+ break;
2952
+ }
2953
+ message.fieldPresence = reader.int32();
2954
+ continue;
2955
+ }
2956
+ case 2: {
2957
+ if (tag !== 16) {
2958
+ break;
2959
+ }
2960
+ message.enumType = reader.int32();
2961
+ continue;
2962
+ }
2963
+ case 3: {
2964
+ if (tag !== 24) {
2965
+ break;
2966
+ }
2967
+ message.repeatedFieldEncoding = reader.int32();
2968
+ continue;
2969
+ }
2970
+ case 4: {
2971
+ if (tag !== 32) {
2972
+ break;
2973
+ }
2974
+ message.utf8Validation = reader.int32();
2975
+ continue;
2976
+ }
2977
+ case 5: {
2978
+ if (tag !== 40) {
2979
+ break;
2980
+ }
2981
+ message.messageEncoding = reader.int32();
2982
+ continue;
2983
+ }
2984
+ case 6: {
2985
+ if (tag !== 48) {
2986
+ break;
2987
+ }
2988
+ message.jsonFormat = reader.int32();
2989
+ continue;
2990
+ }
2991
+ case 7: {
2992
+ if (tag !== 56) {
2993
+ break;
2994
+ }
2995
+ message.enforceNamingStyle = reader.int32();
2996
+ continue;
2997
+ }
2998
+ case 8: {
2999
+ if (tag !== 64) {
3000
+ break;
3001
+ }
3002
+ message.defaultSymbolVisibility = reader.int32();
3003
+ continue;
3004
+ }
3005
+ }
3006
+ if ((tag & 7) === 4 || tag === 0) {
3007
+ break;
3008
+ }
3009
+ reader.skip(tag & 7);
3010
+ }
3011
+ return message;
3012
+ },
3013
+ create(base) {
3014
+ return FeatureSet.fromPartial(base ?? {});
3015
+ },
3016
+ fromPartial(object) {
3017
+ const message = createBaseFeatureSet();
3018
+ message.fieldPresence = object.fieldPresence ?? 0;
3019
+ message.enumType = object.enumType ?? 0;
3020
+ message.repeatedFieldEncoding = object.repeatedFieldEncoding ?? 0;
3021
+ message.utf8Validation = object.utf8Validation ?? 0;
3022
+ message.messageEncoding = object.messageEncoding ?? 0;
3023
+ message.jsonFormat = object.jsonFormat ?? 0;
3024
+ message.enforceNamingStyle = object.enforceNamingStyle ?? 0;
3025
+ message.defaultSymbolVisibility = object.defaultSymbolVisibility ?? 0;
3026
+ return message;
3027
+ },
3028
+ };
3029
+ function createBaseFeatureSet_VisibilityFeature() {
3030
+ return {};
3031
+ }
3032
+ export const FeatureSet_VisibilityFeature = {
3033
+ encode(_, writer = new BinaryWriter()) {
3034
+ return writer;
3035
+ },
3036
+ decode(input, length) {
3037
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3038
+ const end = length === undefined ? reader.len : reader.pos + length;
3039
+ const message = createBaseFeatureSet_VisibilityFeature();
3040
+ while (reader.pos < end) {
3041
+ const tag = reader.uint32();
3042
+ switch (tag >>> 3) {
3043
+ }
3044
+ if ((tag & 7) === 4 || tag === 0) {
3045
+ break;
3046
+ }
3047
+ reader.skip(tag & 7);
3048
+ }
3049
+ return message;
3050
+ },
3051
+ create(base) {
3052
+ return FeatureSet_VisibilityFeature.fromPartial(base ?? {});
3053
+ },
3054
+ fromPartial(_) {
3055
+ const message = createBaseFeatureSet_VisibilityFeature();
3056
+ return message;
3057
+ },
3058
+ };
3059
+ function createBaseFeatureSetDefaults() {
3060
+ return { defaults: [], minimumEdition: 0, maximumEdition: 0 };
3061
+ }
3062
+ export const FeatureSetDefaults = {
3063
+ encode(message, writer = new BinaryWriter()) {
3064
+ for (const v of message.defaults) {
3065
+ FeatureSetDefaults_FeatureSetEditionDefault.encode(v, writer.uint32(10).fork()).join();
3066
+ }
3067
+ if (message.minimumEdition !== undefined && message.minimumEdition !== 0) {
3068
+ writer.uint32(32).int32(message.minimumEdition);
3069
+ }
3070
+ if (message.maximumEdition !== undefined && message.maximumEdition !== 0) {
3071
+ writer.uint32(40).int32(message.maximumEdition);
3072
+ }
3073
+ return writer;
3074
+ },
3075
+ decode(input, length) {
3076
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3077
+ const end = length === undefined ? reader.len : reader.pos + length;
3078
+ const message = createBaseFeatureSetDefaults();
3079
+ while (reader.pos < end) {
3080
+ const tag = reader.uint32();
3081
+ switch (tag >>> 3) {
3082
+ case 1: {
3083
+ if (tag !== 10) {
3084
+ break;
3085
+ }
3086
+ message.defaults.push(FeatureSetDefaults_FeatureSetEditionDefault.decode(reader, reader.uint32()));
3087
+ continue;
3088
+ }
3089
+ case 4: {
3090
+ if (tag !== 32) {
3091
+ break;
3092
+ }
3093
+ message.minimumEdition = reader.int32();
3094
+ continue;
3095
+ }
3096
+ case 5: {
3097
+ if (tag !== 40) {
3098
+ break;
3099
+ }
3100
+ message.maximumEdition = reader.int32();
3101
+ continue;
3102
+ }
3103
+ }
3104
+ if ((tag & 7) === 4 || tag === 0) {
3105
+ break;
3106
+ }
3107
+ reader.skip(tag & 7);
3108
+ }
3109
+ return message;
3110
+ },
3111
+ create(base) {
3112
+ return FeatureSetDefaults.fromPartial(base ?? {});
3113
+ },
3114
+ fromPartial(object) {
3115
+ const message = createBaseFeatureSetDefaults();
3116
+ message.defaults = object.defaults?.map((e) => FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(e)) || [];
3117
+ message.minimumEdition = object.minimumEdition ?? 0;
3118
+ message.maximumEdition = object.maximumEdition ?? 0;
3119
+ return message;
3120
+ },
3121
+ };
3122
+ function createBaseFeatureSetDefaults_FeatureSetEditionDefault() {
3123
+ return { edition: 0, overridableFeatures: undefined, fixedFeatures: undefined };
3124
+ }
3125
+ export const FeatureSetDefaults_FeatureSetEditionDefault = {
3126
+ encode(message, writer = new BinaryWriter()) {
3127
+ if (message.edition !== undefined && message.edition !== 0) {
3128
+ writer.uint32(24).int32(message.edition);
3129
+ }
3130
+ if (message.overridableFeatures !== undefined) {
3131
+ FeatureSet.encode(message.overridableFeatures, writer.uint32(34).fork()).join();
3132
+ }
3133
+ if (message.fixedFeatures !== undefined) {
3134
+ FeatureSet.encode(message.fixedFeatures, writer.uint32(42).fork()).join();
3135
+ }
3136
+ return writer;
3137
+ },
3138
+ decode(input, length) {
3139
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
3140
+ const end = length === undefined ? reader.len : reader.pos + length;
3141
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
3142
+ while (reader.pos < end) {
3143
+ const tag = reader.uint32();
3144
+ switch (tag >>> 3) {
3145
+ case 3: {
3146
+ if (tag !== 24) {
3147
+ break;
3148
+ }
3149
+ message.edition = reader.int32();
3150
+ continue;
3151
+ }
3152
+ case 4: {
3153
+ if (tag !== 34) {
3154
+ break;
3155
+ }
3156
+ message.overridableFeatures = FeatureSet.decode(reader, reader.uint32());
3157
+ continue;
3158
+ }
3159
+ case 5: {
3160
+ if (tag !== 42) {
3161
+ break;
3162
+ }
3163
+ message.fixedFeatures = FeatureSet.decode(reader, reader.uint32());
3164
+ continue;
3165
+ }
3166
+ }
3167
+ if ((tag & 7) === 4 || tag === 0) {
3168
+ break;
3169
+ }
3170
+ reader.skip(tag & 7);
3171
+ }
3172
+ return message;
3173
+ },
3174
+ create(base) {
3175
+ return FeatureSetDefaults_FeatureSetEditionDefault.fromPartial(base ?? {});
3176
+ },
3177
+ fromPartial(object) {
3178
+ const message = createBaseFeatureSetDefaults_FeatureSetEditionDefault();
3179
+ message.edition = object.edition ?? 0;
3180
+ message.overridableFeatures = (object.overridableFeatures !== undefined && object.overridableFeatures !== null)
3181
+ ? FeatureSet.fromPartial(object.overridableFeatures)
3182
+ : undefined;
3183
+ message.fixedFeatures = (object.fixedFeatures !== undefined && object.fixedFeatures !== null)
3184
+ ? FeatureSet.fromPartial(object.fixedFeatures)
3185
+ : undefined;
3186
+ return message;
3187
+ },
3188
+ };
2187
3189
  function createBaseSourceCodeInfo() {
2188
3190
  return { location: [] };
2189
3191
  }
@@ -2370,7 +3372,7 @@ export const GeneratedCodeInfo = {
2370
3372
  },
2371
3373
  };
2372
3374
  function createBaseGeneratedCodeInfo_Annotation() {
2373
- return { path: [], sourceFile: "", begin: 0, end: 0 };
3375
+ return { path: [], sourceFile: "", begin: 0, end: 0, semantic: 0 };
2374
3376
  }
2375
3377
  export const GeneratedCodeInfo_Annotation = {
2376
3378
  encode(message, writer = new BinaryWriter()) {
@@ -2388,6 +3390,9 @@ export const GeneratedCodeInfo_Annotation = {
2388
3390
  if (message.end !== undefined && message.end !== 0) {
2389
3391
  writer.uint32(32).int32(message.end);
2390
3392
  }
3393
+ if (message.semantic !== undefined && message.semantic !== 0) {
3394
+ writer.uint32(40).int32(message.semantic);
3395
+ }
2391
3396
  return writer;
2392
3397
  },
2393
3398
  decode(input, length) {
@@ -2432,6 +3437,13 @@ export const GeneratedCodeInfo_Annotation = {
2432
3437
  message.end = reader.int32();
2433
3438
  continue;
2434
3439
  }
3440
+ case 5: {
3441
+ if (tag !== 40) {
3442
+ break;
3443
+ }
3444
+ message.semantic = reader.int32();
3445
+ continue;
3446
+ }
2435
3447
  }
2436
3448
  if ((tag & 7) === 4 || tag === 0) {
2437
3449
  break;
@@ -2449,6 +3461,7 @@ export const GeneratedCodeInfo_Annotation = {
2449
3461
  message.sourceFile = object.sourceFile ?? "";
2450
3462
  message.begin = object.begin ?? 0;
2451
3463
  message.end = object.end ?? 0;
3464
+ message.semantic = object.semantic ?? 0;
2452
3465
  return message;
2453
3466
  },
2454
3467
  };