@bufbuild/protobuf 1.3.1 → 1.3.2

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 (115) hide show
  1. package/dist/cjs/google/protobuf/struct_pb.js +1 -1
  2. package/dist/cjs/google/protobuf/type_pb.js +1 -1
  3. package/dist/esm/binary-encoding.d.ts +421 -0
  4. package/dist/esm/binary-format.d.ts +87 -0
  5. package/dist/esm/codegen-info.d.ts +23 -0
  6. package/dist/esm/create-descriptor-set.d.ts +16 -0
  7. package/dist/esm/create-registry-from-desc.d.ts +15 -0
  8. package/dist/esm/create-registry.d.ts +8 -0
  9. package/dist/esm/descriptor-set.d.ts +606 -0
  10. package/dist/esm/enum.d.ts +35 -0
  11. package/dist/esm/field-list.d.ts +27 -0
  12. package/dist/esm/field.d.ts +255 -0
  13. package/dist/esm/google/protobuf/any_pb.d.ts +156 -0
  14. package/dist/esm/google/protobuf/api_pb.d.ts +256 -0
  15. package/dist/esm/google/protobuf/compiler/plugin_pb.d.ts +236 -0
  16. package/dist/esm/google/protobuf/descriptor_pb.d.ts +1851 -0
  17. package/dist/esm/google/protobuf/duration_pb.d.ts +100 -0
  18. package/dist/esm/google/protobuf/empty_pb.d.ts +28 -0
  19. package/dist/esm/google/protobuf/field_mask_pb.d.ts +227 -0
  20. package/dist/esm/google/protobuf/source_context_pb.d.ts +29 -0
  21. package/dist/esm/google/protobuf/struct_pb.d.ts +158 -0
  22. package/dist/esm/google/protobuf/struct_pb.js +1 -1
  23. package/dist/esm/google/protobuf/timestamp_pb.d.ts +132 -0
  24. package/dist/esm/google/protobuf/type_pb.d.ts +437 -0
  25. package/dist/esm/google/protobuf/type_pb.js +1 -1
  26. package/dist/esm/google/protobuf/wrappers_pb.d.ts +267 -0
  27. package/dist/esm/google/varint.d.ts +70 -0
  28. package/dist/esm/index.d.ts +38 -0
  29. package/dist/esm/json-format.d.ts +110 -0
  30. package/dist/esm/message-type.d.ts +51 -0
  31. package/dist/esm/message.d.ts +130 -0
  32. package/dist/esm/private/assert.d.ts +16 -0
  33. package/dist/esm/private/binary-format-common.d.ts +13 -0
  34. package/dist/esm/private/binary-format-proto2.d.ts +2 -0
  35. package/dist/esm/private/binary-format-proto3.d.ts +2 -0
  36. package/dist/esm/private/enum.d.ts +27 -0
  37. package/dist/esm/private/field-list.d.ts +18 -0
  38. package/dist/esm/private/field-wrapper.d.ts +25 -0
  39. package/dist/esm/private/field.d.ts +15 -0
  40. package/dist/esm/private/json-format-common.d.ts +9 -0
  41. package/dist/esm/private/json-format-proto2.d.ts +2 -0
  42. package/dist/esm/private/json-format-proto3.d.ts +2 -0
  43. package/dist/esm/private/message-type.d.ts +18 -0
  44. package/dist/esm/private/names.d.ts +43 -0
  45. package/dist/esm/private/options-map.d.ts +7 -0
  46. package/dist/esm/private/proto-runtime.d.ts +47 -0
  47. package/dist/esm/private/reify-wkt.d.ts +100 -0
  48. package/dist/esm/private/scalars.d.ts +27 -0
  49. package/dist/esm/private/util-common.d.ts +2 -0
  50. package/dist/esm/private/util.d.ts +38 -0
  51. package/dist/esm/proto-base64.d.ts +18 -0
  52. package/dist/esm/proto-delimited.d.ts +54 -0
  53. package/dist/esm/proto-double.d.ts +5 -0
  54. package/dist/esm/proto-int64.d.ts +95 -0
  55. package/dist/esm/proto2.d.ts +4 -0
  56. package/dist/esm/proto3.d.ts +4 -0
  57. package/dist/esm/service-type.d.ts +96 -0
  58. package/dist/esm/to-plain-message.d.ts +9 -0
  59. package/dist/esm/type-registry.d.ts +30 -0
  60. package/package.json +14 -9
  61. /package/dist/{types → cjs}/binary-encoding.d.ts +0 -0
  62. /package/dist/{types → cjs}/binary-format.d.ts +0 -0
  63. /package/dist/{types → cjs}/codegen-info.d.ts +0 -0
  64. /package/dist/{types → cjs}/create-descriptor-set.d.ts +0 -0
  65. /package/dist/{types → cjs}/create-registry-from-desc.d.ts +0 -0
  66. /package/dist/{types → cjs}/create-registry.d.ts +0 -0
  67. /package/dist/{types → cjs}/descriptor-set.d.ts +0 -0
  68. /package/dist/{types → cjs}/enum.d.ts +0 -0
  69. /package/dist/{types → cjs}/field-list.d.ts +0 -0
  70. /package/dist/{types → cjs}/field.d.ts +0 -0
  71. /package/dist/{types → cjs}/google/protobuf/any_pb.d.ts +0 -0
  72. /package/dist/{types → cjs}/google/protobuf/api_pb.d.ts +0 -0
  73. /package/dist/{types → cjs}/google/protobuf/compiler/plugin_pb.d.ts +0 -0
  74. /package/dist/{types → cjs}/google/protobuf/descriptor_pb.d.ts +0 -0
  75. /package/dist/{types → cjs}/google/protobuf/duration_pb.d.ts +0 -0
  76. /package/dist/{types → cjs}/google/protobuf/empty_pb.d.ts +0 -0
  77. /package/dist/{types → cjs}/google/protobuf/field_mask_pb.d.ts +0 -0
  78. /package/dist/{types → cjs}/google/protobuf/source_context_pb.d.ts +0 -0
  79. /package/dist/{types → cjs}/google/protobuf/struct_pb.d.ts +0 -0
  80. /package/dist/{types → cjs}/google/protobuf/timestamp_pb.d.ts +0 -0
  81. /package/dist/{types → cjs}/google/protobuf/type_pb.d.ts +0 -0
  82. /package/dist/{types → cjs}/google/protobuf/wrappers_pb.d.ts +0 -0
  83. /package/dist/{types → cjs}/google/varint.d.ts +0 -0
  84. /package/dist/{types → cjs}/index.d.ts +0 -0
  85. /package/dist/{types → cjs}/json-format.d.ts +0 -0
  86. /package/dist/{types → cjs}/message-type.d.ts +0 -0
  87. /package/dist/{types → cjs}/message.d.ts +0 -0
  88. /package/dist/{types → cjs}/private/assert.d.ts +0 -0
  89. /package/dist/{types → cjs}/private/binary-format-common.d.ts +0 -0
  90. /package/dist/{types → cjs}/private/binary-format-proto2.d.ts +0 -0
  91. /package/dist/{types → cjs}/private/binary-format-proto3.d.ts +0 -0
  92. /package/dist/{types → cjs}/private/enum.d.ts +0 -0
  93. /package/dist/{types → cjs}/private/field-list.d.ts +0 -0
  94. /package/dist/{types → cjs}/private/field-wrapper.d.ts +0 -0
  95. /package/dist/{types → cjs}/private/field.d.ts +0 -0
  96. /package/dist/{types → cjs}/private/json-format-common.d.ts +0 -0
  97. /package/dist/{types → cjs}/private/json-format-proto2.d.ts +0 -0
  98. /package/dist/{types → cjs}/private/json-format-proto3.d.ts +0 -0
  99. /package/dist/{types → cjs}/private/message-type.d.ts +0 -0
  100. /package/dist/{types → cjs}/private/names.d.ts +0 -0
  101. /package/dist/{types → cjs}/private/options-map.d.ts +0 -0
  102. /package/dist/{types → cjs}/private/proto-runtime.d.ts +0 -0
  103. /package/dist/{types → cjs}/private/reify-wkt.d.ts +0 -0
  104. /package/dist/{types → cjs}/private/scalars.d.ts +0 -0
  105. /package/dist/{types → cjs}/private/util-common.d.ts +0 -0
  106. /package/dist/{types → cjs}/private/util.d.ts +0 -0
  107. /package/dist/{types → cjs}/proto-base64.d.ts +0 -0
  108. /package/dist/{types → cjs}/proto-delimited.d.ts +0 -0
  109. /package/dist/{types → cjs}/proto-double.d.ts +0 -0
  110. /package/dist/{types → cjs}/proto-int64.d.ts +0 -0
  111. /package/dist/{types → cjs}/proto2.d.ts +0 -0
  112. /package/dist/{types → cjs}/proto3.d.ts +0 -0
  113. /package/dist/{types → cjs}/service-type.d.ts +0 -0
  114. /package/dist/{types → cjs}/to-plain-message.d.ts +0 -0
  115. /package/dist/{types → cjs}/type-registry.d.ts +0 -0
