@replit/protocol 0.2.99 → 0.3.0

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