@fatehan/tsrp 1.6.20 → 1.6.22

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 (88) hide show
  1. package/dist/fatehan/activities/workflow.d.ts +219 -0
  2. package/dist/fatehan/activities/workflow.d.ts.map +1 -0
  3. package/dist/fatehan/activities/workflow.js +1941 -0
  4. package/dist/fatehan/activities/workshift.d.ts +140 -0
  5. package/dist/fatehan/activities/workshift.d.ts.map +1 -0
  6. package/dist/fatehan/activities/workshift.js +1244 -0
  7. package/dist/fatehan/apis/client.d.ts +246 -0
  8. package/dist/fatehan/apis/client.d.ts.map +1 -0
  9. package/dist/fatehan/apis/client.js +2572 -0
  10. package/dist/fatehan/areas/area.d.ts +96 -0
  11. package/dist/fatehan/areas/area.d.ts.map +1 -0
  12. package/dist/fatehan/areas/area.js +761 -0
  13. package/dist/fatehan/devices/devices.d.ts +256 -0
  14. package/dist/fatehan/devices/devices.d.ts.map +1 -0
  15. package/dist/fatehan/devices/devices.js +2730 -0
  16. package/dist/fatehan/devices/maintenance.d.ts +64 -0
  17. package/dist/fatehan/devices/maintenance.d.ts.map +1 -0
  18. package/dist/fatehan/devices/maintenance.js +484 -0
  19. package/dist/fatehan/financial/financial.d.ts +162 -0
  20. package/dist/fatehan/financial/financial.d.ts.map +1 -0
  21. package/dist/fatehan/financial/financial.js +1701 -0
  22. package/dist/fatehan/google/protobuf/descriptor.d.ts +1303 -0
  23. package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -0
  24. package/dist/fatehan/google/protobuf/descriptor.js +3467 -0
  25. package/dist/fatehan/google/protobuf/duration.d.ts +99 -0
  26. package/dist/fatehan/google/protobuf/duration.d.ts.map +1 -0
  27. package/dist/fatehan/google/protobuf/duration.js +63 -0
  28. package/dist/fatehan/google/protobuf/field_mask.d.ts +228 -0
  29. package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -0
  30. package/dist/fatehan/google/protobuf/field_mask.js +57 -0
  31. package/dist/fatehan/google/protobuf/timestamp.d.ts +129 -0
  32. package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -0
  33. package/dist/fatehan/google/protobuf/timestamp.js +63 -0
  34. package/dist/fatehan/identities/authentication.d.ts +164 -0
  35. package/dist/fatehan/identities/authentication.d.ts.map +1 -0
  36. package/dist/fatehan/identities/authentication.js +1291 -0
  37. package/dist/fatehan/identities/identities.d.ts +969 -0
  38. package/dist/fatehan/identities/identities.d.ts.map +1 -0
  39. package/dist/fatehan/identities/identities.js +2993 -0
  40. package/dist/fatehan/models/fusion.d.ts +149 -0
  41. package/dist/fatehan/models/fusion.d.ts.map +1 -0
  42. package/dist/fatehan/models/fusion.js +1531 -0
  43. package/dist/fatehan/models/models.d.ts +162 -0
  44. package/dist/fatehan/models/models.d.ts.map +1 -0
  45. package/dist/fatehan/models/models.js +1486 -0
  46. package/dist/fatehan/notifies/direct.d.ts +85 -0
  47. package/dist/fatehan/notifies/direct.d.ts.map +1 -0
  48. package/dist/fatehan/notifies/direct.js +669 -0
  49. package/dist/fatehan/notifies/notify.d.ts +232 -0
  50. package/dist/fatehan/notifies/notify.d.ts.map +1 -0
  51. package/dist/fatehan/notifies/notify.js +1958 -0
  52. package/dist/fatehan/packets/commands.d.ts +150 -0
  53. package/dist/fatehan/packets/commands.d.ts.map +1 -0
  54. package/dist/fatehan/packets/commands.js +1364 -0
  55. package/dist/fatehan/packets/dataModel.d.ts +1611 -0
  56. package/dist/fatehan/packets/dataModel.d.ts.map +1 -0
  57. package/dist/fatehan/packets/dataModel.js +14961 -0
  58. package/dist/fatehan/packets/dataModule.d.ts +61 -0
  59. package/dist/fatehan/packets/dataModule.d.ts.map +1 -0
  60. package/dist/fatehan/packets/dataModule.js +386 -0
  61. package/dist/fatehan/packets/forge.d.ts +142 -0
  62. package/dist/fatehan/packets/forge.d.ts.map +1 -0
  63. package/dist/fatehan/packets/forge.js +1339 -0
  64. package/dist/fatehan/services/api.d.ts +1222 -0
  65. package/dist/fatehan/services/api.d.ts.map +1 -0
  66. package/dist/fatehan/services/api.js +12689 -0
  67. package/dist/fatehan/services/repositories.d.ts +78 -0
  68. package/dist/fatehan/services/repositories.d.ts.map +1 -0
  69. package/dist/fatehan/services/repositories.js +620 -0
  70. package/dist/fatehan/stream/stream.d.ts +224 -0
  71. package/dist/fatehan/stream/stream.d.ts.map +1 -0
  72. package/dist/fatehan/stream/stream.js +1416 -0
  73. package/dist/fatehan/trips/trip.d.ts +325 -0
  74. package/dist/fatehan/trips/trip.d.ts.map +1 -0
  75. package/dist/fatehan/trips/trip.js +1635 -0
  76. package/dist/fatehan/utils/buf/validate/validate.d.ts +3520 -0
  77. package/dist/fatehan/utils/buf/validate/validate.d.ts.map +1 -0
  78. package/dist/fatehan/utils/buf/validate/validate.js +4248 -0
  79. package/dist/services.d.ts +79 -0
  80. package/dist/services.d.ts.map +1 -0
  81. package/dist/services.js +245 -0
  82. package/dist/store/system.io.d.ts +6 -0
  83. package/dist/store/system.io.d.ts.map +1 -0
  84. package/dist/store/system.io.js +14 -0
  85. package/dist/system.io.d.ts +6 -0
  86. package/dist/system.io.d.ts.map +1 -0
  87. package/dist/system.io.js +208 -0
  88. package/package.json +1 -1
