@replit/protocol 0.2.93 → 0.2.95
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/index.d.ts +234 -6
- package/main/index.js +619 -24
- package/main/index.js.flow +334 -10
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -50101,7 +50101,6 @@
|
|
|
50101
50101
|
* @property {Array.<string>|null} [extensions] FileTypeAttrs extensions
|
|
50102
50102
|
* @property {Array.<string>|null} [files] FileTypeAttrs files
|
|
50103
50103
|
* @property {string|null} [filePattern] FileTypeAttrs filePattern
|
|
50104
|
-
* @property {string|null} [fileGlobPattern] FileTypeAttrs fileGlobPattern
|
|
50105
50104
|
*/
|
|
50106
50105
|
|
|
50107
50106
|
/**
|
|
@@ -50144,14 +50143,6 @@
|
|
|
50144
50143
|
*/
|
|
50145
50144
|
FileTypeAttrs.prototype.filePattern = "";
|
|
50146
50145
|
|
|
50147
|
-
/**
|
|
50148
|
-
* FileTypeAttrs fileGlobPattern.
|
|
50149
|
-
* @member {string} fileGlobPattern
|
|
50150
|
-
* @memberof replit.goval.api.FileTypeAttrs
|
|
50151
|
-
* @instance
|
|
50152
|
-
*/
|
|
50153
|
-
FileTypeAttrs.prototype.fileGlobPattern = "";
|
|
50154
|
-
|
|
50155
50146
|
/**
|
|
50156
50147
|
* Creates a new FileTypeAttrs instance using the specified properties.
|
|
50157
50148
|
* @function create
|
|
@@ -50184,8 +50175,6 @@
|
|
|
50184
50175
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.files[i]);
|
|
50185
50176
|
if (message.filePattern != null && Object.hasOwnProperty.call(message, "filePattern"))
|
|
50186
50177
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.filePattern);
|
|
50187
|
-
if (message.fileGlobPattern != null && Object.hasOwnProperty.call(message, "fileGlobPattern"))
|
|
50188
|
-
writer.uint32(/* id 4, wireType 2 =*/34).string(message.fileGlobPattern);
|
|
50189
50178
|
return writer;
|
|
50190
50179
|
};
|
|
50191
50180
|
|
|
@@ -50233,9 +50222,6 @@
|
|
|
50233
50222
|
case 3:
|
|
50234
50223
|
message.filePattern = reader.string();
|
|
50235
50224
|
break;
|
|
50236
|
-
case 4:
|
|
50237
|
-
message.fileGlobPattern = reader.string();
|
|
50238
|
-
break;
|
|
50239
50225
|
default:
|
|
50240
50226
|
reader.skipType(tag & 7);
|
|
50241
50227
|
break;
|
|
@@ -50288,9 +50274,6 @@
|
|
|
50288
50274
|
if (message.filePattern != null && message.hasOwnProperty("filePattern"))
|
|
50289
50275
|
if (!$util.isString(message.filePattern))
|
|
50290
50276
|
return "filePattern: string expected";
|
|
50291
|
-
if (message.fileGlobPattern != null && message.hasOwnProperty("fileGlobPattern"))
|
|
50292
|
-
if (!$util.isString(message.fileGlobPattern))
|
|
50293
|
-
return "fileGlobPattern: string expected";
|
|
50294
50277
|
return null;
|
|
50295
50278
|
};
|
|
50296
50279
|
|
|
@@ -50322,8 +50305,6 @@
|
|
|
50322
50305
|
}
|
|
50323
50306
|
if (object.filePattern != null)
|
|
50324
50307
|
message.filePattern = String(object.filePattern);
|
|
50325
|
-
if (object.fileGlobPattern != null)
|
|
50326
|
-
message.fileGlobPattern = String(object.fileGlobPattern);
|
|
50327
50308
|
return message;
|
|
50328
50309
|
};
|
|
50329
50310
|
|
|
@@ -50344,10 +50325,8 @@
|
|
|
50344
50325
|
object.extensions = [];
|
|
50345
50326
|
object.files = [];
|
|
50346
50327
|
}
|
|
50347
|
-
if (options.defaults)
|
|
50328
|
+
if (options.defaults)
|
|
50348
50329
|
object.filePattern = "";
|
|
50349
|
-
object.fileGlobPattern = "";
|
|
50350
|
-
}
|
|
50351
50330
|
if (message.extensions && message.extensions.length) {
|
|
50352
50331
|
object.extensions = [];
|
|
50353
50332
|
for (var j = 0; j < message.extensions.length; ++j)
|
|
@@ -50360,8 +50339,6 @@
|
|
|
50360
50339
|
}
|
|
50361
50340
|
if (message.filePattern != null && message.hasOwnProperty("filePattern"))
|
|
50362
50341
|
object.filePattern = message.filePattern;
|
|
50363
|
-
if (message.fileGlobPattern != null && message.hasOwnProperty("fileGlobPattern"))
|
|
50364
|
-
object.fileGlobPattern = message.fileGlobPattern;
|
|
50365
50342
|
return object;
|
|
50366
50343
|
};
|
|
50367
50344
|
|
|
@@ -50388,6 +50365,10 @@
|
|
|
50388
50365
|
* @property {string|null} [id] PackagerOption id
|
|
50389
50366
|
* @property {string|null} [name] PackagerOption name
|
|
50390
50367
|
* @property {string|null} [language] PackagerOption language
|
|
50368
|
+
* @property {Array.<string>|null} [packagerFiles] PackagerOption packagerFiles
|
|
50369
|
+
* @property {boolean|null} [enabledForHosting] PackagerOption enabledForHosting
|
|
50370
|
+
* @property {boolean|null} [packageSearch] PackagerOption packageSearch
|
|
50371
|
+
* @property {boolean|null} [guessImports] PackagerOption guessImports
|
|
50391
50372
|
*/
|
|
50392
50373
|
|
|
50393
50374
|
/**
|
|
@@ -50398,6 +50379,7 @@
|
|
|
50398
50379
|
* @param {replit.goval.api.IPackagerOption=} [properties] Properties to set
|
|
50399
50380
|
*/
|
|
50400
50381
|
function PackagerOption(properties) {
|
|
50382
|
+
this.packagerFiles = [];
|
|
50401
50383
|
if (properties)
|
|
50402
50384
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50403
50385
|
if (properties[keys[i]] != null)
|
|
@@ -50428,6 +50410,38 @@
|
|
|
50428
50410
|
*/
|
|
50429
50411
|
PackagerOption.prototype.language = "";
|
|
50430
50412
|
|
|
50413
|
+
/**
|
|
50414
|
+
* PackagerOption packagerFiles.
|
|
50415
|
+
* @member {Array.<string>} packagerFiles
|
|
50416
|
+
* @memberof replit.goval.api.PackagerOption
|
|
50417
|
+
* @instance
|
|
50418
|
+
*/
|
|
50419
|
+
PackagerOption.prototype.packagerFiles = $util.emptyArray;
|
|
50420
|
+
|
|
50421
|
+
/**
|
|
50422
|
+
* PackagerOption enabledForHosting.
|
|
50423
|
+
* @member {boolean} enabledForHosting
|
|
50424
|
+
* @memberof replit.goval.api.PackagerOption
|
|
50425
|
+
* @instance
|
|
50426
|
+
*/
|
|
50427
|
+
PackagerOption.prototype.enabledForHosting = false;
|
|
50428
|
+
|
|
50429
|
+
/**
|
|
50430
|
+
* PackagerOption packageSearch.
|
|
50431
|
+
* @member {boolean} packageSearch
|
|
50432
|
+
* @memberof replit.goval.api.PackagerOption
|
|
50433
|
+
* @instance
|
|
50434
|
+
*/
|
|
50435
|
+
PackagerOption.prototype.packageSearch = false;
|
|
50436
|
+
|
|
50437
|
+
/**
|
|
50438
|
+
* PackagerOption guessImports.
|
|
50439
|
+
* @member {boolean} guessImports
|
|
50440
|
+
* @memberof replit.goval.api.PackagerOption
|
|
50441
|
+
* @instance
|
|
50442
|
+
*/
|
|
50443
|
+
PackagerOption.prototype.guessImports = false;
|
|
50444
|
+
|
|
50431
50445
|
/**
|
|
50432
50446
|
* Creates a new PackagerOption instance using the specified properties.
|
|
50433
50447
|
* @function create
|
|
@@ -50458,6 +50472,15 @@
|
|
|
50458
50472
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
50459
50473
|
if (message.language != null && Object.hasOwnProperty.call(message, "language"))
|
|
50460
50474
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.language);
|
|
50475
|
+
if (message.packagerFiles != null && message.packagerFiles.length)
|
|
50476
|
+
for (var i = 0; i < message.packagerFiles.length; ++i)
|
|
50477
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.packagerFiles[i]);
|
|
50478
|
+
if (message.enabledForHosting != null && Object.hasOwnProperty.call(message, "enabledForHosting"))
|
|
50479
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.enabledForHosting);
|
|
50480
|
+
if (message.packageSearch != null && Object.hasOwnProperty.call(message, "packageSearch"))
|
|
50481
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.packageSearch);
|
|
50482
|
+
if (message.guessImports != null && Object.hasOwnProperty.call(message, "guessImports"))
|
|
50483
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.guessImports);
|
|
50461
50484
|
return writer;
|
|
50462
50485
|
};
|
|
50463
50486
|
|
|
@@ -50501,6 +50524,20 @@
|
|
|
50501
50524
|
case 3:
|
|
50502
50525
|
message.language = reader.string();
|
|
50503
50526
|
break;
|
|
50527
|
+
case 4:
|
|
50528
|
+
if (!(message.packagerFiles && message.packagerFiles.length))
|
|
50529
|
+
message.packagerFiles = [];
|
|
50530
|
+
message.packagerFiles.push(reader.string());
|
|
50531
|
+
break;
|
|
50532
|
+
case 5:
|
|
50533
|
+
message.enabledForHosting = reader.bool();
|
|
50534
|
+
break;
|
|
50535
|
+
case 6:
|
|
50536
|
+
message.packageSearch = reader.bool();
|
|
50537
|
+
break;
|
|
50538
|
+
case 7:
|
|
50539
|
+
message.guessImports = reader.bool();
|
|
50540
|
+
break;
|
|
50504
50541
|
default:
|
|
50505
50542
|
reader.skipType(tag & 7);
|
|
50506
50543
|
break;
|
|
@@ -50545,6 +50582,22 @@
|
|
|
50545
50582
|
if (message.language != null && message.hasOwnProperty("language"))
|
|
50546
50583
|
if (!$util.isString(message.language))
|
|
50547
50584
|
return "language: string expected";
|
|
50585
|
+
if (message.packagerFiles != null && message.hasOwnProperty("packagerFiles")) {
|
|
50586
|
+
if (!Array.isArray(message.packagerFiles))
|
|
50587
|
+
return "packagerFiles: array expected";
|
|
50588
|
+
for (var i = 0; i < message.packagerFiles.length; ++i)
|
|
50589
|
+
if (!$util.isString(message.packagerFiles[i]))
|
|
50590
|
+
return "packagerFiles: string[] expected";
|
|
50591
|
+
}
|
|
50592
|
+
if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
|
|
50593
|
+
if (typeof message.enabledForHosting !== "boolean")
|
|
50594
|
+
return "enabledForHosting: boolean expected";
|
|
50595
|
+
if (message.packageSearch != null && message.hasOwnProperty("packageSearch"))
|
|
50596
|
+
if (typeof message.packageSearch !== "boolean")
|
|
50597
|
+
return "packageSearch: boolean expected";
|
|
50598
|
+
if (message.guessImports != null && message.hasOwnProperty("guessImports"))
|
|
50599
|
+
if (typeof message.guessImports !== "boolean")
|
|
50600
|
+
return "guessImports: boolean expected";
|
|
50548
50601
|
return null;
|
|
50549
50602
|
};
|
|
50550
50603
|
|
|
@@ -50566,6 +50619,19 @@
|
|
|
50566
50619
|
message.name = String(object.name);
|
|
50567
50620
|
if (object.language != null)
|
|
50568
50621
|
message.language = String(object.language);
|
|
50622
|
+
if (object.packagerFiles) {
|
|
50623
|
+
if (!Array.isArray(object.packagerFiles))
|
|
50624
|
+
throw TypeError(".replit.goval.api.PackagerOption.packagerFiles: array expected");
|
|
50625
|
+
message.packagerFiles = [];
|
|
50626
|
+
for (var i = 0; i < object.packagerFiles.length; ++i)
|
|
50627
|
+
message.packagerFiles[i] = String(object.packagerFiles[i]);
|
|
50628
|
+
}
|
|
50629
|
+
if (object.enabledForHosting != null)
|
|
50630
|
+
message.enabledForHosting = Boolean(object.enabledForHosting);
|
|
50631
|
+
if (object.packageSearch != null)
|
|
50632
|
+
message.packageSearch = Boolean(object.packageSearch);
|
|
50633
|
+
if (object.guessImports != null)
|
|
50634
|
+
message.guessImports = Boolean(object.guessImports);
|
|
50569
50635
|
return message;
|
|
50570
50636
|
};
|
|
50571
50637
|
|
|
@@ -50582,10 +50648,15 @@
|
|
|
50582
50648
|
if (!options)
|
|
50583
50649
|
options = {};
|
|
50584
50650
|
var object = {};
|
|
50651
|
+
if (options.arrays || options.defaults)
|
|
50652
|
+
object.packagerFiles = [];
|
|
50585
50653
|
if (options.defaults) {
|
|
50586
50654
|
object.id = "";
|
|
50587
50655
|
object.name = "";
|
|
50588
50656
|
object.language = "";
|
|
50657
|
+
object.enabledForHosting = false;
|
|
50658
|
+
object.packageSearch = false;
|
|
50659
|
+
object.guessImports = false;
|
|
50589
50660
|
}
|
|
50590
50661
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
50591
50662
|
object.id = message.id;
|
|
@@ -50593,6 +50664,17 @@
|
|
|
50593
50664
|
object.name = message.name;
|
|
50594
50665
|
if (message.language != null && message.hasOwnProperty("language"))
|
|
50595
50666
|
object.language = message.language;
|
|
50667
|
+
if (message.packagerFiles && message.packagerFiles.length) {
|
|
50668
|
+
object.packagerFiles = [];
|
|
50669
|
+
for (var j = 0; j < message.packagerFiles.length; ++j)
|
|
50670
|
+
object.packagerFiles[j] = message.packagerFiles[j];
|
|
50671
|
+
}
|
|
50672
|
+
if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
|
|
50673
|
+
object.enabledForHosting = message.enabledForHosting;
|
|
50674
|
+
if (message.packageSearch != null && message.hasOwnProperty("packageSearch"))
|
|
50675
|
+
object.packageSearch = message.packageSearch;
|
|
50676
|
+
if (message.guessImports != null && message.hasOwnProperty("guessImports"))
|
|
50677
|
+
object.guessImports = message.guessImports;
|
|
50596
50678
|
return object;
|
|
50597
50679
|
};
|
|
50598
50680
|
|
|
@@ -50631,6 +50713,7 @@
|
|
|
50631
50713
|
* @property {Array.<string>|null} [flags] ReplToken flags
|
|
50632
50714
|
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
|
|
50633
50715
|
* @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
|
|
50716
|
+
* @property {replit.goval.api.BuildInfo|replit.goval.api.IBuildInfo|null} [buildInfo] ReplToken buildInfo
|
|
50634
50717
|
*/
|
|
50635
50718
|
|
|
50636
50719
|
/**
|
|
@@ -50769,6 +50852,14 @@
|
|
|
50769
50852
|
*/
|
|
50770
50853
|
ReplToken.prototype.features = $util.emptyArray;
|
|
50771
50854
|
|
|
50855
|
+
/**
|
|
50856
|
+
* ReplToken buildInfo.
|
|
50857
|
+
* @member {replit.goval.api.BuildInfo|null|undefined} buildInfo
|
|
50858
|
+
* @memberof replit.goval.api.ReplToken
|
|
50859
|
+
* @instance
|
|
50860
|
+
*/
|
|
50861
|
+
ReplToken.prototype.buildInfo = null;
|
|
50862
|
+
|
|
50772
50863
|
// OneOf field names bound to virtual getters and setters
|
|
50773
50864
|
var $oneOfFields;
|
|
50774
50865
|
|
|
@@ -50839,6 +50930,8 @@
|
|
|
50839
50930
|
$root.replit.goval.api.features.Feature.encode(message.features[i], writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
50840
50931
|
if (message.interactiveResourceLimits != null && Object.hasOwnProperty.call(message, "interactiveResourceLimits"))
|
|
50841
50932
|
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
50933
|
+
if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
|
|
50934
|
+
$root.replit.goval.api.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
50842
50935
|
return writer;
|
|
50843
50936
|
};
|
|
50844
50937
|
|
|
@@ -50922,6 +51015,9 @@
|
|
|
50922
51015
|
message.features = [];
|
|
50923
51016
|
message.features.push($root.replit.goval.api.features.Feature.decode(reader, reader.uint32()));
|
|
50924
51017
|
break;
|
|
51018
|
+
case 18:
|
|
51019
|
+
message.buildInfo = $root.replit.goval.api.BuildInfo.decode(reader, reader.uint32());
|
|
51020
|
+
break;
|
|
50925
51021
|
default:
|
|
50926
51022
|
reader.skipType(tag & 7);
|
|
50927
51023
|
break;
|
|
@@ -51056,6 +51152,11 @@
|
|
|
51056
51152
|
return "features." + error;
|
|
51057
51153
|
}
|
|
51058
51154
|
}
|
|
51155
|
+
if (message.buildInfo != null && message.hasOwnProperty("buildInfo")) {
|
|
51156
|
+
var error = $root.replit.goval.api.BuildInfo.verify(message.buildInfo);
|
|
51157
|
+
if (error)
|
|
51158
|
+
return "buildInfo." + error;
|
|
51159
|
+
}
|
|
51059
51160
|
return null;
|
|
51060
51161
|
};
|
|
51061
51162
|
|
|
@@ -51165,6 +51266,11 @@
|
|
|
51165
51266
|
message.features[i] = $root.replit.goval.api.features.Feature.fromObject(object.features[i]);
|
|
51166
51267
|
}
|
|
51167
51268
|
}
|
|
51269
|
+
if (object.buildInfo != null) {
|
|
51270
|
+
if (typeof object.buildInfo !== "object")
|
|
51271
|
+
throw TypeError(".replit.goval.api.ReplToken.buildInfo: object expected");
|
|
51272
|
+
message.buildInfo = $root.replit.goval.api.BuildInfo.fromObject(object.buildInfo);
|
|
51273
|
+
}
|
|
51168
51274
|
return message;
|
|
51169
51275
|
};
|
|
51170
51276
|
|
|
@@ -51196,6 +51302,7 @@
|
|
|
51196
51302
|
object.presenced = null;
|
|
51197
51303
|
object.permissions = null;
|
|
51198
51304
|
object.interactiveResourceLimits = null;
|
|
51305
|
+
object.buildInfo = null;
|
|
51199
51306
|
}
|
|
51200
51307
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
51201
51308
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -51242,6 +51349,8 @@
|
|
|
51242
51349
|
}
|
|
51243
51350
|
if (message.interactiveResourceLimits != null && message.hasOwnProperty("interactiveResourceLimits"))
|
|
51244
51351
|
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
51352
|
+
if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
|
|
51353
|
+
object.buildInfo = $root.replit.goval.api.BuildInfo.toObject(message.buildInfo, options);
|
|
51245
51354
|
return object;
|
|
51246
51355
|
};
|
|
51247
51356
|
|
|
@@ -51900,6 +52009,215 @@
|
|
|
51900
52009
|
return ReplToken;
|
|
51901
52010
|
})();
|
|
51902
52011
|
|
|
52012
|
+
api.BuildInfo = (function() {
|
|
52013
|
+
|
|
52014
|
+
/**
|
|
52015
|
+
* Properties of a BuildInfo.
|
|
52016
|
+
* @memberof replit.goval.api
|
|
52017
|
+
* @interface IBuildInfo
|
|
52018
|
+
* @property {string|null} [id] BuildInfo id
|
|
52019
|
+
* @property {string|null} [url] BuildInfo url
|
|
52020
|
+
*/
|
|
52021
|
+
|
|
52022
|
+
/**
|
|
52023
|
+
* Constructs a new BuildInfo.
|
|
52024
|
+
* @memberof replit.goval.api
|
|
52025
|
+
* @classdesc Represents a BuildInfo.
|
|
52026
|
+
* @constructor
|
|
52027
|
+
* @param {replit.goval.api.IBuildInfo=} [properties] Properties to set
|
|
52028
|
+
*/
|
|
52029
|
+
function BuildInfo(properties) {
|
|
52030
|
+
if (properties)
|
|
52031
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
52032
|
+
if (properties[keys[i]] != null)
|
|
52033
|
+
this[keys[i]] = properties[keys[i]];
|
|
52034
|
+
}
|
|
52035
|
+
|
|
52036
|
+
/**
|
|
52037
|
+
* BuildInfo id.
|
|
52038
|
+
* @member {string} id
|
|
52039
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52040
|
+
* @instance
|
|
52041
|
+
*/
|
|
52042
|
+
BuildInfo.prototype.id = "";
|
|
52043
|
+
|
|
52044
|
+
/**
|
|
52045
|
+
* BuildInfo url.
|
|
52046
|
+
* @member {string} url
|
|
52047
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52048
|
+
* @instance
|
|
52049
|
+
*/
|
|
52050
|
+
BuildInfo.prototype.url = "";
|
|
52051
|
+
|
|
52052
|
+
/**
|
|
52053
|
+
* Creates a new BuildInfo instance using the specified properties.
|
|
52054
|
+
* @function create
|
|
52055
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52056
|
+
* @static
|
|
52057
|
+
* @param {replit.goval.api.IBuildInfo=} [properties] Properties to set
|
|
52058
|
+
* @returns {replit.goval.api.BuildInfo} BuildInfo instance
|
|
52059
|
+
*/
|
|
52060
|
+
BuildInfo.create = function create(properties) {
|
|
52061
|
+
return BuildInfo.fromObject(properties);
|
|
52062
|
+
};
|
|
52063
|
+
|
|
52064
|
+
/**
|
|
52065
|
+
* Encodes the specified BuildInfo message. Does not implicitly {@link replit.goval.api.BuildInfo.verify|verify} messages.
|
|
52066
|
+
* @function encode
|
|
52067
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52068
|
+
* @static
|
|
52069
|
+
* @param {replit.goval.api.BuildInfo} message BuildInfo message or plain object to encode
|
|
52070
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52071
|
+
* @returns {$protobuf.Writer} Writer
|
|
52072
|
+
*/
|
|
52073
|
+
BuildInfo.encode = function encode(message, writer) {
|
|
52074
|
+
if (!writer)
|
|
52075
|
+
writer = $Writer.create();
|
|
52076
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
52077
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
52078
|
+
if (message.url != null && Object.hasOwnProperty.call(message, "url"))
|
|
52079
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.url);
|
|
52080
|
+
return writer;
|
|
52081
|
+
};
|
|
52082
|
+
|
|
52083
|
+
/**
|
|
52084
|
+
* Encodes the specified BuildInfo message, length delimited. Does not implicitly {@link replit.goval.api.BuildInfo.verify|verify} messages.
|
|
52085
|
+
* @function encodeDelimited
|
|
52086
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52087
|
+
* @static
|
|
52088
|
+
* @param {replit.goval.api.BuildInfo} message BuildInfo message or plain object to encode
|
|
52089
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
52090
|
+
* @returns {$protobuf.Writer} Writer
|
|
52091
|
+
*/
|
|
52092
|
+
BuildInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
52093
|
+
return this.encode(message, writer).ldelim();
|
|
52094
|
+
};
|
|
52095
|
+
|
|
52096
|
+
/**
|
|
52097
|
+
* Decodes a BuildInfo message from the specified reader or buffer.
|
|
52098
|
+
* @function decode
|
|
52099
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52100
|
+
* @static
|
|
52101
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52102
|
+
* @param {number} [length] Message length if known beforehand
|
|
52103
|
+
* @returns {replit.goval.api.BuildInfo} BuildInfo
|
|
52104
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52105
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52106
|
+
*/
|
|
52107
|
+
BuildInfo.decode = function decode(reader, length) {
|
|
52108
|
+
if (!(reader instanceof $Reader))
|
|
52109
|
+
reader = $Reader.create(reader);
|
|
52110
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.BuildInfo();
|
|
52111
|
+
while (reader.pos < end) {
|
|
52112
|
+
var tag = reader.uint32();
|
|
52113
|
+
switch (tag >>> 3) {
|
|
52114
|
+
case 1:
|
|
52115
|
+
message.id = reader.string();
|
|
52116
|
+
break;
|
|
52117
|
+
case 2:
|
|
52118
|
+
message.url = reader.string();
|
|
52119
|
+
break;
|
|
52120
|
+
default:
|
|
52121
|
+
reader.skipType(tag & 7);
|
|
52122
|
+
break;
|
|
52123
|
+
}
|
|
52124
|
+
}
|
|
52125
|
+
return message;
|
|
52126
|
+
};
|
|
52127
|
+
|
|
52128
|
+
/**
|
|
52129
|
+
* Decodes a BuildInfo message from the specified reader or buffer, length delimited.
|
|
52130
|
+
* @function decodeDelimited
|
|
52131
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52132
|
+
* @static
|
|
52133
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
52134
|
+
* @returns {replit.goval.api.BuildInfo} BuildInfo
|
|
52135
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
52136
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
52137
|
+
*/
|
|
52138
|
+
BuildInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
52139
|
+
if (!(reader instanceof $Reader))
|
|
52140
|
+
reader = new $Reader(reader);
|
|
52141
|
+
return this.decode(reader, reader.uint32());
|
|
52142
|
+
};
|
|
52143
|
+
|
|
52144
|
+
/**
|
|
52145
|
+
* Verifies a BuildInfo message.
|
|
52146
|
+
* @function verify
|
|
52147
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52148
|
+
* @static
|
|
52149
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
52150
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
52151
|
+
*/
|
|
52152
|
+
BuildInfo.verify = function verify(message) {
|
|
52153
|
+
if (typeof message !== "object" || message === null)
|
|
52154
|
+
return "object expected";
|
|
52155
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
52156
|
+
if (!$util.isString(message.id))
|
|
52157
|
+
return "id: string expected";
|
|
52158
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
52159
|
+
if (!$util.isString(message.url))
|
|
52160
|
+
return "url: string expected";
|
|
52161
|
+
return null;
|
|
52162
|
+
};
|
|
52163
|
+
|
|
52164
|
+
/**
|
|
52165
|
+
* Creates a BuildInfo message from a plain object. Also converts values to their respective internal types.
|
|
52166
|
+
* @function fromObject
|
|
52167
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52168
|
+
* @static
|
|
52169
|
+
* @param {Object.<string,*>} object Plain object
|
|
52170
|
+
* @returns {replit.goval.api.BuildInfo} BuildInfo
|
|
52171
|
+
*/
|
|
52172
|
+
BuildInfo.fromObject = function fromObject(object) {
|
|
52173
|
+
if (object instanceof $root.replit.goval.api.BuildInfo)
|
|
52174
|
+
return object;
|
|
52175
|
+
var message = new $root.replit.goval.api.BuildInfo();
|
|
52176
|
+
if (object.id != null)
|
|
52177
|
+
message.id = String(object.id);
|
|
52178
|
+
if (object.url != null)
|
|
52179
|
+
message.url = String(object.url);
|
|
52180
|
+
return message;
|
|
52181
|
+
};
|
|
52182
|
+
|
|
52183
|
+
/**
|
|
52184
|
+
* Creates a plain object from a BuildInfo message. Also converts values to other types if specified.
|
|
52185
|
+
* @function toObject
|
|
52186
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52187
|
+
* @static
|
|
52188
|
+
* @param {replit.goval.api.BuildInfo} message BuildInfo
|
|
52189
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
52190
|
+
* @returns {Object.<string,*>} Plain object
|
|
52191
|
+
*/
|
|
52192
|
+
BuildInfo.toObject = function toObject(message, options) {
|
|
52193
|
+
if (!options)
|
|
52194
|
+
options = {};
|
|
52195
|
+
var object = {};
|
|
52196
|
+
if (options.defaults) {
|
|
52197
|
+
object.id = "";
|
|
52198
|
+
object.url = "";
|
|
52199
|
+
}
|
|
52200
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
52201
|
+
object.id = message.id;
|
|
52202
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
52203
|
+
object.url = message.url;
|
|
52204
|
+
return object;
|
|
52205
|
+
};
|
|
52206
|
+
|
|
52207
|
+
/**
|
|
52208
|
+
* Converts this BuildInfo to JSON.
|
|
52209
|
+
* @function toJSON
|
|
52210
|
+
* @memberof replit.goval.api.BuildInfo
|
|
52211
|
+
* @instance
|
|
52212
|
+
* @returns {Object.<string,*>} JSON object
|
|
52213
|
+
*/
|
|
52214
|
+
BuildInfo.prototype.toJSON = function toJSON() {
|
|
52215
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
52216
|
+
};
|
|
52217
|
+
|
|
52218
|
+
return BuildInfo;
|
|
52219
|
+
})();
|
|
52220
|
+
|
|
51903
52221
|
api.TLSCertificate = (function() {
|
|
51904
52222
|
|
|
51905
52223
|
/**
|
|
@@ -58267,6 +58585,7 @@
|
|
|
58267
58585
|
* @property {string|null} [sourceRepl] Repl sourceRepl
|
|
58268
58586
|
* @property {string|null} [database] Repl database
|
|
58269
58587
|
* @property {replit.goval.api.repl.Buckets|replit.goval.api.repl.IBuckets|null} [buckets] Repl buckets
|
|
58588
|
+
* @property {replit.goval.api.repl.UserId|replit.goval.api.repl.IUserId|null} [userId] Repl userId
|
|
58270
58589
|
*/
|
|
58271
58590
|
|
|
58272
58591
|
/**
|
|
@@ -58347,6 +58666,14 @@
|
|
|
58347
58666
|
*/
|
|
58348
58667
|
Repl.prototype.buckets = null;
|
|
58349
58668
|
|
|
58669
|
+
/**
|
|
58670
|
+
* Repl userId.
|
|
58671
|
+
* @member {replit.goval.api.repl.UserId|null|undefined} userId
|
|
58672
|
+
* @memberof replit.goval.api.repl.Repl
|
|
58673
|
+
* @instance
|
|
58674
|
+
*/
|
|
58675
|
+
Repl.prototype.userId = null;
|
|
58676
|
+
|
|
58350
58677
|
/**
|
|
58351
58678
|
* Creates a new Repl instance using the specified properties.
|
|
58352
58679
|
* @function create
|
|
@@ -58387,6 +58714,8 @@
|
|
|
58387
58714
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.database);
|
|
58388
58715
|
if (message.buckets != null && Object.hasOwnProperty.call(message, "buckets"))
|
|
58389
58716
|
$root.replit.goval.api.repl.Buckets.encode(message.buckets, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
58717
|
+
if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
|
|
58718
|
+
$root.replit.goval.api.repl.UserId.encode(message.userId, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
58390
58719
|
return writer;
|
|
58391
58720
|
};
|
|
58392
58721
|
|
|
@@ -58445,6 +58774,9 @@
|
|
|
58445
58774
|
case 8:
|
|
58446
58775
|
message.buckets = $root.replit.goval.api.repl.Buckets.decode(reader, reader.uint32());
|
|
58447
58776
|
break;
|
|
58777
|
+
case 9:
|
|
58778
|
+
message.userId = $root.replit.goval.api.repl.UserId.decode(reader, reader.uint32());
|
|
58779
|
+
break;
|
|
58448
58780
|
default:
|
|
58449
58781
|
reader.skipType(tag & 7);
|
|
58450
58782
|
break;
|
|
@@ -58506,6 +58838,11 @@
|
|
|
58506
58838
|
if (error)
|
|
58507
58839
|
return "buckets." + error;
|
|
58508
58840
|
}
|
|
58841
|
+
if (message.userId != null && message.hasOwnProperty("userId")) {
|
|
58842
|
+
var error = $root.replit.goval.api.repl.UserId.verify(message.userId);
|
|
58843
|
+
if (error)
|
|
58844
|
+
return "userId." + error;
|
|
58845
|
+
}
|
|
58509
58846
|
return null;
|
|
58510
58847
|
};
|
|
58511
58848
|
|
|
@@ -58540,6 +58877,11 @@
|
|
|
58540
58877
|
throw TypeError(".replit.goval.api.repl.Repl.buckets: object expected");
|
|
58541
58878
|
message.buckets = $root.replit.goval.api.repl.Buckets.fromObject(object.buckets);
|
|
58542
58879
|
}
|
|
58880
|
+
if (object.userId != null) {
|
|
58881
|
+
if (typeof object.userId !== "object")
|
|
58882
|
+
throw TypeError(".replit.goval.api.repl.Repl.userId: object expected");
|
|
58883
|
+
message.userId = $root.replit.goval.api.repl.UserId.fromObject(object.userId);
|
|
58884
|
+
}
|
|
58543
58885
|
return message;
|
|
58544
58886
|
};
|
|
58545
58887
|
|
|
@@ -58565,6 +58907,7 @@
|
|
|
58565
58907
|
object.sourceRepl = "";
|
|
58566
58908
|
object.database = "";
|
|
58567
58909
|
object.buckets = null;
|
|
58910
|
+
object.userId = null;
|
|
58568
58911
|
}
|
|
58569
58912
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
58570
58913
|
object.id = message.id;
|
|
@@ -58582,6 +58925,8 @@
|
|
|
58582
58925
|
object.database = message.database;
|
|
58583
58926
|
if (message.buckets != null && message.hasOwnProperty("buckets"))
|
|
58584
58927
|
object.buckets = $root.replit.goval.api.repl.Buckets.toObject(message.buckets, options);
|
|
58928
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
58929
|
+
object.userId = $root.replit.goval.api.repl.UserId.toObject(message.userId, options);
|
|
58585
58930
|
return object;
|
|
58586
58931
|
};
|
|
58587
58932
|
|
|
@@ -58599,6 +58944,256 @@
|
|
|
58599
58944
|
return Repl;
|
|
58600
58945
|
})();
|
|
58601
58946
|
|
|
58947
|
+
/**
|
|
58948
|
+
* Environment enum.
|
|
58949
|
+
* @name replit.goval.api.repl.Environment
|
|
58950
|
+
* @enum {number}
|
|
58951
|
+
* @property {number} DEVELOPMENT=0 DEVELOPMENT value
|
|
58952
|
+
* @property {number} PRODUCTION=1 PRODUCTION value
|
|
58953
|
+
*/
|
|
58954
|
+
repl.Environment = (function() {
|
|
58955
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
58956
|
+
values[valuesById[0] = "DEVELOPMENT"] = 0;
|
|
58957
|
+
values[valuesById[1] = "PRODUCTION"] = 1;
|
|
58958
|
+
return values;
|
|
58959
|
+
})();
|
|
58960
|
+
|
|
58961
|
+
repl.UserId = (function() {
|
|
58962
|
+
|
|
58963
|
+
/**
|
|
58964
|
+
* Properties of a UserId.
|
|
58965
|
+
* @memberof replit.goval.api.repl
|
|
58966
|
+
* @interface IUserId
|
|
58967
|
+
* @property {number|null} [id] UserId id
|
|
58968
|
+
* @property {replit.goval.api.repl.Environment|null} [environment] UserId environment
|
|
58969
|
+
*/
|
|
58970
|
+
|
|
58971
|
+
/**
|
|
58972
|
+
* Constructs a new UserId.
|
|
58973
|
+
* @memberof replit.goval.api.repl
|
|
58974
|
+
* @classdesc Represents a UserId.
|
|
58975
|
+
* @constructor
|
|
58976
|
+
* @param {replit.goval.api.repl.IUserId=} [properties] Properties to set
|
|
58977
|
+
*/
|
|
58978
|
+
function UserId(properties) {
|
|
58979
|
+
if (properties)
|
|
58980
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58981
|
+
if (properties[keys[i]] != null)
|
|
58982
|
+
this[keys[i]] = properties[keys[i]];
|
|
58983
|
+
}
|
|
58984
|
+
|
|
58985
|
+
/**
|
|
58986
|
+
* UserId id.
|
|
58987
|
+
* @member {number} id
|
|
58988
|
+
* @memberof replit.goval.api.repl.UserId
|
|
58989
|
+
* @instance
|
|
58990
|
+
*/
|
|
58991
|
+
UserId.prototype.id = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
58992
|
+
|
|
58993
|
+
/**
|
|
58994
|
+
* UserId environment.
|
|
58995
|
+
* @member {replit.goval.api.repl.Environment} environment
|
|
58996
|
+
* @memberof replit.goval.api.repl.UserId
|
|
58997
|
+
* @instance
|
|
58998
|
+
*/
|
|
58999
|
+
UserId.prototype.environment = 0;
|
|
59000
|
+
|
|
59001
|
+
/**
|
|
59002
|
+
* Creates a new UserId instance using the specified properties.
|
|
59003
|
+
* @function create
|
|
59004
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59005
|
+
* @static
|
|
59006
|
+
* @param {replit.goval.api.repl.IUserId=} [properties] Properties to set
|
|
59007
|
+
* @returns {replit.goval.api.repl.UserId} UserId instance
|
|
59008
|
+
*/
|
|
59009
|
+
UserId.create = function create(properties) {
|
|
59010
|
+
return UserId.fromObject(properties);
|
|
59011
|
+
};
|
|
59012
|
+
|
|
59013
|
+
/**
|
|
59014
|
+
* Encodes the specified UserId message. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
|
|
59015
|
+
* @function encode
|
|
59016
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59017
|
+
* @static
|
|
59018
|
+
* @param {replit.goval.api.repl.UserId} message UserId message or plain object to encode
|
|
59019
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59020
|
+
* @returns {$protobuf.Writer} Writer
|
|
59021
|
+
*/
|
|
59022
|
+
UserId.encode = function encode(message, writer) {
|
|
59023
|
+
if (!writer)
|
|
59024
|
+
writer = $Writer.create();
|
|
59025
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
59026
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.id);
|
|
59027
|
+
if (message.environment != null && Object.hasOwnProperty.call(message, "environment"))
|
|
59028
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.environment);
|
|
59029
|
+
return writer;
|
|
59030
|
+
};
|
|
59031
|
+
|
|
59032
|
+
/**
|
|
59033
|
+
* Encodes the specified UserId message, length delimited. Does not implicitly {@link replit.goval.api.repl.UserId.verify|verify} messages.
|
|
59034
|
+
* @function encodeDelimited
|
|
59035
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59036
|
+
* @static
|
|
59037
|
+
* @param {replit.goval.api.repl.UserId} message UserId message or plain object to encode
|
|
59038
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59039
|
+
* @returns {$protobuf.Writer} Writer
|
|
59040
|
+
*/
|
|
59041
|
+
UserId.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59042
|
+
return this.encode(message, writer).ldelim();
|
|
59043
|
+
};
|
|
59044
|
+
|
|
59045
|
+
/**
|
|
59046
|
+
* Decodes a UserId message from the specified reader or buffer.
|
|
59047
|
+
* @function decode
|
|
59048
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59049
|
+
* @static
|
|
59050
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59051
|
+
* @param {number} [length] Message length if known beforehand
|
|
59052
|
+
* @returns {replit.goval.api.repl.UserId} UserId
|
|
59053
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59054
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59055
|
+
*/
|
|
59056
|
+
UserId.decode = function decode(reader, length) {
|
|
59057
|
+
if (!(reader instanceof $Reader))
|
|
59058
|
+
reader = $Reader.create(reader);
|
|
59059
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.UserId();
|
|
59060
|
+
while (reader.pos < end) {
|
|
59061
|
+
var tag = reader.uint32();
|
|
59062
|
+
switch (tag >>> 3) {
|
|
59063
|
+
case 1:
|
|
59064
|
+
message.id = reader.int64();
|
|
59065
|
+
break;
|
|
59066
|
+
case 2:
|
|
59067
|
+
message.environment = reader.int32();
|
|
59068
|
+
break;
|
|
59069
|
+
default:
|
|
59070
|
+
reader.skipType(tag & 7);
|
|
59071
|
+
break;
|
|
59072
|
+
}
|
|
59073
|
+
}
|
|
59074
|
+
return message;
|
|
59075
|
+
};
|
|
59076
|
+
|
|
59077
|
+
/**
|
|
59078
|
+
* Decodes a UserId message from the specified reader or buffer, length delimited.
|
|
59079
|
+
* @function decodeDelimited
|
|
59080
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59081
|
+
* @static
|
|
59082
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59083
|
+
* @returns {replit.goval.api.repl.UserId} UserId
|
|
59084
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59085
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59086
|
+
*/
|
|
59087
|
+
UserId.decodeDelimited = function decodeDelimited(reader) {
|
|
59088
|
+
if (!(reader instanceof $Reader))
|
|
59089
|
+
reader = new $Reader(reader);
|
|
59090
|
+
return this.decode(reader, reader.uint32());
|
|
59091
|
+
};
|
|
59092
|
+
|
|
59093
|
+
/**
|
|
59094
|
+
* Verifies a UserId message.
|
|
59095
|
+
* @function verify
|
|
59096
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59097
|
+
* @static
|
|
59098
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59099
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59100
|
+
*/
|
|
59101
|
+
UserId.verify = function verify(message) {
|
|
59102
|
+
if (typeof message !== "object" || message === null)
|
|
59103
|
+
return "object expected";
|
|
59104
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
59105
|
+
if (!$util.isInteger(message.id) && !(message.id && $util.isInteger(message.id.low) && $util.isInteger(message.id.high)))
|
|
59106
|
+
return "id: integer|Long expected";
|
|
59107
|
+
if (message.environment != null && message.hasOwnProperty("environment"))
|
|
59108
|
+
switch (message.environment) {
|
|
59109
|
+
default:
|
|
59110
|
+
return "environment: enum value expected";
|
|
59111
|
+
case 0:
|
|
59112
|
+
case 1:
|
|
59113
|
+
break;
|
|
59114
|
+
}
|
|
59115
|
+
return null;
|
|
59116
|
+
};
|
|
59117
|
+
|
|
59118
|
+
/**
|
|
59119
|
+
* Creates a UserId message from a plain object. Also converts values to their respective internal types.
|
|
59120
|
+
* @function fromObject
|
|
59121
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59122
|
+
* @static
|
|
59123
|
+
* @param {Object.<string,*>} object Plain object
|
|
59124
|
+
* @returns {replit.goval.api.repl.UserId} UserId
|
|
59125
|
+
*/
|
|
59126
|
+
UserId.fromObject = function fromObject(object) {
|
|
59127
|
+
if (object instanceof $root.replit.goval.api.repl.UserId)
|
|
59128
|
+
return object;
|
|
59129
|
+
var message = new $root.replit.goval.api.repl.UserId();
|
|
59130
|
+
if (object.id != null)
|
|
59131
|
+
if ($util.Long)
|
|
59132
|
+
(message.id = $util.Long.fromValue(object.id)).unsigned = false;
|
|
59133
|
+
else if (typeof object.id === "string")
|
|
59134
|
+
message.id = parseInt(object.id, 10);
|
|
59135
|
+
else if (typeof object.id === "number")
|
|
59136
|
+
message.id = object.id;
|
|
59137
|
+
else if (typeof object.id === "object")
|
|
59138
|
+
message.id = new $util.LongBits(object.id.low >>> 0, object.id.high >>> 0).toNumber();
|
|
59139
|
+
switch (object.environment) {
|
|
59140
|
+
case "DEVELOPMENT":
|
|
59141
|
+
case 0:
|
|
59142
|
+
message.environment = 0;
|
|
59143
|
+
break;
|
|
59144
|
+
case "PRODUCTION":
|
|
59145
|
+
case 1:
|
|
59146
|
+
message.environment = 1;
|
|
59147
|
+
break;
|
|
59148
|
+
}
|
|
59149
|
+
return message;
|
|
59150
|
+
};
|
|
59151
|
+
|
|
59152
|
+
/**
|
|
59153
|
+
* Creates a plain object from a UserId message. Also converts values to other types if specified.
|
|
59154
|
+
* @function toObject
|
|
59155
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59156
|
+
* @static
|
|
59157
|
+
* @param {replit.goval.api.repl.UserId} message UserId
|
|
59158
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59159
|
+
* @returns {Object.<string,*>} Plain object
|
|
59160
|
+
*/
|
|
59161
|
+
UserId.toObject = function toObject(message, options) {
|
|
59162
|
+
if (!options)
|
|
59163
|
+
options = {};
|
|
59164
|
+
var object = {};
|
|
59165
|
+
if (options.defaults) {
|
|
59166
|
+
if ($util.Long) {
|
|
59167
|
+
var long = new $util.Long(0, 0, false);
|
|
59168
|
+
object.id = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
59169
|
+
} else
|
|
59170
|
+
object.id = options.longs === String ? "0" : 0;
|
|
59171
|
+
object.environment = options.enums === String ? "DEVELOPMENT" : 0;
|
|
59172
|
+
}
|
|
59173
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
59174
|
+
if (typeof message.id === "number")
|
|
59175
|
+
object.id = options.longs === String ? String(message.id) : message.id;
|
|
59176
|
+
else
|
|
59177
|
+
object.id = options.longs === String ? $util.Long.prototype.toString.call(message.id) : options.longs === Number ? new $util.LongBits(message.id.low >>> 0, message.id.high >>> 0).toNumber() : message.id;
|
|
59178
|
+
if (message.environment != null && message.hasOwnProperty("environment"))
|
|
59179
|
+
object.environment = options.enums === String ? $root.replit.goval.api.repl.Environment[message.environment] : message.environment;
|
|
59180
|
+
return object;
|
|
59181
|
+
};
|
|
59182
|
+
|
|
59183
|
+
/**
|
|
59184
|
+
* Converts this UserId to JSON.
|
|
59185
|
+
* @function toJSON
|
|
59186
|
+
* @memberof replit.goval.api.repl.UserId
|
|
59187
|
+
* @instance
|
|
59188
|
+
* @returns {Object.<string,*>} JSON object
|
|
59189
|
+
*/
|
|
59190
|
+
UserId.prototype.toJSON = function toJSON() {
|
|
59191
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59192
|
+
};
|
|
59193
|
+
|
|
59194
|
+
return UserId;
|
|
59195
|
+
})();
|
|
59196
|
+
|
|
58602
59197
|
repl.ResourceLimits = (function() {
|
|
58603
59198
|
|
|
58604
59199
|
/**
|