@replit/protocol 0.3.59 → 0.3.61
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.
- package/main/index.d.ts +1056 -160
- package/main/index.js +2327 -245
- package/package.json +2 -4
package/main/index.js
CHANGED
|
@@ -13457,6 +13457,7 @@
|
|
|
13457
13457
|
* @property {Object.<string,string>|null} [env] Pid1Config env
|
|
13458
13458
|
* @property {boolean|null} [noStore] Pid1Config noStore
|
|
13459
13459
|
* @property {boolean|null} [noninteractiveFSChange] Pid1Config noninteractiveFSChange
|
|
13460
|
+
* @property {replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null} [pid2Info] Pid1Config pid2Info
|
|
13460
13461
|
*/
|
|
13461
13462
|
|
|
13462
13463
|
/**
|
|
@@ -13514,6 +13515,14 @@
|
|
|
13514
13515
|
*/
|
|
13515
13516
|
Pid1Config.prototype.noninteractiveFSChange = false;
|
|
13516
13517
|
|
|
13518
|
+
/**
|
|
13519
|
+
* Pid1Config pid2Info.
|
|
13520
|
+
* @member {replit.goval.api.repl.Pid2Binary|null|undefined} pid2Info
|
|
13521
|
+
* @memberof replit.goval.api.Pid1Config
|
|
13522
|
+
* @instance
|
|
13523
|
+
*/
|
|
13524
|
+
Pid1Config.prototype.pid2Info = null;
|
|
13525
|
+
|
|
13517
13526
|
/**
|
|
13518
13527
|
* Creates a new Pid1Config instance using the specified properties.
|
|
13519
13528
|
* @function create
|
|
@@ -13549,6 +13558,8 @@
|
|
|
13549
13558
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.noStore);
|
|
13550
13559
|
if (message.noninteractiveFSChange != null && Object.hasOwnProperty.call(message, "noninteractiveFSChange"))
|
|
13551
13560
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.noninteractiveFSChange);
|
|
13561
|
+
if (message.pid2Info != null && Object.hasOwnProperty.call(message, "pid2Info"))
|
|
13562
|
+
$root.replit.goval.api.repl.Pid2Binary.encode(message.pid2Info, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
13552
13563
|
return writer;
|
|
13553
13564
|
};
|
|
13554
13565
|
|
|
@@ -13622,6 +13633,10 @@
|
|
|
13622
13633
|
message.noninteractiveFSChange = reader.bool();
|
|
13623
13634
|
break;
|
|
13624
13635
|
}
|
|
13636
|
+
case 6: {
|
|
13637
|
+
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.decode(reader, reader.uint32());
|
|
13638
|
+
break;
|
|
13639
|
+
}
|
|
13625
13640
|
default:
|
|
13626
13641
|
reader.skipType(tag & 7);
|
|
13627
13642
|
break;
|
|
@@ -13677,6 +13692,11 @@
|
|
|
13677
13692
|
if (message.noninteractiveFSChange != null && message.hasOwnProperty("noninteractiveFSChange"))
|
|
13678
13693
|
if (typeof message.noninteractiveFSChange !== "boolean")
|
|
13679
13694
|
return "noninteractiveFSChange: boolean expected";
|
|
13695
|
+
if (message.pid2Info != null && message.hasOwnProperty("pid2Info")) {
|
|
13696
|
+
var error = $root.replit.goval.api.repl.Pid2Binary.verify(message.pid2Info);
|
|
13697
|
+
if (error)
|
|
13698
|
+
return "pid2Info." + error;
|
|
13699
|
+
}
|
|
13680
13700
|
return null;
|
|
13681
13701
|
};
|
|
13682
13702
|
|
|
@@ -13707,6 +13727,11 @@
|
|
|
13707
13727
|
message.noStore = Boolean(object.noStore);
|
|
13708
13728
|
if (object.noninteractiveFSChange != null)
|
|
13709
13729
|
message.noninteractiveFSChange = Boolean(object.noninteractiveFSChange);
|
|
13730
|
+
if (object.pid2Info != null) {
|
|
13731
|
+
if (typeof object.pid2Info !== "object")
|
|
13732
|
+
throw TypeError(".replit.goval.api.Pid1Config.pid2Info: object expected");
|
|
13733
|
+
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.fromObject(object.pid2Info);
|
|
13734
|
+
}
|
|
13710
13735
|
return message;
|
|
13711
13736
|
};
|
|
13712
13737
|
|
|
@@ -13730,6 +13755,7 @@
|
|
|
13730
13755
|
object.language = "";
|
|
13731
13756
|
object.noStore = false;
|
|
13732
13757
|
object.noninteractiveFSChange = false;
|
|
13758
|
+
object.pid2Info = null;
|
|
13733
13759
|
}
|
|
13734
13760
|
if (message.cwd != null && message.hasOwnProperty("cwd"))
|
|
13735
13761
|
object.cwd = message.cwd;
|
|
@@ -13745,6 +13771,8 @@
|
|
|
13745
13771
|
object.noStore = message.noStore;
|
|
13746
13772
|
if (message.noninteractiveFSChange != null && message.hasOwnProperty("noninteractiveFSChange"))
|
|
13747
13773
|
object.noninteractiveFSChange = message.noninteractiveFSChange;
|
|
13774
|
+
if (message.pid2Info != null && message.hasOwnProperty("pid2Info"))
|
|
13775
|
+
object.pid2Info = $root.replit.goval.api.repl.Pid2Binary.toObject(message.pid2Info, options);
|
|
13748
13776
|
return object;
|
|
13749
13777
|
};
|
|
13750
13778
|
|
|
@@ -34932,7 +34960,7 @@
|
|
|
34932
34960
|
* @property {replit.goval.api.Exec.Lifecycle|null} [lifecycle] Exec lifecycle
|
|
34933
34961
|
* @property {boolean|null} [splitStderr] Exec splitStderr
|
|
34934
34962
|
* @property {boolean|null} [splitLogs] Exec splitLogs
|
|
34935
|
-
* @property {boolean|null} [
|
|
34963
|
+
* @property {boolean|null} [noUserEnv] Exec noUserEnv
|
|
34936
34964
|
*/
|
|
34937
34965
|
|
|
34938
34966
|
/**
|
|
@@ -35000,12 +35028,12 @@
|
|
|
35000
35028
|
Exec.prototype.splitLogs = false;
|
|
35001
35029
|
|
|
35002
35030
|
/**
|
|
35003
|
-
* Exec
|
|
35004
|
-
* @member {boolean}
|
|
35031
|
+
* Exec noUserEnv.
|
|
35032
|
+
* @member {boolean} noUserEnv
|
|
35005
35033
|
* @memberof replit.goval.api.Exec
|
|
35006
35034
|
* @instance
|
|
35007
35035
|
*/
|
|
35008
|
-
Exec.prototype.
|
|
35036
|
+
Exec.prototype.noUserEnv = false;
|
|
35009
35037
|
|
|
35010
35038
|
/**
|
|
35011
35039
|
* Creates a new Exec instance using the specified properties.
|
|
@@ -35045,8 +35073,8 @@
|
|
|
35045
35073
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.splitLogs);
|
|
35046
35074
|
if (message.lifecycle != null && Object.hasOwnProperty.call(message, "lifecycle"))
|
|
35047
35075
|
writer.uint32(/* id 6, wireType 0 =*/48).int32(message.lifecycle);
|
|
35048
|
-
if (message.
|
|
35049
|
-
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.
|
|
35076
|
+
if (message.noUserEnv != null && Object.hasOwnProperty.call(message, "noUserEnv"))
|
|
35077
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.noUserEnv);
|
|
35050
35078
|
return writer;
|
|
35051
35079
|
};
|
|
35052
35080
|
|
|
@@ -35127,7 +35155,7 @@
|
|
|
35127
35155
|
break;
|
|
35128
35156
|
}
|
|
35129
35157
|
case 7: {
|
|
35130
|
-
message.
|
|
35158
|
+
message.noUserEnv = reader.bool();
|
|
35131
35159
|
break;
|
|
35132
35160
|
}
|
|
35133
35161
|
default:
|
|
@@ -35198,9 +35226,9 @@
|
|
|
35198
35226
|
if (message.splitLogs != null && message.hasOwnProperty("splitLogs"))
|
|
35199
35227
|
if (typeof message.splitLogs !== "boolean")
|
|
35200
35228
|
return "splitLogs: boolean expected";
|
|
35201
|
-
if (message.
|
|
35202
|
-
if (typeof message.
|
|
35203
|
-
return "
|
|
35229
|
+
if (message.noUserEnv != null && message.hasOwnProperty("noUserEnv"))
|
|
35230
|
+
if (typeof message.noUserEnv !== "boolean")
|
|
35231
|
+
return "noUserEnv: boolean expected";
|
|
35204
35232
|
return null;
|
|
35205
35233
|
};
|
|
35206
35234
|
|
|
@@ -35256,8 +35284,8 @@
|
|
|
35256
35284
|
message.splitStderr = Boolean(object.splitStderr);
|
|
35257
35285
|
if (object.splitLogs != null)
|
|
35258
35286
|
message.splitLogs = Boolean(object.splitLogs);
|
|
35259
|
-
if (object.
|
|
35260
|
-
message.
|
|
35287
|
+
if (object.noUserEnv != null)
|
|
35288
|
+
message.noUserEnv = Boolean(object.noUserEnv);
|
|
35261
35289
|
return message;
|
|
35262
35290
|
};
|
|
35263
35291
|
|
|
@@ -35283,7 +35311,7 @@
|
|
|
35283
35311
|
object.splitStderr = false;
|
|
35284
35312
|
object.splitLogs = false;
|
|
35285
35313
|
object.lifecycle = options.enums === String ? "NON_BLOCKING" : 0;
|
|
35286
|
-
object.
|
|
35314
|
+
object.noUserEnv = false;
|
|
35287
35315
|
}
|
|
35288
35316
|
if (message.args && message.args.length) {
|
|
35289
35317
|
object.args = [];
|
|
@@ -35304,8 +35332,8 @@
|
|
|
35304
35332
|
object.splitLogs = message.splitLogs;
|
|
35305
35333
|
if (message.lifecycle != null && message.hasOwnProperty("lifecycle"))
|
|
35306
35334
|
object.lifecycle = options.enums === String ? $root.replit.goval.api.Exec.Lifecycle[message.lifecycle] === undefined ? message.lifecycle : $root.replit.goval.api.Exec.Lifecycle[message.lifecycle] : message.lifecycle;
|
|
35307
|
-
if (message.
|
|
35308
|
-
object.
|
|
35335
|
+
if (message.noUserEnv != null && message.hasOwnProperty("noUserEnv"))
|
|
35336
|
+
object.noUserEnv = message.noUserEnv;
|
|
35309
35337
|
return object;
|
|
35310
35338
|
};
|
|
35311
35339
|
|
|
@@ -62845,6 +62873,7 @@
|
|
|
62845
62873
|
* @property {replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null} [fileTypeAttrs] RunOption fileTypeAttrs
|
|
62846
62874
|
* @property {boolean|null} [interpreter] RunOption interpreter
|
|
62847
62875
|
* @property {boolean|null} [optionalFileParam] RunOption optionalFileParam
|
|
62876
|
+
* @property {string|null} [displayVersion] RunOption displayVersion
|
|
62848
62877
|
*/
|
|
62849
62878
|
|
|
62850
62879
|
/**
|
|
@@ -62917,6 +62946,14 @@
|
|
|
62917
62946
|
*/
|
|
62918
62947
|
RunOption.prototype.optionalFileParam = false;
|
|
62919
62948
|
|
|
62949
|
+
/**
|
|
62950
|
+
* RunOption displayVersion.
|
|
62951
|
+
* @member {string} displayVersion
|
|
62952
|
+
* @memberof replit.goval.api.RunOption
|
|
62953
|
+
* @instance
|
|
62954
|
+
*/
|
|
62955
|
+
RunOption.prototype.displayVersion = "";
|
|
62956
|
+
|
|
62920
62957
|
/**
|
|
62921
62958
|
* Creates a new RunOption instance using the specified properties.
|
|
62922
62959
|
* @function create
|
|
@@ -62955,6 +62992,8 @@
|
|
|
62955
62992
|
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.interpreter);
|
|
62956
62993
|
if (message.optionalFileParam != null && Object.hasOwnProperty.call(message, "optionalFileParam"))
|
|
62957
62994
|
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.optionalFileParam);
|
|
62995
|
+
if (message.displayVersion != null && Object.hasOwnProperty.call(message, "displayVersion"))
|
|
62996
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.displayVersion);
|
|
62958
62997
|
return writer;
|
|
62959
62998
|
};
|
|
62960
62999
|
|
|
@@ -63017,6 +63056,10 @@
|
|
|
63017
63056
|
message.optionalFileParam = reader.bool();
|
|
63018
63057
|
break;
|
|
63019
63058
|
}
|
|
63059
|
+
case 8: {
|
|
63060
|
+
message.displayVersion = reader.string();
|
|
63061
|
+
break;
|
|
63062
|
+
}
|
|
63020
63063
|
default:
|
|
63021
63064
|
reader.skipType(tag & 7);
|
|
63022
63065
|
break;
|
|
@@ -63075,6 +63118,9 @@
|
|
|
63075
63118
|
if (message.optionalFileParam != null && message.hasOwnProperty("optionalFileParam"))
|
|
63076
63119
|
if (typeof message.optionalFileParam !== "boolean")
|
|
63077
63120
|
return "optionalFileParam: boolean expected";
|
|
63121
|
+
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
63122
|
+
if (!$util.isString(message.displayVersion))
|
|
63123
|
+
return "displayVersion: string expected";
|
|
63078
63124
|
return null;
|
|
63079
63125
|
};
|
|
63080
63126
|
|
|
@@ -63107,6 +63153,8 @@
|
|
|
63107
63153
|
message.interpreter = Boolean(object.interpreter);
|
|
63108
63154
|
if (object.optionalFileParam != null)
|
|
63109
63155
|
message.optionalFileParam = Boolean(object.optionalFileParam);
|
|
63156
|
+
if (object.displayVersion != null)
|
|
63157
|
+
message.displayVersion = String(object.displayVersion);
|
|
63110
63158
|
return message;
|
|
63111
63159
|
};
|
|
63112
63160
|
|
|
@@ -63131,6 +63179,7 @@
|
|
|
63131
63179
|
object.fileTypeAttrs = null;
|
|
63132
63180
|
object.interpreter = false;
|
|
63133
63181
|
object.optionalFileParam = false;
|
|
63182
|
+
object.displayVersion = "";
|
|
63134
63183
|
}
|
|
63135
63184
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
63136
63185
|
object.id = message.id;
|
|
@@ -63146,6 +63195,8 @@
|
|
|
63146
63195
|
object.interpreter = message.interpreter;
|
|
63147
63196
|
if (message.optionalFileParam != null && message.hasOwnProperty("optionalFileParam"))
|
|
63148
63197
|
object.optionalFileParam = message.optionalFileParam;
|
|
63198
|
+
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
63199
|
+
object.displayVersion = message.displayVersion;
|
|
63149
63200
|
return object;
|
|
63150
63201
|
};
|
|
63151
63202
|
|
|
@@ -63189,6 +63240,7 @@
|
|
|
63189
63240
|
* @property {boolean|null} [fileParam] DebuggerOption fileParam
|
|
63190
63241
|
* @property {string|null} [language] DebuggerOption language
|
|
63191
63242
|
* @property {replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null} [fileTypeAttrs] DebuggerOption fileTypeAttrs
|
|
63243
|
+
* @property {string|null} [displayVersion] DebuggerOption displayVersion
|
|
63192
63244
|
*/
|
|
63193
63245
|
|
|
63194
63246
|
/**
|
|
@@ -63245,6 +63297,14 @@
|
|
|
63245
63297
|
*/
|
|
63246
63298
|
DebuggerOption.prototype.fileTypeAttrs = null;
|
|
63247
63299
|
|
|
63300
|
+
/**
|
|
63301
|
+
* DebuggerOption displayVersion.
|
|
63302
|
+
* @member {string} displayVersion
|
|
63303
|
+
* @memberof replit.goval.api.DebuggerOption
|
|
63304
|
+
* @instance
|
|
63305
|
+
*/
|
|
63306
|
+
DebuggerOption.prototype.displayVersion = "";
|
|
63307
|
+
|
|
63248
63308
|
/**
|
|
63249
63309
|
* Creates a new DebuggerOption instance using the specified properties.
|
|
63250
63310
|
* @function create
|
|
@@ -63279,6 +63339,8 @@
|
|
|
63279
63339
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.language);
|
|
63280
63340
|
if (message.fileTypeAttrs != null && Object.hasOwnProperty.call(message, "fileTypeAttrs"))
|
|
63281
63341
|
$root.replit.goval.api.FileTypeAttrs.encode(message.fileTypeAttrs, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
63342
|
+
if (message.displayVersion != null && Object.hasOwnProperty.call(message, "displayVersion"))
|
|
63343
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.displayVersion);
|
|
63282
63344
|
return writer;
|
|
63283
63345
|
};
|
|
63284
63346
|
|
|
@@ -63333,6 +63395,10 @@
|
|
|
63333
63395
|
message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.decode(reader, reader.uint32());
|
|
63334
63396
|
break;
|
|
63335
63397
|
}
|
|
63398
|
+
case 6: {
|
|
63399
|
+
message.displayVersion = reader.string();
|
|
63400
|
+
break;
|
|
63401
|
+
}
|
|
63336
63402
|
default:
|
|
63337
63403
|
reader.skipType(tag & 7);
|
|
63338
63404
|
break;
|
|
@@ -63385,6 +63451,9 @@
|
|
|
63385
63451
|
if (error)
|
|
63386
63452
|
return "fileTypeAttrs." + error;
|
|
63387
63453
|
}
|
|
63454
|
+
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
63455
|
+
if (!$util.isString(message.displayVersion))
|
|
63456
|
+
return "displayVersion: string expected";
|
|
63388
63457
|
return null;
|
|
63389
63458
|
};
|
|
63390
63459
|
|
|
@@ -63413,6 +63482,8 @@
|
|
|
63413
63482
|
throw TypeError(".replit.goval.api.DebuggerOption.fileTypeAttrs: object expected");
|
|
63414
63483
|
message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.fromObject(object.fileTypeAttrs);
|
|
63415
63484
|
}
|
|
63485
|
+
if (object.displayVersion != null)
|
|
63486
|
+
message.displayVersion = String(object.displayVersion);
|
|
63416
63487
|
return message;
|
|
63417
63488
|
};
|
|
63418
63489
|
|
|
@@ -63435,6 +63506,7 @@
|
|
|
63435
63506
|
object.fileParam = false;
|
|
63436
63507
|
object.language = "";
|
|
63437
63508
|
object.fileTypeAttrs = null;
|
|
63509
|
+
object.displayVersion = "";
|
|
63438
63510
|
}
|
|
63439
63511
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
63440
63512
|
object.id = message.id;
|
|
@@ -63446,6 +63518,8 @@
|
|
|
63446
63518
|
object.language = message.language;
|
|
63447
63519
|
if (message.fileTypeAttrs != null && message.hasOwnProperty("fileTypeAttrs"))
|
|
63448
63520
|
object.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.toObject(message.fileTypeAttrs, options);
|
|
63521
|
+
if (message.displayVersion != null && message.hasOwnProperty("displayVersion"))
|
|
63522
|
+
object.displayVersion = message.displayVersion;
|
|
63449
63523
|
return object;
|
|
63450
63524
|
};
|
|
63451
63525
|
|
|
@@ -86344,337 +86418,2279 @@
|
|
|
86344
86418
|
return UnlinkDomainResponse;
|
|
86345
86419
|
})();
|
|
86346
86420
|
|
|
86347
|
-
lore.
|
|
86421
|
+
lore.ExportReplRequest = (function() {
|
|
86348
86422
|
|
|
86349
86423
|
/**
|
|
86350
|
-
*
|
|
86424
|
+
* Properties of an ExportReplRequest.
|
|
86351
86425
|
* @memberof replit.goval.api.lore
|
|
86352
|
-
* @
|
|
86353
|
-
* @
|
|
86426
|
+
* @interface IExportReplRequest
|
|
86427
|
+
* @property {string|null} [replId] ExportReplRequest replId
|
|
86428
|
+
*/
|
|
86429
|
+
|
|
86430
|
+
/**
|
|
86431
|
+
* Constructs a new ExportReplRequest.
|
|
86432
|
+
* @memberof replit.goval.api.lore
|
|
86433
|
+
* @classdesc Represents an ExportReplRequest.
|
|
86354
86434
|
* @constructor
|
|
86355
|
-
* @param {
|
|
86356
|
-
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
86357
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
86435
|
+
* @param {replit.goval.api.lore.IExportReplRequest=} [properties] Properties to set
|
|
86358
86436
|
*/
|
|
86359
|
-
function
|
|
86360
|
-
|
|
86437
|
+
function ExportReplRequest(properties) {
|
|
86438
|
+
if (properties)
|
|
86439
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86440
|
+
if (properties[keys[i]] != null)
|
|
86441
|
+
this[keys[i]] = properties[keys[i]];
|
|
86361
86442
|
}
|
|
86362
86443
|
|
|
86363
|
-
|
|
86444
|
+
/**
|
|
86445
|
+
* ExportReplRequest replId.
|
|
86446
|
+
* @member {string} replId
|
|
86447
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86448
|
+
* @instance
|
|
86449
|
+
*/
|
|
86450
|
+
ExportReplRequest.prototype.replId = "";
|
|
86364
86451
|
|
|
86365
86452
|
/**
|
|
86366
|
-
* Creates new
|
|
86453
|
+
* Creates a new ExportReplRequest instance using the specified properties.
|
|
86367
86454
|
* @function create
|
|
86368
|
-
* @memberof replit.goval.api.lore.
|
|
86455
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86369
86456
|
* @static
|
|
86370
|
-
* @param {
|
|
86371
|
-
* @
|
|
86372
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
86373
|
-
* @returns {Lore} RPC service. Useful where requests and/or responses are streamed.
|
|
86457
|
+
* @param {replit.goval.api.lore.IExportReplRequest=} [properties] Properties to set
|
|
86458
|
+
* @returns {replit.goval.api.lore.ExportReplRequest} ExportReplRequest instance
|
|
86374
86459
|
*/
|
|
86375
|
-
|
|
86376
|
-
return
|
|
86460
|
+
ExportReplRequest.create = function create(properties) {
|
|
86461
|
+
return ExportReplRequest.fromObject(properties);
|
|
86377
86462
|
};
|
|
86378
86463
|
|
|
86379
86464
|
/**
|
|
86380
|
-
*
|
|
86381
|
-
* @
|
|
86382
|
-
* @
|
|
86383
|
-
* @
|
|
86384
|
-
* @param {
|
|
86385
|
-
* @param {
|
|
86465
|
+
* Encodes the specified ExportReplRequest message. Does not implicitly {@link replit.goval.api.lore.ExportReplRequest.verify|verify} messages.
|
|
86466
|
+
* @function encode
|
|
86467
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86468
|
+
* @static
|
|
86469
|
+
* @param {replit.goval.api.lore.ExportReplRequest} message ExportReplRequest message or plain object to encode
|
|
86470
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86471
|
+
* @returns {$protobuf.Writer} Writer
|
|
86386
86472
|
*/
|
|
86473
|
+
ExportReplRequest.encode = function encode(message, writer) {
|
|
86474
|
+
if (!writer)
|
|
86475
|
+
writer = $Writer.create();
|
|
86476
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
86477
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
86478
|
+
return writer;
|
|
86479
|
+
};
|
|
86387
86480
|
|
|
86388
86481
|
/**
|
|
86389
|
-
*
|
|
86390
|
-
* @function
|
|
86391
|
-
* @memberof replit.goval.api.lore.
|
|
86392
|
-
* @
|
|
86393
|
-
* @param {replit.goval.api.lore.
|
|
86394
|
-
* @param {
|
|
86395
|
-
* @returns {
|
|
86396
|
-
* @variation 1
|
|
86482
|
+
* Encodes the specified ExportReplRequest message, length delimited. Does not implicitly {@link replit.goval.api.lore.ExportReplRequest.verify|verify} messages.
|
|
86483
|
+
* @function encodeDelimited
|
|
86484
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86485
|
+
* @static
|
|
86486
|
+
* @param {replit.goval.api.lore.ExportReplRequest} message ExportReplRequest message or plain object to encode
|
|
86487
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86488
|
+
* @returns {$protobuf.Writer} Writer
|
|
86397
86489
|
*/
|
|
86398
|
-
|
|
86399
|
-
return this.
|
|
86400
|
-
}
|
|
86490
|
+
ExportReplRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86491
|
+
return this.encode(message, writer).ldelim();
|
|
86492
|
+
};
|
|
86401
86493
|
|
|
86402
86494
|
/**
|
|
86403
|
-
*
|
|
86404
|
-
* @function
|
|
86405
|
-
* @memberof replit.goval.api.lore.
|
|
86406
|
-
* @
|
|
86407
|
-
* @param {
|
|
86408
|
-
* @
|
|
86409
|
-
* @
|
|
86495
|
+
* Decodes an ExportReplRequest message from the specified reader or buffer.
|
|
86496
|
+
* @function decode
|
|
86497
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86498
|
+
* @static
|
|
86499
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86500
|
+
* @param {number} [length] Message length if known beforehand
|
|
86501
|
+
* @returns {replit.goval.api.lore.ExportReplRequest} ExportReplRequest
|
|
86502
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86503
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86410
86504
|
*/
|
|
86505
|
+
ExportReplRequest.decode = function decode(reader, length) {
|
|
86506
|
+
if (!(reader instanceof $Reader))
|
|
86507
|
+
reader = $Reader.create(reader);
|
|
86508
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.ExportReplRequest();
|
|
86509
|
+
while (reader.pos < end) {
|
|
86510
|
+
var tag = reader.uint32();
|
|
86511
|
+
switch (tag >>> 3) {
|
|
86512
|
+
case 1: {
|
|
86513
|
+
message.replId = reader.string();
|
|
86514
|
+
break;
|
|
86515
|
+
}
|
|
86516
|
+
default:
|
|
86517
|
+
reader.skipType(tag & 7);
|
|
86518
|
+
break;
|
|
86519
|
+
}
|
|
86520
|
+
}
|
|
86521
|
+
return message;
|
|
86522
|
+
};
|
|
86411
86523
|
|
|
86412
86524
|
/**
|
|
86413
|
-
*
|
|
86414
|
-
* @
|
|
86415
|
-
* @
|
|
86416
|
-
* @
|
|
86417
|
-
* @param {
|
|
86418
|
-
* @
|
|
86525
|
+
* Decodes an ExportReplRequest message from the specified reader or buffer, length delimited.
|
|
86526
|
+
* @function decodeDelimited
|
|
86527
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86528
|
+
* @static
|
|
86529
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86530
|
+
* @returns {replit.goval.api.lore.ExportReplRequest} ExportReplRequest
|
|
86531
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86532
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86419
86533
|
*/
|
|
86534
|
+
ExportReplRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
86535
|
+
if (!(reader instanceof $Reader))
|
|
86536
|
+
reader = new $Reader(reader);
|
|
86537
|
+
return this.decode(reader, reader.uint32());
|
|
86538
|
+
};
|
|
86420
86539
|
|
|
86421
86540
|
/**
|
|
86422
|
-
*
|
|
86423
|
-
* @function
|
|
86424
|
-
* @memberof replit.goval.api.lore.
|
|
86425
|
-
* @
|
|
86426
|
-
* @param {
|
|
86427
|
-
* @
|
|
86428
|
-
* @returns {undefined}
|
|
86429
|
-
* @variation 1
|
|
86541
|
+
* Verifies an ExportReplRequest message.
|
|
86542
|
+
* @function verify
|
|
86543
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86544
|
+
* @static
|
|
86545
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86546
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86430
86547
|
*/
|
|
86431
|
-
|
|
86432
|
-
|
|
86433
|
-
|
|
86548
|
+
ExportReplRequest.verify = function verify(message) {
|
|
86549
|
+
if (typeof message !== "object" || message === null)
|
|
86550
|
+
return "object expected";
|
|
86551
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
86552
|
+
if (!$util.isString(message.replId))
|
|
86553
|
+
return "replId: string expected";
|
|
86554
|
+
return null;
|
|
86555
|
+
};
|
|
86434
86556
|
|
|
86435
86557
|
/**
|
|
86436
|
-
*
|
|
86437
|
-
* @function
|
|
86438
|
-
* @memberof replit.goval.api.lore.
|
|
86439
|
-
* @
|
|
86440
|
-
* @param {
|
|
86441
|
-
* @returns {
|
|
86442
|
-
* @variation 2
|
|
86558
|
+
* Creates an ExportReplRequest message from a plain object. Also converts values to their respective internal types.
|
|
86559
|
+
* @function fromObject
|
|
86560
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86561
|
+
* @static
|
|
86562
|
+
* @param {Object.<string,*>} object Plain object
|
|
86563
|
+
* @returns {replit.goval.api.lore.ExportReplRequest} ExportReplRequest
|
|
86443
86564
|
*/
|
|
86565
|
+
ExportReplRequest.fromObject = function fromObject(object) {
|
|
86566
|
+
if (object instanceof $root.replit.goval.api.lore.ExportReplRequest)
|
|
86567
|
+
return object;
|
|
86568
|
+
var message = new $root.replit.goval.api.lore.ExportReplRequest();
|
|
86569
|
+
if (object.replId != null)
|
|
86570
|
+
message.replId = String(object.replId);
|
|
86571
|
+
return message;
|
|
86572
|
+
};
|
|
86444
86573
|
|
|
86445
86574
|
/**
|
|
86446
|
-
*
|
|
86447
|
-
* @
|
|
86448
|
-
* @
|
|
86449
|
-
* @
|
|
86450
|
-
* @param {
|
|
86451
|
-
* @param {
|
|
86575
|
+
* Creates a plain object from an ExportReplRequest message. Also converts values to other types if specified.
|
|
86576
|
+
* @function toObject
|
|
86577
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86578
|
+
* @static
|
|
86579
|
+
* @param {replit.goval.api.lore.ExportReplRequest} message ExportReplRequest
|
|
86580
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86581
|
+
* @returns {Object.<string,*>} Plain object
|
|
86452
86582
|
*/
|
|
86583
|
+
ExportReplRequest.toObject = function toObject(message, options) {
|
|
86584
|
+
if (!options)
|
|
86585
|
+
options = {};
|
|
86586
|
+
var object = {};
|
|
86587
|
+
if (options.defaults)
|
|
86588
|
+
object.replId = "";
|
|
86589
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
86590
|
+
object.replId = message.replId;
|
|
86591
|
+
return object;
|
|
86592
|
+
};
|
|
86453
86593
|
|
|
86454
86594
|
/**
|
|
86455
|
-
*
|
|
86456
|
-
* @function
|
|
86457
|
-
* @memberof replit.goval.api.lore.
|
|
86595
|
+
* Converts this ExportReplRequest to JSON.
|
|
86596
|
+
* @function toJSON
|
|
86597
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86458
86598
|
* @instance
|
|
86459
|
-
* @
|
|
86460
|
-
* @param {replit.goval.api.lore.Lore.GetReplConnectionInfoCallback} callback Node-style callback called with the error, if any, and GetReplConnectionInfoResponse
|
|
86461
|
-
* @returns {undefined}
|
|
86462
|
-
* @variation 1
|
|
86599
|
+
* @returns {Object.<string,*>} JSON object
|
|
86463
86600
|
*/
|
|
86464
|
-
|
|
86465
|
-
return this.
|
|
86466
|
-
}
|
|
86601
|
+
ExportReplRequest.prototype.toJSON = function toJSON() {
|
|
86602
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86603
|
+
};
|
|
86467
86604
|
|
|
86468
86605
|
/**
|
|
86469
|
-
*
|
|
86470
|
-
* @function
|
|
86471
|
-
* @memberof replit.goval.api.lore.
|
|
86472
|
-
* @
|
|
86473
|
-
* @param {
|
|
86474
|
-
* @returns {
|
|
86475
|
-
* @variation 2
|
|
86606
|
+
* Gets the default type url for ExportReplRequest
|
|
86607
|
+
* @function getTypeUrl
|
|
86608
|
+
* @memberof replit.goval.api.lore.ExportReplRequest
|
|
86609
|
+
* @static
|
|
86610
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
86611
|
+
* @returns {string} The default type url
|
|
86476
86612
|
*/
|
|
86613
|
+
ExportReplRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
86614
|
+
if (typeUrlPrefix === undefined) {
|
|
86615
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
86616
|
+
}
|
|
86617
|
+
return typeUrlPrefix + "/replit.goval.api.lore.ExportReplRequest";
|
|
86618
|
+
};
|
|
86619
|
+
|
|
86620
|
+
return ExportReplRequest;
|
|
86621
|
+
})();
|
|
86622
|
+
|
|
86623
|
+
lore.MargarineBlock = (function() {
|
|
86477
86624
|
|
|
86478
86625
|
/**
|
|
86479
|
-
*
|
|
86480
|
-
* @memberof replit.goval.api.lore
|
|
86481
|
-
* @
|
|
86482
|
-
* @
|
|
86483
|
-
* @
|
|
86484
|
-
* @
|
|
86626
|
+
* Properties of a MargarineBlock.
|
|
86627
|
+
* @memberof replit.goval.api.lore
|
|
86628
|
+
* @interface IMargarineBlock
|
|
86629
|
+
* @property {string|null} [name] MargarineBlock name
|
|
86630
|
+
* @property {number|null} [offset] MargarineBlock offset
|
|
86631
|
+
* @property {string|null} [signedUrl] MargarineBlock signedUrl
|
|
86485
86632
|
*/
|
|
86486
86633
|
|
|
86487
86634
|
/**
|
|
86488
|
-
*
|
|
86489
|
-
* @
|
|
86490
|
-
* @
|
|
86491
|
-
* @
|
|
86492
|
-
* @param {replit.goval.api.lore.
|
|
86493
|
-
* @param {replit.goval.api.lore.Lore.GetTransferStatusCallback} callback Node-style callback called with the error, if any, and GetTransferStatusResponse
|
|
86494
|
-
* @returns {undefined}
|
|
86495
|
-
* @variation 1
|
|
86635
|
+
* Constructs a new MargarineBlock.
|
|
86636
|
+
* @memberof replit.goval.api.lore
|
|
86637
|
+
* @classdesc Represents a MargarineBlock.
|
|
86638
|
+
* @constructor
|
|
86639
|
+
* @param {replit.goval.api.lore.IMargarineBlock=} [properties] Properties to set
|
|
86496
86640
|
*/
|
|
86497
|
-
|
|
86498
|
-
|
|
86499
|
-
|
|
86641
|
+
function MargarineBlock(properties) {
|
|
86642
|
+
if (properties)
|
|
86643
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86644
|
+
if (properties[keys[i]] != null)
|
|
86645
|
+
this[keys[i]] = properties[keys[i]];
|
|
86646
|
+
}
|
|
86500
86647
|
|
|
86501
86648
|
/**
|
|
86502
|
-
*
|
|
86503
|
-
* @
|
|
86504
|
-
* @memberof replit.goval.api.lore.
|
|
86649
|
+
* MargarineBlock name.
|
|
86650
|
+
* @member {string} name
|
|
86651
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86505
86652
|
* @instance
|
|
86506
|
-
* @param {replit.goval.api.lore.GetTransferStatusRequest} request GetTransferStatusRequest message or plain object
|
|
86507
|
-
* @returns {Promise<replit.goval.api.lore.GetTransferStatusResponse>} Promise
|
|
86508
|
-
* @variation 2
|
|
86509
86653
|
*/
|
|
86654
|
+
MargarineBlock.prototype.name = "";
|
|
86510
86655
|
|
|
86511
86656
|
/**
|
|
86512
|
-
*
|
|
86513
|
-
* @
|
|
86514
|
-
* @
|
|
86515
|
-
* @
|
|
86516
|
-
* @param {Error|null} error Error, if any
|
|
86517
|
-
* @param {replit.goval.api.lore.TransferReplsResponse} [response] TransferReplsResponse
|
|
86657
|
+
* MargarineBlock offset.
|
|
86658
|
+
* @member {number} offset
|
|
86659
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86660
|
+
* @instance
|
|
86518
86661
|
*/
|
|
86662
|
+
MargarineBlock.prototype.offset = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
86519
86663
|
|
|
86520
86664
|
/**
|
|
86521
|
-
*
|
|
86522
|
-
* @
|
|
86523
|
-
* @memberof replit.goval.api.lore.
|
|
86665
|
+
* MargarineBlock signedUrl.
|
|
86666
|
+
* @member {string} signedUrl
|
|
86667
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86524
86668
|
* @instance
|
|
86525
|
-
* @param {replit.goval.api.lore.TransferReplsRequest} request TransferReplsRequest message or plain object
|
|
86526
|
-
* @param {replit.goval.api.lore.Lore.TransferReplsCallback} callback Node-style callback called with the error, if any, and TransferReplsResponse
|
|
86527
|
-
* @returns {undefined}
|
|
86528
|
-
* @variation 1
|
|
86529
86669
|
*/
|
|
86530
|
-
|
|
86531
|
-
return this.rpcCall(transferRepls, $root.replit.goval.api.lore.TransferReplsRequest, $root.replit.goval.api.lore.TransferReplsResponse, request, callback);
|
|
86532
|
-
}, "name", { value: "TransferRepls" });
|
|
86670
|
+
MargarineBlock.prototype.signedUrl = "";
|
|
86533
86671
|
|
|
86534
86672
|
/**
|
|
86535
|
-
*
|
|
86536
|
-
* @function
|
|
86537
|
-
* @memberof replit.goval.api.lore.
|
|
86538
|
-
* @
|
|
86539
|
-
* @param {replit.goval.api.lore.
|
|
86540
|
-
* @returns {
|
|
86541
|
-
* @variation 2
|
|
86673
|
+
* Creates a new MargarineBlock instance using the specified properties.
|
|
86674
|
+
* @function create
|
|
86675
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86676
|
+
* @static
|
|
86677
|
+
* @param {replit.goval.api.lore.IMargarineBlock=} [properties] Properties to set
|
|
86678
|
+
* @returns {replit.goval.api.lore.MargarineBlock} MargarineBlock instance
|
|
86542
86679
|
*/
|
|
86680
|
+
MargarineBlock.create = function create(properties) {
|
|
86681
|
+
return MargarineBlock.fromObject(properties);
|
|
86682
|
+
};
|
|
86543
86683
|
|
|
86544
86684
|
/**
|
|
86545
|
-
*
|
|
86546
|
-
* @
|
|
86547
|
-
* @
|
|
86548
|
-
* @
|
|
86549
|
-
* @param {
|
|
86550
|
-
* @param {
|
|
86685
|
+
* Encodes the specified MargarineBlock message. Does not implicitly {@link replit.goval.api.lore.MargarineBlock.verify|verify} messages.
|
|
86686
|
+
* @function encode
|
|
86687
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86688
|
+
* @static
|
|
86689
|
+
* @param {replit.goval.api.lore.MargarineBlock} message MargarineBlock message or plain object to encode
|
|
86690
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86691
|
+
* @returns {$protobuf.Writer} Writer
|
|
86551
86692
|
*/
|
|
86693
|
+
MargarineBlock.encode = function encode(message, writer) {
|
|
86694
|
+
if (!writer)
|
|
86695
|
+
writer = $Writer.create();
|
|
86696
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
86697
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
86698
|
+
if (message.offset != null && Object.hasOwnProperty.call(message, "offset"))
|
|
86699
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.offset);
|
|
86700
|
+
if (message.signedUrl != null && Object.hasOwnProperty.call(message, "signedUrl"))
|
|
86701
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.signedUrl);
|
|
86702
|
+
return writer;
|
|
86703
|
+
};
|
|
86552
86704
|
|
|
86553
86705
|
/**
|
|
86554
|
-
*
|
|
86555
|
-
* @function
|
|
86556
|
-
* @memberof replit.goval.api.lore.
|
|
86557
|
-
* @
|
|
86558
|
-
* @param {replit.goval.api.lore.
|
|
86559
|
-
* @param {
|
|
86560
|
-
* @returns {
|
|
86561
|
-
* @variation 1
|
|
86706
|
+
* Encodes the specified MargarineBlock message, length delimited. Does not implicitly {@link replit.goval.api.lore.MargarineBlock.verify|verify} messages.
|
|
86707
|
+
* @function encodeDelimited
|
|
86708
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86709
|
+
* @static
|
|
86710
|
+
* @param {replit.goval.api.lore.MargarineBlock} message MargarineBlock message or plain object to encode
|
|
86711
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86712
|
+
* @returns {$protobuf.Writer} Writer
|
|
86562
86713
|
*/
|
|
86563
|
-
|
|
86564
|
-
return this.
|
|
86565
|
-
}
|
|
86714
|
+
MargarineBlock.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86715
|
+
return this.encode(message, writer).ldelim();
|
|
86716
|
+
};
|
|
86566
86717
|
|
|
86567
86718
|
/**
|
|
86568
|
-
*
|
|
86569
|
-
* @function
|
|
86570
|
-
* @memberof replit.goval.api.lore.
|
|
86571
|
-
* @
|
|
86572
|
-
* @param {
|
|
86573
|
-
* @
|
|
86574
|
-
* @
|
|
86719
|
+
* Decodes a MargarineBlock message from the specified reader or buffer.
|
|
86720
|
+
* @function decode
|
|
86721
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86722
|
+
* @static
|
|
86723
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86724
|
+
* @param {number} [length] Message length if known beforehand
|
|
86725
|
+
* @returns {replit.goval.api.lore.MargarineBlock} MargarineBlock
|
|
86726
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86727
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86575
86728
|
*/
|
|
86729
|
+
MargarineBlock.decode = function decode(reader, length) {
|
|
86730
|
+
if (!(reader instanceof $Reader))
|
|
86731
|
+
reader = $Reader.create(reader);
|
|
86732
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.MargarineBlock();
|
|
86733
|
+
while (reader.pos < end) {
|
|
86734
|
+
var tag = reader.uint32();
|
|
86735
|
+
switch (tag >>> 3) {
|
|
86736
|
+
case 1: {
|
|
86737
|
+
message.name = reader.string();
|
|
86738
|
+
break;
|
|
86739
|
+
}
|
|
86740
|
+
case 2: {
|
|
86741
|
+
message.offset = reader.uint64();
|
|
86742
|
+
break;
|
|
86743
|
+
}
|
|
86744
|
+
case 3: {
|
|
86745
|
+
message.signedUrl = reader.string();
|
|
86746
|
+
break;
|
|
86747
|
+
}
|
|
86748
|
+
default:
|
|
86749
|
+
reader.skipType(tag & 7);
|
|
86750
|
+
break;
|
|
86751
|
+
}
|
|
86752
|
+
}
|
|
86753
|
+
return message;
|
|
86754
|
+
};
|
|
86576
86755
|
|
|
86577
86756
|
/**
|
|
86578
|
-
*
|
|
86579
|
-
* @
|
|
86580
|
-
* @
|
|
86581
|
-
* @
|
|
86582
|
-
* @param {
|
|
86583
|
-
* @
|
|
86757
|
+
* Decodes a MargarineBlock message from the specified reader or buffer, length delimited.
|
|
86758
|
+
* @function decodeDelimited
|
|
86759
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86760
|
+
* @static
|
|
86761
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86762
|
+
* @returns {replit.goval.api.lore.MargarineBlock} MargarineBlock
|
|
86763
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86764
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86584
86765
|
*/
|
|
86766
|
+
MargarineBlock.decodeDelimited = function decodeDelimited(reader) {
|
|
86767
|
+
if (!(reader instanceof $Reader))
|
|
86768
|
+
reader = new $Reader(reader);
|
|
86769
|
+
return this.decode(reader, reader.uint32());
|
|
86770
|
+
};
|
|
86585
86771
|
|
|
86586
86772
|
/**
|
|
86587
|
-
*
|
|
86588
|
-
* @function
|
|
86589
|
-
* @memberof replit.goval.api.lore.
|
|
86590
|
-
* @
|
|
86591
|
-
* @param {
|
|
86592
|
-
* @
|
|
86593
|
-
* @returns {undefined}
|
|
86594
|
-
* @variation 1
|
|
86773
|
+
* Verifies a MargarineBlock message.
|
|
86774
|
+
* @function verify
|
|
86775
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86776
|
+
* @static
|
|
86777
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
86778
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
86595
86779
|
*/
|
|
86596
|
-
|
|
86597
|
-
|
|
86598
|
-
|
|
86780
|
+
MargarineBlock.verify = function verify(message) {
|
|
86781
|
+
if (typeof message !== "object" || message === null)
|
|
86782
|
+
return "object expected";
|
|
86783
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
86784
|
+
if (!$util.isString(message.name))
|
|
86785
|
+
return "name: string expected";
|
|
86786
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
86787
|
+
if (!$util.isInteger(message.offset) && !(message.offset && $util.isInteger(message.offset.low) && $util.isInteger(message.offset.high)))
|
|
86788
|
+
return "offset: integer|Long expected";
|
|
86789
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
|
|
86790
|
+
if (!$util.isString(message.signedUrl))
|
|
86791
|
+
return "signedUrl: string expected";
|
|
86792
|
+
return null;
|
|
86793
|
+
};
|
|
86599
86794
|
|
|
86600
86795
|
/**
|
|
86601
|
-
*
|
|
86602
|
-
* @function
|
|
86603
|
-
* @memberof replit.goval.api.lore.
|
|
86604
|
-
* @
|
|
86605
|
-
* @param {
|
|
86606
|
-
* @returns {
|
|
86607
|
-
* @variation 2
|
|
86796
|
+
* Creates a MargarineBlock message from a plain object. Also converts values to their respective internal types.
|
|
86797
|
+
* @function fromObject
|
|
86798
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86799
|
+
* @static
|
|
86800
|
+
* @param {Object.<string,*>} object Plain object
|
|
86801
|
+
* @returns {replit.goval.api.lore.MargarineBlock} MargarineBlock
|
|
86608
86802
|
*/
|
|
86803
|
+
MargarineBlock.fromObject = function fromObject(object) {
|
|
86804
|
+
if (object instanceof $root.replit.goval.api.lore.MargarineBlock)
|
|
86805
|
+
return object;
|
|
86806
|
+
var message = new $root.replit.goval.api.lore.MargarineBlock();
|
|
86807
|
+
if (object.name != null)
|
|
86808
|
+
message.name = String(object.name);
|
|
86809
|
+
if (object.offset != null)
|
|
86810
|
+
if ($util.Long)
|
|
86811
|
+
(message.offset = $util.Long.fromValue(object.offset)).unsigned = true;
|
|
86812
|
+
else if (typeof object.offset === "string")
|
|
86813
|
+
message.offset = parseInt(object.offset, 10);
|
|
86814
|
+
else if (typeof object.offset === "number")
|
|
86815
|
+
message.offset = object.offset;
|
|
86816
|
+
else if (typeof object.offset === "object")
|
|
86817
|
+
message.offset = new $util.LongBits(object.offset.low >>> 0, object.offset.high >>> 0).toNumber(true);
|
|
86818
|
+
if (object.signedUrl != null)
|
|
86819
|
+
message.signedUrl = String(object.signedUrl);
|
|
86820
|
+
return message;
|
|
86821
|
+
};
|
|
86609
86822
|
|
|
86610
86823
|
/**
|
|
86611
|
-
*
|
|
86612
|
-
* @
|
|
86613
|
-
* @
|
|
86614
|
-
* @
|
|
86615
|
-
* @param {
|
|
86616
|
-
* @param {
|
|
86824
|
+
* Creates a plain object from a MargarineBlock message. Also converts values to other types if specified.
|
|
86825
|
+
* @function toObject
|
|
86826
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86827
|
+
* @static
|
|
86828
|
+
* @param {replit.goval.api.lore.MargarineBlock} message MargarineBlock
|
|
86829
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
86830
|
+
* @returns {Object.<string,*>} Plain object
|
|
86617
86831
|
*/
|
|
86832
|
+
MargarineBlock.toObject = function toObject(message, options) {
|
|
86833
|
+
if (!options)
|
|
86834
|
+
options = {};
|
|
86835
|
+
var object = {};
|
|
86836
|
+
if (options.defaults) {
|
|
86837
|
+
object.name = "";
|
|
86838
|
+
if ($util.Long) {
|
|
86839
|
+
var long = new $util.Long(0, 0, true);
|
|
86840
|
+
object.offset = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
86841
|
+
} else
|
|
86842
|
+
object.offset = options.longs === String ? "0" : 0;
|
|
86843
|
+
object.signedUrl = "";
|
|
86844
|
+
}
|
|
86845
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
86846
|
+
object.name = message.name;
|
|
86847
|
+
if (message.offset != null && message.hasOwnProperty("offset"))
|
|
86848
|
+
if (typeof message.offset === "number")
|
|
86849
|
+
object.offset = options.longs === String ? String(message.offset) : message.offset;
|
|
86850
|
+
else
|
|
86851
|
+
object.offset = options.longs === String ? $util.Long.prototype.toString.call(message.offset) : options.longs === Number ? new $util.LongBits(message.offset.low >>> 0, message.offset.high >>> 0).toNumber(true) : message.offset;
|
|
86852
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
|
|
86853
|
+
object.signedUrl = message.signedUrl;
|
|
86854
|
+
return object;
|
|
86855
|
+
};
|
|
86618
86856
|
|
|
86619
86857
|
/**
|
|
86620
|
-
*
|
|
86621
|
-
* @function
|
|
86622
|
-
* @memberof replit.goval.api.lore.
|
|
86858
|
+
* Converts this MargarineBlock to JSON.
|
|
86859
|
+
* @function toJSON
|
|
86860
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86623
86861
|
* @instance
|
|
86624
|
-
* @
|
|
86625
|
-
* @param {replit.goval.api.lore.Lore.SoftTakedownReplCallback} callback Node-style callback called with the error, if any, and SoftTakedownReplResponse
|
|
86626
|
-
* @returns {undefined}
|
|
86627
|
-
* @variation 1
|
|
86862
|
+
* @returns {Object.<string,*>} JSON object
|
|
86628
86863
|
*/
|
|
86629
|
-
|
|
86630
|
-
return this.
|
|
86631
|
-
}
|
|
86864
|
+
MargarineBlock.prototype.toJSON = function toJSON() {
|
|
86865
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
86866
|
+
};
|
|
86632
86867
|
|
|
86633
86868
|
/**
|
|
86634
|
-
*
|
|
86635
|
-
* @function
|
|
86636
|
-
* @memberof replit.goval.api.lore.
|
|
86637
|
-
* @
|
|
86638
|
-
* @param {
|
|
86639
|
-
* @returns {
|
|
86640
|
-
* @variation 2
|
|
86869
|
+
* Gets the default type url for MargarineBlock
|
|
86870
|
+
* @function getTypeUrl
|
|
86871
|
+
* @memberof replit.goval.api.lore.MargarineBlock
|
|
86872
|
+
* @static
|
|
86873
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
86874
|
+
* @returns {string} The default type url
|
|
86641
86875
|
*/
|
|
86876
|
+
MargarineBlock.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
86877
|
+
if (typeUrlPrefix === undefined) {
|
|
86878
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
86879
|
+
}
|
|
86880
|
+
return typeUrlPrefix + "/replit.goval.api.lore.MargarineBlock";
|
|
86881
|
+
};
|
|
86882
|
+
|
|
86883
|
+
return MargarineBlock;
|
|
86884
|
+
})();
|
|
86885
|
+
|
|
86886
|
+
lore.MargarineExport = (function() {
|
|
86642
86887
|
|
|
86643
86888
|
/**
|
|
86644
|
-
*
|
|
86645
|
-
* @memberof replit.goval.api.lore
|
|
86646
|
-
* @
|
|
86647
|
-
* @
|
|
86648
|
-
* @param {Error|null} error Error, if any
|
|
86649
|
-
* @param {replit.goval.api.lore.RestoreReplResponse} [response] RestoreReplResponse
|
|
86889
|
+
* Properties of a MargarineExport.
|
|
86890
|
+
* @memberof replit.goval.api.lore
|
|
86891
|
+
* @interface IMargarineExport
|
|
86892
|
+
* @property {Array.<replit.goval.api.lore.MargarineBlock|replit.goval.api.lore.IMargarineBlock>|null} [blocks] MargarineExport blocks
|
|
86650
86893
|
*/
|
|
86651
86894
|
|
|
86652
86895
|
/**
|
|
86653
|
-
*
|
|
86654
|
-
* @
|
|
86655
|
-
* @
|
|
86656
|
-
* @
|
|
86657
|
-
* @param {replit.goval.api.lore.
|
|
86658
|
-
* @param {replit.goval.api.lore.Lore.RestoreReplCallback} callback Node-style callback called with the error, if any, and RestoreReplResponse
|
|
86659
|
-
* @returns {undefined}
|
|
86660
|
-
* @variation 1
|
|
86896
|
+
* Constructs a new MargarineExport.
|
|
86897
|
+
* @memberof replit.goval.api.lore
|
|
86898
|
+
* @classdesc Represents a MargarineExport.
|
|
86899
|
+
* @constructor
|
|
86900
|
+
* @param {replit.goval.api.lore.IMargarineExport=} [properties] Properties to set
|
|
86661
86901
|
*/
|
|
86662
|
-
|
|
86663
|
-
|
|
86664
|
-
|
|
86902
|
+
function MargarineExport(properties) {
|
|
86903
|
+
this.blocks = [];
|
|
86904
|
+
if (properties)
|
|
86905
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
86906
|
+
if (properties[keys[i]] != null)
|
|
86907
|
+
this[keys[i]] = properties[keys[i]];
|
|
86908
|
+
}
|
|
86665
86909
|
|
|
86666
86910
|
/**
|
|
86667
|
-
*
|
|
86668
|
-
* @
|
|
86669
|
-
* @memberof replit.goval.api.lore.
|
|
86911
|
+
* MargarineExport blocks.
|
|
86912
|
+
* @member {Array.<replit.goval.api.lore.MargarineBlock>} blocks
|
|
86913
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
86670
86914
|
* @instance
|
|
86671
|
-
* @param {replit.goval.api.lore.RestoreReplRequest} request RestoreReplRequest message or plain object
|
|
86672
|
-
* @returns {Promise<replit.goval.api.lore.RestoreReplResponse>} Promise
|
|
86673
|
-
* @variation 2
|
|
86674
86915
|
*/
|
|
86916
|
+
MargarineExport.prototype.blocks = $util.emptyArray;
|
|
86675
86917
|
|
|
86676
86918
|
/**
|
|
86677
|
-
*
|
|
86919
|
+
* Creates a new MargarineExport instance using the specified properties.
|
|
86920
|
+
* @function create
|
|
86921
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
86922
|
+
* @static
|
|
86923
|
+
* @param {replit.goval.api.lore.IMargarineExport=} [properties] Properties to set
|
|
86924
|
+
* @returns {replit.goval.api.lore.MargarineExport} MargarineExport instance
|
|
86925
|
+
*/
|
|
86926
|
+
MargarineExport.create = function create(properties) {
|
|
86927
|
+
return MargarineExport.fromObject(properties);
|
|
86928
|
+
};
|
|
86929
|
+
|
|
86930
|
+
/**
|
|
86931
|
+
* Encodes the specified MargarineExport message. Does not implicitly {@link replit.goval.api.lore.MargarineExport.verify|verify} messages.
|
|
86932
|
+
* @function encode
|
|
86933
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
86934
|
+
* @static
|
|
86935
|
+
* @param {replit.goval.api.lore.MargarineExport} message MargarineExport message or plain object to encode
|
|
86936
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86937
|
+
* @returns {$protobuf.Writer} Writer
|
|
86938
|
+
*/
|
|
86939
|
+
MargarineExport.encode = function encode(message, writer) {
|
|
86940
|
+
if (!writer)
|
|
86941
|
+
writer = $Writer.create();
|
|
86942
|
+
if (message.blocks != null && message.blocks.length)
|
|
86943
|
+
for (var i = 0; i < message.blocks.length; ++i)
|
|
86944
|
+
$root.replit.goval.api.lore.MargarineBlock.encode(message.blocks[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
86945
|
+
return writer;
|
|
86946
|
+
};
|
|
86947
|
+
|
|
86948
|
+
/**
|
|
86949
|
+
* Encodes the specified MargarineExport message, length delimited. Does not implicitly {@link replit.goval.api.lore.MargarineExport.verify|verify} messages.
|
|
86950
|
+
* @function encodeDelimited
|
|
86951
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
86952
|
+
* @static
|
|
86953
|
+
* @param {replit.goval.api.lore.MargarineExport} message MargarineExport message or plain object to encode
|
|
86954
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
86955
|
+
* @returns {$protobuf.Writer} Writer
|
|
86956
|
+
*/
|
|
86957
|
+
MargarineExport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
86958
|
+
return this.encode(message, writer).ldelim();
|
|
86959
|
+
};
|
|
86960
|
+
|
|
86961
|
+
/**
|
|
86962
|
+
* Decodes a MargarineExport message from the specified reader or buffer.
|
|
86963
|
+
* @function decode
|
|
86964
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
86965
|
+
* @static
|
|
86966
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86967
|
+
* @param {number} [length] Message length if known beforehand
|
|
86968
|
+
* @returns {replit.goval.api.lore.MargarineExport} MargarineExport
|
|
86969
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
86970
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
86971
|
+
*/
|
|
86972
|
+
MargarineExport.decode = function decode(reader, length) {
|
|
86973
|
+
if (!(reader instanceof $Reader))
|
|
86974
|
+
reader = $Reader.create(reader);
|
|
86975
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.MargarineExport();
|
|
86976
|
+
while (reader.pos < end) {
|
|
86977
|
+
var tag = reader.uint32();
|
|
86978
|
+
switch (tag >>> 3) {
|
|
86979
|
+
case 2: {
|
|
86980
|
+
if (!(message.blocks && message.blocks.length))
|
|
86981
|
+
message.blocks = [];
|
|
86982
|
+
message.blocks.push($root.replit.goval.api.lore.MargarineBlock.decode(reader, reader.uint32()));
|
|
86983
|
+
break;
|
|
86984
|
+
}
|
|
86985
|
+
default:
|
|
86986
|
+
reader.skipType(tag & 7);
|
|
86987
|
+
break;
|
|
86988
|
+
}
|
|
86989
|
+
}
|
|
86990
|
+
return message;
|
|
86991
|
+
};
|
|
86992
|
+
|
|
86993
|
+
/**
|
|
86994
|
+
* Decodes a MargarineExport message from the specified reader or buffer, length delimited.
|
|
86995
|
+
* @function decodeDelimited
|
|
86996
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
86997
|
+
* @static
|
|
86998
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
86999
|
+
* @returns {replit.goval.api.lore.MargarineExport} MargarineExport
|
|
87000
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87001
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87002
|
+
*/
|
|
87003
|
+
MargarineExport.decodeDelimited = function decodeDelimited(reader) {
|
|
87004
|
+
if (!(reader instanceof $Reader))
|
|
87005
|
+
reader = new $Reader(reader);
|
|
87006
|
+
return this.decode(reader, reader.uint32());
|
|
87007
|
+
};
|
|
87008
|
+
|
|
87009
|
+
/**
|
|
87010
|
+
* Verifies a MargarineExport message.
|
|
87011
|
+
* @function verify
|
|
87012
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
87013
|
+
* @static
|
|
87014
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87015
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87016
|
+
*/
|
|
87017
|
+
MargarineExport.verify = function verify(message) {
|
|
87018
|
+
if (typeof message !== "object" || message === null)
|
|
87019
|
+
return "object expected";
|
|
87020
|
+
if (message.blocks != null && message.hasOwnProperty("blocks")) {
|
|
87021
|
+
if (!Array.isArray(message.blocks))
|
|
87022
|
+
return "blocks: array expected";
|
|
87023
|
+
for (var i = 0; i < message.blocks.length; ++i) {
|
|
87024
|
+
var error = $root.replit.goval.api.lore.MargarineBlock.verify(message.blocks[i]);
|
|
87025
|
+
if (error)
|
|
87026
|
+
return "blocks." + error;
|
|
87027
|
+
}
|
|
87028
|
+
}
|
|
87029
|
+
return null;
|
|
87030
|
+
};
|
|
87031
|
+
|
|
87032
|
+
/**
|
|
87033
|
+
* Creates a MargarineExport message from a plain object. Also converts values to their respective internal types.
|
|
87034
|
+
* @function fromObject
|
|
87035
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
87036
|
+
* @static
|
|
87037
|
+
* @param {Object.<string,*>} object Plain object
|
|
87038
|
+
* @returns {replit.goval.api.lore.MargarineExport} MargarineExport
|
|
87039
|
+
*/
|
|
87040
|
+
MargarineExport.fromObject = function fromObject(object) {
|
|
87041
|
+
if (object instanceof $root.replit.goval.api.lore.MargarineExport)
|
|
87042
|
+
return object;
|
|
87043
|
+
var message = new $root.replit.goval.api.lore.MargarineExport();
|
|
87044
|
+
if (object.blocks) {
|
|
87045
|
+
if (!Array.isArray(object.blocks))
|
|
87046
|
+
throw TypeError(".replit.goval.api.lore.MargarineExport.blocks: array expected");
|
|
87047
|
+
message.blocks = [];
|
|
87048
|
+
for (var i = 0; i < object.blocks.length; ++i) {
|
|
87049
|
+
if (typeof object.blocks[i] !== "object")
|
|
87050
|
+
throw TypeError(".replit.goval.api.lore.MargarineExport.blocks: object expected");
|
|
87051
|
+
message.blocks[i] = $root.replit.goval.api.lore.MargarineBlock.fromObject(object.blocks[i]);
|
|
87052
|
+
}
|
|
87053
|
+
}
|
|
87054
|
+
return message;
|
|
87055
|
+
};
|
|
87056
|
+
|
|
87057
|
+
/**
|
|
87058
|
+
* Creates a plain object from a MargarineExport message. Also converts values to other types if specified.
|
|
87059
|
+
* @function toObject
|
|
87060
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
87061
|
+
* @static
|
|
87062
|
+
* @param {replit.goval.api.lore.MargarineExport} message MargarineExport
|
|
87063
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87064
|
+
* @returns {Object.<string,*>} Plain object
|
|
87065
|
+
*/
|
|
87066
|
+
MargarineExport.toObject = function toObject(message, options) {
|
|
87067
|
+
if (!options)
|
|
87068
|
+
options = {};
|
|
87069
|
+
var object = {};
|
|
87070
|
+
if (options.arrays || options.defaults)
|
|
87071
|
+
object.blocks = [];
|
|
87072
|
+
if (message.blocks && message.blocks.length) {
|
|
87073
|
+
object.blocks = [];
|
|
87074
|
+
for (var j = 0; j < message.blocks.length; ++j)
|
|
87075
|
+
object.blocks[j] = $root.replit.goval.api.lore.MargarineBlock.toObject(message.blocks[j], options);
|
|
87076
|
+
}
|
|
87077
|
+
return object;
|
|
87078
|
+
};
|
|
87079
|
+
|
|
87080
|
+
/**
|
|
87081
|
+
* Converts this MargarineExport to JSON.
|
|
87082
|
+
* @function toJSON
|
|
87083
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
87084
|
+
* @instance
|
|
87085
|
+
* @returns {Object.<string,*>} JSON object
|
|
87086
|
+
*/
|
|
87087
|
+
MargarineExport.prototype.toJSON = function toJSON() {
|
|
87088
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87089
|
+
};
|
|
87090
|
+
|
|
87091
|
+
/**
|
|
87092
|
+
* Gets the default type url for MargarineExport
|
|
87093
|
+
* @function getTypeUrl
|
|
87094
|
+
* @memberof replit.goval.api.lore.MargarineExport
|
|
87095
|
+
* @static
|
|
87096
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
87097
|
+
* @returns {string} The default type url
|
|
87098
|
+
*/
|
|
87099
|
+
MargarineExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87100
|
+
if (typeUrlPrefix === undefined) {
|
|
87101
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
87102
|
+
}
|
|
87103
|
+
return typeUrlPrefix + "/replit.goval.api.lore.MargarineExport";
|
|
87104
|
+
};
|
|
87105
|
+
|
|
87106
|
+
return MargarineExport;
|
|
87107
|
+
})();
|
|
87108
|
+
|
|
87109
|
+
lore.ReplFile = (function() {
|
|
87110
|
+
|
|
87111
|
+
/**
|
|
87112
|
+
* Properties of a ReplFile.
|
|
87113
|
+
* @memberof replit.goval.api.lore
|
|
87114
|
+
* @interface IReplFile
|
|
87115
|
+
* @property {string|null} [path] ReplFile path
|
|
87116
|
+
* @property {string|null} [signedUrl] ReplFile signedUrl
|
|
87117
|
+
*/
|
|
87118
|
+
|
|
87119
|
+
/**
|
|
87120
|
+
* Constructs a new ReplFile.
|
|
87121
|
+
* @memberof replit.goval.api.lore
|
|
87122
|
+
* @classdesc Represents a ReplFile.
|
|
87123
|
+
* @constructor
|
|
87124
|
+
* @param {replit.goval.api.lore.IReplFile=} [properties] Properties to set
|
|
87125
|
+
*/
|
|
87126
|
+
function ReplFile(properties) {
|
|
87127
|
+
if (properties)
|
|
87128
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87129
|
+
if (properties[keys[i]] != null)
|
|
87130
|
+
this[keys[i]] = properties[keys[i]];
|
|
87131
|
+
}
|
|
87132
|
+
|
|
87133
|
+
/**
|
|
87134
|
+
* ReplFile path.
|
|
87135
|
+
* @member {string} path
|
|
87136
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87137
|
+
* @instance
|
|
87138
|
+
*/
|
|
87139
|
+
ReplFile.prototype.path = "";
|
|
87140
|
+
|
|
87141
|
+
/**
|
|
87142
|
+
* ReplFile signedUrl.
|
|
87143
|
+
* @member {string} signedUrl
|
|
87144
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87145
|
+
* @instance
|
|
87146
|
+
*/
|
|
87147
|
+
ReplFile.prototype.signedUrl = "";
|
|
87148
|
+
|
|
87149
|
+
/**
|
|
87150
|
+
* Creates a new ReplFile instance using the specified properties.
|
|
87151
|
+
* @function create
|
|
87152
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87153
|
+
* @static
|
|
87154
|
+
* @param {replit.goval.api.lore.IReplFile=} [properties] Properties to set
|
|
87155
|
+
* @returns {replit.goval.api.lore.ReplFile} ReplFile instance
|
|
87156
|
+
*/
|
|
87157
|
+
ReplFile.create = function create(properties) {
|
|
87158
|
+
return ReplFile.fromObject(properties);
|
|
87159
|
+
};
|
|
87160
|
+
|
|
87161
|
+
/**
|
|
87162
|
+
* Encodes the specified ReplFile message. Does not implicitly {@link replit.goval.api.lore.ReplFile.verify|verify} messages.
|
|
87163
|
+
* @function encode
|
|
87164
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87165
|
+
* @static
|
|
87166
|
+
* @param {replit.goval.api.lore.ReplFile} message ReplFile message or plain object to encode
|
|
87167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87168
|
+
* @returns {$protobuf.Writer} Writer
|
|
87169
|
+
*/
|
|
87170
|
+
ReplFile.encode = function encode(message, writer) {
|
|
87171
|
+
if (!writer)
|
|
87172
|
+
writer = $Writer.create();
|
|
87173
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
87174
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
|
|
87175
|
+
if (message.signedUrl != null && Object.hasOwnProperty.call(message, "signedUrl"))
|
|
87176
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.signedUrl);
|
|
87177
|
+
return writer;
|
|
87178
|
+
};
|
|
87179
|
+
|
|
87180
|
+
/**
|
|
87181
|
+
* Encodes the specified ReplFile message, length delimited. Does not implicitly {@link replit.goval.api.lore.ReplFile.verify|verify} messages.
|
|
87182
|
+
* @function encodeDelimited
|
|
87183
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87184
|
+
* @static
|
|
87185
|
+
* @param {replit.goval.api.lore.ReplFile} message ReplFile message or plain object to encode
|
|
87186
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87187
|
+
* @returns {$protobuf.Writer} Writer
|
|
87188
|
+
*/
|
|
87189
|
+
ReplFile.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87190
|
+
return this.encode(message, writer).ldelim();
|
|
87191
|
+
};
|
|
87192
|
+
|
|
87193
|
+
/**
|
|
87194
|
+
* Decodes a ReplFile message from the specified reader or buffer.
|
|
87195
|
+
* @function decode
|
|
87196
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87197
|
+
* @static
|
|
87198
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87199
|
+
* @param {number} [length] Message length if known beforehand
|
|
87200
|
+
* @returns {replit.goval.api.lore.ReplFile} ReplFile
|
|
87201
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87202
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87203
|
+
*/
|
|
87204
|
+
ReplFile.decode = function decode(reader, length) {
|
|
87205
|
+
if (!(reader instanceof $Reader))
|
|
87206
|
+
reader = $Reader.create(reader);
|
|
87207
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.ReplFile();
|
|
87208
|
+
while (reader.pos < end) {
|
|
87209
|
+
var tag = reader.uint32();
|
|
87210
|
+
switch (tag >>> 3) {
|
|
87211
|
+
case 1: {
|
|
87212
|
+
message.path = reader.string();
|
|
87213
|
+
break;
|
|
87214
|
+
}
|
|
87215
|
+
case 2: {
|
|
87216
|
+
message.signedUrl = reader.string();
|
|
87217
|
+
break;
|
|
87218
|
+
}
|
|
87219
|
+
default:
|
|
87220
|
+
reader.skipType(tag & 7);
|
|
87221
|
+
break;
|
|
87222
|
+
}
|
|
87223
|
+
}
|
|
87224
|
+
return message;
|
|
87225
|
+
};
|
|
87226
|
+
|
|
87227
|
+
/**
|
|
87228
|
+
* Decodes a ReplFile message from the specified reader or buffer, length delimited.
|
|
87229
|
+
* @function decodeDelimited
|
|
87230
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87231
|
+
* @static
|
|
87232
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87233
|
+
* @returns {replit.goval.api.lore.ReplFile} ReplFile
|
|
87234
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87235
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87236
|
+
*/
|
|
87237
|
+
ReplFile.decodeDelimited = function decodeDelimited(reader) {
|
|
87238
|
+
if (!(reader instanceof $Reader))
|
|
87239
|
+
reader = new $Reader(reader);
|
|
87240
|
+
return this.decode(reader, reader.uint32());
|
|
87241
|
+
};
|
|
87242
|
+
|
|
87243
|
+
/**
|
|
87244
|
+
* Verifies a ReplFile message.
|
|
87245
|
+
* @function verify
|
|
87246
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87247
|
+
* @static
|
|
87248
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87249
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87250
|
+
*/
|
|
87251
|
+
ReplFile.verify = function verify(message) {
|
|
87252
|
+
if (typeof message !== "object" || message === null)
|
|
87253
|
+
return "object expected";
|
|
87254
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
87255
|
+
if (!$util.isString(message.path))
|
|
87256
|
+
return "path: string expected";
|
|
87257
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
|
|
87258
|
+
if (!$util.isString(message.signedUrl))
|
|
87259
|
+
return "signedUrl: string expected";
|
|
87260
|
+
return null;
|
|
87261
|
+
};
|
|
87262
|
+
|
|
87263
|
+
/**
|
|
87264
|
+
* Creates a ReplFile message from a plain object. Also converts values to their respective internal types.
|
|
87265
|
+
* @function fromObject
|
|
87266
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87267
|
+
* @static
|
|
87268
|
+
* @param {Object.<string,*>} object Plain object
|
|
87269
|
+
* @returns {replit.goval.api.lore.ReplFile} ReplFile
|
|
87270
|
+
*/
|
|
87271
|
+
ReplFile.fromObject = function fromObject(object) {
|
|
87272
|
+
if (object instanceof $root.replit.goval.api.lore.ReplFile)
|
|
87273
|
+
return object;
|
|
87274
|
+
var message = new $root.replit.goval.api.lore.ReplFile();
|
|
87275
|
+
if (object.path != null)
|
|
87276
|
+
message.path = String(object.path);
|
|
87277
|
+
if (object.signedUrl != null)
|
|
87278
|
+
message.signedUrl = String(object.signedUrl);
|
|
87279
|
+
return message;
|
|
87280
|
+
};
|
|
87281
|
+
|
|
87282
|
+
/**
|
|
87283
|
+
* Creates a plain object from a ReplFile message. Also converts values to other types if specified.
|
|
87284
|
+
* @function toObject
|
|
87285
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87286
|
+
* @static
|
|
87287
|
+
* @param {replit.goval.api.lore.ReplFile} message ReplFile
|
|
87288
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87289
|
+
* @returns {Object.<string,*>} Plain object
|
|
87290
|
+
*/
|
|
87291
|
+
ReplFile.toObject = function toObject(message, options) {
|
|
87292
|
+
if (!options)
|
|
87293
|
+
options = {};
|
|
87294
|
+
var object = {};
|
|
87295
|
+
if (options.defaults) {
|
|
87296
|
+
object.path = "";
|
|
87297
|
+
object.signedUrl = "";
|
|
87298
|
+
}
|
|
87299
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
87300
|
+
object.path = message.path;
|
|
87301
|
+
if (message.signedUrl != null && message.hasOwnProperty("signedUrl"))
|
|
87302
|
+
object.signedUrl = message.signedUrl;
|
|
87303
|
+
return object;
|
|
87304
|
+
};
|
|
87305
|
+
|
|
87306
|
+
/**
|
|
87307
|
+
* Converts this ReplFile to JSON.
|
|
87308
|
+
* @function toJSON
|
|
87309
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87310
|
+
* @instance
|
|
87311
|
+
* @returns {Object.<string,*>} JSON object
|
|
87312
|
+
*/
|
|
87313
|
+
ReplFile.prototype.toJSON = function toJSON() {
|
|
87314
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87315
|
+
};
|
|
87316
|
+
|
|
87317
|
+
/**
|
|
87318
|
+
* Gets the default type url for ReplFile
|
|
87319
|
+
* @function getTypeUrl
|
|
87320
|
+
* @memberof replit.goval.api.lore.ReplFile
|
|
87321
|
+
* @static
|
|
87322
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
87323
|
+
* @returns {string} The default type url
|
|
87324
|
+
*/
|
|
87325
|
+
ReplFile.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87326
|
+
if (typeUrlPrefix === undefined) {
|
|
87327
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
87328
|
+
}
|
|
87329
|
+
return typeUrlPrefix + "/replit.goval.api.lore.ReplFile";
|
|
87330
|
+
};
|
|
87331
|
+
|
|
87332
|
+
return ReplFile;
|
|
87333
|
+
})();
|
|
87334
|
+
|
|
87335
|
+
lore.ReplExport = (function() {
|
|
87336
|
+
|
|
87337
|
+
/**
|
|
87338
|
+
* Properties of a ReplExport.
|
|
87339
|
+
* @memberof replit.goval.api.lore
|
|
87340
|
+
* @interface IReplExport
|
|
87341
|
+
* @property {Array.<replit.goval.api.lore.ReplFile|replit.goval.api.lore.IReplFile>|null} [files] ReplExport files
|
|
87342
|
+
* @property {replit.goval.api.lore.MargarineExport|replit.goval.api.lore.IMargarineExport|null} [margarineExport] ReplExport margarineExport
|
|
87343
|
+
*/
|
|
87344
|
+
|
|
87345
|
+
/**
|
|
87346
|
+
* Constructs a new ReplExport.
|
|
87347
|
+
* @memberof replit.goval.api.lore
|
|
87348
|
+
* @classdesc Represents a ReplExport.
|
|
87349
|
+
* @constructor
|
|
87350
|
+
* @param {replit.goval.api.lore.IReplExport=} [properties] Properties to set
|
|
87351
|
+
*/
|
|
87352
|
+
function ReplExport(properties) {
|
|
87353
|
+
this.files = [];
|
|
87354
|
+
if (properties)
|
|
87355
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87356
|
+
if (properties[keys[i]] != null)
|
|
87357
|
+
this[keys[i]] = properties[keys[i]];
|
|
87358
|
+
}
|
|
87359
|
+
|
|
87360
|
+
/**
|
|
87361
|
+
* ReplExport files.
|
|
87362
|
+
* @member {Array.<replit.goval.api.lore.ReplFile>} files
|
|
87363
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87364
|
+
* @instance
|
|
87365
|
+
*/
|
|
87366
|
+
ReplExport.prototype.files = $util.emptyArray;
|
|
87367
|
+
|
|
87368
|
+
/**
|
|
87369
|
+
* ReplExport margarineExport.
|
|
87370
|
+
* @member {replit.goval.api.lore.MargarineExport|null|undefined} margarineExport
|
|
87371
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87372
|
+
* @instance
|
|
87373
|
+
*/
|
|
87374
|
+
ReplExport.prototype.margarineExport = null;
|
|
87375
|
+
|
|
87376
|
+
/**
|
|
87377
|
+
* Creates a new ReplExport instance using the specified properties.
|
|
87378
|
+
* @function create
|
|
87379
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87380
|
+
* @static
|
|
87381
|
+
* @param {replit.goval.api.lore.IReplExport=} [properties] Properties to set
|
|
87382
|
+
* @returns {replit.goval.api.lore.ReplExport} ReplExport instance
|
|
87383
|
+
*/
|
|
87384
|
+
ReplExport.create = function create(properties) {
|
|
87385
|
+
return ReplExport.fromObject(properties);
|
|
87386
|
+
};
|
|
87387
|
+
|
|
87388
|
+
/**
|
|
87389
|
+
* Encodes the specified ReplExport message. Does not implicitly {@link replit.goval.api.lore.ReplExport.verify|verify} messages.
|
|
87390
|
+
* @function encode
|
|
87391
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87392
|
+
* @static
|
|
87393
|
+
* @param {replit.goval.api.lore.ReplExport} message ReplExport message or plain object to encode
|
|
87394
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87395
|
+
* @returns {$protobuf.Writer} Writer
|
|
87396
|
+
*/
|
|
87397
|
+
ReplExport.encode = function encode(message, writer) {
|
|
87398
|
+
if (!writer)
|
|
87399
|
+
writer = $Writer.create();
|
|
87400
|
+
if (message.files != null && message.files.length)
|
|
87401
|
+
for (var i = 0; i < message.files.length; ++i)
|
|
87402
|
+
$root.replit.goval.api.lore.ReplFile.encode(message.files[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
87403
|
+
if (message.margarineExport != null && Object.hasOwnProperty.call(message, "margarineExport"))
|
|
87404
|
+
$root.replit.goval.api.lore.MargarineExport.encode(message.margarineExport, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
87405
|
+
return writer;
|
|
87406
|
+
};
|
|
87407
|
+
|
|
87408
|
+
/**
|
|
87409
|
+
* Encodes the specified ReplExport message, length delimited. Does not implicitly {@link replit.goval.api.lore.ReplExport.verify|verify} messages.
|
|
87410
|
+
* @function encodeDelimited
|
|
87411
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87412
|
+
* @static
|
|
87413
|
+
* @param {replit.goval.api.lore.ReplExport} message ReplExport message or plain object to encode
|
|
87414
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87415
|
+
* @returns {$protobuf.Writer} Writer
|
|
87416
|
+
*/
|
|
87417
|
+
ReplExport.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87418
|
+
return this.encode(message, writer).ldelim();
|
|
87419
|
+
};
|
|
87420
|
+
|
|
87421
|
+
/**
|
|
87422
|
+
* Decodes a ReplExport message from the specified reader or buffer.
|
|
87423
|
+
* @function decode
|
|
87424
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87425
|
+
* @static
|
|
87426
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87427
|
+
* @param {number} [length] Message length if known beforehand
|
|
87428
|
+
* @returns {replit.goval.api.lore.ReplExport} ReplExport
|
|
87429
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87430
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87431
|
+
*/
|
|
87432
|
+
ReplExport.decode = function decode(reader, length) {
|
|
87433
|
+
if (!(reader instanceof $Reader))
|
|
87434
|
+
reader = $Reader.create(reader);
|
|
87435
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.ReplExport();
|
|
87436
|
+
while (reader.pos < end) {
|
|
87437
|
+
var tag = reader.uint32();
|
|
87438
|
+
switch (tag >>> 3) {
|
|
87439
|
+
case 1: {
|
|
87440
|
+
if (!(message.files && message.files.length))
|
|
87441
|
+
message.files = [];
|
|
87442
|
+
message.files.push($root.replit.goval.api.lore.ReplFile.decode(reader, reader.uint32()));
|
|
87443
|
+
break;
|
|
87444
|
+
}
|
|
87445
|
+
case 2: {
|
|
87446
|
+
message.margarineExport = $root.replit.goval.api.lore.MargarineExport.decode(reader, reader.uint32());
|
|
87447
|
+
break;
|
|
87448
|
+
}
|
|
87449
|
+
default:
|
|
87450
|
+
reader.skipType(tag & 7);
|
|
87451
|
+
break;
|
|
87452
|
+
}
|
|
87453
|
+
}
|
|
87454
|
+
return message;
|
|
87455
|
+
};
|
|
87456
|
+
|
|
87457
|
+
/**
|
|
87458
|
+
* Decodes a ReplExport message from the specified reader or buffer, length delimited.
|
|
87459
|
+
* @function decodeDelimited
|
|
87460
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87461
|
+
* @static
|
|
87462
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87463
|
+
* @returns {replit.goval.api.lore.ReplExport} ReplExport
|
|
87464
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87465
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87466
|
+
*/
|
|
87467
|
+
ReplExport.decodeDelimited = function decodeDelimited(reader) {
|
|
87468
|
+
if (!(reader instanceof $Reader))
|
|
87469
|
+
reader = new $Reader(reader);
|
|
87470
|
+
return this.decode(reader, reader.uint32());
|
|
87471
|
+
};
|
|
87472
|
+
|
|
87473
|
+
/**
|
|
87474
|
+
* Verifies a ReplExport message.
|
|
87475
|
+
* @function verify
|
|
87476
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87477
|
+
* @static
|
|
87478
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87479
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87480
|
+
*/
|
|
87481
|
+
ReplExport.verify = function verify(message) {
|
|
87482
|
+
if (typeof message !== "object" || message === null)
|
|
87483
|
+
return "object expected";
|
|
87484
|
+
if (message.files != null && message.hasOwnProperty("files")) {
|
|
87485
|
+
if (!Array.isArray(message.files))
|
|
87486
|
+
return "files: array expected";
|
|
87487
|
+
for (var i = 0; i < message.files.length; ++i) {
|
|
87488
|
+
var error = $root.replit.goval.api.lore.ReplFile.verify(message.files[i]);
|
|
87489
|
+
if (error)
|
|
87490
|
+
return "files." + error;
|
|
87491
|
+
}
|
|
87492
|
+
}
|
|
87493
|
+
if (message.margarineExport != null && message.hasOwnProperty("margarineExport")) {
|
|
87494
|
+
var error = $root.replit.goval.api.lore.MargarineExport.verify(message.margarineExport);
|
|
87495
|
+
if (error)
|
|
87496
|
+
return "margarineExport." + error;
|
|
87497
|
+
}
|
|
87498
|
+
return null;
|
|
87499
|
+
};
|
|
87500
|
+
|
|
87501
|
+
/**
|
|
87502
|
+
* Creates a ReplExport message from a plain object. Also converts values to their respective internal types.
|
|
87503
|
+
* @function fromObject
|
|
87504
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87505
|
+
* @static
|
|
87506
|
+
* @param {Object.<string,*>} object Plain object
|
|
87507
|
+
* @returns {replit.goval.api.lore.ReplExport} ReplExport
|
|
87508
|
+
*/
|
|
87509
|
+
ReplExport.fromObject = function fromObject(object) {
|
|
87510
|
+
if (object instanceof $root.replit.goval.api.lore.ReplExport)
|
|
87511
|
+
return object;
|
|
87512
|
+
var message = new $root.replit.goval.api.lore.ReplExport();
|
|
87513
|
+
if (object.files) {
|
|
87514
|
+
if (!Array.isArray(object.files))
|
|
87515
|
+
throw TypeError(".replit.goval.api.lore.ReplExport.files: array expected");
|
|
87516
|
+
message.files = [];
|
|
87517
|
+
for (var i = 0; i < object.files.length; ++i) {
|
|
87518
|
+
if (typeof object.files[i] !== "object")
|
|
87519
|
+
throw TypeError(".replit.goval.api.lore.ReplExport.files: object expected");
|
|
87520
|
+
message.files[i] = $root.replit.goval.api.lore.ReplFile.fromObject(object.files[i]);
|
|
87521
|
+
}
|
|
87522
|
+
}
|
|
87523
|
+
if (object.margarineExport != null) {
|
|
87524
|
+
if (typeof object.margarineExport !== "object")
|
|
87525
|
+
throw TypeError(".replit.goval.api.lore.ReplExport.margarineExport: object expected");
|
|
87526
|
+
message.margarineExport = $root.replit.goval.api.lore.MargarineExport.fromObject(object.margarineExport);
|
|
87527
|
+
}
|
|
87528
|
+
return message;
|
|
87529
|
+
};
|
|
87530
|
+
|
|
87531
|
+
/**
|
|
87532
|
+
* Creates a plain object from a ReplExport message. Also converts values to other types if specified.
|
|
87533
|
+
* @function toObject
|
|
87534
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87535
|
+
* @static
|
|
87536
|
+
* @param {replit.goval.api.lore.ReplExport} message ReplExport
|
|
87537
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87538
|
+
* @returns {Object.<string,*>} Plain object
|
|
87539
|
+
*/
|
|
87540
|
+
ReplExport.toObject = function toObject(message, options) {
|
|
87541
|
+
if (!options)
|
|
87542
|
+
options = {};
|
|
87543
|
+
var object = {};
|
|
87544
|
+
if (options.arrays || options.defaults)
|
|
87545
|
+
object.files = [];
|
|
87546
|
+
if (options.defaults)
|
|
87547
|
+
object.margarineExport = null;
|
|
87548
|
+
if (message.files && message.files.length) {
|
|
87549
|
+
object.files = [];
|
|
87550
|
+
for (var j = 0; j < message.files.length; ++j)
|
|
87551
|
+
object.files[j] = $root.replit.goval.api.lore.ReplFile.toObject(message.files[j], options);
|
|
87552
|
+
}
|
|
87553
|
+
if (message.margarineExport != null && message.hasOwnProperty("margarineExport"))
|
|
87554
|
+
object.margarineExport = $root.replit.goval.api.lore.MargarineExport.toObject(message.margarineExport, options);
|
|
87555
|
+
return object;
|
|
87556
|
+
};
|
|
87557
|
+
|
|
87558
|
+
/**
|
|
87559
|
+
* Converts this ReplExport to JSON.
|
|
87560
|
+
* @function toJSON
|
|
87561
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87562
|
+
* @instance
|
|
87563
|
+
* @returns {Object.<string,*>} JSON object
|
|
87564
|
+
*/
|
|
87565
|
+
ReplExport.prototype.toJSON = function toJSON() {
|
|
87566
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87567
|
+
};
|
|
87568
|
+
|
|
87569
|
+
/**
|
|
87570
|
+
* Gets the default type url for ReplExport
|
|
87571
|
+
* @function getTypeUrl
|
|
87572
|
+
* @memberof replit.goval.api.lore.ReplExport
|
|
87573
|
+
* @static
|
|
87574
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
87575
|
+
* @returns {string} The default type url
|
|
87576
|
+
*/
|
|
87577
|
+
ReplExport.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87578
|
+
if (typeUrlPrefix === undefined) {
|
|
87579
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
87580
|
+
}
|
|
87581
|
+
return typeUrlPrefix + "/replit.goval.api.lore.ReplExport";
|
|
87582
|
+
};
|
|
87583
|
+
|
|
87584
|
+
return ReplExport;
|
|
87585
|
+
})();
|
|
87586
|
+
|
|
87587
|
+
lore.ExportReplResponse = (function() {
|
|
87588
|
+
|
|
87589
|
+
/**
|
|
87590
|
+
* Properties of an ExportReplResponse.
|
|
87591
|
+
* @memberof replit.goval.api.lore
|
|
87592
|
+
* @interface IExportReplResponse
|
|
87593
|
+
* @property {replit.goval.api.lore.ReplExport|replit.goval.api.lore.IReplExport|null} ["export"] ExportReplResponse export
|
|
87594
|
+
*/
|
|
87595
|
+
|
|
87596
|
+
/**
|
|
87597
|
+
* Constructs a new ExportReplResponse.
|
|
87598
|
+
* @memberof replit.goval.api.lore
|
|
87599
|
+
* @classdesc Represents an ExportReplResponse.
|
|
87600
|
+
* @constructor
|
|
87601
|
+
* @param {replit.goval.api.lore.IExportReplResponse=} [properties] Properties to set
|
|
87602
|
+
*/
|
|
87603
|
+
function ExportReplResponse(properties) {
|
|
87604
|
+
if (properties)
|
|
87605
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87606
|
+
if (properties[keys[i]] != null)
|
|
87607
|
+
this[keys[i]] = properties[keys[i]];
|
|
87608
|
+
}
|
|
87609
|
+
|
|
87610
|
+
/**
|
|
87611
|
+
* ExportReplResponse export.
|
|
87612
|
+
* @member {replit.goval.api.lore.ReplExport|null|undefined} export
|
|
87613
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87614
|
+
* @instance
|
|
87615
|
+
*/
|
|
87616
|
+
ExportReplResponse.prototype["export"] = null;
|
|
87617
|
+
|
|
87618
|
+
/**
|
|
87619
|
+
* Creates a new ExportReplResponse instance using the specified properties.
|
|
87620
|
+
* @function create
|
|
87621
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87622
|
+
* @static
|
|
87623
|
+
* @param {replit.goval.api.lore.IExportReplResponse=} [properties] Properties to set
|
|
87624
|
+
* @returns {replit.goval.api.lore.ExportReplResponse} ExportReplResponse instance
|
|
87625
|
+
*/
|
|
87626
|
+
ExportReplResponse.create = function create(properties) {
|
|
87627
|
+
return ExportReplResponse.fromObject(properties);
|
|
87628
|
+
};
|
|
87629
|
+
|
|
87630
|
+
/**
|
|
87631
|
+
* Encodes the specified ExportReplResponse message. Does not implicitly {@link replit.goval.api.lore.ExportReplResponse.verify|verify} messages.
|
|
87632
|
+
* @function encode
|
|
87633
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87634
|
+
* @static
|
|
87635
|
+
* @param {replit.goval.api.lore.ExportReplResponse} message ExportReplResponse message or plain object to encode
|
|
87636
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87637
|
+
* @returns {$protobuf.Writer} Writer
|
|
87638
|
+
*/
|
|
87639
|
+
ExportReplResponse.encode = function encode(message, writer) {
|
|
87640
|
+
if (!writer)
|
|
87641
|
+
writer = $Writer.create();
|
|
87642
|
+
if (message["export"] != null && Object.hasOwnProperty.call(message, "export"))
|
|
87643
|
+
$root.replit.goval.api.lore.ReplExport.encode(message["export"], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
87644
|
+
return writer;
|
|
87645
|
+
};
|
|
87646
|
+
|
|
87647
|
+
/**
|
|
87648
|
+
* Encodes the specified ExportReplResponse message, length delimited. Does not implicitly {@link replit.goval.api.lore.ExportReplResponse.verify|verify} messages.
|
|
87649
|
+
* @function encodeDelimited
|
|
87650
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87651
|
+
* @static
|
|
87652
|
+
* @param {replit.goval.api.lore.ExportReplResponse} message ExportReplResponse message or plain object to encode
|
|
87653
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87654
|
+
* @returns {$protobuf.Writer} Writer
|
|
87655
|
+
*/
|
|
87656
|
+
ExportReplResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87657
|
+
return this.encode(message, writer).ldelim();
|
|
87658
|
+
};
|
|
87659
|
+
|
|
87660
|
+
/**
|
|
87661
|
+
* Decodes an ExportReplResponse message from the specified reader or buffer.
|
|
87662
|
+
* @function decode
|
|
87663
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87664
|
+
* @static
|
|
87665
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87666
|
+
* @param {number} [length] Message length if known beforehand
|
|
87667
|
+
* @returns {replit.goval.api.lore.ExportReplResponse} ExportReplResponse
|
|
87668
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87669
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87670
|
+
*/
|
|
87671
|
+
ExportReplResponse.decode = function decode(reader, length) {
|
|
87672
|
+
if (!(reader instanceof $Reader))
|
|
87673
|
+
reader = $Reader.create(reader);
|
|
87674
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.ExportReplResponse();
|
|
87675
|
+
while (reader.pos < end) {
|
|
87676
|
+
var tag = reader.uint32();
|
|
87677
|
+
switch (tag >>> 3) {
|
|
87678
|
+
case 1: {
|
|
87679
|
+
message["export"] = $root.replit.goval.api.lore.ReplExport.decode(reader, reader.uint32());
|
|
87680
|
+
break;
|
|
87681
|
+
}
|
|
87682
|
+
default:
|
|
87683
|
+
reader.skipType(tag & 7);
|
|
87684
|
+
break;
|
|
87685
|
+
}
|
|
87686
|
+
}
|
|
87687
|
+
return message;
|
|
87688
|
+
};
|
|
87689
|
+
|
|
87690
|
+
/**
|
|
87691
|
+
* Decodes an ExportReplResponse message from the specified reader or buffer, length delimited.
|
|
87692
|
+
* @function decodeDelimited
|
|
87693
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87694
|
+
* @static
|
|
87695
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87696
|
+
* @returns {replit.goval.api.lore.ExportReplResponse} ExportReplResponse
|
|
87697
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87698
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87699
|
+
*/
|
|
87700
|
+
ExportReplResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
87701
|
+
if (!(reader instanceof $Reader))
|
|
87702
|
+
reader = new $Reader(reader);
|
|
87703
|
+
return this.decode(reader, reader.uint32());
|
|
87704
|
+
};
|
|
87705
|
+
|
|
87706
|
+
/**
|
|
87707
|
+
* Verifies an ExportReplResponse message.
|
|
87708
|
+
* @function verify
|
|
87709
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87710
|
+
* @static
|
|
87711
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87712
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87713
|
+
*/
|
|
87714
|
+
ExportReplResponse.verify = function verify(message) {
|
|
87715
|
+
if (typeof message !== "object" || message === null)
|
|
87716
|
+
return "object expected";
|
|
87717
|
+
if (message["export"] != null && message.hasOwnProperty("export")) {
|
|
87718
|
+
var error = $root.replit.goval.api.lore.ReplExport.verify(message["export"]);
|
|
87719
|
+
if (error)
|
|
87720
|
+
return "export." + error;
|
|
87721
|
+
}
|
|
87722
|
+
return null;
|
|
87723
|
+
};
|
|
87724
|
+
|
|
87725
|
+
/**
|
|
87726
|
+
* Creates an ExportReplResponse message from a plain object. Also converts values to their respective internal types.
|
|
87727
|
+
* @function fromObject
|
|
87728
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87729
|
+
* @static
|
|
87730
|
+
* @param {Object.<string,*>} object Plain object
|
|
87731
|
+
* @returns {replit.goval.api.lore.ExportReplResponse} ExportReplResponse
|
|
87732
|
+
*/
|
|
87733
|
+
ExportReplResponse.fromObject = function fromObject(object) {
|
|
87734
|
+
if (object instanceof $root.replit.goval.api.lore.ExportReplResponse)
|
|
87735
|
+
return object;
|
|
87736
|
+
var message = new $root.replit.goval.api.lore.ExportReplResponse();
|
|
87737
|
+
if (object["export"] != null) {
|
|
87738
|
+
if (typeof object["export"] !== "object")
|
|
87739
|
+
throw TypeError(".replit.goval.api.lore.ExportReplResponse.export: object expected");
|
|
87740
|
+
message["export"] = $root.replit.goval.api.lore.ReplExport.fromObject(object["export"]);
|
|
87741
|
+
}
|
|
87742
|
+
return message;
|
|
87743
|
+
};
|
|
87744
|
+
|
|
87745
|
+
/**
|
|
87746
|
+
* Creates a plain object from an ExportReplResponse message. Also converts values to other types if specified.
|
|
87747
|
+
* @function toObject
|
|
87748
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87749
|
+
* @static
|
|
87750
|
+
* @param {replit.goval.api.lore.ExportReplResponse} message ExportReplResponse
|
|
87751
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
87752
|
+
* @returns {Object.<string,*>} Plain object
|
|
87753
|
+
*/
|
|
87754
|
+
ExportReplResponse.toObject = function toObject(message, options) {
|
|
87755
|
+
if (!options)
|
|
87756
|
+
options = {};
|
|
87757
|
+
var object = {};
|
|
87758
|
+
if (options.defaults)
|
|
87759
|
+
object["export"] = null;
|
|
87760
|
+
if (message["export"] != null && message.hasOwnProperty("export"))
|
|
87761
|
+
object["export"] = $root.replit.goval.api.lore.ReplExport.toObject(message["export"], options);
|
|
87762
|
+
return object;
|
|
87763
|
+
};
|
|
87764
|
+
|
|
87765
|
+
/**
|
|
87766
|
+
* Converts this ExportReplResponse to JSON.
|
|
87767
|
+
* @function toJSON
|
|
87768
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87769
|
+
* @instance
|
|
87770
|
+
* @returns {Object.<string,*>} JSON object
|
|
87771
|
+
*/
|
|
87772
|
+
ExportReplResponse.prototype.toJSON = function toJSON() {
|
|
87773
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
87774
|
+
};
|
|
87775
|
+
|
|
87776
|
+
/**
|
|
87777
|
+
* Gets the default type url for ExportReplResponse
|
|
87778
|
+
* @function getTypeUrl
|
|
87779
|
+
* @memberof replit.goval.api.lore.ExportReplResponse
|
|
87780
|
+
* @static
|
|
87781
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
87782
|
+
* @returns {string} The default type url
|
|
87783
|
+
*/
|
|
87784
|
+
ExportReplResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87785
|
+
if (typeUrlPrefix === undefined) {
|
|
87786
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
87787
|
+
}
|
|
87788
|
+
return typeUrlPrefix + "/replit.goval.api.lore.ExportReplResponse";
|
|
87789
|
+
};
|
|
87790
|
+
|
|
87791
|
+
return ExportReplResponse;
|
|
87792
|
+
})();
|
|
87793
|
+
|
|
87794
|
+
lore.ImportReplRequest = (function() {
|
|
87795
|
+
|
|
87796
|
+
/**
|
|
87797
|
+
* Properties of an ImportReplRequest.
|
|
87798
|
+
* @memberof replit.goval.api.lore
|
|
87799
|
+
* @interface IImportReplRequest
|
|
87800
|
+
* @property {string|null} [replId] ImportReplRequest replId
|
|
87801
|
+
* @property {string|null} [username] ImportReplRequest username
|
|
87802
|
+
* @property {string|null} [slug] ImportReplRequest slug
|
|
87803
|
+
* @property {replit.goval.api.lore.ReplLocation|replit.goval.api.lore.IReplLocation|null} [replLocation] ImportReplRequest replLocation
|
|
87804
|
+
* @property {replit.goval.api.lore.ReplExport|replit.goval.api.lore.IReplExport|null} ["export"] ImportReplRequest export
|
|
87805
|
+
*/
|
|
87806
|
+
|
|
87807
|
+
/**
|
|
87808
|
+
* Constructs a new ImportReplRequest.
|
|
87809
|
+
* @memberof replit.goval.api.lore
|
|
87810
|
+
* @classdesc Represents an ImportReplRequest.
|
|
87811
|
+
* @constructor
|
|
87812
|
+
* @param {replit.goval.api.lore.IImportReplRequest=} [properties] Properties to set
|
|
87813
|
+
*/
|
|
87814
|
+
function ImportReplRequest(properties) {
|
|
87815
|
+
if (properties)
|
|
87816
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
87817
|
+
if (properties[keys[i]] != null)
|
|
87818
|
+
this[keys[i]] = properties[keys[i]];
|
|
87819
|
+
}
|
|
87820
|
+
|
|
87821
|
+
/**
|
|
87822
|
+
* ImportReplRequest replId.
|
|
87823
|
+
* @member {string} replId
|
|
87824
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87825
|
+
* @instance
|
|
87826
|
+
*/
|
|
87827
|
+
ImportReplRequest.prototype.replId = "";
|
|
87828
|
+
|
|
87829
|
+
/**
|
|
87830
|
+
* ImportReplRequest username.
|
|
87831
|
+
* @member {string} username
|
|
87832
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87833
|
+
* @instance
|
|
87834
|
+
*/
|
|
87835
|
+
ImportReplRequest.prototype.username = "";
|
|
87836
|
+
|
|
87837
|
+
/**
|
|
87838
|
+
* ImportReplRequest slug.
|
|
87839
|
+
* @member {string} slug
|
|
87840
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87841
|
+
* @instance
|
|
87842
|
+
*/
|
|
87843
|
+
ImportReplRequest.prototype.slug = "";
|
|
87844
|
+
|
|
87845
|
+
/**
|
|
87846
|
+
* ImportReplRequest replLocation.
|
|
87847
|
+
* @member {replit.goval.api.lore.ReplLocation|null|undefined} replLocation
|
|
87848
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87849
|
+
* @instance
|
|
87850
|
+
*/
|
|
87851
|
+
ImportReplRequest.prototype.replLocation = null;
|
|
87852
|
+
|
|
87853
|
+
/**
|
|
87854
|
+
* ImportReplRequest export.
|
|
87855
|
+
* @member {replit.goval.api.lore.ReplExport|null|undefined} export
|
|
87856
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87857
|
+
* @instance
|
|
87858
|
+
*/
|
|
87859
|
+
ImportReplRequest.prototype["export"] = null;
|
|
87860
|
+
|
|
87861
|
+
/**
|
|
87862
|
+
* Creates a new ImportReplRequest instance using the specified properties.
|
|
87863
|
+
* @function create
|
|
87864
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87865
|
+
* @static
|
|
87866
|
+
* @param {replit.goval.api.lore.IImportReplRequest=} [properties] Properties to set
|
|
87867
|
+
* @returns {replit.goval.api.lore.ImportReplRequest} ImportReplRequest instance
|
|
87868
|
+
*/
|
|
87869
|
+
ImportReplRequest.create = function create(properties) {
|
|
87870
|
+
return ImportReplRequest.fromObject(properties);
|
|
87871
|
+
};
|
|
87872
|
+
|
|
87873
|
+
/**
|
|
87874
|
+
* Encodes the specified ImportReplRequest message. Does not implicitly {@link replit.goval.api.lore.ImportReplRequest.verify|verify} messages.
|
|
87875
|
+
* @function encode
|
|
87876
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87877
|
+
* @static
|
|
87878
|
+
* @param {replit.goval.api.lore.ImportReplRequest} message ImportReplRequest message or plain object to encode
|
|
87879
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87880
|
+
* @returns {$protobuf.Writer} Writer
|
|
87881
|
+
*/
|
|
87882
|
+
ImportReplRequest.encode = function encode(message, writer) {
|
|
87883
|
+
if (!writer)
|
|
87884
|
+
writer = $Writer.create();
|
|
87885
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
87886
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
87887
|
+
if (message.username != null && Object.hasOwnProperty.call(message, "username"))
|
|
87888
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.username);
|
|
87889
|
+
if (message.slug != null && Object.hasOwnProperty.call(message, "slug"))
|
|
87890
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
|
|
87891
|
+
if (message.replLocation != null && Object.hasOwnProperty.call(message, "replLocation"))
|
|
87892
|
+
$root.replit.goval.api.lore.ReplLocation.encode(message.replLocation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
87893
|
+
if (message["export"] != null && Object.hasOwnProperty.call(message, "export"))
|
|
87894
|
+
$root.replit.goval.api.lore.ReplExport.encode(message["export"], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
87895
|
+
return writer;
|
|
87896
|
+
};
|
|
87897
|
+
|
|
87898
|
+
/**
|
|
87899
|
+
* Encodes the specified ImportReplRequest message, length delimited. Does not implicitly {@link replit.goval.api.lore.ImportReplRequest.verify|verify} messages.
|
|
87900
|
+
* @function encodeDelimited
|
|
87901
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87902
|
+
* @static
|
|
87903
|
+
* @param {replit.goval.api.lore.ImportReplRequest} message ImportReplRequest message or plain object to encode
|
|
87904
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
87905
|
+
* @returns {$protobuf.Writer} Writer
|
|
87906
|
+
*/
|
|
87907
|
+
ImportReplRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
87908
|
+
return this.encode(message, writer).ldelim();
|
|
87909
|
+
};
|
|
87910
|
+
|
|
87911
|
+
/**
|
|
87912
|
+
* Decodes an ImportReplRequest message from the specified reader or buffer.
|
|
87913
|
+
* @function decode
|
|
87914
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87915
|
+
* @static
|
|
87916
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87917
|
+
* @param {number} [length] Message length if known beforehand
|
|
87918
|
+
* @returns {replit.goval.api.lore.ImportReplRequest} ImportReplRequest
|
|
87919
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87920
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87921
|
+
*/
|
|
87922
|
+
ImportReplRequest.decode = function decode(reader, length) {
|
|
87923
|
+
if (!(reader instanceof $Reader))
|
|
87924
|
+
reader = $Reader.create(reader);
|
|
87925
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.ImportReplRequest();
|
|
87926
|
+
while (reader.pos < end) {
|
|
87927
|
+
var tag = reader.uint32();
|
|
87928
|
+
switch (tag >>> 3) {
|
|
87929
|
+
case 1: {
|
|
87930
|
+
message.replId = reader.string();
|
|
87931
|
+
break;
|
|
87932
|
+
}
|
|
87933
|
+
case 2: {
|
|
87934
|
+
message.username = reader.string();
|
|
87935
|
+
break;
|
|
87936
|
+
}
|
|
87937
|
+
case 3: {
|
|
87938
|
+
message.slug = reader.string();
|
|
87939
|
+
break;
|
|
87940
|
+
}
|
|
87941
|
+
case 4: {
|
|
87942
|
+
message.replLocation = $root.replit.goval.api.lore.ReplLocation.decode(reader, reader.uint32());
|
|
87943
|
+
break;
|
|
87944
|
+
}
|
|
87945
|
+
case 5: {
|
|
87946
|
+
message["export"] = $root.replit.goval.api.lore.ReplExport.decode(reader, reader.uint32());
|
|
87947
|
+
break;
|
|
87948
|
+
}
|
|
87949
|
+
default:
|
|
87950
|
+
reader.skipType(tag & 7);
|
|
87951
|
+
break;
|
|
87952
|
+
}
|
|
87953
|
+
}
|
|
87954
|
+
return message;
|
|
87955
|
+
};
|
|
87956
|
+
|
|
87957
|
+
/**
|
|
87958
|
+
* Decodes an ImportReplRequest message from the specified reader or buffer, length delimited.
|
|
87959
|
+
* @function decodeDelimited
|
|
87960
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87961
|
+
* @static
|
|
87962
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
87963
|
+
* @returns {replit.goval.api.lore.ImportReplRequest} ImportReplRequest
|
|
87964
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
87965
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
87966
|
+
*/
|
|
87967
|
+
ImportReplRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
87968
|
+
if (!(reader instanceof $Reader))
|
|
87969
|
+
reader = new $Reader(reader);
|
|
87970
|
+
return this.decode(reader, reader.uint32());
|
|
87971
|
+
};
|
|
87972
|
+
|
|
87973
|
+
/**
|
|
87974
|
+
* Verifies an ImportReplRequest message.
|
|
87975
|
+
* @function verify
|
|
87976
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
87977
|
+
* @static
|
|
87978
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
87979
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
87980
|
+
*/
|
|
87981
|
+
ImportReplRequest.verify = function verify(message) {
|
|
87982
|
+
if (typeof message !== "object" || message === null)
|
|
87983
|
+
return "object expected";
|
|
87984
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
87985
|
+
if (!$util.isString(message.replId))
|
|
87986
|
+
return "replId: string expected";
|
|
87987
|
+
if (message.username != null && message.hasOwnProperty("username"))
|
|
87988
|
+
if (!$util.isString(message.username))
|
|
87989
|
+
return "username: string expected";
|
|
87990
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
87991
|
+
if (!$util.isString(message.slug))
|
|
87992
|
+
return "slug: string expected";
|
|
87993
|
+
if (message.replLocation != null && message.hasOwnProperty("replLocation")) {
|
|
87994
|
+
var error = $root.replit.goval.api.lore.ReplLocation.verify(message.replLocation);
|
|
87995
|
+
if (error)
|
|
87996
|
+
return "replLocation." + error;
|
|
87997
|
+
}
|
|
87998
|
+
if (message["export"] != null && message.hasOwnProperty("export")) {
|
|
87999
|
+
var error = $root.replit.goval.api.lore.ReplExport.verify(message["export"]);
|
|
88000
|
+
if (error)
|
|
88001
|
+
return "export." + error;
|
|
88002
|
+
}
|
|
88003
|
+
return null;
|
|
88004
|
+
};
|
|
88005
|
+
|
|
88006
|
+
/**
|
|
88007
|
+
* Creates an ImportReplRequest message from a plain object. Also converts values to their respective internal types.
|
|
88008
|
+
* @function fromObject
|
|
88009
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
88010
|
+
* @static
|
|
88011
|
+
* @param {Object.<string,*>} object Plain object
|
|
88012
|
+
* @returns {replit.goval.api.lore.ImportReplRequest} ImportReplRequest
|
|
88013
|
+
*/
|
|
88014
|
+
ImportReplRequest.fromObject = function fromObject(object) {
|
|
88015
|
+
if (object instanceof $root.replit.goval.api.lore.ImportReplRequest)
|
|
88016
|
+
return object;
|
|
88017
|
+
var message = new $root.replit.goval.api.lore.ImportReplRequest();
|
|
88018
|
+
if (object.replId != null)
|
|
88019
|
+
message.replId = String(object.replId);
|
|
88020
|
+
if (object.username != null)
|
|
88021
|
+
message.username = String(object.username);
|
|
88022
|
+
if (object.slug != null)
|
|
88023
|
+
message.slug = String(object.slug);
|
|
88024
|
+
if (object.replLocation != null) {
|
|
88025
|
+
if (typeof object.replLocation !== "object")
|
|
88026
|
+
throw TypeError(".replit.goval.api.lore.ImportReplRequest.replLocation: object expected");
|
|
88027
|
+
message.replLocation = $root.replit.goval.api.lore.ReplLocation.fromObject(object.replLocation);
|
|
88028
|
+
}
|
|
88029
|
+
if (object["export"] != null) {
|
|
88030
|
+
if (typeof object["export"] !== "object")
|
|
88031
|
+
throw TypeError(".replit.goval.api.lore.ImportReplRequest.export: object expected");
|
|
88032
|
+
message["export"] = $root.replit.goval.api.lore.ReplExport.fromObject(object["export"]);
|
|
88033
|
+
}
|
|
88034
|
+
return message;
|
|
88035
|
+
};
|
|
88036
|
+
|
|
88037
|
+
/**
|
|
88038
|
+
* Creates a plain object from an ImportReplRequest message. Also converts values to other types if specified.
|
|
88039
|
+
* @function toObject
|
|
88040
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
88041
|
+
* @static
|
|
88042
|
+
* @param {replit.goval.api.lore.ImportReplRequest} message ImportReplRequest
|
|
88043
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88044
|
+
* @returns {Object.<string,*>} Plain object
|
|
88045
|
+
*/
|
|
88046
|
+
ImportReplRequest.toObject = function toObject(message, options) {
|
|
88047
|
+
if (!options)
|
|
88048
|
+
options = {};
|
|
88049
|
+
var object = {};
|
|
88050
|
+
if (options.defaults) {
|
|
88051
|
+
object.replId = "";
|
|
88052
|
+
object.username = "";
|
|
88053
|
+
object.slug = "";
|
|
88054
|
+
object.replLocation = null;
|
|
88055
|
+
object["export"] = null;
|
|
88056
|
+
}
|
|
88057
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
88058
|
+
object.replId = message.replId;
|
|
88059
|
+
if (message.username != null && message.hasOwnProperty("username"))
|
|
88060
|
+
object.username = message.username;
|
|
88061
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
88062
|
+
object.slug = message.slug;
|
|
88063
|
+
if (message.replLocation != null && message.hasOwnProperty("replLocation"))
|
|
88064
|
+
object.replLocation = $root.replit.goval.api.lore.ReplLocation.toObject(message.replLocation, options);
|
|
88065
|
+
if (message["export"] != null && message.hasOwnProperty("export"))
|
|
88066
|
+
object["export"] = $root.replit.goval.api.lore.ReplExport.toObject(message["export"], options);
|
|
88067
|
+
return object;
|
|
88068
|
+
};
|
|
88069
|
+
|
|
88070
|
+
/**
|
|
88071
|
+
* Converts this ImportReplRequest to JSON.
|
|
88072
|
+
* @function toJSON
|
|
88073
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
88074
|
+
* @instance
|
|
88075
|
+
* @returns {Object.<string,*>} JSON object
|
|
88076
|
+
*/
|
|
88077
|
+
ImportReplRequest.prototype.toJSON = function toJSON() {
|
|
88078
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88079
|
+
};
|
|
88080
|
+
|
|
88081
|
+
/**
|
|
88082
|
+
* Gets the default type url for ImportReplRequest
|
|
88083
|
+
* @function getTypeUrl
|
|
88084
|
+
* @memberof replit.goval.api.lore.ImportReplRequest
|
|
88085
|
+
* @static
|
|
88086
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
88087
|
+
* @returns {string} The default type url
|
|
88088
|
+
*/
|
|
88089
|
+
ImportReplRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
88090
|
+
if (typeUrlPrefix === undefined) {
|
|
88091
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
88092
|
+
}
|
|
88093
|
+
return typeUrlPrefix + "/replit.goval.api.lore.ImportReplRequest";
|
|
88094
|
+
};
|
|
88095
|
+
|
|
88096
|
+
return ImportReplRequest;
|
|
88097
|
+
})();
|
|
88098
|
+
|
|
88099
|
+
lore.ImportReplResponse = (function() {
|
|
88100
|
+
|
|
88101
|
+
/**
|
|
88102
|
+
* Properties of an ImportReplResponse.
|
|
88103
|
+
* @memberof replit.goval.api.lore
|
|
88104
|
+
* @interface IImportReplResponse
|
|
88105
|
+
* @property {replit.goval.api.lore.Repl|replit.goval.api.lore.IRepl|null} [repl] ImportReplResponse repl
|
|
88106
|
+
* @property {replit.goval.api.lore.Cluster|replit.goval.api.lore.ICluster|null} [cluster] ImportReplResponse cluster
|
|
88107
|
+
* @property {replit.goval.api.lore.Buckets|replit.goval.api.lore.IBuckets|null} [buckets] ImportReplResponse buckets
|
|
88108
|
+
*/
|
|
88109
|
+
|
|
88110
|
+
/**
|
|
88111
|
+
* Constructs a new ImportReplResponse.
|
|
88112
|
+
* @memberof replit.goval.api.lore
|
|
88113
|
+
* @classdesc Represents an ImportReplResponse.
|
|
88114
|
+
* @constructor
|
|
88115
|
+
* @param {replit.goval.api.lore.IImportReplResponse=} [properties] Properties to set
|
|
88116
|
+
*/
|
|
88117
|
+
function ImportReplResponse(properties) {
|
|
88118
|
+
if (properties)
|
|
88119
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
88120
|
+
if (properties[keys[i]] != null)
|
|
88121
|
+
this[keys[i]] = properties[keys[i]];
|
|
88122
|
+
}
|
|
88123
|
+
|
|
88124
|
+
/**
|
|
88125
|
+
* ImportReplResponse repl.
|
|
88126
|
+
* @member {replit.goval.api.lore.Repl|null|undefined} repl
|
|
88127
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88128
|
+
* @instance
|
|
88129
|
+
*/
|
|
88130
|
+
ImportReplResponse.prototype.repl = null;
|
|
88131
|
+
|
|
88132
|
+
/**
|
|
88133
|
+
* ImportReplResponse cluster.
|
|
88134
|
+
* @member {replit.goval.api.lore.Cluster|null|undefined} cluster
|
|
88135
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88136
|
+
* @instance
|
|
88137
|
+
*/
|
|
88138
|
+
ImportReplResponse.prototype.cluster = null;
|
|
88139
|
+
|
|
88140
|
+
/**
|
|
88141
|
+
* ImportReplResponse buckets.
|
|
88142
|
+
* @member {replit.goval.api.lore.Buckets|null|undefined} buckets
|
|
88143
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88144
|
+
* @instance
|
|
88145
|
+
*/
|
|
88146
|
+
ImportReplResponse.prototype.buckets = null;
|
|
88147
|
+
|
|
88148
|
+
/**
|
|
88149
|
+
* Creates a new ImportReplResponse instance using the specified properties.
|
|
88150
|
+
* @function create
|
|
88151
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88152
|
+
* @static
|
|
88153
|
+
* @param {replit.goval.api.lore.IImportReplResponse=} [properties] Properties to set
|
|
88154
|
+
* @returns {replit.goval.api.lore.ImportReplResponse} ImportReplResponse instance
|
|
88155
|
+
*/
|
|
88156
|
+
ImportReplResponse.create = function create(properties) {
|
|
88157
|
+
return ImportReplResponse.fromObject(properties);
|
|
88158
|
+
};
|
|
88159
|
+
|
|
88160
|
+
/**
|
|
88161
|
+
* Encodes the specified ImportReplResponse message. Does not implicitly {@link replit.goval.api.lore.ImportReplResponse.verify|verify} messages.
|
|
88162
|
+
* @function encode
|
|
88163
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88164
|
+
* @static
|
|
88165
|
+
* @param {replit.goval.api.lore.ImportReplResponse} message ImportReplResponse message or plain object to encode
|
|
88166
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88167
|
+
* @returns {$protobuf.Writer} Writer
|
|
88168
|
+
*/
|
|
88169
|
+
ImportReplResponse.encode = function encode(message, writer) {
|
|
88170
|
+
if (!writer)
|
|
88171
|
+
writer = $Writer.create();
|
|
88172
|
+
if (message.repl != null && Object.hasOwnProperty.call(message, "repl"))
|
|
88173
|
+
$root.replit.goval.api.lore.Repl.encode(message.repl, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
88174
|
+
if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
|
|
88175
|
+
$root.replit.goval.api.lore.Cluster.encode(message.cluster, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
88176
|
+
if (message.buckets != null && Object.hasOwnProperty.call(message, "buckets"))
|
|
88177
|
+
$root.replit.goval.api.lore.Buckets.encode(message.buckets, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
88178
|
+
return writer;
|
|
88179
|
+
};
|
|
88180
|
+
|
|
88181
|
+
/**
|
|
88182
|
+
* Encodes the specified ImportReplResponse message, length delimited. Does not implicitly {@link replit.goval.api.lore.ImportReplResponse.verify|verify} messages.
|
|
88183
|
+
* @function encodeDelimited
|
|
88184
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88185
|
+
* @static
|
|
88186
|
+
* @param {replit.goval.api.lore.ImportReplResponse} message ImportReplResponse message or plain object to encode
|
|
88187
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
88188
|
+
* @returns {$protobuf.Writer} Writer
|
|
88189
|
+
*/
|
|
88190
|
+
ImportReplResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
88191
|
+
return this.encode(message, writer).ldelim();
|
|
88192
|
+
};
|
|
88193
|
+
|
|
88194
|
+
/**
|
|
88195
|
+
* Decodes an ImportReplResponse message from the specified reader or buffer.
|
|
88196
|
+
* @function decode
|
|
88197
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88198
|
+
* @static
|
|
88199
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88200
|
+
* @param {number} [length] Message length if known beforehand
|
|
88201
|
+
* @returns {replit.goval.api.lore.ImportReplResponse} ImportReplResponse
|
|
88202
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88203
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88204
|
+
*/
|
|
88205
|
+
ImportReplResponse.decode = function decode(reader, length) {
|
|
88206
|
+
if (!(reader instanceof $Reader))
|
|
88207
|
+
reader = $Reader.create(reader);
|
|
88208
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.ImportReplResponse();
|
|
88209
|
+
while (reader.pos < end) {
|
|
88210
|
+
var tag = reader.uint32();
|
|
88211
|
+
switch (tag >>> 3) {
|
|
88212
|
+
case 1: {
|
|
88213
|
+
message.repl = $root.replit.goval.api.lore.Repl.decode(reader, reader.uint32());
|
|
88214
|
+
break;
|
|
88215
|
+
}
|
|
88216
|
+
case 2: {
|
|
88217
|
+
message.cluster = $root.replit.goval.api.lore.Cluster.decode(reader, reader.uint32());
|
|
88218
|
+
break;
|
|
88219
|
+
}
|
|
88220
|
+
case 3: {
|
|
88221
|
+
message.buckets = $root.replit.goval.api.lore.Buckets.decode(reader, reader.uint32());
|
|
88222
|
+
break;
|
|
88223
|
+
}
|
|
88224
|
+
default:
|
|
88225
|
+
reader.skipType(tag & 7);
|
|
88226
|
+
break;
|
|
88227
|
+
}
|
|
88228
|
+
}
|
|
88229
|
+
return message;
|
|
88230
|
+
};
|
|
88231
|
+
|
|
88232
|
+
/**
|
|
88233
|
+
* Decodes an ImportReplResponse message from the specified reader or buffer, length delimited.
|
|
88234
|
+
* @function decodeDelimited
|
|
88235
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88236
|
+
* @static
|
|
88237
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
88238
|
+
* @returns {replit.goval.api.lore.ImportReplResponse} ImportReplResponse
|
|
88239
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
88240
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
88241
|
+
*/
|
|
88242
|
+
ImportReplResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
88243
|
+
if (!(reader instanceof $Reader))
|
|
88244
|
+
reader = new $Reader(reader);
|
|
88245
|
+
return this.decode(reader, reader.uint32());
|
|
88246
|
+
};
|
|
88247
|
+
|
|
88248
|
+
/**
|
|
88249
|
+
* Verifies an ImportReplResponse message.
|
|
88250
|
+
* @function verify
|
|
88251
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88252
|
+
* @static
|
|
88253
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
88254
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
88255
|
+
*/
|
|
88256
|
+
ImportReplResponse.verify = function verify(message) {
|
|
88257
|
+
if (typeof message !== "object" || message === null)
|
|
88258
|
+
return "object expected";
|
|
88259
|
+
if (message.repl != null && message.hasOwnProperty("repl")) {
|
|
88260
|
+
var error = $root.replit.goval.api.lore.Repl.verify(message.repl);
|
|
88261
|
+
if (error)
|
|
88262
|
+
return "repl." + error;
|
|
88263
|
+
}
|
|
88264
|
+
if (message.cluster != null && message.hasOwnProperty("cluster")) {
|
|
88265
|
+
var error = $root.replit.goval.api.lore.Cluster.verify(message.cluster);
|
|
88266
|
+
if (error)
|
|
88267
|
+
return "cluster." + error;
|
|
88268
|
+
}
|
|
88269
|
+
if (message.buckets != null && message.hasOwnProperty("buckets")) {
|
|
88270
|
+
var error = $root.replit.goval.api.lore.Buckets.verify(message.buckets);
|
|
88271
|
+
if (error)
|
|
88272
|
+
return "buckets." + error;
|
|
88273
|
+
}
|
|
88274
|
+
return null;
|
|
88275
|
+
};
|
|
88276
|
+
|
|
88277
|
+
/**
|
|
88278
|
+
* Creates an ImportReplResponse message from a plain object. Also converts values to their respective internal types.
|
|
88279
|
+
* @function fromObject
|
|
88280
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88281
|
+
* @static
|
|
88282
|
+
* @param {Object.<string,*>} object Plain object
|
|
88283
|
+
* @returns {replit.goval.api.lore.ImportReplResponse} ImportReplResponse
|
|
88284
|
+
*/
|
|
88285
|
+
ImportReplResponse.fromObject = function fromObject(object) {
|
|
88286
|
+
if (object instanceof $root.replit.goval.api.lore.ImportReplResponse)
|
|
88287
|
+
return object;
|
|
88288
|
+
var message = new $root.replit.goval.api.lore.ImportReplResponse();
|
|
88289
|
+
if (object.repl != null) {
|
|
88290
|
+
if (typeof object.repl !== "object")
|
|
88291
|
+
throw TypeError(".replit.goval.api.lore.ImportReplResponse.repl: object expected");
|
|
88292
|
+
message.repl = $root.replit.goval.api.lore.Repl.fromObject(object.repl);
|
|
88293
|
+
}
|
|
88294
|
+
if (object.cluster != null) {
|
|
88295
|
+
if (typeof object.cluster !== "object")
|
|
88296
|
+
throw TypeError(".replit.goval.api.lore.ImportReplResponse.cluster: object expected");
|
|
88297
|
+
message.cluster = $root.replit.goval.api.lore.Cluster.fromObject(object.cluster);
|
|
88298
|
+
}
|
|
88299
|
+
if (object.buckets != null) {
|
|
88300
|
+
if (typeof object.buckets !== "object")
|
|
88301
|
+
throw TypeError(".replit.goval.api.lore.ImportReplResponse.buckets: object expected");
|
|
88302
|
+
message.buckets = $root.replit.goval.api.lore.Buckets.fromObject(object.buckets);
|
|
88303
|
+
}
|
|
88304
|
+
return message;
|
|
88305
|
+
};
|
|
88306
|
+
|
|
88307
|
+
/**
|
|
88308
|
+
* Creates a plain object from an ImportReplResponse message. Also converts values to other types if specified.
|
|
88309
|
+
* @function toObject
|
|
88310
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88311
|
+
* @static
|
|
88312
|
+
* @param {replit.goval.api.lore.ImportReplResponse} message ImportReplResponse
|
|
88313
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
88314
|
+
* @returns {Object.<string,*>} Plain object
|
|
88315
|
+
*/
|
|
88316
|
+
ImportReplResponse.toObject = function toObject(message, options) {
|
|
88317
|
+
if (!options)
|
|
88318
|
+
options = {};
|
|
88319
|
+
var object = {};
|
|
88320
|
+
if (options.defaults) {
|
|
88321
|
+
object.repl = null;
|
|
88322
|
+
object.cluster = null;
|
|
88323
|
+
object.buckets = null;
|
|
88324
|
+
}
|
|
88325
|
+
if (message.repl != null && message.hasOwnProperty("repl"))
|
|
88326
|
+
object.repl = $root.replit.goval.api.lore.Repl.toObject(message.repl, options);
|
|
88327
|
+
if (message.cluster != null && message.hasOwnProperty("cluster"))
|
|
88328
|
+
object.cluster = $root.replit.goval.api.lore.Cluster.toObject(message.cluster, options);
|
|
88329
|
+
if (message.buckets != null && message.hasOwnProperty("buckets"))
|
|
88330
|
+
object.buckets = $root.replit.goval.api.lore.Buckets.toObject(message.buckets, options);
|
|
88331
|
+
return object;
|
|
88332
|
+
};
|
|
88333
|
+
|
|
88334
|
+
/**
|
|
88335
|
+
* Converts this ImportReplResponse to JSON.
|
|
88336
|
+
* @function toJSON
|
|
88337
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88338
|
+
* @instance
|
|
88339
|
+
* @returns {Object.<string,*>} JSON object
|
|
88340
|
+
*/
|
|
88341
|
+
ImportReplResponse.prototype.toJSON = function toJSON() {
|
|
88342
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
88343
|
+
};
|
|
88344
|
+
|
|
88345
|
+
/**
|
|
88346
|
+
* Gets the default type url for ImportReplResponse
|
|
88347
|
+
* @function getTypeUrl
|
|
88348
|
+
* @memberof replit.goval.api.lore.ImportReplResponse
|
|
88349
|
+
* @static
|
|
88350
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
88351
|
+
* @returns {string} The default type url
|
|
88352
|
+
*/
|
|
88353
|
+
ImportReplResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
88354
|
+
if (typeUrlPrefix === undefined) {
|
|
88355
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
88356
|
+
}
|
|
88357
|
+
return typeUrlPrefix + "/replit.goval.api.lore.ImportReplResponse";
|
|
88358
|
+
};
|
|
88359
|
+
|
|
88360
|
+
return ImportReplResponse;
|
|
88361
|
+
})();
|
|
88362
|
+
|
|
88363
|
+
lore.Lore = (function() {
|
|
88364
|
+
|
|
88365
|
+
/**
|
|
88366
|
+
* Constructs a new Lore service.
|
|
88367
|
+
* @memberof replit.goval.api.lore
|
|
88368
|
+
* @classdesc Represents a Lore
|
|
88369
|
+
* @extends $protobuf.rpc.Service
|
|
88370
|
+
* @constructor
|
|
88371
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
88372
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
88373
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
88374
|
+
*/
|
|
88375
|
+
function Lore(rpcImpl, requestDelimited, responseDelimited) {
|
|
88376
|
+
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
88377
|
+
}
|
|
88378
|
+
|
|
88379
|
+
(Lore.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = Lore;
|
|
88380
|
+
|
|
88381
|
+
/**
|
|
88382
|
+
* Creates new Lore service using the specified rpc implementation.
|
|
88383
|
+
* @function create
|
|
88384
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88385
|
+
* @static
|
|
88386
|
+
* @param {$protobuf.RPCImpl} rpcImpl RPC implementation
|
|
88387
|
+
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
88388
|
+
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
88389
|
+
* @returns {Lore} RPC service. Useful where requests and/or responses are streamed.
|
|
88390
|
+
*/
|
|
88391
|
+
Lore.create = function create(rpcImpl, requestDelimited, responseDelimited) {
|
|
88392
|
+
return new this(rpcImpl, requestDelimited, responseDelimited);
|
|
88393
|
+
};
|
|
88394
|
+
|
|
88395
|
+
/**
|
|
88396
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#createRepl}.
|
|
88397
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88398
|
+
* @typedef CreateReplCallback
|
|
88399
|
+
* @type {function}
|
|
88400
|
+
* @param {Error|null} error Error, if any
|
|
88401
|
+
* @param {replit.goval.api.lore.CreateReplResponse} [response] CreateReplResponse
|
|
88402
|
+
*/
|
|
88403
|
+
|
|
88404
|
+
/**
|
|
88405
|
+
* Calls CreateRepl.
|
|
88406
|
+
* @function createRepl
|
|
88407
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88408
|
+
* @instance
|
|
88409
|
+
* @param {replit.goval.api.lore.CreateReplRequest} request CreateReplRequest message or plain object
|
|
88410
|
+
* @param {replit.goval.api.lore.Lore.CreateReplCallback} callback Node-style callback called with the error, if any, and CreateReplResponse
|
|
88411
|
+
* @returns {undefined}
|
|
88412
|
+
* @variation 1
|
|
88413
|
+
*/
|
|
88414
|
+
Object.defineProperty(Lore.prototype.createRepl = function createRepl(request, callback) {
|
|
88415
|
+
return this.rpcCall(createRepl, $root.replit.goval.api.lore.CreateReplRequest, $root.replit.goval.api.lore.CreateReplResponse, request, callback);
|
|
88416
|
+
}, "name", { value: "CreateRepl" });
|
|
88417
|
+
|
|
88418
|
+
/**
|
|
88419
|
+
* Calls CreateRepl.
|
|
88420
|
+
* @function createRepl
|
|
88421
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88422
|
+
* @instance
|
|
88423
|
+
* @param {replit.goval.api.lore.CreateReplRequest} request CreateReplRequest message or plain object
|
|
88424
|
+
* @returns {Promise<replit.goval.api.lore.CreateReplResponse>} Promise
|
|
88425
|
+
* @variation 2
|
|
88426
|
+
*/
|
|
88427
|
+
|
|
88428
|
+
/**
|
|
88429
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#getRepl}.
|
|
88430
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88431
|
+
* @typedef GetReplCallback
|
|
88432
|
+
* @type {function}
|
|
88433
|
+
* @param {Error|null} error Error, if any
|
|
88434
|
+
* @param {replit.goval.api.lore.GetReplResponse} [response] GetReplResponse
|
|
88435
|
+
*/
|
|
88436
|
+
|
|
88437
|
+
/**
|
|
88438
|
+
* Calls GetRepl.
|
|
88439
|
+
* @function getRepl
|
|
88440
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88441
|
+
* @instance
|
|
88442
|
+
* @param {replit.goval.api.lore.GetReplRequest} request GetReplRequest message or plain object
|
|
88443
|
+
* @param {replit.goval.api.lore.Lore.GetReplCallback} callback Node-style callback called with the error, if any, and GetReplResponse
|
|
88444
|
+
* @returns {undefined}
|
|
88445
|
+
* @variation 1
|
|
88446
|
+
*/
|
|
88447
|
+
Object.defineProperty(Lore.prototype.getRepl = function getRepl(request, callback) {
|
|
88448
|
+
return this.rpcCall(getRepl, $root.replit.goval.api.lore.GetReplRequest, $root.replit.goval.api.lore.GetReplResponse, request, callback);
|
|
88449
|
+
}, "name", { value: "GetRepl" });
|
|
88450
|
+
|
|
88451
|
+
/**
|
|
88452
|
+
* Calls GetRepl.
|
|
88453
|
+
* @function getRepl
|
|
88454
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88455
|
+
* @instance
|
|
88456
|
+
* @param {replit.goval.api.lore.GetReplRequest} request GetReplRequest message or plain object
|
|
88457
|
+
* @returns {Promise<replit.goval.api.lore.GetReplResponse>} Promise
|
|
88458
|
+
* @variation 2
|
|
88459
|
+
*/
|
|
88460
|
+
|
|
88461
|
+
/**
|
|
88462
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#getReplConnectionInfo}.
|
|
88463
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88464
|
+
* @typedef GetReplConnectionInfoCallback
|
|
88465
|
+
* @type {function}
|
|
88466
|
+
* @param {Error|null} error Error, if any
|
|
88467
|
+
* @param {replit.goval.api.lore.GetReplConnectionInfoResponse} [response] GetReplConnectionInfoResponse
|
|
88468
|
+
*/
|
|
88469
|
+
|
|
88470
|
+
/**
|
|
88471
|
+
* Calls GetReplConnectionInfo.
|
|
88472
|
+
* @function getReplConnectionInfo
|
|
88473
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88474
|
+
* @instance
|
|
88475
|
+
* @param {replit.goval.api.lore.GetReplConnectionInfoRequest} request GetReplConnectionInfoRequest message or plain object
|
|
88476
|
+
* @param {replit.goval.api.lore.Lore.GetReplConnectionInfoCallback} callback Node-style callback called with the error, if any, and GetReplConnectionInfoResponse
|
|
88477
|
+
* @returns {undefined}
|
|
88478
|
+
* @variation 1
|
|
88479
|
+
*/
|
|
88480
|
+
Object.defineProperty(Lore.prototype.getReplConnectionInfo = function getReplConnectionInfo(request, callback) {
|
|
88481
|
+
return this.rpcCall(getReplConnectionInfo, $root.replit.goval.api.lore.GetReplConnectionInfoRequest, $root.replit.goval.api.lore.GetReplConnectionInfoResponse, request, callback);
|
|
88482
|
+
}, "name", { value: "GetReplConnectionInfo" });
|
|
88483
|
+
|
|
88484
|
+
/**
|
|
88485
|
+
* Calls GetReplConnectionInfo.
|
|
88486
|
+
* @function getReplConnectionInfo
|
|
88487
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88488
|
+
* @instance
|
|
88489
|
+
* @param {replit.goval.api.lore.GetReplConnectionInfoRequest} request GetReplConnectionInfoRequest message or plain object
|
|
88490
|
+
* @returns {Promise<replit.goval.api.lore.GetReplConnectionInfoResponse>} Promise
|
|
88491
|
+
* @variation 2
|
|
88492
|
+
*/
|
|
88493
|
+
|
|
88494
|
+
/**
|
|
88495
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#getTransferStatus}.
|
|
88496
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88497
|
+
* @typedef GetTransferStatusCallback
|
|
88498
|
+
* @type {function}
|
|
88499
|
+
* @param {Error|null} error Error, if any
|
|
88500
|
+
* @param {replit.goval.api.lore.GetTransferStatusResponse} [response] GetTransferStatusResponse
|
|
88501
|
+
*/
|
|
88502
|
+
|
|
88503
|
+
/**
|
|
88504
|
+
* Calls GetTransferStatus.
|
|
88505
|
+
* @function getTransferStatus
|
|
88506
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88507
|
+
* @instance
|
|
88508
|
+
* @param {replit.goval.api.lore.GetTransferStatusRequest} request GetTransferStatusRequest message or plain object
|
|
88509
|
+
* @param {replit.goval.api.lore.Lore.GetTransferStatusCallback} callback Node-style callback called with the error, if any, and GetTransferStatusResponse
|
|
88510
|
+
* @returns {undefined}
|
|
88511
|
+
* @variation 1
|
|
88512
|
+
*/
|
|
88513
|
+
Object.defineProperty(Lore.prototype.getTransferStatus = function getTransferStatus(request, callback) {
|
|
88514
|
+
return this.rpcCall(getTransferStatus, $root.replit.goval.api.lore.GetTransferStatusRequest, $root.replit.goval.api.lore.GetTransferStatusResponse, request, callback);
|
|
88515
|
+
}, "name", { value: "GetTransferStatus" });
|
|
88516
|
+
|
|
88517
|
+
/**
|
|
88518
|
+
* Calls GetTransferStatus.
|
|
88519
|
+
* @function getTransferStatus
|
|
88520
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88521
|
+
* @instance
|
|
88522
|
+
* @param {replit.goval.api.lore.GetTransferStatusRequest} request GetTransferStatusRequest message or plain object
|
|
88523
|
+
* @returns {Promise<replit.goval.api.lore.GetTransferStatusResponse>} Promise
|
|
88524
|
+
* @variation 2
|
|
88525
|
+
*/
|
|
88526
|
+
|
|
88527
|
+
/**
|
|
88528
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#transferRepls}.
|
|
88529
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88530
|
+
* @typedef TransferReplsCallback
|
|
88531
|
+
* @type {function}
|
|
88532
|
+
* @param {Error|null} error Error, if any
|
|
88533
|
+
* @param {replit.goval.api.lore.TransferReplsResponse} [response] TransferReplsResponse
|
|
88534
|
+
*/
|
|
88535
|
+
|
|
88536
|
+
/**
|
|
88537
|
+
* Calls TransferRepls.
|
|
88538
|
+
* @function transferRepls
|
|
88539
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88540
|
+
* @instance
|
|
88541
|
+
* @param {replit.goval.api.lore.TransferReplsRequest} request TransferReplsRequest message or plain object
|
|
88542
|
+
* @param {replit.goval.api.lore.Lore.TransferReplsCallback} callback Node-style callback called with the error, if any, and TransferReplsResponse
|
|
88543
|
+
* @returns {undefined}
|
|
88544
|
+
* @variation 1
|
|
88545
|
+
*/
|
|
88546
|
+
Object.defineProperty(Lore.prototype.transferRepls = function transferRepls(request, callback) {
|
|
88547
|
+
return this.rpcCall(transferRepls, $root.replit.goval.api.lore.TransferReplsRequest, $root.replit.goval.api.lore.TransferReplsResponse, request, callback);
|
|
88548
|
+
}, "name", { value: "TransferRepls" });
|
|
88549
|
+
|
|
88550
|
+
/**
|
|
88551
|
+
* Calls TransferRepls.
|
|
88552
|
+
* @function transferRepls
|
|
88553
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88554
|
+
* @instance
|
|
88555
|
+
* @param {replit.goval.api.lore.TransferReplsRequest} request TransferReplsRequest message or plain object
|
|
88556
|
+
* @returns {Promise<replit.goval.api.lore.TransferReplsResponse>} Promise
|
|
88557
|
+
* @variation 2
|
|
88558
|
+
*/
|
|
88559
|
+
|
|
88560
|
+
/**
|
|
88561
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#transferUser}.
|
|
88562
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88563
|
+
* @typedef TransferUserCallback
|
|
88564
|
+
* @type {function}
|
|
88565
|
+
* @param {Error|null} error Error, if any
|
|
88566
|
+
* @param {replit.goval.api.lore.TransferUserResponse} [response] TransferUserResponse
|
|
88567
|
+
*/
|
|
88568
|
+
|
|
88569
|
+
/**
|
|
88570
|
+
* Calls TransferUser.
|
|
88571
|
+
* @function transferUser
|
|
88572
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88573
|
+
* @instance
|
|
88574
|
+
* @param {replit.goval.api.lore.TransferUserRequest} request TransferUserRequest message or plain object
|
|
88575
|
+
* @param {replit.goval.api.lore.Lore.TransferUserCallback} callback Node-style callback called with the error, if any, and TransferUserResponse
|
|
88576
|
+
* @returns {undefined}
|
|
88577
|
+
* @variation 1
|
|
88578
|
+
*/
|
|
88579
|
+
Object.defineProperty(Lore.prototype.transferUser = function transferUser(request, callback) {
|
|
88580
|
+
return this.rpcCall(transferUser, $root.replit.goval.api.lore.TransferUserRequest, $root.replit.goval.api.lore.TransferUserResponse, request, callback);
|
|
88581
|
+
}, "name", { value: "TransferUser" });
|
|
88582
|
+
|
|
88583
|
+
/**
|
|
88584
|
+
* Calls TransferUser.
|
|
88585
|
+
* @function transferUser
|
|
88586
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88587
|
+
* @instance
|
|
88588
|
+
* @param {replit.goval.api.lore.TransferUserRequest} request TransferUserRequest message or plain object
|
|
88589
|
+
* @returns {Promise<replit.goval.api.lore.TransferUserResponse>} Promise
|
|
88590
|
+
* @variation 2
|
|
88591
|
+
*/
|
|
88592
|
+
|
|
88593
|
+
/**
|
|
88594
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#takedownRepl}.
|
|
88595
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88596
|
+
* @typedef TakedownReplCallback
|
|
88597
|
+
* @type {function}
|
|
88598
|
+
* @param {Error|null} error Error, if any
|
|
88599
|
+
* @param {replit.goval.api.lore.TakedownReplResponse} [response] TakedownReplResponse
|
|
88600
|
+
*/
|
|
88601
|
+
|
|
88602
|
+
/**
|
|
88603
|
+
* Calls TakedownRepl.
|
|
88604
|
+
* @function takedownRepl
|
|
88605
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88606
|
+
* @instance
|
|
88607
|
+
* @param {replit.goval.api.lore.TakedownReplRequest} request TakedownReplRequest message or plain object
|
|
88608
|
+
* @param {replit.goval.api.lore.Lore.TakedownReplCallback} callback Node-style callback called with the error, if any, and TakedownReplResponse
|
|
88609
|
+
* @returns {undefined}
|
|
88610
|
+
* @variation 1
|
|
88611
|
+
*/
|
|
88612
|
+
Object.defineProperty(Lore.prototype.takedownRepl = function takedownRepl(request, callback) {
|
|
88613
|
+
return this.rpcCall(takedownRepl, $root.replit.goval.api.lore.TakedownReplRequest, $root.replit.goval.api.lore.TakedownReplResponse, request, callback);
|
|
88614
|
+
}, "name", { value: "TakedownRepl" });
|
|
88615
|
+
|
|
88616
|
+
/**
|
|
88617
|
+
* Calls TakedownRepl.
|
|
88618
|
+
* @function takedownRepl
|
|
88619
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88620
|
+
* @instance
|
|
88621
|
+
* @param {replit.goval.api.lore.TakedownReplRequest} request TakedownReplRequest message or plain object
|
|
88622
|
+
* @returns {Promise<replit.goval.api.lore.TakedownReplResponse>} Promise
|
|
88623
|
+
* @variation 2
|
|
88624
|
+
*/
|
|
88625
|
+
|
|
88626
|
+
/**
|
|
88627
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#softTakedownRepl}.
|
|
88628
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88629
|
+
* @typedef SoftTakedownReplCallback
|
|
88630
|
+
* @type {function}
|
|
88631
|
+
* @param {Error|null} error Error, if any
|
|
88632
|
+
* @param {replit.goval.api.lore.SoftTakedownReplResponse} [response] SoftTakedownReplResponse
|
|
88633
|
+
*/
|
|
88634
|
+
|
|
88635
|
+
/**
|
|
88636
|
+
* Calls SoftTakedownRepl.
|
|
88637
|
+
* @function softTakedownRepl
|
|
88638
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88639
|
+
* @instance
|
|
88640
|
+
* @param {replit.goval.api.lore.SoftTakedownReplRequest} request SoftTakedownReplRequest message or plain object
|
|
88641
|
+
* @param {replit.goval.api.lore.Lore.SoftTakedownReplCallback} callback Node-style callback called with the error, if any, and SoftTakedownReplResponse
|
|
88642
|
+
* @returns {undefined}
|
|
88643
|
+
* @variation 1
|
|
88644
|
+
*/
|
|
88645
|
+
Object.defineProperty(Lore.prototype.softTakedownRepl = function softTakedownRepl(request, callback) {
|
|
88646
|
+
return this.rpcCall(softTakedownRepl, $root.replit.goval.api.lore.SoftTakedownReplRequest, $root.replit.goval.api.lore.SoftTakedownReplResponse, request, callback);
|
|
88647
|
+
}, "name", { value: "SoftTakedownRepl" });
|
|
88648
|
+
|
|
88649
|
+
/**
|
|
88650
|
+
* Calls SoftTakedownRepl.
|
|
88651
|
+
* @function softTakedownRepl
|
|
88652
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88653
|
+
* @instance
|
|
88654
|
+
* @param {replit.goval.api.lore.SoftTakedownReplRequest} request SoftTakedownReplRequest message or plain object
|
|
88655
|
+
* @returns {Promise<replit.goval.api.lore.SoftTakedownReplResponse>} Promise
|
|
88656
|
+
* @variation 2
|
|
88657
|
+
*/
|
|
88658
|
+
|
|
88659
|
+
/**
|
|
88660
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#restoreRepl}.
|
|
88661
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88662
|
+
* @typedef RestoreReplCallback
|
|
88663
|
+
* @type {function}
|
|
88664
|
+
* @param {Error|null} error Error, if any
|
|
88665
|
+
* @param {replit.goval.api.lore.RestoreReplResponse} [response] RestoreReplResponse
|
|
88666
|
+
*/
|
|
88667
|
+
|
|
88668
|
+
/**
|
|
88669
|
+
* Calls RestoreRepl.
|
|
88670
|
+
* @function restoreRepl
|
|
88671
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88672
|
+
* @instance
|
|
88673
|
+
* @param {replit.goval.api.lore.RestoreReplRequest} request RestoreReplRequest message or plain object
|
|
88674
|
+
* @param {replit.goval.api.lore.Lore.RestoreReplCallback} callback Node-style callback called with the error, if any, and RestoreReplResponse
|
|
88675
|
+
* @returns {undefined}
|
|
88676
|
+
* @variation 1
|
|
88677
|
+
*/
|
|
88678
|
+
Object.defineProperty(Lore.prototype.restoreRepl = function restoreRepl(request, callback) {
|
|
88679
|
+
return this.rpcCall(restoreRepl, $root.replit.goval.api.lore.RestoreReplRequest, $root.replit.goval.api.lore.RestoreReplResponse, request, callback);
|
|
88680
|
+
}, "name", { value: "RestoreRepl" });
|
|
88681
|
+
|
|
88682
|
+
/**
|
|
88683
|
+
* Calls RestoreRepl.
|
|
88684
|
+
* @function restoreRepl
|
|
88685
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88686
|
+
* @instance
|
|
88687
|
+
* @param {replit.goval.api.lore.RestoreReplRequest} request RestoreReplRequest message or plain object
|
|
88688
|
+
* @returns {Promise<replit.goval.api.lore.RestoreReplResponse>} Promise
|
|
88689
|
+
* @variation 2
|
|
88690
|
+
*/
|
|
88691
|
+
|
|
88692
|
+
/**
|
|
88693
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#bulkRemove}.
|
|
86678
88694
|
* @memberof replit.goval.api.lore.Lore
|
|
86679
88695
|
* @typedef BulkRemoveCallback
|
|
86680
88696
|
* @type {function}
|
|
@@ -86838,6 +88854,72 @@
|
|
|
86838
88854
|
* @variation 2
|
|
86839
88855
|
*/
|
|
86840
88856
|
|
|
88857
|
+
/**
|
|
88858
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#exportRepl}.
|
|
88859
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88860
|
+
* @typedef ExportReplCallback
|
|
88861
|
+
* @type {function}
|
|
88862
|
+
* @param {Error|null} error Error, if any
|
|
88863
|
+
* @param {replit.goval.api.lore.ExportReplResponse} [response] ExportReplResponse
|
|
88864
|
+
*/
|
|
88865
|
+
|
|
88866
|
+
/**
|
|
88867
|
+
* Calls ExportRepl.
|
|
88868
|
+
* @function exportRepl
|
|
88869
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88870
|
+
* @instance
|
|
88871
|
+
* @param {replit.goval.api.lore.ExportReplRequest} request ExportReplRequest message or plain object
|
|
88872
|
+
* @param {replit.goval.api.lore.Lore.ExportReplCallback} callback Node-style callback called with the error, if any, and ExportReplResponse
|
|
88873
|
+
* @returns {undefined}
|
|
88874
|
+
* @variation 1
|
|
88875
|
+
*/
|
|
88876
|
+
Object.defineProperty(Lore.prototype.exportRepl = function exportRepl(request, callback) {
|
|
88877
|
+
return this.rpcCall(exportRepl, $root.replit.goval.api.lore.ExportReplRequest, $root.replit.goval.api.lore.ExportReplResponse, request, callback);
|
|
88878
|
+
}, "name", { value: "ExportRepl" });
|
|
88879
|
+
|
|
88880
|
+
/**
|
|
88881
|
+
* Calls ExportRepl.
|
|
88882
|
+
* @function exportRepl
|
|
88883
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88884
|
+
* @instance
|
|
88885
|
+
* @param {replit.goval.api.lore.ExportReplRequest} request ExportReplRequest message or plain object
|
|
88886
|
+
* @returns {Promise<replit.goval.api.lore.ExportReplResponse>} Promise
|
|
88887
|
+
* @variation 2
|
|
88888
|
+
*/
|
|
88889
|
+
|
|
88890
|
+
/**
|
|
88891
|
+
* Callback as used by {@link replit.goval.api.lore.Lore#importRepl}.
|
|
88892
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88893
|
+
* @typedef ImportReplCallback
|
|
88894
|
+
* @type {function}
|
|
88895
|
+
* @param {Error|null} error Error, if any
|
|
88896
|
+
* @param {replit.goval.api.lore.ImportReplResponse} [response] ImportReplResponse
|
|
88897
|
+
*/
|
|
88898
|
+
|
|
88899
|
+
/**
|
|
88900
|
+
* Calls ImportRepl.
|
|
88901
|
+
* @function importRepl
|
|
88902
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88903
|
+
* @instance
|
|
88904
|
+
* @param {replit.goval.api.lore.ImportReplRequest} request ImportReplRequest message or plain object
|
|
88905
|
+
* @param {replit.goval.api.lore.Lore.ImportReplCallback} callback Node-style callback called with the error, if any, and ImportReplResponse
|
|
88906
|
+
* @returns {undefined}
|
|
88907
|
+
* @variation 1
|
|
88908
|
+
*/
|
|
88909
|
+
Object.defineProperty(Lore.prototype.importRepl = function importRepl(request, callback) {
|
|
88910
|
+
return this.rpcCall(importRepl, $root.replit.goval.api.lore.ImportReplRequest, $root.replit.goval.api.lore.ImportReplResponse, request, callback);
|
|
88911
|
+
}, "name", { value: "ImportRepl" });
|
|
88912
|
+
|
|
88913
|
+
/**
|
|
88914
|
+
* Calls ImportRepl.
|
|
88915
|
+
* @function importRepl
|
|
88916
|
+
* @memberof replit.goval.api.lore.Lore
|
|
88917
|
+
* @instance
|
|
88918
|
+
* @param {replit.goval.api.lore.ImportReplRequest} request ImportReplRequest message or plain object
|
|
88919
|
+
* @returns {Promise<replit.goval.api.lore.ImportReplResponse>} Promise
|
|
88920
|
+
* @variation 2
|
|
88921
|
+
*/
|
|
88922
|
+
|
|
86841
88923
|
return Lore;
|
|
86842
88924
|
})();
|
|
86843
88925
|
|