@replit/protocol 0.3.25 → 0.3.27
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 +1 -1
- package/main/index.d.ts +225 -1
- package/main/index.js +581 -2
- package/main/index.js.flow +315 -1
- package/package.json +2 -2
package/main/index.js
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
* @property {string|null} [error] Command error
|
|
72
72
|
* @property {string|null} [stderr] Command stderr
|
|
73
73
|
* @property {string|null} [log] Command log
|
|
74
|
+
* @property {google.protobuf.Empty|google.protobuf.IEmpty|null} [inputClose] Command inputClose
|
|
74
75
|
* @property {replit.goval.api.OutputBlockStartEvent|replit.goval.api.IOutputBlockStartEvent|null} [outputBlockStartEvent] Command outputBlockStartEvent
|
|
75
76
|
* @property {replit.goval.api.OutputBlockEndEvent|replit.goval.api.IOutputBlockEndEvent|null} [outputBlockEndEvent] Command outputBlockEndEvent
|
|
76
77
|
* @property {number|null} [exitCodeEvent] Command exitCodeEvent
|
|
@@ -430,6 +431,14 @@
|
|
|
430
431
|
*/
|
|
431
432
|
Command.prototype.log = null;
|
|
432
433
|
|
|
434
|
+
/**
|
|
435
|
+
* Command inputClose.
|
|
436
|
+
* @member {google.protobuf.Empty|null|undefined} inputClose
|
|
437
|
+
* @memberof replit.goval.api.Command
|
|
438
|
+
* @instance
|
|
439
|
+
*/
|
|
440
|
+
Command.prototype.inputClose = null;
|
|
441
|
+
|
|
433
442
|
/**
|
|
434
443
|
* Command outputBlockStartEvent.
|
|
435
444
|
* @member {replit.goval.api.OutputBlockStartEvent|null|undefined} outputBlockStartEvent
|
|
@@ -1763,12 +1772,12 @@
|
|
|
1763
1772
|
|
|
1764
1773
|
/**
|
|
1765
1774
|
* Command body.
|
|
1766
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
|
|
1775
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
|
|
1767
1776
|
* @memberof replit.goval.api.Command
|
|
1768
1777
|
* @instance
|
|
1769
1778
|
*/
|
|
1770
1779
|
Object.defineProperty(Command.prototype, "body", {
|
|
1771
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
|
|
1780
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
|
|
1772
1781
|
set: $util.oneOfSetter($oneOfFields)
|
|
1773
1782
|
});
|
|
1774
1783
|
|
|
@@ -1876,6 +1885,8 @@
|
|
|
1876
1885
|
writer.uint32(/* id 47, wireType 2 =*/378).string(message.log);
|
|
1877
1886
|
if (message.portClose != null && Object.hasOwnProperty.call(message, "portClose"))
|
|
1878
1887
|
$root.replit.goval.api.PortClose.encode(message.portClose, writer.uint32(/* id 48, wireType 2 =*/386).fork()).ldelim();
|
|
1888
|
+
if (message.inputClose != null && Object.hasOwnProperty.call(message, "inputClose"))
|
|
1889
|
+
$root.google.protobuf.Empty.encode(message.inputClose, writer.uint32(/* id 49, wireType 2 =*/394).fork()).ldelim();
|
|
1879
1890
|
if (message.runContainedTest != null && Object.hasOwnProperty.call(message, "runContainedTest"))
|
|
1880
1891
|
$root.replit.goval.api.ContainedTest.encode(message.runContainedTest, writer.uint32(/* id 70, wireType 2 =*/562).fork()).ldelim();
|
|
1881
1892
|
if (message.testResult != null && Object.hasOwnProperty.call(message, "testResult"))
|
|
@@ -2295,6 +2306,10 @@
|
|
|
2295
2306
|
message.log = reader.string();
|
|
2296
2307
|
break;
|
|
2297
2308
|
}
|
|
2309
|
+
case 49: {
|
|
2310
|
+
message.inputClose = $root.google.protobuf.Empty.decode(reader, reader.uint32());
|
|
2311
|
+
break;
|
|
2312
|
+
}
|
|
2298
2313
|
case 443: {
|
|
2299
2314
|
message.outputBlockStartEvent = $root.replit.goval.api.OutputBlockStartEvent.decode(reader, reader.uint32());
|
|
2300
2315
|
break;
|
|
@@ -3197,6 +3212,16 @@
|
|
|
3197
3212
|
if (!$util.isString(message.log))
|
|
3198
3213
|
return "log: string expected";
|
|
3199
3214
|
}
|
|
3215
|
+
if (message.inputClose != null && message.hasOwnProperty("inputClose")) {
|
|
3216
|
+
if (properties.body === 1)
|
|
3217
|
+
return "body: multiple values";
|
|
3218
|
+
properties.body = 1;
|
|
3219
|
+
{
|
|
3220
|
+
var error = $root.google.protobuf.Empty.verify(message.inputClose);
|
|
3221
|
+
if (error)
|
|
3222
|
+
return "inputClose." + error;
|
|
3223
|
+
}
|
|
3224
|
+
}
|
|
3200
3225
|
if (message.outputBlockStartEvent != null && message.hasOwnProperty("outputBlockStartEvent")) {
|
|
3201
3226
|
if (properties.body === 1)
|
|
3202
3227
|
return "body: multiple values";
|
|
@@ -4933,6 +4958,11 @@
|
|
|
4933
4958
|
message.stderr = String(object.stderr);
|
|
4934
4959
|
if (object.log != null)
|
|
4935
4960
|
message.log = String(object.log);
|
|
4961
|
+
if (object.inputClose != null) {
|
|
4962
|
+
if (typeof object.inputClose !== "object")
|
|
4963
|
+
throw TypeError(".replit.goval.api.Command.inputClose: object expected");
|
|
4964
|
+
message.inputClose = $root.google.protobuf.Empty.fromObject(object.inputClose);
|
|
4965
|
+
}
|
|
4936
4966
|
if (object.outputBlockStartEvent != null) {
|
|
4937
4967
|
if (typeof object.outputBlockStartEvent !== "object")
|
|
4938
4968
|
throw TypeError(".replit.goval.api.Command.outputBlockStartEvent: object expected");
|
|
@@ -5975,6 +6005,11 @@
|
|
|
5975
6005
|
if (options.oneofs)
|
|
5976
6006
|
object.body = "portClose";
|
|
5977
6007
|
}
|
|
6008
|
+
if (message.inputClose != null && message.hasOwnProperty("inputClose")) {
|
|
6009
|
+
object.inputClose = $root.google.protobuf.Empty.toObject(message.inputClose, options);
|
|
6010
|
+
if (options.oneofs)
|
|
6011
|
+
object.body = "inputClose";
|
|
6012
|
+
}
|
|
5978
6013
|
if (message.runContainedTest != null && message.hasOwnProperty("runContainedTest")) {
|
|
5979
6014
|
object.runContainedTest = $root.replit.goval.api.ContainedTest.toObject(message.runContainedTest, options);
|
|
5980
6015
|
if (options.oneofs)
|
|
@@ -52363,6 +52398,7 @@
|
|
|
52363
52398
|
* @property {Array.<string>|null} [resolutionPath] NixModule resolutionPath
|
|
52364
52399
|
* @property {string|null} [resolvedId] NixModule resolvedId
|
|
52365
52400
|
* @property {string|null} [referencedId] NixModule referencedId
|
|
52401
|
+
* @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] NixModule formatters
|
|
52366
52402
|
*/
|
|
52367
52403
|
|
|
52368
52404
|
/**
|
|
@@ -52378,6 +52414,7 @@
|
|
|
52378
52414
|
this.packagers = [];
|
|
52379
52415
|
this.languageServers = [];
|
|
52380
52416
|
this.resolutionPath = [];
|
|
52417
|
+
this.formatters = [];
|
|
52381
52418
|
if (properties)
|
|
52382
52419
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
52383
52420
|
if (properties[keys[i]] != null)
|
|
@@ -52480,6 +52517,14 @@
|
|
|
52480
52517
|
*/
|
|
52481
52518
|
NixModule.prototype.referencedId = "";
|
|
52482
52519
|
|
|
52520
|
+
/**
|
|
52521
|
+
* NixModule formatters.
|
|
52522
|
+
* @member {Array.<replit.goval.api.FormatterOption>} formatters
|
|
52523
|
+
* @memberof replit.goval.api.NixModule
|
|
52524
|
+
* @instance
|
|
52525
|
+
*/
|
|
52526
|
+
NixModule.prototype.formatters = $util.emptyArray;
|
|
52527
|
+
|
|
52483
52528
|
/**
|
|
52484
52529
|
* Creates a new NixModule instance using the specified properties.
|
|
52485
52530
|
* @function create
|
|
@@ -52533,6 +52578,9 @@
|
|
|
52533
52578
|
writer.uint32(/* id 11, wireType 2 =*/90).string(message.resolvedId);
|
|
52534
52579
|
if (message.referencedId != null && Object.hasOwnProperty.call(message, "referencedId"))
|
|
52535
52580
|
writer.uint32(/* id 12, wireType 2 =*/98).string(message.referencedId);
|
|
52581
|
+
if (message.formatters != null && message.formatters.length)
|
|
52582
|
+
for (var i = 0; i < message.formatters.length; ++i)
|
|
52583
|
+
$root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
|
|
52536
52584
|
return writer;
|
|
52537
52585
|
};
|
|
52538
52586
|
|
|
@@ -52625,6 +52673,12 @@
|
|
|
52625
52673
|
message.referencedId = reader.string();
|
|
52626
52674
|
break;
|
|
52627
52675
|
}
|
|
52676
|
+
case 13: {
|
|
52677
|
+
if (!(message.formatters && message.formatters.length))
|
|
52678
|
+
message.formatters = [];
|
|
52679
|
+
message.formatters.push($root.replit.goval.api.FormatterOption.decode(reader, reader.uint32()));
|
|
52680
|
+
break;
|
|
52681
|
+
}
|
|
52628
52682
|
default:
|
|
52629
52683
|
reader.skipType(tag & 7);
|
|
52630
52684
|
break;
|
|
@@ -52724,6 +52778,15 @@
|
|
|
52724
52778
|
if (message.referencedId != null && message.hasOwnProperty("referencedId"))
|
|
52725
52779
|
if (!$util.isString(message.referencedId))
|
|
52726
52780
|
return "referencedId: string expected";
|
|
52781
|
+
if (message.formatters != null && message.hasOwnProperty("formatters")) {
|
|
52782
|
+
if (!Array.isArray(message.formatters))
|
|
52783
|
+
return "formatters: array expected";
|
|
52784
|
+
for (var i = 0; i < message.formatters.length; ++i) {
|
|
52785
|
+
var error = $root.replit.goval.api.FormatterOption.verify(message.formatters[i]);
|
|
52786
|
+
if (error)
|
|
52787
|
+
return "formatters." + error;
|
|
52788
|
+
}
|
|
52789
|
+
}
|
|
52727
52790
|
return null;
|
|
52728
52791
|
};
|
|
52729
52792
|
|
|
@@ -52800,6 +52863,16 @@
|
|
|
52800
52863
|
message.resolvedId = String(object.resolvedId);
|
|
52801
52864
|
if (object.referencedId != null)
|
|
52802
52865
|
message.referencedId = String(object.referencedId);
|
|
52866
|
+
if (object.formatters) {
|
|
52867
|
+
if (!Array.isArray(object.formatters))
|
|
52868
|
+
throw TypeError(".replit.goval.api.NixModule.formatters: array expected");
|
|
52869
|
+
message.formatters = [];
|
|
52870
|
+
for (var i = 0; i < object.formatters.length; ++i) {
|
|
52871
|
+
if (typeof object.formatters[i] !== "object")
|
|
52872
|
+
throw TypeError(".replit.goval.api.NixModule.formatters: object expected");
|
|
52873
|
+
message.formatters[i] = $root.replit.goval.api.FormatterOption.fromObject(object.formatters[i]);
|
|
52874
|
+
}
|
|
52875
|
+
}
|
|
52803
52876
|
return message;
|
|
52804
52877
|
};
|
|
52805
52878
|
|
|
@@ -52822,6 +52895,7 @@
|
|
|
52822
52895
|
object.packagers = [];
|
|
52823
52896
|
object.languageServers = [];
|
|
52824
52897
|
object.resolutionPath = [];
|
|
52898
|
+
object.formatters = [];
|
|
52825
52899
|
}
|
|
52826
52900
|
if (options.defaults) {
|
|
52827
52901
|
object.id = "";
|
|
@@ -52871,6 +52945,11 @@
|
|
|
52871
52945
|
object.resolvedId = message.resolvedId;
|
|
52872
52946
|
if (message.referencedId != null && message.hasOwnProperty("referencedId"))
|
|
52873
52947
|
object.referencedId = message.referencedId;
|
|
52948
|
+
if (message.formatters && message.formatters.length) {
|
|
52949
|
+
object.formatters = [];
|
|
52950
|
+
for (var j = 0; j < message.formatters.length; ++j)
|
|
52951
|
+
object.formatters[j] = $root.replit.goval.api.FormatterOption.toObject(message.formatters[j], options);
|
|
52952
|
+
}
|
|
52874
52953
|
return object;
|
|
52875
52954
|
};
|
|
52876
52955
|
|
|
@@ -54620,6 +54699,7 @@
|
|
|
54620
54699
|
* @property {Array.<replit.goval.api.DebuggerOption|replit.goval.api.IDebuggerOption>|null} [debuggers] ToolchainConfigs debuggers
|
|
54621
54700
|
* @property {Array.<replit.goval.api.LanguageServerOption|replit.goval.api.ILanguageServerOption>|null} [languageServers] ToolchainConfigs languageServers
|
|
54622
54701
|
* @property {Array.<replit.goval.api.PackagerOption|replit.goval.api.IPackagerOption>|null} [packagers] ToolchainConfigs packagers
|
|
54702
|
+
* @property {Array.<replit.goval.api.FormatterOption|replit.goval.api.IFormatterOption>|null} [formatters] ToolchainConfigs formatters
|
|
54623
54703
|
*/
|
|
54624
54704
|
|
|
54625
54705
|
/**
|
|
@@ -54634,6 +54714,7 @@
|
|
|
54634
54714
|
this.debuggers = [];
|
|
54635
54715
|
this.languageServers = [];
|
|
54636
54716
|
this.packagers = [];
|
|
54717
|
+
this.formatters = [];
|
|
54637
54718
|
if (properties)
|
|
54638
54719
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54639
54720
|
if (properties[keys[i]] != null)
|
|
@@ -54680,6 +54761,14 @@
|
|
|
54680
54761
|
*/
|
|
54681
54762
|
ToolchainConfigs.prototype.packagers = $util.emptyArray;
|
|
54682
54763
|
|
|
54764
|
+
/**
|
|
54765
|
+
* ToolchainConfigs formatters.
|
|
54766
|
+
* @member {Array.<replit.goval.api.FormatterOption>} formatters
|
|
54767
|
+
* @memberof replit.goval.api.ToolchainConfigs
|
|
54768
|
+
* @instance
|
|
54769
|
+
*/
|
|
54770
|
+
ToolchainConfigs.prototype.formatters = $util.emptyArray;
|
|
54771
|
+
|
|
54683
54772
|
/**
|
|
54684
54773
|
* Creates a new ToolchainConfigs instance using the specified properties.
|
|
54685
54774
|
* @function create
|
|
@@ -54718,6 +54807,9 @@
|
|
|
54718
54807
|
if (message.packagers != null && message.packagers.length)
|
|
54719
54808
|
for (var i = 0; i < message.packagers.length; ++i)
|
|
54720
54809
|
$root.replit.goval.api.PackagerOption.encode(message.packagers[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
54810
|
+
if (message.formatters != null && message.formatters.length)
|
|
54811
|
+
for (var i = 0; i < message.formatters.length; ++i)
|
|
54812
|
+
$root.replit.goval.api.FormatterOption.encode(message.formatters[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
54721
54813
|
return writer;
|
|
54722
54814
|
};
|
|
54723
54815
|
|
|
@@ -54780,6 +54872,12 @@
|
|
|
54780
54872
|
message.packagers.push($root.replit.goval.api.PackagerOption.decode(reader, reader.uint32()));
|
|
54781
54873
|
break;
|
|
54782
54874
|
}
|
|
54875
|
+
case 6: {
|
|
54876
|
+
if (!(message.formatters && message.formatters.length))
|
|
54877
|
+
message.formatters = [];
|
|
54878
|
+
message.formatters.push($root.replit.goval.api.FormatterOption.decode(reader, reader.uint32()));
|
|
54879
|
+
break;
|
|
54880
|
+
}
|
|
54783
54881
|
default:
|
|
54784
54882
|
reader.skipType(tag & 7);
|
|
54785
54883
|
break;
|
|
@@ -54854,6 +54952,15 @@
|
|
|
54854
54952
|
return "packagers." + error;
|
|
54855
54953
|
}
|
|
54856
54954
|
}
|
|
54955
|
+
if (message.formatters != null && message.hasOwnProperty("formatters")) {
|
|
54956
|
+
if (!Array.isArray(message.formatters))
|
|
54957
|
+
return "formatters: array expected";
|
|
54958
|
+
for (var i = 0; i < message.formatters.length; ++i) {
|
|
54959
|
+
var error = $root.replit.goval.api.FormatterOption.verify(message.formatters[i]);
|
|
54960
|
+
if (error)
|
|
54961
|
+
return "formatters." + error;
|
|
54962
|
+
}
|
|
54963
|
+
}
|
|
54857
54964
|
return null;
|
|
54858
54965
|
};
|
|
54859
54966
|
|
|
@@ -54911,6 +55018,16 @@
|
|
|
54911
55018
|
message.packagers[i] = $root.replit.goval.api.PackagerOption.fromObject(object.packagers[i]);
|
|
54912
55019
|
}
|
|
54913
55020
|
}
|
|
55021
|
+
if (object.formatters) {
|
|
55022
|
+
if (!Array.isArray(object.formatters))
|
|
55023
|
+
throw TypeError(".replit.goval.api.ToolchainConfigs.formatters: array expected");
|
|
55024
|
+
message.formatters = [];
|
|
55025
|
+
for (var i = 0; i < object.formatters.length; ++i) {
|
|
55026
|
+
if (typeof object.formatters[i] !== "object")
|
|
55027
|
+
throw TypeError(".replit.goval.api.ToolchainConfigs.formatters: object expected");
|
|
55028
|
+
message.formatters[i] = $root.replit.goval.api.FormatterOption.fromObject(object.formatters[i]);
|
|
55029
|
+
}
|
|
55030
|
+
}
|
|
54914
55031
|
return message;
|
|
54915
55032
|
};
|
|
54916
55033
|
|
|
@@ -54932,6 +55049,7 @@
|
|
|
54932
55049
|
object.debuggers = [];
|
|
54933
55050
|
object.languageServers = [];
|
|
54934
55051
|
object.packagers = [];
|
|
55052
|
+
object.formatters = [];
|
|
54935
55053
|
}
|
|
54936
55054
|
if (options.defaults)
|
|
54937
55055
|
object.entrypoint = "";
|
|
@@ -54957,6 +55075,11 @@
|
|
|
54957
55075
|
for (var j = 0; j < message.packagers.length; ++j)
|
|
54958
55076
|
object.packagers[j] = $root.replit.goval.api.PackagerOption.toObject(message.packagers[j], options);
|
|
54959
55077
|
}
|
|
55078
|
+
if (message.formatters && message.formatters.length) {
|
|
55079
|
+
object.formatters = [];
|
|
55080
|
+
for (var j = 0; j < message.formatters.length; ++j)
|
|
55081
|
+
object.formatters[j] = $root.replit.goval.api.FormatterOption.toObject(message.formatters[j], options);
|
|
55082
|
+
}
|
|
54960
55083
|
return object;
|
|
54961
55084
|
};
|
|
54962
55085
|
|
|
@@ -56994,6 +57117,288 @@
|
|
|
56994
57117
|
return PackagerOption;
|
|
56995
57118
|
})();
|
|
56996
57119
|
|
|
57120
|
+
api.FormatterOption = (function() {
|
|
57121
|
+
|
|
57122
|
+
/**
|
|
57123
|
+
* Properties of a FormatterOption.
|
|
57124
|
+
* @memberof replit.goval.api
|
|
57125
|
+
* @interface IFormatterOption
|
|
57126
|
+
* @property {string|null} [id] FormatterOption id
|
|
57127
|
+
* @property {string|null} [name] FormatterOption name
|
|
57128
|
+
* @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [startCommand] FormatterOption startCommand
|
|
57129
|
+
* @property {replit.goval.api.FileTypeAttrs|replit.goval.api.IFileTypeAttrs|null} [fileTypeAttrs] FormatterOption fileTypeAttrs
|
|
57130
|
+
*/
|
|
57131
|
+
|
|
57132
|
+
/**
|
|
57133
|
+
* Constructs a new FormatterOption.
|
|
57134
|
+
* @memberof replit.goval.api
|
|
57135
|
+
* @classdesc Represents a FormatterOption.
|
|
57136
|
+
* @constructor
|
|
57137
|
+
* @param {replit.goval.api.IFormatterOption=} [properties] Properties to set
|
|
57138
|
+
*/
|
|
57139
|
+
function FormatterOption(properties) {
|
|
57140
|
+
if (properties)
|
|
57141
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
57142
|
+
if (properties[keys[i]] != null)
|
|
57143
|
+
this[keys[i]] = properties[keys[i]];
|
|
57144
|
+
}
|
|
57145
|
+
|
|
57146
|
+
/**
|
|
57147
|
+
* FormatterOption id.
|
|
57148
|
+
* @member {string} id
|
|
57149
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57150
|
+
* @instance
|
|
57151
|
+
*/
|
|
57152
|
+
FormatterOption.prototype.id = "";
|
|
57153
|
+
|
|
57154
|
+
/**
|
|
57155
|
+
* FormatterOption name.
|
|
57156
|
+
* @member {string} name
|
|
57157
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57158
|
+
* @instance
|
|
57159
|
+
*/
|
|
57160
|
+
FormatterOption.prototype.name = "";
|
|
57161
|
+
|
|
57162
|
+
/**
|
|
57163
|
+
* FormatterOption startCommand.
|
|
57164
|
+
* @member {replit.goval.api.Exec|null|undefined} startCommand
|
|
57165
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57166
|
+
* @instance
|
|
57167
|
+
*/
|
|
57168
|
+
FormatterOption.prototype.startCommand = null;
|
|
57169
|
+
|
|
57170
|
+
/**
|
|
57171
|
+
* FormatterOption fileTypeAttrs.
|
|
57172
|
+
* @member {replit.goval.api.FileTypeAttrs|null|undefined} fileTypeAttrs
|
|
57173
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57174
|
+
* @instance
|
|
57175
|
+
*/
|
|
57176
|
+
FormatterOption.prototype.fileTypeAttrs = null;
|
|
57177
|
+
|
|
57178
|
+
/**
|
|
57179
|
+
* Creates a new FormatterOption instance using the specified properties.
|
|
57180
|
+
* @function create
|
|
57181
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57182
|
+
* @static
|
|
57183
|
+
* @param {replit.goval.api.IFormatterOption=} [properties] Properties to set
|
|
57184
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption instance
|
|
57185
|
+
*/
|
|
57186
|
+
FormatterOption.create = function create(properties) {
|
|
57187
|
+
return FormatterOption.fromObject(properties);
|
|
57188
|
+
};
|
|
57189
|
+
|
|
57190
|
+
/**
|
|
57191
|
+
* Encodes the specified FormatterOption message. Does not implicitly {@link replit.goval.api.FormatterOption.verify|verify} messages.
|
|
57192
|
+
* @function encode
|
|
57193
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57194
|
+
* @static
|
|
57195
|
+
* @param {replit.goval.api.FormatterOption} message FormatterOption message or plain object to encode
|
|
57196
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57197
|
+
* @returns {$protobuf.Writer} Writer
|
|
57198
|
+
*/
|
|
57199
|
+
FormatterOption.encode = function encode(message, writer) {
|
|
57200
|
+
if (!writer)
|
|
57201
|
+
writer = $Writer.create();
|
|
57202
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
57203
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
57204
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
57205
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
57206
|
+
if (message.startCommand != null && Object.hasOwnProperty.call(message, "startCommand"))
|
|
57207
|
+
$root.replit.goval.api.Exec.encode(message.startCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
57208
|
+
if (message.fileTypeAttrs != null && Object.hasOwnProperty.call(message, "fileTypeAttrs"))
|
|
57209
|
+
$root.replit.goval.api.FileTypeAttrs.encode(message.fileTypeAttrs, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
57210
|
+
return writer;
|
|
57211
|
+
};
|
|
57212
|
+
|
|
57213
|
+
/**
|
|
57214
|
+
* Encodes the specified FormatterOption message, length delimited. Does not implicitly {@link replit.goval.api.FormatterOption.verify|verify} messages.
|
|
57215
|
+
* @function encodeDelimited
|
|
57216
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57217
|
+
* @static
|
|
57218
|
+
* @param {replit.goval.api.FormatterOption} message FormatterOption message or plain object to encode
|
|
57219
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
57220
|
+
* @returns {$protobuf.Writer} Writer
|
|
57221
|
+
*/
|
|
57222
|
+
FormatterOption.encodeDelimited = function encodeDelimited(message, writer) {
|
|
57223
|
+
return this.encode(message, writer).ldelim();
|
|
57224
|
+
};
|
|
57225
|
+
|
|
57226
|
+
/**
|
|
57227
|
+
* Decodes a FormatterOption message from the specified reader or buffer.
|
|
57228
|
+
* @function decode
|
|
57229
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57230
|
+
* @static
|
|
57231
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57232
|
+
* @param {number} [length] Message length if known beforehand
|
|
57233
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption
|
|
57234
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57235
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57236
|
+
*/
|
|
57237
|
+
FormatterOption.decode = function decode(reader, length) {
|
|
57238
|
+
if (!(reader instanceof $Reader))
|
|
57239
|
+
reader = $Reader.create(reader);
|
|
57240
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.FormatterOption();
|
|
57241
|
+
while (reader.pos < end) {
|
|
57242
|
+
var tag = reader.uint32();
|
|
57243
|
+
switch (tag >>> 3) {
|
|
57244
|
+
case 1: {
|
|
57245
|
+
message.id = reader.string();
|
|
57246
|
+
break;
|
|
57247
|
+
}
|
|
57248
|
+
case 2: {
|
|
57249
|
+
message.name = reader.string();
|
|
57250
|
+
break;
|
|
57251
|
+
}
|
|
57252
|
+
case 3: {
|
|
57253
|
+
message.startCommand = $root.replit.goval.api.Exec.decode(reader, reader.uint32());
|
|
57254
|
+
break;
|
|
57255
|
+
}
|
|
57256
|
+
case 4: {
|
|
57257
|
+
message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.decode(reader, reader.uint32());
|
|
57258
|
+
break;
|
|
57259
|
+
}
|
|
57260
|
+
default:
|
|
57261
|
+
reader.skipType(tag & 7);
|
|
57262
|
+
break;
|
|
57263
|
+
}
|
|
57264
|
+
}
|
|
57265
|
+
return message;
|
|
57266
|
+
};
|
|
57267
|
+
|
|
57268
|
+
/**
|
|
57269
|
+
* Decodes a FormatterOption message from the specified reader or buffer, length delimited.
|
|
57270
|
+
* @function decodeDelimited
|
|
57271
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57272
|
+
* @static
|
|
57273
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
57274
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption
|
|
57275
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
57276
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
57277
|
+
*/
|
|
57278
|
+
FormatterOption.decodeDelimited = function decodeDelimited(reader) {
|
|
57279
|
+
if (!(reader instanceof $Reader))
|
|
57280
|
+
reader = new $Reader(reader);
|
|
57281
|
+
return this.decode(reader, reader.uint32());
|
|
57282
|
+
};
|
|
57283
|
+
|
|
57284
|
+
/**
|
|
57285
|
+
* Verifies a FormatterOption message.
|
|
57286
|
+
* @function verify
|
|
57287
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57288
|
+
* @static
|
|
57289
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
57290
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
57291
|
+
*/
|
|
57292
|
+
FormatterOption.verify = function verify(message) {
|
|
57293
|
+
if (typeof message !== "object" || message === null)
|
|
57294
|
+
return "object expected";
|
|
57295
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
57296
|
+
if (!$util.isString(message.id))
|
|
57297
|
+
return "id: string expected";
|
|
57298
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
57299
|
+
if (!$util.isString(message.name))
|
|
57300
|
+
return "name: string expected";
|
|
57301
|
+
if (message.startCommand != null && message.hasOwnProperty("startCommand")) {
|
|
57302
|
+
var error = $root.replit.goval.api.Exec.verify(message.startCommand);
|
|
57303
|
+
if (error)
|
|
57304
|
+
return "startCommand." + error;
|
|
57305
|
+
}
|
|
57306
|
+
if (message.fileTypeAttrs != null && message.hasOwnProperty("fileTypeAttrs")) {
|
|
57307
|
+
var error = $root.replit.goval.api.FileTypeAttrs.verify(message.fileTypeAttrs);
|
|
57308
|
+
if (error)
|
|
57309
|
+
return "fileTypeAttrs." + error;
|
|
57310
|
+
}
|
|
57311
|
+
return null;
|
|
57312
|
+
};
|
|
57313
|
+
|
|
57314
|
+
/**
|
|
57315
|
+
* Creates a FormatterOption message from a plain object. Also converts values to their respective internal types.
|
|
57316
|
+
* @function fromObject
|
|
57317
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57318
|
+
* @static
|
|
57319
|
+
* @param {Object.<string,*>} object Plain object
|
|
57320
|
+
* @returns {replit.goval.api.FormatterOption} FormatterOption
|
|
57321
|
+
*/
|
|
57322
|
+
FormatterOption.fromObject = function fromObject(object) {
|
|
57323
|
+
if (object instanceof $root.replit.goval.api.FormatterOption)
|
|
57324
|
+
return object;
|
|
57325
|
+
var message = new $root.replit.goval.api.FormatterOption();
|
|
57326
|
+
if (object.id != null)
|
|
57327
|
+
message.id = String(object.id);
|
|
57328
|
+
if (object.name != null)
|
|
57329
|
+
message.name = String(object.name);
|
|
57330
|
+
if (object.startCommand != null) {
|
|
57331
|
+
if (typeof object.startCommand !== "object")
|
|
57332
|
+
throw TypeError(".replit.goval.api.FormatterOption.startCommand: object expected");
|
|
57333
|
+
message.startCommand = $root.replit.goval.api.Exec.fromObject(object.startCommand);
|
|
57334
|
+
}
|
|
57335
|
+
if (object.fileTypeAttrs != null) {
|
|
57336
|
+
if (typeof object.fileTypeAttrs !== "object")
|
|
57337
|
+
throw TypeError(".replit.goval.api.FormatterOption.fileTypeAttrs: object expected");
|
|
57338
|
+
message.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.fromObject(object.fileTypeAttrs);
|
|
57339
|
+
}
|
|
57340
|
+
return message;
|
|
57341
|
+
};
|
|
57342
|
+
|
|
57343
|
+
/**
|
|
57344
|
+
* Creates a plain object from a FormatterOption message. Also converts values to other types if specified.
|
|
57345
|
+
* @function toObject
|
|
57346
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57347
|
+
* @static
|
|
57348
|
+
* @param {replit.goval.api.FormatterOption} message FormatterOption
|
|
57349
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
57350
|
+
* @returns {Object.<string,*>} Plain object
|
|
57351
|
+
*/
|
|
57352
|
+
FormatterOption.toObject = function toObject(message, options) {
|
|
57353
|
+
if (!options)
|
|
57354
|
+
options = {};
|
|
57355
|
+
var object = {};
|
|
57356
|
+
if (options.defaults) {
|
|
57357
|
+
object.id = "";
|
|
57358
|
+
object.name = "";
|
|
57359
|
+
object.startCommand = null;
|
|
57360
|
+
object.fileTypeAttrs = null;
|
|
57361
|
+
}
|
|
57362
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
57363
|
+
object.id = message.id;
|
|
57364
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
57365
|
+
object.name = message.name;
|
|
57366
|
+
if (message.startCommand != null && message.hasOwnProperty("startCommand"))
|
|
57367
|
+
object.startCommand = $root.replit.goval.api.Exec.toObject(message.startCommand, options);
|
|
57368
|
+
if (message.fileTypeAttrs != null && message.hasOwnProperty("fileTypeAttrs"))
|
|
57369
|
+
object.fileTypeAttrs = $root.replit.goval.api.FileTypeAttrs.toObject(message.fileTypeAttrs, options);
|
|
57370
|
+
return object;
|
|
57371
|
+
};
|
|
57372
|
+
|
|
57373
|
+
/**
|
|
57374
|
+
* Converts this FormatterOption to JSON.
|
|
57375
|
+
* @function toJSON
|
|
57376
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57377
|
+
* @instance
|
|
57378
|
+
* @returns {Object.<string,*>} JSON object
|
|
57379
|
+
*/
|
|
57380
|
+
FormatterOption.prototype.toJSON = function toJSON() {
|
|
57381
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
57382
|
+
};
|
|
57383
|
+
|
|
57384
|
+
/**
|
|
57385
|
+
* Gets the default type url for FormatterOption
|
|
57386
|
+
* @function getTypeUrl
|
|
57387
|
+
* @memberof replit.goval.api.FormatterOption
|
|
57388
|
+
* @static
|
|
57389
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
57390
|
+
* @returns {string} The default type url
|
|
57391
|
+
*/
|
|
57392
|
+
FormatterOption.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
57393
|
+
if (typeUrlPrefix === undefined) {
|
|
57394
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
57395
|
+
}
|
|
57396
|
+
return typeUrlPrefix + "/replit.goval.api.FormatterOption";
|
|
57397
|
+
};
|
|
57398
|
+
|
|
57399
|
+
return FormatterOption;
|
|
57400
|
+
})();
|
|
57401
|
+
|
|
56997
57402
|
api.ReplDomainDoubleDash = (function() {
|
|
56998
57403
|
|
|
56999
57404
|
/**
|
|
@@ -72674,6 +73079,180 @@
|
|
|
72674
73079
|
return ListValue;
|
|
72675
73080
|
})();
|
|
72676
73081
|
|
|
73082
|
+
protobuf.Empty = (function() {
|
|
73083
|
+
|
|
73084
|
+
/**
|
|
73085
|
+
* Properties of an Empty.
|
|
73086
|
+
* @memberof google.protobuf
|
|
73087
|
+
* @interface IEmpty
|
|
73088
|
+
*/
|
|
73089
|
+
|
|
73090
|
+
/**
|
|
73091
|
+
* Constructs a new Empty.
|
|
73092
|
+
* @memberof google.protobuf
|
|
73093
|
+
* @classdesc Represents an Empty.
|
|
73094
|
+
* @constructor
|
|
73095
|
+
* @param {google.protobuf.IEmpty=} [properties] Properties to set
|
|
73096
|
+
*/
|
|
73097
|
+
function Empty(properties) {
|
|
73098
|
+
if (properties)
|
|
73099
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
73100
|
+
if (properties[keys[i]] != null)
|
|
73101
|
+
this[keys[i]] = properties[keys[i]];
|
|
73102
|
+
}
|
|
73103
|
+
|
|
73104
|
+
/**
|
|
73105
|
+
* Creates a new Empty instance using the specified properties.
|
|
73106
|
+
* @function create
|
|
73107
|
+
* @memberof google.protobuf.Empty
|
|
73108
|
+
* @static
|
|
73109
|
+
* @param {google.protobuf.IEmpty=} [properties] Properties to set
|
|
73110
|
+
* @returns {google.protobuf.Empty} Empty instance
|
|
73111
|
+
*/
|
|
73112
|
+
Empty.create = function create(properties) {
|
|
73113
|
+
return Empty.fromObject(properties);
|
|
73114
|
+
};
|
|
73115
|
+
|
|
73116
|
+
/**
|
|
73117
|
+
* Encodes the specified Empty message. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
|
|
73118
|
+
* @function encode
|
|
73119
|
+
* @memberof google.protobuf.Empty
|
|
73120
|
+
* @static
|
|
73121
|
+
* @param {google.protobuf.Empty} message Empty message or plain object to encode
|
|
73122
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73123
|
+
* @returns {$protobuf.Writer} Writer
|
|
73124
|
+
*/
|
|
73125
|
+
Empty.encode = function encode(message, writer) {
|
|
73126
|
+
if (!writer)
|
|
73127
|
+
writer = $Writer.create();
|
|
73128
|
+
return writer;
|
|
73129
|
+
};
|
|
73130
|
+
|
|
73131
|
+
/**
|
|
73132
|
+
* Encodes the specified Empty message, length delimited. Does not implicitly {@link google.protobuf.Empty.verify|verify} messages.
|
|
73133
|
+
* @function encodeDelimited
|
|
73134
|
+
* @memberof google.protobuf.Empty
|
|
73135
|
+
* @static
|
|
73136
|
+
* @param {google.protobuf.Empty} message Empty message or plain object to encode
|
|
73137
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73138
|
+
* @returns {$protobuf.Writer} Writer
|
|
73139
|
+
*/
|
|
73140
|
+
Empty.encodeDelimited = function encodeDelimited(message, writer) {
|
|
73141
|
+
return this.encode(message, writer).ldelim();
|
|
73142
|
+
};
|
|
73143
|
+
|
|
73144
|
+
/**
|
|
73145
|
+
* Decodes an Empty message from the specified reader or buffer.
|
|
73146
|
+
* @function decode
|
|
73147
|
+
* @memberof google.protobuf.Empty
|
|
73148
|
+
* @static
|
|
73149
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73150
|
+
* @param {number} [length] Message length if known beforehand
|
|
73151
|
+
* @returns {google.protobuf.Empty} Empty
|
|
73152
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73153
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73154
|
+
*/
|
|
73155
|
+
Empty.decode = function decode(reader, length) {
|
|
73156
|
+
if (!(reader instanceof $Reader))
|
|
73157
|
+
reader = $Reader.create(reader);
|
|
73158
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Empty();
|
|
73159
|
+
while (reader.pos < end) {
|
|
73160
|
+
var tag = reader.uint32();
|
|
73161
|
+
switch (tag >>> 3) {
|
|
73162
|
+
default:
|
|
73163
|
+
reader.skipType(tag & 7);
|
|
73164
|
+
break;
|
|
73165
|
+
}
|
|
73166
|
+
}
|
|
73167
|
+
return message;
|
|
73168
|
+
};
|
|
73169
|
+
|
|
73170
|
+
/**
|
|
73171
|
+
* Decodes an Empty message from the specified reader or buffer, length delimited.
|
|
73172
|
+
* @function decodeDelimited
|
|
73173
|
+
* @memberof google.protobuf.Empty
|
|
73174
|
+
* @static
|
|
73175
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73176
|
+
* @returns {google.protobuf.Empty} Empty
|
|
73177
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73178
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73179
|
+
*/
|
|
73180
|
+
Empty.decodeDelimited = function decodeDelimited(reader) {
|
|
73181
|
+
if (!(reader instanceof $Reader))
|
|
73182
|
+
reader = new $Reader(reader);
|
|
73183
|
+
return this.decode(reader, reader.uint32());
|
|
73184
|
+
};
|
|
73185
|
+
|
|
73186
|
+
/**
|
|
73187
|
+
* Verifies an Empty message.
|
|
73188
|
+
* @function verify
|
|
73189
|
+
* @memberof google.protobuf.Empty
|
|
73190
|
+
* @static
|
|
73191
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
73192
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
73193
|
+
*/
|
|
73194
|
+
Empty.verify = function verify(message) {
|
|
73195
|
+
if (typeof message !== "object" || message === null)
|
|
73196
|
+
return "object expected";
|
|
73197
|
+
return null;
|
|
73198
|
+
};
|
|
73199
|
+
|
|
73200
|
+
/**
|
|
73201
|
+
* Creates an Empty message from a plain object. Also converts values to their respective internal types.
|
|
73202
|
+
* @function fromObject
|
|
73203
|
+
* @memberof google.protobuf.Empty
|
|
73204
|
+
* @static
|
|
73205
|
+
* @param {Object.<string,*>} object Plain object
|
|
73206
|
+
* @returns {google.protobuf.Empty} Empty
|
|
73207
|
+
*/
|
|
73208
|
+
Empty.fromObject = function fromObject(object) {
|
|
73209
|
+
if (object instanceof $root.google.protobuf.Empty)
|
|
73210
|
+
return object;
|
|
73211
|
+
return new $root.google.protobuf.Empty();
|
|
73212
|
+
};
|
|
73213
|
+
|
|
73214
|
+
/**
|
|
73215
|
+
* Creates a plain object from an Empty message. Also converts values to other types if specified.
|
|
73216
|
+
* @function toObject
|
|
73217
|
+
* @memberof google.protobuf.Empty
|
|
73218
|
+
* @static
|
|
73219
|
+
* @param {google.protobuf.Empty} message Empty
|
|
73220
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73221
|
+
* @returns {Object.<string,*>} Plain object
|
|
73222
|
+
*/
|
|
73223
|
+
Empty.toObject = function toObject() {
|
|
73224
|
+
return {};
|
|
73225
|
+
};
|
|
73226
|
+
|
|
73227
|
+
/**
|
|
73228
|
+
* Converts this Empty to JSON.
|
|
73229
|
+
* @function toJSON
|
|
73230
|
+
* @memberof google.protobuf.Empty
|
|
73231
|
+
* @instance
|
|
73232
|
+
* @returns {Object.<string,*>} JSON object
|
|
73233
|
+
*/
|
|
73234
|
+
Empty.prototype.toJSON = function toJSON() {
|
|
73235
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73236
|
+
};
|
|
73237
|
+
|
|
73238
|
+
/**
|
|
73239
|
+
* Gets the default type url for Empty
|
|
73240
|
+
* @function getTypeUrl
|
|
73241
|
+
* @memberof google.protobuf.Empty
|
|
73242
|
+
* @static
|
|
73243
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
73244
|
+
* @returns {string} The default type url
|
|
73245
|
+
*/
|
|
73246
|
+
Empty.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
73247
|
+
if (typeUrlPrefix === undefined) {
|
|
73248
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
73249
|
+
}
|
|
73250
|
+
return typeUrlPrefix + "/google.protobuf.Empty";
|
|
73251
|
+
};
|
|
73252
|
+
|
|
73253
|
+
return Empty;
|
|
73254
|
+
})();
|
|
73255
|
+
|
|
72677
73256
|
protobuf.FieldMask = (function() {
|
|
72678
73257
|
|
|
72679
73258
|
/**
|