@replit/protocol 0.3.47 → 0.3.48
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/iotester/index.js.flow +2947 -0
- package/main/index.d.ts +109 -0
- package/main/index.js +253 -0
- package/main/index.js.flow +48599 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -9433,6 +9433,9 @@ export namespace replit {
|
|
|
9433
9433
|
|
|
9434
9434
|
/** RunMain runID */
|
|
9435
9435
|
runID?: (string|null);
|
|
9436
|
+
|
|
9437
|
+
/** RunMain clientSession */
|
|
9438
|
+
clientSession?: (number|null);
|
|
9436
9439
|
}
|
|
9437
9440
|
|
|
9438
9441
|
/** Represents a RunMain. */
|
|
@@ -9462,6 +9465,9 @@ export namespace replit {
|
|
|
9462
9465
|
/** RunMain runID. */
|
|
9463
9466
|
public runID: string;
|
|
9464
9467
|
|
|
9468
|
+
/** RunMain clientSession. */
|
|
9469
|
+
public clientSession: number;
|
|
9470
|
+
|
|
9465
9471
|
/**
|
|
9466
9472
|
* Creates a new RunMain instance using the specified properties.
|
|
9467
9473
|
* @param [properties] Properties to set
|
|
@@ -18043,6 +18049,9 @@ export namespace replit {
|
|
|
18043
18049
|
|
|
18044
18050
|
/** DotReplit objectStorage */
|
|
18045
18051
|
objectStorage?: (replit.goval.api.ObjectStorageConfig|replit.goval.api.IObjectStorageConfig|null);
|
|
18052
|
+
|
|
18053
|
+
/** DotReplit autoSave */
|
|
18054
|
+
autoSave?: (replit.goval.api.AutoSaveConfig|replit.goval.api.IAutoSaveConfig|null);
|
|
18046
18055
|
}
|
|
18047
18056
|
|
|
18048
18057
|
/** Represents a DotReplit. */
|
|
@@ -18135,6 +18144,9 @@ export namespace replit {
|
|
|
18135
18144
|
/** DotReplit objectStorage. */
|
|
18136
18145
|
public objectStorage?: (replit.goval.api.ObjectStorageConfig|null);
|
|
18137
18146
|
|
|
18147
|
+
/** DotReplit autoSave. */
|
|
18148
|
+
public autoSave?: (replit.goval.api.AutoSaveConfig|null);
|
|
18149
|
+
|
|
18138
18150
|
/**
|
|
18139
18151
|
* Creates a new DotReplit instance using the specified properties.
|
|
18140
18152
|
* @param [properties] Properties to set
|
|
@@ -22280,6 +22292,103 @@ export namespace replit {
|
|
|
22280
22292
|
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22281
22293
|
}
|
|
22282
22294
|
|
|
22295
|
+
/** Properties of an AutoSaveConfig. */
|
|
22296
|
+
interface IAutoSaveConfig {
|
|
22297
|
+
|
|
22298
|
+
/** AutoSaveConfig disabled */
|
|
22299
|
+
disabled?: (boolean|null);
|
|
22300
|
+
}
|
|
22301
|
+
|
|
22302
|
+
/** Represents an AutoSaveConfig. */
|
|
22303
|
+
class AutoSaveConfig {
|
|
22304
|
+
|
|
22305
|
+
/**
|
|
22306
|
+
* Constructs a new AutoSaveConfig.
|
|
22307
|
+
* @param [properties] Properties to set
|
|
22308
|
+
*/
|
|
22309
|
+
private constructor(properties?: replit.goval.api.IAutoSaveConfig);
|
|
22310
|
+
|
|
22311
|
+
/** AutoSaveConfig disabled. */
|
|
22312
|
+
public disabled: boolean;
|
|
22313
|
+
|
|
22314
|
+
/**
|
|
22315
|
+
* Creates a new AutoSaveConfig instance using the specified properties.
|
|
22316
|
+
* @param [properties] Properties to set
|
|
22317
|
+
* @returns AutoSaveConfig instance
|
|
22318
|
+
*/
|
|
22319
|
+
public static create(properties?: replit.goval.api.IAutoSaveConfig): replit.goval.api.AutoSaveConfig;
|
|
22320
|
+
|
|
22321
|
+
/**
|
|
22322
|
+
* Encodes the specified AutoSaveConfig message. Does not implicitly {@link replit.goval.api.AutoSaveConfig.verify|verify} messages.
|
|
22323
|
+
* @param message AutoSaveConfig message or plain object to encode
|
|
22324
|
+
* @param [writer] Writer to encode to
|
|
22325
|
+
* @returns Writer
|
|
22326
|
+
*/
|
|
22327
|
+
public static encode(message: replit.goval.api.AutoSaveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22328
|
+
|
|
22329
|
+
/**
|
|
22330
|
+
* Encodes the specified AutoSaveConfig message, length delimited. Does not implicitly {@link replit.goval.api.AutoSaveConfig.verify|verify} messages.
|
|
22331
|
+
* @param message AutoSaveConfig message or plain object to encode
|
|
22332
|
+
* @param [writer] Writer to encode to
|
|
22333
|
+
* @returns Writer
|
|
22334
|
+
*/
|
|
22335
|
+
public static encodeDelimited(message: replit.goval.api.AutoSaveConfig, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
22336
|
+
|
|
22337
|
+
/**
|
|
22338
|
+
* Decodes an AutoSaveConfig message from the specified reader or buffer.
|
|
22339
|
+
* @param reader Reader or buffer to decode from
|
|
22340
|
+
* @param [length] Message length if known beforehand
|
|
22341
|
+
* @returns AutoSaveConfig
|
|
22342
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22343
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22344
|
+
*/
|
|
22345
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): replit.goval.api.AutoSaveConfig;
|
|
22346
|
+
|
|
22347
|
+
/**
|
|
22348
|
+
* Decodes an AutoSaveConfig message from the specified reader or buffer, length delimited.
|
|
22349
|
+
* @param reader Reader or buffer to decode from
|
|
22350
|
+
* @returns AutoSaveConfig
|
|
22351
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
22352
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
22353
|
+
*/
|
|
22354
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): replit.goval.api.AutoSaveConfig;
|
|
22355
|
+
|
|
22356
|
+
/**
|
|
22357
|
+
* Verifies an AutoSaveConfig message.
|
|
22358
|
+
* @param message Plain object to verify
|
|
22359
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
22360
|
+
*/
|
|
22361
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
22362
|
+
|
|
22363
|
+
/**
|
|
22364
|
+
* Creates an AutoSaveConfig message from a plain object. Also converts values to their respective internal types.
|
|
22365
|
+
* @param object Plain object
|
|
22366
|
+
* @returns AutoSaveConfig
|
|
22367
|
+
*/
|
|
22368
|
+
public static fromObject(object: { [k: string]: any }): replit.goval.api.AutoSaveConfig;
|
|
22369
|
+
|
|
22370
|
+
/**
|
|
22371
|
+
* Creates a plain object from an AutoSaveConfig message. Also converts values to other types if specified.
|
|
22372
|
+
* @param message AutoSaveConfig
|
|
22373
|
+
* @param [options] Conversion options
|
|
22374
|
+
* @returns Plain object
|
|
22375
|
+
*/
|
|
22376
|
+
public static toObject(message: replit.goval.api.AutoSaveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
22377
|
+
|
|
22378
|
+
/**
|
|
22379
|
+
* Converts this AutoSaveConfig to JSON.
|
|
22380
|
+
* @returns JSON object
|
|
22381
|
+
*/
|
|
22382
|
+
public toJSON(): { [k: string]: any };
|
|
22383
|
+
|
|
22384
|
+
/**
|
|
22385
|
+
* Gets the default type url for AutoSaveConfig
|
|
22386
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
22387
|
+
* @returns The default type url
|
|
22388
|
+
*/
|
|
22389
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
22390
|
+
}
|
|
22391
|
+
|
|
22283
22392
|
/** Properties of a ToolchainGetRequest. */
|
|
22284
22393
|
interface IToolchainGetRequest {
|
|
22285
22394
|
}
|
package/main/index.js
CHANGED
|
@@ -25384,6 +25384,7 @@
|
|
|
25384
25384
|
* @property {string|null} [runnerId] RunMain runnerId
|
|
25385
25385
|
* @property {boolean|null} [fromHosting] RunMain fromHosting
|
|
25386
25386
|
* @property {string|null} [runID] RunMain runID
|
|
25387
|
+
* @property {number|null} [clientSession] RunMain clientSession
|
|
25387
25388
|
*/
|
|
25388
25389
|
|
|
25389
25390
|
/**
|
|
@@ -25448,6 +25449,14 @@
|
|
|
25448
25449
|
*/
|
|
25449
25450
|
RunMain.prototype.runID = "";
|
|
25450
25451
|
|
|
25452
|
+
/**
|
|
25453
|
+
* RunMain clientSession.
|
|
25454
|
+
* @member {number} clientSession
|
|
25455
|
+
* @memberof replit.goval.api.RunMain
|
|
25456
|
+
* @instance
|
|
25457
|
+
*/
|
|
25458
|
+
RunMain.prototype.clientSession = 0;
|
|
25459
|
+
|
|
25451
25460
|
/**
|
|
25452
25461
|
* Creates a new RunMain instance using the specified properties.
|
|
25453
25462
|
* @function create
|
|
@@ -25484,6 +25493,8 @@
|
|
|
25484
25493
|
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.fromHosting);
|
|
25485
25494
|
if (message.runID != null && Object.hasOwnProperty.call(message, "runID"))
|
|
25486
25495
|
writer.uint32(/* id 6, wireType 2 =*/50).string(message.runID);
|
|
25496
|
+
if (message.clientSession != null && Object.hasOwnProperty.call(message, "clientSession"))
|
|
25497
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.clientSession);
|
|
25487
25498
|
return writer;
|
|
25488
25499
|
};
|
|
25489
25500
|
|
|
@@ -25542,6 +25553,10 @@
|
|
|
25542
25553
|
message.runID = reader.string();
|
|
25543
25554
|
break;
|
|
25544
25555
|
}
|
|
25556
|
+
case 7: {
|
|
25557
|
+
message.clientSession = reader.int32();
|
|
25558
|
+
break;
|
|
25559
|
+
}
|
|
25545
25560
|
default:
|
|
25546
25561
|
reader.skipType(tag & 7);
|
|
25547
25562
|
break;
|
|
@@ -25600,6 +25615,9 @@
|
|
|
25600
25615
|
if (message.runID != null && message.hasOwnProperty("runID"))
|
|
25601
25616
|
if (!$util.isString(message.runID))
|
|
25602
25617
|
return "runID: string expected";
|
|
25618
|
+
if (message.clientSession != null && message.hasOwnProperty("clientSession"))
|
|
25619
|
+
if (!$util.isInteger(message.clientSession))
|
|
25620
|
+
return "clientSession: integer expected";
|
|
25603
25621
|
return null;
|
|
25604
25622
|
};
|
|
25605
25623
|
|
|
@@ -25641,6 +25659,8 @@
|
|
|
25641
25659
|
message.fromHosting = Boolean(object.fromHosting);
|
|
25642
25660
|
if (object.runID != null)
|
|
25643
25661
|
message.runID = String(object.runID);
|
|
25662
|
+
if (object.clientSession != null)
|
|
25663
|
+
message.clientSession = object.clientSession | 0;
|
|
25644
25664
|
return message;
|
|
25645
25665
|
};
|
|
25646
25666
|
|
|
@@ -25664,6 +25684,7 @@
|
|
|
25664
25684
|
object.runnerId = "";
|
|
25665
25685
|
object.fromHosting = false;
|
|
25666
25686
|
object.runID = "";
|
|
25687
|
+
object.clientSession = 0;
|
|
25667
25688
|
}
|
|
25668
25689
|
if (message.runMode != null && message.hasOwnProperty("runMode"))
|
|
25669
25690
|
object.runMode = options.enums === String ? $root.replit.goval.api.RunMain.RunMode[message.runMode] === undefined ? message.runMode : $root.replit.goval.api.RunMain.RunMode[message.runMode] : message.runMode;
|
|
@@ -25677,6 +25698,8 @@
|
|
|
25677
25698
|
object.fromHosting = message.fromHosting;
|
|
25678
25699
|
if (message.runID != null && message.hasOwnProperty("runID"))
|
|
25679
25700
|
object.runID = message.runID;
|
|
25701
|
+
if (message.clientSession != null && message.hasOwnProperty("clientSession"))
|
|
25702
|
+
object.clientSession = message.clientSession;
|
|
25680
25703
|
return object;
|
|
25681
25704
|
};
|
|
25682
25705
|
|
|
@@ -45383,6 +45406,7 @@
|
|
|
45383
45406
|
* @property {replit.goval.api.RulesConfig|replit.goval.api.IRulesConfig|null} [rules] DotReplit rules
|
|
45384
45407
|
* @property {replit.goval.api.SuggestionsConfig|replit.goval.api.ISuggestionsConfig|null} [suggestions] DotReplit suggestions
|
|
45385
45408
|
* @property {replit.goval.api.ObjectStorageConfig|replit.goval.api.IObjectStorageConfig|null} [objectStorage] DotReplit objectStorage
|
|
45409
|
+
* @property {replit.goval.api.AutoSaveConfig|replit.goval.api.IAutoSaveConfig|null} [autoSave] DotReplit autoSave
|
|
45386
45410
|
*/
|
|
45387
45411
|
|
|
45388
45412
|
/**
|
|
@@ -45623,6 +45647,14 @@
|
|
|
45623
45647
|
*/
|
|
45624
45648
|
DotReplit.prototype.objectStorage = null;
|
|
45625
45649
|
|
|
45650
|
+
/**
|
|
45651
|
+
* DotReplit autoSave.
|
|
45652
|
+
* @member {replit.goval.api.AutoSaveConfig|null|undefined} autoSave
|
|
45653
|
+
* @memberof replit.goval.api.DotReplit
|
|
45654
|
+
* @instance
|
|
45655
|
+
*/
|
|
45656
|
+
DotReplit.prototype.autoSave = null;
|
|
45657
|
+
|
|
45626
45658
|
/**
|
|
45627
45659
|
* Creates a new DotReplit instance using the specified properties.
|
|
45628
45660
|
* @function create
|
|
@@ -45711,6 +45743,8 @@
|
|
|
45711
45743
|
$root.replit.goval.api.SuggestionsConfig.encode(message.suggestions, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim();
|
|
45712
45744
|
if (message.objectStorage != null && Object.hasOwnProperty.call(message, "objectStorage"))
|
|
45713
45745
|
$root.replit.goval.api.ObjectStorageConfig.encode(message.objectStorage, writer.uint32(/* id 27, wireType 2 =*/218).fork()).ldelim();
|
|
45746
|
+
if (message.autoSave != null && Object.hasOwnProperty.call(message, "autoSave"))
|
|
45747
|
+
$root.replit.goval.api.AutoSaveConfig.encode(message.autoSave, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim();
|
|
45714
45748
|
return writer;
|
|
45715
45749
|
};
|
|
45716
45750
|
|
|
@@ -45903,6 +45937,10 @@
|
|
|
45903
45937
|
message.objectStorage = $root.replit.goval.api.ObjectStorageConfig.decode(reader, reader.uint32());
|
|
45904
45938
|
break;
|
|
45905
45939
|
}
|
|
45940
|
+
case 28: {
|
|
45941
|
+
message.autoSave = $root.replit.goval.api.AutoSaveConfig.decode(reader, reader.uint32());
|
|
45942
|
+
break;
|
|
45943
|
+
}
|
|
45906
45944
|
default:
|
|
45907
45945
|
reader.skipType(tag & 7);
|
|
45908
45946
|
break;
|
|
@@ -46093,6 +46131,11 @@
|
|
|
46093
46131
|
if (error)
|
|
46094
46132
|
return "objectStorage." + error;
|
|
46095
46133
|
}
|
|
46134
|
+
if (message.autoSave != null && message.hasOwnProperty("autoSave")) {
|
|
46135
|
+
var error = $root.replit.goval.api.AutoSaveConfig.verify(message.autoSave);
|
|
46136
|
+
if (error)
|
|
46137
|
+
return "autoSave." + error;
|
|
46138
|
+
}
|
|
46096
46139
|
return null;
|
|
46097
46140
|
};
|
|
46098
46141
|
|
|
@@ -46262,6 +46305,11 @@
|
|
|
46262
46305
|
throw TypeError(".replit.goval.api.DotReplit.objectStorage: object expected");
|
|
46263
46306
|
message.objectStorage = $root.replit.goval.api.ObjectStorageConfig.fromObject(object.objectStorage);
|
|
46264
46307
|
}
|
|
46308
|
+
if (object.autoSave != null) {
|
|
46309
|
+
if (typeof object.autoSave !== "object")
|
|
46310
|
+
throw TypeError(".replit.goval.api.DotReplit.autoSave: object expected");
|
|
46311
|
+
message.autoSave = $root.replit.goval.api.AutoSaveConfig.fromObject(object.autoSave);
|
|
46312
|
+
}
|
|
46265
46313
|
return message;
|
|
46266
46314
|
};
|
|
46267
46315
|
|
|
@@ -46310,6 +46358,7 @@
|
|
|
46310
46358
|
object.rules = null;
|
|
46311
46359
|
object.suggestions = null;
|
|
46312
46360
|
object.objectStorage = null;
|
|
46361
|
+
object.autoSave = null;
|
|
46313
46362
|
}
|
|
46314
46363
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
46315
46364
|
object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
|
|
@@ -46390,6 +46439,8 @@
|
|
|
46390
46439
|
object.suggestions = $root.replit.goval.api.SuggestionsConfig.toObject(message.suggestions, options);
|
|
46391
46440
|
if (message.objectStorage != null && message.hasOwnProperty("objectStorage"))
|
|
46392
46441
|
object.objectStorage = $root.replit.goval.api.ObjectStorageConfig.toObject(message.objectStorage, options);
|
|
46442
|
+
if (message.autoSave != null && message.hasOwnProperty("autoSave"))
|
|
46443
|
+
object.autoSave = $root.replit.goval.api.AutoSaveConfig.toObject(message.autoSave, options);
|
|
46393
46444
|
return object;
|
|
46394
46445
|
};
|
|
46395
46446
|
|
|
@@ -56378,6 +56429,208 @@
|
|
|
56378
56429
|
return ObjectStorageConfig;
|
|
56379
56430
|
})();
|
|
56380
56431
|
|
|
56432
|
+
api.AutoSaveConfig = (function() {
|
|
56433
|
+
|
|
56434
|
+
/**
|
|
56435
|
+
* Properties of an AutoSaveConfig.
|
|
56436
|
+
* @memberof replit.goval.api
|
|
56437
|
+
* @interface IAutoSaveConfig
|
|
56438
|
+
* @property {boolean|null} [disabled] AutoSaveConfig disabled
|
|
56439
|
+
*/
|
|
56440
|
+
|
|
56441
|
+
/**
|
|
56442
|
+
* Constructs a new AutoSaveConfig.
|
|
56443
|
+
* @memberof replit.goval.api
|
|
56444
|
+
* @classdesc Represents an AutoSaveConfig.
|
|
56445
|
+
* @constructor
|
|
56446
|
+
* @param {replit.goval.api.IAutoSaveConfig=} [properties] Properties to set
|
|
56447
|
+
*/
|
|
56448
|
+
function AutoSaveConfig(properties) {
|
|
56449
|
+
if (properties)
|
|
56450
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
56451
|
+
if (properties[keys[i]] != null)
|
|
56452
|
+
this[keys[i]] = properties[keys[i]];
|
|
56453
|
+
}
|
|
56454
|
+
|
|
56455
|
+
/**
|
|
56456
|
+
* AutoSaveConfig disabled.
|
|
56457
|
+
* @member {boolean} disabled
|
|
56458
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56459
|
+
* @instance
|
|
56460
|
+
*/
|
|
56461
|
+
AutoSaveConfig.prototype.disabled = false;
|
|
56462
|
+
|
|
56463
|
+
/**
|
|
56464
|
+
* Creates a new AutoSaveConfig instance using the specified properties.
|
|
56465
|
+
* @function create
|
|
56466
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56467
|
+
* @static
|
|
56468
|
+
* @param {replit.goval.api.IAutoSaveConfig=} [properties] Properties to set
|
|
56469
|
+
* @returns {replit.goval.api.AutoSaveConfig} AutoSaveConfig instance
|
|
56470
|
+
*/
|
|
56471
|
+
AutoSaveConfig.create = function create(properties) {
|
|
56472
|
+
return AutoSaveConfig.fromObject(properties);
|
|
56473
|
+
};
|
|
56474
|
+
|
|
56475
|
+
/**
|
|
56476
|
+
* Encodes the specified AutoSaveConfig message. Does not implicitly {@link replit.goval.api.AutoSaveConfig.verify|verify} messages.
|
|
56477
|
+
* @function encode
|
|
56478
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56479
|
+
* @static
|
|
56480
|
+
* @param {replit.goval.api.AutoSaveConfig} message AutoSaveConfig message or plain object to encode
|
|
56481
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56482
|
+
* @returns {$protobuf.Writer} Writer
|
|
56483
|
+
*/
|
|
56484
|
+
AutoSaveConfig.encode = function encode(message, writer) {
|
|
56485
|
+
if (!writer)
|
|
56486
|
+
writer = $Writer.create();
|
|
56487
|
+
if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled"))
|
|
56488
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled);
|
|
56489
|
+
return writer;
|
|
56490
|
+
};
|
|
56491
|
+
|
|
56492
|
+
/**
|
|
56493
|
+
* Encodes the specified AutoSaveConfig message, length delimited. Does not implicitly {@link replit.goval.api.AutoSaveConfig.verify|verify} messages.
|
|
56494
|
+
* @function encodeDelimited
|
|
56495
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56496
|
+
* @static
|
|
56497
|
+
* @param {replit.goval.api.AutoSaveConfig} message AutoSaveConfig message or plain object to encode
|
|
56498
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
56499
|
+
* @returns {$protobuf.Writer} Writer
|
|
56500
|
+
*/
|
|
56501
|
+
AutoSaveConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
56502
|
+
return this.encode(message, writer).ldelim();
|
|
56503
|
+
};
|
|
56504
|
+
|
|
56505
|
+
/**
|
|
56506
|
+
* Decodes an AutoSaveConfig message from the specified reader or buffer.
|
|
56507
|
+
* @function decode
|
|
56508
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56509
|
+
* @static
|
|
56510
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56511
|
+
* @param {number} [length] Message length if known beforehand
|
|
56512
|
+
* @returns {replit.goval.api.AutoSaveConfig} AutoSaveConfig
|
|
56513
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56514
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56515
|
+
*/
|
|
56516
|
+
AutoSaveConfig.decode = function decode(reader, length) {
|
|
56517
|
+
if (!(reader instanceof $Reader))
|
|
56518
|
+
reader = $Reader.create(reader);
|
|
56519
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.AutoSaveConfig();
|
|
56520
|
+
while (reader.pos < end) {
|
|
56521
|
+
var tag = reader.uint32();
|
|
56522
|
+
switch (tag >>> 3) {
|
|
56523
|
+
case 1: {
|
|
56524
|
+
message.disabled = reader.bool();
|
|
56525
|
+
break;
|
|
56526
|
+
}
|
|
56527
|
+
default:
|
|
56528
|
+
reader.skipType(tag & 7);
|
|
56529
|
+
break;
|
|
56530
|
+
}
|
|
56531
|
+
}
|
|
56532
|
+
return message;
|
|
56533
|
+
};
|
|
56534
|
+
|
|
56535
|
+
/**
|
|
56536
|
+
* Decodes an AutoSaveConfig message from the specified reader or buffer, length delimited.
|
|
56537
|
+
* @function decodeDelimited
|
|
56538
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56539
|
+
* @static
|
|
56540
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
56541
|
+
* @returns {replit.goval.api.AutoSaveConfig} AutoSaveConfig
|
|
56542
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
56543
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
56544
|
+
*/
|
|
56545
|
+
AutoSaveConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
56546
|
+
if (!(reader instanceof $Reader))
|
|
56547
|
+
reader = new $Reader(reader);
|
|
56548
|
+
return this.decode(reader, reader.uint32());
|
|
56549
|
+
};
|
|
56550
|
+
|
|
56551
|
+
/**
|
|
56552
|
+
* Verifies an AutoSaveConfig message.
|
|
56553
|
+
* @function verify
|
|
56554
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56555
|
+
* @static
|
|
56556
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
56557
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
56558
|
+
*/
|
|
56559
|
+
AutoSaveConfig.verify = function verify(message) {
|
|
56560
|
+
if (typeof message !== "object" || message === null)
|
|
56561
|
+
return "object expected";
|
|
56562
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
56563
|
+
if (typeof message.disabled !== "boolean")
|
|
56564
|
+
return "disabled: boolean expected";
|
|
56565
|
+
return null;
|
|
56566
|
+
};
|
|
56567
|
+
|
|
56568
|
+
/**
|
|
56569
|
+
* Creates an AutoSaveConfig message from a plain object. Also converts values to their respective internal types.
|
|
56570
|
+
* @function fromObject
|
|
56571
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56572
|
+
* @static
|
|
56573
|
+
* @param {Object.<string,*>} object Plain object
|
|
56574
|
+
* @returns {replit.goval.api.AutoSaveConfig} AutoSaveConfig
|
|
56575
|
+
*/
|
|
56576
|
+
AutoSaveConfig.fromObject = function fromObject(object) {
|
|
56577
|
+
if (object instanceof $root.replit.goval.api.AutoSaveConfig)
|
|
56578
|
+
return object;
|
|
56579
|
+
var message = new $root.replit.goval.api.AutoSaveConfig();
|
|
56580
|
+
if (object.disabled != null)
|
|
56581
|
+
message.disabled = Boolean(object.disabled);
|
|
56582
|
+
return message;
|
|
56583
|
+
};
|
|
56584
|
+
|
|
56585
|
+
/**
|
|
56586
|
+
* Creates a plain object from an AutoSaveConfig message. Also converts values to other types if specified.
|
|
56587
|
+
* @function toObject
|
|
56588
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56589
|
+
* @static
|
|
56590
|
+
* @param {replit.goval.api.AutoSaveConfig} message AutoSaveConfig
|
|
56591
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
56592
|
+
* @returns {Object.<string,*>} Plain object
|
|
56593
|
+
*/
|
|
56594
|
+
AutoSaveConfig.toObject = function toObject(message, options) {
|
|
56595
|
+
if (!options)
|
|
56596
|
+
options = {};
|
|
56597
|
+
var object = {};
|
|
56598
|
+
if (options.defaults)
|
|
56599
|
+
object.disabled = false;
|
|
56600
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
56601
|
+
object.disabled = message.disabled;
|
|
56602
|
+
return object;
|
|
56603
|
+
};
|
|
56604
|
+
|
|
56605
|
+
/**
|
|
56606
|
+
* Converts this AutoSaveConfig to JSON.
|
|
56607
|
+
* @function toJSON
|
|
56608
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56609
|
+
* @instance
|
|
56610
|
+
* @returns {Object.<string,*>} JSON object
|
|
56611
|
+
*/
|
|
56612
|
+
AutoSaveConfig.prototype.toJSON = function toJSON() {
|
|
56613
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
56614
|
+
};
|
|
56615
|
+
|
|
56616
|
+
/**
|
|
56617
|
+
* Gets the default type url for AutoSaveConfig
|
|
56618
|
+
* @function getTypeUrl
|
|
56619
|
+
* @memberof replit.goval.api.AutoSaveConfig
|
|
56620
|
+
* @static
|
|
56621
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
56622
|
+
* @returns {string} The default type url
|
|
56623
|
+
*/
|
|
56624
|
+
AutoSaveConfig.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
56625
|
+
if (typeUrlPrefix === undefined) {
|
|
56626
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
56627
|
+
}
|
|
56628
|
+
return typeUrlPrefix + "/replit.goval.api.AutoSaveConfig";
|
|
56629
|
+
};
|
|
56630
|
+
|
|
56631
|
+
return AutoSaveConfig;
|
|
56632
|
+
})();
|
|
56633
|
+
|
|
56381
56634
|
api.ToolchainGetRequest = (function() {
|
|
56382
56635
|
|
|
56383
56636
|
/**
|