@@ -0,0 +1,1851 @@
1
+ import type { PartialMessage, PlainMessage } from "../../message.js";
2
+ import { Message } from "../../message.js";
3
+ import { proto2 } from "../../proto2.js";
4
+ import type { FieldList } from "../../field-list.js";
5
+ import type { BinaryReadOptions } from "../../binary-format.js";
6
+ import type { JsonReadOptions, JsonValue } from "../../json-format.js";
7
+ /**
8
+ * The protocol compiler can output a FileDescriptorSet containing the .proto
9
+ * files it parses.
10
+ *
11
+ * @generated from message google.protobuf.FileDescriptorSet
12
+ */
13
+ export declare class FileDescriptorSet extends Message<FileDescriptorSet> {
14
+ /**
15
+ * @generated from field: repeated google.protobuf.FileDescriptorProto file = 1;
16
+ */
17
+ file: FileDescriptorProto[];
18
+ constructor(data?: PartialMessage<FileDescriptorSet>);
19
+ static readonly runtime: typeof proto2;
20
+ static readonly typeName = "google.protobuf.FileDescriptorSet";
21
+ static readonly fields: FieldList;
22
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorSet;
23
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileDescriptorSet;
24
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileDescriptorSet;
25
+ static equals(a: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined, b: FileDescriptorSet | PlainMessage<FileDescriptorSet> | undefined): boolean;
26
+ }
27
+ /**
28
+ * Describes a complete .proto file.
29
+ *
30
+ * @generated from message google.protobuf.FileDescriptorProto
31
+ */
32
+ export declare class FileDescriptorProto extends Message<FileDescriptorProto> {
33
+ /**
34
+ * file name, relative to root of source tree
35
+ *
36
+ * @generated from field: optional string name = 1;
37
+ */
38
+ name?: string;
39
+ /**
40
+ * e.g. "foo", "foo.bar", etc.
41
+ *
42
+ * @generated from field: optional string package = 2;
43
+ */
44
+ package?: string;
45
+ /**
46
+ * Names of files imported by this file.
47
+ *
48
+ * @generated from field: repeated string dependency = 3;
49
+ */
50
+ dependency: string[];
51
+ /**
52
+ * Indexes of the public imported files in the dependency list above.
53
+ *
54
+ * @generated from field: repeated int32 public_dependency = 10;
55
+ */
56
+ publicDependency: number[];
57
+ /**
58
+ * Indexes of the weak imported files in the dependency list.
59
+ * For Google-internal migration only. Do not use.
60
+ *
61
+ * @generated from field: repeated int32 weak_dependency = 11;
62
+ */
63
+ weakDependency: number[];
64
+ /**
65
+ * All top-level definitions in this file.
66
+ *
67
+ * @generated from field: repeated google.protobuf.DescriptorProto message_type = 4;
68
+ */
69
+ messageType: DescriptorProto[];
70
+ /**
71
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 5;
72
+ */
73
+ enumType: EnumDescriptorProto[];
74
+ /**
75
+ * @generated from field: repeated google.protobuf.ServiceDescriptorProto service = 6;
76
+ */
77
+ service: ServiceDescriptorProto[];
78
+ /**
79
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 7;
80
+ */
81
+ extension: FieldDescriptorProto[];
82
+ /**
83
+ * @generated from field: optional google.protobuf.FileOptions options = 8;
84
+ */
85
+ options?: FileOptions;
86
+ /**
87
+ * This field contains optional information about the original source code.
88
+ * You may safely remove this entire field without harming runtime
89
+ * functionality of the descriptors -- the information is needed only by
90
+ * development tools.
91
+ *
92
+ * @generated from field: optional google.protobuf.SourceCodeInfo source_code_info = 9;
93
+ */
94
+ sourceCodeInfo?: SourceCodeInfo;
95
+ /**
96
+ * The syntax of the proto file.
97
+ * The supported values are "proto2", "proto3", and "editions".
98
+ *
99
+ * If `edition` is present, this value must be "editions".
100
+ *
101
+ * @generated from field: optional string syntax = 12;
102
+ */
103
+ syntax?: string;
104
+ /**
105
+ * The edition of the proto file, which is an opaque string.
106
+ *
107
+ * @generated from field: optional string edition = 13;
108
+ */
109
+ edition?: string;
110
+ constructor(data?: PartialMessage<FileDescriptorProto>);
111
+ static readonly runtime: typeof proto2;
112
+ static readonly typeName = "google.protobuf.FileDescriptorProto";
113
+ static readonly fields: FieldList;
114
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileDescriptorProto;
115
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileDescriptorProto;
116
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileDescriptorProto;
117
+ static equals(a: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined, b: FileDescriptorProto | PlainMessage<FileDescriptorProto> | undefined): boolean;
118
+ }
119
+ /**
120
+ * Describes a message type.
121
+ *
122
+ * @generated from message google.protobuf.DescriptorProto
123
+ */
124
+ export declare class DescriptorProto extends Message<DescriptorProto> {
125
+ /**
126
+ * @generated from field: optional string name = 1;
127
+ */
128
+ name?: string;
129
+ /**
130
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto field = 2;
131
+ */
132
+ field: FieldDescriptorProto[];
133
+ /**
134
+ * @generated from field: repeated google.protobuf.FieldDescriptorProto extension = 6;
135
+ */
136
+ extension: FieldDescriptorProto[];
137
+ /**
138
+ * @generated from field: repeated google.protobuf.DescriptorProto nested_type = 3;
139
+ */
140
+ nestedType: DescriptorProto[];
141
+ /**
142
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto enum_type = 4;
143
+ */
144
+ enumType: EnumDescriptorProto[];
145
+ /**
146
+ * @generated from field: repeated google.protobuf.DescriptorProto.ExtensionRange extension_range = 5;
147
+ */
148
+ extensionRange: DescriptorProto_ExtensionRange[];
149
+ /**
150
+ * @generated from field: repeated google.protobuf.OneofDescriptorProto oneof_decl = 8;
151
+ */
152
+ oneofDecl: OneofDescriptorProto[];
153
+ /**
154
+ * @generated from field: optional google.protobuf.MessageOptions options = 7;
155
+ */
156
+ options?: MessageOptions;
157
+ /**
158
+ * @generated from field: repeated google.protobuf.DescriptorProto.ReservedRange reserved_range = 9;
159
+ */
160
+ reservedRange: DescriptorProto_ReservedRange[];
161
+ /**
162
+ * Reserved field names, which may not be used by fields in the same message.
163
+ * A given name may only be reserved once.
164
+ *
165
+ * @generated from field: repeated string reserved_name = 10;
166
+ */
167
+ reservedName: string[];
168
+ constructor(data?: PartialMessage<DescriptorProto>);
169
+ static readonly runtime: typeof proto2;
170
+ static readonly typeName = "google.protobuf.DescriptorProto";
171
+ static readonly fields: FieldList;
172
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto;
173
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto;
174
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto;
175
+ static equals(a: DescriptorProto | PlainMessage<DescriptorProto> | undefined, b: DescriptorProto | PlainMessage<DescriptorProto> | undefined): boolean;
176
+ }
177
+ /**
178
+ * @generated from message google.protobuf.DescriptorProto.ExtensionRange
179
+ */
180
+ export declare class DescriptorProto_ExtensionRange extends Message<DescriptorProto_ExtensionRange> {
181
+ /**
182
+ * Inclusive.
183
+ *
184
+ * @generated from field: optional int32 start = 1;
185
+ */
186
+ start?: number;
187
+ /**
188
+ * Exclusive.
189
+ *
190
+ * @generated from field: optional int32 end = 2;
191
+ */
192
+ end?: number;
193
+ /**
194
+ * @generated from field: optional google.protobuf.ExtensionRangeOptions options = 3;
195
+ */
196
+ options?: ExtensionRangeOptions;
197
+ constructor(data?: PartialMessage<DescriptorProto_ExtensionRange>);
198
+ static readonly runtime: typeof proto2;
199
+ static readonly typeName = "google.protobuf.DescriptorProto.ExtensionRange";
200
+ static readonly fields: FieldList;
201
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ExtensionRange;
202
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto_ExtensionRange;
203
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto_ExtensionRange;
204
+ static equals(a: DescriptorProto_ExtensionRange | PlainMessage<DescriptorProto_ExtensionRange> | undefined, b: DescriptorProto_ExtensionRange | PlainMessage<DescriptorProto_ExtensionRange> | undefined): boolean;
205
+ }
206
+ /**
207
+ * Range of reserved tag numbers. Reserved tag numbers may not be used by
208
+ * fields or extension ranges in the same message. Reserved ranges may
209
+ * not overlap.
210
+ *
211
+ * @generated from message google.protobuf.DescriptorProto.ReservedRange
212
+ */
213
+ export declare class DescriptorProto_ReservedRange extends Message<DescriptorProto_ReservedRange> {
214
+ /**
215
+ * Inclusive.
216
+ *
217
+ * @generated from field: optional int32 start = 1;
218
+ */
219
+ start?: number;
220
+ /**
221
+ * Exclusive.
222
+ *
223
+ * @generated from field: optional int32 end = 2;
224
+ */
225
+ end?: number;
226
+ constructor(data?: PartialMessage<DescriptorProto_ReservedRange>);
227
+ static readonly runtime: typeof proto2;
228
+ static readonly typeName = "google.protobuf.DescriptorProto.ReservedRange";
229
+ static readonly fields: FieldList;
230
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): DescriptorProto_ReservedRange;
231
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): DescriptorProto_ReservedRange;
232
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): DescriptorProto_ReservedRange;
233
+ static equals(a: DescriptorProto_ReservedRange | PlainMessage<DescriptorProto_ReservedRange> | undefined, b: DescriptorProto_ReservedRange | PlainMessage<DescriptorProto_ReservedRange> | undefined): boolean;
234
+ }
235
+ /**
236
+ * @generated from message google.protobuf.ExtensionRangeOptions
237
+ */
238
+ export declare class ExtensionRangeOptions extends Message<ExtensionRangeOptions> {
239
+ /**
240
+ * The parser stores options it doesn't recognize here. See above.
241
+ *
242
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
243
+ */
244
+ uninterpretedOption: UninterpretedOption[];
245
+ /**
246
+ * go/protobuf-stripping-extension-declarations
247
+ * Like Metadata, but we use a repeated field to hold all extension
248
+ * declarations. This should avoid the size increases of transforming a large
249
+ * extension range into small ranges in generated binaries.
250
+ *
251
+ * @generated from field: repeated google.protobuf.ExtensionRangeOptions.Declaration declaration = 2;
252
+ */
253
+ declaration: ExtensionRangeOptions_Declaration[];
254
+ /**
255
+ * The verification state of the range.
256
+ * TODO(b/278783756): flip the default to DECLARATION once all empty ranges
257
+ * are marked as UNVERIFIED.
258
+ *
259
+ * @generated from field: optional google.protobuf.ExtensionRangeOptions.VerificationState verification = 3 [default = UNVERIFIED];
260
+ */
261
+ verification?: ExtensionRangeOptions_VerificationState;
262
+ constructor(data?: PartialMessage<ExtensionRangeOptions>);
263
+ static readonly runtime: typeof proto2;
264
+ static readonly typeName = "google.protobuf.ExtensionRangeOptions";
265
+ static readonly fields: FieldList;
266
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionRangeOptions;
267
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionRangeOptions;
268
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionRangeOptions;
269
+ static equals(a: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined, b: ExtensionRangeOptions | PlainMessage<ExtensionRangeOptions> | undefined): boolean;
270
+ }
271
+ /**
272
+ * The verification state of the extension range.
273
+ *
274
+ * @generated from enum google.protobuf.ExtensionRangeOptions.VerificationState
275
+ */
276
+ export declare enum ExtensionRangeOptions_VerificationState {
277
+ /**
278
+ * All the extensions of the range must be declared.
279
+ *
280
+ * @generated from enum value: DECLARATION = 0;
281
+ */
282
+ DECLARATION = 0,
283
+ /**
284
+ * @generated from enum value: UNVERIFIED = 1;
285
+ */
286
+ UNVERIFIED = 1
287
+ }
288
+ /**
289
+ * @generated from message google.protobuf.ExtensionRangeOptions.Declaration
290
+ */
291
+ export declare class ExtensionRangeOptions_Declaration extends Message<ExtensionRangeOptions_Declaration> {
292
+ /**
293
+ * The extension number declared within the extension range.
294
+ *
295
+ * @generated from field: optional int32 number = 1;
296
+ */
297
+ number?: number;
298
+ /**
299
+ * The fully-qualified name of the extension field. There must be a leading
300
+ * dot in front of the full name.
301
+ *
302
+ * @generated from field: optional string full_name = 2;
303
+ */
304
+ fullName?: string;
305
+ /**
306
+ * The fully-qualified type name of the extension field. Unlike
307
+ * Metadata.type, Declaration.type must have a leading dot for messages
308
+ * and enums.
309
+ *
310
+ * @generated from field: optional string type = 3;
311
+ */
312
+ type?: string;
313
+ /**
314
+ * Deprecated. Please use "repeated".
315
+ *
316
+ * @generated from field: optional bool is_repeated = 4 [deprecated = true];
317
+ * @deprecated
318
+ */
319
+ isRepeated?: boolean;
320
+ /**
321
+ * If true, indicates that the number is reserved in the extension range,
322
+ * and any extension field with the number will fail to compile. Set this
323
+ * when a declared extension field is deleted.
324
+ *
325
+ * @generated from field: optional bool reserved = 5;
326
+ */
327
+ reserved?: boolean;
328
+ /**
329
+ * If true, indicates that the extension must be defined as repeated.
330
+ * Otherwise the extension must be defined as optional.
331
+ *
332
+ * @generated from field: optional bool repeated = 6;
333
+ */
334
+ repeated?: boolean;
335
+ constructor(data?: PartialMessage<ExtensionRangeOptions_Declaration>);
336
+ static readonly runtime: typeof proto2;
337
+ static readonly typeName = "google.protobuf.ExtensionRangeOptions.Declaration";
338
+ static readonly fields: FieldList;
339
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ExtensionRangeOptions_Declaration;
340
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ExtensionRangeOptions_Declaration;
341
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ExtensionRangeOptions_Declaration;
342
+ static equals(a: ExtensionRangeOptions_Declaration | PlainMessage<ExtensionRangeOptions_Declaration> | undefined, b: ExtensionRangeOptions_Declaration | PlainMessage<ExtensionRangeOptions_Declaration> | undefined): boolean;
343
+ }
344
+ /**
345
+ * Describes a field within a message.
346
+ *
347
+ * @generated from message google.protobuf.FieldDescriptorProto
348
+ */
349
+ export declare class FieldDescriptorProto extends Message<FieldDescriptorProto> {
350
+ /**
351
+ * @generated from field: optional string name = 1;
352
+ */
353
+ name?: string;
354
+ /**
355
+ * @generated from field: optional int32 number = 3;
356
+ */
357
+ number?: number;
358
+ /**
359
+ * @generated from field: optional google.protobuf.FieldDescriptorProto.Label label = 4;
360
+ */
361
+ label?: FieldDescriptorProto_Label;
362
+ /**
363
+ * If type_name is set, this need not be set. If both this and type_name
364
+ * are set, this must be one of TYPE_ENUM, TYPE_MESSAGE or TYPE_GROUP.
365
+ *
366
+ * @generated from field: optional google.protobuf.FieldDescriptorProto.Type type = 5;
367
+ */
368
+ type?: FieldDescriptorProto_Type;
369
+ /**
370
+ * For message and enum types, this is the name of the type. If the name
371
+ * starts with a '.', it is fully-qualified. Otherwise, C++-like scoping
372
+ * rules are used to find the type (i.e. first the nested types within this
373
+ * message are searched, then within the parent, on up to the root
374
+ * namespace).
375
+ *
376
+ * @generated from field: optional string type_name = 6;
377
+ */
378
+ typeName?: string;
379
+ /**
380
+ * For extensions, this is the name of the type being extended. It is
381
+ * resolved in the same manner as type_name.
382
+ *
383
+ * @generated from field: optional string extendee = 2;
384
+ */
385
+ extendee?: string;
386
+ /**
387
+ * For numeric types, contains the original text representation of the value.
388
+ * For booleans, "true" or "false".
389
+ * For strings, contains the default text contents (not escaped in any way).
390
+ * For bytes, contains the C escaped value. All bytes >= 128 are escaped.
391
+ *
392
+ * @generated from field: optional string default_value = 7;
393
+ */
394
+ defaultValue?: string;
395
+ /**
396
+ * If set, gives the index of a oneof in the containing type's oneof_decl
397
+ * list. This field is a member of that oneof.
398
+ *
399
+ * @generated from field: optional int32 oneof_index = 9;
400
+ */
401
+ oneofIndex?: number;
402
+ /**
403
+ * JSON name of this field. The value is set by protocol compiler. If the
404
+ * user has set a "json_name" option on this field, that option's value
405
+ * will be used. Otherwise, it's deduced from the field's name by converting
406
+ * it to camelCase.
407
+ *
408
+ * @generated from field: optional string json_name = 10;
409
+ */
410
+ jsonName?: string;
411
+ /**
412
+ * @generated from field: optional google.protobuf.FieldOptions options = 8;
413
+ */
414
+ options?: FieldOptions;
415
+ /**
416
+ * If true, this is a proto3 "optional". When a proto3 field is optional, it
417
+ * tracks presence regardless of field type.
418
+ *
419
+ * When proto3_optional is true, this field must be belong to a oneof to
420
+ * signal to old proto3 clients that presence is tracked for this field. This
421
+ * oneof is known as a "synthetic" oneof, and this field must be its sole
422
+ * member (each proto3 optional field gets its own synthetic oneof). Synthetic
423
+ * oneofs exist in the descriptor only, and do not generate any API. Synthetic
424
+ * oneofs must be ordered after all "real" oneofs.
425
+ *
426
+ * For message fields, proto3_optional doesn't create any semantic change,
427
+ * since non-repeated message fields always track presence. However it still
428
+ * indicates the semantic detail of whether the user wrote "optional" or not.
429
+ * This can be useful for round-tripping the .proto file. For consistency we
430
+ * give message fields a synthetic oneof also, even though it is not required
431
+ * to track presence. This is especially important because the parser can't
432
+ * tell if a field is a message or an enum, so it must always create a
433
+ * synthetic oneof.
434
+ *
435
+ * Proto2 optional fields do not set this flag, because they already indicate
436
+ * optional with `LABEL_OPTIONAL`.
437
+ *
438
+ * @generated from field: optional bool proto3_optional = 17;
439
+ */
440
+ proto3Optional?: boolean;
441
+ constructor(data?: PartialMessage<FieldDescriptorProto>);
442
+ static readonly runtime: typeof proto2;
443
+ static readonly typeName = "google.protobuf.FieldDescriptorProto";
444
+ static readonly fields: FieldList;
445
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldDescriptorProto;
446
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldDescriptorProto;
447
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldDescriptorProto;
448
+ static equals(a: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined, b: FieldDescriptorProto | PlainMessage<FieldDescriptorProto> | undefined): boolean;
449
+ }
450
+ /**
451
+ * @generated from enum google.protobuf.FieldDescriptorProto.Type
452
+ */
453
+ export declare enum FieldDescriptorProto_Type {
454
+ /**
455
+ * 0 is reserved for errors.
456
+ * Order is weird for historical reasons.
457
+ *
458
+ * @generated from enum value: TYPE_DOUBLE = 1;
459
+ */
460
+ DOUBLE = 1,
461
+ /**
462
+ * @generated from enum value: TYPE_FLOAT = 2;
463
+ */
464
+ FLOAT = 2,
465
+ /**
466
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT64 if
467
+ * negative values are likely.
468
+ *
469
+ * @generated from enum value: TYPE_INT64 = 3;
470
+ */
471
+ INT64 = 3,
472
+ /**
473
+ * @generated from enum value: TYPE_UINT64 = 4;
474
+ */
475
+ UINT64 = 4,
476
+ /**
477
+ * Not ZigZag encoded. Negative numbers take 10 bytes. Use TYPE_SINT32 if
478
+ * negative values are likely.
479
+ *
480
+ * @generated from enum value: TYPE_INT32 = 5;
481
+ */
482
+ INT32 = 5,
483
+ /**
484
+ * @generated from enum value: TYPE_FIXED64 = 6;
485
+ */
486
+ FIXED64 = 6,
487
+ /**
488
+ * @generated from enum value: TYPE_FIXED32 = 7;
489
+ */
490
+ FIXED32 = 7,
491
+ /**
492
+ * @generated from enum value: TYPE_BOOL = 8;
493
+ */
494
+ BOOL = 8,
495
+ /**
496
+ * @generated from enum value: TYPE_STRING = 9;
497
+ */
498
+ STRING = 9,
499
+ /**
500
+ * Tag-delimited aggregate.
501
+ * Group type is deprecated and not supported in proto3. However, Proto3
502
+ * implementations should still be able to parse the group wire format and
503
+ * treat group fields as unknown fields.
504
+ *
505
+ * @generated from enum value: TYPE_GROUP = 10;
506
+ */
507
+ GROUP = 10,
508
+ /**
509
+ * Length-delimited aggregate.
510
+ *
511
+ * @generated from enum value: TYPE_MESSAGE = 11;
512
+ */
513
+ MESSAGE = 11,
514
+ /**
515
+ * New in version 2.
516
+ *
517
+ * @generated from enum value: TYPE_BYTES = 12;
518
+ */
519
+ BYTES = 12,
520
+ /**
521
+ * @generated from enum value: TYPE_UINT32 = 13;
522
+ */
523
+ UINT32 = 13,
524
+ /**
525
+ * @generated from enum value: TYPE_ENUM = 14;
526
+ */
527
+ ENUM = 14,
528
+ /**
529
+ * @generated from enum value: TYPE_SFIXED32 = 15;
530
+ */
531
+ SFIXED32 = 15,
532
+ /**
533
+ * @generated from enum value: TYPE_SFIXED64 = 16;
534
+ */
535
+ SFIXED64 = 16,
536
+ /**
537
+ * Uses ZigZag encoding.
538
+ *
539
+ * @generated from enum value: TYPE_SINT32 = 17;
540
+ */
541
+ SINT32 = 17,
542
+ /**
543
+ * Uses ZigZag encoding.
544
+ *
545
+ * @generated from enum value: TYPE_SINT64 = 18;
546
+ */
547
+ SINT64 = 18
548
+ }
549
+ /**
550
+ * @generated from enum google.protobuf.FieldDescriptorProto.Label
551
+ */
552
+ export declare enum FieldDescriptorProto_Label {
553
+ /**
554
+ * 0 is reserved for errors
555
+ *
556
+ * @generated from enum value: LABEL_OPTIONAL = 1;
557
+ */
558
+ OPTIONAL = 1,
559
+ /**
560
+ * @generated from enum value: LABEL_REQUIRED = 2;
561
+ */
562
+ REQUIRED = 2,
563
+ /**
564
+ * @generated from enum value: LABEL_REPEATED = 3;
565
+ */
566
+ REPEATED = 3
567
+ }
568
+ /**
569
+ * Describes a oneof.
570
+ *
571
+ * @generated from message google.protobuf.OneofDescriptorProto
572
+ */
573
+ export declare class OneofDescriptorProto extends Message<OneofDescriptorProto> {
574
+ /**
575
+ * @generated from field: optional string name = 1;
576
+ */
577
+ name?: string;
578
+ /**
579
+ * @generated from field: optional google.protobuf.OneofOptions options = 2;
580
+ */
581
+ options?: OneofOptions;
582
+ constructor(data?: PartialMessage<OneofDescriptorProto>);
583
+ static readonly runtime: typeof proto2;
584
+ static readonly typeName = "google.protobuf.OneofDescriptorProto";
585
+ static readonly fields: FieldList;
586
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofDescriptorProto;
587
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OneofDescriptorProto;
588
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OneofDescriptorProto;
589
+ static equals(a: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined, b: OneofDescriptorProto | PlainMessage<OneofDescriptorProto> | undefined): boolean;
590
+ }
591
+ /**
592
+ * Describes an enum type.
593
+ *
594
+ * @generated from message google.protobuf.EnumDescriptorProto
595
+ */
596
+ export declare class EnumDescriptorProto extends Message<EnumDescriptorProto> {
597
+ /**
598
+ * @generated from field: optional string name = 1;
599
+ */
600
+ name?: string;
601
+ /**
602
+ * @generated from field: repeated google.protobuf.EnumValueDescriptorProto value = 2;
603
+ */
604
+ value: EnumValueDescriptorProto[];
605
+ /**
606
+ * @generated from field: optional google.protobuf.EnumOptions options = 3;
607
+ */
608
+ options?: EnumOptions;
609
+ /**
610
+ * Range of reserved numeric values. Reserved numeric values may not be used
611
+ * by enum values in the same enum declaration. Reserved ranges may not
612
+ * overlap.
613
+ *
614
+ * @generated from field: repeated google.protobuf.EnumDescriptorProto.EnumReservedRange reserved_range = 4;
615
+ */
616
+ reservedRange: EnumDescriptorProto_EnumReservedRange[];
617
+ /**
618
+ * Reserved enum value names, which may not be reused. A given name may only
619
+ * be reserved once.
620
+ *
621
+ * @generated from field: repeated string reserved_name = 5;
622
+ */
623
+ reservedName: string[];
624
+ constructor(data?: PartialMessage<EnumDescriptorProto>);
625
+ static readonly runtime: typeof proto2;
626
+ static readonly typeName = "google.protobuf.EnumDescriptorProto";
627
+ static readonly fields: FieldList;
628
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto;
629
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumDescriptorProto;
630
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumDescriptorProto;
631
+ static equals(a: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined, b: EnumDescriptorProto | PlainMessage<EnumDescriptorProto> | undefined): boolean;
632
+ }
633
+ /**
634
+ * Range of reserved numeric values. Reserved values may not be used by
635
+ * entries in the same enum. Reserved ranges may not overlap.
636
+ *
637
+ * Note that this is distinct from DescriptorProto.ReservedRange in that it
638
+ * is inclusive such that it can appropriately represent the entire int32
639
+ * domain.
640
+ *
641
+ * @generated from message google.protobuf.EnumDescriptorProto.EnumReservedRange
642
+ */
643
+ export declare class EnumDescriptorProto_EnumReservedRange extends Message<EnumDescriptorProto_EnumReservedRange> {
644
+ /**
645
+ * Inclusive.
646
+ *
647
+ * @generated from field: optional int32 start = 1;
648
+ */
649
+ start?: number;
650
+ /**
651
+ * Inclusive.
652
+ *
653
+ * @generated from field: optional int32 end = 2;
654
+ */
655
+ end?: number;
656
+ constructor(data?: PartialMessage<EnumDescriptorProto_EnumReservedRange>);
657
+ static readonly runtime: typeof proto2;
658
+ static readonly typeName = "google.protobuf.EnumDescriptorProto.EnumReservedRange";
659
+ static readonly fields: FieldList;
660
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumDescriptorProto_EnumReservedRange;
661
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumDescriptorProto_EnumReservedRange;
662
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumDescriptorProto_EnumReservedRange;
663
+ static equals(a: EnumDescriptorProto_EnumReservedRange | PlainMessage<EnumDescriptorProto_EnumReservedRange> | undefined, b: EnumDescriptorProto_EnumReservedRange | PlainMessage<EnumDescriptorProto_EnumReservedRange> | undefined): boolean;
664
+ }
665
+ /**
666
+ * Describes a value within an enum.
667
+ *
668
+ * @generated from message google.protobuf.EnumValueDescriptorProto
669
+ */
670
+ export declare class EnumValueDescriptorProto extends Message<EnumValueDescriptorProto> {
671
+ /**
672
+ * @generated from field: optional string name = 1;
673
+ */
674
+ name?: string;
675
+ /**
676
+ * @generated from field: optional int32 number = 2;
677
+ */
678
+ number?: number;
679
+ /**
680
+ * @generated from field: optional google.protobuf.EnumValueOptions options = 3;
681
+ */
682
+ options?: EnumValueOptions;
683
+ constructor(data?: PartialMessage<EnumValueDescriptorProto>);
684
+ static readonly runtime: typeof proto2;
685
+ static readonly typeName = "google.protobuf.EnumValueDescriptorProto";
686
+ static readonly fields: FieldList;
687
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueDescriptorProto;
688
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValueDescriptorProto;
689
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValueDescriptorProto;
690
+ static equals(a: EnumValueDescriptorProto | PlainMessage<EnumValueDescriptorProto> | undefined, b: EnumValueDescriptorProto | PlainMessage<EnumValueDescriptorProto> | undefined): boolean;
691
+ }
692
+ /**
693
+ * Describes a service.
694
+ *
695
+ * @generated from message google.protobuf.ServiceDescriptorProto
696
+ */
697
+ export declare class ServiceDescriptorProto extends Message<ServiceDescriptorProto> {
698
+ /**
699
+ * @generated from field: optional string name = 1;
700
+ */
701
+ name?: string;
702
+ /**
703
+ * @generated from field: repeated google.protobuf.MethodDescriptorProto method = 2;
704
+ */
705
+ method: MethodDescriptorProto[];
706
+ /**
707
+ * @generated from field: optional google.protobuf.ServiceOptions options = 3;
708
+ */
709
+ options?: ServiceOptions;
710
+ constructor(data?: PartialMessage<ServiceDescriptorProto>);
711
+ static readonly runtime: typeof proto2;
712
+ static readonly typeName = "google.protobuf.ServiceDescriptorProto";
713
+ static readonly fields: FieldList;
714
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceDescriptorProto;
715
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceDescriptorProto;
716
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceDescriptorProto;
717
+ static equals(a: ServiceDescriptorProto | PlainMessage<ServiceDescriptorProto> | undefined, b: ServiceDescriptorProto | PlainMessage<ServiceDescriptorProto> | undefined): boolean;
718
+ }
719
+ /**
720
+ * Describes a method of a service.
721
+ *
722
+ * @generated from message google.protobuf.MethodDescriptorProto
723
+ */
724
+ export declare class MethodDescriptorProto extends Message<MethodDescriptorProto> {
725
+ /**
726
+ * @generated from field: optional string name = 1;
727
+ */
728
+ name?: string;
729
+ /**
730
+ * Input and output type names. These are resolved in the same way as
731
+ * FieldDescriptorProto.type_name, but must refer to a message type.
732
+ *
733
+ * @generated from field: optional string input_type = 2;
734
+ */
735
+ inputType?: string;
736
+ /**
737
+ * @generated from field: optional string output_type = 3;
738
+ */
739
+ outputType?: string;
740
+ /**
741
+ * @generated from field: optional google.protobuf.MethodOptions options = 4;
742
+ */
743
+ options?: MethodOptions;
744
+ /**
745
+ * Identifies if client streams multiple client messages
746
+ *
747
+ * @generated from field: optional bool client_streaming = 5 [default = false];
748
+ */
749
+ clientStreaming?: boolean;
750
+ /**
751
+ * Identifies if server streams multiple server messages
752
+ *
753
+ * @generated from field: optional bool server_streaming = 6 [default = false];
754
+ */
755
+ serverStreaming?: boolean;
756
+ constructor(data?: PartialMessage<MethodDescriptorProto>);
757
+ static readonly runtime: typeof proto2;
758
+ static readonly typeName = "google.protobuf.MethodDescriptorProto";
759
+ static readonly fields: FieldList;
760
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodDescriptorProto;
761
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MethodDescriptorProto;
762
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MethodDescriptorProto;
763
+ static equals(a: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined, b: MethodDescriptorProto | PlainMessage<MethodDescriptorProto> | undefined): boolean;
764
+ }
765
+ /**
766
+ * @generated from message google.protobuf.FileOptions
767
+ */
768
+ export declare class FileOptions extends Message<FileOptions> {
769
+ /**
770
+ * Sets the Java package where classes generated from this .proto will be
771
+ * placed. By default, the proto package is used, but this is often
772
+ * inappropriate because proto packages do not normally start with backwards
773
+ * domain names.
774
+ *
775
+ * @generated from field: optional string java_package = 1;
776
+ */
777
+ javaPackage?: string;
778
+ /**
779
+ * Controls the name of the wrapper Java class generated for the .proto file.
780
+ * That class will always contain the .proto file's getDescriptor() method as
781
+ * well as any top-level extensions defined in the .proto file.
782
+ * If java_multiple_files is disabled, then all the other classes from the
783
+ * .proto file will be nested inside the single wrapper outer class.
784
+ *
785
+ * @generated from field: optional string java_outer_classname = 8;
786
+ */
787
+ javaOuterClassname?: string;
788
+ /**
789
+ * If enabled, then the Java code generator will generate a separate .java
790
+ * file for each top-level message, enum, and service defined in the .proto
791
+ * file. Thus, these types will *not* be nested inside the wrapper class
792
+ * named by java_outer_classname. However, the wrapper class will still be
793
+ * generated to contain the file's getDescriptor() method as well as any
794
+ * top-level extensions defined in the file.
795
+ *
796
+ * @generated from field: optional bool java_multiple_files = 10 [default = false];
797
+ */
798
+ javaMultipleFiles?: boolean;
799
+ /**
800
+ * This option does nothing.
801
+ *
802
+ * @generated from field: optional bool java_generate_equals_and_hash = 20 [deprecated = true];
803
+ * @deprecated
804
+ */
805
+ javaGenerateEqualsAndHash?: boolean;
806
+ /**
807
+ * If set true, then the Java2 code generator will generate code that
808
+ * throws an exception whenever an attempt is made to assign a non-UTF-8
809
+ * byte sequence to a string field.
810
+ * Message reflection will do the same.
811
+ * However, an extension field still accepts non-UTF-8 byte sequences.
812
+ * This option has no effect on when used with the lite runtime.
813
+ *
814
+ * @generated from field: optional bool java_string_check_utf8 = 27 [default = false];
815
+ */
816
+ javaStringCheckUtf8?: boolean;
817
+ /**
818
+ * @generated from field: optional google.protobuf.FileOptions.OptimizeMode optimize_for = 9 [default = SPEED];
819
+ */
820
+ optimizeFor?: FileOptions_OptimizeMode;
821
+ /**
822
+ * Sets the Go package where structs generated from this .proto will be
823
+ * placed. If omitted, the Go package will be derived from the following:
824
+ * - The basename of the package import path, if provided.
825
+ * - Otherwise, the package statement in the .proto file, if present.
826
+ * - Otherwise, the basename of the .proto file, without extension.
827
+ *
828
+ * @generated from field: optional string go_package = 11;
829
+ */
830
+ goPackage?: string;
831
+ /**
832
+ * Should generic services be generated in each language? "Generic" services
833
+ * are not specific to any particular RPC system. They are generated by the
834
+ * main code generators in each language (without additional plugins).
835
+ * Generic services were the only kind of service generation supported by
836
+ * early versions of google.protobuf.
837
+ *
838
+ * Generic services are now considered deprecated in favor of using plugins
839
+ * that generate code specific to your particular RPC system. Therefore,
840
+ * these default to false. Old code which depends on generic services should
841
+ * explicitly set them to true.
842
+ *
843
+ * @generated from field: optional bool cc_generic_services = 16 [default = false];
844
+ */
845
+ ccGenericServices?: boolean;
846
+ /**
847
+ * @generated from field: optional bool java_generic_services = 17 [default = false];
848
+ */
849
+ javaGenericServices?: boolean;
850
+ /**
851
+ * @generated from field: optional bool py_generic_services = 18 [default = false];
852
+ */
853
+ pyGenericServices?: boolean;
854
+ /**
855
+ * @generated from field: optional bool php_generic_services = 42 [default = false];
856
+ */
857
+ phpGenericServices?: boolean;
858
+ /**
859
+ * Is this file deprecated?
860
+ * Depending on the target platform, this can emit Deprecated annotations
861
+ * for everything in the file, or it will be completely ignored; in the very
862
+ * least, this is a formalization for deprecating files.
863
+ *
864
+ * @generated from field: optional bool deprecated = 23 [default = false];
865
+ */
866
+ deprecated?: boolean;
867
+ /**
868
+ * Enables the use of arenas for the proto messages in this file. This applies
869
+ * only to generated classes for C++.
870
+ *
871
+ * @generated from field: optional bool cc_enable_arenas = 31 [default = true];
872
+ */
873
+ ccEnableArenas?: boolean;
874
+ /**
875
+ * Sets the objective c class prefix which is prepended to all objective c
876
+ * generated classes from this .proto. There is no default.
877
+ *
878
+ * @generated from field: optional string objc_class_prefix = 36;
879
+ */
880
+ objcClassPrefix?: string;
881
+ /**
882
+ * Namespace for generated classes; defaults to the package.
883
+ *
884
+ * @generated from field: optional string csharp_namespace = 37;
885
+ */
886
+ csharpNamespace?: string;
887
+ /**
888
+ * By default Swift generators will take the proto package and CamelCase it
889
+ * replacing '.' with underscore and use that to prefix the types/symbols
890
+ * defined. When this options is provided, they will use this value instead
891
+ * to prefix the types/symbols defined.
892
+ *
893
+ * @generated from field: optional string swift_prefix = 39;
894
+ */
895
+ swiftPrefix?: string;
896
+ /**
897
+ * Sets the php class prefix which is prepended to all php generated classes
898
+ * from this .proto. Default is empty.
899
+ *
900
+ * @generated from field: optional string php_class_prefix = 40;
901
+ */
902
+ phpClassPrefix?: string;
903
+ /**
904
+ * Use this option to change the namespace of php generated classes. Default
905
+ * is empty. When this option is empty, the package name will be used for
906
+ * determining the namespace.
907
+ *
908
+ * @generated from field: optional string php_namespace = 41;
909
+ */
910
+ phpNamespace?: string;
911
+ /**
912
+ * Use this option to change the namespace of php generated metadata classes.
913
+ * Default is empty. When this option is empty, the proto file name will be
914
+ * used for determining the namespace.
915
+ *
916
+ * @generated from field: optional string php_metadata_namespace = 44;
917
+ */
918
+ phpMetadataNamespace?: string;
919
+ /**
920
+ * Use this option to change the package of ruby generated classes. Default
921
+ * is empty. When this option is not set, the package name will be used for
922
+ * determining the ruby package.
923
+ *
924
+ * @generated from field: optional string ruby_package = 45;
925
+ */
926
+ rubyPackage?: string;
927
+ /**
928
+ * The parser stores options it doesn't recognize here.
929
+ * See the documentation for the "Options" section above.
930
+ *
931
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
932
+ */
933
+ uninterpretedOption: UninterpretedOption[];
934
+ constructor(data?: PartialMessage<FileOptions>);
935
+ static readonly runtime: typeof proto2;
936
+ static readonly typeName = "google.protobuf.FileOptions";
937
+ static readonly fields: FieldList;
938
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FileOptions;
939
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FileOptions;
940
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FileOptions;
941
+ static equals(a: FileOptions | PlainMessage<FileOptions> | undefined, b: FileOptions | PlainMessage<FileOptions> | undefined): boolean;
942
+ }
943
+ /**
944
+ * Generated classes can be optimized for speed or code size.
945
+ *
946
+ * @generated from enum google.protobuf.FileOptions.OptimizeMode
947
+ */
948
+ export declare enum FileOptions_OptimizeMode {
949
+ /**
950
+ * Generate complete code for parsing, serialization,
951
+ *
952
+ * @generated from enum value: SPEED = 1;
953
+ */
954
+ SPEED = 1,
955
+ /**
956
+ * etc.
957
+ *
958
+ * Use ReflectionOps to implement these methods.
959
+ *
960
+ * @generated from enum value: CODE_SIZE = 2;
961
+ */
962
+ CODE_SIZE = 2,
963
+ /**
964
+ * Generate code using MessageLite and the lite runtime.
965
+ *
966
+ * @generated from enum value: LITE_RUNTIME = 3;
967
+ */
968
+ LITE_RUNTIME = 3
969
+ }
970
+ /**
971
+ * @generated from message google.protobuf.MessageOptions
972
+ */
973
+ export declare class MessageOptions extends Message<MessageOptions> {
974
+ /**
975
+ * Set true to use the old proto1 MessageSet wire format for extensions.
976
+ * This is provided for backwards-compatibility with the MessageSet wire
977
+ * format. You should not use this for any other reason: It's less
978
+ * efficient, has fewer features, and is more complicated.
979
+ *
980
+ * The message must be defined exactly as follows:
981
+ * message Foo {
982
+ * option message_set_wire_format = true;
983
+ * extensions 4 to max;
984
+ * }
985
+ * Note that the message cannot have any defined fields; MessageSets only
986
+ * have extensions.
987
+ *
988
+ * All extensions of your type must be singular messages; e.g. they cannot
989
+ * be int32s, enums, or repeated messages.
990
+ *
991
+ * Because this is an option, the above two restrictions are not enforced by
992
+ * the protocol compiler.
993
+ *
994
+ * @generated from field: optional bool message_set_wire_format = 1 [default = false];
995
+ */
996
+ messageSetWireFormat?: boolean;
997
+ /**
998
+ * Disables the generation of the standard "descriptor()" accessor, which can
999
+ * conflict with a field of the same name. This is meant to make migration
1000
+ * from proto1 easier; new code should avoid fields named "descriptor".
1001
+ *
1002
+ * @generated from field: optional bool no_standard_descriptor_accessor = 2 [default = false];
1003
+ */
1004
+ noStandardDescriptorAccessor?: boolean;
1005
+ /**
1006
+ * Is this message deprecated?
1007
+ * Depending on the target platform, this can emit Deprecated annotations
1008
+ * for the message, or it will be completely ignored; in the very least,
1009
+ * this is a formalization for deprecating messages.
1010
+ *
1011
+ * @generated from field: optional bool deprecated = 3 [default = false];
1012
+ */
1013
+ deprecated?: boolean;
1014
+ /**
1015
+ * NOTE: Do not set the option in .proto files. Always use the maps syntax
1016
+ * instead. The option should only be implicitly set by the proto compiler
1017
+ * parser.
1018
+ *
1019
+ * Whether the message is an automatically generated map entry type for the
1020
+ * maps field.
1021
+ *
1022
+ * For maps fields:
1023
+ * map<KeyType, ValueType> map_field = 1;
1024
+ * The parsed descriptor looks like:
1025
+ * message MapFieldEntry {
1026
+ * option map_entry = true;
1027
+ * optional KeyType key = 1;
1028
+ * optional ValueType value = 2;
1029
+ * }
1030
+ * repeated MapFieldEntry map_field = 1;
1031
+ *
1032
+ * Implementations may choose not to generate the map_entry=true message, but
1033
+ * use a native map in the target language to hold the keys and values.
1034
+ * The reflection APIs in such implementations still need to work as
1035
+ * if the field is a repeated message field.
1036
+ *
1037
+ * @generated from field: optional bool map_entry = 7;
1038
+ */
1039
+ mapEntry?: boolean;
1040
+ /**
1041
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
1042
+ * and strips underscored from the fields before comparison in proto3 only.
1043
+ * The new behavior takes `json_name` into account and applies to proto2 as
1044
+ * well.
1045
+ *
1046
+ * This should only be used as a temporary measure against broken builds due
1047
+ * to the change in behavior for JSON field name conflicts.
1048
+ *
1049
+ * TODO(b/261750190) This is legacy behavior we plan to remove once downstream
1050
+ * teams have had time to migrate.
1051
+ *
1052
+ * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 11 [deprecated = true];
1053
+ * @deprecated
1054
+ */
1055
+ deprecatedLegacyJsonFieldConflicts?: boolean;
1056
+ /**
1057
+ * The parser stores options it doesn't recognize here. See above.
1058
+ *
1059
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1060
+ */
1061
+ uninterpretedOption: UninterpretedOption[];
1062
+ constructor(data?: PartialMessage<MessageOptions>);
1063
+ static readonly runtime: typeof proto2;
1064
+ static readonly typeName = "google.protobuf.MessageOptions";
1065
+ static readonly fields: FieldList;
1066
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MessageOptions;
1067
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MessageOptions;
1068
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MessageOptions;
1069
+ static equals(a: MessageOptions | PlainMessage<MessageOptions> | undefined, b: MessageOptions | PlainMessage<MessageOptions> | undefined): boolean;
1070
+ }
1071
+ /**
1072
+ * @generated from message google.protobuf.FieldOptions
1073
+ */
1074
+ export declare class FieldOptions extends Message<FieldOptions> {
1075
+ /**
1076
+ * The ctype option instructs the C++ code generator to use a different
1077
+ * representation of the field than it normally would. See the specific
1078
+ * options below. This option is only implemented to support use of
1079
+ * [ctype=CORD] and [ctype=STRING] (the default) on non-repeated fields of
1080
+ * type "bytes" in the open source release -- sorry, we'll try to include
1081
+ * other types in a future version!
1082
+ *
1083
+ * @generated from field: optional google.protobuf.FieldOptions.CType ctype = 1 [default = STRING];
1084
+ */
1085
+ ctype?: FieldOptions_CType;
1086
+ /**
1087
+ * The packed option can be enabled for repeated primitive fields to enable
1088
+ * a more efficient representation on the wire. Rather than repeatedly
1089
+ * writing the tag and type for each element, the entire array is encoded as
1090
+ * a single length-delimited blob. In proto3, only explicit setting it to
1091
+ * false will avoid using packed encoding.
1092
+ *
1093
+ * @generated from field: optional bool packed = 2;
1094
+ */
1095
+ packed?: boolean;
1096
+ /**
1097
+ * The jstype option determines the JavaScript type used for values of the
1098
+ * field. The option is permitted only for 64 bit integral and fixed types
1099
+ * (int64, uint64, sint64, fixed64, sfixed64). A field with jstype JS_STRING
1100
+ * is represented as JavaScript string, which avoids loss of precision that
1101
+ * can happen when a large value is converted to a floating point JavaScript.
1102
+ * Specifying JS_NUMBER for the jstype causes the generated JavaScript code to
1103
+ * use the JavaScript "number" type. The behavior of the default option
1104
+ * JS_NORMAL is implementation dependent.
1105
+ *
1106
+ * This option is an enum to permit additional types to be added, e.g.
1107
+ * goog.math.Integer.
1108
+ *
1109
+ * @generated from field: optional google.protobuf.FieldOptions.JSType jstype = 6 [default = JS_NORMAL];
1110
+ */
1111
+ jstype?: FieldOptions_JSType;
1112
+ /**
1113
+ * Should this field be parsed lazily? Lazy applies only to message-type
1114
+ * fields. It means that when the outer message is initially parsed, the
1115
+ * inner message's contents will not be parsed but instead stored in encoded
1116
+ * form. The inner message will actually be parsed when it is first accessed.
1117
+ *
1118
+ * This is only a hint. Implementations are free to choose whether to use
1119
+ * eager or lazy parsing regardless of the value of this option. However,
1120
+ * setting this option true suggests that the protocol author believes that
1121
+ * using lazy parsing on this field is worth the additional bookkeeping
1122
+ * overhead typically needed to implement it.
1123
+ *
1124
+ * This option does not affect the public interface of any generated code;
1125
+ * all method signatures remain the same. Furthermore, thread-safety of the
1126
+ * interface is not affected by this option; const methods remain safe to
1127
+ * call from multiple threads concurrently, while non-const methods continue
1128
+ * to require exclusive access.
1129
+ *
1130
+ * Note that implementations may choose not to check required fields within
1131
+ * a lazy sub-message. That is, calling IsInitialized() on the outer message
1132
+ * may return true even if the inner message has missing required fields.
1133
+ * This is necessary because otherwise the inner message would have to be
1134
+ * parsed in order to perform the check, defeating the purpose of lazy
1135
+ * parsing. An implementation which chooses not to check required fields
1136
+ * must be consistent about it. That is, for any particular sub-message, the
1137
+ * implementation must either *always* check its required fields, or *never*
1138
+ * check its required fields, regardless of whether or not the message has
1139
+ * been parsed.
1140
+ *
1141
+ * As of May 2022, lazy verifies the contents of the byte stream during
1142
+ * parsing. An invalid byte stream will cause the overall parsing to fail.
1143
+ *
1144
+ * @generated from field: optional bool lazy = 5 [default = false];
1145
+ */
1146
+ lazy?: boolean;
1147
+ /**
1148
+ * unverified_lazy does no correctness checks on the byte stream. This should
1149
+ * only be used where lazy with verification is prohibitive for performance
1150
+ * reasons.
1151
+ *
1152
+ * @generated from field: optional bool unverified_lazy = 15 [default = false];
1153
+ */
1154
+ unverifiedLazy?: boolean;
1155
+ /**
1156
+ * Is this field deprecated?
1157
+ * Depending on the target platform, this can emit Deprecated annotations
1158
+ * for accessors, or it will be completely ignored; in the very least, this
1159
+ * is a formalization for deprecating fields.
1160
+ *
1161
+ * @generated from field: optional bool deprecated = 3 [default = false];
1162
+ */
1163
+ deprecated?: boolean;
1164
+ /**
1165
+ * For Google-internal migration only. Do not use.
1166
+ *
1167
+ * @generated from field: optional bool weak = 10 [default = false];
1168
+ */
1169
+ weak?: boolean;
1170
+ /**
1171
+ * Indicate that the field value should not be printed out when using debug
1172
+ * formats, e.g. when the field contains sensitive credentials.
1173
+ *
1174
+ * @generated from field: optional bool debug_redact = 16 [default = false];
1175
+ */
1176
+ debugRedact?: boolean;
1177
+ /**
1178
+ * @generated from field: optional google.protobuf.FieldOptions.OptionRetention retention = 17;
1179
+ */
1180
+ retention?: FieldOptions_OptionRetention;
1181
+ /**
1182
+ * @generated from field: optional google.protobuf.FieldOptions.OptionTargetType target = 18 [deprecated = true];
1183
+ * @deprecated
1184
+ */
1185
+ target?: FieldOptions_OptionTargetType;
1186
+ /**
1187
+ * @generated from field: repeated google.protobuf.FieldOptions.OptionTargetType targets = 19;
1188
+ */
1189
+ targets: FieldOptions_OptionTargetType[];
1190
+ /**
1191
+ * The parser stores options it doesn't recognize here. See above.
1192
+ *
1193
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1194
+ */
1195
+ uninterpretedOption: UninterpretedOption[];
1196
+ constructor(data?: PartialMessage<FieldOptions>);
1197
+ static readonly runtime: typeof proto2;
1198
+ static readonly typeName = "google.protobuf.FieldOptions";
1199
+ static readonly fields: FieldList;
1200
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FieldOptions;
1201
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FieldOptions;
1202
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FieldOptions;
1203
+ static equals(a: FieldOptions | PlainMessage<FieldOptions> | undefined, b: FieldOptions | PlainMessage<FieldOptions> | undefined): boolean;
1204
+ }
1205
+ /**
1206
+ * @generated from enum google.protobuf.FieldOptions.CType
1207
+ */
1208
+ export declare enum FieldOptions_CType {
1209
+ /**
1210
+ * Default mode.
1211
+ *
1212
+ * @generated from enum value: STRING = 0;
1213
+ */
1214
+ STRING = 0,
1215
+ /**
1216
+ * The option [ctype=CORD] may be applied to a non-repeated field of type
1217
+ * "bytes". It indicates that in C++, the data should be stored in a Cord
1218
+ * instead of a string. For very large strings, this may reduce memory
1219
+ * fragmentation. It may also allow better performance when parsing from a
1220
+ * Cord, or when parsing with aliasing enabled, as the parsed Cord may then
1221
+ * alias the original buffer.
1222
+ *
1223
+ * @generated from enum value: CORD = 1;
1224
+ */
1225
+ CORD = 1,
1226
+ /**
1227
+ * @generated from enum value: STRING_PIECE = 2;
1228
+ */
1229
+ STRING_PIECE = 2
1230
+ }
1231
+ /**
1232
+ * @generated from enum google.protobuf.FieldOptions.JSType
1233
+ */
1234
+ export declare enum FieldOptions_JSType {
1235
+ /**
1236
+ * Use the default type.
1237
+ *
1238
+ * @generated from enum value: JS_NORMAL = 0;
1239
+ */
1240
+ JS_NORMAL = 0,
1241
+ /**
1242
+ * Use JavaScript strings.
1243
+ *
1244
+ * @generated from enum value: JS_STRING = 1;
1245
+ */
1246
+ JS_STRING = 1,
1247
+ /**
1248
+ * Use JavaScript numbers.
1249
+ *
1250
+ * @generated from enum value: JS_NUMBER = 2;
1251
+ */
1252
+ JS_NUMBER = 2
1253
+ }
1254
+ /**
1255
+ * If set to RETENTION_SOURCE, the option will be omitted from the binary.
1256
+ * Note: as of January 2023, support for this is in progress and does not yet
1257
+ * have an effect (b/264593489).
1258
+ *
1259
+ * @generated from enum google.protobuf.FieldOptions.OptionRetention
1260
+ */
1261
+ export declare enum FieldOptions_OptionRetention {
1262
+ /**
1263
+ * @generated from enum value: RETENTION_UNKNOWN = 0;
1264
+ */
1265
+ RETENTION_UNKNOWN = 0,
1266
+ /**
1267
+ * @generated from enum value: RETENTION_RUNTIME = 1;
1268
+ */
1269
+ RETENTION_RUNTIME = 1,
1270
+ /**
1271
+ * @generated from enum value: RETENTION_SOURCE = 2;
1272
+ */
1273
+ RETENTION_SOURCE = 2
1274
+ }
1275
+ /**
1276
+ * This indicates the types of entities that the field may apply to when used
1277
+ * as an option. If it is unset, then the field may be freely used as an
1278
+ * option on any kind of entity. Note: as of January 2023, support for this is
1279
+ * in progress and does not yet have an effect (b/264593489).
1280
+ *
1281
+ * @generated from enum google.protobuf.FieldOptions.OptionTargetType
1282
+ */
1283
+ export declare enum FieldOptions_OptionTargetType {
1284
+ /**
1285
+ * @generated from enum value: TARGET_TYPE_UNKNOWN = 0;
1286
+ */
1287
+ TARGET_TYPE_UNKNOWN = 0,
1288
+ /**
1289
+ * @generated from enum value: TARGET_TYPE_FILE = 1;
1290
+ */
1291
+ TARGET_TYPE_FILE = 1,
1292
+ /**
1293
+ * @generated from enum value: TARGET_TYPE_EXTENSION_RANGE = 2;
1294
+ */
1295
+ TARGET_TYPE_EXTENSION_RANGE = 2,
1296
+ /**
1297
+ * @generated from enum value: TARGET_TYPE_MESSAGE = 3;
1298
+ */
1299
+ TARGET_TYPE_MESSAGE = 3,
1300
+ /**
1301
+ * @generated from enum value: TARGET_TYPE_FIELD = 4;
1302
+ */
1303
+ TARGET_TYPE_FIELD = 4,
1304
+ /**
1305
+ * @generated from enum value: TARGET_TYPE_ONEOF = 5;
1306
+ */
1307
+ TARGET_TYPE_ONEOF = 5,
1308
+ /**
1309
+ * @generated from enum value: TARGET_TYPE_ENUM = 6;
1310
+ */
1311
+ TARGET_TYPE_ENUM = 6,
1312
+ /**
1313
+ * @generated from enum value: TARGET_TYPE_ENUM_ENTRY = 7;
1314
+ */
1315
+ TARGET_TYPE_ENUM_ENTRY = 7,
1316
+ /**
1317
+ * @generated from enum value: TARGET_TYPE_SERVICE = 8;
1318
+ */
1319
+ TARGET_TYPE_SERVICE = 8,
1320
+ /**
1321
+ * @generated from enum value: TARGET_TYPE_METHOD = 9;
1322
+ */
1323
+ TARGET_TYPE_METHOD = 9
1324
+ }
1325
+ /**
1326
+ * @generated from message google.protobuf.OneofOptions
1327
+ */
1328
+ export declare class OneofOptions extends Message<OneofOptions> {
1329
+ /**
1330
+ * The parser stores options it doesn't recognize here. See above.
1331
+ *
1332
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1333
+ */
1334
+ uninterpretedOption: UninterpretedOption[];
1335
+ constructor(data?: PartialMessage<OneofOptions>);
1336
+ static readonly runtime: typeof proto2;
1337
+ static readonly typeName = "google.protobuf.OneofOptions";
1338
+ static readonly fields: FieldList;
1339
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OneofOptions;
1340
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OneofOptions;
1341
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OneofOptions;
1342
+ static equals(a: OneofOptions | PlainMessage<OneofOptions> | undefined, b: OneofOptions | PlainMessage<OneofOptions> | undefined): boolean;
1343
+ }
1344
+ /**
1345
+ * @generated from message google.protobuf.EnumOptions
1346
+ */
1347
+ export declare class EnumOptions extends Message<EnumOptions> {
1348
+ /**
1349
+ * Set this option to true to allow mapping different tag names to the same
1350
+ * value.
1351
+ *
1352
+ * @generated from field: optional bool allow_alias = 2;
1353
+ */
1354
+ allowAlias?: boolean;
1355
+ /**
1356
+ * Is this enum deprecated?
1357
+ * Depending on the target platform, this can emit Deprecated annotations
1358
+ * for the enum, or it will be completely ignored; in the very least, this
1359
+ * is a formalization for deprecating enums.
1360
+ *
1361
+ * @generated from field: optional bool deprecated = 3 [default = false];
1362
+ */
1363
+ deprecated?: boolean;
1364
+ /**
1365
+ * Enable the legacy handling of JSON field name conflicts. This lowercases
1366
+ * and strips underscored from the fields before comparison in proto3 only.
1367
+ * The new behavior takes `json_name` into account and applies to proto2 as
1368
+ * well.
1369
+ * TODO(b/261750190) Remove this legacy behavior once downstream teams have
1370
+ * had time to migrate.
1371
+ *
1372
+ * @generated from field: optional bool deprecated_legacy_json_field_conflicts = 6 [deprecated = true];
1373
+ * @deprecated
1374
+ */
1375
+ deprecatedLegacyJsonFieldConflicts?: boolean;
1376
+ /**
1377
+ * The parser stores options it doesn't recognize here. See above.
1378
+ *
1379
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1380
+ */
1381
+ uninterpretedOption: UninterpretedOption[];
1382
+ constructor(data?: PartialMessage<EnumOptions>);
1383
+ static readonly runtime: typeof proto2;
1384
+ static readonly typeName = "google.protobuf.EnumOptions";
1385
+ static readonly fields: FieldList;
1386
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumOptions;
1387
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumOptions;
1388
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumOptions;
1389
+ static equals(a: EnumOptions | PlainMessage<EnumOptions> | undefined, b: EnumOptions | PlainMessage<EnumOptions> | undefined): boolean;
1390
+ }
1391
+ /**
1392
+ * @generated from message google.protobuf.EnumValueOptions
1393
+ */
1394
+ export declare class EnumValueOptions extends Message<EnumValueOptions> {
1395
+ /**
1396
+ * Is this enum value deprecated?
1397
+ * Depending on the target platform, this can emit Deprecated annotations
1398
+ * for the enum value, or it will be completely ignored; in the very least,
1399
+ * this is a formalization for deprecating enum values.
1400
+ *
1401
+ * @generated from field: optional bool deprecated = 1 [default = false];
1402
+ */
1403
+ deprecated?: boolean;
1404
+ /**
1405
+ * The parser stores options it doesn't recognize here. See above.
1406
+ *
1407
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1408
+ */
1409
+ uninterpretedOption: UninterpretedOption[];
1410
+ constructor(data?: PartialMessage<EnumValueOptions>);
1411
+ static readonly runtime: typeof proto2;
1412
+ static readonly typeName = "google.protobuf.EnumValueOptions";
1413
+ static readonly fields: FieldList;
1414
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EnumValueOptions;
1415
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EnumValueOptions;
1416
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EnumValueOptions;
1417
+ static equals(a: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined, b: EnumValueOptions | PlainMessage<EnumValueOptions> | undefined): boolean;
1418
+ }
1419
+ /**
1420
+ * @generated from message google.protobuf.ServiceOptions
1421
+ */
1422
+ export declare class ServiceOptions extends Message<ServiceOptions> {
1423
+ /**
1424
+ * Is this service deprecated?
1425
+ * Depending on the target platform, this can emit Deprecated annotations
1426
+ * for the service, or it will be completely ignored; in the very least,
1427
+ * this is a formalization for deprecating services.
1428
+ *
1429
+ * @generated from field: optional bool deprecated = 33 [default = false];
1430
+ */
1431
+ deprecated?: boolean;
1432
+ /**
1433
+ * The parser stores options it doesn't recognize here. See above.
1434
+ *
1435
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1436
+ */
1437
+ uninterpretedOption: UninterpretedOption[];
1438
+ constructor(data?: PartialMessage<ServiceOptions>);
1439
+ static readonly runtime: typeof proto2;
1440
+ static readonly typeName = "google.protobuf.ServiceOptions";
1441
+ static readonly fields: FieldList;
1442
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ServiceOptions;
1443
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ServiceOptions;
1444
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ServiceOptions;
1445
+ static equals(a: ServiceOptions | PlainMessage<ServiceOptions> | undefined, b: ServiceOptions | PlainMessage<ServiceOptions> | undefined): boolean;
1446
+ }
1447
+ /**
1448
+ * @generated from message google.protobuf.MethodOptions
1449
+ */
1450
+ export declare class MethodOptions extends Message<MethodOptions> {
1451
+ /**
1452
+ * Is this method deprecated?
1453
+ * Depending on the target platform, this can emit Deprecated annotations
1454
+ * for the method, or it will be completely ignored; in the very least,
1455
+ * this is a formalization for deprecating methods.
1456
+ *
1457
+ * @generated from field: optional bool deprecated = 33 [default = false];
1458
+ */
1459
+ deprecated?: boolean;
1460
+ /**
1461
+ * @generated from field: optional google.protobuf.MethodOptions.IdempotencyLevel idempotency_level = 34 [default = IDEMPOTENCY_UNKNOWN];
1462
+ */
1463
+ idempotencyLevel?: MethodOptions_IdempotencyLevel;
1464
+ /**
1465
+ * The parser stores options it doesn't recognize here. See above.
1466
+ *
1467
+ * @generated from field: repeated google.protobuf.UninterpretedOption uninterpreted_option = 999;
1468
+ */
1469
+ uninterpretedOption: UninterpretedOption[];
1470
+ constructor(data?: PartialMessage<MethodOptions>);
1471
+ static readonly runtime: typeof proto2;
1472
+ static readonly typeName = "google.protobuf.MethodOptions";
1473
+ static readonly fields: FieldList;
1474
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MethodOptions;
1475
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MethodOptions;
1476
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MethodOptions;
1477
+ static equals(a: MethodOptions | PlainMessage<MethodOptions> | undefined, b: MethodOptions | PlainMessage<MethodOptions> | undefined): boolean;
1478
+ }
1479
+ /**
1480
+ * Is this method side-effect-free (or safe in HTTP parlance), or idempotent,
1481
+ * or neither? HTTP based RPC implementation may choose GET verb for safe
1482
+ * methods, and PUT verb for idempotent methods instead of the default POST.
1483
+ *
1484
+ * @generated from enum google.protobuf.MethodOptions.IdempotencyLevel
1485
+ */
1486
+ export declare enum MethodOptions_IdempotencyLevel {
1487
+ /**
1488
+ * @generated from enum value: IDEMPOTENCY_UNKNOWN = 0;
1489
+ */
1490
+ IDEMPOTENCY_UNKNOWN = 0,
1491
+ /**
1492
+ * implies idempotent
1493
+ *
1494
+ * @generated from enum value: NO_SIDE_EFFECTS = 1;
1495
+ */
1496
+ NO_SIDE_EFFECTS = 1,
1497
+ /**
1498
+ * idempotent, but may have side effects
1499
+ *
1500
+ * @generated from enum value: IDEMPOTENT = 2;
1501
+ */
1502
+ IDEMPOTENT = 2
1503
+ }
1504
+ /**
1505
+ * A message representing a option the parser does not recognize. This only
1506
+ * appears in options protos created by the compiler::Parser class.
1507
+ * DescriptorPool resolves these when building Descriptor objects. Therefore,
1508
+ * options protos in descriptor objects (e.g. returned by Descriptor::options(),
1509
+ * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions
1510
+ * in them.
1511
+ *
1512
+ * @generated from message google.protobuf.UninterpretedOption
1513
+ */
1514
+ export declare class UninterpretedOption extends Message<UninterpretedOption> {
1515
+ /**
1516
+ * @generated from field: repeated google.protobuf.UninterpretedOption.NamePart name = 2;
1517
+ */
1518
+ name: UninterpretedOption_NamePart[];
1519
+ /**
1520
+ * The value of the uninterpreted option, in whatever type the tokenizer
1521
+ * identified it as during parsing. Exactly one of these should be set.
1522
+ *
1523
+ * @generated from field: optional string identifier_value = 3;
1524
+ */
1525
+ identifierValue?: string;
1526
+ /**
1527
+ * @generated from field: optional uint64 positive_int_value = 4;
1528
+ */
1529
+ positiveIntValue?: bigint;
1530
+ /**
1531
+ * @generated from field: optional int64 negative_int_value = 5;
1532
+ */
1533
+ negativeIntValue?: bigint;
1534
+ /**
1535
+ * @generated from field: optional double double_value = 6;
1536
+ */
1537
+ doubleValue?: number;
1538
+ /**
1539
+ * @generated from field: optional bytes string_value = 7;
1540
+ */
1541
+ stringValue?: Uint8Array;
1542
+ /**
1543
+ * @generated from field: optional string aggregate_value = 8;
1544
+ */
1545
+ aggregateValue?: string;
1546
+ constructor(data?: PartialMessage<UninterpretedOption>);
1547
+ static readonly runtime: typeof proto2;
1548
+ static readonly typeName = "google.protobuf.UninterpretedOption";
1549
+ static readonly fields: FieldList;
1550
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption;
1551
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UninterpretedOption;
1552
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UninterpretedOption;
1553
+ static equals(a: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined, b: UninterpretedOption | PlainMessage<UninterpretedOption> | undefined): boolean;
1554
+ }
1555
+ /**
1556
+ * The name of the uninterpreted option. Each string represents a segment in
1557
+ * a dot-separated name. is_extension is true iff a segment represents an
1558
+ * extension (denoted with parentheses in options specs in .proto files).
1559
+ * E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
1560
+ * "foo.(bar.baz).moo".
1561
+ *
1562
+ * @generated from message google.protobuf.UninterpretedOption.NamePart
1563
+ */
1564
+ export declare class UninterpretedOption_NamePart extends Message<UninterpretedOption_NamePart> {
1565
+ /**
1566
+ * @generated from field: required string name_part = 1;
1567
+ */
1568
+ namePart?: string;
1569
+ /**
1570
+ * @generated from field: required bool is_extension = 2;
1571
+ */
1572
+ isExtension?: boolean;
1573
+ constructor(data?: PartialMessage<UninterpretedOption_NamePart>);
1574
+ static readonly runtime: typeof proto2;
1575
+ static readonly typeName = "google.protobuf.UninterpretedOption.NamePart";
1576
+ static readonly fields: FieldList;
1577
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UninterpretedOption_NamePart;
1578
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UninterpretedOption_NamePart;
1579
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UninterpretedOption_NamePart;
1580
+ static equals(a: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined, b: UninterpretedOption_NamePart | PlainMessage<UninterpretedOption_NamePart> | undefined): boolean;
1581
+ }
1582
+ /**
1583
+ * Encapsulates information about the original source file from which a
1584
+ * FileDescriptorProto was generated.
1585
+ *
1586
+ * @generated from message google.protobuf.SourceCodeInfo
1587
+ */
1588
+ export declare class SourceCodeInfo extends Message<SourceCodeInfo> {
1589
+ /**
1590
+ * A Location identifies a piece of source code in a .proto file which
1591
+ * corresponds to a particular definition. This information is intended
1592
+ * to be useful to IDEs, code indexers, documentation generators, and similar
1593
+ * tools.
1594
+ *
1595
+ * For example, say we have a file like:
1596
+ * message Foo {
1597
+ * optional string foo = 1;
1598
+ * }
1599
+ * Let's look at just the field definition:
1600
+ * optional string foo = 1;
1601
+ * ^ ^^ ^^ ^ ^^^
1602
+ * a bc de f ghi
1603
+ * We have the following locations:
1604
+ * span path represents
1605
+ * [a,i) [ 4, 0, 2, 0 ] The whole field definition.
1606
+ * [a,b) [ 4, 0, 2, 0, 4 ] The label (optional).
1607
+ * [c,d) [ 4, 0, 2, 0, 5 ] The type (string).
1608
+ * [e,f) [ 4, 0, 2, 0, 1 ] The name (foo).
1609
+ * [g,h) [ 4, 0, 2, 0, 3 ] The number (1).
1610
+ *
1611
+ * Notes:
1612
+ * - A location may refer to a repeated field itself (i.e. not to any
1613
+ * particular index within it). This is used whenever a set of elements are
1614
+ * logically enclosed in a single code segment. For example, an entire
1615
+ * extend block (possibly containing multiple extension definitions) will
1616
+ * have an outer location whose path refers to the "extensions" repeated
1617
+ * field without an index.
1618
+ * - Multiple locations may have the same path. This happens when a single
1619
+ * logical declaration is spread out across multiple places. The most
1620
+ * obvious example is the "extend" block again -- there may be multiple
1621
+ * extend blocks in the same scope, each of which will have the same path.
1622
+ * - A location's span is not always a subset of its parent's span. For
1623
+ * example, the "extendee" of an extension declaration appears at the
1624
+ * beginning of the "extend" block and is shared by all extensions within
1625
+ * the block.
1626
+ * - Just because a location's span is a subset of some other location's span
1627
+ * does not mean that it is a descendant. For example, a "group" defines
1628
+ * both a type and a field in a single declaration. Thus, the locations
1629
+ * corresponding to the type and field and their components will overlap.
1630
+ * - Code which tries to interpret locations should probably be designed to
1631
+ * ignore those that it doesn't understand, as more types of locations could
1632
+ * be recorded in the future.
1633
+ *
1634
+ * @generated from field: repeated google.protobuf.SourceCodeInfo.Location location = 1;
1635
+ */
1636
+ location: SourceCodeInfo_Location[];
1637
+ constructor(data?: PartialMessage<SourceCodeInfo>);
1638
+ static readonly runtime: typeof proto2;
1639
+ static readonly typeName = "google.protobuf.SourceCodeInfo";
1640
+ static readonly fields: FieldList;
1641
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo;
1642
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceCodeInfo;
1643
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceCodeInfo;
1644
+ static equals(a: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined, b: SourceCodeInfo | PlainMessage<SourceCodeInfo> | undefined): boolean;
1645
+ }
1646
+ /**
1647
+ * @generated from message google.protobuf.SourceCodeInfo.Location
1648
+ */
1649
+ export declare class SourceCodeInfo_Location extends Message<SourceCodeInfo_Location> {
1650
+ /**
1651
+ * Identifies which part of the FileDescriptorProto was defined at this
1652
+ * location.
1653
+ *
1654
+ * Each element is a field number or an index. They form a path from
1655
+ * the root FileDescriptorProto to the place where the definition occurs.
1656
+ * For example, this path:
1657
+ * [ 4, 3, 2, 7, 1 ]
1658
+ * refers to:
1659
+ * file.message_type(3) // 4, 3
1660
+ * .field(7) // 2, 7
1661
+ * .name() // 1
1662
+ * This is because FileDescriptorProto.message_type has field number 4:
1663
+ * repeated DescriptorProto message_type = 4;
1664
+ * and DescriptorProto.field has field number 2:
1665
+ * repeated FieldDescriptorProto field = 2;
1666
+ * and FieldDescriptorProto.name has field number 1:
1667
+ * optional string name = 1;
1668
+ *
1669
+ * Thus, the above path gives the location of a field name. If we removed
1670
+ * the last element:
1671
+ * [ 4, 3, 2, 7 ]
1672
+ * this path refers to the whole field declaration (from the beginning
1673
+ * of the label to the terminating semicolon).
1674
+ *
1675
+ * @generated from field: repeated int32 path = 1 [packed = true];
1676
+ */
1677
+ path: number[];
1678
+ /**
1679
+ * Always has exactly three or four elements: start line, start column,
1680
+ * end line (optional, otherwise assumed same as start line), end column.
1681
+ * These are packed into a single field for efficiency. Note that line
1682
+ * and column numbers are zero-based -- typically you will want to add
1683
+ * 1 to each before displaying to a user.
1684
+ *
1685
+ * @generated from field: repeated int32 span = 2 [packed = true];
1686
+ */
1687
+ span: number[];
1688
+ /**
1689
+ * If this SourceCodeInfo represents a complete declaration, these are any
1690
+ * comments appearing before and after the declaration which appear to be
1691
+ * attached to the declaration.
1692
+ *
1693
+ * A series of line comments appearing on consecutive lines, with no other
1694
+ * tokens appearing on those lines, will be treated as a single comment.
1695
+ *
1696
+ * leading_detached_comments will keep paragraphs of comments that appear
1697
+ * before (but not connected to) the current element. Each paragraph,
1698
+ * separated by empty lines, will be one comment element in the repeated
1699
+ * field.
1700
+ *
1701
+ * Only the comment content is provided; comment markers (e.g. //) are
1702
+ * stripped out. For block comments, leading whitespace and an asterisk
1703
+ * will be stripped from the beginning of each line other than the first.
1704
+ * Newlines are included in the output.
1705
+ *
1706
+ * Examples:
1707
+ *
1708
+ * optional int32 foo = 1; // Comment attached to foo.
1709
+ * // Comment attached to bar.
1710
+ * optional int32 bar = 2;
1711
+ *
1712
+ * optional string baz = 3;
1713
+ * // Comment attached to baz.
1714
+ * // Another line attached to baz.
1715
+ *
1716
+ * // Comment attached to moo.
1717
+ * //
1718
+ * // Another line attached to moo.
1719
+ * optional double moo = 4;
1720
+ *
1721
+ * // Detached comment for corge. This is not leading or trailing comments
1722
+ * // to moo or corge because there are blank lines separating it from
1723
+ * // both.
1724
+ *
1725
+ * // Detached comment for corge paragraph 2.
1726
+ *
1727
+ * optional string corge = 5;
1728
+ * /* Block comment attached
1729
+ * * to corge. Leading asterisks
1730
+ * * will be removed. *\/
1731
+ * /* Block comment attached to
1732
+ * * grault. *\/
1733
+ * optional int32 grault = 6;
1734
+ *
1735
+ * // ignored detached comments.
1736
+ *
1737
+ * @generated from field: optional string leading_comments = 3;
1738
+ */
1739
+ leadingComments?: string;
1740
+ /**
1741
+ * @generated from field: optional string trailing_comments = 4;
1742
+ */
1743
+ trailingComments?: string;
1744
+ /**
1745
+ * @generated from field: repeated string leading_detached_comments = 6;
1746
+ */
1747
+ leadingDetachedComments: string[];
1748
+ constructor(data?: PartialMessage<SourceCodeInfo_Location>);
1749
+ static readonly runtime: typeof proto2;
1750
+ static readonly typeName = "google.protobuf.SourceCodeInfo.Location";
1751
+ static readonly fields: FieldList;
1752
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SourceCodeInfo_Location;
1753
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SourceCodeInfo_Location;
1754
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SourceCodeInfo_Location;
1755
+ static equals(a: SourceCodeInfo_Location | PlainMessage<SourceCodeInfo_Location> | undefined, b: SourceCodeInfo_Location | PlainMessage<SourceCodeInfo_Location> | undefined): boolean;
1756
+ }
1757
+ /**
1758
+ * Describes the relationship between generated code and its original source
1759
+ * file. A GeneratedCodeInfo message is associated with only one generated
1760
+ * source file, but may contain references to different source .proto files.
1761
+ *
1762
+ * @generated from message google.protobuf.GeneratedCodeInfo
1763
+ */
1764
+ export declare class GeneratedCodeInfo extends Message<GeneratedCodeInfo> {
1765
+ /**
1766
+ * An Annotation connects some span of text in generated code to an element
1767
+ * of its generating .proto file.
1768
+ *
1769
+ * @generated from field: repeated google.protobuf.GeneratedCodeInfo.Annotation annotation = 1;
1770
+ */
1771
+ annotation: GeneratedCodeInfo_Annotation[];
1772
+ constructor(data?: PartialMessage<GeneratedCodeInfo>);
1773
+ static readonly runtime: typeof proto2;
1774
+ static readonly typeName = "google.protobuf.GeneratedCodeInfo";
1775
+ static readonly fields: FieldList;
1776
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo;
1777
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GeneratedCodeInfo;
1778
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GeneratedCodeInfo;
1779
+ static equals(a: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined, b: GeneratedCodeInfo | PlainMessage<GeneratedCodeInfo> | undefined): boolean;
1780
+ }
1781
+ /**
1782
+ * @generated from message google.protobuf.GeneratedCodeInfo.Annotation
1783
+ */
1784
+ export declare class GeneratedCodeInfo_Annotation extends Message<GeneratedCodeInfo_Annotation> {
1785
+ /**
1786
+ * Identifies the element in the original source .proto file. This field
1787
+ * is formatted the same as SourceCodeInfo.Location.path.
1788
+ *
1789
+ * @generated from field: repeated int32 path = 1 [packed = true];
1790
+ */
1791
+ path: number[];
1792
+ /**
1793
+ * Identifies the filesystem path to the original source .proto.
1794
+ *
1795
+ * @generated from field: optional string source_file = 2;
1796
+ */
1797
+ sourceFile?: string;
1798
+ /**
1799
+ * Identifies the starting offset in bytes in the generated code
1800
+ * that relates to the identified object.
1801
+ *
1802
+ * @generated from field: optional int32 begin = 3;
1803
+ */
1804
+ begin?: number;
1805
+ /**
1806
+ * Identifies the ending offset in bytes in the generated code that
1807
+ * relates to the identified object. The end offset should be one past
1808
+ * the last relevant byte (so the length of the text = end - begin).
1809
+ *
1810
+ * @generated from field: optional int32 end = 4;
1811
+ */
1812
+ end?: number;
1813
+ /**
1814
+ * @generated from field: optional google.protobuf.GeneratedCodeInfo.Annotation.Semantic semantic = 5;
1815
+ */
1816
+ semantic?: GeneratedCodeInfo_Annotation_Semantic;
1817
+ constructor(data?: PartialMessage<GeneratedCodeInfo_Annotation>);
1818
+ static readonly runtime: typeof proto2;
1819
+ static readonly typeName = "google.protobuf.GeneratedCodeInfo.Annotation";
1820
+ static readonly fields: FieldList;
1821
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GeneratedCodeInfo_Annotation;
1822
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GeneratedCodeInfo_Annotation;
1823
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GeneratedCodeInfo_Annotation;
1824
+ static equals(a: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined, b: GeneratedCodeInfo_Annotation | PlainMessage<GeneratedCodeInfo_Annotation> | undefined): boolean;
1825
+ }
1826
+ /**
1827
+ * Represents the identified object's effect on the element in the original
1828
+ * .proto file.
1829
+ *
1830
+ * @generated from enum google.protobuf.GeneratedCodeInfo.Annotation.Semantic
1831
+ */
1832
+ export declare enum GeneratedCodeInfo_Annotation_Semantic {
1833
+ /**
1834
+ * There is no effect or the effect is indescribable.
1835
+ *
1836
+ * @generated from enum value: NONE = 0;
1837
+ */
1838
+ NONE = 0,
1839
+ /**
1840
+ * The element is set or otherwise mutated.
1841
+ *
1842
+ * @generated from enum value: SET = 1;
1843
+ */
1844
+ SET = 1,
1845
+ /**
1846
+ * An alias to the element is returned.
1847
+ *
1848
+ * @generated from enum value: ALIAS = 2;
1849
+ */
1850
+ ALIAS = 2
1851
+ }