@coralogix/rum-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +31 -0
  3. package/.github/workflows/npm-publish.yml +41 -0
  4. package/README.md +59 -0
  5. package/api/rum-api.ts +73 -0
  6. package/cli/rum-cli.ts +79 -0
  7. package/cli/utils/traverse-folder.util.ts +33 -0
  8. package/config/config.ts +31 -0
  9. package/config/index.js +7 -0
  10. package/config/index.ts +3 -0
  11. package/dist/api/rum-api.d.ts +2 -0
  12. package/dist/api/rum-api.js +86 -0
  13. package/dist/cli/rum-cli.d.ts +3 -0
  14. package/dist/cli/rum-cli.js +77 -0
  15. package/dist/cli/utils/traverse-folder.util.d.ts +2 -0
  16. package/dist/cli/utils/traverse-folder.util.js +42 -0
  17. package/dist/config/config.d.ts +16 -0
  18. package/dist/config/config.js +16 -0
  19. package/dist/config/index.d.ts +2 -0
  20. package/dist/config/index.js +8 -0
  21. package/dist/model/cli.model.d.ts +1 -0
  22. package/dist/model/cli.model.js +13 -0
  23. package/dist/src/app/proto-models/com/coralogix/rum/v2/audit_log.d.ts +24 -0
  24. package/dist/src/app/proto-models/com/coralogix/rum/v2/audit_log.js +62 -0
  25. package/dist/src/app/proto-models/com/coralogix/rum/v2/chunk.d.ts +43 -0
  26. package/dist/src/app/proto-models/com/coralogix/rum/v2/chunk.js +252 -0
  27. package/dist/src/app/proto-models/com/coralogix/rum/v2/file.d.ts +26 -0
  28. package/dist/src/app/proto-models/com/coralogix/rum/v2/file.js +140 -0
  29. package/dist/src/app/proto-models/com/coralogix/rum/v2/rum_service.d.ts +69 -0
  30. package/dist/src/app/proto-models/com/coralogix/rum/v2/rum_service.js +190 -0
  31. package/dist/src/app/proto-models/com/coralogix/rum/v2/rum_source_map_service.d.ts +66 -0
  32. package/dist/src/app/proto-models/com/coralogix/rum/v2/rum_source_map_service.js +145 -0
  33. package/dist/src/app/proto-models/com/coralogix/rum/v2/source_code_file_mapping.d.ts +54 -0
  34. package/dist/src/app/proto-models/com/coralogix/rum/v2/source_code_file_mapping.js +264 -0
  35. package/dist/src/app/proto-models/google/protobuf/descriptor.d.ts +1140 -0
  36. package/dist/src/app/proto-models/google/protobuf/descriptor.js +3612 -0
  37. package/generate-protos.sh +14 -0
  38. package/meta.yaml +4 -0
  39. package/model/cli.model.ts +9 -0
  40. package/package.json +46 -0
  41. package/prepublish.sh +19 -0
  42. package/protofetch.lock +18 -0
  43. package/protofetch.toml +7 -0
  44. package/protos/com/coralogix/rum/v2/audit_log.proto +13 -0
  45. package/protos/com/coralogix/rum/v2/chunk.proto +18 -0
  46. package/protos/com/coralogix/rum/v2/file.proto +8 -0
  47. package/protos/com/coralogix/rum/v2/rum_service.proto +20 -0
  48. package/protos/com/coralogix/rum/v2/rum_source_map_service.proto +16 -0
  49. package/protos/com/coralogix/rum/v2/source_code_file_mapping.proto +15 -0
  50. package/protoset.bin +0 -0
  51. package/src/app/proto-models/com/coralogix/rum/v2/audit_log.ts +76 -0
  52. package/src/app/proto-models/com/coralogix/rum/v2/chunk.ts +298 -0
  53. package/src/app/proto-models/com/coralogix/rum/v2/file.ts +164 -0
  54. package/src/app/proto-models/com/coralogix/rum/v2/rum_service.ts +223 -0
  55. package/src/app/proto-models/com/coralogix/rum/v2/rum_source_map_service.ts +174 -0
  56. package/src/app/proto-models/com/coralogix/rum/v2/source_code_file_mapping.ts +316 -0
  57. package/src/app/proto-models/google/protobuf/descriptor.ts +4715 -0
  58. package/tsconfig.build.json +6 -0
  59. package/tsconfig.json +25 -0
