@replit/protocol 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main/index.js CHANGED
@@ -55131,6 +55131,2785 @@
55131
55131
  return GovalReplIdentity;
55132
55132
  })();
55133
55133
 
55134
+ api.lore = (function() {
55135
+
55136
+ /**
55137
+ * Namespace lore.
55138
+ * @memberof replit.goval.api
55139
+ * @namespace
55140
+ */
55141
+ var lore = {};
55142
+
55143
+ lore.LoreCommand = (function() {
55144
+
55145
+ /**
55146
+ * Properties of a LoreCommand.
55147
+ * @memberof replit.goval.api.lore
55148
+ * @interface ILoreCommand
55149
+ * @property {replit.goval.api.lore.ClusterTransfer|replit.goval.api.lore.IClusterTransfer|null} [clusterTransfer] LoreCommand clusterTransfer
55150
+ * @property {replit.goval.api.lore.SoftTakedown|replit.goval.api.lore.ISoftTakedown|null} [softTakedown] LoreCommand softTakedown
55151
+ * @property {replit.goval.api.lore.Takedown|replit.goval.api.lore.ITakedown|null} [takedown] LoreCommand takedown
55152
+ * @property {replit.goval.api.lore.GovalCommand|replit.goval.api.lore.IGovalCommand|null} [govalCommand] LoreCommand govalCommand
55153
+ * @property {replit.goval.api.lore.MultiGovalCommand|replit.goval.api.lore.IMultiGovalCommand|null} [multiGovalCommand] LoreCommand multiGovalCommand
55154
+ * @property {replit.goval.api.lore.Restore|replit.goval.api.lore.IRestore|null} [restore] LoreCommand restore
55155
+ */
55156
+
55157
+ /**
55158
+ * Constructs a new LoreCommand.
55159
+ * @memberof replit.goval.api.lore
55160
+ * @classdesc Represents a LoreCommand.
55161
+ * @constructor
55162
+ * @param {replit.goval.api.lore.ILoreCommand=} [properties] Properties to set
55163
+ */
55164
+ function LoreCommand(properties) {
55165
+ if (properties)
55166
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55167
+ if (properties[keys[i]] != null)
55168
+ this[keys[i]] = properties[keys[i]];
55169
+ }
55170
+
55171
+ /**
55172
+ * LoreCommand clusterTransfer.
55173
+ * @member {replit.goval.api.lore.ClusterTransfer|null|undefined} clusterTransfer
55174
+ * @memberof replit.goval.api.lore.LoreCommand
55175
+ * @instance
55176
+ */
55177
+ LoreCommand.prototype.clusterTransfer = null;
55178
+
55179
+ /**
55180
+ * LoreCommand softTakedown.
55181
+ * @member {replit.goval.api.lore.SoftTakedown|null|undefined} softTakedown
55182
+ * @memberof replit.goval.api.lore.LoreCommand
55183
+ * @instance
55184
+ */
55185
+ LoreCommand.prototype.softTakedown = null;
55186
+
55187
+ /**
55188
+ * LoreCommand takedown.
55189
+ * @member {replit.goval.api.lore.Takedown|null|undefined} takedown
55190
+ * @memberof replit.goval.api.lore.LoreCommand
55191
+ * @instance
55192
+ */
55193
+ LoreCommand.prototype.takedown = null;
55194
+
55195
+ /**
55196
+ * LoreCommand govalCommand.
55197
+ * @member {replit.goval.api.lore.GovalCommand|null|undefined} govalCommand
55198
+ * @memberof replit.goval.api.lore.LoreCommand
55199
+ * @instance
55200
+ */
55201
+ LoreCommand.prototype.govalCommand = null;
55202
+
55203
+ /**
55204
+ * LoreCommand multiGovalCommand.
55205
+ * @member {replit.goval.api.lore.MultiGovalCommand|null|undefined} multiGovalCommand
55206
+ * @memberof replit.goval.api.lore.LoreCommand
55207
+ * @instance
55208
+ */
55209
+ LoreCommand.prototype.multiGovalCommand = null;
55210
+
55211
+ /**
55212
+ * LoreCommand restore.
55213
+ * @member {replit.goval.api.lore.Restore|null|undefined} restore
55214
+ * @memberof replit.goval.api.lore.LoreCommand
55215
+ * @instance
55216
+ */
55217
+ LoreCommand.prototype.restore = null;
55218
+
55219
+ // OneOf field names bound to virtual getters and setters
55220
+ var $oneOfFields;
55221
+
55222
+ /**
55223
+ * LoreCommand command.
55224
+ * @member {"clusterTransfer"|"softTakedown"|"takedown"|"govalCommand"|"multiGovalCommand"|"restore"|undefined} command
55225
+ * @memberof replit.goval.api.lore.LoreCommand
55226
+ * @instance
55227
+ */
55228
+ Object.defineProperty(LoreCommand.prototype, "command", {
55229
+ get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "takedown", "govalCommand", "multiGovalCommand", "restore"]),
55230
+ set: $util.oneOfSetter($oneOfFields)
55231
+ });
55232
+
55233
+ /**
55234
+ * Creates a new LoreCommand instance using the specified properties.
55235
+ * @function create
55236
+ * @memberof replit.goval.api.lore.LoreCommand
55237
+ * @static
55238
+ * @param {replit.goval.api.lore.ILoreCommand=} [properties] Properties to set
55239
+ * @returns {replit.goval.api.lore.LoreCommand} LoreCommand instance
55240
+ */
55241
+ LoreCommand.create = function create(properties) {
55242
+ return LoreCommand.fromObject(properties);
55243
+ };
55244
+
55245
+ /**
55246
+ * Encodes the specified LoreCommand message. Does not implicitly {@link replit.goval.api.lore.LoreCommand.verify|verify} messages.
55247
+ * @function encode
55248
+ * @memberof replit.goval.api.lore.LoreCommand
55249
+ * @static
55250
+ * @param {replit.goval.api.lore.LoreCommand} message LoreCommand message or plain object to encode
55251
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55252
+ * @returns {$protobuf.Writer} Writer
55253
+ */
55254
+ LoreCommand.encode = function encode(message, writer) {
55255
+ if (!writer)
55256
+ writer = $Writer.create();
55257
+ if (message.clusterTransfer != null && Object.hasOwnProperty.call(message, "clusterTransfer"))
55258
+ $root.replit.goval.api.lore.ClusterTransfer.encode(message.clusterTransfer, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
55259
+ if (message.softTakedown != null && Object.hasOwnProperty.call(message, "softTakedown"))
55260
+ $root.replit.goval.api.lore.SoftTakedown.encode(message.softTakedown, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
55261
+ if (message.govalCommand != null && Object.hasOwnProperty.call(message, "govalCommand"))
55262
+ $root.replit.goval.api.lore.GovalCommand.encode(message.govalCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
55263
+ if (message.restore != null && Object.hasOwnProperty.call(message, "restore"))
55264
+ $root.replit.goval.api.lore.Restore.encode(message.restore, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
55265
+ if (message.multiGovalCommand != null && Object.hasOwnProperty.call(message, "multiGovalCommand"))
55266
+ $root.replit.goval.api.lore.MultiGovalCommand.encode(message.multiGovalCommand, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
55267
+ if (message.takedown != null && Object.hasOwnProperty.call(message, "takedown"))
55268
+ $root.replit.goval.api.lore.Takedown.encode(message.takedown, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
55269
+ return writer;
55270
+ };
55271
+
55272
+ /**
55273
+ * Encodes the specified LoreCommand message, length delimited. Does not implicitly {@link replit.goval.api.lore.LoreCommand.verify|verify} messages.
55274
+ * @function encodeDelimited
55275
+ * @memberof replit.goval.api.lore.LoreCommand
55276
+ * @static
55277
+ * @param {replit.goval.api.lore.LoreCommand} message LoreCommand message or plain object to encode
55278
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55279
+ * @returns {$protobuf.Writer} Writer
55280
+ */
55281
+ LoreCommand.encodeDelimited = function encodeDelimited(message, writer) {
55282
+ return this.encode(message, writer).ldelim();
55283
+ };
55284
+
55285
+ /**
55286
+ * Decodes a LoreCommand message from the specified reader or buffer.
55287
+ * @function decode
55288
+ * @memberof replit.goval.api.lore.LoreCommand
55289
+ * @static
55290
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55291
+ * @param {number} [length] Message length if known beforehand
55292
+ * @returns {replit.goval.api.lore.LoreCommand} LoreCommand
55293
+ * @throws {Error} If the payload is not a reader or valid buffer
55294
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55295
+ */
55296
+ LoreCommand.decode = function decode(reader, length) {
55297
+ if (!(reader instanceof $Reader))
55298
+ reader = $Reader.create(reader);
55299
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.LoreCommand();
55300
+ while (reader.pos < end) {
55301
+ var tag = reader.uint32();
55302
+ switch (tag >>> 3) {
55303
+ case 1:
55304
+ message.clusterTransfer = $root.replit.goval.api.lore.ClusterTransfer.decode(reader, reader.uint32());
55305
+ break;
55306
+ case 2:
55307
+ message.softTakedown = $root.replit.goval.api.lore.SoftTakedown.decode(reader, reader.uint32());
55308
+ break;
55309
+ case 6:
55310
+ message.takedown = $root.replit.goval.api.lore.Takedown.decode(reader, reader.uint32());
55311
+ break;
55312
+ case 3:
55313
+ message.govalCommand = $root.replit.goval.api.lore.GovalCommand.decode(reader, reader.uint32());
55314
+ break;
55315
+ case 5:
55316
+ message.multiGovalCommand = $root.replit.goval.api.lore.MultiGovalCommand.decode(reader, reader.uint32());
55317
+ break;
55318
+ case 4:
55319
+ message.restore = $root.replit.goval.api.lore.Restore.decode(reader, reader.uint32());
55320
+ break;
55321
+ default:
55322
+ reader.skipType(tag & 7);
55323
+ break;
55324
+ }
55325
+ }
55326
+ return message;
55327
+ };
55328
+
55329
+ /**
55330
+ * Decodes a LoreCommand message from the specified reader or buffer, length delimited.
55331
+ * @function decodeDelimited
55332
+ * @memberof replit.goval.api.lore.LoreCommand
55333
+ * @static
55334
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55335
+ * @returns {replit.goval.api.lore.LoreCommand} LoreCommand
55336
+ * @throws {Error} If the payload is not a reader or valid buffer
55337
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55338
+ */
55339
+ LoreCommand.decodeDelimited = function decodeDelimited(reader) {
55340
+ if (!(reader instanceof $Reader))
55341
+ reader = new $Reader(reader);
55342
+ return this.decode(reader, reader.uint32());
55343
+ };
55344
+
55345
+ /**
55346
+ * Verifies a LoreCommand message.
55347
+ * @function verify
55348
+ * @memberof replit.goval.api.lore.LoreCommand
55349
+ * @static
55350
+ * @param {Object.<string,*>} message Plain object to verify
55351
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55352
+ */
55353
+ LoreCommand.verify = function verify(message) {
55354
+ if (typeof message !== "object" || message === null)
55355
+ return "object expected";
55356
+ var properties = {};
55357
+ if (message.clusterTransfer != null && message.hasOwnProperty("clusterTransfer")) {
55358
+ properties.command = 1;
55359
+ {
55360
+ var error = $root.replit.goval.api.lore.ClusterTransfer.verify(message.clusterTransfer);
55361
+ if (error)
55362
+ return "clusterTransfer." + error;
55363
+ }
55364
+ }
55365
+ if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
55366
+ if (properties.command === 1)
55367
+ return "command: multiple values";
55368
+ properties.command = 1;
55369
+ {
55370
+ var error = $root.replit.goval.api.lore.SoftTakedown.verify(message.softTakedown);
55371
+ if (error)
55372
+ return "softTakedown." + error;
55373
+ }
55374
+ }
55375
+ if (message.takedown != null && message.hasOwnProperty("takedown")) {
55376
+ if (properties.command === 1)
55377
+ return "command: multiple values";
55378
+ properties.command = 1;
55379
+ {
55380
+ var error = $root.replit.goval.api.lore.Takedown.verify(message.takedown);
55381
+ if (error)
55382
+ return "takedown." + error;
55383
+ }
55384
+ }
55385
+ if (message.govalCommand != null && message.hasOwnProperty("govalCommand")) {
55386
+ if (properties.command === 1)
55387
+ return "command: multiple values";
55388
+ properties.command = 1;
55389
+ {
55390
+ var error = $root.replit.goval.api.lore.GovalCommand.verify(message.govalCommand);
55391
+ if (error)
55392
+ return "govalCommand." + error;
55393
+ }
55394
+ }
55395
+ if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
55396
+ if (properties.command === 1)
55397
+ return "command: multiple values";
55398
+ properties.command = 1;
55399
+ {
55400
+ var error = $root.replit.goval.api.lore.MultiGovalCommand.verify(message.multiGovalCommand);
55401
+ if (error)
55402
+ return "multiGovalCommand." + error;
55403
+ }
55404
+ }
55405
+ if (message.restore != null && message.hasOwnProperty("restore")) {
55406
+ if (properties.command === 1)
55407
+ return "command: multiple values";
55408
+ properties.command = 1;
55409
+ {
55410
+ var error = $root.replit.goval.api.lore.Restore.verify(message.restore);
55411
+ if (error)
55412
+ return "restore." + error;
55413
+ }
55414
+ }
55415
+ return null;
55416
+ };
55417
+
55418
+ /**
55419
+ * Creates a LoreCommand message from a plain object. Also converts values to their respective internal types.
55420
+ * @function fromObject
55421
+ * @memberof replit.goval.api.lore.LoreCommand
55422
+ * @static
55423
+ * @param {Object.<string,*>} object Plain object
55424
+ * @returns {replit.goval.api.lore.LoreCommand} LoreCommand
55425
+ */
55426
+ LoreCommand.fromObject = function fromObject(object) {
55427
+ if (object instanceof $root.replit.goval.api.lore.LoreCommand)
55428
+ return object;
55429
+ var message = new $root.replit.goval.api.lore.LoreCommand();
55430
+ if (object.clusterTransfer != null) {
55431
+ if (typeof object.clusterTransfer !== "object")
55432
+ throw TypeError(".replit.goval.api.lore.LoreCommand.clusterTransfer: object expected");
55433
+ message.clusterTransfer = $root.replit.goval.api.lore.ClusterTransfer.fromObject(object.clusterTransfer);
55434
+ }
55435
+ if (object.softTakedown != null) {
55436
+ if (typeof object.softTakedown !== "object")
55437
+ throw TypeError(".replit.goval.api.lore.LoreCommand.softTakedown: object expected");
55438
+ message.softTakedown = $root.replit.goval.api.lore.SoftTakedown.fromObject(object.softTakedown);
55439
+ }
55440
+ if (object.takedown != null) {
55441
+ if (typeof object.takedown !== "object")
55442
+ throw TypeError(".replit.goval.api.lore.LoreCommand.takedown: object expected");
55443
+ message.takedown = $root.replit.goval.api.lore.Takedown.fromObject(object.takedown);
55444
+ }
55445
+ if (object.govalCommand != null) {
55446
+ if (typeof object.govalCommand !== "object")
55447
+ throw TypeError(".replit.goval.api.lore.LoreCommand.govalCommand: object expected");
55448
+ message.govalCommand = $root.replit.goval.api.lore.GovalCommand.fromObject(object.govalCommand);
55449
+ }
55450
+ if (object.multiGovalCommand != null) {
55451
+ if (typeof object.multiGovalCommand !== "object")
55452
+ throw TypeError(".replit.goval.api.lore.LoreCommand.multiGovalCommand: object expected");
55453
+ message.multiGovalCommand = $root.replit.goval.api.lore.MultiGovalCommand.fromObject(object.multiGovalCommand);
55454
+ }
55455
+ if (object.restore != null) {
55456
+ if (typeof object.restore !== "object")
55457
+ throw TypeError(".replit.goval.api.lore.LoreCommand.restore: object expected");
55458
+ message.restore = $root.replit.goval.api.lore.Restore.fromObject(object.restore);
55459
+ }
55460
+ return message;
55461
+ };
55462
+
55463
+ /**
55464
+ * Creates a plain object from a LoreCommand message. Also converts values to other types if specified.
55465
+ * @function toObject
55466
+ * @memberof replit.goval.api.lore.LoreCommand
55467
+ * @static
55468
+ * @param {replit.goval.api.lore.LoreCommand} message LoreCommand
55469
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55470
+ * @returns {Object.<string,*>} Plain object
55471
+ */
55472
+ LoreCommand.toObject = function toObject(message, options) {
55473
+ if (!options)
55474
+ options = {};
55475
+ var object = {};
55476
+ if (message.clusterTransfer != null && message.hasOwnProperty("clusterTransfer")) {
55477
+ object.clusterTransfer = $root.replit.goval.api.lore.ClusterTransfer.toObject(message.clusterTransfer, options);
55478
+ if (options.oneofs)
55479
+ object.command = "clusterTransfer";
55480
+ }
55481
+ if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
55482
+ object.softTakedown = $root.replit.goval.api.lore.SoftTakedown.toObject(message.softTakedown, options);
55483
+ if (options.oneofs)
55484
+ object.command = "softTakedown";
55485
+ }
55486
+ if (message.govalCommand != null && message.hasOwnProperty("govalCommand")) {
55487
+ object.govalCommand = $root.replit.goval.api.lore.GovalCommand.toObject(message.govalCommand, options);
55488
+ if (options.oneofs)
55489
+ object.command = "govalCommand";
55490
+ }
55491
+ if (message.restore != null && message.hasOwnProperty("restore")) {
55492
+ object.restore = $root.replit.goval.api.lore.Restore.toObject(message.restore, options);
55493
+ if (options.oneofs)
55494
+ object.command = "restore";
55495
+ }
55496
+ if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
55497
+ object.multiGovalCommand = $root.replit.goval.api.lore.MultiGovalCommand.toObject(message.multiGovalCommand, options);
55498
+ if (options.oneofs)
55499
+ object.command = "multiGovalCommand";
55500
+ }
55501
+ if (message.takedown != null && message.hasOwnProperty("takedown")) {
55502
+ object.takedown = $root.replit.goval.api.lore.Takedown.toObject(message.takedown, options);
55503
+ if (options.oneofs)
55504
+ object.command = "takedown";
55505
+ }
55506
+ return object;
55507
+ };
55508
+
55509
+ /**
55510
+ * Converts this LoreCommand to JSON.
55511
+ * @function toJSON
55512
+ * @memberof replit.goval.api.lore.LoreCommand
55513
+ * @instance
55514
+ * @returns {Object.<string,*>} JSON object
55515
+ */
55516
+ LoreCommand.prototype.toJSON = function toJSON() {
55517
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55518
+ };
55519
+
55520
+ return LoreCommand;
55521
+ })();
55522
+
55523
+ lore.ClusterTransfer = (function() {
55524
+
55525
+ /**
55526
+ * Properties of a ClusterTransfer.
55527
+ * @memberof replit.goval.api.lore
55528
+ * @interface IClusterTransfer
55529
+ * @property {string|null} [replId] ClusterTransfer replId
55530
+ * @property {string|null} [user] ClusterTransfer user
55531
+ * @property {string|null} [newClusterId] ClusterTransfer newClusterId
55532
+ * @property {string|null} [newContinentId] ClusterTransfer newContinentId
55533
+ * @property {string|null} [transferId] ClusterTransfer transferId
55534
+ */
55535
+
55536
+ /**
55537
+ * Constructs a new ClusterTransfer.
55538
+ * @memberof replit.goval.api.lore
55539
+ * @classdesc Represents a ClusterTransfer.
55540
+ * @constructor
55541
+ * @param {replit.goval.api.lore.IClusterTransfer=} [properties] Properties to set
55542
+ */
55543
+ function ClusterTransfer(properties) {
55544
+ if (properties)
55545
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55546
+ if (properties[keys[i]] != null)
55547
+ this[keys[i]] = properties[keys[i]];
55548
+ }
55549
+
55550
+ /**
55551
+ * ClusterTransfer replId.
55552
+ * @member {string} replId
55553
+ * @memberof replit.goval.api.lore.ClusterTransfer
55554
+ * @instance
55555
+ */
55556
+ ClusterTransfer.prototype.replId = "";
55557
+
55558
+ /**
55559
+ * ClusterTransfer user.
55560
+ * @member {string} user
55561
+ * @memberof replit.goval.api.lore.ClusterTransfer
55562
+ * @instance
55563
+ */
55564
+ ClusterTransfer.prototype.user = "";
55565
+
55566
+ /**
55567
+ * ClusterTransfer newClusterId.
55568
+ * @member {string|null|undefined} newClusterId
55569
+ * @memberof replit.goval.api.lore.ClusterTransfer
55570
+ * @instance
55571
+ */
55572
+ ClusterTransfer.prototype.newClusterId = null;
55573
+
55574
+ /**
55575
+ * ClusterTransfer newContinentId.
55576
+ * @member {string|null|undefined} newContinentId
55577
+ * @memberof replit.goval.api.lore.ClusterTransfer
55578
+ * @instance
55579
+ */
55580
+ ClusterTransfer.prototype.newContinentId = null;
55581
+
55582
+ /**
55583
+ * ClusterTransfer transferId.
55584
+ * @member {string} transferId
55585
+ * @memberof replit.goval.api.lore.ClusterTransfer
55586
+ * @instance
55587
+ */
55588
+ ClusterTransfer.prototype.transferId = "";
55589
+
55590
+ // OneOf field names bound to virtual getters and setters
55591
+ var $oneOfFields;
55592
+
55593
+ /**
55594
+ * ClusterTransfer location.
55595
+ * @member {"newClusterId"|"newContinentId"|undefined} location
55596
+ * @memberof replit.goval.api.lore.ClusterTransfer
55597
+ * @instance
55598
+ */
55599
+ Object.defineProperty(ClusterTransfer.prototype, "location", {
55600
+ get: $util.oneOfGetter($oneOfFields = ["newClusterId", "newContinentId"]),
55601
+ set: $util.oneOfSetter($oneOfFields)
55602
+ });
55603
+
55604
+ /**
55605
+ * Creates a new ClusterTransfer instance using the specified properties.
55606
+ * @function create
55607
+ * @memberof replit.goval.api.lore.ClusterTransfer
55608
+ * @static
55609
+ * @param {replit.goval.api.lore.IClusterTransfer=} [properties] Properties to set
55610
+ * @returns {replit.goval.api.lore.ClusterTransfer} ClusterTransfer instance
55611
+ */
55612
+ ClusterTransfer.create = function create(properties) {
55613
+ return ClusterTransfer.fromObject(properties);
55614
+ };
55615
+
55616
+ /**
55617
+ * Encodes the specified ClusterTransfer message. Does not implicitly {@link replit.goval.api.lore.ClusterTransfer.verify|verify} messages.
55618
+ * @function encode
55619
+ * @memberof replit.goval.api.lore.ClusterTransfer
55620
+ * @static
55621
+ * @param {replit.goval.api.lore.ClusterTransfer} message ClusterTransfer message or plain object to encode
55622
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55623
+ * @returns {$protobuf.Writer} Writer
55624
+ */
55625
+ ClusterTransfer.encode = function encode(message, writer) {
55626
+ if (!writer)
55627
+ writer = $Writer.create();
55628
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
55629
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
55630
+ if (message.user != null && Object.hasOwnProperty.call(message, "user"))
55631
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.user);
55632
+ if (message.newClusterId != null && Object.hasOwnProperty.call(message, "newClusterId"))
55633
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.newClusterId);
55634
+ if (message.transferId != null && Object.hasOwnProperty.call(message, "transferId"))
55635
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.transferId);
55636
+ if (message.newContinentId != null && Object.hasOwnProperty.call(message, "newContinentId"))
55637
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.newContinentId);
55638
+ return writer;
55639
+ };
55640
+
55641
+ /**
55642
+ * Encodes the specified ClusterTransfer message, length delimited. Does not implicitly {@link replit.goval.api.lore.ClusterTransfer.verify|verify} messages.
55643
+ * @function encodeDelimited
55644
+ * @memberof replit.goval.api.lore.ClusterTransfer
55645
+ * @static
55646
+ * @param {replit.goval.api.lore.ClusterTransfer} message ClusterTransfer message or plain object to encode
55647
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55648
+ * @returns {$protobuf.Writer} Writer
55649
+ */
55650
+ ClusterTransfer.encodeDelimited = function encodeDelimited(message, writer) {
55651
+ return this.encode(message, writer).ldelim();
55652
+ };
55653
+
55654
+ /**
55655
+ * Decodes a ClusterTransfer message from the specified reader or buffer.
55656
+ * @function decode
55657
+ * @memberof replit.goval.api.lore.ClusterTransfer
55658
+ * @static
55659
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55660
+ * @param {number} [length] Message length if known beforehand
55661
+ * @returns {replit.goval.api.lore.ClusterTransfer} ClusterTransfer
55662
+ * @throws {Error} If the payload is not a reader or valid buffer
55663
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55664
+ */
55665
+ ClusterTransfer.decode = function decode(reader, length) {
55666
+ if (!(reader instanceof $Reader))
55667
+ reader = $Reader.create(reader);
55668
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.ClusterTransfer();
55669
+ while (reader.pos < end) {
55670
+ var tag = reader.uint32();
55671
+ switch (tag >>> 3) {
55672
+ case 1:
55673
+ message.replId = reader.string();
55674
+ break;
55675
+ case 2:
55676
+ message.user = reader.string();
55677
+ break;
55678
+ case 3:
55679
+ message.newClusterId = reader.string();
55680
+ break;
55681
+ case 5:
55682
+ message.newContinentId = reader.string();
55683
+ break;
55684
+ case 4:
55685
+ message.transferId = reader.string();
55686
+ break;
55687
+ default:
55688
+ reader.skipType(tag & 7);
55689
+ break;
55690
+ }
55691
+ }
55692
+ return message;
55693
+ };
55694
+
55695
+ /**
55696
+ * Decodes a ClusterTransfer message from the specified reader or buffer, length delimited.
55697
+ * @function decodeDelimited
55698
+ * @memberof replit.goval.api.lore.ClusterTransfer
55699
+ * @static
55700
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55701
+ * @returns {replit.goval.api.lore.ClusterTransfer} ClusterTransfer
55702
+ * @throws {Error} If the payload is not a reader or valid buffer
55703
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55704
+ */
55705
+ ClusterTransfer.decodeDelimited = function decodeDelimited(reader) {
55706
+ if (!(reader instanceof $Reader))
55707
+ reader = new $Reader(reader);
55708
+ return this.decode(reader, reader.uint32());
55709
+ };
55710
+
55711
+ /**
55712
+ * Verifies a ClusterTransfer message.
55713
+ * @function verify
55714
+ * @memberof replit.goval.api.lore.ClusterTransfer
55715
+ * @static
55716
+ * @param {Object.<string,*>} message Plain object to verify
55717
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55718
+ */
55719
+ ClusterTransfer.verify = function verify(message) {
55720
+ if (typeof message !== "object" || message === null)
55721
+ return "object expected";
55722
+ var properties = {};
55723
+ if (message.replId != null && message.hasOwnProperty("replId"))
55724
+ if (!$util.isString(message.replId))
55725
+ return "replId: string expected";
55726
+ if (message.user != null && message.hasOwnProperty("user"))
55727
+ if (!$util.isString(message.user))
55728
+ return "user: string expected";
55729
+ if (message.newClusterId != null && message.hasOwnProperty("newClusterId")) {
55730
+ properties.location = 1;
55731
+ if (!$util.isString(message.newClusterId))
55732
+ return "newClusterId: string expected";
55733
+ }
55734
+ if (message.newContinentId != null && message.hasOwnProperty("newContinentId")) {
55735
+ if (properties.location === 1)
55736
+ return "location: multiple values";
55737
+ properties.location = 1;
55738
+ if (!$util.isString(message.newContinentId))
55739
+ return "newContinentId: string expected";
55740
+ }
55741
+ if (message.transferId != null && message.hasOwnProperty("transferId"))
55742
+ if (!$util.isString(message.transferId))
55743
+ return "transferId: string expected";
55744
+ return null;
55745
+ };
55746
+
55747
+ /**
55748
+ * Creates a ClusterTransfer message from a plain object. Also converts values to their respective internal types.
55749
+ * @function fromObject
55750
+ * @memberof replit.goval.api.lore.ClusterTransfer
55751
+ * @static
55752
+ * @param {Object.<string,*>} object Plain object
55753
+ * @returns {replit.goval.api.lore.ClusterTransfer} ClusterTransfer
55754
+ */
55755
+ ClusterTransfer.fromObject = function fromObject(object) {
55756
+ if (object instanceof $root.replit.goval.api.lore.ClusterTransfer)
55757
+ return object;
55758
+ var message = new $root.replit.goval.api.lore.ClusterTransfer();
55759
+ if (object.replId != null)
55760
+ message.replId = String(object.replId);
55761
+ if (object.user != null)
55762
+ message.user = String(object.user);
55763
+ if (object.newClusterId != null)
55764
+ message.newClusterId = String(object.newClusterId);
55765
+ if (object.newContinentId != null)
55766
+ message.newContinentId = String(object.newContinentId);
55767
+ if (object.transferId != null)
55768
+ message.transferId = String(object.transferId);
55769
+ return message;
55770
+ };
55771
+
55772
+ /**
55773
+ * Creates a plain object from a ClusterTransfer message. Also converts values to other types if specified.
55774
+ * @function toObject
55775
+ * @memberof replit.goval.api.lore.ClusterTransfer
55776
+ * @static
55777
+ * @param {replit.goval.api.lore.ClusterTransfer} message ClusterTransfer
55778
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
55779
+ * @returns {Object.<string,*>} Plain object
55780
+ */
55781
+ ClusterTransfer.toObject = function toObject(message, options) {
55782
+ if (!options)
55783
+ options = {};
55784
+ var object = {};
55785
+ if (options.defaults) {
55786
+ object.replId = "";
55787
+ object.user = "";
55788
+ object.transferId = "";
55789
+ }
55790
+ if (message.replId != null && message.hasOwnProperty("replId"))
55791
+ object.replId = message.replId;
55792
+ if (message.user != null && message.hasOwnProperty("user"))
55793
+ object.user = message.user;
55794
+ if (message.newClusterId != null && message.hasOwnProperty("newClusterId")) {
55795
+ object.newClusterId = message.newClusterId;
55796
+ if (options.oneofs)
55797
+ object.location = "newClusterId";
55798
+ }
55799
+ if (message.transferId != null && message.hasOwnProperty("transferId"))
55800
+ object.transferId = message.transferId;
55801
+ if (message.newContinentId != null && message.hasOwnProperty("newContinentId")) {
55802
+ object.newContinentId = message.newContinentId;
55803
+ if (options.oneofs)
55804
+ object.location = "newContinentId";
55805
+ }
55806
+ return object;
55807
+ };
55808
+
55809
+ /**
55810
+ * Converts this ClusterTransfer to JSON.
55811
+ * @function toJSON
55812
+ * @memberof replit.goval.api.lore.ClusterTransfer
55813
+ * @instance
55814
+ * @returns {Object.<string,*>} JSON object
55815
+ */
55816
+ ClusterTransfer.prototype.toJSON = function toJSON() {
55817
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
55818
+ };
55819
+
55820
+ return ClusterTransfer;
55821
+ })();
55822
+
55823
+ lore.SoftTakedown = (function() {
55824
+
55825
+ /**
55826
+ * Properties of a SoftTakedown.
55827
+ * @memberof replit.goval.api.lore
55828
+ * @interface ISoftTakedown
55829
+ * @property {string|null} [replId] SoftTakedown replId
55830
+ * @property {string|null} [softTakedownId] SoftTakedown softTakedownId
55831
+ */
55832
+
55833
+ /**
55834
+ * Constructs a new SoftTakedown.
55835
+ * @memberof replit.goval.api.lore
55836
+ * @classdesc Represents a SoftTakedown.
55837
+ * @constructor
55838
+ * @param {replit.goval.api.lore.ISoftTakedown=} [properties] Properties to set
55839
+ */
55840
+ function SoftTakedown(properties) {
55841
+ if (properties)
55842
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
55843
+ if (properties[keys[i]] != null)
55844
+ this[keys[i]] = properties[keys[i]];
55845
+ }
55846
+
55847
+ /**
55848
+ * SoftTakedown replId.
55849
+ * @member {string} replId
55850
+ * @memberof replit.goval.api.lore.SoftTakedown
55851
+ * @instance
55852
+ */
55853
+ SoftTakedown.prototype.replId = "";
55854
+
55855
+ /**
55856
+ * SoftTakedown softTakedownId.
55857
+ * @member {string} softTakedownId
55858
+ * @memberof replit.goval.api.lore.SoftTakedown
55859
+ * @instance
55860
+ */
55861
+ SoftTakedown.prototype.softTakedownId = "";
55862
+
55863
+ /**
55864
+ * Creates a new SoftTakedown instance using the specified properties.
55865
+ * @function create
55866
+ * @memberof replit.goval.api.lore.SoftTakedown
55867
+ * @static
55868
+ * @param {replit.goval.api.lore.ISoftTakedown=} [properties] Properties to set
55869
+ * @returns {replit.goval.api.lore.SoftTakedown} SoftTakedown instance
55870
+ */
55871
+ SoftTakedown.create = function create(properties) {
55872
+ return SoftTakedown.fromObject(properties);
55873
+ };
55874
+
55875
+ /**
55876
+ * Encodes the specified SoftTakedown message. Does not implicitly {@link replit.goval.api.lore.SoftTakedown.verify|verify} messages.
55877
+ * @function encode
55878
+ * @memberof replit.goval.api.lore.SoftTakedown
55879
+ * @static
55880
+ * @param {replit.goval.api.lore.SoftTakedown} message SoftTakedown message or plain object to encode
55881
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55882
+ * @returns {$protobuf.Writer} Writer
55883
+ */
55884
+ SoftTakedown.encode = function encode(message, writer) {
55885
+ if (!writer)
55886
+ writer = $Writer.create();
55887
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
55888
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
55889
+ if (message.softTakedownId != null && Object.hasOwnProperty.call(message, "softTakedownId"))
55890
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.softTakedownId);
55891
+ return writer;
55892
+ };
55893
+
55894
+ /**
55895
+ * Encodes the specified SoftTakedown message, length delimited. Does not implicitly {@link replit.goval.api.lore.SoftTakedown.verify|verify} messages.
55896
+ * @function encodeDelimited
55897
+ * @memberof replit.goval.api.lore.SoftTakedown
55898
+ * @static
55899
+ * @param {replit.goval.api.lore.SoftTakedown} message SoftTakedown message or plain object to encode
55900
+ * @param {$protobuf.Writer} [writer] Writer to encode to
55901
+ * @returns {$protobuf.Writer} Writer
55902
+ */
55903
+ SoftTakedown.encodeDelimited = function encodeDelimited(message, writer) {
55904
+ return this.encode(message, writer).ldelim();
55905
+ };
55906
+
55907
+ /**
55908
+ * Decodes a SoftTakedown message from the specified reader or buffer.
55909
+ * @function decode
55910
+ * @memberof replit.goval.api.lore.SoftTakedown
55911
+ * @static
55912
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55913
+ * @param {number} [length] Message length if known beforehand
55914
+ * @returns {replit.goval.api.lore.SoftTakedown} SoftTakedown
55915
+ * @throws {Error} If the payload is not a reader or valid buffer
55916
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55917
+ */
55918
+ SoftTakedown.decode = function decode(reader, length) {
55919
+ if (!(reader instanceof $Reader))
55920
+ reader = $Reader.create(reader);
55921
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.SoftTakedown();
55922
+ while (reader.pos < end) {
55923
+ var tag = reader.uint32();
55924
+ switch (tag >>> 3) {
55925
+ case 1:
55926
+ message.replId = reader.string();
55927
+ break;
55928
+ case 2:
55929
+ message.softTakedownId = reader.string();
55930
+ break;
55931
+ default:
55932
+ reader.skipType(tag & 7);
55933
+ break;
55934
+ }
55935
+ }
55936
+ return message;
55937
+ };
55938
+
55939
+ /**
55940
+ * Decodes a SoftTakedown message from the specified reader or buffer, length delimited.
55941
+ * @function decodeDelimited
55942
+ * @memberof replit.goval.api.lore.SoftTakedown
55943
+ * @static
55944
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
55945
+ * @returns {replit.goval.api.lore.SoftTakedown} SoftTakedown
55946
+ * @throws {Error} If the payload is not a reader or valid buffer
55947
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
55948
+ */
55949
+ SoftTakedown.decodeDelimited = function decodeDelimited(reader) {
55950
+ if (!(reader instanceof $Reader))
55951
+ reader = new $Reader(reader);
55952
+ return this.decode(reader, reader.uint32());
55953
+ };
55954
+
55955
+ /**
55956
+ * Verifies a SoftTakedown message.
55957
+ * @function verify
55958
+ * @memberof replit.goval.api.lore.SoftTakedown
55959
+ * @static
55960
+ * @param {Object.<string,*>} message Plain object to verify
55961
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
55962
+ */
55963
+ SoftTakedown.verify = function verify(message) {
55964
+ if (typeof message !== "object" || message === null)
55965
+ return "object expected";
55966
+ if (message.replId != null && message.hasOwnProperty("replId"))
55967
+ if (!$util.isString(message.replId))
55968
+ return "replId: string expected";
55969
+ if (message.softTakedownId != null && message.hasOwnProperty("softTakedownId"))
55970
+ if (!$util.isString(message.softTakedownId))
55971
+ return "softTakedownId: string expected";
55972
+ return null;
55973
+ };
55974
+
55975
+ /**
55976
+ * Creates a SoftTakedown message from a plain object. Also converts values to their respective internal types.
55977
+ * @function fromObject
55978
+ * @memberof replit.goval.api.lore.SoftTakedown
55979
+ * @static
55980
+ * @param {Object.<string,*>} object Plain object
55981
+ * @returns {replit.goval.api.lore.SoftTakedown} SoftTakedown
55982
+ */
55983
+ SoftTakedown.fromObject = function fromObject(object) {
55984
+ if (object instanceof $root.replit.goval.api.lore.SoftTakedown)
55985
+ return object;
55986
+ var message = new $root.replit.goval.api.lore.SoftTakedown();
55987
+ if (object.replId != null)
55988
+ message.replId = String(object.replId);
55989
+ if (object.softTakedownId != null)
55990
+ message.softTakedownId = String(object.softTakedownId);
55991
+ return message;
55992
+ };
55993
+
55994
+ /**
55995
+ * Creates a plain object from a SoftTakedown message. Also converts values to other types if specified.
55996
+ * @function toObject
55997
+ * @memberof replit.goval.api.lore.SoftTakedown
55998
+ * @static
55999
+ * @param {replit.goval.api.lore.SoftTakedown} message SoftTakedown
56000
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56001
+ * @returns {Object.<string,*>} Plain object
56002
+ */
56003
+ SoftTakedown.toObject = function toObject(message, options) {
56004
+ if (!options)
56005
+ options = {};
56006
+ var object = {};
56007
+ if (options.defaults) {
56008
+ object.replId = "";
56009
+ object.softTakedownId = "";
56010
+ }
56011
+ if (message.replId != null && message.hasOwnProperty("replId"))
56012
+ object.replId = message.replId;
56013
+ if (message.softTakedownId != null && message.hasOwnProperty("softTakedownId"))
56014
+ object.softTakedownId = message.softTakedownId;
56015
+ return object;
56016
+ };
56017
+
56018
+ /**
56019
+ * Converts this SoftTakedown to JSON.
56020
+ * @function toJSON
56021
+ * @memberof replit.goval.api.lore.SoftTakedown
56022
+ * @instance
56023
+ * @returns {Object.<string,*>} JSON object
56024
+ */
56025
+ SoftTakedown.prototype.toJSON = function toJSON() {
56026
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56027
+ };
56028
+
56029
+ return SoftTakedown;
56030
+ })();
56031
+
56032
+ lore.Takedown = (function() {
56033
+
56034
+ /**
56035
+ * Properties of a Takedown.
56036
+ * @memberof replit.goval.api.lore
56037
+ * @interface ITakedown
56038
+ * @property {string|null} [replId] Takedown replId
56039
+ */
56040
+
56041
+ /**
56042
+ * Constructs a new Takedown.
56043
+ * @memberof replit.goval.api.lore
56044
+ * @classdesc Represents a Takedown.
56045
+ * @constructor
56046
+ * @param {replit.goval.api.lore.ITakedown=} [properties] Properties to set
56047
+ */
56048
+ function Takedown(properties) {
56049
+ if (properties)
56050
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56051
+ if (properties[keys[i]] != null)
56052
+ this[keys[i]] = properties[keys[i]];
56053
+ }
56054
+
56055
+ /**
56056
+ * Takedown replId.
56057
+ * @member {string} replId
56058
+ * @memberof replit.goval.api.lore.Takedown
56059
+ * @instance
56060
+ */
56061
+ Takedown.prototype.replId = "";
56062
+
56063
+ /**
56064
+ * Creates a new Takedown instance using the specified properties.
56065
+ * @function create
56066
+ * @memberof replit.goval.api.lore.Takedown
56067
+ * @static
56068
+ * @param {replit.goval.api.lore.ITakedown=} [properties] Properties to set
56069
+ * @returns {replit.goval.api.lore.Takedown} Takedown instance
56070
+ */
56071
+ Takedown.create = function create(properties) {
56072
+ return Takedown.fromObject(properties);
56073
+ };
56074
+
56075
+ /**
56076
+ * Encodes the specified Takedown message. Does not implicitly {@link replit.goval.api.lore.Takedown.verify|verify} messages.
56077
+ * @function encode
56078
+ * @memberof replit.goval.api.lore.Takedown
56079
+ * @static
56080
+ * @param {replit.goval.api.lore.Takedown} message Takedown message or plain object to encode
56081
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56082
+ * @returns {$protobuf.Writer} Writer
56083
+ */
56084
+ Takedown.encode = function encode(message, writer) {
56085
+ if (!writer)
56086
+ writer = $Writer.create();
56087
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
56088
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
56089
+ return writer;
56090
+ };
56091
+
56092
+ /**
56093
+ * Encodes the specified Takedown message, length delimited. Does not implicitly {@link replit.goval.api.lore.Takedown.verify|verify} messages.
56094
+ * @function encodeDelimited
56095
+ * @memberof replit.goval.api.lore.Takedown
56096
+ * @static
56097
+ * @param {replit.goval.api.lore.Takedown} message Takedown message or plain object to encode
56098
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56099
+ * @returns {$protobuf.Writer} Writer
56100
+ */
56101
+ Takedown.encodeDelimited = function encodeDelimited(message, writer) {
56102
+ return this.encode(message, writer).ldelim();
56103
+ };
56104
+
56105
+ /**
56106
+ * Decodes a Takedown message from the specified reader or buffer.
56107
+ * @function decode
56108
+ * @memberof replit.goval.api.lore.Takedown
56109
+ * @static
56110
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56111
+ * @param {number} [length] Message length if known beforehand
56112
+ * @returns {replit.goval.api.lore.Takedown} Takedown
56113
+ * @throws {Error} If the payload is not a reader or valid buffer
56114
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56115
+ */
56116
+ Takedown.decode = function decode(reader, length) {
56117
+ if (!(reader instanceof $Reader))
56118
+ reader = $Reader.create(reader);
56119
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.Takedown();
56120
+ while (reader.pos < end) {
56121
+ var tag = reader.uint32();
56122
+ switch (tag >>> 3) {
56123
+ case 1:
56124
+ message.replId = reader.string();
56125
+ break;
56126
+ default:
56127
+ reader.skipType(tag & 7);
56128
+ break;
56129
+ }
56130
+ }
56131
+ return message;
56132
+ };
56133
+
56134
+ /**
56135
+ * Decodes a Takedown message from the specified reader or buffer, length delimited.
56136
+ * @function decodeDelimited
56137
+ * @memberof replit.goval.api.lore.Takedown
56138
+ * @static
56139
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56140
+ * @returns {replit.goval.api.lore.Takedown} Takedown
56141
+ * @throws {Error} If the payload is not a reader or valid buffer
56142
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56143
+ */
56144
+ Takedown.decodeDelimited = function decodeDelimited(reader) {
56145
+ if (!(reader instanceof $Reader))
56146
+ reader = new $Reader(reader);
56147
+ return this.decode(reader, reader.uint32());
56148
+ };
56149
+
56150
+ /**
56151
+ * Verifies a Takedown message.
56152
+ * @function verify
56153
+ * @memberof replit.goval.api.lore.Takedown
56154
+ * @static
56155
+ * @param {Object.<string,*>} message Plain object to verify
56156
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56157
+ */
56158
+ Takedown.verify = function verify(message) {
56159
+ if (typeof message !== "object" || message === null)
56160
+ return "object expected";
56161
+ if (message.replId != null && message.hasOwnProperty("replId"))
56162
+ if (!$util.isString(message.replId))
56163
+ return "replId: string expected";
56164
+ return null;
56165
+ };
56166
+
56167
+ /**
56168
+ * Creates a Takedown message from a plain object. Also converts values to their respective internal types.
56169
+ * @function fromObject
56170
+ * @memberof replit.goval.api.lore.Takedown
56171
+ * @static
56172
+ * @param {Object.<string,*>} object Plain object
56173
+ * @returns {replit.goval.api.lore.Takedown} Takedown
56174
+ */
56175
+ Takedown.fromObject = function fromObject(object) {
56176
+ if (object instanceof $root.replit.goval.api.lore.Takedown)
56177
+ return object;
56178
+ var message = new $root.replit.goval.api.lore.Takedown();
56179
+ if (object.replId != null)
56180
+ message.replId = String(object.replId);
56181
+ return message;
56182
+ };
56183
+
56184
+ /**
56185
+ * Creates a plain object from a Takedown message. Also converts values to other types if specified.
56186
+ * @function toObject
56187
+ * @memberof replit.goval.api.lore.Takedown
56188
+ * @static
56189
+ * @param {replit.goval.api.lore.Takedown} message Takedown
56190
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56191
+ * @returns {Object.<string,*>} Plain object
56192
+ */
56193
+ Takedown.toObject = function toObject(message, options) {
56194
+ if (!options)
56195
+ options = {};
56196
+ var object = {};
56197
+ if (options.defaults)
56198
+ object.replId = "";
56199
+ if (message.replId != null && message.hasOwnProperty("replId"))
56200
+ object.replId = message.replId;
56201
+ return object;
56202
+ };
56203
+
56204
+ /**
56205
+ * Converts this Takedown to JSON.
56206
+ * @function toJSON
56207
+ * @memberof replit.goval.api.lore.Takedown
56208
+ * @instance
56209
+ * @returns {Object.<string,*>} JSON object
56210
+ */
56211
+ Takedown.prototype.toJSON = function toJSON() {
56212
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56213
+ };
56214
+
56215
+ return Takedown;
56216
+ })();
56217
+
56218
+ lore.GovalCommand = (function() {
56219
+
56220
+ /**
56221
+ * Properties of a GovalCommand.
56222
+ * @memberof replit.goval.api.lore
56223
+ * @interface IGovalCommand
56224
+ * @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
56225
+ * @property {replit.goval.api.lore.PartialUpdateMetadata|replit.goval.api.lore.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
56226
+ * @property {replit.goval.api.lore.KillRepl|replit.goval.api.lore.IKillRepl|null} [killRepl] GovalCommand killRepl
56227
+ * @property {replit.goval.api.lore.UpdateSourceRepl|replit.goval.api.lore.IUpdateSourceRepl|null} [updateSourceRepl] GovalCommand updateSourceRepl
56228
+ * @property {replit.goval.api.lore.UpdateReplFlags|replit.goval.api.lore.IUpdateReplFlags|null} [updateReplFlags] GovalCommand updateReplFlags
56229
+ * @property {replit.goval.api.lore.SoftTakedown|replit.goval.api.lore.ISoftTakedown|null} [softTakedown] GovalCommand softTakedown
56230
+ * @property {replit.goval.api.lore.Takedown|replit.goval.api.lore.ITakedown|null} [takedown] GovalCommand takedown
56231
+ */
56232
+
56233
+ /**
56234
+ * Constructs a new GovalCommand.
56235
+ * @memberof replit.goval.api.lore
56236
+ * @classdesc Represents a GovalCommand.
56237
+ * @constructor
56238
+ * @param {replit.goval.api.lore.IGovalCommand=} [properties] Properties to set
56239
+ */
56240
+ function GovalCommand(properties) {
56241
+ if (properties)
56242
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56243
+ if (properties[keys[i]] != null)
56244
+ this[keys[i]] = properties[keys[i]];
56245
+ }
56246
+
56247
+ /**
56248
+ * GovalCommand updateMetadata.
56249
+ * @member {replit.goval.api.repl.Metadata|null|undefined} updateMetadata
56250
+ * @memberof replit.goval.api.lore.GovalCommand
56251
+ * @instance
56252
+ */
56253
+ GovalCommand.prototype.updateMetadata = null;
56254
+
56255
+ /**
56256
+ * GovalCommand partialUpdateMetadata.
56257
+ * @member {replit.goval.api.lore.PartialUpdateMetadata|null|undefined} partialUpdateMetadata
56258
+ * @memberof replit.goval.api.lore.GovalCommand
56259
+ * @instance
56260
+ */
56261
+ GovalCommand.prototype.partialUpdateMetadata = null;
56262
+
56263
+ /**
56264
+ * GovalCommand killRepl.
56265
+ * @member {replit.goval.api.lore.KillRepl|null|undefined} killRepl
56266
+ * @memberof replit.goval.api.lore.GovalCommand
56267
+ * @instance
56268
+ */
56269
+ GovalCommand.prototype.killRepl = null;
56270
+
56271
+ /**
56272
+ * GovalCommand updateSourceRepl.
56273
+ * @member {replit.goval.api.lore.UpdateSourceRepl|null|undefined} updateSourceRepl
56274
+ * @memberof replit.goval.api.lore.GovalCommand
56275
+ * @instance
56276
+ */
56277
+ GovalCommand.prototype.updateSourceRepl = null;
56278
+
56279
+ /**
56280
+ * GovalCommand updateReplFlags.
56281
+ * @member {replit.goval.api.lore.UpdateReplFlags|null|undefined} updateReplFlags
56282
+ * @memberof replit.goval.api.lore.GovalCommand
56283
+ * @instance
56284
+ */
56285
+ GovalCommand.prototype.updateReplFlags = null;
56286
+
56287
+ /**
56288
+ * GovalCommand softTakedown.
56289
+ * @member {replit.goval.api.lore.SoftTakedown|null|undefined} softTakedown
56290
+ * @memberof replit.goval.api.lore.GovalCommand
56291
+ * @instance
56292
+ */
56293
+ GovalCommand.prototype.softTakedown = null;
56294
+
56295
+ /**
56296
+ * GovalCommand takedown.
56297
+ * @member {replit.goval.api.lore.Takedown|null|undefined} takedown
56298
+ * @memberof replit.goval.api.lore.GovalCommand
56299
+ * @instance
56300
+ */
56301
+ GovalCommand.prototype.takedown = null;
56302
+
56303
+ // OneOf field names bound to virtual getters and setters
56304
+ var $oneOfFields;
56305
+
56306
+ /**
56307
+ * GovalCommand command.
56308
+ * @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|"updateSourceRepl"|"updateReplFlags"|"softTakedown"|"takedown"|undefined} command
56309
+ * @memberof replit.goval.api.lore.GovalCommand
56310
+ * @instance
56311
+ */
56312
+ Object.defineProperty(GovalCommand.prototype, "command", {
56313
+ get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl", "updateSourceRepl", "updateReplFlags", "softTakedown", "takedown"]),
56314
+ set: $util.oneOfSetter($oneOfFields)
56315
+ });
56316
+
56317
+ /**
56318
+ * Creates a new GovalCommand instance using the specified properties.
56319
+ * @function create
56320
+ * @memberof replit.goval.api.lore.GovalCommand
56321
+ * @static
56322
+ * @param {replit.goval.api.lore.IGovalCommand=} [properties] Properties to set
56323
+ * @returns {replit.goval.api.lore.GovalCommand} GovalCommand instance
56324
+ */
56325
+ GovalCommand.create = function create(properties) {
56326
+ return GovalCommand.fromObject(properties);
56327
+ };
56328
+
56329
+ /**
56330
+ * Encodes the specified GovalCommand message. Does not implicitly {@link replit.goval.api.lore.GovalCommand.verify|verify} messages.
56331
+ * @function encode
56332
+ * @memberof replit.goval.api.lore.GovalCommand
56333
+ * @static
56334
+ * @param {replit.goval.api.lore.GovalCommand} message GovalCommand message or plain object to encode
56335
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56336
+ * @returns {$protobuf.Writer} Writer
56337
+ */
56338
+ GovalCommand.encode = function encode(message, writer) {
56339
+ if (!writer)
56340
+ writer = $Writer.create();
56341
+ if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
56342
+ $root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
56343
+ if (message.partialUpdateMetadata != null && Object.hasOwnProperty.call(message, "partialUpdateMetadata"))
56344
+ $root.replit.goval.api.lore.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
56345
+ if (message.killRepl != null && Object.hasOwnProperty.call(message, "killRepl"))
56346
+ $root.replit.goval.api.lore.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
56347
+ if (message.updateSourceRepl != null && Object.hasOwnProperty.call(message, "updateSourceRepl"))
56348
+ $root.replit.goval.api.lore.UpdateSourceRepl.encode(message.updateSourceRepl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
56349
+ if (message.updateReplFlags != null && Object.hasOwnProperty.call(message, "updateReplFlags"))
56350
+ $root.replit.goval.api.lore.UpdateReplFlags.encode(message.updateReplFlags, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
56351
+ if (message.softTakedown != null && Object.hasOwnProperty.call(message, "softTakedown"))
56352
+ $root.replit.goval.api.lore.SoftTakedown.encode(message.softTakedown, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
56353
+ if (message.takedown != null && Object.hasOwnProperty.call(message, "takedown"))
56354
+ $root.replit.goval.api.lore.Takedown.encode(message.takedown, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
56355
+ return writer;
56356
+ };
56357
+
56358
+ /**
56359
+ * Encodes the specified GovalCommand message, length delimited. Does not implicitly {@link replit.goval.api.lore.GovalCommand.verify|verify} messages.
56360
+ * @function encodeDelimited
56361
+ * @memberof replit.goval.api.lore.GovalCommand
56362
+ * @static
56363
+ * @param {replit.goval.api.lore.GovalCommand} message GovalCommand message or plain object to encode
56364
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56365
+ * @returns {$protobuf.Writer} Writer
56366
+ */
56367
+ GovalCommand.encodeDelimited = function encodeDelimited(message, writer) {
56368
+ return this.encode(message, writer).ldelim();
56369
+ };
56370
+
56371
+ /**
56372
+ * Decodes a GovalCommand message from the specified reader or buffer.
56373
+ * @function decode
56374
+ * @memberof replit.goval.api.lore.GovalCommand
56375
+ * @static
56376
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56377
+ * @param {number} [length] Message length if known beforehand
56378
+ * @returns {replit.goval.api.lore.GovalCommand} GovalCommand
56379
+ * @throws {Error} If the payload is not a reader or valid buffer
56380
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56381
+ */
56382
+ GovalCommand.decode = function decode(reader, length) {
56383
+ if (!(reader instanceof $Reader))
56384
+ reader = $Reader.create(reader);
56385
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.GovalCommand();
56386
+ while (reader.pos < end) {
56387
+ var tag = reader.uint32();
56388
+ switch (tag >>> 3) {
56389
+ case 1:
56390
+ message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
56391
+ break;
56392
+ case 2:
56393
+ message.partialUpdateMetadata = $root.replit.goval.api.lore.PartialUpdateMetadata.decode(reader, reader.uint32());
56394
+ break;
56395
+ case 3:
56396
+ message.killRepl = $root.replit.goval.api.lore.KillRepl.decode(reader, reader.uint32());
56397
+ break;
56398
+ case 4:
56399
+ message.updateSourceRepl = $root.replit.goval.api.lore.UpdateSourceRepl.decode(reader, reader.uint32());
56400
+ break;
56401
+ case 5:
56402
+ message.updateReplFlags = $root.replit.goval.api.lore.UpdateReplFlags.decode(reader, reader.uint32());
56403
+ break;
56404
+ case 6:
56405
+ message.softTakedown = $root.replit.goval.api.lore.SoftTakedown.decode(reader, reader.uint32());
56406
+ break;
56407
+ case 7:
56408
+ message.takedown = $root.replit.goval.api.lore.Takedown.decode(reader, reader.uint32());
56409
+ break;
56410
+ default:
56411
+ reader.skipType(tag & 7);
56412
+ break;
56413
+ }
56414
+ }
56415
+ return message;
56416
+ };
56417
+
56418
+ /**
56419
+ * Decodes a GovalCommand message from the specified reader or buffer, length delimited.
56420
+ * @function decodeDelimited
56421
+ * @memberof replit.goval.api.lore.GovalCommand
56422
+ * @static
56423
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56424
+ * @returns {replit.goval.api.lore.GovalCommand} GovalCommand
56425
+ * @throws {Error} If the payload is not a reader or valid buffer
56426
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56427
+ */
56428
+ GovalCommand.decodeDelimited = function decodeDelimited(reader) {
56429
+ if (!(reader instanceof $Reader))
56430
+ reader = new $Reader(reader);
56431
+ return this.decode(reader, reader.uint32());
56432
+ };
56433
+
56434
+ /**
56435
+ * Verifies a GovalCommand message.
56436
+ * @function verify
56437
+ * @memberof replit.goval.api.lore.GovalCommand
56438
+ * @static
56439
+ * @param {Object.<string,*>} message Plain object to verify
56440
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56441
+ */
56442
+ GovalCommand.verify = function verify(message) {
56443
+ if (typeof message !== "object" || message === null)
56444
+ return "object expected";
56445
+ var properties = {};
56446
+ if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
56447
+ properties.command = 1;
56448
+ {
56449
+ var error = $root.replit.goval.api.repl.Metadata.verify(message.updateMetadata);
56450
+ if (error)
56451
+ return "updateMetadata." + error;
56452
+ }
56453
+ }
56454
+ if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
56455
+ if (properties.command === 1)
56456
+ return "command: multiple values";
56457
+ properties.command = 1;
56458
+ {
56459
+ var error = $root.replit.goval.api.lore.PartialUpdateMetadata.verify(message.partialUpdateMetadata);
56460
+ if (error)
56461
+ return "partialUpdateMetadata." + error;
56462
+ }
56463
+ }
56464
+ if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
56465
+ if (properties.command === 1)
56466
+ return "command: multiple values";
56467
+ properties.command = 1;
56468
+ {
56469
+ var error = $root.replit.goval.api.lore.KillRepl.verify(message.killRepl);
56470
+ if (error)
56471
+ return "killRepl." + error;
56472
+ }
56473
+ }
56474
+ if (message.updateSourceRepl != null && message.hasOwnProperty("updateSourceRepl")) {
56475
+ if (properties.command === 1)
56476
+ return "command: multiple values";
56477
+ properties.command = 1;
56478
+ {
56479
+ var error = $root.replit.goval.api.lore.UpdateSourceRepl.verify(message.updateSourceRepl);
56480
+ if (error)
56481
+ return "updateSourceRepl." + error;
56482
+ }
56483
+ }
56484
+ if (message.updateReplFlags != null && message.hasOwnProperty("updateReplFlags")) {
56485
+ if (properties.command === 1)
56486
+ return "command: multiple values";
56487
+ properties.command = 1;
56488
+ {
56489
+ var error = $root.replit.goval.api.lore.UpdateReplFlags.verify(message.updateReplFlags);
56490
+ if (error)
56491
+ return "updateReplFlags." + error;
56492
+ }
56493
+ }
56494
+ if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
56495
+ if (properties.command === 1)
56496
+ return "command: multiple values";
56497
+ properties.command = 1;
56498
+ {
56499
+ var error = $root.replit.goval.api.lore.SoftTakedown.verify(message.softTakedown);
56500
+ if (error)
56501
+ return "softTakedown." + error;
56502
+ }
56503
+ }
56504
+ if (message.takedown != null && message.hasOwnProperty("takedown")) {
56505
+ if (properties.command === 1)
56506
+ return "command: multiple values";
56507
+ properties.command = 1;
56508
+ {
56509
+ var error = $root.replit.goval.api.lore.Takedown.verify(message.takedown);
56510
+ if (error)
56511
+ return "takedown." + error;
56512
+ }
56513
+ }
56514
+ return null;
56515
+ };
56516
+
56517
+ /**
56518
+ * Creates a GovalCommand message from a plain object. Also converts values to their respective internal types.
56519
+ * @function fromObject
56520
+ * @memberof replit.goval.api.lore.GovalCommand
56521
+ * @static
56522
+ * @param {Object.<string,*>} object Plain object
56523
+ * @returns {replit.goval.api.lore.GovalCommand} GovalCommand
56524
+ */
56525
+ GovalCommand.fromObject = function fromObject(object) {
56526
+ if (object instanceof $root.replit.goval.api.lore.GovalCommand)
56527
+ return object;
56528
+ var message = new $root.replit.goval.api.lore.GovalCommand();
56529
+ if (object.updateMetadata != null) {
56530
+ if (typeof object.updateMetadata !== "object")
56531
+ throw TypeError(".replit.goval.api.lore.GovalCommand.updateMetadata: object expected");
56532
+ message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
56533
+ }
56534
+ if (object.partialUpdateMetadata != null) {
56535
+ if (typeof object.partialUpdateMetadata !== "object")
56536
+ throw TypeError(".replit.goval.api.lore.GovalCommand.partialUpdateMetadata: object expected");
56537
+ message.partialUpdateMetadata = $root.replit.goval.api.lore.PartialUpdateMetadata.fromObject(object.partialUpdateMetadata);
56538
+ }
56539
+ if (object.killRepl != null) {
56540
+ if (typeof object.killRepl !== "object")
56541
+ throw TypeError(".replit.goval.api.lore.GovalCommand.killRepl: object expected");
56542
+ message.killRepl = $root.replit.goval.api.lore.KillRepl.fromObject(object.killRepl);
56543
+ }
56544
+ if (object.updateSourceRepl != null) {
56545
+ if (typeof object.updateSourceRepl !== "object")
56546
+ throw TypeError(".replit.goval.api.lore.GovalCommand.updateSourceRepl: object expected");
56547
+ message.updateSourceRepl = $root.replit.goval.api.lore.UpdateSourceRepl.fromObject(object.updateSourceRepl);
56548
+ }
56549
+ if (object.updateReplFlags != null) {
56550
+ if (typeof object.updateReplFlags !== "object")
56551
+ throw TypeError(".replit.goval.api.lore.GovalCommand.updateReplFlags: object expected");
56552
+ message.updateReplFlags = $root.replit.goval.api.lore.UpdateReplFlags.fromObject(object.updateReplFlags);
56553
+ }
56554
+ if (object.softTakedown != null) {
56555
+ if (typeof object.softTakedown !== "object")
56556
+ throw TypeError(".replit.goval.api.lore.GovalCommand.softTakedown: object expected");
56557
+ message.softTakedown = $root.replit.goval.api.lore.SoftTakedown.fromObject(object.softTakedown);
56558
+ }
56559
+ if (object.takedown != null) {
56560
+ if (typeof object.takedown !== "object")
56561
+ throw TypeError(".replit.goval.api.lore.GovalCommand.takedown: object expected");
56562
+ message.takedown = $root.replit.goval.api.lore.Takedown.fromObject(object.takedown);
56563
+ }
56564
+ return message;
56565
+ };
56566
+
56567
+ /**
56568
+ * Creates a plain object from a GovalCommand message. Also converts values to other types if specified.
56569
+ * @function toObject
56570
+ * @memberof replit.goval.api.lore.GovalCommand
56571
+ * @static
56572
+ * @param {replit.goval.api.lore.GovalCommand} message GovalCommand
56573
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56574
+ * @returns {Object.<string,*>} Plain object
56575
+ */
56576
+ GovalCommand.toObject = function toObject(message, options) {
56577
+ if (!options)
56578
+ options = {};
56579
+ var object = {};
56580
+ if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
56581
+ object.updateMetadata = $root.replit.goval.api.repl.Metadata.toObject(message.updateMetadata, options);
56582
+ if (options.oneofs)
56583
+ object.command = "updateMetadata";
56584
+ }
56585
+ if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
56586
+ object.partialUpdateMetadata = $root.replit.goval.api.lore.PartialUpdateMetadata.toObject(message.partialUpdateMetadata, options);
56587
+ if (options.oneofs)
56588
+ object.command = "partialUpdateMetadata";
56589
+ }
56590
+ if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
56591
+ object.killRepl = $root.replit.goval.api.lore.KillRepl.toObject(message.killRepl, options);
56592
+ if (options.oneofs)
56593
+ object.command = "killRepl";
56594
+ }
56595
+ if (message.updateSourceRepl != null && message.hasOwnProperty("updateSourceRepl")) {
56596
+ object.updateSourceRepl = $root.replit.goval.api.lore.UpdateSourceRepl.toObject(message.updateSourceRepl, options);
56597
+ if (options.oneofs)
56598
+ object.command = "updateSourceRepl";
56599
+ }
56600
+ if (message.updateReplFlags != null && message.hasOwnProperty("updateReplFlags")) {
56601
+ object.updateReplFlags = $root.replit.goval.api.lore.UpdateReplFlags.toObject(message.updateReplFlags, options);
56602
+ if (options.oneofs)
56603
+ object.command = "updateReplFlags";
56604
+ }
56605
+ if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
56606
+ object.softTakedown = $root.replit.goval.api.lore.SoftTakedown.toObject(message.softTakedown, options);
56607
+ if (options.oneofs)
56608
+ object.command = "softTakedown";
56609
+ }
56610
+ if (message.takedown != null && message.hasOwnProperty("takedown")) {
56611
+ object.takedown = $root.replit.goval.api.lore.Takedown.toObject(message.takedown, options);
56612
+ if (options.oneofs)
56613
+ object.command = "takedown";
56614
+ }
56615
+ return object;
56616
+ };
56617
+
56618
+ /**
56619
+ * Converts this GovalCommand to JSON.
56620
+ * @function toJSON
56621
+ * @memberof replit.goval.api.lore.GovalCommand
56622
+ * @instance
56623
+ * @returns {Object.<string,*>} JSON object
56624
+ */
56625
+ GovalCommand.prototype.toJSON = function toJSON() {
56626
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56627
+ };
56628
+
56629
+ return GovalCommand;
56630
+ })();
56631
+
56632
+ lore.PartialUpdateMetadata = (function() {
56633
+
56634
+ /**
56635
+ * Properties of a PartialUpdateMetadata.
56636
+ * @memberof replit.goval.api.lore
56637
+ * @interface IPartialUpdateMetadata
56638
+ * @property {google.protobuf.FieldMask|google.protobuf.IFieldMask|null} [fieldMask] PartialUpdateMetadata fieldMask
56639
+ * @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] PartialUpdateMetadata updateMetadata
56640
+ */
56641
+
56642
+ /**
56643
+ * Constructs a new PartialUpdateMetadata.
56644
+ * @memberof replit.goval.api.lore
56645
+ * @classdesc Represents a PartialUpdateMetadata.
56646
+ * @constructor
56647
+ * @param {replit.goval.api.lore.IPartialUpdateMetadata=} [properties] Properties to set
56648
+ */
56649
+ function PartialUpdateMetadata(properties) {
56650
+ if (properties)
56651
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56652
+ if (properties[keys[i]] != null)
56653
+ this[keys[i]] = properties[keys[i]];
56654
+ }
56655
+
56656
+ /**
56657
+ * PartialUpdateMetadata fieldMask.
56658
+ * @member {google.protobuf.FieldMask|null|undefined} fieldMask
56659
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56660
+ * @instance
56661
+ */
56662
+ PartialUpdateMetadata.prototype.fieldMask = null;
56663
+
56664
+ /**
56665
+ * PartialUpdateMetadata updateMetadata.
56666
+ * @member {replit.goval.api.repl.Metadata|null|undefined} updateMetadata
56667
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56668
+ * @instance
56669
+ */
56670
+ PartialUpdateMetadata.prototype.updateMetadata = null;
56671
+
56672
+ /**
56673
+ * Creates a new PartialUpdateMetadata instance using the specified properties.
56674
+ * @function create
56675
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56676
+ * @static
56677
+ * @param {replit.goval.api.lore.IPartialUpdateMetadata=} [properties] Properties to set
56678
+ * @returns {replit.goval.api.lore.PartialUpdateMetadata} PartialUpdateMetadata instance
56679
+ */
56680
+ PartialUpdateMetadata.create = function create(properties) {
56681
+ return PartialUpdateMetadata.fromObject(properties);
56682
+ };
56683
+
56684
+ /**
56685
+ * Encodes the specified PartialUpdateMetadata message. Does not implicitly {@link replit.goval.api.lore.PartialUpdateMetadata.verify|verify} messages.
56686
+ * @function encode
56687
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56688
+ * @static
56689
+ * @param {replit.goval.api.lore.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
56690
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56691
+ * @returns {$protobuf.Writer} Writer
56692
+ */
56693
+ PartialUpdateMetadata.encode = function encode(message, writer) {
56694
+ if (!writer)
56695
+ writer = $Writer.create();
56696
+ if (message.fieldMask != null && Object.hasOwnProperty.call(message, "fieldMask"))
56697
+ $root.google.protobuf.FieldMask.encode(message.fieldMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
56698
+ if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
56699
+ $root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
56700
+ return writer;
56701
+ };
56702
+
56703
+ /**
56704
+ * Encodes the specified PartialUpdateMetadata message, length delimited. Does not implicitly {@link replit.goval.api.lore.PartialUpdateMetadata.verify|verify} messages.
56705
+ * @function encodeDelimited
56706
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56707
+ * @static
56708
+ * @param {replit.goval.api.lore.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
56709
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56710
+ * @returns {$protobuf.Writer} Writer
56711
+ */
56712
+ PartialUpdateMetadata.encodeDelimited = function encodeDelimited(message, writer) {
56713
+ return this.encode(message, writer).ldelim();
56714
+ };
56715
+
56716
+ /**
56717
+ * Decodes a PartialUpdateMetadata message from the specified reader or buffer.
56718
+ * @function decode
56719
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56720
+ * @static
56721
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56722
+ * @param {number} [length] Message length if known beforehand
56723
+ * @returns {replit.goval.api.lore.PartialUpdateMetadata} PartialUpdateMetadata
56724
+ * @throws {Error} If the payload is not a reader or valid buffer
56725
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56726
+ */
56727
+ PartialUpdateMetadata.decode = function decode(reader, length) {
56728
+ if (!(reader instanceof $Reader))
56729
+ reader = $Reader.create(reader);
56730
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.PartialUpdateMetadata();
56731
+ while (reader.pos < end) {
56732
+ var tag = reader.uint32();
56733
+ switch (tag >>> 3) {
56734
+ case 1:
56735
+ message.fieldMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
56736
+ break;
56737
+ case 2:
56738
+ message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
56739
+ break;
56740
+ default:
56741
+ reader.skipType(tag & 7);
56742
+ break;
56743
+ }
56744
+ }
56745
+ return message;
56746
+ };
56747
+
56748
+ /**
56749
+ * Decodes a PartialUpdateMetadata message from the specified reader or buffer, length delimited.
56750
+ * @function decodeDelimited
56751
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56752
+ * @static
56753
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56754
+ * @returns {replit.goval.api.lore.PartialUpdateMetadata} PartialUpdateMetadata
56755
+ * @throws {Error} If the payload is not a reader or valid buffer
56756
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56757
+ */
56758
+ PartialUpdateMetadata.decodeDelimited = function decodeDelimited(reader) {
56759
+ if (!(reader instanceof $Reader))
56760
+ reader = new $Reader(reader);
56761
+ return this.decode(reader, reader.uint32());
56762
+ };
56763
+
56764
+ /**
56765
+ * Verifies a PartialUpdateMetadata message.
56766
+ * @function verify
56767
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56768
+ * @static
56769
+ * @param {Object.<string,*>} message Plain object to verify
56770
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56771
+ */
56772
+ PartialUpdateMetadata.verify = function verify(message) {
56773
+ if (typeof message !== "object" || message === null)
56774
+ return "object expected";
56775
+ if (message.fieldMask != null && message.hasOwnProperty("fieldMask")) {
56776
+ var error = $root.google.protobuf.FieldMask.verify(message.fieldMask);
56777
+ if (error)
56778
+ return "fieldMask." + error;
56779
+ }
56780
+ if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
56781
+ var error = $root.replit.goval.api.repl.Metadata.verify(message.updateMetadata);
56782
+ if (error)
56783
+ return "updateMetadata." + error;
56784
+ }
56785
+ return null;
56786
+ };
56787
+
56788
+ /**
56789
+ * Creates a PartialUpdateMetadata message from a plain object. Also converts values to their respective internal types.
56790
+ * @function fromObject
56791
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56792
+ * @static
56793
+ * @param {Object.<string,*>} object Plain object
56794
+ * @returns {replit.goval.api.lore.PartialUpdateMetadata} PartialUpdateMetadata
56795
+ */
56796
+ PartialUpdateMetadata.fromObject = function fromObject(object) {
56797
+ if (object instanceof $root.replit.goval.api.lore.PartialUpdateMetadata)
56798
+ return object;
56799
+ var message = new $root.replit.goval.api.lore.PartialUpdateMetadata();
56800
+ if (object.fieldMask != null) {
56801
+ if (typeof object.fieldMask !== "object")
56802
+ throw TypeError(".replit.goval.api.lore.PartialUpdateMetadata.fieldMask: object expected");
56803
+ message.fieldMask = $root.google.protobuf.FieldMask.fromObject(object.fieldMask);
56804
+ }
56805
+ if (object.updateMetadata != null) {
56806
+ if (typeof object.updateMetadata !== "object")
56807
+ throw TypeError(".replit.goval.api.lore.PartialUpdateMetadata.updateMetadata: object expected");
56808
+ message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
56809
+ }
56810
+ return message;
56811
+ };
56812
+
56813
+ /**
56814
+ * Creates a plain object from a PartialUpdateMetadata message. Also converts values to other types if specified.
56815
+ * @function toObject
56816
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56817
+ * @static
56818
+ * @param {replit.goval.api.lore.PartialUpdateMetadata} message PartialUpdateMetadata
56819
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
56820
+ * @returns {Object.<string,*>} Plain object
56821
+ */
56822
+ PartialUpdateMetadata.toObject = function toObject(message, options) {
56823
+ if (!options)
56824
+ options = {};
56825
+ var object = {};
56826
+ if (options.defaults) {
56827
+ object.fieldMask = null;
56828
+ object.updateMetadata = null;
56829
+ }
56830
+ if (message.fieldMask != null && message.hasOwnProperty("fieldMask"))
56831
+ object.fieldMask = $root.google.protobuf.FieldMask.toObject(message.fieldMask, options);
56832
+ if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata"))
56833
+ object.updateMetadata = $root.replit.goval.api.repl.Metadata.toObject(message.updateMetadata, options);
56834
+ return object;
56835
+ };
56836
+
56837
+ /**
56838
+ * Converts this PartialUpdateMetadata to JSON.
56839
+ * @function toJSON
56840
+ * @memberof replit.goval.api.lore.PartialUpdateMetadata
56841
+ * @instance
56842
+ * @returns {Object.<string,*>} JSON object
56843
+ */
56844
+ PartialUpdateMetadata.prototype.toJSON = function toJSON() {
56845
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
56846
+ };
56847
+
56848
+ return PartialUpdateMetadata;
56849
+ })();
56850
+
56851
+ lore.MultiGovalCommand = (function() {
56852
+
56853
+ /**
56854
+ * Properties of a MultiGovalCommand.
56855
+ * @memberof replit.goval.api.lore
56856
+ * @interface IMultiGovalCommand
56857
+ * @property {string|null} [replId] MultiGovalCommand replId
56858
+ * @property {Array.<replit.goval.api.lore.GovalCommand|replit.goval.api.lore.IGovalCommand>|null} [govalCommands] MultiGovalCommand govalCommands
56859
+ */
56860
+
56861
+ /**
56862
+ * Constructs a new MultiGovalCommand.
56863
+ * @memberof replit.goval.api.lore
56864
+ * @classdesc Represents a MultiGovalCommand.
56865
+ * @constructor
56866
+ * @param {replit.goval.api.lore.IMultiGovalCommand=} [properties] Properties to set
56867
+ */
56868
+ function MultiGovalCommand(properties) {
56869
+ this.govalCommands = [];
56870
+ if (properties)
56871
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
56872
+ if (properties[keys[i]] != null)
56873
+ this[keys[i]] = properties[keys[i]];
56874
+ }
56875
+
56876
+ /**
56877
+ * MultiGovalCommand replId.
56878
+ * @member {string} replId
56879
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56880
+ * @instance
56881
+ */
56882
+ MultiGovalCommand.prototype.replId = "";
56883
+
56884
+ /**
56885
+ * MultiGovalCommand govalCommands.
56886
+ * @member {Array.<replit.goval.api.lore.GovalCommand>} govalCommands
56887
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56888
+ * @instance
56889
+ */
56890
+ MultiGovalCommand.prototype.govalCommands = $util.emptyArray;
56891
+
56892
+ /**
56893
+ * Creates a new MultiGovalCommand instance using the specified properties.
56894
+ * @function create
56895
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56896
+ * @static
56897
+ * @param {replit.goval.api.lore.IMultiGovalCommand=} [properties] Properties to set
56898
+ * @returns {replit.goval.api.lore.MultiGovalCommand} MultiGovalCommand instance
56899
+ */
56900
+ MultiGovalCommand.create = function create(properties) {
56901
+ return MultiGovalCommand.fromObject(properties);
56902
+ };
56903
+
56904
+ /**
56905
+ * Encodes the specified MultiGovalCommand message. Does not implicitly {@link replit.goval.api.lore.MultiGovalCommand.verify|verify} messages.
56906
+ * @function encode
56907
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56908
+ * @static
56909
+ * @param {replit.goval.api.lore.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
56910
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56911
+ * @returns {$protobuf.Writer} Writer
56912
+ */
56913
+ MultiGovalCommand.encode = function encode(message, writer) {
56914
+ if (!writer)
56915
+ writer = $Writer.create();
56916
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
56917
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
56918
+ if (message.govalCommands != null && message.govalCommands.length)
56919
+ for (var i = 0; i < message.govalCommands.length; ++i)
56920
+ $root.replit.goval.api.lore.GovalCommand.encode(message.govalCommands[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
56921
+ return writer;
56922
+ };
56923
+
56924
+ /**
56925
+ * Encodes the specified MultiGovalCommand message, length delimited. Does not implicitly {@link replit.goval.api.lore.MultiGovalCommand.verify|verify} messages.
56926
+ * @function encodeDelimited
56927
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56928
+ * @static
56929
+ * @param {replit.goval.api.lore.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
56930
+ * @param {$protobuf.Writer} [writer] Writer to encode to
56931
+ * @returns {$protobuf.Writer} Writer
56932
+ */
56933
+ MultiGovalCommand.encodeDelimited = function encodeDelimited(message, writer) {
56934
+ return this.encode(message, writer).ldelim();
56935
+ };
56936
+
56937
+ /**
56938
+ * Decodes a MultiGovalCommand message from the specified reader or buffer.
56939
+ * @function decode
56940
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56941
+ * @static
56942
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56943
+ * @param {number} [length] Message length if known beforehand
56944
+ * @returns {replit.goval.api.lore.MultiGovalCommand} MultiGovalCommand
56945
+ * @throws {Error} If the payload is not a reader or valid buffer
56946
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56947
+ */
56948
+ MultiGovalCommand.decode = function decode(reader, length) {
56949
+ if (!(reader instanceof $Reader))
56950
+ reader = $Reader.create(reader);
56951
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.MultiGovalCommand();
56952
+ while (reader.pos < end) {
56953
+ var tag = reader.uint32();
56954
+ switch (tag >>> 3) {
56955
+ case 1:
56956
+ message.replId = reader.string();
56957
+ break;
56958
+ case 2:
56959
+ if (!(message.govalCommands && message.govalCommands.length))
56960
+ message.govalCommands = [];
56961
+ message.govalCommands.push($root.replit.goval.api.lore.GovalCommand.decode(reader, reader.uint32()));
56962
+ break;
56963
+ default:
56964
+ reader.skipType(tag & 7);
56965
+ break;
56966
+ }
56967
+ }
56968
+ return message;
56969
+ };
56970
+
56971
+ /**
56972
+ * Decodes a MultiGovalCommand message from the specified reader or buffer, length delimited.
56973
+ * @function decodeDelimited
56974
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56975
+ * @static
56976
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
56977
+ * @returns {replit.goval.api.lore.MultiGovalCommand} MultiGovalCommand
56978
+ * @throws {Error} If the payload is not a reader or valid buffer
56979
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
56980
+ */
56981
+ MultiGovalCommand.decodeDelimited = function decodeDelimited(reader) {
56982
+ if (!(reader instanceof $Reader))
56983
+ reader = new $Reader(reader);
56984
+ return this.decode(reader, reader.uint32());
56985
+ };
56986
+
56987
+ /**
56988
+ * Verifies a MultiGovalCommand message.
56989
+ * @function verify
56990
+ * @memberof replit.goval.api.lore.MultiGovalCommand
56991
+ * @static
56992
+ * @param {Object.<string,*>} message Plain object to verify
56993
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
56994
+ */
56995
+ MultiGovalCommand.verify = function verify(message) {
56996
+ if (typeof message !== "object" || message === null)
56997
+ return "object expected";
56998
+ if (message.replId != null && message.hasOwnProperty("replId"))
56999
+ if (!$util.isString(message.replId))
57000
+ return "replId: string expected";
57001
+ if (message.govalCommands != null && message.hasOwnProperty("govalCommands")) {
57002
+ if (!Array.isArray(message.govalCommands))
57003
+ return "govalCommands: array expected";
57004
+ for (var i = 0; i < message.govalCommands.length; ++i) {
57005
+ var error = $root.replit.goval.api.lore.GovalCommand.verify(message.govalCommands[i]);
57006
+ if (error)
57007
+ return "govalCommands." + error;
57008
+ }
57009
+ }
57010
+ return null;
57011
+ };
57012
+
57013
+ /**
57014
+ * Creates a MultiGovalCommand message from a plain object. Also converts values to their respective internal types.
57015
+ * @function fromObject
57016
+ * @memberof replit.goval.api.lore.MultiGovalCommand
57017
+ * @static
57018
+ * @param {Object.<string,*>} object Plain object
57019
+ * @returns {replit.goval.api.lore.MultiGovalCommand} MultiGovalCommand
57020
+ */
57021
+ MultiGovalCommand.fromObject = function fromObject(object) {
57022
+ if (object instanceof $root.replit.goval.api.lore.MultiGovalCommand)
57023
+ return object;
57024
+ var message = new $root.replit.goval.api.lore.MultiGovalCommand();
57025
+ if (object.replId != null)
57026
+ message.replId = String(object.replId);
57027
+ if (object.govalCommands) {
57028
+ if (!Array.isArray(object.govalCommands))
57029
+ throw TypeError(".replit.goval.api.lore.MultiGovalCommand.govalCommands: array expected");
57030
+ message.govalCommands = [];
57031
+ for (var i = 0; i < object.govalCommands.length; ++i) {
57032
+ if (typeof object.govalCommands[i] !== "object")
57033
+ throw TypeError(".replit.goval.api.lore.MultiGovalCommand.govalCommands: object expected");
57034
+ message.govalCommands[i] = $root.replit.goval.api.lore.GovalCommand.fromObject(object.govalCommands[i]);
57035
+ }
57036
+ }
57037
+ return message;
57038
+ };
57039
+
57040
+ /**
57041
+ * Creates a plain object from a MultiGovalCommand message. Also converts values to other types if specified.
57042
+ * @function toObject
57043
+ * @memberof replit.goval.api.lore.MultiGovalCommand
57044
+ * @static
57045
+ * @param {replit.goval.api.lore.MultiGovalCommand} message MultiGovalCommand
57046
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57047
+ * @returns {Object.<string,*>} Plain object
57048
+ */
57049
+ MultiGovalCommand.toObject = function toObject(message, options) {
57050
+ if (!options)
57051
+ options = {};
57052
+ var object = {};
57053
+ if (options.arrays || options.defaults)
57054
+ object.govalCommands = [];
57055
+ if (options.defaults)
57056
+ object.replId = "";
57057
+ if (message.replId != null && message.hasOwnProperty("replId"))
57058
+ object.replId = message.replId;
57059
+ if (message.govalCommands && message.govalCommands.length) {
57060
+ object.govalCommands = [];
57061
+ for (var j = 0; j < message.govalCommands.length; ++j)
57062
+ object.govalCommands[j] = $root.replit.goval.api.lore.GovalCommand.toObject(message.govalCommands[j], options);
57063
+ }
57064
+ return object;
57065
+ };
57066
+
57067
+ /**
57068
+ * Converts this MultiGovalCommand to JSON.
57069
+ * @function toJSON
57070
+ * @memberof replit.goval.api.lore.MultiGovalCommand
57071
+ * @instance
57072
+ * @returns {Object.<string,*>} JSON object
57073
+ */
57074
+ MultiGovalCommand.prototype.toJSON = function toJSON() {
57075
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57076
+ };
57077
+
57078
+ return MultiGovalCommand;
57079
+ })();
57080
+
57081
+ lore.KillRepl = (function() {
57082
+
57083
+ /**
57084
+ * Properties of a KillRepl.
57085
+ * @memberof replit.goval.api.lore
57086
+ * @interface IKillRepl
57087
+ * @property {string|null} [replId] KillRepl replId
57088
+ */
57089
+
57090
+ /**
57091
+ * Constructs a new KillRepl.
57092
+ * @memberof replit.goval.api.lore
57093
+ * @classdesc Represents a KillRepl.
57094
+ * @constructor
57095
+ * @param {replit.goval.api.lore.IKillRepl=} [properties] Properties to set
57096
+ */
57097
+ function KillRepl(properties) {
57098
+ if (properties)
57099
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57100
+ if (properties[keys[i]] != null)
57101
+ this[keys[i]] = properties[keys[i]];
57102
+ }
57103
+
57104
+ /**
57105
+ * KillRepl replId.
57106
+ * @member {string} replId
57107
+ * @memberof replit.goval.api.lore.KillRepl
57108
+ * @instance
57109
+ */
57110
+ KillRepl.prototype.replId = "";
57111
+
57112
+ /**
57113
+ * Creates a new KillRepl instance using the specified properties.
57114
+ * @function create
57115
+ * @memberof replit.goval.api.lore.KillRepl
57116
+ * @static
57117
+ * @param {replit.goval.api.lore.IKillRepl=} [properties] Properties to set
57118
+ * @returns {replit.goval.api.lore.KillRepl} KillRepl instance
57119
+ */
57120
+ KillRepl.create = function create(properties) {
57121
+ return KillRepl.fromObject(properties);
57122
+ };
57123
+
57124
+ /**
57125
+ * Encodes the specified KillRepl message. Does not implicitly {@link replit.goval.api.lore.KillRepl.verify|verify} messages.
57126
+ * @function encode
57127
+ * @memberof replit.goval.api.lore.KillRepl
57128
+ * @static
57129
+ * @param {replit.goval.api.lore.KillRepl} message KillRepl message or plain object to encode
57130
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57131
+ * @returns {$protobuf.Writer} Writer
57132
+ */
57133
+ KillRepl.encode = function encode(message, writer) {
57134
+ if (!writer)
57135
+ writer = $Writer.create();
57136
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
57137
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
57138
+ return writer;
57139
+ };
57140
+
57141
+ /**
57142
+ * Encodes the specified KillRepl message, length delimited. Does not implicitly {@link replit.goval.api.lore.KillRepl.verify|verify} messages.
57143
+ * @function encodeDelimited
57144
+ * @memberof replit.goval.api.lore.KillRepl
57145
+ * @static
57146
+ * @param {replit.goval.api.lore.KillRepl} message KillRepl message or plain object to encode
57147
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57148
+ * @returns {$protobuf.Writer} Writer
57149
+ */
57150
+ KillRepl.encodeDelimited = function encodeDelimited(message, writer) {
57151
+ return this.encode(message, writer).ldelim();
57152
+ };
57153
+
57154
+ /**
57155
+ * Decodes a KillRepl message from the specified reader or buffer.
57156
+ * @function decode
57157
+ * @memberof replit.goval.api.lore.KillRepl
57158
+ * @static
57159
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57160
+ * @param {number} [length] Message length if known beforehand
57161
+ * @returns {replit.goval.api.lore.KillRepl} KillRepl
57162
+ * @throws {Error} If the payload is not a reader or valid buffer
57163
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57164
+ */
57165
+ KillRepl.decode = function decode(reader, length) {
57166
+ if (!(reader instanceof $Reader))
57167
+ reader = $Reader.create(reader);
57168
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.KillRepl();
57169
+ while (reader.pos < end) {
57170
+ var tag = reader.uint32();
57171
+ switch (tag >>> 3) {
57172
+ case 1:
57173
+ message.replId = reader.string();
57174
+ break;
57175
+ default:
57176
+ reader.skipType(tag & 7);
57177
+ break;
57178
+ }
57179
+ }
57180
+ return message;
57181
+ };
57182
+
57183
+ /**
57184
+ * Decodes a KillRepl message from the specified reader or buffer, length delimited.
57185
+ * @function decodeDelimited
57186
+ * @memberof replit.goval.api.lore.KillRepl
57187
+ * @static
57188
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57189
+ * @returns {replit.goval.api.lore.KillRepl} KillRepl
57190
+ * @throws {Error} If the payload is not a reader or valid buffer
57191
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57192
+ */
57193
+ KillRepl.decodeDelimited = function decodeDelimited(reader) {
57194
+ if (!(reader instanceof $Reader))
57195
+ reader = new $Reader(reader);
57196
+ return this.decode(reader, reader.uint32());
57197
+ };
57198
+
57199
+ /**
57200
+ * Verifies a KillRepl message.
57201
+ * @function verify
57202
+ * @memberof replit.goval.api.lore.KillRepl
57203
+ * @static
57204
+ * @param {Object.<string,*>} message Plain object to verify
57205
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57206
+ */
57207
+ KillRepl.verify = function verify(message) {
57208
+ if (typeof message !== "object" || message === null)
57209
+ return "object expected";
57210
+ if (message.replId != null && message.hasOwnProperty("replId"))
57211
+ if (!$util.isString(message.replId))
57212
+ return "replId: string expected";
57213
+ return null;
57214
+ };
57215
+
57216
+ /**
57217
+ * Creates a KillRepl message from a plain object. Also converts values to their respective internal types.
57218
+ * @function fromObject
57219
+ * @memberof replit.goval.api.lore.KillRepl
57220
+ * @static
57221
+ * @param {Object.<string,*>} object Plain object
57222
+ * @returns {replit.goval.api.lore.KillRepl} KillRepl
57223
+ */
57224
+ KillRepl.fromObject = function fromObject(object) {
57225
+ if (object instanceof $root.replit.goval.api.lore.KillRepl)
57226
+ return object;
57227
+ var message = new $root.replit.goval.api.lore.KillRepl();
57228
+ if (object.replId != null)
57229
+ message.replId = String(object.replId);
57230
+ return message;
57231
+ };
57232
+
57233
+ /**
57234
+ * Creates a plain object from a KillRepl message. Also converts values to other types if specified.
57235
+ * @function toObject
57236
+ * @memberof replit.goval.api.lore.KillRepl
57237
+ * @static
57238
+ * @param {replit.goval.api.lore.KillRepl} message KillRepl
57239
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57240
+ * @returns {Object.<string,*>} Plain object
57241
+ */
57242
+ KillRepl.toObject = function toObject(message, options) {
57243
+ if (!options)
57244
+ options = {};
57245
+ var object = {};
57246
+ if (options.defaults)
57247
+ object.replId = "";
57248
+ if (message.replId != null && message.hasOwnProperty("replId"))
57249
+ object.replId = message.replId;
57250
+ return object;
57251
+ };
57252
+
57253
+ /**
57254
+ * Converts this KillRepl to JSON.
57255
+ * @function toJSON
57256
+ * @memberof replit.goval.api.lore.KillRepl
57257
+ * @instance
57258
+ * @returns {Object.<string,*>} JSON object
57259
+ */
57260
+ KillRepl.prototype.toJSON = function toJSON() {
57261
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57262
+ };
57263
+
57264
+ return KillRepl;
57265
+ })();
57266
+
57267
+ lore.Restore = (function() {
57268
+
57269
+ /**
57270
+ * Properties of a Restore.
57271
+ * @memberof replit.goval.api.lore
57272
+ * @interface IRestore
57273
+ * @property {string|null} [replId] Restore replId
57274
+ * @property {string|null} [restoreReplId] Restore restoreReplId
57275
+ */
57276
+
57277
+ /**
57278
+ * Constructs a new Restore.
57279
+ * @memberof replit.goval.api.lore
57280
+ * @classdesc Represents a Restore.
57281
+ * @constructor
57282
+ * @param {replit.goval.api.lore.IRestore=} [properties] Properties to set
57283
+ */
57284
+ function Restore(properties) {
57285
+ if (properties)
57286
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57287
+ if (properties[keys[i]] != null)
57288
+ this[keys[i]] = properties[keys[i]];
57289
+ }
57290
+
57291
+ /**
57292
+ * Restore replId.
57293
+ * @member {string} replId
57294
+ * @memberof replit.goval.api.lore.Restore
57295
+ * @instance
57296
+ */
57297
+ Restore.prototype.replId = "";
57298
+
57299
+ /**
57300
+ * Restore restoreReplId.
57301
+ * @member {string} restoreReplId
57302
+ * @memberof replit.goval.api.lore.Restore
57303
+ * @instance
57304
+ */
57305
+ Restore.prototype.restoreReplId = "";
57306
+
57307
+ /**
57308
+ * Creates a new Restore instance using the specified properties.
57309
+ * @function create
57310
+ * @memberof replit.goval.api.lore.Restore
57311
+ * @static
57312
+ * @param {replit.goval.api.lore.IRestore=} [properties] Properties to set
57313
+ * @returns {replit.goval.api.lore.Restore} Restore instance
57314
+ */
57315
+ Restore.create = function create(properties) {
57316
+ return Restore.fromObject(properties);
57317
+ };
57318
+
57319
+ /**
57320
+ * Encodes the specified Restore message. Does not implicitly {@link replit.goval.api.lore.Restore.verify|verify} messages.
57321
+ * @function encode
57322
+ * @memberof replit.goval.api.lore.Restore
57323
+ * @static
57324
+ * @param {replit.goval.api.lore.Restore} message Restore message or plain object to encode
57325
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57326
+ * @returns {$protobuf.Writer} Writer
57327
+ */
57328
+ Restore.encode = function encode(message, writer) {
57329
+ if (!writer)
57330
+ writer = $Writer.create();
57331
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
57332
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
57333
+ if (message.restoreReplId != null && Object.hasOwnProperty.call(message, "restoreReplId"))
57334
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.restoreReplId);
57335
+ return writer;
57336
+ };
57337
+
57338
+ /**
57339
+ * Encodes the specified Restore message, length delimited. Does not implicitly {@link replit.goval.api.lore.Restore.verify|verify} messages.
57340
+ * @function encodeDelimited
57341
+ * @memberof replit.goval.api.lore.Restore
57342
+ * @static
57343
+ * @param {replit.goval.api.lore.Restore} message Restore message or plain object to encode
57344
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57345
+ * @returns {$protobuf.Writer} Writer
57346
+ */
57347
+ Restore.encodeDelimited = function encodeDelimited(message, writer) {
57348
+ return this.encode(message, writer).ldelim();
57349
+ };
57350
+
57351
+ /**
57352
+ * Decodes a Restore message from the specified reader or buffer.
57353
+ * @function decode
57354
+ * @memberof replit.goval.api.lore.Restore
57355
+ * @static
57356
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57357
+ * @param {number} [length] Message length if known beforehand
57358
+ * @returns {replit.goval.api.lore.Restore} Restore
57359
+ * @throws {Error} If the payload is not a reader or valid buffer
57360
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57361
+ */
57362
+ Restore.decode = function decode(reader, length) {
57363
+ if (!(reader instanceof $Reader))
57364
+ reader = $Reader.create(reader);
57365
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.Restore();
57366
+ while (reader.pos < end) {
57367
+ var tag = reader.uint32();
57368
+ switch (tag >>> 3) {
57369
+ case 1:
57370
+ message.replId = reader.string();
57371
+ break;
57372
+ case 2:
57373
+ message.restoreReplId = reader.string();
57374
+ break;
57375
+ default:
57376
+ reader.skipType(tag & 7);
57377
+ break;
57378
+ }
57379
+ }
57380
+ return message;
57381
+ };
57382
+
57383
+ /**
57384
+ * Decodes a Restore message from the specified reader or buffer, length delimited.
57385
+ * @function decodeDelimited
57386
+ * @memberof replit.goval.api.lore.Restore
57387
+ * @static
57388
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57389
+ * @returns {replit.goval.api.lore.Restore} Restore
57390
+ * @throws {Error} If the payload is not a reader or valid buffer
57391
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57392
+ */
57393
+ Restore.decodeDelimited = function decodeDelimited(reader) {
57394
+ if (!(reader instanceof $Reader))
57395
+ reader = new $Reader(reader);
57396
+ return this.decode(reader, reader.uint32());
57397
+ };
57398
+
57399
+ /**
57400
+ * Verifies a Restore message.
57401
+ * @function verify
57402
+ * @memberof replit.goval.api.lore.Restore
57403
+ * @static
57404
+ * @param {Object.<string,*>} message Plain object to verify
57405
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57406
+ */
57407
+ Restore.verify = function verify(message) {
57408
+ if (typeof message !== "object" || message === null)
57409
+ return "object expected";
57410
+ if (message.replId != null && message.hasOwnProperty("replId"))
57411
+ if (!$util.isString(message.replId))
57412
+ return "replId: string expected";
57413
+ if (message.restoreReplId != null && message.hasOwnProperty("restoreReplId"))
57414
+ if (!$util.isString(message.restoreReplId))
57415
+ return "restoreReplId: string expected";
57416
+ return null;
57417
+ };
57418
+
57419
+ /**
57420
+ * Creates a Restore message from a plain object. Also converts values to their respective internal types.
57421
+ * @function fromObject
57422
+ * @memberof replit.goval.api.lore.Restore
57423
+ * @static
57424
+ * @param {Object.<string,*>} object Plain object
57425
+ * @returns {replit.goval.api.lore.Restore} Restore
57426
+ */
57427
+ Restore.fromObject = function fromObject(object) {
57428
+ if (object instanceof $root.replit.goval.api.lore.Restore)
57429
+ return object;
57430
+ var message = new $root.replit.goval.api.lore.Restore();
57431
+ if (object.replId != null)
57432
+ message.replId = String(object.replId);
57433
+ if (object.restoreReplId != null)
57434
+ message.restoreReplId = String(object.restoreReplId);
57435
+ return message;
57436
+ };
57437
+
57438
+ /**
57439
+ * Creates a plain object from a Restore message. Also converts values to other types if specified.
57440
+ * @function toObject
57441
+ * @memberof replit.goval.api.lore.Restore
57442
+ * @static
57443
+ * @param {replit.goval.api.lore.Restore} message Restore
57444
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57445
+ * @returns {Object.<string,*>} Plain object
57446
+ */
57447
+ Restore.toObject = function toObject(message, options) {
57448
+ if (!options)
57449
+ options = {};
57450
+ var object = {};
57451
+ if (options.defaults) {
57452
+ object.replId = "";
57453
+ object.restoreReplId = "";
57454
+ }
57455
+ if (message.replId != null && message.hasOwnProperty("replId"))
57456
+ object.replId = message.replId;
57457
+ if (message.restoreReplId != null && message.hasOwnProperty("restoreReplId"))
57458
+ object.restoreReplId = message.restoreReplId;
57459
+ return object;
57460
+ };
57461
+
57462
+ /**
57463
+ * Converts this Restore to JSON.
57464
+ * @function toJSON
57465
+ * @memberof replit.goval.api.lore.Restore
57466
+ * @instance
57467
+ * @returns {Object.<string,*>} JSON object
57468
+ */
57469
+ Restore.prototype.toJSON = function toJSON() {
57470
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57471
+ };
57472
+
57473
+ return Restore;
57474
+ })();
57475
+
57476
+ lore.UpdateSourceRepl = (function() {
57477
+
57478
+ /**
57479
+ * Properties of an UpdateSourceRepl.
57480
+ * @memberof replit.goval.api.lore
57481
+ * @interface IUpdateSourceRepl
57482
+ * @property {string|null} [replId] UpdateSourceRepl replId
57483
+ * @property {string|null} [sourceReplId] UpdateSourceRepl sourceReplId
57484
+ */
57485
+
57486
+ /**
57487
+ * Constructs a new UpdateSourceRepl.
57488
+ * @memberof replit.goval.api.lore
57489
+ * @classdesc Represents an UpdateSourceRepl.
57490
+ * @constructor
57491
+ * @param {replit.goval.api.lore.IUpdateSourceRepl=} [properties] Properties to set
57492
+ */
57493
+ function UpdateSourceRepl(properties) {
57494
+ if (properties)
57495
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57496
+ if (properties[keys[i]] != null)
57497
+ this[keys[i]] = properties[keys[i]];
57498
+ }
57499
+
57500
+ /**
57501
+ * UpdateSourceRepl replId.
57502
+ * @member {string} replId
57503
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57504
+ * @instance
57505
+ */
57506
+ UpdateSourceRepl.prototype.replId = "";
57507
+
57508
+ /**
57509
+ * UpdateSourceRepl sourceReplId.
57510
+ * @member {string} sourceReplId
57511
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57512
+ * @instance
57513
+ */
57514
+ UpdateSourceRepl.prototype.sourceReplId = "";
57515
+
57516
+ /**
57517
+ * Creates a new UpdateSourceRepl instance using the specified properties.
57518
+ * @function create
57519
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57520
+ * @static
57521
+ * @param {replit.goval.api.lore.IUpdateSourceRepl=} [properties] Properties to set
57522
+ * @returns {replit.goval.api.lore.UpdateSourceRepl} UpdateSourceRepl instance
57523
+ */
57524
+ UpdateSourceRepl.create = function create(properties) {
57525
+ return UpdateSourceRepl.fromObject(properties);
57526
+ };
57527
+
57528
+ /**
57529
+ * Encodes the specified UpdateSourceRepl message. Does not implicitly {@link replit.goval.api.lore.UpdateSourceRepl.verify|verify} messages.
57530
+ * @function encode
57531
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57532
+ * @static
57533
+ * @param {replit.goval.api.lore.UpdateSourceRepl} message UpdateSourceRepl message or plain object to encode
57534
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57535
+ * @returns {$protobuf.Writer} Writer
57536
+ */
57537
+ UpdateSourceRepl.encode = function encode(message, writer) {
57538
+ if (!writer)
57539
+ writer = $Writer.create();
57540
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
57541
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
57542
+ if (message.sourceReplId != null && Object.hasOwnProperty.call(message, "sourceReplId"))
57543
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceReplId);
57544
+ return writer;
57545
+ };
57546
+
57547
+ /**
57548
+ * Encodes the specified UpdateSourceRepl message, length delimited. Does not implicitly {@link replit.goval.api.lore.UpdateSourceRepl.verify|verify} messages.
57549
+ * @function encodeDelimited
57550
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57551
+ * @static
57552
+ * @param {replit.goval.api.lore.UpdateSourceRepl} message UpdateSourceRepl message or plain object to encode
57553
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57554
+ * @returns {$protobuf.Writer} Writer
57555
+ */
57556
+ UpdateSourceRepl.encodeDelimited = function encodeDelimited(message, writer) {
57557
+ return this.encode(message, writer).ldelim();
57558
+ };
57559
+
57560
+ /**
57561
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer.
57562
+ * @function decode
57563
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57564
+ * @static
57565
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57566
+ * @param {number} [length] Message length if known beforehand
57567
+ * @returns {replit.goval.api.lore.UpdateSourceRepl} UpdateSourceRepl
57568
+ * @throws {Error} If the payload is not a reader or valid buffer
57569
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57570
+ */
57571
+ UpdateSourceRepl.decode = function decode(reader, length) {
57572
+ if (!(reader instanceof $Reader))
57573
+ reader = $Reader.create(reader);
57574
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.UpdateSourceRepl();
57575
+ while (reader.pos < end) {
57576
+ var tag = reader.uint32();
57577
+ switch (tag >>> 3) {
57578
+ case 1:
57579
+ message.replId = reader.string();
57580
+ break;
57581
+ case 2:
57582
+ message.sourceReplId = reader.string();
57583
+ break;
57584
+ default:
57585
+ reader.skipType(tag & 7);
57586
+ break;
57587
+ }
57588
+ }
57589
+ return message;
57590
+ };
57591
+
57592
+ /**
57593
+ * Decodes an UpdateSourceRepl message from the specified reader or buffer, length delimited.
57594
+ * @function decodeDelimited
57595
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57596
+ * @static
57597
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57598
+ * @returns {replit.goval.api.lore.UpdateSourceRepl} UpdateSourceRepl
57599
+ * @throws {Error} If the payload is not a reader or valid buffer
57600
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57601
+ */
57602
+ UpdateSourceRepl.decodeDelimited = function decodeDelimited(reader) {
57603
+ if (!(reader instanceof $Reader))
57604
+ reader = new $Reader(reader);
57605
+ return this.decode(reader, reader.uint32());
57606
+ };
57607
+
57608
+ /**
57609
+ * Verifies an UpdateSourceRepl message.
57610
+ * @function verify
57611
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57612
+ * @static
57613
+ * @param {Object.<string,*>} message Plain object to verify
57614
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57615
+ */
57616
+ UpdateSourceRepl.verify = function verify(message) {
57617
+ if (typeof message !== "object" || message === null)
57618
+ return "object expected";
57619
+ if (message.replId != null && message.hasOwnProperty("replId"))
57620
+ if (!$util.isString(message.replId))
57621
+ return "replId: string expected";
57622
+ if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
57623
+ if (!$util.isString(message.sourceReplId))
57624
+ return "sourceReplId: string expected";
57625
+ return null;
57626
+ };
57627
+
57628
+ /**
57629
+ * Creates an UpdateSourceRepl message from a plain object. Also converts values to their respective internal types.
57630
+ * @function fromObject
57631
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57632
+ * @static
57633
+ * @param {Object.<string,*>} object Plain object
57634
+ * @returns {replit.goval.api.lore.UpdateSourceRepl} UpdateSourceRepl
57635
+ */
57636
+ UpdateSourceRepl.fromObject = function fromObject(object) {
57637
+ if (object instanceof $root.replit.goval.api.lore.UpdateSourceRepl)
57638
+ return object;
57639
+ var message = new $root.replit.goval.api.lore.UpdateSourceRepl();
57640
+ if (object.replId != null)
57641
+ message.replId = String(object.replId);
57642
+ if (object.sourceReplId != null)
57643
+ message.sourceReplId = String(object.sourceReplId);
57644
+ return message;
57645
+ };
57646
+
57647
+ /**
57648
+ * Creates a plain object from an UpdateSourceRepl message. Also converts values to other types if specified.
57649
+ * @function toObject
57650
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57651
+ * @static
57652
+ * @param {replit.goval.api.lore.UpdateSourceRepl} message UpdateSourceRepl
57653
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57654
+ * @returns {Object.<string,*>} Plain object
57655
+ */
57656
+ UpdateSourceRepl.toObject = function toObject(message, options) {
57657
+ if (!options)
57658
+ options = {};
57659
+ var object = {};
57660
+ if (options.defaults) {
57661
+ object.replId = "";
57662
+ object.sourceReplId = "";
57663
+ }
57664
+ if (message.replId != null && message.hasOwnProperty("replId"))
57665
+ object.replId = message.replId;
57666
+ if (message.sourceReplId != null && message.hasOwnProperty("sourceReplId"))
57667
+ object.sourceReplId = message.sourceReplId;
57668
+ return object;
57669
+ };
57670
+
57671
+ /**
57672
+ * Converts this UpdateSourceRepl to JSON.
57673
+ * @function toJSON
57674
+ * @memberof replit.goval.api.lore.UpdateSourceRepl
57675
+ * @instance
57676
+ * @returns {Object.<string,*>} JSON object
57677
+ */
57678
+ UpdateSourceRepl.prototype.toJSON = function toJSON() {
57679
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57680
+ };
57681
+
57682
+ return UpdateSourceRepl;
57683
+ })();
57684
+
57685
+ lore.UpdateReplFlags = (function() {
57686
+
57687
+ /**
57688
+ * Properties of an UpdateReplFlags.
57689
+ * @memberof replit.goval.api.lore
57690
+ * @interface IUpdateReplFlags
57691
+ * @property {string|null} [replId] UpdateReplFlags replId
57692
+ * @property {Array.<string>|null} [flags] UpdateReplFlags flags
57693
+ */
57694
+
57695
+ /**
57696
+ * Constructs a new UpdateReplFlags.
57697
+ * @memberof replit.goval.api.lore
57698
+ * @classdesc Represents an UpdateReplFlags.
57699
+ * @constructor
57700
+ * @param {replit.goval.api.lore.IUpdateReplFlags=} [properties] Properties to set
57701
+ */
57702
+ function UpdateReplFlags(properties) {
57703
+ this.flags = [];
57704
+ if (properties)
57705
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
57706
+ if (properties[keys[i]] != null)
57707
+ this[keys[i]] = properties[keys[i]];
57708
+ }
57709
+
57710
+ /**
57711
+ * UpdateReplFlags replId.
57712
+ * @member {string} replId
57713
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57714
+ * @instance
57715
+ */
57716
+ UpdateReplFlags.prototype.replId = "";
57717
+
57718
+ /**
57719
+ * UpdateReplFlags flags.
57720
+ * @member {Array.<string>} flags
57721
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57722
+ * @instance
57723
+ */
57724
+ UpdateReplFlags.prototype.flags = $util.emptyArray;
57725
+
57726
+ /**
57727
+ * Creates a new UpdateReplFlags instance using the specified properties.
57728
+ * @function create
57729
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57730
+ * @static
57731
+ * @param {replit.goval.api.lore.IUpdateReplFlags=} [properties] Properties to set
57732
+ * @returns {replit.goval.api.lore.UpdateReplFlags} UpdateReplFlags instance
57733
+ */
57734
+ UpdateReplFlags.create = function create(properties) {
57735
+ return UpdateReplFlags.fromObject(properties);
57736
+ };
57737
+
57738
+ /**
57739
+ * Encodes the specified UpdateReplFlags message. Does not implicitly {@link replit.goval.api.lore.UpdateReplFlags.verify|verify} messages.
57740
+ * @function encode
57741
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57742
+ * @static
57743
+ * @param {replit.goval.api.lore.UpdateReplFlags} message UpdateReplFlags message or plain object to encode
57744
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57745
+ * @returns {$protobuf.Writer} Writer
57746
+ */
57747
+ UpdateReplFlags.encode = function encode(message, writer) {
57748
+ if (!writer)
57749
+ writer = $Writer.create();
57750
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
57751
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
57752
+ if (message.flags != null && message.flags.length)
57753
+ for (var i = 0; i < message.flags.length; ++i)
57754
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.flags[i]);
57755
+ return writer;
57756
+ };
57757
+
57758
+ /**
57759
+ * Encodes the specified UpdateReplFlags message, length delimited. Does not implicitly {@link replit.goval.api.lore.UpdateReplFlags.verify|verify} messages.
57760
+ * @function encodeDelimited
57761
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57762
+ * @static
57763
+ * @param {replit.goval.api.lore.UpdateReplFlags} message UpdateReplFlags message or plain object to encode
57764
+ * @param {$protobuf.Writer} [writer] Writer to encode to
57765
+ * @returns {$protobuf.Writer} Writer
57766
+ */
57767
+ UpdateReplFlags.encodeDelimited = function encodeDelimited(message, writer) {
57768
+ return this.encode(message, writer).ldelim();
57769
+ };
57770
+
57771
+ /**
57772
+ * Decodes an UpdateReplFlags message from the specified reader or buffer.
57773
+ * @function decode
57774
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57775
+ * @static
57776
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57777
+ * @param {number} [length] Message length if known beforehand
57778
+ * @returns {replit.goval.api.lore.UpdateReplFlags} UpdateReplFlags
57779
+ * @throws {Error} If the payload is not a reader or valid buffer
57780
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57781
+ */
57782
+ UpdateReplFlags.decode = function decode(reader, length) {
57783
+ if (!(reader instanceof $Reader))
57784
+ reader = $Reader.create(reader);
57785
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.lore.UpdateReplFlags();
57786
+ while (reader.pos < end) {
57787
+ var tag = reader.uint32();
57788
+ switch (tag >>> 3) {
57789
+ case 1:
57790
+ message.replId = reader.string();
57791
+ break;
57792
+ case 2:
57793
+ if (!(message.flags && message.flags.length))
57794
+ message.flags = [];
57795
+ message.flags.push(reader.string());
57796
+ break;
57797
+ default:
57798
+ reader.skipType(tag & 7);
57799
+ break;
57800
+ }
57801
+ }
57802
+ return message;
57803
+ };
57804
+
57805
+ /**
57806
+ * Decodes an UpdateReplFlags message from the specified reader or buffer, length delimited.
57807
+ * @function decodeDelimited
57808
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57809
+ * @static
57810
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
57811
+ * @returns {replit.goval.api.lore.UpdateReplFlags} UpdateReplFlags
57812
+ * @throws {Error} If the payload is not a reader or valid buffer
57813
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
57814
+ */
57815
+ UpdateReplFlags.decodeDelimited = function decodeDelimited(reader) {
57816
+ if (!(reader instanceof $Reader))
57817
+ reader = new $Reader(reader);
57818
+ return this.decode(reader, reader.uint32());
57819
+ };
57820
+
57821
+ /**
57822
+ * Verifies an UpdateReplFlags message.
57823
+ * @function verify
57824
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57825
+ * @static
57826
+ * @param {Object.<string,*>} message Plain object to verify
57827
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
57828
+ */
57829
+ UpdateReplFlags.verify = function verify(message) {
57830
+ if (typeof message !== "object" || message === null)
57831
+ return "object expected";
57832
+ if (message.replId != null && message.hasOwnProperty("replId"))
57833
+ if (!$util.isString(message.replId))
57834
+ return "replId: string expected";
57835
+ if (message.flags != null && message.hasOwnProperty("flags")) {
57836
+ if (!Array.isArray(message.flags))
57837
+ return "flags: array expected";
57838
+ for (var i = 0; i < message.flags.length; ++i)
57839
+ if (!$util.isString(message.flags[i]))
57840
+ return "flags: string[] expected";
57841
+ }
57842
+ return null;
57843
+ };
57844
+
57845
+ /**
57846
+ * Creates an UpdateReplFlags message from a plain object. Also converts values to their respective internal types.
57847
+ * @function fromObject
57848
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57849
+ * @static
57850
+ * @param {Object.<string,*>} object Plain object
57851
+ * @returns {replit.goval.api.lore.UpdateReplFlags} UpdateReplFlags
57852
+ */
57853
+ UpdateReplFlags.fromObject = function fromObject(object) {
57854
+ if (object instanceof $root.replit.goval.api.lore.UpdateReplFlags)
57855
+ return object;
57856
+ var message = new $root.replit.goval.api.lore.UpdateReplFlags();
57857
+ if (object.replId != null)
57858
+ message.replId = String(object.replId);
57859
+ if (object.flags) {
57860
+ if (!Array.isArray(object.flags))
57861
+ throw TypeError(".replit.goval.api.lore.UpdateReplFlags.flags: array expected");
57862
+ message.flags = [];
57863
+ for (var i = 0; i < object.flags.length; ++i)
57864
+ message.flags[i] = String(object.flags[i]);
57865
+ }
57866
+ return message;
57867
+ };
57868
+
57869
+ /**
57870
+ * Creates a plain object from an UpdateReplFlags message. Also converts values to other types if specified.
57871
+ * @function toObject
57872
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57873
+ * @static
57874
+ * @param {replit.goval.api.lore.UpdateReplFlags} message UpdateReplFlags
57875
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
57876
+ * @returns {Object.<string,*>} Plain object
57877
+ */
57878
+ UpdateReplFlags.toObject = function toObject(message, options) {
57879
+ if (!options)
57880
+ options = {};
57881
+ var object = {};
57882
+ if (options.arrays || options.defaults)
57883
+ object.flags = [];
57884
+ if (options.defaults)
57885
+ object.replId = "";
57886
+ if (message.replId != null && message.hasOwnProperty("replId"))
57887
+ object.replId = message.replId;
57888
+ if (message.flags && message.flags.length) {
57889
+ object.flags = [];
57890
+ for (var j = 0; j < message.flags.length; ++j)
57891
+ object.flags[j] = message.flags[j];
57892
+ }
57893
+ return object;
57894
+ };
57895
+
57896
+ /**
57897
+ * Converts this UpdateReplFlags to JSON.
57898
+ * @function toJSON
57899
+ * @memberof replit.goval.api.lore.UpdateReplFlags
57900
+ * @instance
57901
+ * @returns {Object.<string,*>} JSON object
57902
+ */
57903
+ UpdateReplFlags.prototype.toJSON = function toJSON() {
57904
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
57905
+ };
57906
+
57907
+ return UpdateReplFlags;
57908
+ })();
57909
+
57910
+ return lore;
57911
+ })();
57912
+
55134
57913
  api.features = (function() {
55135
57914
 
55136
57915
  /**
@@ -60038,6 +62817,208 @@
60038
62817
  return ListValue;
60039
62818
  })();
60040
62819
 
62820
+ protobuf.FieldMask = (function() {
62821
+
62822
+ /**
62823
+ * Properties of a FieldMask.
62824
+ * @memberof google.protobuf
62825
+ * @interface IFieldMask
62826
+ * @property {Array.<string>|null} [paths] FieldMask paths
62827
+ */
62828
+
62829
+ /**
62830
+ * Constructs a new FieldMask.
62831
+ * @memberof google.protobuf
62832
+ * @classdesc Represents a FieldMask.
62833
+ * @constructor
62834
+ * @param {google.protobuf.IFieldMask=} [properties] Properties to set
62835
+ */
62836
+ function FieldMask(properties) {
62837
+ this.paths = [];
62838
+ if (properties)
62839
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
62840
+ if (properties[keys[i]] != null)
62841
+ this[keys[i]] = properties[keys[i]];
62842
+ }
62843
+
62844
+ /**
62845
+ * FieldMask paths.
62846
+ * @member {Array.<string>} paths
62847
+ * @memberof google.protobuf.FieldMask
62848
+ * @instance
62849
+ */
62850
+ FieldMask.prototype.paths = $util.emptyArray;
62851
+
62852
+ /**
62853
+ * Creates a new FieldMask instance using the specified properties.
62854
+ * @function create
62855
+ * @memberof google.protobuf.FieldMask
62856
+ * @static
62857
+ * @param {google.protobuf.IFieldMask=} [properties] Properties to set
62858
+ * @returns {google.protobuf.FieldMask} FieldMask instance
62859
+ */
62860
+ FieldMask.create = function create(properties) {
62861
+ return FieldMask.fromObject(properties);
62862
+ };
62863
+
62864
+ /**
62865
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
62866
+ * @function encode
62867
+ * @memberof google.protobuf.FieldMask
62868
+ * @static
62869
+ * @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
62870
+ * @param {$protobuf.Writer} [writer] Writer to encode to
62871
+ * @returns {$protobuf.Writer} Writer
62872
+ */
62873
+ FieldMask.encode = function encode(message, writer) {
62874
+ if (!writer)
62875
+ writer = $Writer.create();
62876
+ if (message.paths != null && message.paths.length)
62877
+ for (var i = 0; i < message.paths.length; ++i)
62878
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]);
62879
+ return writer;
62880
+ };
62881
+
62882
+ /**
62883
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
62884
+ * @function encodeDelimited
62885
+ * @memberof google.protobuf.FieldMask
62886
+ * @static
62887
+ * @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
62888
+ * @param {$protobuf.Writer} [writer] Writer to encode to
62889
+ * @returns {$protobuf.Writer} Writer
62890
+ */
62891
+ FieldMask.encodeDelimited = function encodeDelimited(message, writer) {
62892
+ return this.encode(message, writer).ldelim();
62893
+ };
62894
+
62895
+ /**
62896
+ * Decodes a FieldMask message from the specified reader or buffer.
62897
+ * @function decode
62898
+ * @memberof google.protobuf.FieldMask
62899
+ * @static
62900
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62901
+ * @param {number} [length] Message length if known beforehand
62902
+ * @returns {google.protobuf.FieldMask} FieldMask
62903
+ * @throws {Error} If the payload is not a reader or valid buffer
62904
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
62905
+ */
62906
+ FieldMask.decode = function decode(reader, length) {
62907
+ if (!(reader instanceof $Reader))
62908
+ reader = $Reader.create(reader);
62909
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask();
62910
+ while (reader.pos < end) {
62911
+ var tag = reader.uint32();
62912
+ switch (tag >>> 3) {
62913
+ case 1:
62914
+ if (!(message.paths && message.paths.length))
62915
+ message.paths = [];
62916
+ message.paths.push(reader.string());
62917
+ break;
62918
+ default:
62919
+ reader.skipType(tag & 7);
62920
+ break;
62921
+ }
62922
+ }
62923
+ return message;
62924
+ };
62925
+
62926
+ /**
62927
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
62928
+ * @function decodeDelimited
62929
+ * @memberof google.protobuf.FieldMask
62930
+ * @static
62931
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
62932
+ * @returns {google.protobuf.FieldMask} FieldMask
62933
+ * @throws {Error} If the payload is not a reader or valid buffer
62934
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
62935
+ */
62936
+ FieldMask.decodeDelimited = function decodeDelimited(reader) {
62937
+ if (!(reader instanceof $Reader))
62938
+ reader = new $Reader(reader);
62939
+ return this.decode(reader, reader.uint32());
62940
+ };
62941
+
62942
+ /**
62943
+ * Verifies a FieldMask message.
62944
+ * @function verify
62945
+ * @memberof google.protobuf.FieldMask
62946
+ * @static
62947
+ * @param {Object.<string,*>} message Plain object to verify
62948
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
62949
+ */
62950
+ FieldMask.verify = function verify(message) {
62951
+ if (typeof message !== "object" || message === null)
62952
+ return "object expected";
62953
+ if (message.paths != null && message.hasOwnProperty("paths")) {
62954
+ if (!Array.isArray(message.paths))
62955
+ return "paths: array expected";
62956
+ for (var i = 0; i < message.paths.length; ++i)
62957
+ if (!$util.isString(message.paths[i]))
62958
+ return "paths: string[] expected";
62959
+ }
62960
+ return null;
62961
+ };
62962
+
62963
+ /**
62964
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
62965
+ * @function fromObject
62966
+ * @memberof google.protobuf.FieldMask
62967
+ * @static
62968
+ * @param {Object.<string,*>} object Plain object
62969
+ * @returns {google.protobuf.FieldMask} FieldMask
62970
+ */
62971
+ FieldMask.fromObject = function fromObject(object) {
62972
+ if (object instanceof $root.google.protobuf.FieldMask)
62973
+ return object;
62974
+ var message = new $root.google.protobuf.FieldMask();
62975
+ if (object.paths) {
62976
+ if (!Array.isArray(object.paths))
62977
+ throw TypeError(".google.protobuf.FieldMask.paths: array expected");
62978
+ message.paths = [];
62979
+ for (var i = 0; i < object.paths.length; ++i)
62980
+ message.paths[i] = String(object.paths[i]);
62981
+ }
62982
+ return message;
62983
+ };
62984
+
62985
+ /**
62986
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
62987
+ * @function toObject
62988
+ * @memberof google.protobuf.FieldMask
62989
+ * @static
62990
+ * @param {google.protobuf.FieldMask} message FieldMask
62991
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
62992
+ * @returns {Object.<string,*>} Plain object
62993
+ */
62994
+ FieldMask.toObject = function toObject(message, options) {
62995
+ if (!options)
62996
+ options = {};
62997
+ var object = {};
62998
+ if (options.arrays || options.defaults)
62999
+ object.paths = [];
63000
+ if (message.paths && message.paths.length) {
63001
+ object.paths = [];
63002
+ for (var j = 0; j < message.paths.length; ++j)
63003
+ object.paths[j] = message.paths[j];
63004
+ }
63005
+ return object;
63006
+ };
63007
+
63008
+ /**
63009
+ * Converts this FieldMask to JSON.
63010
+ * @function toJSON
63011
+ * @memberof google.protobuf.FieldMask
63012
+ * @instance
63013
+ * @returns {Object.<string,*>} JSON object
63014
+ */
63015
+ FieldMask.prototype.toJSON = function toJSON() {
63016
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
63017
+ };
63018
+
63019
+ return FieldMask;
63020
+ })();
63021
+
60041
63022
  return protobuf;
60042
63023
  })();
60043
63024