@replit/protocol 0.4.20 → 0.4.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/README.md +54 -0
  2. package/dist/api/client.d.ts +202 -0
  3. package/dist/api/client.d.ts.map +1 -0
  4. package/dist/api/client.js +394 -0
  5. package/dist/api/features/features.d.ts +112 -0
  6. package/dist/api/features/features.d.ts.map +1 -0
  7. package/dist/api/features/features.js +199 -0
  8. package/dist/api/lore/lore.d.ts +543 -0
  9. package/dist/api/lore/lore.d.ts.map +1 -0
  10. package/dist/api/lore/lore.js +982 -0
  11. package/dist/api/lore/service.client.d.ts +283 -0
  12. package/dist/api/lore/service.client.d.ts.map +1 -0
  13. package/dist/api/lore/service.client.js +172 -0
  14. package/dist/api/lore/service.d.ts +1100 -0
  15. package/dist/api/lore/service.d.ts.map +1 -0
  16. package/dist/api/lore/service.js +2279 -0
  17. package/dist/api/powerup.d.ts +147 -0
  18. package/dist/api/powerup.d.ts.map +1 -0
  19. package/dist/api/powerup.js +286 -0
  20. package/dist/api/repl/repl.d.ts +552 -0
  21. package/dist/api/repl/repl.d.ts.map +1 -0
  22. package/dist/api/repl/repl.js +787 -0
  23. package/dist/api/signing.d.ts +618 -0
  24. package/dist/api/signing.d.ts.map +1 -0
  25. package/dist/api/signing.js +785 -0
  26. package/dist/api/token/token.d.ts +335 -0
  27. package/dist/api/token/token.d.ts.map +1 -0
  28. package/dist/api/token/token.js +463 -0
  29. package/dist/api/types.d.ts +8629 -0
  30. package/dist/api/types.d.ts.map +1 -0
  31. package/dist/api/types.js +17225 -0
  32. package/dist/google/protobuf/empty.d.ts +31 -0
  33. package/dist/google/protobuf/empty.d.ts.map +1 -0
  34. package/dist/google/protobuf/empty.js +41 -0
  35. package/dist/google/protobuf/field_mask.d.ts +239 -0
  36. package/dist/google/protobuf/field_mask.d.ts.map +1 -0
  37. package/dist/google/protobuf/field_mask.js +83 -0
  38. package/dist/google/protobuf/struct.d.ts +186 -0
  39. package/dist/google/protobuf/struct.d.ts.map +1 -0
  40. package/dist/google/protobuf/struct.js +337 -0
  41. package/dist/google/protobuf/timestamp.d.ts +156 -0
  42. package/dist/google/protobuf/timestamp.d.ts.map +1 -0
  43. package/dist/google/protobuf/timestamp.js +132 -0
  44. package/dist/index.d.ts +13 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +16 -0
  47. package/dist/package.json +3 -0
  48. package/iotester/index.d.ts +6 -6
  49. package/iotester/index.js +25 -12
  50. package/main/index.d.ts +6 -6
  51. package/main/index.js +25 -12
  52. package/package.json +43 -4
  53. package/gen.sh +0 -51
  54. package/jsdoc.js +0 -171
  55. package/pnpm-workspace.yaml +0 -6