@@ -0,0 +1,1303 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ import Long from "long";
3
+ export declare const protobufPackage = "google.protobuf";
4
+ /** The full set of known editions. */
5
+ export declare enum Edition {
6
+ /** EDITION_UNKNOWN - A placeholder for an unknown edition value. */
7
+ EDITION_UNKNOWN = 0,
8
+ /**
9
+ * EDITION_LEGACY - A placeholder edition for specifying default behaviors *before* a feature
10
+ * was first introduced. This is effectively an "infinite past".
11
+ */
12
+ EDITION_LEGACY = 900,
13
+ /**
14
+ * EDITION_PROTO2 - Legacy syntax "editions". These pre-date editions, but behave much like
15
+ * distinct editions. These can't be used to specify the edition of proto
16
+ * files, but feature definitions must supply proto2/proto3 defaults for
17
+ * backwards compatibility.
18
+ */
19
+ EDITION_PROTO2 = 998,
20
+ EDITION_PROTO3 = 999,
21
+ /**
22
+ * EDITION_2023 - Editions that have been released. The specific values are arbitrary and
23
+ * should not be depended on, but they will always be time-ordered for easy
24
+ * comparison.
25
+ */
26
+ EDITION_2023 = 1000,
27
+ EDITION_2024 = 1001,
28
+ /** EDITION_UNSTABLE - A placeholder edition for developing and testing unscheduled features. */
29
+ EDITION_UNSTABLE = 9999,
30
+ /**
31
+ * EDITION_1_TEST_ONLY - Placeholder editions for testing feature resolution. These should not be
32
+ * used or relied on outside of tests.
33
+ */
34
+ EDITION_1_TEST_ONLY = 1,
35
+ EDITION_2_TEST_ONLY = 2,
36
+ EDITION_99997_TEST_ONLY = 99997,
37
+ EDITION_99998_TEST_ONLY = 99998,
38
+ EDITION_99999_TEST_ONLY = 99999,
39
+ /**
40
+ * EDITION_MAX - Placeholder for specifying unbounded edition support. This should only
41
+ * ever be used by plugins that can expect to never require any changes to
42
+ * support a new edition.
43
+ */
44
+ EDITION_MAX = 2147483647,
45
+ UNRECOGNIZED = -1
46
+ }
47
+ /**
48
+ * Describes the 'visibility' of a symbol with respect to the proto import
49
+ * system. Symbols can only be imported when the visibility rules do not prevent
50
+ * it (ex: local symbols cannot be imported). Visibility modifiers can only set
51
+ * on `message` and `enum` as they are the only types available to be referenced
52
+ * from other files.
53
+ */
54
+ export declare enum SymbolVisibility {
55
+ VISIBILITY_UNSET = 0,
56
+ VISIBILITY_LOCAL = 1,
57
+ VISIBILITY_EXPORT = 2,
58
+ UNRECOGNIZED = -1
59
+ }
60
+ /**
61
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
62
+ * files it parses.
63
+ */
64
+ export interface FileDescriptorSet {
65
+ file: FileDescriptorProto[];
66
+ }
67
+ /** Describes a complete .proto file. */
68
+ export interface FileDescriptorProto {
69
+ /** file name, relative to root of source tree */
70
+ name?: string | undefined;
71
+ /** e.g. "foo", "foo.bar", etc. */
72
+ package?: string | undefined;
73
+ /** Names of files imported by this file. */
74
+ dependency: string[];
75
+ /** Indexes of the public imported files in the dependency list above. */
76
+ publicDependency: number[];
77
+ /**
78
+ * Indexes of the weak imported files in the dependency list.
79
+ * For Google-internal migration only. Do not use.
80
+ */
81
+ weakDependency: number[];
82
+ /**
83
+ * Names of files imported by this file purely for the purpose of providing
84
+ * option extensions. These are excluded from the dependency list above.
85
+ */
86
+ optionDependency: string[];
87
+ /** All top-level definitions in this file. */
88
+ messageType: DescriptorProto[];
89
+ enumType: EnumDescriptorProto[];
90
+ service: ServiceDescriptorProto[];
91
+ extension: FieldDescriptorProto[];
92
+ options?: FileOptions | undefined;
93
+ /**
94
+ * This field contains optional information about the original source code.
95
+ * You may safely remove this entire field without harming runtime
96
+ * functionality of the descriptors -- the information is needed only by
97
+ * development tools.
98
+ */
99
+ sourceCodeInfo?: SourceCodeInfo | undefined;
100
+ /**
101
+ * The syntax of the proto file.
102
+ * The supported values are "proto2", "proto3", and "editions".
103
+ *
104
+ * If `edition` is present, this value must be "editions".
105
+ * WARNING: This field should only be used by protobuf plugins or special
106
+ * cases like the proto compiler. Other uses are discouraged and
107
+ * developers should rely on the protoreflect APIs for their client language.
108
+ */
109
+ syntax?: string | undefined;
110
+ /**
111
+ * The edition of the proto file.
112
+ * WARNING: This field should only be used by protobuf plugins or special
113
+ * cases like the proto compiler. Other uses are discouraged and
114
+ * developers should rely on the protoreflect APIs for their client language.
115
+ */
116
+ edition?: Edition | undefined;
117
+ }
118
+ /** Describes a message type. */
119
+ export interface DescriptorProto {
120
+ name?: string | undefined;
121
+ field: FieldDescriptorProto[];
122
+ extension: FieldDescriptorProto[];
123
+ nestedType: DescriptorProto[];
124
+ enumType: EnumDescriptorProto[];
125
+ extensionRange: DescriptorProto_ExtensionRange[];
126
+ oneofDecl: OneofDescriptorProto[];
127
+ options?: MessageOptions | undefined;
128
+ reservedRange: DescriptorProto_ReservedRange[];
129
+ /**
130
+ * Reserved field names, which may not be used by fields in the same message.
131
+ * A given name may only be reserved once.
132
+ */
133
+ reservedName: string[];
134
+ /** Support for `export` and `local` keywords on enums. */
135
+ visibility?: SymbolVisibility | undefined;
136
+ }
137
+ export interface DescriptorProto_ExtensionRange {
138
+ /** Inclusive. */
139
+ start?: number | undefined;
140
+ /** Exclusive. */
141
+ end?: number | undefined;
142
+ options?: ExtensionRangeOptions | undefined;
143
+ }
144
+ /**
145
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
146
+ * fields or extension ranges in the same message. Reserved ranges may
147
+ * not overlap.
148
+ */
149
+ export interface DescriptorProto_ReservedRange {
150
+ /** Inclusive. */
151
+ start?: number | undefined;
152
+ /** Exclusive. */
153
+ end?: number | undefined;
154
+ }
155
+ export interface ExtensionRangeOptions {
156
+ /** The parser stores options it doesn't recognize here. See above. */
157
+ uninterpretedOption: UninterpretedOption[];
158
+ /**
159
+ * For external users: DO NOT USE. We are in the process of open sourcing
160
+ * extension declaration and executing internal cleanups before it can be
161
+ * used externally.
162
+ */
163
+ declaration: ExtensionRangeOptions_Declaration[];
164
+ /** Any features defined in the specific edition. */
165
+ features?: FeatureSet | undefined;
166
+ /**
167
+ * The verification state of the range.
168
+ * TODO: flip the default to DECLARATION once all empty ranges
169
+ * are marked as UNVERIFIED.
170
+ */
171
+ verification?: ExtensionRangeOptions_VerificationState | undefined;
172
+ }
173
+ /** The verification state of the extension range. */
174
+ export declare enum ExtensionRangeOptions_VerificationState {
175
+ /** DECLARATION - All the extensions of the range must be declared. */
176
+ DECLARATION = 0,
177
+ UNVERIFIED = 1,
178
+ UNRECOGNIZED = -1
179
+ }
180
+ export interface ExtensionRangeOptions_Declaration {
181
+ /** The extension number declared within the extension range. */
182
+ number?: number | undefined;
183
+ /**
184
+ * The fully-qualified name of the extension field. There must be a leading
185
+ * dot in front of the full name.
186
+ */
187
+ fullName?: string | undefined;
188
+ /**
189
+ * The fully-qualified type name of the extension field. Unlike
190
+ * Metadata.type, Declaration.type must have a leading dot for messages
191
+ * and enums.
192
+ */
193
+ type?: string | undefined;
194
+ /**
195
+ * If true, indicates that the number is reserved in the extension range,
196
+ * and any extension field with the number will fail to compile. Set this
197
+ * when a declared extension field is deleted.
198
+ */
199
+ reserved?: boolean | undefined;
200
+ /**
201
+ * If true, indicates that the extension must be defined as repeated.
202
+ * Otherwise the extension must be defined as optional.
203
+ */
204
+ repeated?: boolean | undefined;
205
+ }
206
+ /** Describes a field within a message. */
207
+ export interface FieldDescriptorProto {
208
+ name?: string | undefined;
209
+ number?: number | undefined;
210
+ label?: FieldDescriptorProto_Label | undefined;
211
+ /**
212
+ * If type_name is set, this need not be set. If both this and type_name
213
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
214
+ */
215
+ type?: FieldDescriptorProto_Type | undefined;
216
+ /**
217
+ * For message and enum types, this is the name of the type. If the name
218
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
219
+ * rules are used to find the type (i.e. first the nested types within this
220
+ * message are searched, then within the parent, on up to the root
221
+ * namespace).
222
+ */
223
+ typeName?: string | undefined;
224
+ /**
225
+ * For extensions, this is the name of the type being extended. It is
226
+ * resolved in the same manner as type_name.
227
+ */
228
+ extendee?: string | undefined;
229
+ /**
230
+ * For numeric types, contains the original text representation of the value.
231
+ * For booleans, "true" or "false".
232
+ * For strings, contains the default text contents (not escaped in any way).
233
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
234
+ */
235
+ defaultValue?: string | undefined;
236
+ /**
237
+ * If set, gives the index of a oneof in the containing type's oneof_decl
238
+ * list. This field is a member of that oneof.
239
+ */
240
+ oneofIndex?: number | undefined;
241
+ /**
242
+ * JSON name of this field. The value is set by protocol compiler. If the
243
+ * user has set a "json_name" option on this field, that option's value
244
+ * will be used. Otherwise, it's deduced from the field's name by converting
245
+ * it to camelCase.
246
+ */
247
+ jsonName?: string | undefined;
248
+ options?: FieldOptions | undefined;
249
+ /**
250
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
251
+ * tracks presence regardless of field type.
252
+ *
253
+ * When proto3_optional is true, this field must belong to a oneof to signal
254
+ * to old proto3 clients that presence is tracked for this field. This oneof
255
+ * is known as a "synthetic" oneof, and this field must be its sole member
256
+ * (each proto3 optional field gets its own synthetic oneof). Synthetic oneofs
257
+ * exist in the descriptor only, and do not generate any API. Synthetic oneofs
258
+ * must be ordered after all "real" oneofs.
259
+ *
260
+ * For message fields, proto3_optional doesn't create any semantic change,
261
+ * since non-repeated message fields always track presence. However it still
262
+ * indicates the semantic detail of whether the user wrote "optional" or not.
263
+ * This can be useful for round-tripping the .proto file. For consistency we
264
+ * give message fields a synthetic oneof also, even though it is not required
265
+ * to track presence. This is especially important because the parser can't
266
+ * tell if a field is a message or an enum, so it must always create a
267
+ * synthetic oneof.
268
+ *
269
+ * Proto2 optional fields do not set this flag, because they already indicate
270
+ * optional with `LABEL_OPTIONAL`.
271
+ */
272
+ proto3Optional?: boolean | undefined;
273
+ }
274
+ export declare enum FieldDescriptorProto_Type {
275
+ /**
276
+ * TYPE_DOUBLE - 0 is reserved for errors.
277
+ * Order is weird for historical reasons.
278
+ */
279
+ TYPE_DOUBLE = 1,
280
+ TYPE_FLOAT = 2,
281
+ /**
282
+ * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
283
+ * negative values are likely.
284
+ */
285
+ TYPE_INT64 = 3,
286
+ TYPE_UINT64 = 4,
287
+ /**
288
+ * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
289
+ * negative values are likely.
290
+ */
291
+ TYPE_INT32 = 5,
292
+ TYPE_FIXED64 = 6,
293
+ TYPE_FIXED32 = 7,
294
+ TYPE_BOOL = 8,
295
+ TYPE_STRING = 9,
296
+ /**
297
+ * TYPE_GROUP - Tag-delimited aggregate.
298
+ * Group type is deprecated and not supported after google.protobuf. However, Proto3
299
+ * implementations should still be able to parse the group wire format and
300
+ * treat group fields as unknown fields. In Editions, the group wire format
301
+ * can be enabled via the `message_encoding` feature.
302
+ */
303
+ TYPE_GROUP = 10,
304
+ /** TYPE_MESSAGE - Length-delimited aggregate. */
305
+ TYPE_MESSAGE = 11,
306
+ /** TYPE_BYTES - New in version 2. */
307
+ TYPE_BYTES = 12,
308
+ TYPE_UINT32 = 13,
309
+ TYPE_ENUM = 14,
310
+ TYPE_SFIXED32 = 15,
311
+ TYPE_SFIXED64 = 16,
312
+ /** TYPE_SINT32 - Uses ZigZag encoding. */
313
+ TYPE_SINT32 = 17,
314
+ /** TYPE_SINT64 - Uses ZigZag encoding. */
315
+ TYPE_SINT64 = 18,
316
+ UNRECOGNIZED = -1
317
+ }
318
+ export declare enum FieldDescriptorProto_Label {
319
+ /** LABEL_OPTIONAL - 0 is reserved for errors */
320
+ LABEL_OPTIONAL = 1,
321
+ LABEL_REPEATED = 3,
322
+ /**
323
+ * LABEL_REQUIRED - The required label is only allowed in google.protobuf. In proto3 and Editions
324
+ * it's explicitly prohibited. In Editions, the `field_presence` feature
325
+ * can be used to get this behavior.
326
+ */
327
+ LABEL_REQUIRED = 2,
328
+ UNRECOGNIZED = -1
329
+ }
330
+ /** Describes a oneof. */
331
+ export interface OneofDescriptorProto {
332
+ name?: string | undefined;
333
+ options?: OneofOptions | undefined;
334
+ }
335
+ /** Describes an enum type. */
336
+ export interface EnumDescriptorProto {
337
+ name?: string | undefined;
338
+ value: EnumValueDescriptorProto[];
339
+ options?: EnumOptions | undefined;
340
+ /**
341
+ * Range of reserved numeric values. Reserved numeric values may not be used
342
+ * by enum values in the same enum declaration. Reserved ranges may not
343
+ * overlap.
344
+ */
345
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
346
+ /**
347
+ * Reserved enum value names, which may not be reused. A given name may only
348
+ * be reserved once.
349
+ */
350
+ reservedName: string[];
351
+ /** Support for `export` and `local` keywords on enums. */
352
+ visibility?: SymbolVisibility | undefined;
353
+ }
354
+ /**
355
+ * Range of reserved numeric values. Reserved values may not be used by
356
+ * entries in the same enum. Reserved ranges may not overlap.
357
+ *
358
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
359
+ * is inclusive such that it can appropriately represent the entire int32
360
+ * domain.
361
+ */
362
+ export interface EnumDescriptorProto_EnumReservedRange {
363
+ /** Inclusive. */
364
+ start?: number | undefined;
365
+ /** Inclusive. */
366
+ end?: number | undefined;
367
+ }
368
+ /** Describes a value within an enum. */
369
+ export interface EnumValueDescriptorProto {
370
+ name?: string | undefined;
371
+ number?: number | undefined;
372
+ options?: EnumValueOptions | undefined;
373
+ }
374
+ /** Describes a service. */
375
+ export interface ServiceDescriptorProto {
376
+ name?: string | undefined;
377
+ method: MethodDescriptorProto[];
378
+ options?: ServiceOptions | undefined;
379
+ }
380
+ /** Describes a method of a service. */
381
+ export interface MethodDescriptorProto {
382
+ name?: string | undefined;
383
+ /**
384
+ * Input and output type names. These are resolved in the same way as
385
+ * FieldDescriptorProto.type_name, but must refer to a message type.
386
+ */
387
+ inputType?: string | undefined;
388
+ outputType?: string | undefined;
389
+ options?: MethodOptions | undefined;
390
+ /** Identifies if client streams multiple client messages */
391
+ clientStreaming?: boolean | undefined;
392
+ /** Identifies if server streams multiple server messages */
393
+ serverStreaming?: boolean | undefined;
394
+ }
395
+ export interface FileOptions {
396
+ /**
397
+ * Sets the Java package where classes generated from this .proto will be
398
+ * placed. By default, the proto package is used, but this is often
399
+ * inappropriate because proto packages do not normally start with backwards
400
+ * domain names.
401
+ */
402
+ javaPackage?: string | undefined;
403
+ /**
404
+ * Controls the name of the wrapper Java class generated for the .proto file.
405
+ * That class will always contain the .proto file's getDescriptor() method as
406
+ * well as any top-level extensions defined in the .proto file.
407
+ * If java_multiple_files is disabled, then all the other classes from the
408
+ * .proto file will be nested inside the single wrapper outer class.
409
+ */
410
+ javaOuterClassname?: string | undefined;
411
+ /**
412
+ * If enabled, then the Java code generator will generate a separate .java
413
+ * file for each top-level message, enum, and service defined in the .proto
414
+ * file. Thus, these types will *not* be nested inside the wrapper class
415
+ * named by java_outer_classname. However, the wrapper class will still be
416
+ * generated to contain the file's getDescriptor() method as well as any
417
+ * top-level extensions defined in the file.
418
+ */
419
+ javaMultipleFiles?: boolean | undefined;
420
+ /**
421
+ * This option does nothing.
422
+ *
423
+ * @deprecated
424
+ */
425
+ javaGenerateEqualsAndHash?: boolean | undefined;
426
+ /**
427
+ * A proto2 file can set this to true to opt in to UTF-8 checking for Java,
428
+ * which will throw an exception if invalid UTF-8 is parsed from the wire or
429
+ * assigned to a string field.
430
+ *
431
+ * TODO: clarify exactly what kinds of field types this option
432
+ * applies to, and update these docs accordingly.
433
+ *
434
+ * Proto3 files already perform these checks. Setting the option explicitly to
435
+ * false has no effect: it cannot be used to opt proto3 files out of UTF-8
436
+ * checks.
437
+ */
438
+ javaStringCheckUtf8?: boolean | undefined;
439
+ optimizeFor?: FileOptions_OptimizeMode | undefined;
440
+ /**
441
+ * Sets the Go package where structs generated from this .proto will be
442
+ * placed. If omitted, the Go package will be derived from the following:
443
+ * - The basename of the package import path, if provided.
444
+ * - Otherwise, the package statement in the .proto file, if present.
445
+ * - Otherwise, the basename of the .proto file, without extension.
446
+ */
447
+ goPackage?: string | undefined;
448
+ /**
449
+ * Should generic services be generated in each language? "Generic" services
450
+ * are not specific to any particular RPC system. They are generated by the
451
+ * main code generators in each language (without additional plugins).
452
+ * Generic services were the only kind of service generation supported by
453
+ * early versions of google.protobuf.
454
+ *
455
+ * Generic services are now considered deprecated in favor of using plugins
456
+ * that generate code specific to your particular RPC system. Therefore,
457
+ * these default to false. Old code which depends on generic services should
458
+ * explicitly set them to true.
459
+ */
460
+ ccGenericServices?: boolean | undefined;
461
+ javaGenericServices?: boolean | undefined;
462
+ pyGenericServices?: boolean | undefined;
463
+ /**
464
+ * Is this file deprecated?
465
+ * Depending on the target platform, this can emit Deprecated annotations
466
+ * for everything in the file, or it will be completely ignored; in the very
467
+ * least, this is a formalization for deprecating files.
468
+ */
469
+ deprecated?: boolean | undefined;
470
+ /**
471
+ * Enables the use of arenas for the proto messages in this file. This applies
472
+ * only to generated classes for C++.
473
+ */
474
+ ccEnableArenas?: boolean | undefined;
475
+ /**
476
+ * Sets the objective c class prefix which is prepended to all objective c
477
+ * generated classes from this .proto. There is no default.
478
+ */
479
+ objcClassPrefix?: string | undefined;
480
+ /** Namespace for generated classes; defaults to the package. */
481
+ csharpNamespace?: string | undefined;
482
+ /**
483
+ * By default Swift generators will take the proto package and CamelCase it
484
+ * replacing '.' with underscore and use that to prefix the types/symbols
485
+ * defined. When this options is provided, they will use this value instead
486
+ * to prefix the types/symbols defined.
487
+ */
488
+ swiftPrefix?: string | undefined;
489
+ /**
490
+ * Sets the php class prefix which is prepended to all php generated classes
491
+ * from this .proto. Default is empty.
492
+ */
493
+ phpClassPrefix?: string | undefined;
494
+ /**
495
+ * Use this option to change the namespace of php generated classes. Default
496
+ * is empty. When this option is empty, the package name will be used for
497
+ * determining the namespace.
498
+ */
499
+ phpNamespace?: string | undefined;
500
+ /**
501
+ * Use this option to change the namespace of php generated metadata classes.
502
+ * Default is empty. When this option is empty, the proto file name will be
503
+ * used for determining the namespace.
504
+ */
505
+ phpMetadataNamespace?: string | undefined;
506
+ /**
507
+ * Use this option to change the package of ruby generated classes. Default
508
+ * is empty. When this option is not set, the package name will be used for
509
+ * determining the ruby package.
510
+ */
511
+ rubyPackage?: string | undefined;
512
+ /**
513
+ * Any features defined in the specific edition.
514
+ * WARNING: This field should only be used by protobuf plugins or special
515
+ * cases like the proto compiler. Other uses are discouraged and
516
+ * developers should rely on the protoreflect APIs for their client language.
517
+ */
518
+ features?: FeatureSet | undefined;
519
+ /**
520
+ * The parser stores options it doesn't recognize here.
521
+ * See the documentation for the "Options" section above.
522
+ */
523
+ uninterpretedOption: UninterpretedOption[];
524
+ }
525
+ /** Generated classes can be optimized for speed or code size. */
526
+ export declare enum FileOptions_OptimizeMode {
527
+ /** SPEED - Generate complete code for parsing, serialization, */
528
+ SPEED = 1,
529
+ /** CODE_SIZE - etc. */
530
+ CODE_SIZE = 2,
531
+ /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
532
+ LITE_RUNTIME = 3,
533
+ UNRECOGNIZED = -1
534
+ }
535
+ export interface MessageOptions {
536
+ /**
537
+ * Set true to use the old proto1 MessageSet wire format for extensions.
538
+ * This is provided for backwards-compatibility with the MessageSet wire
539
+ * format. You should not use this for any other reason: It's less
540
+ * efficient, has fewer features, and is more complicated.
541
+ *
542
+ * The message must be defined exactly as follows:
543
+ * message Foo {
544
+ * option message_set_wire_format = true;
545
+ * extensions 4 to max;
546
+ * }
547
+ * Note that the message cannot have any defined fields; MessageSets only
548
+ * have extensions.
549
+ *
550
+ * All extensions of your type must be singular messages; e.g. they cannot
551
+ * be int32s, enums, or repeated messages.
552
+ *
553
+ * Because this is an option, the above two restrictions are not enforced by
554
+ * the protocol compiler.
555
+ */
556
+ messageSetWireFormat?: boolean | undefined;
557
+ /**
558
+ * Disables the generation of the standard "descriptor()" accessor, which can
559
+ * conflict with a field of the same name. This is meant to make migration
560
+ * from proto1 easier; new code should avoid fields named "descriptor".
561
+ */
562
+ noStandardDescriptorAccessor?: boolean | undefined;
563
+ /**
564
+ * Is this message deprecated?
565
+ * Depending on the target platform, this can emit Deprecated annotations
566
+ * for the message, or it will be completely ignored; in the very least,
567
+ * this is a formalization for deprecating messages.
568
+ */
569
+ deprecated?: boolean | undefined;
570
+ /**
571
+ * Whether the message is an automatically generated map entry type for the
572
+ * maps field.
573
+ *
574
+ * For maps fields:
575
+ * map<KeyType, ValueType> map_field = 1;
576
+ * The parsed descriptor looks like:
577
+ * message MapFieldEntry {
578
+ * option map_entry = true;
579
+ * optional KeyType key = 1;
580
+ * optional ValueType value = 2;
581
+ * }
582
+ * repeated MapFieldEntry map_field = 1;
583
+ *
584
+ * Implementations may choose not to generate the map_entry=true message, but
585
+ * use a native map in the target language to hold the keys and values.
586
+ * The reflection APIs in such implementations still need to work as
587
+ * if the field is a repeated message field.
588
+ *
589
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
590
+ * instead. The option should only be implicitly set by the proto compiler
591
+ * parser.
592
+ */
593
+ mapEntry?: boolean | undefined;
594
+ /**
595
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
596
+ * and strips underscored from the fields before comparison in proto3 only.
597
+ * The new behavior takes `json_name` into account and applies to proto2 as
598
+ * well.
599
+ *
600
+ * This should only be used as a temporary measure against broken builds due
601
+ * to the change in behavior for JSON field name conflicts.
602
+ *
603
+ * TODO This is legacy behavior we plan to remove once downstream
604
+ * teams have had time to migrate.
605
+ *
606
+ * @deprecated
607
+ */
608
+ deprecatedLegacyJsonFieldConflicts?: boolean | undefined;
609
+ /**
610
+ * Any features defined in the specific edition.
611
+ * WARNING: This field should only be used by protobuf plugins or special
612
+ * cases like the proto compiler. Other uses are discouraged and
613
+ * developers should rely on the protoreflect APIs for their client language.
614
+ */
615
+ features?: FeatureSet | undefined;
616
+ /** The parser stores options it doesn't recognize here. See above. */
617
+ uninterpretedOption: UninterpretedOption[];
618
+ }
619
+ export interface FieldOptions {
620
+ /**
621
+ * NOTE: ctype is deprecated. Use `features.(pb.cpp).string_type` instead.
622
+ * The ctype option instructs the C++ code generator to use a different
623
+ * representation of the field than it normally would. See the specific
624
+ * options below. This option is only implemented to support use of
625
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
626
+ * type "bytes" in the open source release.
627
+ * TODO: make ctype actually deprecated.
628
+ */
629
+ ctype?: FieldOptions_CType | undefined;
630
+ /**
631
+ * The packed option can be enabled for repeated primitive fields to enable
632
+ * a more efficient representation on the wire. Rather than repeatedly
633
+ * writing the tag and type for each element, the entire array is encoded as
634
+ * a single length-delimited blob. In proto3, only explicit setting it to
635
+ * false will avoid using packed encoding. This option is prohibited in
636
+ * Editions, but the `repeated_field_encoding` feature can be used to control
637
+ * the behavior.
638
+ */
639
+ packed?: boolean | undefined;
640
+ /**
641
+ * The jstype option determines the JavaScript type used for values of the
642
+ * field. The option is permitted only for 64 bit integral and fixed types
643
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
644
+ * is represented as JavaScript string, which avoids loss of precision that
645
+ * can happen when a large value is converted to a floating point JavaScript.
646
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
647
+ * use the JavaScript "number" type. The behavior of the default option
648
+ * JS_NORMAL is implementation dependent.
649
+ *
650
+ * This option is an enum to permit additional types to be added, e.g.
651
+ * goog.math.Integer.
652
+ */
653
+ jstype?: FieldOptions_JSType | undefined;
654
+ /**
655
+ * Should this field be parsed lazily? Lazy applies only to message-type
656
+ * fields. It means that when the outer message is initially parsed, the
657
+ * inner message's contents will not be parsed but instead stored in encoded
658
+ * form. The inner message will actually be parsed when it is first accessed.
659
+ *
660
+ * This is only a hint. Implementations are free to choose whether to use
661
+ * eager or lazy parsing regardless of the value of this option. However,
662
+ * setting this option true suggests that the protocol author believes that
663
+ * using lazy parsing on this field is worth the additional bookkeeping
664
+ * overhead typically needed to implement it.
665
+ *
666
+ * This option does not affect the public interface of any generated code;
667
+ * all method signatures remain the same. Furthermore, thread-safety of the
668
+ * interface is not affected by this option; const methods remain safe to
669
+ * call from multiple threads concurrently, while non-const methods continue
670
+ * to require exclusive access.
671
+ *
672
+ * Note that lazy message fields are still eagerly verified to check
673
+ * ill-formed wireformat or missing required fields. Calling IsInitialized()
674
+ * on the outer message would fail if the inner message has missing required
675
+ * fields. Failed verification would result in parsing failure (except when
676
+ * uninitialized messages are acceptable).
677
+ */
678
+ lazy?: boolean | undefined;
679
+ /**
680
+ * unverified_lazy does no correctness checks on the byte stream. This should
681
+ * only be used where lazy with verification is prohibitive for performance
682
+ * reasons.
683
+ */
684
+ unverifiedLazy?: boolean | undefined;
685
+ /**
686
+ * Is this field deprecated?
687
+ * Depending on the target platform, this can emit Deprecated annotations
688
+ * for accessors, or it will be completely ignored; in the very least, this
689
+ * is a formalization for deprecating fields.
690
+ */
691
+ deprecated?: boolean | undefined;
692
+ /**
693
+ * DEPRECATED. DO NOT USE!
694
+ * For Google-internal migration only. Do not use.
695
+ *
696
+ * @deprecated
697
+ */
698
+ weak?: boolean | undefined;
699
+ /**
700
+ * Indicate that the field value should not be printed out when using debug
701
+ * formats, e.g. when the field contains sensitive credentials.
702
+ */
703
+ debugRedact?: boolean | undefined;
704
+ retention?: FieldOptions_OptionRetention | undefined;
705
+ targets: FieldOptions_OptionTargetType[];
706
+ editionDefaults: FieldOptions_EditionDefault[];
707
+ /**
708
+ * Any features defined in the specific edition.
709
+ * WARNING: This field should only be used by protobuf plugins or special
710
+ * cases like the proto compiler. Other uses are discouraged and
711
+ * developers should rely on the protoreflect APIs for their client language.
712
+ */
713
+ features?: FeatureSet | undefined;
714
+ featureSupport?: FieldOptions_FeatureSupport | undefined;
715
+ /** The parser stores options it doesn't recognize here. See above. */
716
+ uninterpretedOption: UninterpretedOption[];
717
+ }
718
+ export declare enum FieldOptions_CType {
719
+ /** STRING - Default mode. */
720
+ STRING = 0,
721
+ /**
722
+ * CORD - The option [ctype=CORD] may be applied to a non-repeated field of type
723
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
724
+ * instead of a string. For very large strings, this may reduce memory
725
+ * fragmentation. It may also allow better performance when parsing from a
726
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
727
+ * alias the original buffer.
728
+ */
729
+ CORD = 1,
730
+ STRING_PIECE = 2,
731
+ UNRECOGNIZED = -1
732
+ }
733
+ export declare enum FieldOptions_JSType {
734
+ /** JS_NORMAL - Use the default type. */
735
+ JS_NORMAL = 0,
736
+ /** JS_STRING - Use JavaScript strings. */
737
+ JS_STRING = 1,
738
+ /** JS_NUMBER - Use JavaScript numbers. */
739
+ JS_NUMBER = 2,
740
+ UNRECOGNIZED = -1
741
+ }
742
+ /** If set to RETENTION_SOURCE, the option will be omitted from the binary. */
743
+ export declare enum FieldOptions_OptionRetention {
744
+ RETENTION_UNKNOWN = 0,
745
+ RETENTION_RUNTIME = 1,
746
+ RETENTION_SOURCE = 2,
747
+ UNRECOGNIZED = -1
748
+ }
749
+ /**
750
+ * This indicates the types of entities that the field may apply to when used
751
+ * as an option. If it is unset, then the field may be freely used as an
752
+ * option on any kind of entity.
753
+ */
754
+ export declare enum FieldOptions_OptionTargetType {
755
+ TARGET_TYPE_UNKNOWN = 0,
756
+ TARGET_TYPE_FILE = 1,
757
+ TARGET_TYPE_EXTENSION_RANGE = 2,
758
+ TARGET_TYPE_MESSAGE = 3,
759
+ TARGET_TYPE_FIELD = 4,
760
+ TARGET_TYPE_ONEOF = 5,
761
+ TARGET_TYPE_ENUM = 6,
762
+ TARGET_TYPE_ENUM_ENTRY = 7,
763
+ TARGET_TYPE_SERVICE = 8,
764
+ TARGET_TYPE_METHOD = 9,
765
+ UNRECOGNIZED = -1
766
+ }
767
+ export interface FieldOptions_EditionDefault {
768
+ edition?: Edition | undefined;
769
+ /** Textproto value. */
770
+ value?: string | undefined;
771
+ }
772
+ /** Information about the support window of a feature. */
773
+ export interface FieldOptions_FeatureSupport {
774
+ /**
775
+ * The edition that this feature was first available in. In editions
776
+ * earlier than this one, the default assigned to EDITION_LEGACY will be
777
+ * used, and proto files will not be able to override it.
778
+ */
779
+ editionIntroduced?: Edition | undefined;
780
+ /**
781
+ * The edition this feature becomes deprecated in. Using this after this
782
+ * edition may trigger warnings.
783
+ */
784
+ editionDeprecated?: Edition | undefined;
785
+ /**
786
+ * The deprecation warning text if this feature is used after the edition it
787
+ * was marked deprecated in.
788
+ */
789
+ deprecationWarning?: string | undefined;
790
+ /**
791
+ * The edition this feature is no longer available in. In editions after
792
+ * this one, the last default assigned will be used, and proto files will
793
+ * not be able to override it.
794
+ */
795
+ editionRemoved?: Edition | undefined;
796
+ /**
797
+ * The removal error text if this feature is used after the edition it was
798
+ * removed in.
799
+ */
800
+ removalError?: string | undefined;
801
+ }
802
+ export interface OneofOptions {
803
+ /**
804
+ * Any features defined in the specific edition.
805
+ * WARNING: This field should only be used by protobuf plugins or special
806
+ * cases like the proto compiler. Other uses are discouraged and
807
+ * developers should rely on the protoreflect APIs for their client language.
808
+ */
809
+ features?: FeatureSet | undefined;
810
+ /** The parser stores options it doesn't recognize here. See above. */
811
+ uninterpretedOption: UninterpretedOption[];
812
+ }
813
+ export interface EnumOptions {
814
+ /**
815
+ * Set this option to true to allow mapping different tag names to the same
816
+ * value.
817
+ */
818
+ allowAlias?: boolean | undefined;
819
+ /**
820
+ * Is this enum deprecated?
821
+ * Depending on the target platform, this can emit Deprecated annotations
822
+ * for the enum, or it will be completely ignored; in the very least, this
823
+ * is a formalization for deprecating enums.
824
+ */
825
+ deprecated?: boolean | undefined;
826
+ /**
827
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
828
+ * and strips underscored from the fields before comparison in proto3 only.
829
+ * The new behavior takes `json_name` into account and applies to proto2 as
830
+ * well.
831
+ * TODO Remove this legacy behavior once downstream teams have
832
+ * had time to migrate.
833
+ *
834
+ * @deprecated
835
+ */
836
+ deprecatedLegacyJsonFieldConflicts?: boolean | undefined;
837
+ /**
838
+ * Any features defined in the specific edition.
839
+ * WARNING: This field should only be used by protobuf plugins or special
840
+ * cases like the proto compiler. Other uses are discouraged and
841
+ * developers should rely on the protoreflect APIs for their client language.
842
+ */
843
+ features?: FeatureSet | undefined;
844
+ /** The parser stores options it doesn't recognize here. See above. */
845
+ uninterpretedOption: UninterpretedOption[];
846
+ }
847
+ export interface EnumValueOptions {
848
+ /**
849
+ * Is this enum value deprecated?
850
+ * Depending on the target platform, this can emit Deprecated annotations
851
+ * for the enum value, or it will be completely ignored; in the very least,
852
+ * this is a formalization for deprecating enum values.
853
+ */
854
+ deprecated?: boolean | undefined;
855
+ /**
856
+ * Any features defined in the specific edition.
857
+ * WARNING: This field should only be used by protobuf plugins or special
858
+ * cases like the proto compiler. Other uses are discouraged and
859
+ * developers should rely on the protoreflect APIs for their client language.
860
+ */
861
+ features?: FeatureSet | undefined;
862
+ /**
863
+ * Indicate that fields annotated with this enum value should not be printed
864
+ * out when using debug formats, e.g. when the field contains sensitive
865
+ * credentials.
866
+ */
867
+ debugRedact?: boolean | undefined;
868
+ /** Information about the support window of a feature value. */
869
+ featureSupport?: FieldOptions_FeatureSupport | undefined;
870
+ /** The parser stores options it doesn't recognize here. See above. */
871
+ uninterpretedOption: UninterpretedOption[];
872
+ }
873
+ export interface ServiceOptions {
874
+ /**
875
+ * Any features defined in the specific edition.
876
+ * WARNING: This field should only be used by protobuf plugins or special
877
+ * cases like the proto compiler. Other uses are discouraged and
878
+ * developers should rely on the protoreflect APIs for their client language.
879
+ */
880
+ features?: FeatureSet | undefined;
881
+ /**
882
+ * Is this service deprecated?
883
+ * Depending on the target platform, this can emit Deprecated annotations
884
+ * for the service, or it will be completely ignored; in the very least,
885
+ * this is a formalization for deprecating services.
886
+ */
887
+ deprecated?: boolean | undefined;
888
+ /** The parser stores options it doesn't recognize here. See above. */
889
+ uninterpretedOption: UninterpretedOption[];
890
+ }
891
+ export interface MethodOptions {
892
+ /**
893
+ * Is this method deprecated?
894
+ * Depending on the target platform, this can emit Deprecated annotations
895
+ * for the method, or it will be completely ignored; in the very least,
896
+ * this is a formalization for deprecating methods.
897
+ */
898
+ deprecated?: boolean | undefined;
899
+ idempotencyLevel?: MethodOptions_IdempotencyLevel | undefined;
900
+ /**
901
+ * Any features defined in the specific edition.
902
+ * WARNING: This field should only be used by protobuf plugins or special
903
+ * cases like the proto compiler. Other uses are discouraged and
904
+ * developers should rely on the protoreflect APIs for their client language.
905
+ */
906
+ features?: FeatureSet | undefined;
907
+ /** The parser stores options it doesn't recognize here. See above. */
908
+ uninterpretedOption: UninterpretedOption[];
909
+ }
910
+ /**
911
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
912
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
913
+ * methods, and PUT verb for idempotent methods instead of the default POST.
914
+ */
915
+ export declare enum MethodOptions_IdempotencyLevel {
916
+ IDEMPOTENCY_UNKNOWN = 0,
917
+ /** NO_SIDE_EFFECTS - implies idempotent */
918
+ NO_SIDE_EFFECTS = 1,
919
+ /** IDEMPOTENT - idempotent, but may have side effects */
920
+ IDEMPOTENT = 2,
921
+ UNRECOGNIZED = -1
922
+ }
923
+ /**
924
+ * A message representing a option the parser does not recognize. This only
925
+ * appears in options protos created by the compiler::Parser class.
926
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
927
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
928
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
929
+ * in them.
930
+ */
931
+ export interface UninterpretedOption {
932
+ name: UninterpretedOption_NamePart[];
933
+ /**
934
+ * The value of the uninterpreted option, in whatever type the tokenizer
935
+ * identified it as during parsing. Exactly one of these should be set.
936
+ */
937
+ identifierValue?: string | undefined;
938
+ positiveIntValue?: Long | undefined;
939
+ negativeIntValue?: Long | undefined;
940
+ doubleValue?: number | undefined;
941
+ stringValue?: Uint8Array | undefined;
942
+ aggregateValue?: string | undefined;
943
+ }
944
+ /**
945
+ * The name of the uninterpreted option. Each string represents a segment in
946
+ * a dot-separated name. is_extension is true iff a segment represents an
947
+ * extension (denoted with parentheses in options specs in .proto files).
948
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
949
+ * "foo.(bar.baz).moo".
950
+ */
951
+ export interface UninterpretedOption_NamePart {
952
+ namePart: string;
953
+ isExtension: boolean;
954
+ }
955
+ /**
956
+ * TODO Enums in C++ gencode (and potentially other languages) are
957
+ * not well scoped. This means that each of the feature enums below can clash
958
+ * with each other. The short names we've chosen maximize call-site
959
+ * readability, but leave us very open to this scenario. A future feature will
960
+ * be designed and implemented to handle this, hopefully before we ever hit a
961
+ * conflict here.
962
+ */
963
+ export interface FeatureSet {
964
+ fieldPresence?: FeatureSet_FieldPresence | undefined;
965
+ enumType?: FeatureSet_EnumType | undefined;
966
+ repeatedFieldEncoding?: FeatureSet_RepeatedFieldEncoding | undefined;
967
+ utf8Validation?: FeatureSet_Utf8Validation | undefined;
968
+ messageEncoding?: FeatureSet_MessageEncoding | undefined;
969
+ jsonFormat?: FeatureSet_JsonFormat | undefined;
970
+ enforceNamingStyle?: FeatureSet_EnforceNamingStyle | undefined;
971
+ defaultSymbolVisibility?: FeatureSet_VisibilityFeature_DefaultSymbolVisibility | undefined;
972
+ }
973
+ export declare enum FeatureSet_FieldPresence {
974
+ FIELD_PRESENCE_UNKNOWN = 0,
975
+ EXPLICIT = 1,
976
+ IMPLICIT = 2,
977
+ LEGACY_REQUIRED = 3,
978
+ UNRECOGNIZED = -1
979
+ }
980
+ export declare enum FeatureSet_EnumType {
981
+ ENUM_TYPE_UNKNOWN = 0,
982
+ OPEN = 1,
983
+ CLOSED = 2,
984
+ UNRECOGNIZED = -1
985
+ }
986
+ export declare enum FeatureSet_RepeatedFieldEncoding {
987
+ REPEATED_FIELD_ENCODING_UNKNOWN = 0,
988
+ PACKED = 1,
989
+ EXPANDED = 2,
990
+ UNRECOGNIZED = -1
991
+ }
992
+ export declare enum FeatureSet_Utf8Validation {
993
+ UTF8_VALIDATION_UNKNOWN = 0,
994
+ VERIFY = 2,
995
+ NONE = 3,
996
+ UNRECOGNIZED = -1
997
+ }
998
+ export declare enum FeatureSet_MessageEncoding {
999
+ MESSAGE_ENCODING_UNKNOWN = 0,
1000
+ LENGTH_PREFIXED = 1,
1001
+ DELIMITED = 2,
1002
+ UNRECOGNIZED = -1
1003
+ }
1004
+ export declare enum FeatureSet_JsonFormat {
1005
+ JSON_FORMAT_UNKNOWN = 0,
1006
+ ALLOW = 1,
1007
+ LEGACY_BEST_EFFORT = 2,
1008
+ UNRECOGNIZED = -1
1009
+ }
1010
+ export declare enum FeatureSet_EnforceNamingStyle {
1011
+ ENFORCE_NAMING_STYLE_UNKNOWN = 0,
1012
+ STYLE2024 = 1,
1013
+ STYLE_LEGACY = 2,
1014
+ UNRECOGNIZED = -1
1015
+ }
1016
+ export interface FeatureSet_VisibilityFeature {
1017
+ }
1018
+ export declare enum FeatureSet_VisibilityFeature_DefaultSymbolVisibility {
1019
+ DEFAULT_SYMBOL_VISIBILITY_UNKNOWN = 0,
1020
+ /** EXPORT_ALL - Default pre-EDITION_2024, all UNSET visibility are export. */
1021
+ EXPORT_ALL = 1,
1022
+ /** EXPORT_TOP_LEVEL - All top-level symbols default to export, nested default to local. */
1023
+ EXPORT_TOP_LEVEL = 2,
1024
+ /** LOCAL_ALL - All symbols default to local. */
1025
+ LOCAL_ALL = 3,
1026
+ /**
1027
+ * STRICT - All symbols local by default. Nested types cannot be exported.
1028
+ * With special case caveat for message { enum {} reserved 1 to max; }
1029
+ * This is the recommended setting for new protos.
1030
+ */
1031
+ STRICT = 4,
1032
+ UNRECOGNIZED = -1
1033
+ }
1034
+ /**
1035
+ * A compiled specification for the defaults of a set of features. These
1036
+ * messages are generated from FeatureSet extensions and can be used to seed
1037
+ * feature resolution. The resolution with this object becomes a simple search
1038
+ * for the closest matching edition, followed by proto merges.
1039
+ */
1040
+ export interface FeatureSetDefaults {
1041
+ defaults: FeatureSetDefaults_FeatureSetEditionDefault[];
1042
+ /**
1043
+ * The minimum supported edition (inclusive) when this was constructed.
1044
+ * Editions before this will not have defaults.
1045
+ */
1046
+ minimumEdition?: Edition | undefined;
1047
+ /**
1048
+ * The maximum known edition (inclusive) when this was constructed. Editions
1049
+ * after this will not have reliable defaults.
1050
+ */
1051
+ maximumEdition?: Edition | undefined;
1052
+ }
1053
+ /**
1054
+ * A map from every known edition with a unique set of defaults to its
1055
+ * defaults. Not all editions may be contained here. For a given edition,
1056
+ * the defaults at the closest matching edition ordered at or before it should
1057
+ * be used. This field must be in strict ascending order by edition.
1058
+ */
1059
+ export interface FeatureSetDefaults_FeatureSetEditionDefault {
1060
+ edition?: Edition | undefined;
1061
+ /** Defaults of features that can be overridden in this edition. */
1062
+ overridableFeatures?: FeatureSet | undefined;
1063
+ /** Defaults of features that can't be overridden in this edition. */
1064
+ fixedFeatures?: FeatureSet | undefined;
1065
+ }
1066
+ /**
1067
+ * Encapsulates information about the original source file from which a
1068
+ * FileDescriptorProto was generated.
1069
+ */
1070
+ export interface SourceCodeInfo {
1071
+ /**
1072
+ * A Location identifies a piece of source code in a .proto file which
1073
+ * corresponds to a particular definition. This information is intended
1074
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1075
+ * tools.
1076
+ *
1077
+ * For example, say we have a file like:
1078
+ * message Foo {
1079
+ * optional string foo = 1;
1080
+ * }
1081
+ * Let's look at just the field definition:
1082
+ * optional string foo = 1;
1083
+ * ^ ^^ ^^ ^ ^^^
1084
+ * a bc de f ghi
1085
+ * We have the following locations:
1086
+ * span path represents
1087
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1088
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1089
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1090
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1091
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1092
+ *
1093
+ * Notes:
1094
+ * - A location may refer to a repeated field itself (i.e. not to any
1095
+ * particular index within it). This is used whenever a set of elements are
1096
+ * logically enclosed in a single code segment. For example, an entire
1097
+ * extend block (possibly containing multiple extension definitions) will
1098
+ * have an outer location whose path refers to the "extensions" repeated
1099
+ * field without an index.
1100
+ * - Multiple locations may have the same path. This happens when a single
1101
+ * logical declaration is spread out across multiple places. The most
1102
+ * obvious example is the "extend" block again -- there may be multiple
1103
+ * extend blocks in the same scope, each of which will have the same path.
1104
+ * - A location's span is not always a subset of its parent's span. For
1105
+ * example, the "extendee" of an extension declaration appears at the
1106
+ * beginning of the "extend" block and is shared by all extensions within
1107
+ * the block.
1108
+ * - Just because a location's span is a subset of some other location's span
1109
+ * does not mean that it is a descendant. For example, a "group" defines
1110
+ * both a type and a field in a single declaration. Thus, the locations
1111
+ * corresponding to the type and field and their components will overlap.
1112
+ * - Code which tries to interpret locations should probably be designed to
1113
+ * ignore those that it doesn't understand, as more types of locations could
1114
+ * be recorded in the future.
1115
+ */
1116
+ location: SourceCodeInfo_Location[];
1117
+ }
1118
+ export interface SourceCodeInfo_Location {
1119
+ /**
1120
+ * Identifies which part of the FileDescriptorProto was defined at this
1121
+ * location.
1122
+ *
1123
+ * Each element is a field number or an index. They form a path from
1124
+ * the root FileDescriptorProto to the place where the definition appears.
1125
+ * For example, this path:
1126
+ * [ 4, 3, 2, 7, 1 ]
1127
+ * refers to:
1128
+ * file.message_type(3) // 4, 3
1129
+ * .field(7) // 2, 7
1130
+ * .name() // 1
1131
+ * This is because FileDescriptorProto.message_type has field number 4:
1132
+ * repeated DescriptorProto message_type = 4;
1133
+ * and DescriptorProto.field has field number 2:
1134
+ * repeated FieldDescriptorProto field = 2;
1135
+ * and FieldDescriptorProto.name has field number 1:
1136
+ * optional string name = 1;
1137
+ *
1138
+ * Thus, the above path gives the location of a field name. If we removed
1139
+ * the last element:
1140
+ * [ 4, 3, 2, 7 ]
1141
+ * this path refers to the whole field declaration (from the beginning
1142
+ * of the label to the terminating semicolon).
1143
+ */
1144
+ path: number[];
1145
+ /**
1146
+ * Always has exactly three or four elements: start line, start column,
1147
+ * end line (optional, otherwise assumed same as start line), end column.
1148
+ * These are packed into a single field for efficiency. Note that line
1149
+ * and column numbers are zero-based -- typically you will want to add
1150
+ * 1 to each before displaying to a user.
1151
+ */
1152
+ span: number[];
1153
+ /**
1154
+ * If this SourceCodeInfo represents a complete declaration, these are any
1155
+ * comments appearing before and after the declaration which appear to be
1156
+ * attached to the declaration.
1157
+ *
1158
+ * A series of line comments appearing on consecutive lines, with no other
1159
+ * tokens appearing on those lines, will be treated as a single comment.
1160
+ *
1161
+ * leading_detached_comments will keep paragraphs of comments that appear
1162
+ * before (but not connected to) the current element. Each paragraph,
1163
+ * separated by empty lines, will be one comment element in the repeated
1164
+ * field.
1165
+ *
1166
+ * Only the comment content is provided; comment markers (e.g. //) are
1167
+ * stripped out. For block comments, leading whitespace and an asterisk
1168
+ * will be stripped from the beginning of each line other than the first.
1169
+ * Newlines are included in the output.
1170
+ *
1171
+ * Examples:
1172
+ *
1173
+ * optional int32 foo = 1; // Comment attached to foo.
1174
+ * // Comment attached to bar.
1175
+ * optional int32 bar = 2;
1176
+ *
1177
+ * optional string baz = 3;
1178
+ * // Comment attached to baz.
1179
+ * // Another line attached to baz.
1180
+ *
1181
+ * // Comment attached to moo.
1182
+ * //
1183
+ * // Another line attached to moo.
1184
+ * optional double moo = 4;
1185
+ *
1186
+ * // Detached comment for corge. This is not leading or trailing comments
1187
+ * // to moo or corge because there are blank lines separating it from
1188
+ * // both.
1189
+ *
1190
+ * // Detached comment for corge paragraph 2.
1191
+ *
1192
+ * optional string corge = 5;
1193
+ * /* Block comment attached
1194
+ * * to corge. Leading asterisks
1195
+ * * will be removed. * /
1196
+ * /* Block comment attached to
1197
+ * * grault. * /
1198
+ * optional int32 grault = 6;
1199
+ *
1200
+ * // ignored detached comments.
1201
+ */
1202
+ leadingComments?: string | undefined;
1203
+ trailingComments?: string | undefined;
1204
+ leadingDetachedComments: string[];
1205
+ }
1206
+ /**
1207
+ * Describes the relationship between generated code and its original source
1208
+ * file. A GeneratedCodeInfo message is associated with only one generated
1209
+ * source file, but may contain references to different source .proto files.
1210
+ */
1211
+ export interface GeneratedCodeInfo {
1212
+ /**
1213
+ * An Annotation connects some span of text in generated code to an element
1214
+ * of its generating .proto file.
1215
+ */
1216
+ annotation: GeneratedCodeInfo_Annotation[];
1217
+ }
1218
+ export interface GeneratedCodeInfo_Annotation {
1219
+ /**
1220
+ * Identifies the element in the original source .proto file. This field
1221
+ * is formatted the same as SourceCodeInfo.Location.path.
1222
+ */
1223
+ path: number[];
1224
+ /** Identifies the filesystem path to the original source .proto. */
1225
+ sourceFile?: string | undefined;
1226
+ /**
1227
+ * Identifies the starting offset in bytes in the generated code
1228
+ * that relates to the identified object.
1229
+ */
1230
+ begin?: number | undefined;
1231
+ /**
1232
+ * Identifies the ending offset in bytes in the generated code that
1233
+ * relates to the identified object. The end offset should be one past
1234
+ * the last relevant byte (so the length of the text = end - begin).
1235
+ */
1236
+ end?: number | undefined;
1237
+ semantic?: GeneratedCodeInfo_Annotation_Semantic | undefined;
1238
+ }
1239
+ /**
1240
+ * Represents the identified object's effect on the element in the original
1241
+ * .proto file.
1242
+ */
1243
+ export declare enum GeneratedCodeInfo_Annotation_Semantic {
1244
+ /** NONE - There is no effect or the effect is indescribable. */
1245
+ NONE = 0,
1246
+ /** SET - The element is set or otherwise mutated. */
1247
+ SET = 1,
1248
+ /** ALIAS - An alias to the element is returned. */
1249
+ ALIAS = 2,
1250
+ UNRECOGNIZED = -1
1251
+ }
1252
+ export declare const FileDescriptorSet: MessageFns<FileDescriptorSet>;
1253
+ export declare const FileDescriptorProto: MessageFns<FileDescriptorProto>;
1254
+ export declare const DescriptorProto: MessageFns<DescriptorProto>;
1255
+ export declare const DescriptorProto_ExtensionRange: MessageFns<DescriptorProto_ExtensionRange>;
1256
+ export declare const DescriptorProto_ReservedRange: MessageFns<DescriptorProto_ReservedRange>;
1257
+ export declare const ExtensionRangeOptions: MessageFns<ExtensionRangeOptions>;
1258
+ export declare const ExtensionRangeOptions_Declaration: MessageFns<ExtensionRangeOptions_Declaration>;
1259
+ export declare const FieldDescriptorProto: MessageFns<FieldDescriptorProto>;
1260
+ export declare const OneofDescriptorProto: MessageFns<OneofDescriptorProto>;
1261
+ export declare const EnumDescriptorProto: MessageFns<EnumDescriptorProto>;
1262
+ export declare const EnumDescriptorProto_EnumReservedRange: MessageFns<EnumDescriptorProto_EnumReservedRange>;
1263
+ export declare const EnumValueDescriptorProto: MessageFns<EnumValueDescriptorProto>;
1264
+ export declare const ServiceDescriptorProto: MessageFns<ServiceDescriptorProto>;
1265
+ export declare const MethodDescriptorProto: MessageFns<MethodDescriptorProto>;
1266
+ export declare const FileOptions: MessageFns<FileOptions>;
1267
+ export declare const MessageOptions: MessageFns<MessageOptions>;
1268
+ export declare const FieldOptions: MessageFns<FieldOptions>;
1269
+ export declare const FieldOptions_EditionDefault: MessageFns<FieldOptions_EditionDefault>;
1270
+ export declare const FieldOptions_FeatureSupport: MessageFns<FieldOptions_FeatureSupport>;
1271
+ export declare const OneofOptions: MessageFns<OneofOptions>;
1272
+ export declare const EnumOptions: MessageFns<EnumOptions>;
1273
+ export declare const EnumValueOptions: MessageFns<EnumValueOptions>;
1274
+ export declare const ServiceOptions: MessageFns<ServiceOptions>;
1275
+ export declare const MethodOptions: MessageFns<MethodOptions>;
1276
+ export declare const UninterpretedOption: MessageFns<UninterpretedOption>;
1277
+ export declare const UninterpretedOption_NamePart: MessageFns<UninterpretedOption_NamePart>;
1278
+ export declare const FeatureSet: MessageFns<FeatureSet>;
1279
+ export declare const FeatureSet_VisibilityFeature: MessageFns<FeatureSet_VisibilityFeature>;
1280
+ export declare const FeatureSetDefaults: MessageFns<FeatureSetDefaults>;
1281
+ export declare const FeatureSetDefaults_FeatureSetEditionDefault: MessageFns<FeatureSetDefaults_FeatureSetEditionDefault>;
1282
+ export declare const SourceCodeInfo: MessageFns<SourceCodeInfo>;
1283
+ export declare const SourceCodeInfo_Location: MessageFns<SourceCodeInfo_Location>;
1284
+ export declare const GeneratedCodeInfo: MessageFns<GeneratedCodeInfo>;
1285
+ export declare const GeneratedCodeInfo_Annotation: MessageFns<GeneratedCodeInfo_Annotation>;
1286
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1287
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
1288
+ [K in keyof T]?: DeepPartial<T[K]>;
1289
+ } : Partial<T>;
1290
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
1291
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
1292
+ [K in keyof P]: Exact<P[K], I[K]>;
1293
+ } & {
1294
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
1295
+ };
1296
+ export interface MessageFns<T> {
1297
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
1298
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
1299
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
1300
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
1301
+ }
1302
+ export {};
1303
+ //# sourceMappingURL=descriptor.d.ts.map