@@ -0,0 +1,1140 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "google.protobuf";
3
+ /**
4
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
5
+ * files it parses.
6
+ */
7
+ export interface FileDescriptorSet {
8
+ file: FileDescriptorProto[];
9
+ }
10
+ /** Describes a complete .proto file. */
11
+ export interface FileDescriptorProto {
12
+ /** file name, relative to root of source tree */
13
+ name: string;
14
+ /** e.g. "foo", "foo.bar", etc. */
15
+ package: string;
16
+ /** Names of files imported by this file. */
17
+ dependency: string[];
18
+ /** Indexes of the public imported files in the dependency list above. */
19
+ publicDependency: number[];
20
+ /**
21
+ * Indexes of the weak imported files in the dependency list.
22
+ * For Google-internal migration only. Do not use.
23
+ */
24
+ weakDependency: number[];
25
+ /** All top-level definitions in this file. */
26
+ messageType: DescriptorProto[];
27
+ enumType: EnumDescriptorProto[];
28
+ service: ServiceDescriptorProto[];
29
+ extension: FieldDescriptorProto[];
30
+ options: FileOptions | undefined;
31
+ /**
32
+ * This field contains optional information about the original source code.
33
+ * You may safely remove this entire field without harming runtime
34
+ * functionality of the descriptors -- the information is needed only by
35
+ * development tools.
36
+ */
37
+ sourceCodeInfo: SourceCodeInfo | undefined;
38
+ /**
39
+ * The syntax of the proto file.
40
+ * The supported values are "proto2", "proto3", and "editions".
41
+ *
42
+ * If `edition` is present, this value must be "editions".
43
+ */
44
+ syntax: string;
45
+ /** The edition of the proto file, which is an opaque string. */
46
+ edition: string;
47
+ }
48
+ /** Describes a message type. */
49
+ export interface DescriptorProto {
50
+ name: string;
51
+ field: FieldDescriptorProto[];
52
+ extension: FieldDescriptorProto[];
53
+ nestedType: DescriptorProto[];
54
+ enumType: EnumDescriptorProto[];
55
+ extensionRange: DescriptorProto_ExtensionRange[];
56
+ oneofDecl: OneofDescriptorProto[];
57
+ options: MessageOptions | undefined;
58
+ reservedRange: DescriptorProto_ReservedRange[];
59
+ /**
60
+ * Reserved field names, which may not be used by fields in the same message.
61
+ * A given name may only be reserved once.
62
+ */
63
+ reservedName: string[];
64
+ }
65
+ export interface DescriptorProto_ExtensionRange {
66
+ /** Inclusive. */
67
+ start: number;
68
+ /** Exclusive. */
69
+ end: number;
70
+ options: ExtensionRangeOptions | undefined;
71
+ }
72
+ /**
73
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
74
+ * fields or extension ranges in the same message. Reserved ranges may
75
+ * not overlap.
76
+ */
77
+ export interface DescriptorProto_ReservedRange {
78
+ /** Inclusive. */
79
+ start: number;
80
+ /** Exclusive. */
81
+ end: number;
82
+ }
83
+ export interface ExtensionRangeOptions {
84
+ /** The parser stores options it doesn't recognize here. See above. */
85
+ uninterpretedOption: UninterpretedOption[];
86
+ }
87
+ /** Describes a field within a message. */
88
+ export interface FieldDescriptorProto {
89
+ name: string;
90
+ number: number;
91
+ label: FieldDescriptorProto_Label;
92
+ /**
93
+ * If type_name is set, this need not be set. If both this and type_name
94
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
95
+ */
96
+ type: FieldDescriptorProto_Type;
97
+ /**
98
+ * For message and enum types, this is the name of the type. If the name
99
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
100
+ * rules are used to find the type (i.e. first the nested types within this
101
+ * message are searched, then within the parent, on up to the root
102
+ * namespace).
103
+ */
104
+ typeName: string;
105
+ /**
106
+ * For extensions, this is the name of the type being extended. It is
107
+ * resolved in the same manner as type_name.
108
+ */
109
+ extendee: string;
110
+ /**
111
+ * For numeric types, contains the original text representation of the value.
112
+ * For booleans, "true" or "false".
113
+ * For strings, contains the default text contents (not escaped in any way).
114
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
115
+ */
116
+ defaultValue: string;
117
+ /**
118
+ * If set, gives the index of a oneof in the containing type's oneof_decl
119
+ * list. This field is a member of that oneof.
120
+ */
121
+ oneofIndex: number;
122
+ /**
123
+ * JSON name of this field. The value is set by protocol compiler. If the
124
+ * user has set a "json_name" option on this field, that option's value
125
+ * will be used. Otherwise, it's deduced from the field's name by converting
126
+ * it to camelCase.
127
+ */
128
+ jsonName: string;
129
+ options: FieldOptions | undefined;
130
+ /**
131
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
132
+ * tracks presence regardless of field type.
133
+ *
134
+ * When proto3_optional is true, this field must be belong to a oneof to
135
+ * signal to old proto3 clients that presence is tracked for this field. This
136
+ * oneof is known as a "synthetic" oneof, and this field must be its sole
137
+ * member (each proto3 optional field gets its own synthetic oneof). Synthetic
138
+ * oneofs exist in the descriptor only, and do not generate any API. Synthetic
139
+ * oneofs must be ordered after all "real" oneofs.
140
+ *
141
+ * For message fields, proto3_optional doesn't create any semantic change,
142
+ * since non-repeated message fields always track presence. However it still
143
+ * indicates the semantic detail of whether the user wrote "optional" or not.
144
+ * This can be useful for round-tripping the .proto file. For consistency we
145
+ * give message fields a synthetic oneof also, even though it is not required
146
+ * to track presence. This is especially important because the parser can't
147
+ * tell if a field is a message or an enum, so it must always create a
148
+ * synthetic oneof.
149
+ *
150
+ * Proto2 optional fields do not set this flag, because they already indicate
151
+ * optional with `LABEL_OPTIONAL`.
152
+ */
153
+ proto3Optional: boolean;
154
+ }
155
+ export declare enum FieldDescriptorProto_Type {
156
+ /**
157
+ * TYPE_DOUBLE - 0 is reserved for errors.
158
+ * Order is weird for historical reasons.
159
+ */
160
+ TYPE_DOUBLE = 1,
161
+ TYPE_FLOAT = 2,
162
+ /**
163
+ * TYPE_INT64 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
164
+ * negative values are likely.
165
+ */
166
+ TYPE_INT64 = 3,
167
+ TYPE_UINT64 = 4,
168
+ /**
169
+ * TYPE_INT32 - Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
170
+ * negative values are likely.
171
+ */
172
+ TYPE_INT32 = 5,
173
+ TYPE_FIXED64 = 6,
174
+ TYPE_FIXED32 = 7,
175
+ TYPE_BOOL = 8,
176
+ TYPE_STRING = 9,
177
+ /**
178
+ * TYPE_GROUP - Tag-delimited aggregate.
179
+ * Group type is deprecated and not supported in proto3. However, Proto3
180
+ * implementations should still be able to parse the group wire format and
181
+ * treat group fields as unknown fields.
182
+ */
183
+ TYPE_GROUP = 10,
184
+ /** TYPE_MESSAGE - Length-delimited aggregate. */
185
+ TYPE_MESSAGE = 11,
186
+ /** TYPE_BYTES - New in version 2. */
187
+ TYPE_BYTES = 12,
188
+ TYPE_UINT32 = 13,
189
+ TYPE_ENUM = 14,
190
+ TYPE_SFIXED32 = 15,
191
+ TYPE_SFIXED64 = 16,
192
+ /** TYPE_SINT32 - Uses ZigZag encoding. */
193
+ TYPE_SINT32 = 17,
194
+ /** TYPE_SINT64 - Uses ZigZag encoding. */
195
+ TYPE_SINT64 = 18
196
+ }
197
+ export declare function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type;
198
+ export declare function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string;
199
+ export declare enum FieldDescriptorProto_Label {
200
+ /** LABEL_OPTIONAL - 0 is reserved for errors */
201
+ LABEL_OPTIONAL = 1,
202
+ LABEL_REQUIRED = 2,
203
+ LABEL_REPEATED = 3
204
+ }
205
+ export declare function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label;
206
+ export declare function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string;
207
+ /** Describes a oneof. */
208
+ export interface OneofDescriptorProto {
209
+ name: string;
210
+ options: OneofOptions | undefined;
211
+ }
212
+ /** Describes an enum type. */
213
+ export interface EnumDescriptorProto {
214
+ name: string;
215
+ value: EnumValueDescriptorProto[];
216
+ options: EnumOptions | undefined;
217
+ /**
218
+ * Range of reserved numeric values. Reserved numeric values may not be used
219
+ * by enum values in the same enum declaration. Reserved ranges may not
220
+ * overlap.
221
+ */
222
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
223
+ /**
224
+ * Reserved enum value names, which may not be reused. A given name may only
225
+ * be reserved once.
226
+ */
227
+ reservedName: string[];
228
+ }
229
+ /**
230
+ * Range of reserved numeric values. Reserved values may not be used by
231
+ * entries in the same enum. Reserved ranges may not overlap.
232
+ *
233
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
234
+ * is inclusive such that it can appropriately represent the entire int32
235
+ * domain.
236
+ */
237
+ export interface EnumDescriptorProto_EnumReservedRange {
238
+ /** Inclusive. */
239
+ start: number;
240
+ /** Inclusive. */
241
+ end: number;
242
+ }
243
+ /** Describes a value within an enum. */
244
+ export interface EnumValueDescriptorProto {
245
+ name: string;
246
+ number: number;
247
+ options: EnumValueOptions | undefined;
248
+ }
249
+ /** Describes a service. */
250
+ export interface ServiceDescriptorProto {
251
+ name: string;
252
+ method: MethodDescriptorProto[];
253
+ options: ServiceOptions | undefined;
254
+ }
255
+ /** Describes a method of a service. */
256
+ export interface MethodDescriptorProto {
257
+ name: string;
258
+ /**
259
+ * Input and output type names. These are resolved in the same way as
260
+ * FieldDescriptorProto.type_name, but must refer to a message type.
261
+ */
262
+ inputType: string;
263
+ outputType: string;
264
+ options: MethodOptions | undefined;
265
+ /** Identifies if client streams multiple client messages */
266
+ clientStreaming: boolean;
267
+ /** Identifies if server streams multiple server messages */
268
+ serverStreaming: boolean;
269
+ }
270
+ export interface FileOptions {
271
+ /**
272
+ * Sets the Java package where classes generated from this .proto will be
273
+ * placed. By default, the proto package is used, but this is often
274
+ * inappropriate because proto packages do not normally start with backwards
275
+ * domain names.
276
+ */
277
+ javaPackage: string;
278
+ /**
279
+ * Controls the name of the wrapper Java class generated for the .proto file.
280
+ * That class will always contain the .proto file's getDescriptor() method as
281
+ * well as any top-level extensions defined in the .proto file.
282
+ * If java_multiple_files is disabled, then all the other classes from the
283
+ * .proto file will be nested inside the single wrapper outer class.
284
+ */
285
+ javaOuterClassname: string;
286
+ /**
287
+ * If enabled, then the Java code generator will generate a separate .java
288
+ * file for each top-level message, enum, and service defined in the .proto
289
+ * file. Thus, these types will *not* be nested inside the wrapper class
290
+ * named by java_outer_classname. However, the wrapper class will still be
291
+ * generated to contain the file's getDescriptor() method as well as any
292
+ * top-level extensions defined in the file.
293
+ */
294
+ javaMultipleFiles: boolean;
295
+ /**
296
+ * This option does nothing.
297
+ *
298
+ * @deprecated
299
+ */
300
+ javaGenerateEqualsAndHash: boolean;
301
+ /**
302
+ * If set true, then the Java2 code generator will generate code that
303
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
304
+ * byte sequence to a string field.
305
+ * Message reflection will do the same.
306
+ * However, an extension field still accepts non-UTF-8 byte sequences.
307
+ * This option has no effect on when used with the lite runtime.
308
+ */
309
+ javaStringCheckUtf8: boolean;
310
+ optimizeFor: FileOptions_OptimizeMode;
311
+ /**
312
+ * Sets the Go package where structs generated from this .proto will be
313
+ * placed. If omitted, the Go package will be derived from the following:
314
+ * - The basename of the package import path, if provided.
315
+ * - Otherwise, the package statement in the .proto file, if present.
316
+ * - Otherwise, the basename of the .proto file, without extension.
317
+ */
318
+ goPackage: string;
319
+ /**
320
+ * Should generic services be generated in each language? "Generic" services
321
+ * are not specific to any particular RPC system. They are generated by the
322
+ * main code generators in each language (without additional plugins).
323
+ * Generic services were the only kind of service generation supported by
324
+ * early versions of google.protobuf.
325
+ *
326
+ * Generic services are now considered deprecated in favor of using plugins
327
+ * that generate code specific to your particular RPC system. Therefore,
328
+ * these default to false. Old code which depends on generic services should
329
+ * explicitly set them to true.
330
+ */
331
+ ccGenericServices: boolean;
332
+ javaGenericServices: boolean;
333
+ pyGenericServices: boolean;
334
+ phpGenericServices: boolean;
335
+ /**
336
+ * Is this file deprecated?
337
+ * Depending on the target platform, this can emit Deprecated annotations
338
+ * for everything in the file, or it will be completely ignored; in the very
339
+ * least, this is a formalization for deprecating files.
340
+ */
341
+ deprecated: boolean;
342
+ /**
343
+ * Enables the use of arenas for the proto messages in this file. This applies
344
+ * only to generated classes for C++.
345
+ */
346
+ ccEnableArenas: boolean;
347
+ /**
348
+ * Sets the objective c class prefix which is prepended to all objective c
349
+ * generated classes from this .proto. There is no default.
350
+ */
351
+ objcClassPrefix: string;
352
+ /** Namespace for generated classes; defaults to the package. */
353
+ csharpNamespace: string;
354
+ /**
355
+ * By default Swift generators will take the proto package and CamelCase it
356
+ * replacing '.' with underscore and use that to prefix the types/symbols
357
+ * defined. When this options is provided, they will use this value instead
358
+ * to prefix the types/symbols defined.
359
+ */
360
+ swiftPrefix: string;
361
+ /**
362
+ * Sets the php class prefix which is prepended to all php generated classes
363
+ * from this .proto. Default is empty.
364
+ */
365
+ phpClassPrefix: string;
366
+ /**
367
+ * Use this option to change the namespace of php generated classes. Default
368
+ * is empty. When this option is empty, the package name will be used for
369
+ * determining the namespace.
370
+ */
371
+ phpNamespace: string;
372
+ /**
373
+ * Use this option to change the namespace of php generated metadata classes.
374
+ * Default is empty. When this option is empty, the proto file name will be
375
+ * used for determining the namespace.
376
+ */
377
+ phpMetadataNamespace: string;
378
+ /**
379
+ * Use this option to change the package of ruby generated classes. Default
380
+ * is empty. When this option is not set, the package name will be used for
381
+ * determining the ruby package.
382
+ */
383
+ rubyPackage: string;
384
+ /**
385
+ * The parser stores options it doesn't recognize here.
386
+ * See the documentation for the "Options" section above.
387
+ */
388
+ uninterpretedOption: UninterpretedOption[];
389
+ }
390
+ /** Generated classes can be optimized for speed or code size. */
391
+ export declare enum FileOptions_OptimizeMode {
392
+ /** SPEED - Generate complete code for parsing, serialization, */
393
+ SPEED = 1,
394
+ /** CODE_SIZE - etc. */
395
+ CODE_SIZE = 2,
396
+ /** LITE_RUNTIME - Generate code using MessageLite and the lite runtime. */
397
+ LITE_RUNTIME = 3
398
+ }
399
+ export declare function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode;
400
+ export declare function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string;
401
+ export interface MessageOptions {
402
+ /**
403
+ * Set true to use the old proto1 MessageSet wire format for extensions.
404
+ * This is provided for backwards-compatibility with the MessageSet wire
405
+ * format. You should not use this for any other reason: It's less
406
+ * efficient, has fewer features, and is more complicated.
407
+ *
408
+ * The message must be defined exactly as follows:
409
+ * message Foo {
410
+ * option message_set_wire_format = true;
411
+ * extensions 4 to max;
412
+ * }
413
+ * Note that the message cannot have any defined fields; MessageSets only
414
+ * have extensions.
415
+ *
416
+ * All extensions of your type must be singular messages; e.g. they cannot
417
+ * be int32s, enums, or repeated messages.
418
+ *
419
+ * Because this is an option, the above two restrictions are not enforced by
420
+ * the protocol compiler.
421
+ */
422
+ messageSetWireFormat: boolean;
423
+ /**
424
+ * Disables the generation of the standard "descriptor()" accessor, which can
425
+ * conflict with a field of the same name. This is meant to make migration
426
+ * from proto1 easier; new code should avoid fields named "descriptor".
427
+ */
428
+ noStandardDescriptorAccessor: boolean;
429
+ /**
430
+ * Is this message deprecated?
431
+ * Depending on the target platform, this can emit Deprecated annotations
432
+ * for the message, or it will be completely ignored; in the very least,
433
+ * this is a formalization for deprecating messages.
434
+ */
435
+ deprecated: boolean;
436
+ /**
437
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
438
+ * instead. The option should only be implicitly set by the proto compiler
439
+ * parser.
440
+ *
441
+ * Whether the message is an automatically generated map entry type for the
442
+ * maps field.
443
+ *
444
+ * For maps fields:
445
+ * map<KeyType, ValueType> map_field = 1;
446
+ * The parsed descriptor looks like:
447
+ * message MapFieldEntry {
448
+ * option map_entry = true;
449
+ * optional KeyType key = 1;
450
+ * optional ValueType value = 2;
451
+ * }
452
+ * repeated MapFieldEntry map_field = 1;
453
+ *
454
+ * Implementations may choose not to generate the map_entry=true message, but
455
+ * use a native map in the target language to hold the keys and values.
456
+ * The reflection APIs in such implementations still need to work as
457
+ * if the field is a repeated message field.
458
+ */
459
+ mapEntry: boolean;
460
+ /**
461
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
462
+ * and strips underscored from the fields before comparison in proto3 only.
463
+ * The new behavior takes `json_name` into account and applies to proto2 as
464
+ * well.
465
+ *
466
+ * This should only be used as a temporary measure against broken builds due
467
+ * to the change in behavior for JSON field name conflicts.
468
+ *
469
+ * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
470
+ * teams have had time to migrate.
471
+ *
472
+ * @deprecated
473
+ */
474
+ deprecatedLegacyJsonFieldConflicts: boolean;
475
+ /** The parser stores options it doesn't recognize here. See above. */
476
+ uninterpretedOption: UninterpretedOption[];
477
+ }
478
+ export interface FieldOptions {
479
+ /**
480
+ * The ctype option instructs the C++ code generator to use a different
481
+ * representation of the field than it normally would. See the specific
482
+ * options below. This option is not yet implemented in the open source
483
+ * release -- sorry, we'll try to include it in a future version!
484
+ */
485
+ ctype: FieldOptions_CType;
486
+ /**
487
+ * The packed option can be enabled for repeated primitive fields to enable
488
+ * a more efficient representation on the wire. Rather than repeatedly
489
+ * writing the tag and type for each element, the entire array is encoded as
490
+ * a single length-delimited blob. In proto3, only explicit setting it to
491
+ * false will avoid using packed encoding.
492
+ */
493
+ packed: boolean;
494
+ /**
495
+ * The jstype option determines the JavaScript type used for values of the
496
+ * field. The option is permitted only for 64 bit integral and fixed types
497
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
498
+ * is represented as JavaScript string, which avoids loss of precision that
499
+ * can happen when a large value is converted to a floating point JavaScript.
500
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
501
+ * use the JavaScript "number" type. The behavior of the default option
502
+ * JS_NORMAL is implementation dependent.
503
+ *
504
+ * This option is an enum to permit additional types to be added, e.g.
505
+ * goog.math.Integer.
506
+ */
507
+ jstype: FieldOptions_JSType;
508
+ /**
509
+ * Should this field be parsed lazily? Lazy applies only to message-type
510
+ * fields. It means that when the outer message is initially parsed, the
511
+ * inner message's contents will not be parsed but instead stored in encoded
512
+ * form. The inner message will actually be parsed when it is first accessed.
513
+ *
514
+ * This is only a hint. Implementations are free to choose whether to use
515
+ * eager or lazy parsing regardless of the value of this option. However,
516
+ * setting this option true suggests that the protocol author believes that
517
+ * using lazy parsing on this field is worth the additional bookkeeping
518
+ * overhead typically needed to implement it.
519
+ *
520
+ * This option does not affect the public interface of any generated code;
521
+ * all method signatures remain the same. Furthermore, thread-safety of the
522
+ * interface is not affected by this option; const methods remain safe to
523
+ * call from multiple threads concurrently, while non-const methods continue
524
+ * to require exclusive access.
525
+ *
526
+ * Note that implementations may choose not to check required fields within
527
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
528
+ * may return true even if the inner message has missing required fields.
529
+ * This is necessary because otherwise the inner message would have to be
530
+ * parsed in order to perform the check, defeating the purpose of lazy
531
+ * parsing. An implementation which chooses not to check required fields
532
+ * must be consistent about it. That is, for any particular sub-message, the
533
+ * implementation must either *always* check its required fields, or *never*
534
+ * check its required fields, regardless of whether or not the message has
535
+ * been parsed.
536
+ *
537
+ * As of May 2022, lazy verifies the contents of the byte stream during
538
+ * parsing. An invalid byte stream will cause the overall parsing to fail.
539
+ */
540
+ lazy: boolean;
541
+ /**
542
+ * unverified_lazy does no correctness checks on the byte stream. This should
543
+ * only be used where lazy with verification is prohibitive for performance
544
+ * reasons.
545
+ */
546
+ unverifiedLazy: boolean;
547
+ /**
548
+ * Is this field deprecated?
549
+ * Depending on the target platform, this can emit Deprecated annotations
550
+ * for accessors, or it will be completely ignored; in the very least, this
551
+ * is a formalization for deprecating fields.
552
+ */
553
+ deprecated: boolean;
554
+ /** For Google-internal migration only. Do not use. */
555
+ weak: boolean;
556
+ /**
557
+ * Indicate that the field value should not be printed out when using debug
558
+ * formats, e.g. when the field contains sensitive credentials.
559
+ */
560
+ debugRedact: boolean;
561
+ retention: FieldOptions_OptionRetention;
562
+ target: FieldOptions_OptionTargetType;
563
+ /** The parser stores options it doesn't recognize here. See above. */
564
+ uninterpretedOption: UninterpretedOption[];
565
+ }
566
+ export declare enum FieldOptions_CType {
567
+ /** STRING - Default mode. */
568
+ STRING = 0,
569
+ CORD = 1,
570
+ STRING_PIECE = 2
571
+ }
572
+ export declare function fieldOptions_CTypeFromJSON(object: any): FieldOptions_CType;
573
+ export declare function fieldOptions_CTypeToJSON(object: FieldOptions_CType): string;
574
+ export declare enum FieldOptions_JSType {
575
+ /** JS_NORMAL - Use the default type. */
576
+ JS_NORMAL = 0,
577
+ /** JS_STRING - Use JavaScript strings. */
578
+ JS_STRING = 1,
579
+ /** JS_NUMBER - Use JavaScript numbers. */
580
+ JS_NUMBER = 2
581
+ }
582
+ export declare function fieldOptions_JSTypeFromJSON(object: any): FieldOptions_JSType;
583
+ export declare function fieldOptions_JSTypeToJSON(object: FieldOptions_JSType): string;
584
+ /**
585
+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.
586
+ * Note: as of January 2023, support for this is in progress and does not yet
587
+ * have an effect (b/264593489).
588
+ */
589
+ export declare enum FieldOptions_OptionRetention {
590
+ RETENTION_UNKNOWN = 0,
591
+ RETENTION_RUNTIME = 1,
592
+ RETENTION_SOURCE = 2
593
+ }
594
+ export declare function fieldOptions_OptionRetentionFromJSON(object: any): FieldOptions_OptionRetention;
595
+ export declare function fieldOptions_OptionRetentionToJSON(object: FieldOptions_OptionRetention): string;
596
+ /**
597
+ * This indicates the types of entities that the field may apply to when used
598
+ * as an option. If it is unset, then the field may be freely used as an
599
+ * option on any kind of entity. Note: as of January 2023, support for this is
600
+ * in progress and does not yet have an effect (b/264593489).
601
+ */
602
+ export declare enum FieldOptions_OptionTargetType {
603
+ TARGET_TYPE_UNKNOWN = 0,
604
+ TARGET_TYPE_FILE = 1,
605
+ TARGET_TYPE_EXTENSION_RANGE = 2,
606
+ TARGET_TYPE_MESSAGE = 3,
607
+ TARGET_TYPE_FIELD = 4,
608
+ TARGET_TYPE_ONEOF = 5,
609
+ TARGET_TYPE_ENUM = 6,
610
+ TARGET_TYPE_ENUM_ENTRY = 7,
611
+ TARGET_TYPE_SERVICE = 8,
612
+ TARGET_TYPE_METHOD = 9
613
+ }
614
+ export declare function fieldOptions_OptionTargetTypeFromJSON(object: any): FieldOptions_OptionTargetType;
615
+ export declare function fieldOptions_OptionTargetTypeToJSON(object: FieldOptions_OptionTargetType): string;
616
+ export interface OneofOptions {
617
+ /** The parser stores options it doesn't recognize here. See above. */
618
+ uninterpretedOption: UninterpretedOption[];
619
+ }
620
+ export interface EnumOptions {
621
+ /**
622
+ * Set this option to true to allow mapping different tag names to the same
623
+ * value.
624
+ */
625
+ allowAlias: boolean;
626
+ /**
627
+ * Is this enum deprecated?
628
+ * Depending on the target platform, this can emit Deprecated annotations
629
+ * for the enum, or it will be completely ignored; in the very least, this
630
+ * is a formalization for deprecating enums.
631
+ */
632
+ deprecated: boolean;
633
+ /**
634
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
635
+ * and strips underscored from the fields before comparison in proto3 only.
636
+ * The new behavior takes `json_name` into account and applies to proto2 as
637
+ * well.
638
+ * TODO(b/261750190) Remove this legacy behavior once downstream teams have
639
+ * had time to migrate.
640
+ *
641
+ * @deprecated
642
+ */
643
+ deprecatedLegacyJsonFieldConflicts: boolean;
644
+ /** The parser stores options it doesn't recognize here. See above. */
645
+ uninterpretedOption: UninterpretedOption[];
646
+ }
647
+ export interface EnumValueOptions {
648
+ /**
649
+ * Is this enum value deprecated?
650
+ * Depending on the target platform, this can emit Deprecated annotations
651
+ * for the enum value, or it will be completely ignored; in the very least,
652
+ * this is a formalization for deprecating enum values.
653
+ */
654
+ deprecated: boolean;
655
+ /** The parser stores options it doesn't recognize here. See above. */
656
+ uninterpretedOption: UninterpretedOption[];
657
+ }
658
+ export interface ServiceOptions {
659
+ /**
660
+ * Is this service deprecated?
661
+ * Depending on the target platform, this can emit Deprecated annotations
662
+ * for the service, or it will be completely ignored; in the very least,
663
+ * this is a formalization for deprecating services.
664
+ */
665
+ deprecated: boolean;
666
+ /** The parser stores options it doesn't recognize here. See above. */
667
+ uninterpretedOption: UninterpretedOption[];
668
+ }
669
+ export interface MethodOptions {
670
+ /**
671
+ * Is this method deprecated?
672
+ * Depending on the target platform, this can emit Deprecated annotations
673
+ * for the method, or it will be completely ignored; in the very least,
674
+ * this is a formalization for deprecating methods.
675
+ */
676
+ deprecated: boolean;
677
+ idempotencyLevel: MethodOptions_IdempotencyLevel;
678
+ /** The parser stores options it doesn't recognize here. See above. */
679
+ uninterpretedOption: UninterpretedOption[];
680
+ }
681
+ /**
682
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
683
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
684
+ * methods, and PUT verb for idempotent methods instead of the default POST.
685
+ */
686
+ export declare enum MethodOptions_IdempotencyLevel {
687
+ IDEMPOTENCY_UNKNOWN = 0,
688
+ /** NO_SIDE_EFFECTS - implies idempotent */
689
+ NO_SIDE_EFFECTS = 1,
690
+ /** IDEMPOTENT - idempotent, but may have side effects */
691
+ IDEMPOTENT = 2
692
+ }
693
+ export declare function methodOptions_IdempotencyLevelFromJSON(object: any): MethodOptions_IdempotencyLevel;
694
+ export declare function methodOptions_IdempotencyLevelToJSON(object: MethodOptions_IdempotencyLevel): string;
695
+ /**
696
+ * A message representing a option the parser does not recognize. This only
697
+ * appears in options protos created by the compiler::Parser class.
698
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
699
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
700
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
701
+ * in them.
702
+ */
703
+ export interface UninterpretedOption {
704
+ name: UninterpretedOption_NamePart[];
705
+ /**
706
+ * The value of the uninterpreted option, in whatever type the tokenizer
707
+ * identified it as during parsing. Exactly one of these should be set.
708
+ */
709
+ identifierValue: string;
710
+ positiveIntValue: number;
711
+ negativeIntValue: number;
712
+ doubleValue: number;
713
+ stringValue: Uint8Array;
714
+ aggregateValue: string;
715
+ }
716
+ /**
717
+ * The name of the uninterpreted option. Each string represents a segment in
718
+ * a dot-separated name. is_extension is true iff a segment represents an
719
+ * extension (denoted with parentheses in options specs in .proto files).
720
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
721
+ * "foo.(bar.baz).moo".
722
+ */
723
+ export interface UninterpretedOption_NamePart {
724
+ namePart: string;
725
+ isExtension: boolean;
726
+ }
727
+ /**
728
+ * Encapsulates information about the original source file from which a
729
+ * FileDescriptorProto was generated.
730
+ */
731
+ export interface SourceCodeInfo {
732
+ /**
733
+ * A Location identifies a piece of source code in a .proto file which
734
+ * corresponds to a particular definition. This information is intended
735
+ * to be useful to IDEs, code indexers, documentation generators, and similar
736
+ * tools.
737
+ *
738
+ * For example, say we have a file like:
739
+ * message Foo {
740
+ * optional string foo = 1;
741
+ * }
742
+ * Let's look at just the field definition:
743
+ * optional string foo = 1;
744
+ * ^ ^^ ^^ ^ ^^^
745
+ * a bc de f ghi
746
+ * We have the following locations:
747
+ * span path represents
748
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
749
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
750
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
751
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
752
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
753
+ *
754
+ * Notes:
755
+ * - A location may refer to a repeated field itself (i.e. not to any
756
+ * particular index within it). This is used whenever a set of elements are
757
+ * logically enclosed in a single code segment. For example, an entire
758
+ * extend block (possibly containing multiple extension definitions) will
759
+ * have an outer location whose path refers to the "extensions" repeated
760
+ * field without an index.
761
+ * - Multiple locations may have the same path. This happens when a single
762
+ * logical declaration is spread out across multiple places. The most
763
+ * obvious example is the "extend" block again -- there may be multiple
764
+ * extend blocks in the same scope, each of which will have the same path.
765
+ * - A location's span is not always a subset of its parent's span. For
766
+ * example, the "extendee" of an extension declaration appears at the
767
+ * beginning of the "extend" block and is shared by all extensions within
768
+ * the block.
769
+ * - Just because a location's span is a subset of some other location's span
770
+ * does not mean that it is a descendant. For example, a "group" defines
771
+ * both a type and a field in a single declaration. Thus, the locations
772
+ * corresponding to the type and field and their components will overlap.
773
+ * - Code which tries to interpret locations should probably be designed to
774
+ * ignore those that it doesn't understand, as more types of locations could
775
+ * be recorded in the future.
776
+ */
777
+ location: SourceCodeInfo_Location[];
778
+ }
779
+ export interface SourceCodeInfo_Location {
780
+ /**
781
+ * Identifies which part of the FileDescriptorProto was defined at this
782
+ * location.
783
+ *
784
+ * Each element is a field number or an index. They form a path from
785
+ * the root FileDescriptorProto to the place where the definition occurs.
786
+ * For example, this path:
787
+ * [ 4, 3, 2, 7, 1 ]
788
+ * refers to:
789
+ * file.message_type(3) // 4, 3
790
+ * .field(7) // 2, 7
791
+ * .name() // 1
792
+ * This is because FileDescriptorProto.message_type has field number 4:
793
+ * repeated DescriptorProto message_type = 4;
794
+ * and DescriptorProto.field has field number 2:
795
+ * repeated FieldDescriptorProto field = 2;
796
+ * and FieldDescriptorProto.name has field number 1:
797
+ * optional string name = 1;
798
+ *
799
+ * Thus, the above path gives the location of a field name. If we removed
800
+ * the last element:
801
+ * [ 4, 3, 2, 7 ]
802
+ * this path refers to the whole field declaration (from the beginning
803
+ * of the label to the terminating semicolon).
804
+ */
805
+ path: number[];
806
+ /**
807
+ * Always has exactly three or four elements: start line, start column,
808
+ * end line (optional, otherwise assumed same as start line), end column.
809
+ * These are packed into a single field for efficiency. Note that line
810
+ * and column numbers are zero-based -- typically you will want to add
811
+ * 1 to each before displaying to a user.
812
+ */
813
+ span: number[];
814
+ /**
815
+ * If this SourceCodeInfo represents a complete declaration, these are any
816
+ * comments appearing before and after the declaration which appear to be
817
+ * attached to the declaration.
818
+ *
819
+ * A series of line comments appearing on consecutive lines, with no other
820
+ * tokens appearing on those lines, will be treated as a single comment.
821
+ *
822
+ * leading_detached_comments will keep paragraphs of comments that appear
823
+ * before (but not connected to) the current element. Each paragraph,
824
+ * separated by empty lines, will be one comment element in the repeated
825
+ * field.
826
+ *
827
+ * Only the comment content is provided; comment markers (e.g. //) are
828
+ * stripped out. For block comments, leading whitespace and an asterisk
829
+ * will be stripped from the beginning of each line other than the first.
830
+ * Newlines are included in the output.
831
+ *
832
+ * Examples:
833
+ *
834
+ * optional int32 foo = 1; // Comment attached to foo.
835
+ * // Comment attached to bar.
836
+ * optional int32 bar = 2;
837
+ *
838
+ * optional string baz = 3;
839
+ * // Comment attached to baz.
840
+ * // Another line attached to baz.
841
+ *
842
+ * // Comment attached to moo.
843
+ * //
844
+ * // Another line attached to moo.
845
+ * optional double moo = 4;
846
+ *
847
+ * // Detached comment for corge. This is not leading or trailing comments
848
+ * // to moo or corge because there are blank lines separating it from
849
+ * // both.
850
+ *
851
+ * // Detached comment for corge paragraph 2.
852
+ *
853
+ * optional string corge = 5;
854
+ * /* Block comment attached
855
+ * * to corge. Leading asterisks
856
+ * * will be removed. * /
857
+ * /* Block comment attached to
858
+ * * grault. * /
859
+ * optional int32 grault = 6;
860
+ *
861
+ * // ignored detached comments.
862
+ */
863
+ leadingComments: string;
864
+ trailingComments: string;
865
+ leadingDetachedComments: string[];
866
+ }
867
+ /**
868
+ * Describes the relationship between generated code and its original source
869
+ * file. A GeneratedCodeInfo message is associated with only one generated
870
+ * source file, but may contain references to different source .proto files.
871
+ */
872
+ export interface GeneratedCodeInfo {
873
+ /**
874
+ * An Annotation connects some span of text in generated code to an element
875
+ * of its generating .proto file.
876
+ */
877
+ annotation: GeneratedCodeInfo_Annotation[];
878
+ }
879
+ export interface GeneratedCodeInfo_Annotation {
880
+ /**
881
+ * Identifies the element in the original source .proto file. This field
882
+ * is formatted the same as SourceCodeInfo.Location.path.
883
+ */
884
+ path: number[];
885
+ /** Identifies the filesystem path to the original source .proto. */
886
+ sourceFile: string;
887
+ /**
888
+ * Identifies the starting offset in bytes in the generated code
889
+ * that relates to the identified object.
890
+ */
891
+ begin: number;
892
+ /**
893
+ * Identifies the ending offset in bytes in the generated code that
894
+ * relates to the identified object. The end offset should be one past
895
+ * the last relevant byte (so the length of the text = end - begin).
896
+ */
897
+ end: number;
898
+ semantic: GeneratedCodeInfo_Annotation_Semantic;
899
+ }
900
+ /**
901
+ * Represents the identified object's effect on the element in the original
902
+ * .proto file.
903
+ */
904
+ export declare enum GeneratedCodeInfo_Annotation_Semantic {
905
+ /** NONE - There is no effect or the effect is indescribable. */
906
+ NONE = 0,
907
+ /** SET - The element is set or otherwise mutated. */
908
+ SET = 1,
909
+ /** ALIAS - An alias to the element is returned. */
910
+ ALIAS = 2
911
+ }
912
+ export declare function generatedCodeInfo_Annotation_SemanticFromJSON(object: any): GeneratedCodeInfo_Annotation_Semantic;
913
+ export declare function generatedCodeInfo_Annotation_SemanticToJSON(object: GeneratedCodeInfo_Annotation_Semantic): string;
914
+ export declare const FileDescriptorSet: {
915
+ encode(message: FileDescriptorSet, writer?: _m0.Writer): _m0.Writer;
916
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorSet;
917
+ fromJSON(object: any): FileDescriptorSet;
918
+ toJSON(message: FileDescriptorSet): unknown;
919
+ create(base?: DeepPartial<FileDescriptorSet>): FileDescriptorSet;
920
+ fromPartial(object: DeepPartial<FileDescriptorSet>): FileDescriptorSet;
921
+ };
922
+ export declare const FileDescriptorProto: {
923
+ encode(message: FileDescriptorProto, writer?: _m0.Writer): _m0.Writer;
924
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileDescriptorProto;
925
+ fromJSON(object: any): FileDescriptorProto;
926
+ toJSON(message: FileDescriptorProto): unknown;
927
+ create(base?: DeepPartial<FileDescriptorProto>): FileDescriptorProto;
928
+ fromPartial(object: DeepPartial<FileDescriptorProto>): FileDescriptorProto;
929
+ };
930
+ export declare const DescriptorProto: {
931
+ encode(message: DescriptorProto, writer?: _m0.Writer): _m0.Writer;
932
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto;
933
+ fromJSON(object: any): DescriptorProto;
934
+ toJSON(message: DescriptorProto): unknown;
935
+ create(base?: DeepPartial<DescriptorProto>): DescriptorProto;
936
+ fromPartial(object: DeepPartial<DescriptorProto>): DescriptorProto;
937
+ };
938
+ export declare const DescriptorProto_ExtensionRange: {
939
+ encode(message: DescriptorProto_ExtensionRange, writer?: _m0.Writer): _m0.Writer;
940
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange;
941
+ fromJSON(object: any): DescriptorProto_ExtensionRange;
942
+ toJSON(message: DescriptorProto_ExtensionRange): unknown;
943
+ create(base?: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange;
944
+ fromPartial(object: DeepPartial<DescriptorProto_ExtensionRange>): DescriptorProto_ExtensionRange;
945
+ };
946
+ export declare const DescriptorProto_ReservedRange: {
947
+ encode(message: DescriptorProto_ReservedRange, writer?: _m0.Writer): _m0.Writer;
948
+ decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange;
949
+ fromJSON(object: any): DescriptorProto_ReservedRange;
950
+ toJSON(message: DescriptorProto_ReservedRange): unknown;
951
+ create(base?: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange;
952
+ fromPartial(object: DeepPartial<DescriptorProto_ReservedRange>): DescriptorProto_ReservedRange;
953
+ };
954
+ export declare const ExtensionRangeOptions: {
955
+ encode(message: ExtensionRangeOptions, writer?: _m0.Writer): _m0.Writer;
956
+ decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions;
957
+ fromJSON(object: any): ExtensionRangeOptions;
958
+ toJSON(message: ExtensionRangeOptions): unknown;
959
+ create(base?: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions;
960
+ fromPartial(object: DeepPartial<ExtensionRangeOptions>): ExtensionRangeOptions;
961
+ };
962
+ export declare const FieldDescriptorProto: {
963
+ encode(message: FieldDescriptorProto, writer?: _m0.Writer): _m0.Writer;
964
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto;
965
+ fromJSON(object: any): FieldDescriptorProto;
966
+ toJSON(message: FieldDescriptorProto): unknown;
967
+ create(base?: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto;
968
+ fromPartial(object: DeepPartial<FieldDescriptorProto>): FieldDescriptorProto;
969
+ };
970
+ export declare const OneofDescriptorProto: {
971
+ encode(message: OneofDescriptorProto, writer?: _m0.Writer): _m0.Writer;
972
+ decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto;
973
+ fromJSON(object: any): OneofDescriptorProto;
974
+ toJSON(message: OneofDescriptorProto): unknown;
975
+ create(base?: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto;
976
+ fromPartial(object: DeepPartial<OneofDescriptorProto>): OneofDescriptorProto;
977
+ };
978
+ export declare const EnumDescriptorProto: {
979
+ encode(message: EnumDescriptorProto, writer?: _m0.Writer): _m0.Writer;
980
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto;
981
+ fromJSON(object: any): EnumDescriptorProto;
982
+ toJSON(message: EnumDescriptorProto): unknown;
983
+ create(base?: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto;
984
+ fromPartial(object: DeepPartial<EnumDescriptorProto>): EnumDescriptorProto;
985
+ };
986
+ export declare const EnumDescriptorProto_EnumReservedRange: {
987
+ encode(message: EnumDescriptorProto_EnumReservedRange, writer?: _m0.Writer): _m0.Writer;
988
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange;
989
+ fromJSON(object: any): EnumDescriptorProto_EnumReservedRange;
990
+ toJSON(message: EnumDescriptorProto_EnumReservedRange): unknown;
991
+ create(base?: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange;
992
+ fromPartial(object: DeepPartial<EnumDescriptorProto_EnumReservedRange>): EnumDescriptorProto_EnumReservedRange;
993
+ };
994
+ export declare const EnumValueDescriptorProto: {
995
+ encode(message: EnumValueDescriptorProto, writer?: _m0.Writer): _m0.Writer;
996
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto;
997
+ fromJSON(object: any): EnumValueDescriptorProto;
998
+ toJSON(message: EnumValueDescriptorProto): unknown;
999
+ create(base?: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto;
1000
+ fromPartial(object: DeepPartial<EnumValueDescriptorProto>): EnumValueDescriptorProto;
1001
+ };
1002
+ export declare const ServiceDescriptorProto: {
1003
+ encode(message: ServiceDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1004
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto;
1005
+ fromJSON(object: any): ServiceDescriptorProto;
1006
+ toJSON(message: ServiceDescriptorProto): unknown;
1007
+ create(base?: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto;
1008
+ fromPartial(object: DeepPartial<ServiceDescriptorProto>): ServiceDescriptorProto;
1009
+ };
1010
+ export declare const MethodDescriptorProto: {
1011
+ encode(message: MethodDescriptorProto, writer?: _m0.Writer): _m0.Writer;
1012
+ decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto;
1013
+ fromJSON(object: any): MethodDescriptorProto;
1014
+ toJSON(message: MethodDescriptorProto): unknown;
1015
+ create(base?: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto;
1016
+ fromPartial(object: DeepPartial<MethodDescriptorProto>): MethodDescriptorProto;
1017
+ };
1018
+ export declare const FileOptions: {
1019
+ encode(message: FileOptions, writer?: _m0.Writer): _m0.Writer;
1020
+ decode(input: _m0.Reader | Uint8Array, length?: number): FileOptions;
1021
+ fromJSON(object: any): FileOptions;
1022
+ toJSON(message: FileOptions): unknown;
1023
+ create(base?: DeepPartial<FileOptions>): FileOptions;
1024
+ fromPartial(object: DeepPartial<FileOptions>): FileOptions;
1025
+ };
1026
+ export declare const MessageOptions: {
1027
+ encode(message: MessageOptions, writer?: _m0.Writer): _m0.Writer;
1028
+ decode(input: _m0.Reader | Uint8Array, length?: number): MessageOptions;
1029
+ fromJSON(object: any): MessageOptions;
1030
+ toJSON(message: MessageOptions): unknown;
1031
+ create(base?: DeepPartial<MessageOptions>): MessageOptions;
1032
+ fromPartial(object: DeepPartial<MessageOptions>): MessageOptions;
1033
+ };
1034
+ export declare const FieldOptions: {
1035
+ encode(message: FieldOptions, writer?: _m0.Writer): _m0.Writer;
1036
+ decode(input: _m0.Reader | Uint8Array, length?: number): FieldOptions;
1037
+ fromJSON(object: any): FieldOptions;
1038
+ toJSON(message: FieldOptions): unknown;
1039
+ create(base?: DeepPartial<FieldOptions>): FieldOptions;
1040
+ fromPartial(object: DeepPartial<FieldOptions>): FieldOptions;
1041
+ };
1042
+ export declare const OneofOptions: {
1043
+ encode(message: OneofOptions, writer?: _m0.Writer): _m0.Writer;
1044
+ decode(input: _m0.Reader | Uint8Array, length?: number): OneofOptions;
1045
+ fromJSON(object: any): OneofOptions;
1046
+ toJSON(message: OneofOptions): unknown;
1047
+ create(base?: DeepPartial<OneofOptions>): OneofOptions;
1048
+ fromPartial(object: DeepPartial<OneofOptions>): OneofOptions;
1049
+ };
1050
+ export declare const EnumOptions: {
1051
+ encode(message: EnumOptions, writer?: _m0.Writer): _m0.Writer;
1052
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumOptions;
1053
+ fromJSON(object: any): EnumOptions;
1054
+ toJSON(message: EnumOptions): unknown;
1055
+ create(base?: DeepPartial<EnumOptions>): EnumOptions;
1056
+ fromPartial(object: DeepPartial<EnumOptions>): EnumOptions;
1057
+ };
1058
+ export declare const EnumValueOptions: {
1059
+ encode(message: EnumValueOptions, writer?: _m0.Writer): _m0.Writer;
1060
+ decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueOptions;
1061
+ fromJSON(object: any): EnumValueOptions;
1062
+ toJSON(message: EnumValueOptions): unknown;
1063
+ create(base?: DeepPartial<EnumValueOptions>): EnumValueOptions;
1064
+ fromPartial(object: DeepPartial<EnumValueOptions>): EnumValueOptions;
1065
+ };
1066
+ export declare const ServiceOptions: {
1067
+ encode(message: ServiceOptions, writer?: _m0.Writer): _m0.Writer;
1068
+ decode(input: _m0.Reader | Uint8Array, length?: number): ServiceOptions;
1069
+ fromJSON(object: any): ServiceOptions;
1070
+ toJSON(message: ServiceOptions): unknown;
1071
+ create(base?: DeepPartial<ServiceOptions>): ServiceOptions;
1072
+ fromPartial(object: DeepPartial<ServiceOptions>): ServiceOptions;
1073
+ };
1074
+ export declare const MethodOptions: {
1075
+ encode(message: MethodOptions, writer?: _m0.Writer): _m0.Writer;
1076
+ decode(input: _m0.Reader | Uint8Array, length?: number): MethodOptions;
1077
+ fromJSON(object: any): MethodOptions;
1078
+ toJSON(message: MethodOptions): unknown;
1079
+ create(base?: DeepPartial<MethodOptions>): MethodOptions;
1080
+ fromPartial(object: DeepPartial<MethodOptions>): MethodOptions;
1081
+ };
1082
+ export declare const UninterpretedOption: {
1083
+ encode(message: UninterpretedOption, writer?: _m0.Writer): _m0.Writer;
1084
+ decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption;
1085
+ fromJSON(object: any): UninterpretedOption;
1086
+ toJSON(message: UninterpretedOption): unknown;
1087
+ create(base?: DeepPartial<UninterpretedOption>): UninterpretedOption;
1088
+ fromPartial(object: DeepPartial<UninterpretedOption>): UninterpretedOption;
1089
+ };
1090
+ export declare const UninterpretedOption_NamePart: {
1091
+ encode(message: UninterpretedOption_NamePart, writer?: _m0.Writer): _m0.Writer;
1092
+ decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart;
1093
+ fromJSON(object: any): UninterpretedOption_NamePart;
1094
+ toJSON(message: UninterpretedOption_NamePart): unknown;
1095
+ create(base?: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart;
1096
+ fromPartial(object: DeepPartial<UninterpretedOption_NamePart>): UninterpretedOption_NamePart;
1097
+ };
1098
+ export declare const SourceCodeInfo: {
1099
+ encode(message: SourceCodeInfo, writer?: _m0.Writer): _m0.Writer;
1100
+ decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo;
1101
+ fromJSON(object: any): SourceCodeInfo;
1102
+ toJSON(message: SourceCodeInfo): unknown;
1103
+ create(base?: DeepPartial<SourceCodeInfo>): SourceCodeInfo;
1104
+ fromPartial(object: DeepPartial<SourceCodeInfo>): SourceCodeInfo;
1105
+ };
1106
+ export declare const SourceCodeInfo_Location: {
1107
+ encode(message: SourceCodeInfo_Location, writer?: _m0.Writer): _m0.Writer;
1108
+ decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location;
1109
+ fromJSON(object: any): SourceCodeInfo_Location;
1110
+ toJSON(message: SourceCodeInfo_Location): unknown;
1111
+ create(base?: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location;
1112
+ fromPartial(object: DeepPartial<SourceCodeInfo_Location>): SourceCodeInfo_Location;
1113
+ };
1114
+ export declare const GeneratedCodeInfo: {
1115
+ encode(message: GeneratedCodeInfo, writer?: _m0.Writer): _m0.Writer;
1116
+ decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo;
1117
+ fromJSON(object: any): GeneratedCodeInfo;
1118
+ toJSON(message: GeneratedCodeInfo): unknown;
1119
+ create(base?: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo;
1120
+ fromPartial(object: DeepPartial<GeneratedCodeInfo>): GeneratedCodeInfo;
1121
+ };
1122
+ export declare const GeneratedCodeInfo_Annotation: {
1123
+ encode(message: GeneratedCodeInfo_Annotation, writer?: _m0.Writer): _m0.Writer;
1124
+ decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation;
1125
+ fromJSON(object: any): GeneratedCodeInfo_Annotation;
1126
+ toJSON(message: GeneratedCodeInfo_Annotation): unknown;
1127
+ create(base?: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation;
1128
+ fromPartial(object: DeepPartial<GeneratedCodeInfo_Annotation>): GeneratedCodeInfo_Annotation;
1129
+ };
1130
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
1131
+ export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
1132
+ $case: string;
1133
+ } ? {
1134
+ [K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
1135
+ } & {
1136
+ $case: T["$case"];
1137
+ } : T extends {} ? {
1138
+ [K in keyof T]?: DeepPartial<T[K]>;
1139
+ } : Partial<T>;
1140
+ export {};