@@ -0,0 +1,2279 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter long_type_bigint,optimize_code_size,generate_dependencies,force_server_none
2
+ // @generated from protobuf file "api/lore/service.proto" (package "replit.goval.api.lore", syntax proto3)
3
+ // tslint:disable
4
+ import { ServiceType } from "@protobuf-ts/runtime-rpc";
5
+ import { WireType } from "@protobuf-ts/runtime";
6
+ import { UnknownFieldHandler } from "@protobuf-ts/runtime";
7
+ import { reflectionMergePartial } from "@protobuf-ts/runtime";
8
+ import { MessageType } from "@protobuf-ts/runtime";
9
+ // @generated message type with reflection information, may provide speed optimized methods
10
+ class Buckets$Type extends MessageType {
11
+ constructor() {
12
+ super("replit.goval.api.lore.Buckets", [
13
+ { no: 1, name: "files", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
14
+ { no: 2, name: "snapshots", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
15
+ { no: 3, name: "metadata", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
16
+ { no: 4, name: "disk_blocks", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
17
+ ]);
18
+ }
19
+ create(value) {
20
+ const message = globalThis.Object.create((this.messagePrototype));
21
+ message.files = "";
22
+ message.snapshots = "";
23
+ message.metadata = "";
24
+ message.diskBlocks = "";
25
+ if (value !== undefined)
26
+ reflectionMergePartial(this, message, value);
27
+ return message;
28
+ }
29
+ internalBinaryRead(reader, length, options, target) {
30
+ let message = target ?? this.create(), end = reader.pos + length;
31
+ while (reader.pos < end) {
32
+ let [fieldNo, wireType] = reader.tag();
33
+ switch (fieldNo) {
34
+ case /* string files */ 1:
35
+ message.files = reader.string();
36
+ break;
37
+ case /* string snapshots */ 2:
38
+ message.snapshots = reader.string();
39
+ break;
40
+ case /* string metadata */ 3:
41
+ message.metadata = reader.string();
42
+ break;
43
+ case /* string disk_blocks */ 4:
44
+ message.diskBlocks = reader.string();
45
+ break;
46
+ default:
47
+ let u = options.readUnknownField;
48
+ if (u === "throw")
49
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
50
+ let d = reader.skip(wireType);
51
+ if (u !== false)
52
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
53
+ }
54
+ }
55
+ return message;
56
+ }
57
+ internalBinaryWrite(message, writer, options) {
58
+ /* string files = 1; */
59
+ if (message.files !== "")
60
+ writer.tag(1, WireType.LengthDelimited).string(message.files);
61
+ /* string snapshots = 2; */
62
+ if (message.snapshots !== "")
63
+ writer.tag(2, WireType.LengthDelimited).string(message.snapshots);
64
+ /* string metadata = 3; */
65
+ if (message.metadata !== "")
66
+ writer.tag(3, WireType.LengthDelimited).string(message.metadata);
67
+ /* string disk_blocks = 4; */
68
+ if (message.diskBlocks !== "")
69
+ writer.tag(4, WireType.LengthDelimited).string(message.diskBlocks);
70
+ let u = options.writeUnknownFields;
71
+ if (u !== false)
72
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
73
+ return writer;
74
+ }
75
+ }
76
+ /**
77
+ * @generated MessageType for protobuf message replit.goval.api.lore.Buckets
78
+ */
79
+ export const Buckets = new Buckets$Type();
80
+ // @generated message type with reflection information, may provide speed optimized methods
81
+ class Repl$Type extends MessageType {
82
+ constructor() {
83
+ super("replit.goval.api.lore.Repl", [
84
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
85
+ { no: 2, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
86
+ ]);
87
+ }
88
+ create(value) {
89
+ const message = globalThis.Object.create((this.messagePrototype));
90
+ message.id = "";
91
+ message.user = "";
92
+ if (value !== undefined)
93
+ reflectionMergePartial(this, message, value);
94
+ return message;
95
+ }
96
+ internalBinaryRead(reader, length, options, target) {
97
+ let message = target ?? this.create(), end = reader.pos + length;
98
+ while (reader.pos < end) {
99
+ let [fieldNo, wireType] = reader.tag();
100
+ switch (fieldNo) {
101
+ case /* string id */ 1:
102
+ message.id = reader.string();
103
+ break;
104
+ case /* string user */ 2:
105
+ message.user = reader.string();
106
+ break;
107
+ default:
108
+ let u = options.readUnknownField;
109
+ if (u === "throw")
110
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
111
+ let d = reader.skip(wireType);
112
+ if (u !== false)
113
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
114
+ }
115
+ }
116
+ return message;
117
+ }
118
+ internalBinaryWrite(message, writer, options) {
119
+ /* string id = 1; */
120
+ if (message.id !== "")
121
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
122
+ /* string user = 2; */
123
+ if (message.user !== "")
124
+ writer.tag(2, WireType.LengthDelimited).string(message.user);
125
+ let u = options.writeUnknownFields;
126
+ if (u !== false)
127
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
128
+ return writer;
129
+ }
130
+ }
131
+ /**
132
+ * @generated MessageType for protobuf message replit.goval.api.lore.Repl
133
+ */
134
+ export const Repl = new Repl$Type();
135
+ // @generated message type with reflection information, may provide speed optimized methods
136
+ class Cluster$Type extends MessageType {
137
+ constructor() {
138
+ super("replit.goval.api.lore.Cluster", [
139
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
140
+ { no: 2, name: "conman_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
141
+ { no: 3, name: "gurl", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
142
+ { no: 5, name: "nox_host", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
143
+ ]);
144
+ }
145
+ create(value) {
146
+ const message = globalThis.Object.create((this.messagePrototype));
147
+ message.name = "";
148
+ message.conmanUrl = "";
149
+ message.gurl = "";
150
+ message.noxHost = "";
151
+ if (value !== undefined)
152
+ reflectionMergePartial(this, message, value);
153
+ return message;
154
+ }
155
+ internalBinaryRead(reader, length, options, target) {
156
+ let message = target ?? this.create(), end = reader.pos + length;
157
+ while (reader.pos < end) {
158
+ let [fieldNo, wireType] = reader.tag();
159
+ switch (fieldNo) {
160
+ case /* string name */ 1:
161
+ message.name = reader.string();
162
+ break;
163
+ case /* string conman_url */ 2:
164
+ message.conmanUrl = reader.string();
165
+ break;
166
+ case /* string gurl */ 3:
167
+ message.gurl = reader.string();
168
+ break;
169
+ case /* string nox_host */ 5:
170
+ message.noxHost = reader.string();
171
+ break;
172
+ default:
173
+ let u = options.readUnknownField;
174
+ if (u === "throw")
175
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
176
+ let d = reader.skip(wireType);
177
+ if (u !== false)
178
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
179
+ }
180
+ }
181
+ return message;
182
+ }
183
+ internalBinaryWrite(message, writer, options) {
184
+ /* string name = 1; */
185
+ if (message.name !== "")
186
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
187
+ /* string conman_url = 2; */
188
+ if (message.conmanUrl !== "")
189
+ writer.tag(2, WireType.LengthDelimited).string(message.conmanUrl);
190
+ /* string gurl = 3; */
191
+ if (message.gurl !== "")
192
+ writer.tag(3, WireType.LengthDelimited).string(message.gurl);
193
+ /* string nox_host = 5; */
194
+ if (message.noxHost !== "")
195
+ writer.tag(5, WireType.LengthDelimited).string(message.noxHost);
196
+ let u = options.writeUnknownFields;
197
+ if (u !== false)
198
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
199
+ return writer;
200
+ }
201
+ }
202
+ /**
203
+ * @generated MessageType for protobuf message replit.goval.api.lore.Cluster
204
+ */
205
+ export const Cluster = new Cluster$Type();
206
+ // @generated message type with reflection information, may provide speed optimized methods
207
+ class CreateReplRequest$Type extends MessageType {
208
+ constructor() {
209
+ super("replit.goval.api.lore.CreateReplRequest", [
210
+ { no: 1, name: "repl", kind: "message", T: () => CreateReplRequest_Repl },
211
+ { no: 2, name: "cluster", kind: "scalar", oneof: "location", T: 9 /*ScalarType.STRING*/ },
212
+ { no: 6, name: "continent", kind: "scalar", oneof: "location", T: 9 /*ScalarType.STRING*/ },
213
+ { no: 7, name: "replLocation", kind: "message", T: () => ReplLocation },
214
+ { no: 3, name: "source_repl", kind: "message", T: () => CreateReplRequest_SourceRepl },
215
+ { no: 8, name: "copy_helium", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
216
+ { no: 9, name: "copy_gitsafe", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
217
+ ]);
218
+ }
219
+ create(value) {
220
+ const message = globalThis.Object.create((this.messagePrototype));
221
+ message.location = { oneofKind: undefined };
222
+ message.copyHelium = false;
223
+ message.copyGitsafe = false;
224
+ if (value !== undefined)
225
+ reflectionMergePartial(this, message, value);
226
+ return message;
227
+ }
228
+ internalBinaryRead(reader, length, options, target) {
229
+ let message = target ?? this.create(), end = reader.pos + length;
230
+ while (reader.pos < end) {
231
+ let [fieldNo, wireType] = reader.tag();
232
+ switch (fieldNo) {
233
+ case /* replit.goval.api.lore.CreateReplRequest.Repl repl */ 1:
234
+ message.repl = CreateReplRequest_Repl.internalBinaryRead(reader, reader.uint32(), options, message.repl);
235
+ break;
236
+ case /* string cluster = 2 [deprecated = true] */ 2:
237
+ message.location = {
238
+ oneofKind: "cluster",
239
+ cluster: reader.string()
240
+ };
241
+ break;
242
+ case /* string continent = 6 [deprecated = true] */ 6:
243
+ message.location = {
244
+ oneofKind: "continent",
245
+ continent: reader.string()
246
+ };
247
+ break;
248
+ case /* replit.goval.api.lore.ReplLocation replLocation */ 7:
249
+ message.replLocation = ReplLocation.internalBinaryRead(reader, reader.uint32(), options, message.replLocation);
250
+ break;
251
+ case /* replit.goval.api.lore.CreateReplRequest.SourceRepl source_repl */ 3:
252
+ message.sourceRepl = CreateReplRequest_SourceRepl.internalBinaryRead(reader, reader.uint32(), options, message.sourceRepl);
253
+ break;
254
+ case /* bool copy_helium */ 8:
255
+ message.copyHelium = reader.bool();
256
+ break;
257
+ case /* bool copy_gitsafe */ 9:
258
+ message.copyGitsafe = reader.bool();
259
+ break;
260
+ default:
261
+ let u = options.readUnknownField;
262
+ if (u === "throw")
263
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
264
+ let d = reader.skip(wireType);
265
+ if (u !== false)
266
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
267
+ }
268
+ }
269
+ return message;
270
+ }
271
+ internalBinaryWrite(message, writer, options) {
272
+ /* replit.goval.api.lore.CreateReplRequest.Repl repl = 1; */
273
+ if (message.repl)
274
+ CreateReplRequest_Repl.internalBinaryWrite(message.repl, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
275
+ /* string cluster = 2 [deprecated = true]; */
276
+ if (message.location.oneofKind === "cluster")
277
+ writer.tag(2, WireType.LengthDelimited).string(message.location.cluster);
278
+ /* replit.goval.api.lore.CreateReplRequest.SourceRepl source_repl = 3; */
279
+ if (message.sourceRepl)
280
+ CreateReplRequest_SourceRepl.internalBinaryWrite(message.sourceRepl, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
281
+ /* string continent = 6 [deprecated = true]; */
282
+ if (message.location.oneofKind === "continent")
283
+ writer.tag(6, WireType.LengthDelimited).string(message.location.continent);
284
+ /* replit.goval.api.lore.ReplLocation replLocation = 7; */
285
+ if (message.replLocation)
286
+ ReplLocation.internalBinaryWrite(message.replLocation, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
287
+ /* bool copy_helium = 8; */
288
+ if (message.copyHelium !== false)
289
+ writer.tag(8, WireType.Varint).bool(message.copyHelium);
290
+ /* bool copy_gitsafe = 9; */
291
+ if (message.copyGitsafe !== false)
292
+ writer.tag(9, WireType.Varint).bool(message.copyGitsafe);
293
+ let u = options.writeUnknownFields;
294
+ if (u !== false)
295
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
296
+ return writer;
297
+ }
298
+ }
299
+ /**
300
+ * @generated MessageType for protobuf message replit.goval.api.lore.CreateReplRequest
301
+ */
302
+ export const CreateReplRequest = new CreateReplRequest$Type();
303
+ // @generated message type with reflection information, may provide speed optimized methods
304
+ class CreateReplRequest_Repl$Type extends MessageType {
305
+ constructor() {
306
+ super("replit.goval.api.lore.CreateReplRequest.Repl", [
307
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
308
+ { no: 2, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
309
+ ]);
310
+ }
311
+ create(value) {
312
+ const message = globalThis.Object.create((this.messagePrototype));
313
+ message.id = "";
314
+ message.user = "";
315
+ if (value !== undefined)
316
+ reflectionMergePartial(this, message, value);
317
+ return message;
318
+ }
319
+ internalBinaryRead(reader, length, options, target) {
320
+ let message = target ?? this.create(), end = reader.pos + length;
321
+ while (reader.pos < end) {
322
+ let [fieldNo, wireType] = reader.tag();
323
+ switch (fieldNo) {
324
+ case /* string id */ 1:
325
+ message.id = reader.string();
326
+ break;
327
+ case /* string user */ 2:
328
+ message.user = reader.string();
329
+ break;
330
+ default:
331
+ let u = options.readUnknownField;
332
+ if (u === "throw")
333
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
334
+ let d = reader.skip(wireType);
335
+ if (u !== false)
336
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
337
+ }
338
+ }
339
+ return message;
340
+ }
341
+ internalBinaryWrite(message, writer, options) {
342
+ /* string id = 1; */
343
+ if (message.id !== "")
344
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
345
+ /* string user = 2; */
346
+ if (message.user !== "")
347
+ writer.tag(2, WireType.LengthDelimited).string(message.user);
348
+ let u = options.writeUnknownFields;
349
+ if (u !== false)
350
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
351
+ return writer;
352
+ }
353
+ }
354
+ /**
355
+ * @generated MessageType for protobuf message replit.goval.api.lore.CreateReplRequest.Repl
356
+ */
357
+ export const CreateReplRequest_Repl = new CreateReplRequest_Repl$Type();
358
+ // @generated message type with reflection information, may provide speed optimized methods
359
+ class CreateReplRequest_File$Type extends MessageType {
360
+ constructor() {
361
+ super("replit.goval.api.lore.CreateReplRequest.File", [
362
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
363
+ { no: 2, name: "contents", kind: "scalar", T: 12 /*ScalarType.BYTES*/ }
364
+ ]);
365
+ }
366
+ create(value) {
367
+ const message = globalThis.Object.create((this.messagePrototype));
368
+ message.name = "";
369
+ message.contents = new Uint8Array(0);
370
+ if (value !== undefined)
371
+ reflectionMergePartial(this, message, value);
372
+ return message;
373
+ }
374
+ internalBinaryRead(reader, length, options, target) {
375
+ let message = target ?? this.create(), end = reader.pos + length;
376
+ while (reader.pos < end) {
377
+ let [fieldNo, wireType] = reader.tag();
378
+ switch (fieldNo) {
379
+ case /* string name */ 1:
380
+ message.name = reader.string();
381
+ break;
382
+ case /* bytes contents */ 2:
383
+ message.contents = reader.bytes();
384
+ break;
385
+ default:
386
+ let u = options.readUnknownField;
387
+ if (u === "throw")
388
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
389
+ let d = reader.skip(wireType);
390
+ if (u !== false)
391
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
392
+ }
393
+ }
394
+ return message;
395
+ }
396
+ internalBinaryWrite(message, writer, options) {
397
+ /* string name = 1; */
398
+ if (message.name !== "")
399
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
400
+ /* bytes contents = 2; */
401
+ if (message.contents.length)
402
+ writer.tag(2, WireType.LengthDelimited).bytes(message.contents);
403
+ let u = options.writeUnknownFields;
404
+ if (u !== false)
405
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
406
+ return writer;
407
+ }
408
+ }
409
+ /**
410
+ * @generated MessageType for protobuf message replit.goval.api.lore.CreateReplRequest.File
411
+ */
412
+ export const CreateReplRequest_File = new CreateReplRequest_File$Type();
413
+ // @generated message type with reflection information, may provide speed optimized methods
414
+ class CreateReplRequest_Buckets$Type extends MessageType {
415
+ constructor() {
416
+ super("replit.goval.api.lore.CreateReplRequest.Buckets", [
417
+ { no: 1, name: "files", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
418
+ { no: 2, name: "snapshots", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
419
+ ]);
420
+ }
421
+ create(value) {
422
+ const message = globalThis.Object.create((this.messagePrototype));
423
+ message.files = "";
424
+ message.snapshots = "";
425
+ if (value !== undefined)
426
+ reflectionMergePartial(this, message, value);
427
+ return message;
428
+ }
429
+ internalBinaryRead(reader, length, options, target) {
430
+ let message = target ?? this.create(), end = reader.pos + length;
431
+ while (reader.pos < end) {
432
+ let [fieldNo, wireType] = reader.tag();
433
+ switch (fieldNo) {
434
+ case /* string files */ 1:
435
+ message.files = reader.string();
436
+ break;
437
+ case /* string snapshots */ 2:
438
+ message.snapshots = reader.string();
439
+ break;
440
+ default:
441
+ let u = options.readUnknownField;
442
+ if (u === "throw")
443
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
444
+ let d = reader.skip(wireType);
445
+ if (u !== false)
446
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
447
+ }
448
+ }
449
+ return message;
450
+ }
451
+ internalBinaryWrite(message, writer, options) {
452
+ /* string files = 1; */
453
+ if (message.files !== "")
454
+ writer.tag(1, WireType.LengthDelimited).string(message.files);
455
+ /* string snapshots = 2; */
456
+ if (message.snapshots !== "")
457
+ writer.tag(2, WireType.LengthDelimited).string(message.snapshots);
458
+ let u = options.writeUnknownFields;
459
+ if (u !== false)
460
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
461
+ return writer;
462
+ }
463
+ }
464
+ /**
465
+ * @generated MessageType for protobuf message replit.goval.api.lore.CreateReplRequest.Buckets
466
+ */
467
+ export const CreateReplRequest_Buckets = new CreateReplRequest_Buckets$Type();
468
+ // @generated message type with reflection information, may provide speed optimized methods
469
+ class CreateReplRequest_SourceRepl$Type extends MessageType {
470
+ constructor() {
471
+ super("replit.goval.api.lore.CreateReplRequest.SourceRepl", [
472
+ { no: 1, name: "id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
473
+ { no: 2, name: "require_snapshot", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
474
+ { no: 3, name: "buckets", kind: "message", T: () => CreateReplRequest_Buckets }
475
+ ]);
476
+ }
477
+ create(value) {
478
+ const message = globalThis.Object.create((this.messagePrototype));
479
+ message.id = "";
480
+ message.requireSnapshot = false;
481
+ if (value !== undefined)
482
+ reflectionMergePartial(this, message, value);
483
+ return message;
484
+ }
485
+ internalBinaryRead(reader, length, options, target) {
486
+ let message = target ?? this.create(), end = reader.pos + length;
487
+ while (reader.pos < end) {
488
+ let [fieldNo, wireType] = reader.tag();
489
+ switch (fieldNo) {
490
+ case /* string id */ 1:
491
+ message.id = reader.string();
492
+ break;
493
+ case /* bool require_snapshot */ 2:
494
+ message.requireSnapshot = reader.bool();
495
+ break;
496
+ case /* replit.goval.api.lore.CreateReplRequest.Buckets buckets */ 3:
497
+ message.buckets = CreateReplRequest_Buckets.internalBinaryRead(reader, reader.uint32(), options, message.buckets);
498
+ break;
499
+ default:
500
+ let u = options.readUnknownField;
501
+ if (u === "throw")
502
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
503
+ let d = reader.skip(wireType);
504
+ if (u !== false)
505
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
506
+ }
507
+ }
508
+ return message;
509
+ }
510
+ internalBinaryWrite(message, writer, options) {
511
+ /* string id = 1; */
512
+ if (message.id !== "")
513
+ writer.tag(1, WireType.LengthDelimited).string(message.id);
514
+ /* bool require_snapshot = 2; */
515
+ if (message.requireSnapshot !== false)
516
+ writer.tag(2, WireType.Varint).bool(message.requireSnapshot);
517
+ /* replit.goval.api.lore.CreateReplRequest.Buckets buckets = 3; */
518
+ if (message.buckets)
519
+ CreateReplRequest_Buckets.internalBinaryWrite(message.buckets, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
520
+ let u = options.writeUnknownFields;
521
+ if (u !== false)
522
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
523
+ return writer;
524
+ }
525
+ }
526
+ /**
527
+ * @generated MessageType for protobuf message replit.goval.api.lore.CreateReplRequest.SourceRepl
528
+ */
529
+ export const CreateReplRequest_SourceRepl = new CreateReplRequest_SourceRepl$Type();
530
+ // @generated message type with reflection information, may provide speed optimized methods
531
+ class CreateReplResponse$Type extends MessageType {
532
+ constructor() {
533
+ super("replit.goval.api.lore.CreateReplResponse", []);
534
+ }
535
+ create(value) {
536
+ const message = globalThis.Object.create((this.messagePrototype));
537
+ if (value !== undefined)
538
+ reflectionMergePartial(this, message, value);
539
+ return message;
540
+ }
541
+ internalBinaryRead(reader, length, options, target) {
542
+ let message = target ?? this.create(), end = reader.pos + length;
543
+ while (reader.pos < end) {
544
+ let [fieldNo, wireType] = reader.tag();
545
+ switch (fieldNo) {
546
+ default:
547
+ let u = options.readUnknownField;
548
+ if (u === "throw")
549
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
550
+ let d = reader.skip(wireType);
551
+ if (u !== false)
552
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
553
+ }
554
+ }
555
+ return message;
556
+ }
557
+ internalBinaryWrite(message, writer, options) {
558
+ let u = options.writeUnknownFields;
559
+ if (u !== false)
560
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
561
+ return writer;
562
+ }
563
+ }
564
+ /**
565
+ * @generated MessageType for protobuf message replit.goval.api.lore.CreateReplResponse
566
+ */
567
+ export const CreateReplResponse = new CreateReplResponse$Type();
568
+ // @generated message type with reflection information, may provide speed optimized methods
569
+ class GetReplRequest$Type extends MessageType {
570
+ constructor() {
571
+ super("replit.goval.api.lore.GetReplRequest", [
572
+ { no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
573
+ ]);
574
+ }
575
+ create(value) {
576
+ const message = globalThis.Object.create((this.messagePrototype));
577
+ message.replId = "";
578
+ if (value !== undefined)
579
+ reflectionMergePartial(this, message, value);
580
+ return message;
581
+ }
582
+ internalBinaryRead(reader, length, options, target) {
583
+ let message = target ?? this.create(), end = reader.pos + length;
584
+ while (reader.pos < end) {
585
+ let [fieldNo, wireType] = reader.tag();
586
+ switch (fieldNo) {
587
+ case /* string repl_id */ 1:
588
+ message.replId = reader.string();
589
+ break;
590
+ default:
591
+ let u = options.readUnknownField;
592
+ if (u === "throw")
593
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
594
+ let d = reader.skip(wireType);
595
+ if (u !== false)
596
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
597
+ }
598
+ }
599
+ return message;
600
+ }
601
+ internalBinaryWrite(message, writer, options) {
602
+ /* string repl_id = 1; */
603
+ if (message.replId !== "")
604
+ writer.tag(1, WireType.LengthDelimited).string(message.replId);
605
+ let u = options.writeUnknownFields;
606
+ if (u !== false)
607
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
608
+ return writer;
609
+ }
610
+ }
611
+ /**
612
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetReplRequest
613
+ */
614
+ export const GetReplRequest = new GetReplRequest$Type();
615
+ // @generated message type with reflection information, may provide speed optimized methods
616
+ class GetReplResponse$Type extends MessageType {
617
+ constructor() {
618
+ super("replit.goval.api.lore.GetReplResponse", [
619
+ { no: 1, name: "repl", kind: "message", T: () => Repl },
620
+ { no: 2, name: "cluster", kind: "message", T: () => Cluster },
621
+ { no: 3, name: "buckets", kind: "message", T: () => Buckets },
622
+ { no: 4, name: "dotdev_hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
623
+ ]);
624
+ }
625
+ create(value) {
626
+ const message = globalThis.Object.create((this.messagePrototype));
627
+ message.dotdevHostname = "";
628
+ if (value !== undefined)
629
+ reflectionMergePartial(this, message, value);
630
+ return message;
631
+ }
632
+ internalBinaryRead(reader, length, options, target) {
633
+ let message = target ?? this.create(), end = reader.pos + length;
634
+ while (reader.pos < end) {
635
+ let [fieldNo, wireType] = reader.tag();
636
+ switch (fieldNo) {
637
+ case /* replit.goval.api.lore.Repl repl */ 1:
638
+ message.repl = Repl.internalBinaryRead(reader, reader.uint32(), options, message.repl);
639
+ break;
640
+ case /* replit.goval.api.lore.Cluster cluster */ 2:
641
+ message.cluster = Cluster.internalBinaryRead(reader, reader.uint32(), options, message.cluster);
642
+ break;
643
+ case /* replit.goval.api.lore.Buckets buckets */ 3:
644
+ message.buckets = Buckets.internalBinaryRead(reader, reader.uint32(), options, message.buckets);
645
+ break;
646
+ case /* string dotdev_hostname = 4 [deprecated = true] */ 4:
647
+ message.dotdevHostname = reader.string();
648
+ break;
649
+ default:
650
+ let u = options.readUnknownField;
651
+ if (u === "throw")
652
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
653
+ let d = reader.skip(wireType);
654
+ if (u !== false)
655
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
656
+ }
657
+ }
658
+ return message;
659
+ }
660
+ internalBinaryWrite(message, writer, options) {
661
+ /* replit.goval.api.lore.Repl repl = 1; */
662
+ if (message.repl)
663
+ Repl.internalBinaryWrite(message.repl, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
664
+ /* replit.goval.api.lore.Cluster cluster = 2; */
665
+ if (message.cluster)
666
+ Cluster.internalBinaryWrite(message.cluster, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
667
+ /* replit.goval.api.lore.Buckets buckets = 3; */
668
+ if (message.buckets)
669
+ Buckets.internalBinaryWrite(message.buckets, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
670
+ /* string dotdev_hostname = 4 [deprecated = true]; */
671
+ if (message.dotdevHostname !== "")
672
+ writer.tag(4, WireType.LengthDelimited).string(message.dotdevHostname);
673
+ let u = options.writeUnknownFields;
674
+ if (u !== false)
675
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
676
+ return writer;
677
+ }
678
+ }
679
+ /**
680
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetReplResponse
681
+ */
682
+ export const GetReplResponse = new GetReplResponse$Type();
683
+ // @generated message type with reflection information, may provide speed optimized methods
684
+ class ReplLocation$Type extends MessageType {
685
+ constructor() {
686
+ super("replit.goval.api.lore.ReplLocation", [
687
+ { no: 1, name: "cluster", kind: "scalar", oneof: "location", T: 9 /*ScalarType.STRING*/ },
688
+ { no: 2, name: "continent", kind: "scalar", oneof: "location", T: 9 /*ScalarType.STRING*/ },
689
+ { no: 3, name: "regional_goval", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
690
+ ]);
691
+ }
692
+ create(value) {
693
+ const message = globalThis.Object.create((this.messagePrototype));
694
+ message.location = { oneofKind: undefined };
695
+ message.regionalGoval = false;
696
+ if (value !== undefined)
697
+ reflectionMergePartial(this, message, value);
698
+ return message;
699
+ }
700
+ internalBinaryRead(reader, length, options, target) {
701
+ let message = target ?? this.create(), end = reader.pos + length;
702
+ while (reader.pos < end) {
703
+ let [fieldNo, wireType] = reader.tag();
704
+ switch (fieldNo) {
705
+ case /* string cluster */ 1:
706
+ message.location = {
707
+ oneofKind: "cluster",
708
+ cluster: reader.string()
709
+ };
710
+ break;
711
+ case /* string continent */ 2:
712
+ message.location = {
713
+ oneofKind: "continent",
714
+ continent: reader.string()
715
+ };
716
+ break;
717
+ case /* bool regional_goval = 3 [deprecated = true] */ 3:
718
+ message.regionalGoval = reader.bool();
719
+ break;
720
+ default:
721
+ let u = options.readUnknownField;
722
+ if (u === "throw")
723
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
724
+ let d = reader.skip(wireType);
725
+ if (u !== false)
726
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
727
+ }
728
+ }
729
+ return message;
730
+ }
731
+ internalBinaryWrite(message, writer, options) {
732
+ /* string cluster = 1; */
733
+ if (message.location.oneofKind === "cluster")
734
+ writer.tag(1, WireType.LengthDelimited).string(message.location.cluster);
735
+ /* string continent = 2; */
736
+ if (message.location.oneofKind === "continent")
737
+ writer.tag(2, WireType.LengthDelimited).string(message.location.continent);
738
+ /* bool regional_goval = 3 [deprecated = true]; */
739
+ if (message.regionalGoval !== false)
740
+ writer.tag(3, WireType.Varint).bool(message.regionalGoval);
741
+ let u = options.writeUnknownFields;
742
+ if (u !== false)
743
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
744
+ return writer;
745
+ }
746
+ }
747
+ /**
748
+ * @generated MessageType for protobuf message replit.goval.api.lore.ReplLocation
749
+ */
750
+ export const ReplLocation = new ReplLocation$Type();
751
+ // @generated message type with reflection information, may provide speed optimized methods
752
+ class GetReplConnectionInfoRequest$Type extends MessageType {
753
+ constructor() {
754
+ super("replit.goval.api.lore.GetReplConnectionInfoRequest", [
755
+ { no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
756
+ { no: 3, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
757
+ { no: 4, name: "persistent", kind: "scalar", T: 8 /*ScalarType.BOOL*/ },
758
+ { no: 5, name: "default_cluster", kind: "scalar", oneof: "defaultLocation", T: 9 /*ScalarType.STRING*/ },
759
+ { no: 8, name: "default_continent", kind: "scalar", oneof: "defaultLocation", T: 9 /*ScalarType.STRING*/ },
760
+ { no: 9, name: "replLocation", kind: "message", T: () => ReplLocation },
761
+ { no: 7, name: "source_repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
762
+ { no: 11, name: "org_slug", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
763
+ ]);
764
+ }
765
+ create(value) {
766
+ const message = globalThis.Object.create((this.messagePrototype));
767
+ message.replId = "";
768
+ message.user = "";
769
+ message.persistent = false;
770
+ message.defaultLocation = { oneofKind: undefined };
771
+ message.sourceReplId = "";
772
+ message.orgSlug = "";
773
+ if (value !== undefined)
774
+ reflectionMergePartial(this, message, value);
775
+ return message;
776
+ }
777
+ internalBinaryRead(reader, length, options, target) {
778
+ let message = target ?? this.create(), end = reader.pos + length;
779
+ while (reader.pos < end) {
780
+ let [fieldNo, wireType] = reader.tag();
781
+ switch (fieldNo) {
782
+ case /* string repl_id */ 1:
783
+ message.replId = reader.string();
784
+ break;
785
+ case /* string user */ 3:
786
+ message.user = reader.string();
787
+ break;
788
+ case /* bool persistent */ 4:
789
+ message.persistent = reader.bool();
790
+ break;
791
+ case /* string default_cluster = 5 [deprecated = true] */ 5:
792
+ message.defaultLocation = {
793
+ oneofKind: "defaultCluster",
794
+ defaultCluster: reader.string()
795
+ };
796
+ break;
797
+ case /* string default_continent = 8 [deprecated = true] */ 8:
798
+ message.defaultLocation = {
799
+ oneofKind: "defaultContinent",
800
+ defaultContinent: reader.string()
801
+ };
802
+ break;
803
+ case /* replit.goval.api.lore.ReplLocation replLocation */ 9:
804
+ message.replLocation = ReplLocation.internalBinaryRead(reader, reader.uint32(), options, message.replLocation);
805
+ break;
806
+ case /* string source_repl_id */ 7:
807
+ message.sourceReplId = reader.string();
808
+ break;
809
+ case /* string org_slug */ 11:
810
+ message.orgSlug = reader.string();
811
+ break;
812
+ default:
813
+ let u = options.readUnknownField;
814
+ if (u === "throw")
815
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
816
+ let d = reader.skip(wireType);
817
+ if (u !== false)
818
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
819
+ }
820
+ }
821
+ return message;
822
+ }
823
+ internalBinaryWrite(message, writer, options) {
824
+ /* string repl_id = 1; */
825
+ if (message.replId !== "")
826
+ writer.tag(1, WireType.LengthDelimited).string(message.replId);
827
+ /* string user = 3; */
828
+ if (message.user !== "")
829
+ writer.tag(3, WireType.LengthDelimited).string(message.user);
830
+ /* bool persistent = 4; */
831
+ if (message.persistent !== false)
832
+ writer.tag(4, WireType.Varint).bool(message.persistent);
833
+ /* string default_cluster = 5 [deprecated = true]; */
834
+ if (message.defaultLocation.oneofKind === "defaultCluster")
835
+ writer.tag(5, WireType.LengthDelimited).string(message.defaultLocation.defaultCluster);
836
+ /* string source_repl_id = 7; */
837
+ if (message.sourceReplId !== "")
838
+ writer.tag(7, WireType.LengthDelimited).string(message.sourceReplId);
839
+ /* string default_continent = 8 [deprecated = true]; */
840
+ if (message.defaultLocation.oneofKind === "defaultContinent")
841
+ writer.tag(8, WireType.LengthDelimited).string(message.defaultLocation.defaultContinent);
842
+ /* replit.goval.api.lore.ReplLocation replLocation = 9; */
843
+ if (message.replLocation)
844
+ ReplLocation.internalBinaryWrite(message.replLocation, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
845
+ /* string org_slug = 11; */
846
+ if (message.orgSlug !== "")
847
+ writer.tag(11, WireType.LengthDelimited).string(message.orgSlug);
848
+ let u = options.writeUnknownFields;
849
+ if (u !== false)
850
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
851
+ return writer;
852
+ }
853
+ }
854
+ /**
855
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetReplConnectionInfoRequest
856
+ */
857
+ export const GetReplConnectionInfoRequest = new GetReplConnectionInfoRequest$Type();
858
+ // @generated message type with reflection information, may provide speed optimized methods
859
+ class GetReplConnectionInfoResponse$Type extends MessageType {
860
+ constructor() {
861
+ super("replit.goval.api.lore.GetReplConnectionInfoResponse", [
862
+ { no: 1, name: "repl", kind: "message", T: () => Repl },
863
+ { no: 2, name: "cluster", kind: "message", T: () => Cluster },
864
+ { no: 3, name: "buckets", kind: "message", T: () => Buckets },
865
+ { no: 4, name: "dotdev_hostname", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
866
+ ]);
867
+ }
868
+ create(value) {
869
+ const message = globalThis.Object.create((this.messagePrototype));
870
+ message.dotdevHostname = "";
871
+ if (value !== undefined)
872
+ reflectionMergePartial(this, message, value);
873
+ return message;
874
+ }
875
+ internalBinaryRead(reader, length, options, target) {
876
+ let message = target ?? this.create(), end = reader.pos + length;
877
+ while (reader.pos < end) {
878
+ let [fieldNo, wireType] = reader.tag();
879
+ switch (fieldNo) {
880
+ case /* replit.goval.api.lore.Repl repl */ 1:
881
+ message.repl = Repl.internalBinaryRead(reader, reader.uint32(), options, message.repl);
882
+ break;
883
+ case /* replit.goval.api.lore.Cluster cluster */ 2:
884
+ message.cluster = Cluster.internalBinaryRead(reader, reader.uint32(), options, message.cluster);
885
+ break;
886
+ case /* replit.goval.api.lore.Buckets buckets */ 3:
887
+ message.buckets = Buckets.internalBinaryRead(reader, reader.uint32(), options, message.buckets);
888
+ break;
889
+ case /* string dotdev_hostname */ 4:
890
+ message.dotdevHostname = reader.string();
891
+ break;
892
+ default:
893
+ let u = options.readUnknownField;
894
+ if (u === "throw")
895
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
896
+ let d = reader.skip(wireType);
897
+ if (u !== false)
898
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
899
+ }
900
+ }
901
+ return message;
902
+ }
903
+ internalBinaryWrite(message, writer, options) {
904
+ /* replit.goval.api.lore.Repl repl = 1; */
905
+ if (message.repl)
906
+ Repl.internalBinaryWrite(message.repl, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
907
+ /* replit.goval.api.lore.Cluster cluster = 2; */
908
+ if (message.cluster)
909
+ Cluster.internalBinaryWrite(message.cluster, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
910
+ /* replit.goval.api.lore.Buckets buckets = 3; */
911
+ if (message.buckets)
912
+ Buckets.internalBinaryWrite(message.buckets, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
913
+ /* string dotdev_hostname = 4; */
914
+ if (message.dotdevHostname !== "")
915
+ writer.tag(4, WireType.LengthDelimited).string(message.dotdevHostname);
916
+ let u = options.writeUnknownFields;
917
+ if (u !== false)
918
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
919
+ return writer;
920
+ }
921
+ }
922
+ /**
923
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetReplConnectionInfoResponse
924
+ */
925
+ export const GetReplConnectionInfoResponse = new GetReplConnectionInfoResponse$Type();
926
+ // @generated message type with reflection information, may provide speed optimized methods
927
+ class GetTransferStatusRequest$Type extends MessageType {
928
+ constructor() {
929
+ super("replit.goval.api.lore.GetTransferStatusRequest", [
930
+ { no: 1, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
931
+ ]);
932
+ }
933
+ create(value) {
934
+ const message = globalThis.Object.create((this.messagePrototype));
935
+ message.transferId = "";
936
+ if (value !== undefined)
937
+ reflectionMergePartial(this, message, value);
938
+ return message;
939
+ }
940
+ internalBinaryRead(reader, length, options, target) {
941
+ let message = target ?? this.create(), end = reader.pos + length;
942
+ while (reader.pos < end) {
943
+ let [fieldNo, wireType] = reader.tag();
944
+ switch (fieldNo) {
945
+ case /* string transfer_id */ 1:
946
+ message.transferId = reader.string();
947
+ break;
948
+ default:
949
+ let u = options.readUnknownField;
950
+ if (u === "throw")
951
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
952
+ let d = reader.skip(wireType);
953
+ if (u !== false)
954
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
955
+ }
956
+ }
957
+ return message;
958
+ }
959
+ internalBinaryWrite(message, writer, options) {
960
+ /* string transfer_id = 1; */
961
+ if (message.transferId !== "")
962
+ writer.tag(1, WireType.LengthDelimited).string(message.transferId);
963
+ let u = options.writeUnknownFields;
964
+ if (u !== false)
965
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
966
+ return writer;
967
+ }
968
+ }
969
+ /**
970
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetTransferStatusRequest
971
+ */
972
+ export const GetTransferStatusRequest = new GetTransferStatusRequest$Type();
973
+ // @generated message type with reflection information, may provide speed optimized methods
974
+ class GetTransferStatusResponse$Type extends MessageType {
975
+ constructor() {
976
+ super("replit.goval.api.lore.GetTransferStatusResponse", [
977
+ { no: 1, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
978
+ { no: 2, name: "complete", kind: "scalar", T: 8 /*ScalarType.BOOL*/ }
979
+ ]);
980
+ }
981
+ create(value) {
982
+ const message = globalThis.Object.create((this.messagePrototype));
983
+ message.transferId = "";
984
+ message.complete = false;
985
+ if (value !== undefined)
986
+ reflectionMergePartial(this, message, value);
987
+ return message;
988
+ }
989
+ internalBinaryRead(reader, length, options, target) {
990
+ let message = target ?? this.create(), end = reader.pos + length;
991
+ while (reader.pos < end) {
992
+ let [fieldNo, wireType] = reader.tag();
993
+ switch (fieldNo) {
994
+ case /* string transfer_id */ 1:
995
+ message.transferId = reader.string();
996
+ break;
997
+ case /* bool complete */ 2:
998
+ message.complete = reader.bool();
999
+ break;
1000
+ default:
1001
+ let u = options.readUnknownField;
1002
+ if (u === "throw")
1003
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1004
+ let d = reader.skip(wireType);
1005
+ if (u !== false)
1006
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1007
+ }
1008
+ }
1009
+ return message;
1010
+ }
1011
+ internalBinaryWrite(message, writer, options) {
1012
+ /* string transfer_id = 1; */
1013
+ if (message.transferId !== "")
1014
+ writer.tag(1, WireType.LengthDelimited).string(message.transferId);
1015
+ /* bool complete = 2; */
1016
+ if (message.complete !== false)
1017
+ writer.tag(2, WireType.Varint).bool(message.complete);
1018
+ let u = options.writeUnknownFields;
1019
+ if (u !== false)
1020
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1021
+ return writer;
1022
+ }
1023
+ }
1024
+ /**
1025
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetTransferStatusResponse
1026
+ */
1027
+ export const GetTransferStatusResponse = new GetTransferStatusResponse$Type();
1028
+ // @generated message type with reflection information, may provide speed optimized methods
1029
+ class TransferReplsRequest$Type extends MessageType {
1030
+ constructor() {
1031
+ super("replit.goval.api.lore.TransferReplsRequest", [
1032
+ { no: 1, name: "new_cluster", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1033
+ { no: 2, name: "repl_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ },
1034
+ { no: 3, name: "new_location", kind: "message", T: () => ReplLocation }
1035
+ ]);
1036
+ }
1037
+ create(value) {
1038
+ const message = globalThis.Object.create((this.messagePrototype));
1039
+ message.newCluster = "";
1040
+ message.replIds = [];
1041
+ if (value !== undefined)
1042
+ reflectionMergePartial(this, message, value);
1043
+ return message;
1044
+ }
1045
+ internalBinaryRead(reader, length, options, target) {
1046
+ let message = target ?? this.create(), end = reader.pos + length;
1047
+ while (reader.pos < end) {
1048
+ let [fieldNo, wireType] = reader.tag();
1049
+ switch (fieldNo) {
1050
+ case /* string new_cluster */ 1:
1051
+ message.newCluster = reader.string();
1052
+ break;
1053
+ case /* repeated string repl_ids */ 2:
1054
+ message.replIds.push(reader.string());
1055
+ break;
1056
+ case /* replit.goval.api.lore.ReplLocation new_location */ 3:
1057
+ message.newLocation = ReplLocation.internalBinaryRead(reader, reader.uint32(), options, message.newLocation);
1058
+ break;
1059
+ default:
1060
+ let u = options.readUnknownField;
1061
+ if (u === "throw")
1062
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1063
+ let d = reader.skip(wireType);
1064
+ if (u !== false)
1065
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1066
+ }
1067
+ }
1068
+ return message;
1069
+ }
1070
+ internalBinaryWrite(message, writer, options) {
1071
+ /* string new_cluster = 1; */
1072
+ if (message.newCluster !== "")
1073
+ writer.tag(1, WireType.LengthDelimited).string(message.newCluster);
1074
+ /* repeated string repl_ids = 2; */
1075
+ for (let i = 0; i < message.replIds.length; i++)
1076
+ writer.tag(2, WireType.LengthDelimited).string(message.replIds[i]);
1077
+ /* replit.goval.api.lore.ReplLocation new_location = 3; */
1078
+ if (message.newLocation)
1079
+ ReplLocation.internalBinaryWrite(message.newLocation, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
1080
+ let u = options.writeUnknownFields;
1081
+ if (u !== false)
1082
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1083
+ return writer;
1084
+ }
1085
+ }
1086
+ /**
1087
+ * @generated MessageType for protobuf message replit.goval.api.lore.TransferReplsRequest
1088
+ */
1089
+ export const TransferReplsRequest = new TransferReplsRequest$Type();
1090
+ // @generated message type with reflection information, may provide speed optimized methods
1091
+ class TransferReplsResponse$Type extends MessageType {
1092
+ constructor() {
1093
+ super("replit.goval.api.lore.TransferReplsResponse", [
1094
+ { no: 1, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1095
+ ]);
1096
+ }
1097
+ create(value) {
1098
+ const message = globalThis.Object.create((this.messagePrototype));
1099
+ message.transferId = "";
1100
+ if (value !== undefined)
1101
+ reflectionMergePartial(this, message, value);
1102
+ return message;
1103
+ }
1104
+ internalBinaryRead(reader, length, options, target) {
1105
+ let message = target ?? this.create(), end = reader.pos + length;
1106
+ while (reader.pos < end) {
1107
+ let [fieldNo, wireType] = reader.tag();
1108
+ switch (fieldNo) {
1109
+ case /* string transfer_id */ 1:
1110
+ message.transferId = reader.string();
1111
+ break;
1112
+ default:
1113
+ let u = options.readUnknownField;
1114
+ if (u === "throw")
1115
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1116
+ let d = reader.skip(wireType);
1117
+ if (u !== false)
1118
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1119
+ }
1120
+ }
1121
+ return message;
1122
+ }
1123
+ internalBinaryWrite(message, writer, options) {
1124
+ /* string transfer_id = 1; */
1125
+ if (message.transferId !== "")
1126
+ writer.tag(1, WireType.LengthDelimited).string(message.transferId);
1127
+ let u = options.writeUnknownFields;
1128
+ if (u !== false)
1129
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1130
+ return writer;
1131
+ }
1132
+ }
1133
+ /**
1134
+ * @generated MessageType for protobuf message replit.goval.api.lore.TransferReplsResponse
1135
+ */
1136
+ export const TransferReplsResponse = new TransferReplsResponse$Type();
1137
+ // @generated message type with reflection information, may provide speed optimized methods
1138
+ class TransferReplFromOfflineClusterRequest$Type extends MessageType {
1139
+ constructor() {
1140
+ super("replit.goval.api.lore.TransferReplFromOfflineClusterRequest", [
1141
+ { no: 1, name: "new_cluster", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1142
+ { no: 2, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1143
+ ]);
1144
+ }
1145
+ create(value) {
1146
+ const message = globalThis.Object.create((this.messagePrototype));
1147
+ message.newCluster = "";
1148
+ message.replId = "";
1149
+ if (value !== undefined)
1150
+ reflectionMergePartial(this, message, value);
1151
+ return message;
1152
+ }
1153
+ internalBinaryRead(reader, length, options, target) {
1154
+ let message = target ?? this.create(), end = reader.pos + length;
1155
+ while (reader.pos < end) {
1156
+ let [fieldNo, wireType] = reader.tag();
1157
+ switch (fieldNo) {
1158
+ case /* string new_cluster */ 1:
1159
+ message.newCluster = reader.string();
1160
+ break;
1161
+ case /* string repl_id */ 2:
1162
+ message.replId = reader.string();
1163
+ break;
1164
+ default:
1165
+ let u = options.readUnknownField;
1166
+ if (u === "throw")
1167
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1168
+ let d = reader.skip(wireType);
1169
+ if (u !== false)
1170
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1171
+ }
1172
+ }
1173
+ return message;
1174
+ }
1175
+ internalBinaryWrite(message, writer, options) {
1176
+ /* string new_cluster = 1; */
1177
+ if (message.newCluster !== "")
1178
+ writer.tag(1, WireType.LengthDelimited).string(message.newCluster);
1179
+ /* string repl_id = 2; */
1180
+ if (message.replId !== "")
1181
+ writer.tag(2, WireType.LengthDelimited).string(message.replId);
1182
+ let u = options.writeUnknownFields;
1183
+ if (u !== false)
1184
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1185
+ return writer;
1186
+ }
1187
+ }
1188
+ /**
1189
+ * @generated MessageType for protobuf message replit.goval.api.lore.TransferReplFromOfflineClusterRequest
1190
+ */
1191
+ export const TransferReplFromOfflineClusterRequest = new TransferReplFromOfflineClusterRequest$Type();
1192
+ // @generated message type with reflection information, may provide speed optimized methods
1193
+ class TransferReplFromOfflineClusterResponse$Type extends MessageType {
1194
+ constructor() {
1195
+ super("replit.goval.api.lore.TransferReplFromOfflineClusterResponse", []);
1196
+ }
1197
+ create(value) {
1198
+ const message = globalThis.Object.create((this.messagePrototype));
1199
+ if (value !== undefined)
1200
+ reflectionMergePartial(this, message, value);
1201
+ return message;
1202
+ }
1203
+ internalBinaryRead(reader, length, options, target) {
1204
+ let message = target ?? this.create(), end = reader.pos + length;
1205
+ while (reader.pos < end) {
1206
+ let [fieldNo, wireType] = reader.tag();
1207
+ switch (fieldNo) {
1208
+ default:
1209
+ let u = options.readUnknownField;
1210
+ if (u === "throw")
1211
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1212
+ let d = reader.skip(wireType);
1213
+ if (u !== false)
1214
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1215
+ }
1216
+ }
1217
+ return message;
1218
+ }
1219
+ internalBinaryWrite(message, writer, options) {
1220
+ let u = options.writeUnknownFields;
1221
+ if (u !== false)
1222
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1223
+ return writer;
1224
+ }
1225
+ }
1226
+ /**
1227
+ * @generated MessageType for protobuf message replit.goval.api.lore.TransferReplFromOfflineClusterResponse
1228
+ */
1229
+ export const TransferReplFromOfflineClusterResponse = new TransferReplFromOfflineClusterResponse$Type();
1230
+ // @generated message type with reflection information, may provide speed optimized methods
1231
+ class TransferUserRequest$Type extends MessageType {
1232
+ constructor() {
1233
+ super("replit.goval.api.lore.TransferUserRequest", [
1234
+ { no: 1, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1235
+ { no: 2, name: "new_cluster", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1236
+ { no: 3, name: "excluded_repl_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1237
+ ]);
1238
+ }
1239
+ create(value) {
1240
+ const message = globalThis.Object.create((this.messagePrototype));
1241
+ message.user = "";
1242
+ message.newCluster = "";
1243
+ message.excludedReplIds = [];
1244
+ if (value !== undefined)
1245
+ reflectionMergePartial(this, message, value);
1246
+ return message;
1247
+ }
1248
+ internalBinaryRead(reader, length, options, target) {
1249
+ let message = target ?? this.create(), end = reader.pos + length;
1250
+ while (reader.pos < end) {
1251
+ let [fieldNo, wireType] = reader.tag();
1252
+ switch (fieldNo) {
1253
+ case /* string user */ 1:
1254
+ message.user = reader.string();
1255
+ break;
1256
+ case /* string new_cluster */ 2:
1257
+ message.newCluster = reader.string();
1258
+ break;
1259
+ case /* repeated string excluded_repl_ids */ 3:
1260
+ message.excludedReplIds.push(reader.string());
1261
+ break;
1262
+ default:
1263
+ let u = options.readUnknownField;
1264
+ if (u === "throw")
1265
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1266
+ let d = reader.skip(wireType);
1267
+ if (u !== false)
1268
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1269
+ }
1270
+ }
1271
+ return message;
1272
+ }
1273
+ internalBinaryWrite(message, writer, options) {
1274
+ /* string user = 1; */
1275
+ if (message.user !== "")
1276
+ writer.tag(1, WireType.LengthDelimited).string(message.user);
1277
+ /* string new_cluster = 2; */
1278
+ if (message.newCluster !== "")
1279
+ writer.tag(2, WireType.LengthDelimited).string(message.newCluster);
1280
+ /* repeated string excluded_repl_ids = 3; */
1281
+ for (let i = 0; i < message.excludedReplIds.length; i++)
1282
+ writer.tag(3, WireType.LengthDelimited).string(message.excludedReplIds[i]);
1283
+ let u = options.writeUnknownFields;
1284
+ if (u !== false)
1285
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1286
+ return writer;
1287
+ }
1288
+ }
1289
+ /**
1290
+ * @generated MessageType for protobuf message replit.goval.api.lore.TransferUserRequest
1291
+ */
1292
+ export const TransferUserRequest = new TransferUserRequest$Type();
1293
+ // @generated message type with reflection information, may provide speed optimized methods
1294
+ class TransferUserResponse$Type extends MessageType {
1295
+ constructor() {
1296
+ super("replit.goval.api.lore.TransferUserResponse", [
1297
+ { no: 1, name: "transfer_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1298
+ ]);
1299
+ }
1300
+ create(value) {
1301
+ const message = globalThis.Object.create((this.messagePrototype));
1302
+ message.transferId = "";
1303
+ if (value !== undefined)
1304
+ reflectionMergePartial(this, message, value);
1305
+ return message;
1306
+ }
1307
+ internalBinaryRead(reader, length, options, target) {
1308
+ let message = target ?? this.create(), end = reader.pos + length;
1309
+ while (reader.pos < end) {
1310
+ let [fieldNo, wireType] = reader.tag();
1311
+ switch (fieldNo) {
1312
+ case /* string transfer_id */ 1:
1313
+ message.transferId = reader.string();
1314
+ break;
1315
+ default:
1316
+ let u = options.readUnknownField;
1317
+ if (u === "throw")
1318
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1319
+ let d = reader.skip(wireType);
1320
+ if (u !== false)
1321
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1322
+ }
1323
+ }
1324
+ return message;
1325
+ }
1326
+ internalBinaryWrite(message, writer, options) {
1327
+ /* string transfer_id = 1; */
1328
+ if (message.transferId !== "")
1329
+ writer.tag(1, WireType.LengthDelimited).string(message.transferId);
1330
+ let u = options.writeUnknownFields;
1331
+ if (u !== false)
1332
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1333
+ return writer;
1334
+ }
1335
+ }
1336
+ /**
1337
+ * @generated MessageType for protobuf message replit.goval.api.lore.TransferUserResponse
1338
+ */
1339
+ export const TransferUserResponse = new TransferUserResponse$Type();
1340
+ // @generated message type with reflection information, may provide speed optimized methods
1341
+ class Continent$Type extends MessageType {
1342
+ constructor() {
1343
+ super("replit.goval.api.lore.Continent", [
1344
+ { no: 1, name: "code", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1345
+ { no: 2, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1346
+ ]);
1347
+ }
1348
+ create(value) {
1349
+ const message = globalThis.Object.create((this.messagePrototype));
1350
+ message.code = "";
1351
+ message.name = "";
1352
+ if (value !== undefined)
1353
+ reflectionMergePartial(this, message, value);
1354
+ return message;
1355
+ }
1356
+ internalBinaryRead(reader, length, options, target) {
1357
+ let message = target ?? this.create(), end = reader.pos + length;
1358
+ while (reader.pos < end) {
1359
+ let [fieldNo, wireType] = reader.tag();
1360
+ switch (fieldNo) {
1361
+ case /* string code */ 1:
1362
+ message.code = reader.string();
1363
+ break;
1364
+ case /* string name */ 2:
1365
+ message.name = reader.string();
1366
+ break;
1367
+ default:
1368
+ let u = options.readUnknownField;
1369
+ if (u === "throw")
1370
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1371
+ let d = reader.skip(wireType);
1372
+ if (u !== false)
1373
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1374
+ }
1375
+ }
1376
+ return message;
1377
+ }
1378
+ internalBinaryWrite(message, writer, options) {
1379
+ /* string code = 1; */
1380
+ if (message.code !== "")
1381
+ writer.tag(1, WireType.LengthDelimited).string(message.code);
1382
+ /* string name = 2; */
1383
+ if (message.name !== "")
1384
+ writer.tag(2, WireType.LengthDelimited).string(message.name);
1385
+ let u = options.writeUnknownFields;
1386
+ if (u !== false)
1387
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1388
+ return writer;
1389
+ }
1390
+ }
1391
+ /**
1392
+ * @generated MessageType for protobuf message replit.goval.api.lore.Continent
1393
+ */
1394
+ export const Continent = new Continent$Type();
1395
+ // @generated message type with reflection information, may provide speed optimized methods
1396
+ class TakedownReplRequest$Type extends MessageType {
1397
+ constructor() {
1398
+ super("replit.goval.api.lore.TakedownReplRequest", [
1399
+ { no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1400
+ ]);
1401
+ }
1402
+ create(value) {
1403
+ const message = globalThis.Object.create((this.messagePrototype));
1404
+ message.replId = "";
1405
+ if (value !== undefined)
1406
+ reflectionMergePartial(this, message, value);
1407
+ return message;
1408
+ }
1409
+ internalBinaryRead(reader, length, options, target) {
1410
+ let message = target ?? this.create(), end = reader.pos + length;
1411
+ while (reader.pos < end) {
1412
+ let [fieldNo, wireType] = reader.tag();
1413
+ switch (fieldNo) {
1414
+ case /* string repl_id */ 1:
1415
+ message.replId = reader.string();
1416
+ break;
1417
+ default:
1418
+ let u = options.readUnknownField;
1419
+ if (u === "throw")
1420
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1421
+ let d = reader.skip(wireType);
1422
+ if (u !== false)
1423
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1424
+ }
1425
+ }
1426
+ return message;
1427
+ }
1428
+ internalBinaryWrite(message, writer, options) {
1429
+ /* string repl_id = 1; */
1430
+ if (message.replId !== "")
1431
+ writer.tag(1, WireType.LengthDelimited).string(message.replId);
1432
+ let u = options.writeUnknownFields;
1433
+ if (u !== false)
1434
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1435
+ return writer;
1436
+ }
1437
+ }
1438
+ /**
1439
+ * @generated MessageType for protobuf message replit.goval.api.lore.TakedownReplRequest
1440
+ */
1441
+ export const TakedownReplRequest = new TakedownReplRequest$Type();
1442
+ // @generated message type with reflection information, may provide speed optimized methods
1443
+ class TakedownReplResponse$Type extends MessageType {
1444
+ constructor() {
1445
+ super("replit.goval.api.lore.TakedownReplResponse", []);
1446
+ }
1447
+ create(value) {
1448
+ const message = globalThis.Object.create((this.messagePrototype));
1449
+ if (value !== undefined)
1450
+ reflectionMergePartial(this, message, value);
1451
+ return message;
1452
+ }
1453
+ internalBinaryRead(reader, length, options, target) {
1454
+ let message = target ?? this.create(), end = reader.pos + length;
1455
+ while (reader.pos < end) {
1456
+ let [fieldNo, wireType] = reader.tag();
1457
+ switch (fieldNo) {
1458
+ default:
1459
+ let u = options.readUnknownField;
1460
+ if (u === "throw")
1461
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1462
+ let d = reader.skip(wireType);
1463
+ if (u !== false)
1464
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1465
+ }
1466
+ }
1467
+ return message;
1468
+ }
1469
+ internalBinaryWrite(message, writer, options) {
1470
+ let u = options.writeUnknownFields;
1471
+ if (u !== false)
1472
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1473
+ return writer;
1474
+ }
1475
+ }
1476
+ /**
1477
+ * @generated MessageType for protobuf message replit.goval.api.lore.TakedownReplResponse
1478
+ */
1479
+ export const TakedownReplResponse = new TakedownReplResponse$Type();
1480
+ // @generated message type with reflection information, may provide speed optimized methods
1481
+ class SoftTakedownReplRequest$Type extends MessageType {
1482
+ constructor() {
1483
+ super("replit.goval.api.lore.SoftTakedownReplRequest", [
1484
+ { no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1485
+ ]);
1486
+ }
1487
+ create(value) {
1488
+ const message = globalThis.Object.create((this.messagePrototype));
1489
+ message.replId = "";
1490
+ if (value !== undefined)
1491
+ reflectionMergePartial(this, message, value);
1492
+ return message;
1493
+ }
1494
+ internalBinaryRead(reader, length, options, target) {
1495
+ let message = target ?? this.create(), end = reader.pos + length;
1496
+ while (reader.pos < end) {
1497
+ let [fieldNo, wireType] = reader.tag();
1498
+ switch (fieldNo) {
1499
+ case /* string repl_id */ 1:
1500
+ message.replId = reader.string();
1501
+ break;
1502
+ default:
1503
+ let u = options.readUnknownField;
1504
+ if (u === "throw")
1505
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1506
+ let d = reader.skip(wireType);
1507
+ if (u !== false)
1508
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1509
+ }
1510
+ }
1511
+ return message;
1512
+ }
1513
+ internalBinaryWrite(message, writer, options) {
1514
+ /* string repl_id = 1; */
1515
+ if (message.replId !== "")
1516
+ writer.tag(1, WireType.LengthDelimited).string(message.replId);
1517
+ let u = options.writeUnknownFields;
1518
+ if (u !== false)
1519
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1520
+ return writer;
1521
+ }
1522
+ }
1523
+ /**
1524
+ * @generated MessageType for protobuf message replit.goval.api.lore.SoftTakedownReplRequest
1525
+ */
1526
+ export const SoftTakedownReplRequest = new SoftTakedownReplRequest$Type();
1527
+ // @generated message type with reflection information, may provide speed optimized methods
1528
+ class SoftTakedownReplResponse$Type extends MessageType {
1529
+ constructor() {
1530
+ super("replit.goval.api.lore.SoftTakedownReplResponse", []);
1531
+ }
1532
+ create(value) {
1533
+ const message = globalThis.Object.create((this.messagePrototype));
1534
+ if (value !== undefined)
1535
+ reflectionMergePartial(this, message, value);
1536
+ return message;
1537
+ }
1538
+ internalBinaryRead(reader, length, options, target) {
1539
+ let message = target ?? this.create(), end = reader.pos + length;
1540
+ while (reader.pos < end) {
1541
+ let [fieldNo, wireType] = reader.tag();
1542
+ switch (fieldNo) {
1543
+ default:
1544
+ let u = options.readUnknownField;
1545
+ if (u === "throw")
1546
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1547
+ let d = reader.skip(wireType);
1548
+ if (u !== false)
1549
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1550
+ }
1551
+ }
1552
+ return message;
1553
+ }
1554
+ internalBinaryWrite(message, writer, options) {
1555
+ let u = options.writeUnknownFields;
1556
+ if (u !== false)
1557
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1558
+ return writer;
1559
+ }
1560
+ }
1561
+ /**
1562
+ * @generated MessageType for protobuf message replit.goval.api.lore.SoftTakedownReplResponse
1563
+ */
1564
+ export const SoftTakedownReplResponse = new SoftTakedownReplResponse$Type();
1565
+ // @generated message type with reflection information, may provide speed optimized methods
1566
+ class RestoreReplRequest$Type extends MessageType {
1567
+ constructor() {
1568
+ super("replit.goval.api.lore.RestoreReplRequest", [
1569
+ { no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1570
+ ]);
1571
+ }
1572
+ create(value) {
1573
+ const message = globalThis.Object.create((this.messagePrototype));
1574
+ message.replId = "";
1575
+ if (value !== undefined)
1576
+ reflectionMergePartial(this, message, value);
1577
+ return message;
1578
+ }
1579
+ internalBinaryRead(reader, length, options, target) {
1580
+ let message = target ?? this.create(), end = reader.pos + length;
1581
+ while (reader.pos < end) {
1582
+ let [fieldNo, wireType] = reader.tag();
1583
+ switch (fieldNo) {
1584
+ case /* string repl_id */ 1:
1585
+ message.replId = reader.string();
1586
+ break;
1587
+ default:
1588
+ let u = options.readUnknownField;
1589
+ if (u === "throw")
1590
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1591
+ let d = reader.skip(wireType);
1592
+ if (u !== false)
1593
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1594
+ }
1595
+ }
1596
+ return message;
1597
+ }
1598
+ internalBinaryWrite(message, writer, options) {
1599
+ /* string repl_id = 1; */
1600
+ if (message.replId !== "")
1601
+ writer.tag(1, WireType.LengthDelimited).string(message.replId);
1602
+ let u = options.writeUnknownFields;
1603
+ if (u !== false)
1604
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1605
+ return writer;
1606
+ }
1607
+ }
1608
+ /**
1609
+ * @generated MessageType for protobuf message replit.goval.api.lore.RestoreReplRequest
1610
+ */
1611
+ export const RestoreReplRequest = new RestoreReplRequest$Type();
1612
+ // @generated message type with reflection information, may provide speed optimized methods
1613
+ class RestoreReplResponse$Type extends MessageType {
1614
+ constructor() {
1615
+ super("replit.goval.api.lore.RestoreReplResponse", []);
1616
+ }
1617
+ create(value) {
1618
+ const message = globalThis.Object.create((this.messagePrototype));
1619
+ if (value !== undefined)
1620
+ reflectionMergePartial(this, message, value);
1621
+ return message;
1622
+ }
1623
+ internalBinaryRead(reader, length, options, target) {
1624
+ let message = target ?? this.create(), end = reader.pos + length;
1625
+ while (reader.pos < end) {
1626
+ let [fieldNo, wireType] = reader.tag();
1627
+ switch (fieldNo) {
1628
+ default:
1629
+ let u = options.readUnknownField;
1630
+ if (u === "throw")
1631
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1632
+ let d = reader.skip(wireType);
1633
+ if (u !== false)
1634
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1635
+ }
1636
+ }
1637
+ return message;
1638
+ }
1639
+ internalBinaryWrite(message, writer, options) {
1640
+ let u = options.writeUnknownFields;
1641
+ if (u !== false)
1642
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1643
+ return writer;
1644
+ }
1645
+ }
1646
+ /**
1647
+ * @generated MessageType for protobuf message replit.goval.api.lore.RestoreReplResponse
1648
+ */
1649
+ export const RestoreReplResponse = new RestoreReplResponse$Type();
1650
+ // @generated message type with reflection information, may provide speed optimized methods
1651
+ class BulkRemoveRequest$Type extends MessageType {
1652
+ constructor() {
1653
+ super("replit.goval.api.lore.BulkRemoveRequest", [
1654
+ { no: 1, name: "repl_ids", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
1655
+ ]);
1656
+ }
1657
+ create(value) {
1658
+ const message = globalThis.Object.create((this.messagePrototype));
1659
+ message.replIds = [];
1660
+ if (value !== undefined)
1661
+ reflectionMergePartial(this, message, value);
1662
+ return message;
1663
+ }
1664
+ internalBinaryRead(reader, length, options, target) {
1665
+ let message = target ?? this.create(), end = reader.pos + length;
1666
+ while (reader.pos < end) {
1667
+ let [fieldNo, wireType] = reader.tag();
1668
+ switch (fieldNo) {
1669
+ case /* repeated string repl_ids */ 1:
1670
+ message.replIds.push(reader.string());
1671
+ break;
1672
+ default:
1673
+ let u = options.readUnknownField;
1674
+ if (u === "throw")
1675
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1676
+ let d = reader.skip(wireType);
1677
+ if (u !== false)
1678
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1679
+ }
1680
+ }
1681
+ return message;
1682
+ }
1683
+ internalBinaryWrite(message, writer, options) {
1684
+ /* repeated string repl_ids = 1; */
1685
+ for (let i = 0; i < message.replIds.length; i++)
1686
+ writer.tag(1, WireType.LengthDelimited).string(message.replIds[i]);
1687
+ let u = options.writeUnknownFields;
1688
+ if (u !== false)
1689
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1690
+ return writer;
1691
+ }
1692
+ }
1693
+ /**
1694
+ * @generated MessageType for protobuf message replit.goval.api.lore.BulkRemoveRequest
1695
+ */
1696
+ export const BulkRemoveRequest = new BulkRemoveRequest$Type();
1697
+ // @generated message type with reflection information, may provide speed optimized methods
1698
+ class BulkRemoveResponse$Type extends MessageType {
1699
+ constructor() {
1700
+ super("replit.goval.api.lore.BulkRemoveResponse", []);
1701
+ }
1702
+ create(value) {
1703
+ const message = globalThis.Object.create((this.messagePrototype));
1704
+ if (value !== undefined)
1705
+ reflectionMergePartial(this, message, value);
1706
+ return message;
1707
+ }
1708
+ internalBinaryRead(reader, length, options, target) {
1709
+ let message = target ?? this.create(), end = reader.pos + length;
1710
+ while (reader.pos < end) {
1711
+ let [fieldNo, wireType] = reader.tag();
1712
+ switch (fieldNo) {
1713
+ default:
1714
+ let u = options.readUnknownField;
1715
+ if (u === "throw")
1716
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1717
+ let d = reader.skip(wireType);
1718
+ if (u !== false)
1719
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1720
+ }
1721
+ }
1722
+ return message;
1723
+ }
1724
+ internalBinaryWrite(message, writer, options) {
1725
+ let u = options.writeUnknownFields;
1726
+ if (u !== false)
1727
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1728
+ return writer;
1729
+ }
1730
+ }
1731
+ /**
1732
+ * @generated MessageType for protobuf message replit.goval.api.lore.BulkRemoveResponse
1733
+ */
1734
+ export const BulkRemoveResponse = new BulkRemoveResponse$Type();
1735
+ // @generated message type with reflection information, may provide speed optimized methods
1736
+ class GetClustersRequest$Type extends MessageType {
1737
+ constructor() {
1738
+ super("replit.goval.api.lore.GetClustersRequest", []);
1739
+ }
1740
+ create(value) {
1741
+ const message = globalThis.Object.create((this.messagePrototype));
1742
+ if (value !== undefined)
1743
+ reflectionMergePartial(this, message, value);
1744
+ return message;
1745
+ }
1746
+ internalBinaryRead(reader, length, options, target) {
1747
+ let message = target ?? this.create(), end = reader.pos + length;
1748
+ while (reader.pos < end) {
1749
+ let [fieldNo, wireType] = reader.tag();
1750
+ switch (fieldNo) {
1751
+ default:
1752
+ let u = options.readUnknownField;
1753
+ if (u === "throw")
1754
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1755
+ let d = reader.skip(wireType);
1756
+ if (u !== false)
1757
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1758
+ }
1759
+ }
1760
+ return message;
1761
+ }
1762
+ internalBinaryWrite(message, writer, options) {
1763
+ let u = options.writeUnknownFields;
1764
+ if (u !== false)
1765
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1766
+ return writer;
1767
+ }
1768
+ }
1769
+ /**
1770
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetClustersRequest
1771
+ */
1772
+ export const GetClustersRequest = new GetClustersRequest$Type();
1773
+ // @generated message type with reflection information, may provide speed optimized methods
1774
+ class GetClustersResponse$Type extends MessageType {
1775
+ constructor() {
1776
+ super("replit.goval.api.lore.GetClustersResponse", [
1777
+ { no: 1, name: "clusters", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Cluster }
1778
+ ]);
1779
+ }
1780
+ create(value) {
1781
+ const message = globalThis.Object.create((this.messagePrototype));
1782
+ message.clusters = [];
1783
+ if (value !== undefined)
1784
+ reflectionMergePartial(this, message, value);
1785
+ return message;
1786
+ }
1787
+ internalBinaryRead(reader, length, options, target) {
1788
+ let message = target ?? this.create(), end = reader.pos + length;
1789
+ while (reader.pos < end) {
1790
+ let [fieldNo, wireType] = reader.tag();
1791
+ switch (fieldNo) {
1792
+ case /* repeated replit.goval.api.lore.Cluster clusters */ 1:
1793
+ message.clusters.push(Cluster.internalBinaryRead(reader, reader.uint32(), options));
1794
+ break;
1795
+ default:
1796
+ let u = options.readUnknownField;
1797
+ if (u === "throw")
1798
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1799
+ let d = reader.skip(wireType);
1800
+ if (u !== false)
1801
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1802
+ }
1803
+ }
1804
+ return message;
1805
+ }
1806
+ internalBinaryWrite(message, writer, options) {
1807
+ /* repeated replit.goval.api.lore.Cluster clusters = 1; */
1808
+ for (let i = 0; i < message.clusters.length; i++)
1809
+ Cluster.internalBinaryWrite(message.clusters[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
1810
+ let u = options.writeUnknownFields;
1811
+ if (u !== false)
1812
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1813
+ return writer;
1814
+ }
1815
+ }
1816
+ /**
1817
+ * @generated MessageType for protobuf message replit.goval.api.lore.GetClustersResponse
1818
+ */
1819
+ export const GetClustersResponse = new GetClustersResponse$Type();
1820
+ // @generated message type with reflection information, may provide speed optimized methods
1821
+ class ExportReplRequest$Type extends MessageType {
1822
+ constructor() {
1823
+ super("replit.goval.api.lore.ExportReplRequest", [
1824
+ { no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1825
+ ]);
1826
+ }
1827
+ create(value) {
1828
+ const message = globalThis.Object.create((this.messagePrototype));
1829
+ message.replId = "";
1830
+ if (value !== undefined)
1831
+ reflectionMergePartial(this, message, value);
1832
+ return message;
1833
+ }
1834
+ internalBinaryRead(reader, length, options, target) {
1835
+ let message = target ?? this.create(), end = reader.pos + length;
1836
+ while (reader.pos < end) {
1837
+ let [fieldNo, wireType] = reader.tag();
1838
+ switch (fieldNo) {
1839
+ case /* string repl_id */ 1:
1840
+ message.replId = reader.string();
1841
+ break;
1842
+ default:
1843
+ let u = options.readUnknownField;
1844
+ if (u === "throw")
1845
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1846
+ let d = reader.skip(wireType);
1847
+ if (u !== false)
1848
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1849
+ }
1850
+ }
1851
+ return message;
1852
+ }
1853
+ internalBinaryWrite(message, writer, options) {
1854
+ /* string repl_id = 1; */
1855
+ if (message.replId !== "")
1856
+ writer.tag(1, WireType.LengthDelimited).string(message.replId);
1857
+ let u = options.writeUnknownFields;
1858
+ if (u !== false)
1859
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1860
+ return writer;
1861
+ }
1862
+ }
1863
+ /**
1864
+ * @generated MessageType for protobuf message replit.goval.api.lore.ExportReplRequest
1865
+ */
1866
+ export const ExportReplRequest = new ExportReplRequest$Type();
1867
+ // @generated message type with reflection information, may provide speed optimized methods
1868
+ class MargarineBlock$Type extends MessageType {
1869
+ constructor() {
1870
+ super("replit.goval.api.lore.MargarineBlock", [
1871
+ { no: 1, name: "name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1872
+ { no: 2, name: "offset", kind: "scalar", T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
1873
+ { no: 3, name: "signed_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1874
+ ]);
1875
+ }
1876
+ create(value) {
1877
+ const message = globalThis.Object.create((this.messagePrototype));
1878
+ message.name = "";
1879
+ message.offset = 0n;
1880
+ message.signedUrl = "";
1881
+ if (value !== undefined)
1882
+ reflectionMergePartial(this, message, value);
1883
+ return message;
1884
+ }
1885
+ internalBinaryRead(reader, length, options, target) {
1886
+ let message = target ?? this.create(), end = reader.pos + length;
1887
+ while (reader.pos < end) {
1888
+ let [fieldNo, wireType] = reader.tag();
1889
+ switch (fieldNo) {
1890
+ case /* string name */ 1:
1891
+ message.name = reader.string();
1892
+ break;
1893
+ case /* uint64 offset */ 2:
1894
+ message.offset = reader.uint64().toBigInt();
1895
+ break;
1896
+ case /* string signed_url */ 3:
1897
+ message.signedUrl = reader.string();
1898
+ break;
1899
+ default:
1900
+ let u = options.readUnknownField;
1901
+ if (u === "throw")
1902
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1903
+ let d = reader.skip(wireType);
1904
+ if (u !== false)
1905
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1906
+ }
1907
+ }
1908
+ return message;
1909
+ }
1910
+ internalBinaryWrite(message, writer, options) {
1911
+ /* string name = 1; */
1912
+ if (message.name !== "")
1913
+ writer.tag(1, WireType.LengthDelimited).string(message.name);
1914
+ /* uint64 offset = 2; */
1915
+ if (message.offset !== 0n)
1916
+ writer.tag(2, WireType.Varint).uint64(message.offset);
1917
+ /* string signed_url = 3; */
1918
+ if (message.signedUrl !== "")
1919
+ writer.tag(3, WireType.LengthDelimited).string(message.signedUrl);
1920
+ let u = options.writeUnknownFields;
1921
+ if (u !== false)
1922
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1923
+ return writer;
1924
+ }
1925
+ }
1926
+ /**
1927
+ * @generated MessageType for protobuf message replit.goval.api.lore.MargarineBlock
1928
+ */
1929
+ export const MargarineBlock = new MargarineBlock$Type();
1930
+ // @generated message type with reflection information, may provide speed optimized methods
1931
+ class MargarineExport$Type extends MessageType {
1932
+ constructor() {
1933
+ super("replit.goval.api.lore.MargarineExport", [
1934
+ { no: 2, name: "blocks", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => MargarineBlock }
1935
+ ]);
1936
+ }
1937
+ create(value) {
1938
+ const message = globalThis.Object.create((this.messagePrototype));
1939
+ message.blocks = [];
1940
+ if (value !== undefined)
1941
+ reflectionMergePartial(this, message, value);
1942
+ return message;
1943
+ }
1944
+ internalBinaryRead(reader, length, options, target) {
1945
+ let message = target ?? this.create(), end = reader.pos + length;
1946
+ while (reader.pos < end) {
1947
+ let [fieldNo, wireType] = reader.tag();
1948
+ switch (fieldNo) {
1949
+ case /* repeated replit.goval.api.lore.MargarineBlock blocks */ 2:
1950
+ message.blocks.push(MargarineBlock.internalBinaryRead(reader, reader.uint32(), options));
1951
+ break;
1952
+ default:
1953
+ let u = options.readUnknownField;
1954
+ if (u === "throw")
1955
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
1956
+ let d = reader.skip(wireType);
1957
+ if (u !== false)
1958
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
1959
+ }
1960
+ }
1961
+ return message;
1962
+ }
1963
+ internalBinaryWrite(message, writer, options) {
1964
+ /* repeated replit.goval.api.lore.MargarineBlock blocks = 2; */
1965
+ for (let i = 0; i < message.blocks.length; i++)
1966
+ MargarineBlock.internalBinaryWrite(message.blocks[i], writer.tag(2, WireType.LengthDelimited).fork(), options).join();
1967
+ let u = options.writeUnknownFields;
1968
+ if (u !== false)
1969
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
1970
+ return writer;
1971
+ }
1972
+ }
1973
+ /**
1974
+ * @generated MessageType for protobuf message replit.goval.api.lore.MargarineExport
1975
+ */
1976
+ export const MargarineExport = new MargarineExport$Type();
1977
+ // @generated message type with reflection information, may provide speed optimized methods
1978
+ class ReplFile$Type extends MessageType {
1979
+ constructor() {
1980
+ super("replit.goval.api.lore.ReplFile", [
1981
+ { no: 1, name: "path", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
1982
+ { no: 2, name: "signed_url", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
1983
+ ]);
1984
+ }
1985
+ create(value) {
1986
+ const message = globalThis.Object.create((this.messagePrototype));
1987
+ message.path = "";
1988
+ message.signedUrl = "";
1989
+ if (value !== undefined)
1990
+ reflectionMergePartial(this, message, value);
1991
+ return message;
1992
+ }
1993
+ internalBinaryRead(reader, length, options, target) {
1994
+ let message = target ?? this.create(), end = reader.pos + length;
1995
+ while (reader.pos < end) {
1996
+ let [fieldNo, wireType] = reader.tag();
1997
+ switch (fieldNo) {
1998
+ case /* string path */ 1:
1999
+ message.path = reader.string();
2000
+ break;
2001
+ case /* string signed_url */ 2:
2002
+ message.signedUrl = reader.string();
2003
+ break;
2004
+ default:
2005
+ let u = options.readUnknownField;
2006
+ if (u === "throw")
2007
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2008
+ let d = reader.skip(wireType);
2009
+ if (u !== false)
2010
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2011
+ }
2012
+ }
2013
+ return message;
2014
+ }
2015
+ internalBinaryWrite(message, writer, options) {
2016
+ /* string path = 1; */
2017
+ if (message.path !== "")
2018
+ writer.tag(1, WireType.LengthDelimited).string(message.path);
2019
+ /* string signed_url = 2; */
2020
+ if (message.signedUrl !== "")
2021
+ writer.tag(2, WireType.LengthDelimited).string(message.signedUrl);
2022
+ let u = options.writeUnknownFields;
2023
+ if (u !== false)
2024
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2025
+ return writer;
2026
+ }
2027
+ }
2028
+ /**
2029
+ * @generated MessageType for protobuf message replit.goval.api.lore.ReplFile
2030
+ */
2031
+ export const ReplFile = new ReplFile$Type();
2032
+ // @generated message type with reflection information, may provide speed optimized methods
2033
+ class ReplExport$Type extends MessageType {
2034
+ constructor() {
2035
+ super("replit.goval.api.lore.ReplExport", [
2036
+ { no: 1, name: "files", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => ReplFile },
2037
+ { no: 2, name: "margarine_export", kind: "message", T: () => MargarineExport }
2038
+ ]);
2039
+ }
2040
+ create(value) {
2041
+ const message = globalThis.Object.create((this.messagePrototype));
2042
+ message.files = [];
2043
+ if (value !== undefined)
2044
+ reflectionMergePartial(this, message, value);
2045
+ return message;
2046
+ }
2047
+ internalBinaryRead(reader, length, options, target) {
2048
+ let message = target ?? this.create(), end = reader.pos + length;
2049
+ while (reader.pos < end) {
2050
+ let [fieldNo, wireType] = reader.tag();
2051
+ switch (fieldNo) {
2052
+ case /* repeated replit.goval.api.lore.ReplFile files */ 1:
2053
+ message.files.push(ReplFile.internalBinaryRead(reader, reader.uint32(), options));
2054
+ break;
2055
+ case /* replit.goval.api.lore.MargarineExport margarine_export */ 2:
2056
+ message.margarineExport = MargarineExport.internalBinaryRead(reader, reader.uint32(), options, message.margarineExport);
2057
+ break;
2058
+ default:
2059
+ let u = options.readUnknownField;
2060
+ if (u === "throw")
2061
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2062
+ let d = reader.skip(wireType);
2063
+ if (u !== false)
2064
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2065
+ }
2066
+ }
2067
+ return message;
2068
+ }
2069
+ internalBinaryWrite(message, writer, options) {
2070
+ /* repeated replit.goval.api.lore.ReplFile files = 1; */
2071
+ for (let i = 0; i < message.files.length; i++)
2072
+ ReplFile.internalBinaryWrite(message.files[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2073
+ /* replit.goval.api.lore.MargarineExport margarine_export = 2; */
2074
+ if (message.margarineExport)
2075
+ MargarineExport.internalBinaryWrite(message.margarineExport, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2076
+ let u = options.writeUnknownFields;
2077
+ if (u !== false)
2078
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2079
+ return writer;
2080
+ }
2081
+ }
2082
+ /**
2083
+ * @generated MessageType for protobuf message replit.goval.api.lore.ReplExport
2084
+ */
2085
+ export const ReplExport = new ReplExport$Type();
2086
+ // @generated message type with reflection information, may provide speed optimized methods
2087
+ class ExportReplResponse$Type extends MessageType {
2088
+ constructor() {
2089
+ super("replit.goval.api.lore.ExportReplResponse", [
2090
+ { no: 1, name: "export", kind: "message", T: () => ReplExport }
2091
+ ]);
2092
+ }
2093
+ create(value) {
2094
+ const message = globalThis.Object.create((this.messagePrototype));
2095
+ if (value !== undefined)
2096
+ reflectionMergePartial(this, message, value);
2097
+ return message;
2098
+ }
2099
+ internalBinaryRead(reader, length, options, target) {
2100
+ let message = target ?? this.create(), end = reader.pos + length;
2101
+ while (reader.pos < end) {
2102
+ let [fieldNo, wireType] = reader.tag();
2103
+ switch (fieldNo) {
2104
+ case /* replit.goval.api.lore.ReplExport export */ 1:
2105
+ message.export = ReplExport.internalBinaryRead(reader, reader.uint32(), options, message.export);
2106
+ break;
2107
+ default:
2108
+ let u = options.readUnknownField;
2109
+ if (u === "throw")
2110
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2111
+ let d = reader.skip(wireType);
2112
+ if (u !== false)
2113
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2114
+ }
2115
+ }
2116
+ return message;
2117
+ }
2118
+ internalBinaryWrite(message, writer, options) {
2119
+ /* replit.goval.api.lore.ReplExport export = 1; */
2120
+ if (message.export)
2121
+ ReplExport.internalBinaryWrite(message.export, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2122
+ let u = options.writeUnknownFields;
2123
+ if (u !== false)
2124
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2125
+ return writer;
2126
+ }
2127
+ }
2128
+ /**
2129
+ * @generated MessageType for protobuf message replit.goval.api.lore.ExportReplResponse
2130
+ */
2131
+ export const ExportReplResponse = new ExportReplResponse$Type();
2132
+ // @generated message type with reflection information, may provide speed optimized methods
2133
+ class ImportReplRequest$Type extends MessageType {
2134
+ constructor() {
2135
+ super("replit.goval.api.lore.ImportReplRequest", [
2136
+ { no: 1, name: "repl_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2137
+ { no: 2, name: "username", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
2138
+ { no: 4, name: "replLocation", kind: "message", T: () => ReplLocation },
2139
+ { no: 5, name: "export", kind: "message", T: () => ReplExport }
2140
+ ]);
2141
+ }
2142
+ create(value) {
2143
+ const message = globalThis.Object.create((this.messagePrototype));
2144
+ message.replId = "";
2145
+ message.username = "";
2146
+ if (value !== undefined)
2147
+ reflectionMergePartial(this, message, value);
2148
+ return message;
2149
+ }
2150
+ internalBinaryRead(reader, length, options, target) {
2151
+ let message = target ?? this.create(), end = reader.pos + length;
2152
+ while (reader.pos < end) {
2153
+ let [fieldNo, wireType] = reader.tag();
2154
+ switch (fieldNo) {
2155
+ case /* string repl_id */ 1:
2156
+ message.replId = reader.string();
2157
+ break;
2158
+ case /* string username */ 2:
2159
+ message.username = reader.string();
2160
+ break;
2161
+ case /* replit.goval.api.lore.ReplLocation replLocation */ 4:
2162
+ message.replLocation = ReplLocation.internalBinaryRead(reader, reader.uint32(), options, message.replLocation);
2163
+ break;
2164
+ case /* replit.goval.api.lore.ReplExport export */ 5:
2165
+ message.export = ReplExport.internalBinaryRead(reader, reader.uint32(), options, message.export);
2166
+ break;
2167
+ default:
2168
+ let u = options.readUnknownField;
2169
+ if (u === "throw")
2170
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2171
+ let d = reader.skip(wireType);
2172
+ if (u !== false)
2173
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2174
+ }
2175
+ }
2176
+ return message;
2177
+ }
2178
+ internalBinaryWrite(message, writer, options) {
2179
+ /* string repl_id = 1; */
2180
+ if (message.replId !== "")
2181
+ writer.tag(1, WireType.LengthDelimited).string(message.replId);
2182
+ /* string username = 2; */
2183
+ if (message.username !== "")
2184
+ writer.tag(2, WireType.LengthDelimited).string(message.username);
2185
+ /* replit.goval.api.lore.ReplLocation replLocation = 4; */
2186
+ if (message.replLocation)
2187
+ ReplLocation.internalBinaryWrite(message.replLocation, writer.tag(4, WireType.LengthDelimited).fork(), options).join();
2188
+ /* replit.goval.api.lore.ReplExport export = 5; */
2189
+ if (message.export)
2190
+ ReplExport.internalBinaryWrite(message.export, writer.tag(5, WireType.LengthDelimited).fork(), options).join();
2191
+ let u = options.writeUnknownFields;
2192
+ if (u !== false)
2193
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2194
+ return writer;
2195
+ }
2196
+ }
2197
+ /**
2198
+ * @generated MessageType for protobuf message replit.goval.api.lore.ImportReplRequest
2199
+ */
2200
+ export const ImportReplRequest = new ImportReplRequest$Type();
2201
+ // @generated message type with reflection information, may provide speed optimized methods
2202
+ class ImportReplResponse$Type extends MessageType {
2203
+ constructor() {
2204
+ super("replit.goval.api.lore.ImportReplResponse", [
2205
+ { no: 1, name: "repl", kind: "message", T: () => Repl },
2206
+ { no: 2, name: "cluster", kind: "message", T: () => Cluster },
2207
+ { no: 3, name: "buckets", kind: "message", T: () => Buckets }
2208
+ ]);
2209
+ }
2210
+ create(value) {
2211
+ const message = globalThis.Object.create((this.messagePrototype));
2212
+ if (value !== undefined)
2213
+ reflectionMergePartial(this, message, value);
2214
+ return message;
2215
+ }
2216
+ internalBinaryRead(reader, length, options, target) {
2217
+ let message = target ?? this.create(), end = reader.pos + length;
2218
+ while (reader.pos < end) {
2219
+ let [fieldNo, wireType] = reader.tag();
2220
+ switch (fieldNo) {
2221
+ case /* replit.goval.api.lore.Repl repl */ 1:
2222
+ message.repl = Repl.internalBinaryRead(reader, reader.uint32(), options, message.repl);
2223
+ break;
2224
+ case /* replit.goval.api.lore.Cluster cluster */ 2:
2225
+ message.cluster = Cluster.internalBinaryRead(reader, reader.uint32(), options, message.cluster);
2226
+ break;
2227
+ case /* replit.goval.api.lore.Buckets buckets */ 3:
2228
+ message.buckets = Buckets.internalBinaryRead(reader, reader.uint32(), options, message.buckets);
2229
+ break;
2230
+ default:
2231
+ let u = options.readUnknownField;
2232
+ if (u === "throw")
2233
+ throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
2234
+ let d = reader.skip(wireType);
2235
+ if (u !== false)
2236
+ (u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
2237
+ }
2238
+ }
2239
+ return message;
2240
+ }
2241
+ internalBinaryWrite(message, writer, options) {
2242
+ /* replit.goval.api.lore.Repl repl = 1; */
2243
+ if (message.repl)
2244
+ Repl.internalBinaryWrite(message.repl, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
2245
+ /* replit.goval.api.lore.Cluster cluster = 2; */
2246
+ if (message.cluster)
2247
+ Cluster.internalBinaryWrite(message.cluster, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
2248
+ /* replit.goval.api.lore.Buckets buckets = 3; */
2249
+ if (message.buckets)
2250
+ Buckets.internalBinaryWrite(message.buckets, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
2251
+ let u = options.writeUnknownFields;
2252
+ if (u !== false)
2253
+ (u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
2254
+ return writer;
2255
+ }
2256
+ }
2257
+ /**
2258
+ * @generated MessageType for protobuf message replit.goval.api.lore.ImportReplResponse
2259
+ */
2260
+ export const ImportReplResponse = new ImportReplResponse$Type();
2261
+ /**
2262
+ * @generated ServiceType for protobuf service replit.goval.api.lore.Lore
2263
+ */
2264
+ export const Lore = new ServiceType("replit.goval.api.lore.Lore", [
2265
+ { name: "CreateRepl", options: {}, I: CreateReplRequest, O: CreateReplResponse },
2266
+ { name: "GetRepl", options: {}, I: GetReplRequest, O: GetReplResponse },
2267
+ { name: "GetReplConnectionInfo", options: {}, I: GetReplConnectionInfoRequest, O: GetReplConnectionInfoResponse },
2268
+ { name: "GetTransferStatus", options: {}, I: GetTransferStatusRequest, O: GetTransferStatusResponse },
2269
+ { name: "TransferRepls", options: {}, I: TransferReplsRequest, O: TransferReplsResponse },
2270
+ { name: "TransferUser", options: {}, I: TransferUserRequest, O: TransferUserResponse },
2271
+ { name: "TakedownRepl", options: {}, I: TakedownReplRequest, O: TakedownReplResponse },
2272
+ { name: "SoftTakedownRepl", options: {}, I: SoftTakedownReplRequest, O: SoftTakedownReplResponse },
2273
+ { name: "RestoreRepl", options: {}, I: RestoreReplRequest, O: RestoreReplResponse },
2274
+ { name: "BulkRemove", options: {}, I: BulkRemoveRequest, O: BulkRemoveResponse },
2275
+ { name: "GetClusters", options: {}, I: GetClustersRequest, O: GetClustersResponse },
2276
+ { name: "TransferReplFromOfflineCluster", options: {}, I: TransferReplFromOfflineClusterRequest, O: TransferReplFromOfflineClusterResponse },
2277
+ { name: "ExportRepl", options: {}, I: ExportReplRequest, O: ExportReplResponse },
2278
+ { name: "ImportRepl", options: {}, I: ImportReplRequest, O: ImportReplResponse }
2279
+ ]);