@bufbuild/protobuf 0.0.1-alpha.1

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