@replit/protocol 0.2.59 → 0.2.62
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 +1437 -93
- package/main/index.js +3206 -29
- package/main/index.js.flow +1903 -22
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -182,6 +182,18 @@
|
|
|
182
182
|
* @property {api.DotReplitUpdateResponse|api.IDotReplitUpdateResponse|null} [dotReplitUpdateResponse] Command dotReplitUpdateResponse
|
|
183
183
|
* @property {api.StartLSP|api.IStartLSP|null} [startLSP] Command startLSP
|
|
184
184
|
* @property {api.FirewallDenied|api.IFirewallDenied|null} [firewallDenied] Command firewallDenied
|
|
185
|
+
* @property {api.NixPackageAddRequest|api.INixPackageAddRequest|null} [nixPackageAddRequest] Command nixPackageAddRequest
|
|
186
|
+
* @property {api.NixPackageAddResponse|api.INixPackageAddResponse|null} [nixPackageAddResponse] Command nixPackageAddResponse
|
|
187
|
+
* @property {api.NixPackageRemoveRequest|api.INixPackageRemoveRequest|null} [nixPackageRemoveRequest] Command nixPackageRemoveRequest
|
|
188
|
+
* @property {api.NixPackageRemoveResponse|api.INixPackageRemoveResponse|null} [nixPackageRemoveResponse] Command nixPackageRemoveResponse
|
|
189
|
+
* @property {api.NixPackageListRequest|api.INixPackageListRequest|null} [nixPackageListRequest] Command nixPackageListRequest
|
|
190
|
+
* @property {api.NixPackageListResponse|api.INixPackageListResponse|null} [nixPackageListResponse] Command nixPackageListResponse
|
|
191
|
+
* @property {api.NixChannelsRequest|api.INixChannelsRequest|null} [nixChannelsRequest] Command nixChannelsRequest
|
|
192
|
+
* @property {api.NixChannelsResponse|api.INixChannelsResponse|null} [nixChannelsResponse] Command nixChannelsResponse
|
|
193
|
+
* @property {api.NixChannelLatestStableRequest|api.INixChannelLatestStableRequest|null} [nixChannelLatestStableRequest] Command nixChannelLatestStableRequest
|
|
194
|
+
* @property {api.NixChannelLatestStableResponse|api.INixChannelLatestStableResponse|null} [nixChannelLatestStableResponse] Command nixChannelLatestStableResponse
|
|
195
|
+
* @property {api.NixPackageSearchRequest|api.INixPackageSearchRequest|null} [nixPackageSearchRequest] Command nixPackageSearchRequest
|
|
196
|
+
* @property {api.NixPackageSearchResponse|api.INixPackageSearchResponse|null} [nixPackageSearchResponse] Command nixPackageSearchResponse
|
|
185
197
|
* @property {string|null} [ref] Command ref
|
|
186
198
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
187
199
|
*/
|
|
@@ -1409,6 +1421,102 @@
|
|
|
1409
1421
|
*/
|
|
1410
1422
|
Command.prototype.firewallDenied = null;
|
|
1411
1423
|
|
|
1424
|
+
/**
|
|
1425
|
+
* Command nixPackageAddRequest.
|
|
1426
|
+
* @member {api.NixPackageAddRequest|null|undefined} nixPackageAddRequest
|
|
1427
|
+
* @memberof api.Command
|
|
1428
|
+
* @instance
|
|
1429
|
+
*/
|
|
1430
|
+
Command.prototype.nixPackageAddRequest = null;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Command nixPackageAddResponse.
|
|
1434
|
+
* @member {api.NixPackageAddResponse|null|undefined} nixPackageAddResponse
|
|
1435
|
+
* @memberof api.Command
|
|
1436
|
+
* @instance
|
|
1437
|
+
*/
|
|
1438
|
+
Command.prototype.nixPackageAddResponse = null;
|
|
1439
|
+
|
|
1440
|
+
/**
|
|
1441
|
+
* Command nixPackageRemoveRequest.
|
|
1442
|
+
* @member {api.NixPackageRemoveRequest|null|undefined} nixPackageRemoveRequest
|
|
1443
|
+
* @memberof api.Command
|
|
1444
|
+
* @instance
|
|
1445
|
+
*/
|
|
1446
|
+
Command.prototype.nixPackageRemoveRequest = null;
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
* Command nixPackageRemoveResponse.
|
|
1450
|
+
* @member {api.NixPackageRemoveResponse|null|undefined} nixPackageRemoveResponse
|
|
1451
|
+
* @memberof api.Command
|
|
1452
|
+
* @instance
|
|
1453
|
+
*/
|
|
1454
|
+
Command.prototype.nixPackageRemoveResponse = null;
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* Command nixPackageListRequest.
|
|
1458
|
+
* @member {api.NixPackageListRequest|null|undefined} nixPackageListRequest
|
|
1459
|
+
* @memberof api.Command
|
|
1460
|
+
* @instance
|
|
1461
|
+
*/
|
|
1462
|
+
Command.prototype.nixPackageListRequest = null;
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Command nixPackageListResponse.
|
|
1466
|
+
* @member {api.NixPackageListResponse|null|undefined} nixPackageListResponse
|
|
1467
|
+
* @memberof api.Command
|
|
1468
|
+
* @instance
|
|
1469
|
+
*/
|
|
1470
|
+
Command.prototype.nixPackageListResponse = null;
|
|
1471
|
+
|
|
1472
|
+
/**
|
|
1473
|
+
* Command nixChannelsRequest.
|
|
1474
|
+
* @member {api.NixChannelsRequest|null|undefined} nixChannelsRequest
|
|
1475
|
+
* @memberof api.Command
|
|
1476
|
+
* @instance
|
|
1477
|
+
*/
|
|
1478
|
+
Command.prototype.nixChannelsRequest = null;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Command nixChannelsResponse.
|
|
1482
|
+
* @member {api.NixChannelsResponse|null|undefined} nixChannelsResponse
|
|
1483
|
+
* @memberof api.Command
|
|
1484
|
+
* @instance
|
|
1485
|
+
*/
|
|
1486
|
+
Command.prototype.nixChannelsResponse = null;
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* Command nixChannelLatestStableRequest.
|
|
1490
|
+
* @member {api.NixChannelLatestStableRequest|null|undefined} nixChannelLatestStableRequest
|
|
1491
|
+
* @memberof api.Command
|
|
1492
|
+
* @instance
|
|
1493
|
+
*/
|
|
1494
|
+
Command.prototype.nixChannelLatestStableRequest = null;
|
|
1495
|
+
|
|
1496
|
+
/**
|
|
1497
|
+
* Command nixChannelLatestStableResponse.
|
|
1498
|
+
* @member {api.NixChannelLatestStableResponse|null|undefined} nixChannelLatestStableResponse
|
|
1499
|
+
* @memberof api.Command
|
|
1500
|
+
* @instance
|
|
1501
|
+
*/
|
|
1502
|
+
Command.prototype.nixChannelLatestStableResponse = null;
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* Command nixPackageSearchRequest.
|
|
1506
|
+
* @member {api.NixPackageSearchRequest|null|undefined} nixPackageSearchRequest
|
|
1507
|
+
* @memberof api.Command
|
|
1508
|
+
* @instance
|
|
1509
|
+
*/
|
|
1510
|
+
Command.prototype.nixPackageSearchRequest = null;
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* Command nixPackageSearchResponse.
|
|
1514
|
+
* @member {api.NixPackageSearchResponse|null|undefined} nixPackageSearchResponse
|
|
1515
|
+
* @memberof api.Command
|
|
1516
|
+
* @instance
|
|
1517
|
+
*/
|
|
1518
|
+
Command.prototype.nixPackageSearchResponse = null;
|
|
1519
|
+
|
|
1412
1520
|
/**
|
|
1413
1521
|
* Command ref.
|
|
1414
1522
|
* @member {string} ref
|
|
@@ -1430,12 +1538,12 @@
|
|
|
1430
1538
|
|
|
1431
1539
|
/**
|
|
1432
1540
|
* Command body.
|
|
1433
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"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"|"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"|undefined} body
|
|
1541
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"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"|"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"|undefined} body
|
|
1434
1542
|
* @memberof api.Command
|
|
1435
1543
|
* @instance
|
|
1436
1544
|
*/
|
|
1437
1545
|
Object.defineProperty(Command.prototype, "body", {
|
|
1438
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "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", "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"]),
|
|
1546
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "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", "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"]),
|
|
1439
1547
|
set: $util.oneOfSetter($oneOfFields)
|
|
1440
1548
|
});
|
|
1441
1549
|
|
|
@@ -1765,6 +1873,30 @@
|
|
|
1765
1873
|
$root.api.DotReplitUpdateRequest.encode(message.dotReplitUpdateRequest, writer.uint32(/* id 395, wireType 2 =*/3162).fork()).ldelim();
|
|
1766
1874
|
if (message.dotReplitUpdateResponse != null && Object.hasOwnProperty.call(message, "dotReplitUpdateResponse"))
|
|
1767
1875
|
$root.api.DotReplitUpdateResponse.encode(message.dotReplitUpdateResponse, writer.uint32(/* id 396, wireType 2 =*/3170).fork()).ldelim();
|
|
1876
|
+
if (message.nixPackageAddRequest != null && Object.hasOwnProperty.call(message, "nixPackageAddRequest"))
|
|
1877
|
+
$root.api.NixPackageAddRequest.encode(message.nixPackageAddRequest, writer.uint32(/* id 410, wireType 2 =*/3282).fork()).ldelim();
|
|
1878
|
+
if (message.nixPackageAddResponse != null && Object.hasOwnProperty.call(message, "nixPackageAddResponse"))
|
|
1879
|
+
$root.api.NixPackageAddResponse.encode(message.nixPackageAddResponse, writer.uint32(/* id 411, wireType 2 =*/3290).fork()).ldelim();
|
|
1880
|
+
if (message.nixPackageRemoveRequest != null && Object.hasOwnProperty.call(message, "nixPackageRemoveRequest"))
|
|
1881
|
+
$root.api.NixPackageRemoveRequest.encode(message.nixPackageRemoveRequest, writer.uint32(/* id 412, wireType 2 =*/3298).fork()).ldelim();
|
|
1882
|
+
if (message.nixPackageRemoveResponse != null && Object.hasOwnProperty.call(message, "nixPackageRemoveResponse"))
|
|
1883
|
+
$root.api.NixPackageRemoveResponse.encode(message.nixPackageRemoveResponse, writer.uint32(/* id 413, wireType 2 =*/3306).fork()).ldelim();
|
|
1884
|
+
if (message.nixPackageListRequest != null && Object.hasOwnProperty.call(message, "nixPackageListRequest"))
|
|
1885
|
+
$root.api.NixPackageListRequest.encode(message.nixPackageListRequest, writer.uint32(/* id 414, wireType 2 =*/3314).fork()).ldelim();
|
|
1886
|
+
if (message.nixPackageListResponse != null && Object.hasOwnProperty.call(message, "nixPackageListResponse"))
|
|
1887
|
+
$root.api.NixPackageListResponse.encode(message.nixPackageListResponse, writer.uint32(/* id 415, wireType 2 =*/3322).fork()).ldelim();
|
|
1888
|
+
if (message.nixChannelsRequest != null && Object.hasOwnProperty.call(message, "nixChannelsRequest"))
|
|
1889
|
+
$root.api.NixChannelsRequest.encode(message.nixChannelsRequest, writer.uint32(/* id 416, wireType 2 =*/3330).fork()).ldelim();
|
|
1890
|
+
if (message.nixChannelsResponse != null && Object.hasOwnProperty.call(message, "nixChannelsResponse"))
|
|
1891
|
+
$root.api.NixChannelsResponse.encode(message.nixChannelsResponse, writer.uint32(/* id 417, wireType 2 =*/3338).fork()).ldelim();
|
|
1892
|
+
if (message.nixChannelLatestStableRequest != null && Object.hasOwnProperty.call(message, "nixChannelLatestStableRequest"))
|
|
1893
|
+
$root.api.NixChannelLatestStableRequest.encode(message.nixChannelLatestStableRequest, writer.uint32(/* id 418, wireType 2 =*/3346).fork()).ldelim();
|
|
1894
|
+
if (message.nixChannelLatestStableResponse != null && Object.hasOwnProperty.call(message, "nixChannelLatestStableResponse"))
|
|
1895
|
+
$root.api.NixChannelLatestStableResponse.encode(message.nixChannelLatestStableResponse, writer.uint32(/* id 419, wireType 2 =*/3354).fork()).ldelim();
|
|
1896
|
+
if (message.nixPackageSearchRequest != null && Object.hasOwnProperty.call(message, "nixPackageSearchRequest"))
|
|
1897
|
+
$root.api.NixPackageSearchRequest.encode(message.nixPackageSearchRequest, writer.uint32(/* id 420, wireType 2 =*/3362).fork()).ldelim();
|
|
1898
|
+
if (message.nixPackageSearchResponse != null && Object.hasOwnProperty.call(message, "nixPackageSearchResponse"))
|
|
1899
|
+
$root.api.NixPackageSearchResponse.encode(message.nixPackageSearchResponse, writer.uint32(/* id 421, wireType 2 =*/3370).fork()).ldelim();
|
|
1768
1900
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
1769
1901
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
1770
1902
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2257,6 +2389,42 @@
|
|
|
2257
2389
|
case 393:
|
|
2258
2390
|
message.firewallDenied = $root.api.FirewallDenied.decode(reader, reader.uint32());
|
|
2259
2391
|
break;
|
|
2392
|
+
case 410:
|
|
2393
|
+
message.nixPackageAddRequest = $root.api.NixPackageAddRequest.decode(reader, reader.uint32());
|
|
2394
|
+
break;
|
|
2395
|
+
case 411:
|
|
2396
|
+
message.nixPackageAddResponse = $root.api.NixPackageAddResponse.decode(reader, reader.uint32());
|
|
2397
|
+
break;
|
|
2398
|
+
case 412:
|
|
2399
|
+
message.nixPackageRemoveRequest = $root.api.NixPackageRemoveRequest.decode(reader, reader.uint32());
|
|
2400
|
+
break;
|
|
2401
|
+
case 413:
|
|
2402
|
+
message.nixPackageRemoveResponse = $root.api.NixPackageRemoveResponse.decode(reader, reader.uint32());
|
|
2403
|
+
break;
|
|
2404
|
+
case 414:
|
|
2405
|
+
message.nixPackageListRequest = $root.api.NixPackageListRequest.decode(reader, reader.uint32());
|
|
2406
|
+
break;
|
|
2407
|
+
case 415:
|
|
2408
|
+
message.nixPackageListResponse = $root.api.NixPackageListResponse.decode(reader, reader.uint32());
|
|
2409
|
+
break;
|
|
2410
|
+
case 416:
|
|
2411
|
+
message.nixChannelsRequest = $root.api.NixChannelsRequest.decode(reader, reader.uint32());
|
|
2412
|
+
break;
|
|
2413
|
+
case 417:
|
|
2414
|
+
message.nixChannelsResponse = $root.api.NixChannelsResponse.decode(reader, reader.uint32());
|
|
2415
|
+
break;
|
|
2416
|
+
case 418:
|
|
2417
|
+
message.nixChannelLatestStableRequest = $root.api.NixChannelLatestStableRequest.decode(reader, reader.uint32());
|
|
2418
|
+
break;
|
|
2419
|
+
case 419:
|
|
2420
|
+
message.nixChannelLatestStableResponse = $root.api.NixChannelLatestStableResponse.decode(reader, reader.uint32());
|
|
2421
|
+
break;
|
|
2422
|
+
case 420:
|
|
2423
|
+
message.nixPackageSearchRequest = $root.api.NixPackageSearchRequest.decode(reader, reader.uint32());
|
|
2424
|
+
break;
|
|
2425
|
+
case 421:
|
|
2426
|
+
message.nixPackageSearchResponse = $root.api.NixPackageSearchResponse.decode(reader, reader.uint32());
|
|
2427
|
+
break;
|
|
2260
2428
|
case 1000:
|
|
2261
2429
|
message.ref = reader.string();
|
|
2262
2430
|
break;
|
|
@@ -3784,6 +3952,126 @@
|
|
|
3784
3952
|
return "firewallDenied." + error;
|
|
3785
3953
|
}
|
|
3786
3954
|
}
|
|
3955
|
+
if (message.nixPackageAddRequest != null && message.hasOwnProperty("nixPackageAddRequest")) {
|
|
3956
|
+
if (properties.body === 1)
|
|
3957
|
+
return "body: multiple values";
|
|
3958
|
+
properties.body = 1;
|
|
3959
|
+
{
|
|
3960
|
+
var error = $root.api.NixPackageAddRequest.verify(message.nixPackageAddRequest);
|
|
3961
|
+
if (error)
|
|
3962
|
+
return "nixPackageAddRequest." + error;
|
|
3963
|
+
}
|
|
3964
|
+
}
|
|
3965
|
+
if (message.nixPackageAddResponse != null && message.hasOwnProperty("nixPackageAddResponse")) {
|
|
3966
|
+
if (properties.body === 1)
|
|
3967
|
+
return "body: multiple values";
|
|
3968
|
+
properties.body = 1;
|
|
3969
|
+
{
|
|
3970
|
+
var error = $root.api.NixPackageAddResponse.verify(message.nixPackageAddResponse);
|
|
3971
|
+
if (error)
|
|
3972
|
+
return "nixPackageAddResponse." + error;
|
|
3973
|
+
}
|
|
3974
|
+
}
|
|
3975
|
+
if (message.nixPackageRemoveRequest != null && message.hasOwnProperty("nixPackageRemoveRequest")) {
|
|
3976
|
+
if (properties.body === 1)
|
|
3977
|
+
return "body: multiple values";
|
|
3978
|
+
properties.body = 1;
|
|
3979
|
+
{
|
|
3980
|
+
var error = $root.api.NixPackageRemoveRequest.verify(message.nixPackageRemoveRequest);
|
|
3981
|
+
if (error)
|
|
3982
|
+
return "nixPackageRemoveRequest." + error;
|
|
3983
|
+
}
|
|
3984
|
+
}
|
|
3985
|
+
if (message.nixPackageRemoveResponse != null && message.hasOwnProperty("nixPackageRemoveResponse")) {
|
|
3986
|
+
if (properties.body === 1)
|
|
3987
|
+
return "body: multiple values";
|
|
3988
|
+
properties.body = 1;
|
|
3989
|
+
{
|
|
3990
|
+
var error = $root.api.NixPackageRemoveResponse.verify(message.nixPackageRemoveResponse);
|
|
3991
|
+
if (error)
|
|
3992
|
+
return "nixPackageRemoveResponse." + error;
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
if (message.nixPackageListRequest != null && message.hasOwnProperty("nixPackageListRequest")) {
|
|
3996
|
+
if (properties.body === 1)
|
|
3997
|
+
return "body: multiple values";
|
|
3998
|
+
properties.body = 1;
|
|
3999
|
+
{
|
|
4000
|
+
var error = $root.api.NixPackageListRequest.verify(message.nixPackageListRequest);
|
|
4001
|
+
if (error)
|
|
4002
|
+
return "nixPackageListRequest." + error;
|
|
4003
|
+
}
|
|
4004
|
+
}
|
|
4005
|
+
if (message.nixPackageListResponse != null && message.hasOwnProperty("nixPackageListResponse")) {
|
|
4006
|
+
if (properties.body === 1)
|
|
4007
|
+
return "body: multiple values";
|
|
4008
|
+
properties.body = 1;
|
|
4009
|
+
{
|
|
4010
|
+
var error = $root.api.NixPackageListResponse.verify(message.nixPackageListResponse);
|
|
4011
|
+
if (error)
|
|
4012
|
+
return "nixPackageListResponse." + error;
|
|
4013
|
+
}
|
|
4014
|
+
}
|
|
4015
|
+
if (message.nixChannelsRequest != null && message.hasOwnProperty("nixChannelsRequest")) {
|
|
4016
|
+
if (properties.body === 1)
|
|
4017
|
+
return "body: multiple values";
|
|
4018
|
+
properties.body = 1;
|
|
4019
|
+
{
|
|
4020
|
+
var error = $root.api.NixChannelsRequest.verify(message.nixChannelsRequest);
|
|
4021
|
+
if (error)
|
|
4022
|
+
return "nixChannelsRequest." + error;
|
|
4023
|
+
}
|
|
4024
|
+
}
|
|
4025
|
+
if (message.nixChannelsResponse != null && message.hasOwnProperty("nixChannelsResponse")) {
|
|
4026
|
+
if (properties.body === 1)
|
|
4027
|
+
return "body: multiple values";
|
|
4028
|
+
properties.body = 1;
|
|
4029
|
+
{
|
|
4030
|
+
var error = $root.api.NixChannelsResponse.verify(message.nixChannelsResponse);
|
|
4031
|
+
if (error)
|
|
4032
|
+
return "nixChannelsResponse." + error;
|
|
4033
|
+
}
|
|
4034
|
+
}
|
|
4035
|
+
if (message.nixChannelLatestStableRequest != null && message.hasOwnProperty("nixChannelLatestStableRequest")) {
|
|
4036
|
+
if (properties.body === 1)
|
|
4037
|
+
return "body: multiple values";
|
|
4038
|
+
properties.body = 1;
|
|
4039
|
+
{
|
|
4040
|
+
var error = $root.api.NixChannelLatestStableRequest.verify(message.nixChannelLatestStableRequest);
|
|
4041
|
+
if (error)
|
|
4042
|
+
return "nixChannelLatestStableRequest." + error;
|
|
4043
|
+
}
|
|
4044
|
+
}
|
|
4045
|
+
if (message.nixChannelLatestStableResponse != null && message.hasOwnProperty("nixChannelLatestStableResponse")) {
|
|
4046
|
+
if (properties.body === 1)
|
|
4047
|
+
return "body: multiple values";
|
|
4048
|
+
properties.body = 1;
|
|
4049
|
+
{
|
|
4050
|
+
var error = $root.api.NixChannelLatestStableResponse.verify(message.nixChannelLatestStableResponse);
|
|
4051
|
+
if (error)
|
|
4052
|
+
return "nixChannelLatestStableResponse." + error;
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
if (message.nixPackageSearchRequest != null && message.hasOwnProperty("nixPackageSearchRequest")) {
|
|
4056
|
+
if (properties.body === 1)
|
|
4057
|
+
return "body: multiple values";
|
|
4058
|
+
properties.body = 1;
|
|
4059
|
+
{
|
|
4060
|
+
var error = $root.api.NixPackageSearchRequest.verify(message.nixPackageSearchRequest);
|
|
4061
|
+
if (error)
|
|
4062
|
+
return "nixPackageSearchRequest." + error;
|
|
4063
|
+
}
|
|
4064
|
+
}
|
|
4065
|
+
if (message.nixPackageSearchResponse != null && message.hasOwnProperty("nixPackageSearchResponse")) {
|
|
4066
|
+
if (properties.body === 1)
|
|
4067
|
+
return "body: multiple values";
|
|
4068
|
+
properties.body = 1;
|
|
4069
|
+
{
|
|
4070
|
+
var error = $root.api.NixPackageSearchResponse.verify(message.nixPackageSearchResponse);
|
|
4071
|
+
if (error)
|
|
4072
|
+
return "nixPackageSearchResponse." + error;
|
|
4073
|
+
}
|
|
4074
|
+
}
|
|
3787
4075
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
3788
4076
|
if (!$util.isString(message.ref))
|
|
3789
4077
|
return "ref: string expected";
|
|
@@ -4534,6 +4822,66 @@
|
|
|
4534
4822
|
throw TypeError(".api.Command.firewallDenied: object expected");
|
|
4535
4823
|
message.firewallDenied = $root.api.FirewallDenied.fromObject(object.firewallDenied);
|
|
4536
4824
|
}
|
|
4825
|
+
if (object.nixPackageAddRequest != null) {
|
|
4826
|
+
if (typeof object.nixPackageAddRequest !== "object")
|
|
4827
|
+
throw TypeError(".api.Command.nixPackageAddRequest: object expected");
|
|
4828
|
+
message.nixPackageAddRequest = $root.api.NixPackageAddRequest.fromObject(object.nixPackageAddRequest);
|
|
4829
|
+
}
|
|
4830
|
+
if (object.nixPackageAddResponse != null) {
|
|
4831
|
+
if (typeof object.nixPackageAddResponse !== "object")
|
|
4832
|
+
throw TypeError(".api.Command.nixPackageAddResponse: object expected");
|
|
4833
|
+
message.nixPackageAddResponse = $root.api.NixPackageAddResponse.fromObject(object.nixPackageAddResponse);
|
|
4834
|
+
}
|
|
4835
|
+
if (object.nixPackageRemoveRequest != null) {
|
|
4836
|
+
if (typeof object.nixPackageRemoveRequest !== "object")
|
|
4837
|
+
throw TypeError(".api.Command.nixPackageRemoveRequest: object expected");
|
|
4838
|
+
message.nixPackageRemoveRequest = $root.api.NixPackageRemoveRequest.fromObject(object.nixPackageRemoveRequest);
|
|
4839
|
+
}
|
|
4840
|
+
if (object.nixPackageRemoveResponse != null) {
|
|
4841
|
+
if (typeof object.nixPackageRemoveResponse !== "object")
|
|
4842
|
+
throw TypeError(".api.Command.nixPackageRemoveResponse: object expected");
|
|
4843
|
+
message.nixPackageRemoveResponse = $root.api.NixPackageRemoveResponse.fromObject(object.nixPackageRemoveResponse);
|
|
4844
|
+
}
|
|
4845
|
+
if (object.nixPackageListRequest != null) {
|
|
4846
|
+
if (typeof object.nixPackageListRequest !== "object")
|
|
4847
|
+
throw TypeError(".api.Command.nixPackageListRequest: object expected");
|
|
4848
|
+
message.nixPackageListRequest = $root.api.NixPackageListRequest.fromObject(object.nixPackageListRequest);
|
|
4849
|
+
}
|
|
4850
|
+
if (object.nixPackageListResponse != null) {
|
|
4851
|
+
if (typeof object.nixPackageListResponse !== "object")
|
|
4852
|
+
throw TypeError(".api.Command.nixPackageListResponse: object expected");
|
|
4853
|
+
message.nixPackageListResponse = $root.api.NixPackageListResponse.fromObject(object.nixPackageListResponse);
|
|
4854
|
+
}
|
|
4855
|
+
if (object.nixChannelsRequest != null) {
|
|
4856
|
+
if (typeof object.nixChannelsRequest !== "object")
|
|
4857
|
+
throw TypeError(".api.Command.nixChannelsRequest: object expected");
|
|
4858
|
+
message.nixChannelsRequest = $root.api.NixChannelsRequest.fromObject(object.nixChannelsRequest);
|
|
4859
|
+
}
|
|
4860
|
+
if (object.nixChannelsResponse != null) {
|
|
4861
|
+
if (typeof object.nixChannelsResponse !== "object")
|
|
4862
|
+
throw TypeError(".api.Command.nixChannelsResponse: object expected");
|
|
4863
|
+
message.nixChannelsResponse = $root.api.NixChannelsResponse.fromObject(object.nixChannelsResponse);
|
|
4864
|
+
}
|
|
4865
|
+
if (object.nixChannelLatestStableRequest != null) {
|
|
4866
|
+
if (typeof object.nixChannelLatestStableRequest !== "object")
|
|
4867
|
+
throw TypeError(".api.Command.nixChannelLatestStableRequest: object expected");
|
|
4868
|
+
message.nixChannelLatestStableRequest = $root.api.NixChannelLatestStableRequest.fromObject(object.nixChannelLatestStableRequest);
|
|
4869
|
+
}
|
|
4870
|
+
if (object.nixChannelLatestStableResponse != null) {
|
|
4871
|
+
if (typeof object.nixChannelLatestStableResponse !== "object")
|
|
4872
|
+
throw TypeError(".api.Command.nixChannelLatestStableResponse: object expected");
|
|
4873
|
+
message.nixChannelLatestStableResponse = $root.api.NixChannelLatestStableResponse.fromObject(object.nixChannelLatestStableResponse);
|
|
4874
|
+
}
|
|
4875
|
+
if (object.nixPackageSearchRequest != null) {
|
|
4876
|
+
if (typeof object.nixPackageSearchRequest !== "object")
|
|
4877
|
+
throw TypeError(".api.Command.nixPackageSearchRequest: object expected");
|
|
4878
|
+
message.nixPackageSearchRequest = $root.api.NixPackageSearchRequest.fromObject(object.nixPackageSearchRequest);
|
|
4879
|
+
}
|
|
4880
|
+
if (object.nixPackageSearchResponse != null) {
|
|
4881
|
+
if (typeof object.nixPackageSearchResponse !== "object")
|
|
4882
|
+
throw TypeError(".api.Command.nixPackageSearchResponse: object expected");
|
|
4883
|
+
message.nixPackageSearchResponse = $root.api.NixPackageSearchResponse.fromObject(object.nixPackageSearchResponse);
|
|
4884
|
+
}
|
|
4537
4885
|
if (object.ref != null)
|
|
4538
4886
|
message.ref = String(object.ref);
|
|
4539
4887
|
if (object.traceInfo) {
|
|
@@ -5295,49 +5643,2643 @@
|
|
|
5295
5643
|
if (options.oneofs)
|
|
5296
5644
|
object.body = "runConfigGetResponse";
|
|
5297
5645
|
}
|
|
5298
|
-
if (message.NoninteractiveFSChangeEvent != null && message.hasOwnProperty("NoninteractiveFSChangeEvent")) {
|
|
5299
|
-
object.NoninteractiveFSChangeEvent = message.NoninteractiveFSChangeEvent;
|
|
5300
|
-
if (options.oneofs)
|
|
5301
|
-
object.body = "NoninteractiveFSChangeEvent";
|
|
5646
|
+
if (message.NoninteractiveFSChangeEvent != null && message.hasOwnProperty("NoninteractiveFSChangeEvent")) {
|
|
5647
|
+
object.NoninteractiveFSChangeEvent = message.NoninteractiveFSChangeEvent;
|
|
5648
|
+
if (options.oneofs)
|
|
5649
|
+
object.body = "NoninteractiveFSChangeEvent";
|
|
5650
|
+
}
|
|
5651
|
+
if (message.firewallDenied != null && message.hasOwnProperty("firewallDenied")) {
|
|
5652
|
+
object.firewallDenied = $root.api.FirewallDenied.toObject(message.firewallDenied, options);
|
|
5653
|
+
if (options.oneofs)
|
|
5654
|
+
object.body = "firewallDenied";
|
|
5655
|
+
}
|
|
5656
|
+
if (message.dotReplitUpdateRequest != null && message.hasOwnProperty("dotReplitUpdateRequest")) {
|
|
5657
|
+
object.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.toObject(message.dotReplitUpdateRequest, options);
|
|
5658
|
+
if (options.oneofs)
|
|
5659
|
+
object.body = "dotReplitUpdateRequest";
|
|
5660
|
+
}
|
|
5661
|
+
if (message.dotReplitUpdateResponse != null && message.hasOwnProperty("dotReplitUpdateResponse")) {
|
|
5662
|
+
object.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.toObject(message.dotReplitUpdateResponse, options);
|
|
5663
|
+
if (options.oneofs)
|
|
5664
|
+
object.body = "dotReplitUpdateResponse";
|
|
5665
|
+
}
|
|
5666
|
+
if (message.nixPackageAddRequest != null && message.hasOwnProperty("nixPackageAddRequest")) {
|
|
5667
|
+
object.nixPackageAddRequest = $root.api.NixPackageAddRequest.toObject(message.nixPackageAddRequest, options);
|
|
5668
|
+
if (options.oneofs)
|
|
5669
|
+
object.body = "nixPackageAddRequest";
|
|
5670
|
+
}
|
|
5671
|
+
if (message.nixPackageAddResponse != null && message.hasOwnProperty("nixPackageAddResponse")) {
|
|
5672
|
+
object.nixPackageAddResponse = $root.api.NixPackageAddResponse.toObject(message.nixPackageAddResponse, options);
|
|
5673
|
+
if (options.oneofs)
|
|
5674
|
+
object.body = "nixPackageAddResponse";
|
|
5675
|
+
}
|
|
5676
|
+
if (message.nixPackageRemoveRequest != null && message.hasOwnProperty("nixPackageRemoveRequest")) {
|
|
5677
|
+
object.nixPackageRemoveRequest = $root.api.NixPackageRemoveRequest.toObject(message.nixPackageRemoveRequest, options);
|
|
5678
|
+
if (options.oneofs)
|
|
5679
|
+
object.body = "nixPackageRemoveRequest";
|
|
5680
|
+
}
|
|
5681
|
+
if (message.nixPackageRemoveResponse != null && message.hasOwnProperty("nixPackageRemoveResponse")) {
|
|
5682
|
+
object.nixPackageRemoveResponse = $root.api.NixPackageRemoveResponse.toObject(message.nixPackageRemoveResponse, options);
|
|
5683
|
+
if (options.oneofs)
|
|
5684
|
+
object.body = "nixPackageRemoveResponse";
|
|
5685
|
+
}
|
|
5686
|
+
if (message.nixPackageListRequest != null && message.hasOwnProperty("nixPackageListRequest")) {
|
|
5687
|
+
object.nixPackageListRequest = $root.api.NixPackageListRequest.toObject(message.nixPackageListRequest, options);
|
|
5688
|
+
if (options.oneofs)
|
|
5689
|
+
object.body = "nixPackageListRequest";
|
|
5690
|
+
}
|
|
5691
|
+
if (message.nixPackageListResponse != null && message.hasOwnProperty("nixPackageListResponse")) {
|
|
5692
|
+
object.nixPackageListResponse = $root.api.NixPackageListResponse.toObject(message.nixPackageListResponse, options);
|
|
5693
|
+
if (options.oneofs)
|
|
5694
|
+
object.body = "nixPackageListResponse";
|
|
5695
|
+
}
|
|
5696
|
+
if (message.nixChannelsRequest != null && message.hasOwnProperty("nixChannelsRequest")) {
|
|
5697
|
+
object.nixChannelsRequest = $root.api.NixChannelsRequest.toObject(message.nixChannelsRequest, options);
|
|
5698
|
+
if (options.oneofs)
|
|
5699
|
+
object.body = "nixChannelsRequest";
|
|
5700
|
+
}
|
|
5701
|
+
if (message.nixChannelsResponse != null && message.hasOwnProperty("nixChannelsResponse")) {
|
|
5702
|
+
object.nixChannelsResponse = $root.api.NixChannelsResponse.toObject(message.nixChannelsResponse, options);
|
|
5703
|
+
if (options.oneofs)
|
|
5704
|
+
object.body = "nixChannelsResponse";
|
|
5705
|
+
}
|
|
5706
|
+
if (message.nixChannelLatestStableRequest != null && message.hasOwnProperty("nixChannelLatestStableRequest")) {
|
|
5707
|
+
object.nixChannelLatestStableRequest = $root.api.NixChannelLatestStableRequest.toObject(message.nixChannelLatestStableRequest, options);
|
|
5708
|
+
if (options.oneofs)
|
|
5709
|
+
object.body = "nixChannelLatestStableRequest";
|
|
5710
|
+
}
|
|
5711
|
+
if (message.nixChannelLatestStableResponse != null && message.hasOwnProperty("nixChannelLatestStableResponse")) {
|
|
5712
|
+
object.nixChannelLatestStableResponse = $root.api.NixChannelLatestStableResponse.toObject(message.nixChannelLatestStableResponse, options);
|
|
5713
|
+
if (options.oneofs)
|
|
5714
|
+
object.body = "nixChannelLatestStableResponse";
|
|
5715
|
+
}
|
|
5716
|
+
if (message.nixPackageSearchRequest != null && message.hasOwnProperty("nixPackageSearchRequest")) {
|
|
5717
|
+
object.nixPackageSearchRequest = $root.api.NixPackageSearchRequest.toObject(message.nixPackageSearchRequest, options);
|
|
5718
|
+
if (options.oneofs)
|
|
5719
|
+
object.body = "nixPackageSearchRequest";
|
|
5720
|
+
}
|
|
5721
|
+
if (message.nixPackageSearchResponse != null && message.hasOwnProperty("nixPackageSearchResponse")) {
|
|
5722
|
+
object.nixPackageSearchResponse = $root.api.NixPackageSearchResponse.toObject(message.nixPackageSearchResponse, options);
|
|
5723
|
+
if (options.oneofs)
|
|
5724
|
+
object.body = "nixPackageSearchResponse";
|
|
5725
|
+
}
|
|
5726
|
+
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
5727
|
+
object.ref = message.ref;
|
|
5728
|
+
var keys2;
|
|
5729
|
+
if (message.traceInfo && (keys2 = Object.keys(message.traceInfo)).length) {
|
|
5730
|
+
object.traceInfo = {};
|
|
5731
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
5732
|
+
object.traceInfo[keys2[j]] = message.traceInfo[keys2[j]];
|
|
5733
|
+
}
|
|
5734
|
+
return object;
|
|
5735
|
+
};
|
|
5736
|
+
|
|
5737
|
+
/**
|
|
5738
|
+
* Converts this Command to JSON.
|
|
5739
|
+
* @function toJSON
|
|
5740
|
+
* @memberof api.Command
|
|
5741
|
+
* @instance
|
|
5742
|
+
* @returns {Object.<string,*>} JSON object
|
|
5743
|
+
*/
|
|
5744
|
+
Command.prototype.toJSON = function toJSON() {
|
|
5745
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5746
|
+
};
|
|
5747
|
+
|
|
5748
|
+
return Command;
|
|
5749
|
+
})();
|
|
5750
|
+
|
|
5751
|
+
api.NixPackageAddRequest = (function() {
|
|
5752
|
+
|
|
5753
|
+
/**
|
|
5754
|
+
* Properties of a NixPackageAddRequest.
|
|
5755
|
+
* @memberof api
|
|
5756
|
+
* @interface INixPackageAddRequest
|
|
5757
|
+
* @property {Array.<string>|null} [packages] NixPackageAddRequest packages
|
|
5758
|
+
*/
|
|
5759
|
+
|
|
5760
|
+
/**
|
|
5761
|
+
* Constructs a new NixPackageAddRequest.
|
|
5762
|
+
* @memberof api
|
|
5763
|
+
* @classdesc Represents a NixPackageAddRequest.
|
|
5764
|
+
* @constructor
|
|
5765
|
+
* @param {api.INixPackageAddRequest=} [properties] Properties to set
|
|
5766
|
+
*/
|
|
5767
|
+
function NixPackageAddRequest(properties) {
|
|
5768
|
+
this.packages = [];
|
|
5769
|
+
if (properties)
|
|
5770
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5771
|
+
if (properties[keys[i]] != null)
|
|
5772
|
+
this[keys[i]] = properties[keys[i]];
|
|
5773
|
+
}
|
|
5774
|
+
|
|
5775
|
+
/**
|
|
5776
|
+
* NixPackageAddRequest packages.
|
|
5777
|
+
* @member {Array.<string>} packages
|
|
5778
|
+
* @memberof api.NixPackageAddRequest
|
|
5779
|
+
* @instance
|
|
5780
|
+
*/
|
|
5781
|
+
NixPackageAddRequest.prototype.packages = $util.emptyArray;
|
|
5782
|
+
|
|
5783
|
+
/**
|
|
5784
|
+
* Creates a new NixPackageAddRequest instance using the specified properties.
|
|
5785
|
+
* @function create
|
|
5786
|
+
* @memberof api.NixPackageAddRequest
|
|
5787
|
+
* @static
|
|
5788
|
+
* @param {api.INixPackageAddRequest=} [properties] Properties to set
|
|
5789
|
+
* @returns {api.NixPackageAddRequest} NixPackageAddRequest instance
|
|
5790
|
+
*/
|
|
5791
|
+
NixPackageAddRequest.create = function create(properties) {
|
|
5792
|
+
return NixPackageAddRequest.fromObject(properties);
|
|
5793
|
+
};
|
|
5794
|
+
|
|
5795
|
+
/**
|
|
5796
|
+
* Encodes the specified NixPackageAddRequest message. Does not implicitly {@link api.NixPackageAddRequest.verify|verify} messages.
|
|
5797
|
+
* @function encode
|
|
5798
|
+
* @memberof api.NixPackageAddRequest
|
|
5799
|
+
* @static
|
|
5800
|
+
* @param {api.NixPackageAddRequest} message NixPackageAddRequest message or plain object to encode
|
|
5801
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5802
|
+
* @returns {$protobuf.Writer} Writer
|
|
5803
|
+
*/
|
|
5804
|
+
NixPackageAddRequest.encode = function encode(message, writer) {
|
|
5805
|
+
if (!writer)
|
|
5806
|
+
writer = $Writer.create();
|
|
5807
|
+
if (message.packages != null && message.packages.length)
|
|
5808
|
+
for (var i = 0; i < message.packages.length; ++i)
|
|
5809
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.packages[i]);
|
|
5810
|
+
return writer;
|
|
5811
|
+
};
|
|
5812
|
+
|
|
5813
|
+
/**
|
|
5814
|
+
* Encodes the specified NixPackageAddRequest message, length delimited. Does not implicitly {@link api.NixPackageAddRequest.verify|verify} messages.
|
|
5815
|
+
* @function encodeDelimited
|
|
5816
|
+
* @memberof api.NixPackageAddRequest
|
|
5817
|
+
* @static
|
|
5818
|
+
* @param {api.NixPackageAddRequest} message NixPackageAddRequest message or plain object to encode
|
|
5819
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5820
|
+
* @returns {$protobuf.Writer} Writer
|
|
5821
|
+
*/
|
|
5822
|
+
NixPackageAddRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
5823
|
+
return this.encode(message, writer).ldelim();
|
|
5824
|
+
};
|
|
5825
|
+
|
|
5826
|
+
/**
|
|
5827
|
+
* Decodes a NixPackageAddRequest message from the specified reader or buffer.
|
|
5828
|
+
* @function decode
|
|
5829
|
+
* @memberof api.NixPackageAddRequest
|
|
5830
|
+
* @static
|
|
5831
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5832
|
+
* @param {number} [length] Message length if known beforehand
|
|
5833
|
+
* @returns {api.NixPackageAddRequest} NixPackageAddRequest
|
|
5834
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5835
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5836
|
+
*/
|
|
5837
|
+
NixPackageAddRequest.decode = function decode(reader, length) {
|
|
5838
|
+
if (!(reader instanceof $Reader))
|
|
5839
|
+
reader = $Reader.create(reader);
|
|
5840
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageAddRequest();
|
|
5841
|
+
while (reader.pos < end) {
|
|
5842
|
+
var tag = reader.uint32();
|
|
5843
|
+
switch (tag >>> 3) {
|
|
5844
|
+
case 1:
|
|
5845
|
+
if (!(message.packages && message.packages.length))
|
|
5846
|
+
message.packages = [];
|
|
5847
|
+
message.packages.push(reader.string());
|
|
5848
|
+
break;
|
|
5849
|
+
default:
|
|
5850
|
+
reader.skipType(tag & 7);
|
|
5851
|
+
break;
|
|
5852
|
+
}
|
|
5853
|
+
}
|
|
5854
|
+
return message;
|
|
5855
|
+
};
|
|
5856
|
+
|
|
5857
|
+
/**
|
|
5858
|
+
* Decodes a NixPackageAddRequest message from the specified reader or buffer, length delimited.
|
|
5859
|
+
* @function decodeDelimited
|
|
5860
|
+
* @memberof api.NixPackageAddRequest
|
|
5861
|
+
* @static
|
|
5862
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
5863
|
+
* @returns {api.NixPackageAddRequest} NixPackageAddRequest
|
|
5864
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
5865
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
5866
|
+
*/
|
|
5867
|
+
NixPackageAddRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
5868
|
+
if (!(reader instanceof $Reader))
|
|
5869
|
+
reader = new $Reader(reader);
|
|
5870
|
+
return this.decode(reader, reader.uint32());
|
|
5871
|
+
};
|
|
5872
|
+
|
|
5873
|
+
/**
|
|
5874
|
+
* Verifies a NixPackageAddRequest message.
|
|
5875
|
+
* @function verify
|
|
5876
|
+
* @memberof api.NixPackageAddRequest
|
|
5877
|
+
* @static
|
|
5878
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
5879
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
5880
|
+
*/
|
|
5881
|
+
NixPackageAddRequest.verify = function verify(message) {
|
|
5882
|
+
if (typeof message !== "object" || message === null)
|
|
5883
|
+
return "object expected";
|
|
5884
|
+
if (message.packages != null && message.hasOwnProperty("packages")) {
|
|
5885
|
+
if (!Array.isArray(message.packages))
|
|
5886
|
+
return "packages: array expected";
|
|
5887
|
+
for (var i = 0; i < message.packages.length; ++i)
|
|
5888
|
+
if (!$util.isString(message.packages[i]))
|
|
5889
|
+
return "packages: string[] expected";
|
|
5890
|
+
}
|
|
5891
|
+
return null;
|
|
5892
|
+
};
|
|
5893
|
+
|
|
5894
|
+
/**
|
|
5895
|
+
* Creates a NixPackageAddRequest message from a plain object. Also converts values to their respective internal types.
|
|
5896
|
+
* @function fromObject
|
|
5897
|
+
* @memberof api.NixPackageAddRequest
|
|
5898
|
+
* @static
|
|
5899
|
+
* @param {Object.<string,*>} object Plain object
|
|
5900
|
+
* @returns {api.NixPackageAddRequest} NixPackageAddRequest
|
|
5901
|
+
*/
|
|
5902
|
+
NixPackageAddRequest.fromObject = function fromObject(object) {
|
|
5903
|
+
if (object instanceof $root.api.NixPackageAddRequest)
|
|
5904
|
+
return object;
|
|
5905
|
+
var message = new $root.api.NixPackageAddRequest();
|
|
5906
|
+
if (object.packages) {
|
|
5907
|
+
if (!Array.isArray(object.packages))
|
|
5908
|
+
throw TypeError(".api.NixPackageAddRequest.packages: array expected");
|
|
5909
|
+
message.packages = [];
|
|
5910
|
+
for (var i = 0; i < object.packages.length; ++i)
|
|
5911
|
+
message.packages[i] = String(object.packages[i]);
|
|
5912
|
+
}
|
|
5913
|
+
return message;
|
|
5914
|
+
};
|
|
5915
|
+
|
|
5916
|
+
/**
|
|
5917
|
+
* Creates a plain object from a NixPackageAddRequest message. Also converts values to other types if specified.
|
|
5918
|
+
* @function toObject
|
|
5919
|
+
* @memberof api.NixPackageAddRequest
|
|
5920
|
+
* @static
|
|
5921
|
+
* @param {api.NixPackageAddRequest} message NixPackageAddRequest
|
|
5922
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
5923
|
+
* @returns {Object.<string,*>} Plain object
|
|
5924
|
+
*/
|
|
5925
|
+
NixPackageAddRequest.toObject = function toObject(message, options) {
|
|
5926
|
+
if (!options)
|
|
5927
|
+
options = {};
|
|
5928
|
+
var object = {};
|
|
5929
|
+
if (options.arrays || options.defaults)
|
|
5930
|
+
object.packages = [];
|
|
5931
|
+
if (message.packages && message.packages.length) {
|
|
5932
|
+
object.packages = [];
|
|
5933
|
+
for (var j = 0; j < message.packages.length; ++j)
|
|
5934
|
+
object.packages[j] = message.packages[j];
|
|
5935
|
+
}
|
|
5936
|
+
return object;
|
|
5937
|
+
};
|
|
5938
|
+
|
|
5939
|
+
/**
|
|
5940
|
+
* Converts this NixPackageAddRequest to JSON.
|
|
5941
|
+
* @function toJSON
|
|
5942
|
+
* @memberof api.NixPackageAddRequest
|
|
5943
|
+
* @instance
|
|
5944
|
+
* @returns {Object.<string,*>} JSON object
|
|
5945
|
+
*/
|
|
5946
|
+
NixPackageAddRequest.prototype.toJSON = function toJSON() {
|
|
5947
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5948
|
+
};
|
|
5949
|
+
|
|
5950
|
+
return NixPackageAddRequest;
|
|
5951
|
+
})();
|
|
5952
|
+
|
|
5953
|
+
api.NixPackageAddResponse = (function() {
|
|
5954
|
+
|
|
5955
|
+
/**
|
|
5956
|
+
* Properties of a NixPackageAddResponse.
|
|
5957
|
+
* @memberof api
|
|
5958
|
+
* @interface INixPackageAddResponse
|
|
5959
|
+
*/
|
|
5960
|
+
|
|
5961
|
+
/**
|
|
5962
|
+
* Constructs a new NixPackageAddResponse.
|
|
5963
|
+
* @memberof api
|
|
5964
|
+
* @classdesc Represents a NixPackageAddResponse.
|
|
5965
|
+
* @constructor
|
|
5966
|
+
* @param {api.INixPackageAddResponse=} [properties] Properties to set
|
|
5967
|
+
*/
|
|
5968
|
+
function NixPackageAddResponse(properties) {
|
|
5969
|
+
if (properties)
|
|
5970
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
5971
|
+
if (properties[keys[i]] != null)
|
|
5972
|
+
this[keys[i]] = properties[keys[i]];
|
|
5973
|
+
}
|
|
5974
|
+
|
|
5975
|
+
/**
|
|
5976
|
+
* Creates a new NixPackageAddResponse instance using the specified properties.
|
|
5977
|
+
* @function create
|
|
5978
|
+
* @memberof api.NixPackageAddResponse
|
|
5979
|
+
* @static
|
|
5980
|
+
* @param {api.INixPackageAddResponse=} [properties] Properties to set
|
|
5981
|
+
* @returns {api.NixPackageAddResponse} NixPackageAddResponse instance
|
|
5982
|
+
*/
|
|
5983
|
+
NixPackageAddResponse.create = function create(properties) {
|
|
5984
|
+
return NixPackageAddResponse.fromObject(properties);
|
|
5985
|
+
};
|
|
5986
|
+
|
|
5987
|
+
/**
|
|
5988
|
+
* Encodes the specified NixPackageAddResponse message. Does not implicitly {@link api.NixPackageAddResponse.verify|verify} messages.
|
|
5989
|
+
* @function encode
|
|
5990
|
+
* @memberof api.NixPackageAddResponse
|
|
5991
|
+
* @static
|
|
5992
|
+
* @param {api.NixPackageAddResponse} message NixPackageAddResponse message or plain object to encode
|
|
5993
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
5994
|
+
* @returns {$protobuf.Writer} Writer
|
|
5995
|
+
*/
|
|
5996
|
+
NixPackageAddResponse.encode = function encode(message, writer) {
|
|
5997
|
+
if (!writer)
|
|
5998
|
+
writer = $Writer.create();
|
|
5999
|
+
return writer;
|
|
6000
|
+
};
|
|
6001
|
+
|
|
6002
|
+
/**
|
|
6003
|
+
* Encodes the specified NixPackageAddResponse message, length delimited. Does not implicitly {@link api.NixPackageAddResponse.verify|verify} messages.
|
|
6004
|
+
* @function encodeDelimited
|
|
6005
|
+
* @memberof api.NixPackageAddResponse
|
|
6006
|
+
* @static
|
|
6007
|
+
* @param {api.NixPackageAddResponse} message NixPackageAddResponse message or plain object to encode
|
|
6008
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6009
|
+
* @returns {$protobuf.Writer} Writer
|
|
6010
|
+
*/
|
|
6011
|
+
NixPackageAddResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6012
|
+
return this.encode(message, writer).ldelim();
|
|
6013
|
+
};
|
|
6014
|
+
|
|
6015
|
+
/**
|
|
6016
|
+
* Decodes a NixPackageAddResponse message from the specified reader or buffer.
|
|
6017
|
+
* @function decode
|
|
6018
|
+
* @memberof api.NixPackageAddResponse
|
|
6019
|
+
* @static
|
|
6020
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6021
|
+
* @param {number} [length] Message length if known beforehand
|
|
6022
|
+
* @returns {api.NixPackageAddResponse} NixPackageAddResponse
|
|
6023
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6024
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6025
|
+
*/
|
|
6026
|
+
NixPackageAddResponse.decode = function decode(reader, length) {
|
|
6027
|
+
if (!(reader instanceof $Reader))
|
|
6028
|
+
reader = $Reader.create(reader);
|
|
6029
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageAddResponse();
|
|
6030
|
+
while (reader.pos < end) {
|
|
6031
|
+
var tag = reader.uint32();
|
|
6032
|
+
switch (tag >>> 3) {
|
|
6033
|
+
default:
|
|
6034
|
+
reader.skipType(tag & 7);
|
|
6035
|
+
break;
|
|
6036
|
+
}
|
|
6037
|
+
}
|
|
6038
|
+
return message;
|
|
6039
|
+
};
|
|
6040
|
+
|
|
6041
|
+
/**
|
|
6042
|
+
* Decodes a NixPackageAddResponse message from the specified reader or buffer, length delimited.
|
|
6043
|
+
* @function decodeDelimited
|
|
6044
|
+
* @memberof api.NixPackageAddResponse
|
|
6045
|
+
* @static
|
|
6046
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6047
|
+
* @returns {api.NixPackageAddResponse} NixPackageAddResponse
|
|
6048
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6049
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6050
|
+
*/
|
|
6051
|
+
NixPackageAddResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
6052
|
+
if (!(reader instanceof $Reader))
|
|
6053
|
+
reader = new $Reader(reader);
|
|
6054
|
+
return this.decode(reader, reader.uint32());
|
|
6055
|
+
};
|
|
6056
|
+
|
|
6057
|
+
/**
|
|
6058
|
+
* Verifies a NixPackageAddResponse message.
|
|
6059
|
+
* @function verify
|
|
6060
|
+
* @memberof api.NixPackageAddResponse
|
|
6061
|
+
* @static
|
|
6062
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6063
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6064
|
+
*/
|
|
6065
|
+
NixPackageAddResponse.verify = function verify(message) {
|
|
6066
|
+
if (typeof message !== "object" || message === null)
|
|
6067
|
+
return "object expected";
|
|
6068
|
+
return null;
|
|
6069
|
+
};
|
|
6070
|
+
|
|
6071
|
+
/**
|
|
6072
|
+
* Creates a NixPackageAddResponse message from a plain object. Also converts values to their respective internal types.
|
|
6073
|
+
* @function fromObject
|
|
6074
|
+
* @memberof api.NixPackageAddResponse
|
|
6075
|
+
* @static
|
|
6076
|
+
* @param {Object.<string,*>} object Plain object
|
|
6077
|
+
* @returns {api.NixPackageAddResponse} NixPackageAddResponse
|
|
6078
|
+
*/
|
|
6079
|
+
NixPackageAddResponse.fromObject = function fromObject(object) {
|
|
6080
|
+
if (object instanceof $root.api.NixPackageAddResponse)
|
|
6081
|
+
return object;
|
|
6082
|
+
return new $root.api.NixPackageAddResponse();
|
|
6083
|
+
};
|
|
6084
|
+
|
|
6085
|
+
/**
|
|
6086
|
+
* Creates a plain object from a NixPackageAddResponse message. Also converts values to other types if specified.
|
|
6087
|
+
* @function toObject
|
|
6088
|
+
* @memberof api.NixPackageAddResponse
|
|
6089
|
+
* @static
|
|
6090
|
+
* @param {api.NixPackageAddResponse} message NixPackageAddResponse
|
|
6091
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6092
|
+
* @returns {Object.<string,*>} Plain object
|
|
6093
|
+
*/
|
|
6094
|
+
NixPackageAddResponse.toObject = function toObject() {
|
|
6095
|
+
return {};
|
|
6096
|
+
};
|
|
6097
|
+
|
|
6098
|
+
/**
|
|
6099
|
+
* Converts this NixPackageAddResponse to JSON.
|
|
6100
|
+
* @function toJSON
|
|
6101
|
+
* @memberof api.NixPackageAddResponse
|
|
6102
|
+
* @instance
|
|
6103
|
+
* @returns {Object.<string,*>} JSON object
|
|
6104
|
+
*/
|
|
6105
|
+
NixPackageAddResponse.prototype.toJSON = function toJSON() {
|
|
6106
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6107
|
+
};
|
|
6108
|
+
|
|
6109
|
+
return NixPackageAddResponse;
|
|
6110
|
+
})();
|
|
6111
|
+
|
|
6112
|
+
api.NixPackageRemoveRequest = (function() {
|
|
6113
|
+
|
|
6114
|
+
/**
|
|
6115
|
+
* Properties of a NixPackageRemoveRequest.
|
|
6116
|
+
* @memberof api
|
|
6117
|
+
* @interface INixPackageRemoveRequest
|
|
6118
|
+
* @property {Array.<string>|null} [packages] NixPackageRemoveRequest packages
|
|
6119
|
+
*/
|
|
6120
|
+
|
|
6121
|
+
/**
|
|
6122
|
+
* Constructs a new NixPackageRemoveRequest.
|
|
6123
|
+
* @memberof api
|
|
6124
|
+
* @classdesc Represents a NixPackageRemoveRequest.
|
|
6125
|
+
* @constructor
|
|
6126
|
+
* @param {api.INixPackageRemoveRequest=} [properties] Properties to set
|
|
6127
|
+
*/
|
|
6128
|
+
function NixPackageRemoveRequest(properties) {
|
|
6129
|
+
this.packages = [];
|
|
6130
|
+
if (properties)
|
|
6131
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6132
|
+
if (properties[keys[i]] != null)
|
|
6133
|
+
this[keys[i]] = properties[keys[i]];
|
|
6134
|
+
}
|
|
6135
|
+
|
|
6136
|
+
/**
|
|
6137
|
+
* NixPackageRemoveRequest packages.
|
|
6138
|
+
* @member {Array.<string>} packages
|
|
6139
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6140
|
+
* @instance
|
|
6141
|
+
*/
|
|
6142
|
+
NixPackageRemoveRequest.prototype.packages = $util.emptyArray;
|
|
6143
|
+
|
|
6144
|
+
/**
|
|
6145
|
+
* Creates a new NixPackageRemoveRequest instance using the specified properties.
|
|
6146
|
+
* @function create
|
|
6147
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6148
|
+
* @static
|
|
6149
|
+
* @param {api.INixPackageRemoveRequest=} [properties] Properties to set
|
|
6150
|
+
* @returns {api.NixPackageRemoveRequest} NixPackageRemoveRequest instance
|
|
6151
|
+
*/
|
|
6152
|
+
NixPackageRemoveRequest.create = function create(properties) {
|
|
6153
|
+
return NixPackageRemoveRequest.fromObject(properties);
|
|
6154
|
+
};
|
|
6155
|
+
|
|
6156
|
+
/**
|
|
6157
|
+
* Encodes the specified NixPackageRemoveRequest message. Does not implicitly {@link api.NixPackageRemoveRequest.verify|verify} messages.
|
|
6158
|
+
* @function encode
|
|
6159
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6160
|
+
* @static
|
|
6161
|
+
* @param {api.NixPackageRemoveRequest} message NixPackageRemoveRequest message or plain object to encode
|
|
6162
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6163
|
+
* @returns {$protobuf.Writer} Writer
|
|
6164
|
+
*/
|
|
6165
|
+
NixPackageRemoveRequest.encode = function encode(message, writer) {
|
|
6166
|
+
if (!writer)
|
|
6167
|
+
writer = $Writer.create();
|
|
6168
|
+
if (message.packages != null && message.packages.length)
|
|
6169
|
+
for (var i = 0; i < message.packages.length; ++i)
|
|
6170
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.packages[i]);
|
|
6171
|
+
return writer;
|
|
6172
|
+
};
|
|
6173
|
+
|
|
6174
|
+
/**
|
|
6175
|
+
* Encodes the specified NixPackageRemoveRequest message, length delimited. Does not implicitly {@link api.NixPackageRemoveRequest.verify|verify} messages.
|
|
6176
|
+
* @function encodeDelimited
|
|
6177
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6178
|
+
* @static
|
|
6179
|
+
* @param {api.NixPackageRemoveRequest} message NixPackageRemoveRequest message or plain object to encode
|
|
6180
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6181
|
+
* @returns {$protobuf.Writer} Writer
|
|
6182
|
+
*/
|
|
6183
|
+
NixPackageRemoveRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6184
|
+
return this.encode(message, writer).ldelim();
|
|
6185
|
+
};
|
|
6186
|
+
|
|
6187
|
+
/**
|
|
6188
|
+
* Decodes a NixPackageRemoveRequest message from the specified reader or buffer.
|
|
6189
|
+
* @function decode
|
|
6190
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6191
|
+
* @static
|
|
6192
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6193
|
+
* @param {number} [length] Message length if known beforehand
|
|
6194
|
+
* @returns {api.NixPackageRemoveRequest} NixPackageRemoveRequest
|
|
6195
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6196
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6197
|
+
*/
|
|
6198
|
+
NixPackageRemoveRequest.decode = function decode(reader, length) {
|
|
6199
|
+
if (!(reader instanceof $Reader))
|
|
6200
|
+
reader = $Reader.create(reader);
|
|
6201
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageRemoveRequest();
|
|
6202
|
+
while (reader.pos < end) {
|
|
6203
|
+
var tag = reader.uint32();
|
|
6204
|
+
switch (tag >>> 3) {
|
|
6205
|
+
case 1:
|
|
6206
|
+
if (!(message.packages && message.packages.length))
|
|
6207
|
+
message.packages = [];
|
|
6208
|
+
message.packages.push(reader.string());
|
|
6209
|
+
break;
|
|
6210
|
+
default:
|
|
6211
|
+
reader.skipType(tag & 7);
|
|
6212
|
+
break;
|
|
6213
|
+
}
|
|
6214
|
+
}
|
|
6215
|
+
return message;
|
|
6216
|
+
};
|
|
6217
|
+
|
|
6218
|
+
/**
|
|
6219
|
+
* Decodes a NixPackageRemoveRequest message from the specified reader or buffer, length delimited.
|
|
6220
|
+
* @function decodeDelimited
|
|
6221
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6222
|
+
* @static
|
|
6223
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6224
|
+
* @returns {api.NixPackageRemoveRequest} NixPackageRemoveRequest
|
|
6225
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6226
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6227
|
+
*/
|
|
6228
|
+
NixPackageRemoveRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
6229
|
+
if (!(reader instanceof $Reader))
|
|
6230
|
+
reader = new $Reader(reader);
|
|
6231
|
+
return this.decode(reader, reader.uint32());
|
|
6232
|
+
};
|
|
6233
|
+
|
|
6234
|
+
/**
|
|
6235
|
+
* Verifies a NixPackageRemoveRequest message.
|
|
6236
|
+
* @function verify
|
|
6237
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6238
|
+
* @static
|
|
6239
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6240
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6241
|
+
*/
|
|
6242
|
+
NixPackageRemoveRequest.verify = function verify(message) {
|
|
6243
|
+
if (typeof message !== "object" || message === null)
|
|
6244
|
+
return "object expected";
|
|
6245
|
+
if (message.packages != null && message.hasOwnProperty("packages")) {
|
|
6246
|
+
if (!Array.isArray(message.packages))
|
|
6247
|
+
return "packages: array expected";
|
|
6248
|
+
for (var i = 0; i < message.packages.length; ++i)
|
|
6249
|
+
if (!$util.isString(message.packages[i]))
|
|
6250
|
+
return "packages: string[] expected";
|
|
6251
|
+
}
|
|
6252
|
+
return null;
|
|
6253
|
+
};
|
|
6254
|
+
|
|
6255
|
+
/**
|
|
6256
|
+
* Creates a NixPackageRemoveRequest message from a plain object. Also converts values to their respective internal types.
|
|
6257
|
+
* @function fromObject
|
|
6258
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6259
|
+
* @static
|
|
6260
|
+
* @param {Object.<string,*>} object Plain object
|
|
6261
|
+
* @returns {api.NixPackageRemoveRequest} NixPackageRemoveRequest
|
|
6262
|
+
*/
|
|
6263
|
+
NixPackageRemoveRequest.fromObject = function fromObject(object) {
|
|
6264
|
+
if (object instanceof $root.api.NixPackageRemoveRequest)
|
|
6265
|
+
return object;
|
|
6266
|
+
var message = new $root.api.NixPackageRemoveRequest();
|
|
6267
|
+
if (object.packages) {
|
|
6268
|
+
if (!Array.isArray(object.packages))
|
|
6269
|
+
throw TypeError(".api.NixPackageRemoveRequest.packages: array expected");
|
|
6270
|
+
message.packages = [];
|
|
6271
|
+
for (var i = 0; i < object.packages.length; ++i)
|
|
6272
|
+
message.packages[i] = String(object.packages[i]);
|
|
6273
|
+
}
|
|
6274
|
+
return message;
|
|
6275
|
+
};
|
|
6276
|
+
|
|
6277
|
+
/**
|
|
6278
|
+
* Creates a plain object from a NixPackageRemoveRequest message. Also converts values to other types if specified.
|
|
6279
|
+
* @function toObject
|
|
6280
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6281
|
+
* @static
|
|
6282
|
+
* @param {api.NixPackageRemoveRequest} message NixPackageRemoveRequest
|
|
6283
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6284
|
+
* @returns {Object.<string,*>} Plain object
|
|
6285
|
+
*/
|
|
6286
|
+
NixPackageRemoveRequest.toObject = function toObject(message, options) {
|
|
6287
|
+
if (!options)
|
|
6288
|
+
options = {};
|
|
6289
|
+
var object = {};
|
|
6290
|
+
if (options.arrays || options.defaults)
|
|
6291
|
+
object.packages = [];
|
|
6292
|
+
if (message.packages && message.packages.length) {
|
|
6293
|
+
object.packages = [];
|
|
6294
|
+
for (var j = 0; j < message.packages.length; ++j)
|
|
6295
|
+
object.packages[j] = message.packages[j];
|
|
6296
|
+
}
|
|
6297
|
+
return object;
|
|
6298
|
+
};
|
|
6299
|
+
|
|
6300
|
+
/**
|
|
6301
|
+
* Converts this NixPackageRemoveRequest to JSON.
|
|
6302
|
+
* @function toJSON
|
|
6303
|
+
* @memberof api.NixPackageRemoveRequest
|
|
6304
|
+
* @instance
|
|
6305
|
+
* @returns {Object.<string,*>} JSON object
|
|
6306
|
+
*/
|
|
6307
|
+
NixPackageRemoveRequest.prototype.toJSON = function toJSON() {
|
|
6308
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6309
|
+
};
|
|
6310
|
+
|
|
6311
|
+
return NixPackageRemoveRequest;
|
|
6312
|
+
})();
|
|
6313
|
+
|
|
6314
|
+
api.NixPackageRemoveResponse = (function() {
|
|
6315
|
+
|
|
6316
|
+
/**
|
|
6317
|
+
* Properties of a NixPackageRemoveResponse.
|
|
6318
|
+
* @memberof api
|
|
6319
|
+
* @interface INixPackageRemoveResponse
|
|
6320
|
+
*/
|
|
6321
|
+
|
|
6322
|
+
/**
|
|
6323
|
+
* Constructs a new NixPackageRemoveResponse.
|
|
6324
|
+
* @memberof api
|
|
6325
|
+
* @classdesc Represents a NixPackageRemoveResponse.
|
|
6326
|
+
* @constructor
|
|
6327
|
+
* @param {api.INixPackageRemoveResponse=} [properties] Properties to set
|
|
6328
|
+
*/
|
|
6329
|
+
function NixPackageRemoveResponse(properties) {
|
|
6330
|
+
if (properties)
|
|
6331
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6332
|
+
if (properties[keys[i]] != null)
|
|
6333
|
+
this[keys[i]] = properties[keys[i]];
|
|
6334
|
+
}
|
|
6335
|
+
|
|
6336
|
+
/**
|
|
6337
|
+
* Creates a new NixPackageRemoveResponse instance using the specified properties.
|
|
6338
|
+
* @function create
|
|
6339
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6340
|
+
* @static
|
|
6341
|
+
* @param {api.INixPackageRemoveResponse=} [properties] Properties to set
|
|
6342
|
+
* @returns {api.NixPackageRemoveResponse} NixPackageRemoveResponse instance
|
|
6343
|
+
*/
|
|
6344
|
+
NixPackageRemoveResponse.create = function create(properties) {
|
|
6345
|
+
return NixPackageRemoveResponse.fromObject(properties);
|
|
6346
|
+
};
|
|
6347
|
+
|
|
6348
|
+
/**
|
|
6349
|
+
* Encodes the specified NixPackageRemoveResponse message. Does not implicitly {@link api.NixPackageRemoveResponse.verify|verify} messages.
|
|
6350
|
+
* @function encode
|
|
6351
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6352
|
+
* @static
|
|
6353
|
+
* @param {api.NixPackageRemoveResponse} message NixPackageRemoveResponse message or plain object to encode
|
|
6354
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6355
|
+
* @returns {$protobuf.Writer} Writer
|
|
6356
|
+
*/
|
|
6357
|
+
NixPackageRemoveResponse.encode = function encode(message, writer) {
|
|
6358
|
+
if (!writer)
|
|
6359
|
+
writer = $Writer.create();
|
|
6360
|
+
return writer;
|
|
6361
|
+
};
|
|
6362
|
+
|
|
6363
|
+
/**
|
|
6364
|
+
* Encodes the specified NixPackageRemoveResponse message, length delimited. Does not implicitly {@link api.NixPackageRemoveResponse.verify|verify} messages.
|
|
6365
|
+
* @function encodeDelimited
|
|
6366
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6367
|
+
* @static
|
|
6368
|
+
* @param {api.NixPackageRemoveResponse} message NixPackageRemoveResponse message or plain object to encode
|
|
6369
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6370
|
+
* @returns {$protobuf.Writer} Writer
|
|
6371
|
+
*/
|
|
6372
|
+
NixPackageRemoveResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6373
|
+
return this.encode(message, writer).ldelim();
|
|
6374
|
+
};
|
|
6375
|
+
|
|
6376
|
+
/**
|
|
6377
|
+
* Decodes a NixPackageRemoveResponse message from the specified reader or buffer.
|
|
6378
|
+
* @function decode
|
|
6379
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6380
|
+
* @static
|
|
6381
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6382
|
+
* @param {number} [length] Message length if known beforehand
|
|
6383
|
+
* @returns {api.NixPackageRemoveResponse} NixPackageRemoveResponse
|
|
6384
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6385
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6386
|
+
*/
|
|
6387
|
+
NixPackageRemoveResponse.decode = function decode(reader, length) {
|
|
6388
|
+
if (!(reader instanceof $Reader))
|
|
6389
|
+
reader = $Reader.create(reader);
|
|
6390
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageRemoveResponse();
|
|
6391
|
+
while (reader.pos < end) {
|
|
6392
|
+
var tag = reader.uint32();
|
|
6393
|
+
switch (tag >>> 3) {
|
|
6394
|
+
default:
|
|
6395
|
+
reader.skipType(tag & 7);
|
|
6396
|
+
break;
|
|
6397
|
+
}
|
|
6398
|
+
}
|
|
6399
|
+
return message;
|
|
6400
|
+
};
|
|
6401
|
+
|
|
6402
|
+
/**
|
|
6403
|
+
* Decodes a NixPackageRemoveResponse message from the specified reader or buffer, length delimited.
|
|
6404
|
+
* @function decodeDelimited
|
|
6405
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6406
|
+
* @static
|
|
6407
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6408
|
+
* @returns {api.NixPackageRemoveResponse} NixPackageRemoveResponse
|
|
6409
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6410
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6411
|
+
*/
|
|
6412
|
+
NixPackageRemoveResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
6413
|
+
if (!(reader instanceof $Reader))
|
|
6414
|
+
reader = new $Reader(reader);
|
|
6415
|
+
return this.decode(reader, reader.uint32());
|
|
6416
|
+
};
|
|
6417
|
+
|
|
6418
|
+
/**
|
|
6419
|
+
* Verifies a NixPackageRemoveResponse message.
|
|
6420
|
+
* @function verify
|
|
6421
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6422
|
+
* @static
|
|
6423
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6424
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6425
|
+
*/
|
|
6426
|
+
NixPackageRemoveResponse.verify = function verify(message) {
|
|
6427
|
+
if (typeof message !== "object" || message === null)
|
|
6428
|
+
return "object expected";
|
|
6429
|
+
return null;
|
|
6430
|
+
};
|
|
6431
|
+
|
|
6432
|
+
/**
|
|
6433
|
+
* Creates a NixPackageRemoveResponse message from a plain object. Also converts values to their respective internal types.
|
|
6434
|
+
* @function fromObject
|
|
6435
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6436
|
+
* @static
|
|
6437
|
+
* @param {Object.<string,*>} object Plain object
|
|
6438
|
+
* @returns {api.NixPackageRemoveResponse} NixPackageRemoveResponse
|
|
6439
|
+
*/
|
|
6440
|
+
NixPackageRemoveResponse.fromObject = function fromObject(object) {
|
|
6441
|
+
if (object instanceof $root.api.NixPackageRemoveResponse)
|
|
6442
|
+
return object;
|
|
6443
|
+
return new $root.api.NixPackageRemoveResponse();
|
|
6444
|
+
};
|
|
6445
|
+
|
|
6446
|
+
/**
|
|
6447
|
+
* Creates a plain object from a NixPackageRemoveResponse message. Also converts values to other types if specified.
|
|
6448
|
+
* @function toObject
|
|
6449
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6450
|
+
* @static
|
|
6451
|
+
* @param {api.NixPackageRemoveResponse} message NixPackageRemoveResponse
|
|
6452
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6453
|
+
* @returns {Object.<string,*>} Plain object
|
|
6454
|
+
*/
|
|
6455
|
+
NixPackageRemoveResponse.toObject = function toObject() {
|
|
6456
|
+
return {};
|
|
6457
|
+
};
|
|
6458
|
+
|
|
6459
|
+
/**
|
|
6460
|
+
* Converts this NixPackageRemoveResponse to JSON.
|
|
6461
|
+
* @function toJSON
|
|
6462
|
+
* @memberof api.NixPackageRemoveResponse
|
|
6463
|
+
* @instance
|
|
6464
|
+
* @returns {Object.<string,*>} JSON object
|
|
6465
|
+
*/
|
|
6466
|
+
NixPackageRemoveResponse.prototype.toJSON = function toJSON() {
|
|
6467
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6468
|
+
};
|
|
6469
|
+
|
|
6470
|
+
return NixPackageRemoveResponse;
|
|
6471
|
+
})();
|
|
6472
|
+
|
|
6473
|
+
api.NixPackageListRequest = (function() {
|
|
6474
|
+
|
|
6475
|
+
/**
|
|
6476
|
+
* Properties of a NixPackageListRequest.
|
|
6477
|
+
* @memberof api
|
|
6478
|
+
* @interface INixPackageListRequest
|
|
6479
|
+
*/
|
|
6480
|
+
|
|
6481
|
+
/**
|
|
6482
|
+
* Constructs a new NixPackageListRequest.
|
|
6483
|
+
* @memberof api
|
|
6484
|
+
* @classdesc Represents a NixPackageListRequest.
|
|
6485
|
+
* @constructor
|
|
6486
|
+
* @param {api.INixPackageListRequest=} [properties] Properties to set
|
|
6487
|
+
*/
|
|
6488
|
+
function NixPackageListRequest(properties) {
|
|
6489
|
+
if (properties)
|
|
6490
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6491
|
+
if (properties[keys[i]] != null)
|
|
6492
|
+
this[keys[i]] = properties[keys[i]];
|
|
6493
|
+
}
|
|
6494
|
+
|
|
6495
|
+
/**
|
|
6496
|
+
* Creates a new NixPackageListRequest instance using the specified properties.
|
|
6497
|
+
* @function create
|
|
6498
|
+
* @memberof api.NixPackageListRequest
|
|
6499
|
+
* @static
|
|
6500
|
+
* @param {api.INixPackageListRequest=} [properties] Properties to set
|
|
6501
|
+
* @returns {api.NixPackageListRequest} NixPackageListRequest instance
|
|
6502
|
+
*/
|
|
6503
|
+
NixPackageListRequest.create = function create(properties) {
|
|
6504
|
+
return NixPackageListRequest.fromObject(properties);
|
|
6505
|
+
};
|
|
6506
|
+
|
|
6507
|
+
/**
|
|
6508
|
+
* Encodes the specified NixPackageListRequest message. Does not implicitly {@link api.NixPackageListRequest.verify|verify} messages.
|
|
6509
|
+
* @function encode
|
|
6510
|
+
* @memberof api.NixPackageListRequest
|
|
6511
|
+
* @static
|
|
6512
|
+
* @param {api.NixPackageListRequest} message NixPackageListRequest message or plain object to encode
|
|
6513
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6514
|
+
* @returns {$protobuf.Writer} Writer
|
|
6515
|
+
*/
|
|
6516
|
+
NixPackageListRequest.encode = function encode(message, writer) {
|
|
6517
|
+
if (!writer)
|
|
6518
|
+
writer = $Writer.create();
|
|
6519
|
+
return writer;
|
|
6520
|
+
};
|
|
6521
|
+
|
|
6522
|
+
/**
|
|
6523
|
+
* Encodes the specified NixPackageListRequest message, length delimited. Does not implicitly {@link api.NixPackageListRequest.verify|verify} messages.
|
|
6524
|
+
* @function encodeDelimited
|
|
6525
|
+
* @memberof api.NixPackageListRequest
|
|
6526
|
+
* @static
|
|
6527
|
+
* @param {api.NixPackageListRequest} message NixPackageListRequest message or plain object to encode
|
|
6528
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6529
|
+
* @returns {$protobuf.Writer} Writer
|
|
6530
|
+
*/
|
|
6531
|
+
NixPackageListRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6532
|
+
return this.encode(message, writer).ldelim();
|
|
6533
|
+
};
|
|
6534
|
+
|
|
6535
|
+
/**
|
|
6536
|
+
* Decodes a NixPackageListRequest message from the specified reader or buffer.
|
|
6537
|
+
* @function decode
|
|
6538
|
+
* @memberof api.NixPackageListRequest
|
|
6539
|
+
* @static
|
|
6540
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6541
|
+
* @param {number} [length] Message length if known beforehand
|
|
6542
|
+
* @returns {api.NixPackageListRequest} NixPackageListRequest
|
|
6543
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6544
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6545
|
+
*/
|
|
6546
|
+
NixPackageListRequest.decode = function decode(reader, length) {
|
|
6547
|
+
if (!(reader instanceof $Reader))
|
|
6548
|
+
reader = $Reader.create(reader);
|
|
6549
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageListRequest();
|
|
6550
|
+
while (reader.pos < end) {
|
|
6551
|
+
var tag = reader.uint32();
|
|
6552
|
+
switch (tag >>> 3) {
|
|
6553
|
+
default:
|
|
6554
|
+
reader.skipType(tag & 7);
|
|
6555
|
+
break;
|
|
6556
|
+
}
|
|
6557
|
+
}
|
|
6558
|
+
return message;
|
|
6559
|
+
};
|
|
6560
|
+
|
|
6561
|
+
/**
|
|
6562
|
+
* Decodes a NixPackageListRequest message from the specified reader or buffer, length delimited.
|
|
6563
|
+
* @function decodeDelimited
|
|
6564
|
+
* @memberof api.NixPackageListRequest
|
|
6565
|
+
* @static
|
|
6566
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6567
|
+
* @returns {api.NixPackageListRequest} NixPackageListRequest
|
|
6568
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6569
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6570
|
+
*/
|
|
6571
|
+
NixPackageListRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
6572
|
+
if (!(reader instanceof $Reader))
|
|
6573
|
+
reader = new $Reader(reader);
|
|
6574
|
+
return this.decode(reader, reader.uint32());
|
|
6575
|
+
};
|
|
6576
|
+
|
|
6577
|
+
/**
|
|
6578
|
+
* Verifies a NixPackageListRequest message.
|
|
6579
|
+
* @function verify
|
|
6580
|
+
* @memberof api.NixPackageListRequest
|
|
6581
|
+
* @static
|
|
6582
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6583
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6584
|
+
*/
|
|
6585
|
+
NixPackageListRequest.verify = function verify(message) {
|
|
6586
|
+
if (typeof message !== "object" || message === null)
|
|
6587
|
+
return "object expected";
|
|
6588
|
+
return null;
|
|
6589
|
+
};
|
|
6590
|
+
|
|
6591
|
+
/**
|
|
6592
|
+
* Creates a NixPackageListRequest message from a plain object. Also converts values to their respective internal types.
|
|
6593
|
+
* @function fromObject
|
|
6594
|
+
* @memberof api.NixPackageListRequest
|
|
6595
|
+
* @static
|
|
6596
|
+
* @param {Object.<string,*>} object Plain object
|
|
6597
|
+
* @returns {api.NixPackageListRequest} NixPackageListRequest
|
|
6598
|
+
*/
|
|
6599
|
+
NixPackageListRequest.fromObject = function fromObject(object) {
|
|
6600
|
+
if (object instanceof $root.api.NixPackageListRequest)
|
|
6601
|
+
return object;
|
|
6602
|
+
return new $root.api.NixPackageListRequest();
|
|
6603
|
+
};
|
|
6604
|
+
|
|
6605
|
+
/**
|
|
6606
|
+
* Creates a plain object from a NixPackageListRequest message. Also converts values to other types if specified.
|
|
6607
|
+
* @function toObject
|
|
6608
|
+
* @memberof api.NixPackageListRequest
|
|
6609
|
+
* @static
|
|
6610
|
+
* @param {api.NixPackageListRequest} message NixPackageListRequest
|
|
6611
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6612
|
+
* @returns {Object.<string,*>} Plain object
|
|
6613
|
+
*/
|
|
6614
|
+
NixPackageListRequest.toObject = function toObject() {
|
|
6615
|
+
return {};
|
|
6616
|
+
};
|
|
6617
|
+
|
|
6618
|
+
/**
|
|
6619
|
+
* Converts this NixPackageListRequest to JSON.
|
|
6620
|
+
* @function toJSON
|
|
6621
|
+
* @memberof api.NixPackageListRequest
|
|
6622
|
+
* @instance
|
|
6623
|
+
* @returns {Object.<string,*>} JSON object
|
|
6624
|
+
*/
|
|
6625
|
+
NixPackageListRequest.prototype.toJSON = function toJSON() {
|
|
6626
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6627
|
+
};
|
|
6628
|
+
|
|
6629
|
+
return NixPackageListRequest;
|
|
6630
|
+
})();
|
|
6631
|
+
|
|
6632
|
+
api.NixPackageListResponse = (function() {
|
|
6633
|
+
|
|
6634
|
+
/**
|
|
6635
|
+
* Properties of a NixPackageListResponse.
|
|
6636
|
+
* @memberof api
|
|
6637
|
+
* @interface INixPackageListResponse
|
|
6638
|
+
* @property {Array.<api.NixPackage|api.INixPackage>|null} [packages] NixPackageListResponse packages
|
|
6639
|
+
*/
|
|
6640
|
+
|
|
6641
|
+
/**
|
|
6642
|
+
* Constructs a new NixPackageListResponse.
|
|
6643
|
+
* @memberof api
|
|
6644
|
+
* @classdesc Represents a NixPackageListResponse.
|
|
6645
|
+
* @constructor
|
|
6646
|
+
* @param {api.INixPackageListResponse=} [properties] Properties to set
|
|
6647
|
+
*/
|
|
6648
|
+
function NixPackageListResponse(properties) {
|
|
6649
|
+
this.packages = [];
|
|
6650
|
+
if (properties)
|
|
6651
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6652
|
+
if (properties[keys[i]] != null)
|
|
6653
|
+
this[keys[i]] = properties[keys[i]];
|
|
6654
|
+
}
|
|
6655
|
+
|
|
6656
|
+
/**
|
|
6657
|
+
* NixPackageListResponse packages.
|
|
6658
|
+
* @member {Array.<api.NixPackage>} packages
|
|
6659
|
+
* @memberof api.NixPackageListResponse
|
|
6660
|
+
* @instance
|
|
6661
|
+
*/
|
|
6662
|
+
NixPackageListResponse.prototype.packages = $util.emptyArray;
|
|
6663
|
+
|
|
6664
|
+
/**
|
|
6665
|
+
* Creates a new NixPackageListResponse instance using the specified properties.
|
|
6666
|
+
* @function create
|
|
6667
|
+
* @memberof api.NixPackageListResponse
|
|
6668
|
+
* @static
|
|
6669
|
+
* @param {api.INixPackageListResponse=} [properties] Properties to set
|
|
6670
|
+
* @returns {api.NixPackageListResponse} NixPackageListResponse instance
|
|
6671
|
+
*/
|
|
6672
|
+
NixPackageListResponse.create = function create(properties) {
|
|
6673
|
+
return NixPackageListResponse.fromObject(properties);
|
|
6674
|
+
};
|
|
6675
|
+
|
|
6676
|
+
/**
|
|
6677
|
+
* Encodes the specified NixPackageListResponse message. Does not implicitly {@link api.NixPackageListResponse.verify|verify} messages.
|
|
6678
|
+
* @function encode
|
|
6679
|
+
* @memberof api.NixPackageListResponse
|
|
6680
|
+
* @static
|
|
6681
|
+
* @param {api.NixPackageListResponse} message NixPackageListResponse message or plain object to encode
|
|
6682
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6683
|
+
* @returns {$protobuf.Writer} Writer
|
|
6684
|
+
*/
|
|
6685
|
+
NixPackageListResponse.encode = function encode(message, writer) {
|
|
6686
|
+
if (!writer)
|
|
6687
|
+
writer = $Writer.create();
|
|
6688
|
+
if (message.packages != null && message.packages.length)
|
|
6689
|
+
for (var i = 0; i < message.packages.length; ++i)
|
|
6690
|
+
$root.api.NixPackage.encode(message.packages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
6691
|
+
return writer;
|
|
6692
|
+
};
|
|
6693
|
+
|
|
6694
|
+
/**
|
|
6695
|
+
* Encodes the specified NixPackageListResponse message, length delimited. Does not implicitly {@link api.NixPackageListResponse.verify|verify} messages.
|
|
6696
|
+
* @function encodeDelimited
|
|
6697
|
+
* @memberof api.NixPackageListResponse
|
|
6698
|
+
* @static
|
|
6699
|
+
* @param {api.NixPackageListResponse} message NixPackageListResponse message or plain object to encode
|
|
6700
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6701
|
+
* @returns {$protobuf.Writer} Writer
|
|
6702
|
+
*/
|
|
6703
|
+
NixPackageListResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6704
|
+
return this.encode(message, writer).ldelim();
|
|
6705
|
+
};
|
|
6706
|
+
|
|
6707
|
+
/**
|
|
6708
|
+
* Decodes a NixPackageListResponse message from the specified reader or buffer.
|
|
6709
|
+
* @function decode
|
|
6710
|
+
* @memberof api.NixPackageListResponse
|
|
6711
|
+
* @static
|
|
6712
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6713
|
+
* @param {number} [length] Message length if known beforehand
|
|
6714
|
+
* @returns {api.NixPackageListResponse} NixPackageListResponse
|
|
6715
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6716
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6717
|
+
*/
|
|
6718
|
+
NixPackageListResponse.decode = function decode(reader, length) {
|
|
6719
|
+
if (!(reader instanceof $Reader))
|
|
6720
|
+
reader = $Reader.create(reader);
|
|
6721
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageListResponse();
|
|
6722
|
+
while (reader.pos < end) {
|
|
6723
|
+
var tag = reader.uint32();
|
|
6724
|
+
switch (tag >>> 3) {
|
|
6725
|
+
case 1:
|
|
6726
|
+
if (!(message.packages && message.packages.length))
|
|
6727
|
+
message.packages = [];
|
|
6728
|
+
message.packages.push($root.api.NixPackage.decode(reader, reader.uint32()));
|
|
6729
|
+
break;
|
|
6730
|
+
default:
|
|
6731
|
+
reader.skipType(tag & 7);
|
|
6732
|
+
break;
|
|
6733
|
+
}
|
|
6734
|
+
}
|
|
6735
|
+
return message;
|
|
6736
|
+
};
|
|
6737
|
+
|
|
6738
|
+
/**
|
|
6739
|
+
* Decodes a NixPackageListResponse message from the specified reader or buffer, length delimited.
|
|
6740
|
+
* @function decodeDelimited
|
|
6741
|
+
* @memberof api.NixPackageListResponse
|
|
6742
|
+
* @static
|
|
6743
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6744
|
+
* @returns {api.NixPackageListResponse} NixPackageListResponse
|
|
6745
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6746
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6747
|
+
*/
|
|
6748
|
+
NixPackageListResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
6749
|
+
if (!(reader instanceof $Reader))
|
|
6750
|
+
reader = new $Reader(reader);
|
|
6751
|
+
return this.decode(reader, reader.uint32());
|
|
6752
|
+
};
|
|
6753
|
+
|
|
6754
|
+
/**
|
|
6755
|
+
* Verifies a NixPackageListResponse message.
|
|
6756
|
+
* @function verify
|
|
6757
|
+
* @memberof api.NixPackageListResponse
|
|
6758
|
+
* @static
|
|
6759
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
6760
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
6761
|
+
*/
|
|
6762
|
+
NixPackageListResponse.verify = function verify(message) {
|
|
6763
|
+
if (typeof message !== "object" || message === null)
|
|
6764
|
+
return "object expected";
|
|
6765
|
+
if (message.packages != null && message.hasOwnProperty("packages")) {
|
|
6766
|
+
if (!Array.isArray(message.packages))
|
|
6767
|
+
return "packages: array expected";
|
|
6768
|
+
for (var i = 0; i < message.packages.length; ++i) {
|
|
6769
|
+
var error = $root.api.NixPackage.verify(message.packages[i]);
|
|
6770
|
+
if (error)
|
|
6771
|
+
return "packages." + error;
|
|
6772
|
+
}
|
|
6773
|
+
}
|
|
6774
|
+
return null;
|
|
6775
|
+
};
|
|
6776
|
+
|
|
6777
|
+
/**
|
|
6778
|
+
* Creates a NixPackageListResponse message from a plain object. Also converts values to their respective internal types.
|
|
6779
|
+
* @function fromObject
|
|
6780
|
+
* @memberof api.NixPackageListResponse
|
|
6781
|
+
* @static
|
|
6782
|
+
* @param {Object.<string,*>} object Plain object
|
|
6783
|
+
* @returns {api.NixPackageListResponse} NixPackageListResponse
|
|
6784
|
+
*/
|
|
6785
|
+
NixPackageListResponse.fromObject = function fromObject(object) {
|
|
6786
|
+
if (object instanceof $root.api.NixPackageListResponse)
|
|
6787
|
+
return object;
|
|
6788
|
+
var message = new $root.api.NixPackageListResponse();
|
|
6789
|
+
if (object.packages) {
|
|
6790
|
+
if (!Array.isArray(object.packages))
|
|
6791
|
+
throw TypeError(".api.NixPackageListResponse.packages: array expected");
|
|
6792
|
+
message.packages = [];
|
|
6793
|
+
for (var i = 0; i < object.packages.length; ++i) {
|
|
6794
|
+
if (typeof object.packages[i] !== "object")
|
|
6795
|
+
throw TypeError(".api.NixPackageListResponse.packages: object expected");
|
|
6796
|
+
message.packages[i] = $root.api.NixPackage.fromObject(object.packages[i]);
|
|
6797
|
+
}
|
|
6798
|
+
}
|
|
6799
|
+
return message;
|
|
6800
|
+
};
|
|
6801
|
+
|
|
6802
|
+
/**
|
|
6803
|
+
* Creates a plain object from a NixPackageListResponse message. Also converts values to other types if specified.
|
|
6804
|
+
* @function toObject
|
|
6805
|
+
* @memberof api.NixPackageListResponse
|
|
6806
|
+
* @static
|
|
6807
|
+
* @param {api.NixPackageListResponse} message NixPackageListResponse
|
|
6808
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
6809
|
+
* @returns {Object.<string,*>} Plain object
|
|
6810
|
+
*/
|
|
6811
|
+
NixPackageListResponse.toObject = function toObject(message, options) {
|
|
6812
|
+
if (!options)
|
|
6813
|
+
options = {};
|
|
6814
|
+
var object = {};
|
|
6815
|
+
if (options.arrays || options.defaults)
|
|
6816
|
+
object.packages = [];
|
|
6817
|
+
if (message.packages && message.packages.length) {
|
|
6818
|
+
object.packages = [];
|
|
6819
|
+
for (var j = 0; j < message.packages.length; ++j)
|
|
6820
|
+
object.packages[j] = $root.api.NixPackage.toObject(message.packages[j], options);
|
|
6821
|
+
}
|
|
6822
|
+
return object;
|
|
6823
|
+
};
|
|
6824
|
+
|
|
6825
|
+
/**
|
|
6826
|
+
* Converts this NixPackageListResponse to JSON.
|
|
6827
|
+
* @function toJSON
|
|
6828
|
+
* @memberof api.NixPackageListResponse
|
|
6829
|
+
* @instance
|
|
6830
|
+
* @returns {Object.<string,*>} JSON object
|
|
6831
|
+
*/
|
|
6832
|
+
NixPackageListResponse.prototype.toJSON = function toJSON() {
|
|
6833
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
6834
|
+
};
|
|
6835
|
+
|
|
6836
|
+
return NixPackageListResponse;
|
|
6837
|
+
})();
|
|
6838
|
+
|
|
6839
|
+
api.NixPackage = (function() {
|
|
6840
|
+
|
|
6841
|
+
/**
|
|
6842
|
+
* Properties of a NixPackage.
|
|
6843
|
+
* @memberof api
|
|
6844
|
+
* @interface INixPackage
|
|
6845
|
+
* @property {string|null} [name] NixPackage name
|
|
6846
|
+
* @property {string|null} [description] NixPackage description
|
|
6847
|
+
* @property {string|null} [version] NixPackage version
|
|
6848
|
+
* @property {Array.<string>|null} [homepageURL] NixPackage homepageURL
|
|
6849
|
+
* @property {Array.<string>|null} [maintainers] NixPackage maintainers
|
|
6850
|
+
* @property {Array.<string>|null} [licenses] NixPackage licenses
|
|
6851
|
+
*/
|
|
6852
|
+
|
|
6853
|
+
/**
|
|
6854
|
+
* Constructs a new NixPackage.
|
|
6855
|
+
* @memberof api
|
|
6856
|
+
* @classdesc Represents a NixPackage.
|
|
6857
|
+
* @constructor
|
|
6858
|
+
* @param {api.INixPackage=} [properties] Properties to set
|
|
6859
|
+
*/
|
|
6860
|
+
function NixPackage(properties) {
|
|
6861
|
+
this.homepageURL = [];
|
|
6862
|
+
this.maintainers = [];
|
|
6863
|
+
this.licenses = [];
|
|
6864
|
+
if (properties)
|
|
6865
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6866
|
+
if (properties[keys[i]] != null)
|
|
6867
|
+
this[keys[i]] = properties[keys[i]];
|
|
6868
|
+
}
|
|
6869
|
+
|
|
6870
|
+
/**
|
|
6871
|
+
* NixPackage name.
|
|
6872
|
+
* @member {string} name
|
|
6873
|
+
* @memberof api.NixPackage
|
|
6874
|
+
* @instance
|
|
6875
|
+
*/
|
|
6876
|
+
NixPackage.prototype.name = "";
|
|
6877
|
+
|
|
6878
|
+
/**
|
|
6879
|
+
* NixPackage description.
|
|
6880
|
+
* @member {string} description
|
|
6881
|
+
* @memberof api.NixPackage
|
|
6882
|
+
* @instance
|
|
6883
|
+
*/
|
|
6884
|
+
NixPackage.prototype.description = "";
|
|
6885
|
+
|
|
6886
|
+
/**
|
|
6887
|
+
* NixPackage version.
|
|
6888
|
+
* @member {string} version
|
|
6889
|
+
* @memberof api.NixPackage
|
|
6890
|
+
* @instance
|
|
6891
|
+
*/
|
|
6892
|
+
NixPackage.prototype.version = "";
|
|
6893
|
+
|
|
6894
|
+
/**
|
|
6895
|
+
* NixPackage homepageURL.
|
|
6896
|
+
* @member {Array.<string>} homepageURL
|
|
6897
|
+
* @memberof api.NixPackage
|
|
6898
|
+
* @instance
|
|
6899
|
+
*/
|
|
6900
|
+
NixPackage.prototype.homepageURL = $util.emptyArray;
|
|
6901
|
+
|
|
6902
|
+
/**
|
|
6903
|
+
* NixPackage maintainers.
|
|
6904
|
+
* @member {Array.<string>} maintainers
|
|
6905
|
+
* @memberof api.NixPackage
|
|
6906
|
+
* @instance
|
|
6907
|
+
*/
|
|
6908
|
+
NixPackage.prototype.maintainers = $util.emptyArray;
|
|
6909
|
+
|
|
6910
|
+
/**
|
|
6911
|
+
* NixPackage licenses.
|
|
6912
|
+
* @member {Array.<string>} licenses
|
|
6913
|
+
* @memberof api.NixPackage
|
|
6914
|
+
* @instance
|
|
6915
|
+
*/
|
|
6916
|
+
NixPackage.prototype.licenses = $util.emptyArray;
|
|
6917
|
+
|
|
6918
|
+
/**
|
|
6919
|
+
* Creates a new NixPackage instance using the specified properties.
|
|
6920
|
+
* @function create
|
|
6921
|
+
* @memberof api.NixPackage
|
|
6922
|
+
* @static
|
|
6923
|
+
* @param {api.INixPackage=} [properties] Properties to set
|
|
6924
|
+
* @returns {api.NixPackage} NixPackage instance
|
|
6925
|
+
*/
|
|
6926
|
+
NixPackage.create = function create(properties) {
|
|
6927
|
+
return NixPackage.fromObject(properties);
|
|
6928
|
+
};
|
|
6929
|
+
|
|
6930
|
+
/**
|
|
6931
|
+
* Encodes the specified NixPackage message. Does not implicitly {@link api.NixPackage.verify|verify} messages.
|
|
6932
|
+
* @function encode
|
|
6933
|
+
* @memberof api.NixPackage
|
|
6934
|
+
* @static
|
|
6935
|
+
* @param {api.NixPackage} message NixPackage message or plain object to encode
|
|
6936
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6937
|
+
* @returns {$protobuf.Writer} Writer
|
|
6938
|
+
*/
|
|
6939
|
+
NixPackage.encode = function encode(message, writer) {
|
|
6940
|
+
if (!writer)
|
|
6941
|
+
writer = $Writer.create();
|
|
6942
|
+
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
6943
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
6944
|
+
if (message.description != null && Object.hasOwnProperty.call(message, "description"))
|
|
6945
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
|
|
6946
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
6947
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.version);
|
|
6948
|
+
if (message.homepageURL != null && message.homepageURL.length)
|
|
6949
|
+
for (var i = 0; i < message.homepageURL.length; ++i)
|
|
6950
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.homepageURL[i]);
|
|
6951
|
+
if (message.maintainers != null && message.maintainers.length)
|
|
6952
|
+
for (var i = 0; i < message.maintainers.length; ++i)
|
|
6953
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.maintainers[i]);
|
|
6954
|
+
if (message.licenses != null && message.licenses.length)
|
|
6955
|
+
for (var i = 0; i < message.licenses.length; ++i)
|
|
6956
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.licenses[i]);
|
|
6957
|
+
return writer;
|
|
6958
|
+
};
|
|
6959
|
+
|
|
6960
|
+
/**
|
|
6961
|
+
* Encodes the specified NixPackage message, length delimited. Does not implicitly {@link api.NixPackage.verify|verify} messages.
|
|
6962
|
+
* @function encodeDelimited
|
|
6963
|
+
* @memberof api.NixPackage
|
|
6964
|
+
* @static
|
|
6965
|
+
* @param {api.NixPackage} message NixPackage message or plain object to encode
|
|
6966
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6967
|
+
* @returns {$protobuf.Writer} Writer
|
|
6968
|
+
*/
|
|
6969
|
+
NixPackage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6970
|
+
return this.encode(message, writer).ldelim();
|
|
6971
|
+
};
|
|
6972
|
+
|
|
6973
|
+
/**
|
|
6974
|
+
* Decodes a NixPackage message from the specified reader or buffer.
|
|
6975
|
+
* @function decode
|
|
6976
|
+
* @memberof api.NixPackage
|
|
6977
|
+
* @static
|
|
6978
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6979
|
+
* @param {number} [length] Message length if known beforehand
|
|
6980
|
+
* @returns {api.NixPackage} NixPackage
|
|
6981
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6982
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6983
|
+
*/
|
|
6984
|
+
NixPackage.decode = function decode(reader, length) {
|
|
6985
|
+
if (!(reader instanceof $Reader))
|
|
6986
|
+
reader = $Reader.create(reader);
|
|
6987
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackage();
|
|
6988
|
+
while (reader.pos < end) {
|
|
6989
|
+
var tag = reader.uint32();
|
|
6990
|
+
switch (tag >>> 3) {
|
|
6991
|
+
case 1:
|
|
6992
|
+
message.name = reader.string();
|
|
6993
|
+
break;
|
|
6994
|
+
case 2:
|
|
6995
|
+
message.description = reader.string();
|
|
6996
|
+
break;
|
|
6997
|
+
case 3:
|
|
6998
|
+
message.version = reader.string();
|
|
6999
|
+
break;
|
|
7000
|
+
case 4:
|
|
7001
|
+
if (!(message.homepageURL && message.homepageURL.length))
|
|
7002
|
+
message.homepageURL = [];
|
|
7003
|
+
message.homepageURL.push(reader.string());
|
|
7004
|
+
break;
|
|
7005
|
+
case 5:
|
|
7006
|
+
if (!(message.maintainers && message.maintainers.length))
|
|
7007
|
+
message.maintainers = [];
|
|
7008
|
+
message.maintainers.push(reader.string());
|
|
7009
|
+
break;
|
|
7010
|
+
case 6:
|
|
7011
|
+
if (!(message.licenses && message.licenses.length))
|
|
7012
|
+
message.licenses = [];
|
|
7013
|
+
message.licenses.push(reader.string());
|
|
7014
|
+
break;
|
|
7015
|
+
default:
|
|
7016
|
+
reader.skipType(tag & 7);
|
|
7017
|
+
break;
|
|
7018
|
+
}
|
|
7019
|
+
}
|
|
7020
|
+
return message;
|
|
7021
|
+
};
|
|
7022
|
+
|
|
7023
|
+
/**
|
|
7024
|
+
* Decodes a NixPackage message from the specified reader or buffer, length delimited.
|
|
7025
|
+
* @function decodeDelimited
|
|
7026
|
+
* @memberof api.NixPackage
|
|
7027
|
+
* @static
|
|
7028
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7029
|
+
* @returns {api.NixPackage} NixPackage
|
|
7030
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7031
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7032
|
+
*/
|
|
7033
|
+
NixPackage.decodeDelimited = function decodeDelimited(reader) {
|
|
7034
|
+
if (!(reader instanceof $Reader))
|
|
7035
|
+
reader = new $Reader(reader);
|
|
7036
|
+
return this.decode(reader, reader.uint32());
|
|
7037
|
+
};
|
|
7038
|
+
|
|
7039
|
+
/**
|
|
7040
|
+
* Verifies a NixPackage message.
|
|
7041
|
+
* @function verify
|
|
7042
|
+
* @memberof api.NixPackage
|
|
7043
|
+
* @static
|
|
7044
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7045
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7046
|
+
*/
|
|
7047
|
+
NixPackage.verify = function verify(message) {
|
|
7048
|
+
if (typeof message !== "object" || message === null)
|
|
7049
|
+
return "object expected";
|
|
7050
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
7051
|
+
if (!$util.isString(message.name))
|
|
7052
|
+
return "name: string expected";
|
|
7053
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
7054
|
+
if (!$util.isString(message.description))
|
|
7055
|
+
return "description: string expected";
|
|
7056
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
7057
|
+
if (!$util.isString(message.version))
|
|
7058
|
+
return "version: string expected";
|
|
7059
|
+
if (message.homepageURL != null && message.hasOwnProperty("homepageURL")) {
|
|
7060
|
+
if (!Array.isArray(message.homepageURL))
|
|
7061
|
+
return "homepageURL: array expected";
|
|
7062
|
+
for (var i = 0; i < message.homepageURL.length; ++i)
|
|
7063
|
+
if (!$util.isString(message.homepageURL[i]))
|
|
7064
|
+
return "homepageURL: string[] expected";
|
|
7065
|
+
}
|
|
7066
|
+
if (message.maintainers != null && message.hasOwnProperty("maintainers")) {
|
|
7067
|
+
if (!Array.isArray(message.maintainers))
|
|
7068
|
+
return "maintainers: array expected";
|
|
7069
|
+
for (var i = 0; i < message.maintainers.length; ++i)
|
|
7070
|
+
if (!$util.isString(message.maintainers[i]))
|
|
7071
|
+
return "maintainers: string[] expected";
|
|
7072
|
+
}
|
|
7073
|
+
if (message.licenses != null && message.hasOwnProperty("licenses")) {
|
|
7074
|
+
if (!Array.isArray(message.licenses))
|
|
7075
|
+
return "licenses: array expected";
|
|
7076
|
+
for (var i = 0; i < message.licenses.length; ++i)
|
|
7077
|
+
if (!$util.isString(message.licenses[i]))
|
|
7078
|
+
return "licenses: string[] expected";
|
|
7079
|
+
}
|
|
7080
|
+
return null;
|
|
7081
|
+
};
|
|
7082
|
+
|
|
7083
|
+
/**
|
|
7084
|
+
* Creates a NixPackage message from a plain object. Also converts values to their respective internal types.
|
|
7085
|
+
* @function fromObject
|
|
7086
|
+
* @memberof api.NixPackage
|
|
7087
|
+
* @static
|
|
7088
|
+
* @param {Object.<string,*>} object Plain object
|
|
7089
|
+
* @returns {api.NixPackage} NixPackage
|
|
7090
|
+
*/
|
|
7091
|
+
NixPackage.fromObject = function fromObject(object) {
|
|
7092
|
+
if (object instanceof $root.api.NixPackage)
|
|
7093
|
+
return object;
|
|
7094
|
+
var message = new $root.api.NixPackage();
|
|
7095
|
+
if (object.name != null)
|
|
7096
|
+
message.name = String(object.name);
|
|
7097
|
+
if (object.description != null)
|
|
7098
|
+
message.description = String(object.description);
|
|
7099
|
+
if (object.version != null)
|
|
7100
|
+
message.version = String(object.version);
|
|
7101
|
+
if (object.homepageURL) {
|
|
7102
|
+
if (!Array.isArray(object.homepageURL))
|
|
7103
|
+
throw TypeError(".api.NixPackage.homepageURL: array expected");
|
|
7104
|
+
message.homepageURL = [];
|
|
7105
|
+
for (var i = 0; i < object.homepageURL.length; ++i)
|
|
7106
|
+
message.homepageURL[i] = String(object.homepageURL[i]);
|
|
7107
|
+
}
|
|
7108
|
+
if (object.maintainers) {
|
|
7109
|
+
if (!Array.isArray(object.maintainers))
|
|
7110
|
+
throw TypeError(".api.NixPackage.maintainers: array expected");
|
|
7111
|
+
message.maintainers = [];
|
|
7112
|
+
for (var i = 0; i < object.maintainers.length; ++i)
|
|
7113
|
+
message.maintainers[i] = String(object.maintainers[i]);
|
|
7114
|
+
}
|
|
7115
|
+
if (object.licenses) {
|
|
7116
|
+
if (!Array.isArray(object.licenses))
|
|
7117
|
+
throw TypeError(".api.NixPackage.licenses: array expected");
|
|
7118
|
+
message.licenses = [];
|
|
7119
|
+
for (var i = 0; i < object.licenses.length; ++i)
|
|
7120
|
+
message.licenses[i] = String(object.licenses[i]);
|
|
7121
|
+
}
|
|
7122
|
+
return message;
|
|
7123
|
+
};
|
|
7124
|
+
|
|
7125
|
+
/**
|
|
7126
|
+
* Creates a plain object from a NixPackage message. Also converts values to other types if specified.
|
|
7127
|
+
* @function toObject
|
|
7128
|
+
* @memberof api.NixPackage
|
|
7129
|
+
* @static
|
|
7130
|
+
* @param {api.NixPackage} message NixPackage
|
|
7131
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7132
|
+
* @returns {Object.<string,*>} Plain object
|
|
7133
|
+
*/
|
|
7134
|
+
NixPackage.toObject = function toObject(message, options) {
|
|
7135
|
+
if (!options)
|
|
7136
|
+
options = {};
|
|
7137
|
+
var object = {};
|
|
7138
|
+
if (options.arrays || options.defaults) {
|
|
7139
|
+
object.homepageURL = [];
|
|
7140
|
+
object.maintainers = [];
|
|
7141
|
+
object.licenses = [];
|
|
7142
|
+
}
|
|
7143
|
+
if (options.defaults) {
|
|
7144
|
+
object.name = "";
|
|
7145
|
+
object.description = "";
|
|
7146
|
+
object.version = "";
|
|
7147
|
+
}
|
|
7148
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
7149
|
+
object.name = message.name;
|
|
7150
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
7151
|
+
object.description = message.description;
|
|
7152
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
7153
|
+
object.version = message.version;
|
|
7154
|
+
if (message.homepageURL && message.homepageURL.length) {
|
|
7155
|
+
object.homepageURL = [];
|
|
7156
|
+
for (var j = 0; j < message.homepageURL.length; ++j)
|
|
7157
|
+
object.homepageURL[j] = message.homepageURL[j];
|
|
7158
|
+
}
|
|
7159
|
+
if (message.maintainers && message.maintainers.length) {
|
|
7160
|
+
object.maintainers = [];
|
|
7161
|
+
for (var j = 0; j < message.maintainers.length; ++j)
|
|
7162
|
+
object.maintainers[j] = message.maintainers[j];
|
|
7163
|
+
}
|
|
7164
|
+
if (message.licenses && message.licenses.length) {
|
|
7165
|
+
object.licenses = [];
|
|
7166
|
+
for (var j = 0; j < message.licenses.length; ++j)
|
|
7167
|
+
object.licenses[j] = message.licenses[j];
|
|
7168
|
+
}
|
|
7169
|
+
return object;
|
|
7170
|
+
};
|
|
7171
|
+
|
|
7172
|
+
/**
|
|
7173
|
+
* Converts this NixPackage to JSON.
|
|
7174
|
+
* @function toJSON
|
|
7175
|
+
* @memberof api.NixPackage
|
|
7176
|
+
* @instance
|
|
7177
|
+
* @returns {Object.<string,*>} JSON object
|
|
7178
|
+
*/
|
|
7179
|
+
NixPackage.prototype.toJSON = function toJSON() {
|
|
7180
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7181
|
+
};
|
|
7182
|
+
|
|
7183
|
+
return NixPackage;
|
|
7184
|
+
})();
|
|
7185
|
+
|
|
7186
|
+
api.NixChannelsRequest = (function() {
|
|
7187
|
+
|
|
7188
|
+
/**
|
|
7189
|
+
* Properties of a NixChannelsRequest.
|
|
7190
|
+
* @memberof api
|
|
7191
|
+
* @interface INixChannelsRequest
|
|
7192
|
+
*/
|
|
7193
|
+
|
|
7194
|
+
/**
|
|
7195
|
+
* Constructs a new NixChannelsRequest.
|
|
7196
|
+
* @memberof api
|
|
7197
|
+
* @classdesc Represents a NixChannelsRequest.
|
|
7198
|
+
* @constructor
|
|
7199
|
+
* @param {api.INixChannelsRequest=} [properties] Properties to set
|
|
7200
|
+
*/
|
|
7201
|
+
function NixChannelsRequest(properties) {
|
|
7202
|
+
if (properties)
|
|
7203
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7204
|
+
if (properties[keys[i]] != null)
|
|
7205
|
+
this[keys[i]] = properties[keys[i]];
|
|
7206
|
+
}
|
|
7207
|
+
|
|
7208
|
+
/**
|
|
7209
|
+
* Creates a new NixChannelsRequest instance using the specified properties.
|
|
7210
|
+
* @function create
|
|
7211
|
+
* @memberof api.NixChannelsRequest
|
|
7212
|
+
* @static
|
|
7213
|
+
* @param {api.INixChannelsRequest=} [properties] Properties to set
|
|
7214
|
+
* @returns {api.NixChannelsRequest} NixChannelsRequest instance
|
|
7215
|
+
*/
|
|
7216
|
+
NixChannelsRequest.create = function create(properties) {
|
|
7217
|
+
return NixChannelsRequest.fromObject(properties);
|
|
7218
|
+
};
|
|
7219
|
+
|
|
7220
|
+
/**
|
|
7221
|
+
* Encodes the specified NixChannelsRequest message. Does not implicitly {@link api.NixChannelsRequest.verify|verify} messages.
|
|
7222
|
+
* @function encode
|
|
7223
|
+
* @memberof api.NixChannelsRequest
|
|
7224
|
+
* @static
|
|
7225
|
+
* @param {api.NixChannelsRequest} message NixChannelsRequest message or plain object to encode
|
|
7226
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7227
|
+
* @returns {$protobuf.Writer} Writer
|
|
7228
|
+
*/
|
|
7229
|
+
NixChannelsRequest.encode = function encode(message, writer) {
|
|
7230
|
+
if (!writer)
|
|
7231
|
+
writer = $Writer.create();
|
|
7232
|
+
return writer;
|
|
7233
|
+
};
|
|
7234
|
+
|
|
7235
|
+
/**
|
|
7236
|
+
* Encodes the specified NixChannelsRequest message, length delimited. Does not implicitly {@link api.NixChannelsRequest.verify|verify} messages.
|
|
7237
|
+
* @function encodeDelimited
|
|
7238
|
+
* @memberof api.NixChannelsRequest
|
|
7239
|
+
* @static
|
|
7240
|
+
* @param {api.NixChannelsRequest} message NixChannelsRequest message or plain object to encode
|
|
7241
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7242
|
+
* @returns {$protobuf.Writer} Writer
|
|
7243
|
+
*/
|
|
7244
|
+
NixChannelsRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7245
|
+
return this.encode(message, writer).ldelim();
|
|
7246
|
+
};
|
|
7247
|
+
|
|
7248
|
+
/**
|
|
7249
|
+
* Decodes a NixChannelsRequest message from the specified reader or buffer.
|
|
7250
|
+
* @function decode
|
|
7251
|
+
* @memberof api.NixChannelsRequest
|
|
7252
|
+
* @static
|
|
7253
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7254
|
+
* @param {number} [length] Message length if known beforehand
|
|
7255
|
+
* @returns {api.NixChannelsRequest} NixChannelsRequest
|
|
7256
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7257
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7258
|
+
*/
|
|
7259
|
+
NixChannelsRequest.decode = function decode(reader, length) {
|
|
7260
|
+
if (!(reader instanceof $Reader))
|
|
7261
|
+
reader = $Reader.create(reader);
|
|
7262
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixChannelsRequest();
|
|
7263
|
+
while (reader.pos < end) {
|
|
7264
|
+
var tag = reader.uint32();
|
|
7265
|
+
switch (tag >>> 3) {
|
|
7266
|
+
default:
|
|
7267
|
+
reader.skipType(tag & 7);
|
|
7268
|
+
break;
|
|
7269
|
+
}
|
|
7270
|
+
}
|
|
7271
|
+
return message;
|
|
7272
|
+
};
|
|
7273
|
+
|
|
7274
|
+
/**
|
|
7275
|
+
* Decodes a NixChannelsRequest message from the specified reader or buffer, length delimited.
|
|
7276
|
+
* @function decodeDelimited
|
|
7277
|
+
* @memberof api.NixChannelsRequest
|
|
7278
|
+
* @static
|
|
7279
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7280
|
+
* @returns {api.NixChannelsRequest} NixChannelsRequest
|
|
7281
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7282
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7283
|
+
*/
|
|
7284
|
+
NixChannelsRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
7285
|
+
if (!(reader instanceof $Reader))
|
|
7286
|
+
reader = new $Reader(reader);
|
|
7287
|
+
return this.decode(reader, reader.uint32());
|
|
7288
|
+
};
|
|
7289
|
+
|
|
7290
|
+
/**
|
|
7291
|
+
* Verifies a NixChannelsRequest message.
|
|
7292
|
+
* @function verify
|
|
7293
|
+
* @memberof api.NixChannelsRequest
|
|
7294
|
+
* @static
|
|
7295
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7296
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7297
|
+
*/
|
|
7298
|
+
NixChannelsRequest.verify = function verify(message) {
|
|
7299
|
+
if (typeof message !== "object" || message === null)
|
|
7300
|
+
return "object expected";
|
|
7301
|
+
return null;
|
|
7302
|
+
};
|
|
7303
|
+
|
|
7304
|
+
/**
|
|
7305
|
+
* Creates a NixChannelsRequest message from a plain object. Also converts values to their respective internal types.
|
|
7306
|
+
* @function fromObject
|
|
7307
|
+
* @memberof api.NixChannelsRequest
|
|
7308
|
+
* @static
|
|
7309
|
+
* @param {Object.<string,*>} object Plain object
|
|
7310
|
+
* @returns {api.NixChannelsRequest} NixChannelsRequest
|
|
7311
|
+
*/
|
|
7312
|
+
NixChannelsRequest.fromObject = function fromObject(object) {
|
|
7313
|
+
if (object instanceof $root.api.NixChannelsRequest)
|
|
7314
|
+
return object;
|
|
7315
|
+
return new $root.api.NixChannelsRequest();
|
|
7316
|
+
};
|
|
7317
|
+
|
|
7318
|
+
/**
|
|
7319
|
+
* Creates a plain object from a NixChannelsRequest message. Also converts values to other types if specified.
|
|
7320
|
+
* @function toObject
|
|
7321
|
+
* @memberof api.NixChannelsRequest
|
|
7322
|
+
* @static
|
|
7323
|
+
* @param {api.NixChannelsRequest} message NixChannelsRequest
|
|
7324
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7325
|
+
* @returns {Object.<string,*>} Plain object
|
|
7326
|
+
*/
|
|
7327
|
+
NixChannelsRequest.toObject = function toObject() {
|
|
7328
|
+
return {};
|
|
7329
|
+
};
|
|
7330
|
+
|
|
7331
|
+
/**
|
|
7332
|
+
* Converts this NixChannelsRequest to JSON.
|
|
7333
|
+
* @function toJSON
|
|
7334
|
+
* @memberof api.NixChannelsRequest
|
|
7335
|
+
* @instance
|
|
7336
|
+
* @returns {Object.<string,*>} JSON object
|
|
7337
|
+
*/
|
|
7338
|
+
NixChannelsRequest.prototype.toJSON = function toJSON() {
|
|
7339
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7340
|
+
};
|
|
7341
|
+
|
|
7342
|
+
return NixChannelsRequest;
|
|
7343
|
+
})();
|
|
7344
|
+
|
|
7345
|
+
api.NixChannelsResponse = (function() {
|
|
7346
|
+
|
|
7347
|
+
/**
|
|
7348
|
+
* Properties of a NixChannelsResponse.
|
|
7349
|
+
* @memberof api
|
|
7350
|
+
* @interface INixChannelsResponse
|
|
7351
|
+
* @property {Array.<string>|null} [channels] NixChannelsResponse channels
|
|
7352
|
+
*/
|
|
7353
|
+
|
|
7354
|
+
/**
|
|
7355
|
+
* Constructs a new NixChannelsResponse.
|
|
7356
|
+
* @memberof api
|
|
7357
|
+
* @classdesc Represents a NixChannelsResponse.
|
|
7358
|
+
* @constructor
|
|
7359
|
+
* @param {api.INixChannelsResponse=} [properties] Properties to set
|
|
7360
|
+
*/
|
|
7361
|
+
function NixChannelsResponse(properties) {
|
|
7362
|
+
this.channels = [];
|
|
7363
|
+
if (properties)
|
|
7364
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7365
|
+
if (properties[keys[i]] != null)
|
|
7366
|
+
this[keys[i]] = properties[keys[i]];
|
|
7367
|
+
}
|
|
7368
|
+
|
|
7369
|
+
/**
|
|
7370
|
+
* NixChannelsResponse channels.
|
|
7371
|
+
* @member {Array.<string>} channels
|
|
7372
|
+
* @memberof api.NixChannelsResponse
|
|
7373
|
+
* @instance
|
|
7374
|
+
*/
|
|
7375
|
+
NixChannelsResponse.prototype.channels = $util.emptyArray;
|
|
7376
|
+
|
|
7377
|
+
/**
|
|
7378
|
+
* Creates a new NixChannelsResponse instance using the specified properties.
|
|
7379
|
+
* @function create
|
|
7380
|
+
* @memberof api.NixChannelsResponse
|
|
7381
|
+
* @static
|
|
7382
|
+
* @param {api.INixChannelsResponse=} [properties] Properties to set
|
|
7383
|
+
* @returns {api.NixChannelsResponse} NixChannelsResponse instance
|
|
7384
|
+
*/
|
|
7385
|
+
NixChannelsResponse.create = function create(properties) {
|
|
7386
|
+
return NixChannelsResponse.fromObject(properties);
|
|
7387
|
+
};
|
|
7388
|
+
|
|
7389
|
+
/**
|
|
7390
|
+
* Encodes the specified NixChannelsResponse message. Does not implicitly {@link api.NixChannelsResponse.verify|verify} messages.
|
|
7391
|
+
* @function encode
|
|
7392
|
+
* @memberof api.NixChannelsResponse
|
|
7393
|
+
* @static
|
|
7394
|
+
* @param {api.NixChannelsResponse} message NixChannelsResponse message or plain object to encode
|
|
7395
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7396
|
+
* @returns {$protobuf.Writer} Writer
|
|
7397
|
+
*/
|
|
7398
|
+
NixChannelsResponse.encode = function encode(message, writer) {
|
|
7399
|
+
if (!writer)
|
|
7400
|
+
writer = $Writer.create();
|
|
7401
|
+
if (message.channels != null && message.channels.length)
|
|
7402
|
+
for (var i = 0; i < message.channels.length; ++i)
|
|
7403
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.channels[i]);
|
|
7404
|
+
return writer;
|
|
7405
|
+
};
|
|
7406
|
+
|
|
7407
|
+
/**
|
|
7408
|
+
* Encodes the specified NixChannelsResponse message, length delimited. Does not implicitly {@link api.NixChannelsResponse.verify|verify} messages.
|
|
7409
|
+
* @function encodeDelimited
|
|
7410
|
+
* @memberof api.NixChannelsResponse
|
|
7411
|
+
* @static
|
|
7412
|
+
* @param {api.NixChannelsResponse} message NixChannelsResponse message or plain object to encode
|
|
7413
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7414
|
+
* @returns {$protobuf.Writer} Writer
|
|
7415
|
+
*/
|
|
7416
|
+
NixChannelsResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7417
|
+
return this.encode(message, writer).ldelim();
|
|
7418
|
+
};
|
|
7419
|
+
|
|
7420
|
+
/**
|
|
7421
|
+
* Decodes a NixChannelsResponse message from the specified reader or buffer.
|
|
7422
|
+
* @function decode
|
|
7423
|
+
* @memberof api.NixChannelsResponse
|
|
7424
|
+
* @static
|
|
7425
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7426
|
+
* @param {number} [length] Message length if known beforehand
|
|
7427
|
+
* @returns {api.NixChannelsResponse} NixChannelsResponse
|
|
7428
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7429
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7430
|
+
*/
|
|
7431
|
+
NixChannelsResponse.decode = function decode(reader, length) {
|
|
7432
|
+
if (!(reader instanceof $Reader))
|
|
7433
|
+
reader = $Reader.create(reader);
|
|
7434
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixChannelsResponse();
|
|
7435
|
+
while (reader.pos < end) {
|
|
7436
|
+
var tag = reader.uint32();
|
|
7437
|
+
switch (tag >>> 3) {
|
|
7438
|
+
case 1:
|
|
7439
|
+
if (!(message.channels && message.channels.length))
|
|
7440
|
+
message.channels = [];
|
|
7441
|
+
message.channels.push(reader.string());
|
|
7442
|
+
break;
|
|
7443
|
+
default:
|
|
7444
|
+
reader.skipType(tag & 7);
|
|
7445
|
+
break;
|
|
7446
|
+
}
|
|
7447
|
+
}
|
|
7448
|
+
return message;
|
|
7449
|
+
};
|
|
7450
|
+
|
|
7451
|
+
/**
|
|
7452
|
+
* Decodes a NixChannelsResponse message from the specified reader or buffer, length delimited.
|
|
7453
|
+
* @function decodeDelimited
|
|
7454
|
+
* @memberof api.NixChannelsResponse
|
|
7455
|
+
* @static
|
|
7456
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7457
|
+
* @returns {api.NixChannelsResponse} NixChannelsResponse
|
|
7458
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7459
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7460
|
+
*/
|
|
7461
|
+
NixChannelsResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
7462
|
+
if (!(reader instanceof $Reader))
|
|
7463
|
+
reader = new $Reader(reader);
|
|
7464
|
+
return this.decode(reader, reader.uint32());
|
|
7465
|
+
};
|
|
7466
|
+
|
|
7467
|
+
/**
|
|
7468
|
+
* Verifies a NixChannelsResponse message.
|
|
7469
|
+
* @function verify
|
|
7470
|
+
* @memberof api.NixChannelsResponse
|
|
7471
|
+
* @static
|
|
7472
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7473
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7474
|
+
*/
|
|
7475
|
+
NixChannelsResponse.verify = function verify(message) {
|
|
7476
|
+
if (typeof message !== "object" || message === null)
|
|
7477
|
+
return "object expected";
|
|
7478
|
+
if (message.channels != null && message.hasOwnProperty("channels")) {
|
|
7479
|
+
if (!Array.isArray(message.channels))
|
|
7480
|
+
return "channels: array expected";
|
|
7481
|
+
for (var i = 0; i < message.channels.length; ++i)
|
|
7482
|
+
if (!$util.isString(message.channels[i]))
|
|
7483
|
+
return "channels: string[] expected";
|
|
7484
|
+
}
|
|
7485
|
+
return null;
|
|
7486
|
+
};
|
|
7487
|
+
|
|
7488
|
+
/**
|
|
7489
|
+
* Creates a NixChannelsResponse message from a plain object. Also converts values to their respective internal types.
|
|
7490
|
+
* @function fromObject
|
|
7491
|
+
* @memberof api.NixChannelsResponse
|
|
7492
|
+
* @static
|
|
7493
|
+
* @param {Object.<string,*>} object Plain object
|
|
7494
|
+
* @returns {api.NixChannelsResponse} NixChannelsResponse
|
|
7495
|
+
*/
|
|
7496
|
+
NixChannelsResponse.fromObject = function fromObject(object) {
|
|
7497
|
+
if (object instanceof $root.api.NixChannelsResponse)
|
|
7498
|
+
return object;
|
|
7499
|
+
var message = new $root.api.NixChannelsResponse();
|
|
7500
|
+
if (object.channels) {
|
|
7501
|
+
if (!Array.isArray(object.channels))
|
|
7502
|
+
throw TypeError(".api.NixChannelsResponse.channels: array expected");
|
|
7503
|
+
message.channels = [];
|
|
7504
|
+
for (var i = 0; i < object.channels.length; ++i)
|
|
7505
|
+
message.channels[i] = String(object.channels[i]);
|
|
7506
|
+
}
|
|
7507
|
+
return message;
|
|
7508
|
+
};
|
|
7509
|
+
|
|
7510
|
+
/**
|
|
7511
|
+
* Creates a plain object from a NixChannelsResponse message. Also converts values to other types if specified.
|
|
7512
|
+
* @function toObject
|
|
7513
|
+
* @memberof api.NixChannelsResponse
|
|
7514
|
+
* @static
|
|
7515
|
+
* @param {api.NixChannelsResponse} message NixChannelsResponse
|
|
7516
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7517
|
+
* @returns {Object.<string,*>} Plain object
|
|
7518
|
+
*/
|
|
7519
|
+
NixChannelsResponse.toObject = function toObject(message, options) {
|
|
7520
|
+
if (!options)
|
|
7521
|
+
options = {};
|
|
7522
|
+
var object = {};
|
|
7523
|
+
if (options.arrays || options.defaults)
|
|
7524
|
+
object.channels = [];
|
|
7525
|
+
if (message.channels && message.channels.length) {
|
|
7526
|
+
object.channels = [];
|
|
7527
|
+
for (var j = 0; j < message.channels.length; ++j)
|
|
7528
|
+
object.channels[j] = message.channels[j];
|
|
7529
|
+
}
|
|
7530
|
+
return object;
|
|
7531
|
+
};
|
|
7532
|
+
|
|
7533
|
+
/**
|
|
7534
|
+
* Converts this NixChannelsResponse to JSON.
|
|
7535
|
+
* @function toJSON
|
|
7536
|
+
* @memberof api.NixChannelsResponse
|
|
7537
|
+
* @instance
|
|
7538
|
+
* @returns {Object.<string,*>} JSON object
|
|
7539
|
+
*/
|
|
7540
|
+
NixChannelsResponse.prototype.toJSON = function toJSON() {
|
|
7541
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7542
|
+
};
|
|
7543
|
+
|
|
7544
|
+
return NixChannelsResponse;
|
|
7545
|
+
})();
|
|
7546
|
+
|
|
7547
|
+
api.NixChannelLatestStableRequest = (function() {
|
|
7548
|
+
|
|
7549
|
+
/**
|
|
7550
|
+
* Properties of a NixChannelLatestStableRequest.
|
|
7551
|
+
* @memberof api
|
|
7552
|
+
* @interface INixChannelLatestStableRequest
|
|
7553
|
+
*/
|
|
7554
|
+
|
|
7555
|
+
/**
|
|
7556
|
+
* Constructs a new NixChannelLatestStableRequest.
|
|
7557
|
+
* @memberof api
|
|
7558
|
+
* @classdesc Represents a NixChannelLatestStableRequest.
|
|
7559
|
+
* @constructor
|
|
7560
|
+
* @param {api.INixChannelLatestStableRequest=} [properties] Properties to set
|
|
7561
|
+
*/
|
|
7562
|
+
function NixChannelLatestStableRequest(properties) {
|
|
7563
|
+
if (properties)
|
|
7564
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7565
|
+
if (properties[keys[i]] != null)
|
|
7566
|
+
this[keys[i]] = properties[keys[i]];
|
|
7567
|
+
}
|
|
7568
|
+
|
|
7569
|
+
/**
|
|
7570
|
+
* Creates a new NixChannelLatestStableRequest instance using the specified properties.
|
|
7571
|
+
* @function create
|
|
7572
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7573
|
+
* @static
|
|
7574
|
+
* @param {api.INixChannelLatestStableRequest=} [properties] Properties to set
|
|
7575
|
+
* @returns {api.NixChannelLatestStableRequest} NixChannelLatestStableRequest instance
|
|
7576
|
+
*/
|
|
7577
|
+
NixChannelLatestStableRequest.create = function create(properties) {
|
|
7578
|
+
return NixChannelLatestStableRequest.fromObject(properties);
|
|
7579
|
+
};
|
|
7580
|
+
|
|
7581
|
+
/**
|
|
7582
|
+
* Encodes the specified NixChannelLatestStableRequest message. Does not implicitly {@link api.NixChannelLatestStableRequest.verify|verify} messages.
|
|
7583
|
+
* @function encode
|
|
7584
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7585
|
+
* @static
|
|
7586
|
+
* @param {api.NixChannelLatestStableRequest} message NixChannelLatestStableRequest message or plain object to encode
|
|
7587
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7588
|
+
* @returns {$protobuf.Writer} Writer
|
|
7589
|
+
*/
|
|
7590
|
+
NixChannelLatestStableRequest.encode = function encode(message, writer) {
|
|
7591
|
+
if (!writer)
|
|
7592
|
+
writer = $Writer.create();
|
|
7593
|
+
return writer;
|
|
7594
|
+
};
|
|
7595
|
+
|
|
7596
|
+
/**
|
|
7597
|
+
* Encodes the specified NixChannelLatestStableRequest message, length delimited. Does not implicitly {@link api.NixChannelLatestStableRequest.verify|verify} messages.
|
|
7598
|
+
* @function encodeDelimited
|
|
7599
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7600
|
+
* @static
|
|
7601
|
+
* @param {api.NixChannelLatestStableRequest} message NixChannelLatestStableRequest message or plain object to encode
|
|
7602
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7603
|
+
* @returns {$protobuf.Writer} Writer
|
|
7604
|
+
*/
|
|
7605
|
+
NixChannelLatestStableRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7606
|
+
return this.encode(message, writer).ldelim();
|
|
7607
|
+
};
|
|
7608
|
+
|
|
7609
|
+
/**
|
|
7610
|
+
* Decodes a NixChannelLatestStableRequest message from the specified reader or buffer.
|
|
7611
|
+
* @function decode
|
|
7612
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7613
|
+
* @static
|
|
7614
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7615
|
+
* @param {number} [length] Message length if known beforehand
|
|
7616
|
+
* @returns {api.NixChannelLatestStableRequest} NixChannelLatestStableRequest
|
|
7617
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7618
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7619
|
+
*/
|
|
7620
|
+
NixChannelLatestStableRequest.decode = function decode(reader, length) {
|
|
7621
|
+
if (!(reader instanceof $Reader))
|
|
7622
|
+
reader = $Reader.create(reader);
|
|
7623
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixChannelLatestStableRequest();
|
|
7624
|
+
while (reader.pos < end) {
|
|
7625
|
+
var tag = reader.uint32();
|
|
7626
|
+
switch (tag >>> 3) {
|
|
7627
|
+
default:
|
|
7628
|
+
reader.skipType(tag & 7);
|
|
7629
|
+
break;
|
|
7630
|
+
}
|
|
7631
|
+
}
|
|
7632
|
+
return message;
|
|
7633
|
+
};
|
|
7634
|
+
|
|
7635
|
+
/**
|
|
7636
|
+
* Decodes a NixChannelLatestStableRequest message from the specified reader or buffer, length delimited.
|
|
7637
|
+
* @function decodeDelimited
|
|
7638
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7639
|
+
* @static
|
|
7640
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7641
|
+
* @returns {api.NixChannelLatestStableRequest} NixChannelLatestStableRequest
|
|
7642
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7643
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7644
|
+
*/
|
|
7645
|
+
NixChannelLatestStableRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
7646
|
+
if (!(reader instanceof $Reader))
|
|
7647
|
+
reader = new $Reader(reader);
|
|
7648
|
+
return this.decode(reader, reader.uint32());
|
|
7649
|
+
};
|
|
7650
|
+
|
|
7651
|
+
/**
|
|
7652
|
+
* Verifies a NixChannelLatestStableRequest message.
|
|
7653
|
+
* @function verify
|
|
7654
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7655
|
+
* @static
|
|
7656
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7657
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7658
|
+
*/
|
|
7659
|
+
NixChannelLatestStableRequest.verify = function verify(message) {
|
|
7660
|
+
if (typeof message !== "object" || message === null)
|
|
7661
|
+
return "object expected";
|
|
7662
|
+
return null;
|
|
7663
|
+
};
|
|
7664
|
+
|
|
7665
|
+
/**
|
|
7666
|
+
* Creates a NixChannelLatestStableRequest message from a plain object. Also converts values to their respective internal types.
|
|
7667
|
+
* @function fromObject
|
|
7668
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7669
|
+
* @static
|
|
7670
|
+
* @param {Object.<string,*>} object Plain object
|
|
7671
|
+
* @returns {api.NixChannelLatestStableRequest} NixChannelLatestStableRequest
|
|
7672
|
+
*/
|
|
7673
|
+
NixChannelLatestStableRequest.fromObject = function fromObject(object) {
|
|
7674
|
+
if (object instanceof $root.api.NixChannelLatestStableRequest)
|
|
7675
|
+
return object;
|
|
7676
|
+
return new $root.api.NixChannelLatestStableRequest();
|
|
7677
|
+
};
|
|
7678
|
+
|
|
7679
|
+
/**
|
|
7680
|
+
* Creates a plain object from a NixChannelLatestStableRequest message. Also converts values to other types if specified.
|
|
7681
|
+
* @function toObject
|
|
7682
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7683
|
+
* @static
|
|
7684
|
+
* @param {api.NixChannelLatestStableRequest} message NixChannelLatestStableRequest
|
|
7685
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7686
|
+
* @returns {Object.<string,*>} Plain object
|
|
7687
|
+
*/
|
|
7688
|
+
NixChannelLatestStableRequest.toObject = function toObject() {
|
|
7689
|
+
return {};
|
|
7690
|
+
};
|
|
7691
|
+
|
|
7692
|
+
/**
|
|
7693
|
+
* Converts this NixChannelLatestStableRequest to JSON.
|
|
7694
|
+
* @function toJSON
|
|
7695
|
+
* @memberof api.NixChannelLatestStableRequest
|
|
7696
|
+
* @instance
|
|
7697
|
+
* @returns {Object.<string,*>} JSON object
|
|
7698
|
+
*/
|
|
7699
|
+
NixChannelLatestStableRequest.prototype.toJSON = function toJSON() {
|
|
7700
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7701
|
+
};
|
|
7702
|
+
|
|
7703
|
+
return NixChannelLatestStableRequest;
|
|
7704
|
+
})();
|
|
7705
|
+
|
|
7706
|
+
api.NixChannelLatestStableResponse = (function() {
|
|
7707
|
+
|
|
7708
|
+
/**
|
|
7709
|
+
* Properties of a NixChannelLatestStableResponse.
|
|
7710
|
+
* @memberof api
|
|
7711
|
+
* @interface INixChannelLatestStableResponse
|
|
7712
|
+
* @property {string|null} [channel] NixChannelLatestStableResponse channel
|
|
7713
|
+
*/
|
|
7714
|
+
|
|
7715
|
+
/**
|
|
7716
|
+
* Constructs a new NixChannelLatestStableResponse.
|
|
7717
|
+
* @memberof api
|
|
7718
|
+
* @classdesc Represents a NixChannelLatestStableResponse.
|
|
7719
|
+
* @constructor
|
|
7720
|
+
* @param {api.INixChannelLatestStableResponse=} [properties] Properties to set
|
|
7721
|
+
*/
|
|
7722
|
+
function NixChannelLatestStableResponse(properties) {
|
|
7723
|
+
if (properties)
|
|
7724
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7725
|
+
if (properties[keys[i]] != null)
|
|
7726
|
+
this[keys[i]] = properties[keys[i]];
|
|
7727
|
+
}
|
|
7728
|
+
|
|
7729
|
+
/**
|
|
7730
|
+
* NixChannelLatestStableResponse channel.
|
|
7731
|
+
* @member {string} channel
|
|
7732
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7733
|
+
* @instance
|
|
7734
|
+
*/
|
|
7735
|
+
NixChannelLatestStableResponse.prototype.channel = "";
|
|
7736
|
+
|
|
7737
|
+
/**
|
|
7738
|
+
* Creates a new NixChannelLatestStableResponse instance using the specified properties.
|
|
7739
|
+
* @function create
|
|
7740
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7741
|
+
* @static
|
|
7742
|
+
* @param {api.INixChannelLatestStableResponse=} [properties] Properties to set
|
|
7743
|
+
* @returns {api.NixChannelLatestStableResponse} NixChannelLatestStableResponse instance
|
|
7744
|
+
*/
|
|
7745
|
+
NixChannelLatestStableResponse.create = function create(properties) {
|
|
7746
|
+
return NixChannelLatestStableResponse.fromObject(properties);
|
|
7747
|
+
};
|
|
7748
|
+
|
|
7749
|
+
/**
|
|
7750
|
+
* Encodes the specified NixChannelLatestStableResponse message. Does not implicitly {@link api.NixChannelLatestStableResponse.verify|verify} messages.
|
|
7751
|
+
* @function encode
|
|
7752
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7753
|
+
* @static
|
|
7754
|
+
* @param {api.NixChannelLatestStableResponse} message NixChannelLatestStableResponse message or plain object to encode
|
|
7755
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7756
|
+
* @returns {$protobuf.Writer} Writer
|
|
7757
|
+
*/
|
|
7758
|
+
NixChannelLatestStableResponse.encode = function encode(message, writer) {
|
|
7759
|
+
if (!writer)
|
|
7760
|
+
writer = $Writer.create();
|
|
7761
|
+
if (message.channel != null && Object.hasOwnProperty.call(message, "channel"))
|
|
7762
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.channel);
|
|
7763
|
+
return writer;
|
|
7764
|
+
};
|
|
7765
|
+
|
|
7766
|
+
/**
|
|
7767
|
+
* Encodes the specified NixChannelLatestStableResponse message, length delimited. Does not implicitly {@link api.NixChannelLatestStableResponse.verify|verify} messages.
|
|
7768
|
+
* @function encodeDelimited
|
|
7769
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7770
|
+
* @static
|
|
7771
|
+
* @param {api.NixChannelLatestStableResponse} message NixChannelLatestStableResponse message or plain object to encode
|
|
7772
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7773
|
+
* @returns {$protobuf.Writer} Writer
|
|
7774
|
+
*/
|
|
7775
|
+
NixChannelLatestStableResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7776
|
+
return this.encode(message, writer).ldelim();
|
|
7777
|
+
};
|
|
7778
|
+
|
|
7779
|
+
/**
|
|
7780
|
+
* Decodes a NixChannelLatestStableResponse message from the specified reader or buffer.
|
|
7781
|
+
* @function decode
|
|
7782
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7783
|
+
* @static
|
|
7784
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7785
|
+
* @param {number} [length] Message length if known beforehand
|
|
7786
|
+
* @returns {api.NixChannelLatestStableResponse} NixChannelLatestStableResponse
|
|
7787
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7788
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7789
|
+
*/
|
|
7790
|
+
NixChannelLatestStableResponse.decode = function decode(reader, length) {
|
|
7791
|
+
if (!(reader instanceof $Reader))
|
|
7792
|
+
reader = $Reader.create(reader);
|
|
7793
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixChannelLatestStableResponse();
|
|
7794
|
+
while (reader.pos < end) {
|
|
7795
|
+
var tag = reader.uint32();
|
|
7796
|
+
switch (tag >>> 3) {
|
|
7797
|
+
case 1:
|
|
7798
|
+
message.channel = reader.string();
|
|
7799
|
+
break;
|
|
7800
|
+
default:
|
|
7801
|
+
reader.skipType(tag & 7);
|
|
7802
|
+
break;
|
|
7803
|
+
}
|
|
7804
|
+
}
|
|
7805
|
+
return message;
|
|
7806
|
+
};
|
|
7807
|
+
|
|
7808
|
+
/**
|
|
7809
|
+
* Decodes a NixChannelLatestStableResponse message from the specified reader or buffer, length delimited.
|
|
7810
|
+
* @function decodeDelimited
|
|
7811
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7812
|
+
* @static
|
|
7813
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7814
|
+
* @returns {api.NixChannelLatestStableResponse} NixChannelLatestStableResponse
|
|
7815
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7816
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7817
|
+
*/
|
|
7818
|
+
NixChannelLatestStableResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
7819
|
+
if (!(reader instanceof $Reader))
|
|
7820
|
+
reader = new $Reader(reader);
|
|
7821
|
+
return this.decode(reader, reader.uint32());
|
|
7822
|
+
};
|
|
7823
|
+
|
|
7824
|
+
/**
|
|
7825
|
+
* Verifies a NixChannelLatestStableResponse message.
|
|
7826
|
+
* @function verify
|
|
7827
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7828
|
+
* @static
|
|
7829
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7830
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7831
|
+
*/
|
|
7832
|
+
NixChannelLatestStableResponse.verify = function verify(message) {
|
|
7833
|
+
if (typeof message !== "object" || message === null)
|
|
7834
|
+
return "object expected";
|
|
7835
|
+
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
7836
|
+
if (!$util.isString(message.channel))
|
|
7837
|
+
return "channel: string expected";
|
|
7838
|
+
return null;
|
|
7839
|
+
};
|
|
7840
|
+
|
|
7841
|
+
/**
|
|
7842
|
+
* Creates a NixChannelLatestStableResponse message from a plain object. Also converts values to their respective internal types.
|
|
7843
|
+
* @function fromObject
|
|
7844
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7845
|
+
* @static
|
|
7846
|
+
* @param {Object.<string,*>} object Plain object
|
|
7847
|
+
* @returns {api.NixChannelLatestStableResponse} NixChannelLatestStableResponse
|
|
7848
|
+
*/
|
|
7849
|
+
NixChannelLatestStableResponse.fromObject = function fromObject(object) {
|
|
7850
|
+
if (object instanceof $root.api.NixChannelLatestStableResponse)
|
|
7851
|
+
return object;
|
|
7852
|
+
var message = new $root.api.NixChannelLatestStableResponse();
|
|
7853
|
+
if (object.channel != null)
|
|
7854
|
+
message.channel = String(object.channel);
|
|
7855
|
+
return message;
|
|
7856
|
+
};
|
|
7857
|
+
|
|
7858
|
+
/**
|
|
7859
|
+
* Creates a plain object from a NixChannelLatestStableResponse message. Also converts values to other types if specified.
|
|
7860
|
+
* @function toObject
|
|
7861
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7862
|
+
* @static
|
|
7863
|
+
* @param {api.NixChannelLatestStableResponse} message NixChannelLatestStableResponse
|
|
7864
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7865
|
+
* @returns {Object.<string,*>} Plain object
|
|
7866
|
+
*/
|
|
7867
|
+
NixChannelLatestStableResponse.toObject = function toObject(message, options) {
|
|
7868
|
+
if (!options)
|
|
7869
|
+
options = {};
|
|
7870
|
+
var object = {};
|
|
7871
|
+
if (options.defaults)
|
|
7872
|
+
object.channel = "";
|
|
7873
|
+
if (message.channel != null && message.hasOwnProperty("channel"))
|
|
7874
|
+
object.channel = message.channel;
|
|
7875
|
+
return object;
|
|
7876
|
+
};
|
|
7877
|
+
|
|
7878
|
+
/**
|
|
7879
|
+
* Converts this NixChannelLatestStableResponse to JSON.
|
|
7880
|
+
* @function toJSON
|
|
7881
|
+
* @memberof api.NixChannelLatestStableResponse
|
|
7882
|
+
* @instance
|
|
7883
|
+
* @returns {Object.<string,*>} JSON object
|
|
7884
|
+
*/
|
|
7885
|
+
NixChannelLatestStableResponse.prototype.toJSON = function toJSON() {
|
|
7886
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7887
|
+
};
|
|
7888
|
+
|
|
7889
|
+
return NixChannelLatestStableResponse;
|
|
7890
|
+
})();
|
|
7891
|
+
|
|
7892
|
+
api.NixPackageSearchRequest = (function() {
|
|
7893
|
+
|
|
7894
|
+
/**
|
|
7895
|
+
* Properties of a NixPackageSearchRequest.
|
|
7896
|
+
* @memberof api
|
|
7897
|
+
* @interface INixPackageSearchRequest
|
|
7898
|
+
* @property {string|null} [query] NixPackageSearchRequest query
|
|
7899
|
+
*/
|
|
7900
|
+
|
|
7901
|
+
/**
|
|
7902
|
+
* Constructs a new NixPackageSearchRequest.
|
|
7903
|
+
* @memberof api
|
|
7904
|
+
* @classdesc Represents a NixPackageSearchRequest.
|
|
7905
|
+
* @constructor
|
|
7906
|
+
* @param {api.INixPackageSearchRequest=} [properties] Properties to set
|
|
7907
|
+
*/
|
|
7908
|
+
function NixPackageSearchRequest(properties) {
|
|
7909
|
+
if (properties)
|
|
7910
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7911
|
+
if (properties[keys[i]] != null)
|
|
7912
|
+
this[keys[i]] = properties[keys[i]];
|
|
7913
|
+
}
|
|
7914
|
+
|
|
7915
|
+
/**
|
|
7916
|
+
* NixPackageSearchRequest query.
|
|
7917
|
+
* @member {string} query
|
|
7918
|
+
* @memberof api.NixPackageSearchRequest
|
|
7919
|
+
* @instance
|
|
7920
|
+
*/
|
|
7921
|
+
NixPackageSearchRequest.prototype.query = "";
|
|
7922
|
+
|
|
7923
|
+
/**
|
|
7924
|
+
* Creates a new NixPackageSearchRequest instance using the specified properties.
|
|
7925
|
+
* @function create
|
|
7926
|
+
* @memberof api.NixPackageSearchRequest
|
|
7927
|
+
* @static
|
|
7928
|
+
* @param {api.INixPackageSearchRequest=} [properties] Properties to set
|
|
7929
|
+
* @returns {api.NixPackageSearchRequest} NixPackageSearchRequest instance
|
|
7930
|
+
*/
|
|
7931
|
+
NixPackageSearchRequest.create = function create(properties) {
|
|
7932
|
+
return NixPackageSearchRequest.fromObject(properties);
|
|
7933
|
+
};
|
|
7934
|
+
|
|
7935
|
+
/**
|
|
7936
|
+
* Encodes the specified NixPackageSearchRequest message. Does not implicitly {@link api.NixPackageSearchRequest.verify|verify} messages.
|
|
7937
|
+
* @function encode
|
|
7938
|
+
* @memberof api.NixPackageSearchRequest
|
|
7939
|
+
* @static
|
|
7940
|
+
* @param {api.NixPackageSearchRequest} message NixPackageSearchRequest message or plain object to encode
|
|
7941
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7942
|
+
* @returns {$protobuf.Writer} Writer
|
|
7943
|
+
*/
|
|
7944
|
+
NixPackageSearchRequest.encode = function encode(message, writer) {
|
|
7945
|
+
if (!writer)
|
|
7946
|
+
writer = $Writer.create();
|
|
7947
|
+
if (message.query != null && Object.hasOwnProperty.call(message, "query"))
|
|
7948
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.query);
|
|
7949
|
+
return writer;
|
|
7950
|
+
};
|
|
7951
|
+
|
|
7952
|
+
/**
|
|
7953
|
+
* Encodes the specified NixPackageSearchRequest message, length delimited. Does not implicitly {@link api.NixPackageSearchRequest.verify|verify} messages.
|
|
7954
|
+
* @function encodeDelimited
|
|
7955
|
+
* @memberof api.NixPackageSearchRequest
|
|
7956
|
+
* @static
|
|
7957
|
+
* @param {api.NixPackageSearchRequest} message NixPackageSearchRequest message or plain object to encode
|
|
7958
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7959
|
+
* @returns {$protobuf.Writer} Writer
|
|
7960
|
+
*/
|
|
7961
|
+
NixPackageSearchRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7962
|
+
return this.encode(message, writer).ldelim();
|
|
7963
|
+
};
|
|
7964
|
+
|
|
7965
|
+
/**
|
|
7966
|
+
* Decodes a NixPackageSearchRequest message from the specified reader or buffer.
|
|
7967
|
+
* @function decode
|
|
7968
|
+
* @memberof api.NixPackageSearchRequest
|
|
7969
|
+
* @static
|
|
7970
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7971
|
+
* @param {number} [length] Message length if known beforehand
|
|
7972
|
+
* @returns {api.NixPackageSearchRequest} NixPackageSearchRequest
|
|
7973
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7974
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7975
|
+
*/
|
|
7976
|
+
NixPackageSearchRequest.decode = function decode(reader, length) {
|
|
7977
|
+
if (!(reader instanceof $Reader))
|
|
7978
|
+
reader = $Reader.create(reader);
|
|
7979
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageSearchRequest();
|
|
7980
|
+
while (reader.pos < end) {
|
|
7981
|
+
var tag = reader.uint32();
|
|
7982
|
+
switch (tag >>> 3) {
|
|
7983
|
+
case 1:
|
|
7984
|
+
message.query = reader.string();
|
|
7985
|
+
break;
|
|
7986
|
+
default:
|
|
7987
|
+
reader.skipType(tag & 7);
|
|
7988
|
+
break;
|
|
7989
|
+
}
|
|
5302
7990
|
}
|
|
5303
|
-
|
|
5304
|
-
|
|
5305
|
-
|
|
5306
|
-
|
|
7991
|
+
return message;
|
|
7992
|
+
};
|
|
7993
|
+
|
|
7994
|
+
/**
|
|
7995
|
+
* Decodes a NixPackageSearchRequest message from the specified reader or buffer, length delimited.
|
|
7996
|
+
* @function decodeDelimited
|
|
7997
|
+
* @memberof api.NixPackageSearchRequest
|
|
7998
|
+
* @static
|
|
7999
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8000
|
+
* @returns {api.NixPackageSearchRequest} NixPackageSearchRequest
|
|
8001
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8002
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8003
|
+
*/
|
|
8004
|
+
NixPackageSearchRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
8005
|
+
if (!(reader instanceof $Reader))
|
|
8006
|
+
reader = new $Reader(reader);
|
|
8007
|
+
return this.decode(reader, reader.uint32());
|
|
8008
|
+
};
|
|
8009
|
+
|
|
8010
|
+
/**
|
|
8011
|
+
* Verifies a NixPackageSearchRequest message.
|
|
8012
|
+
* @function verify
|
|
8013
|
+
* @memberof api.NixPackageSearchRequest
|
|
8014
|
+
* @static
|
|
8015
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8016
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8017
|
+
*/
|
|
8018
|
+
NixPackageSearchRequest.verify = function verify(message) {
|
|
8019
|
+
if (typeof message !== "object" || message === null)
|
|
8020
|
+
return "object expected";
|
|
8021
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
8022
|
+
if (!$util.isString(message.query))
|
|
8023
|
+
return "query: string expected";
|
|
8024
|
+
return null;
|
|
8025
|
+
};
|
|
8026
|
+
|
|
8027
|
+
/**
|
|
8028
|
+
* Creates a NixPackageSearchRequest message from a plain object. Also converts values to their respective internal types.
|
|
8029
|
+
* @function fromObject
|
|
8030
|
+
* @memberof api.NixPackageSearchRequest
|
|
8031
|
+
* @static
|
|
8032
|
+
* @param {Object.<string,*>} object Plain object
|
|
8033
|
+
* @returns {api.NixPackageSearchRequest} NixPackageSearchRequest
|
|
8034
|
+
*/
|
|
8035
|
+
NixPackageSearchRequest.fromObject = function fromObject(object) {
|
|
8036
|
+
if (object instanceof $root.api.NixPackageSearchRequest)
|
|
8037
|
+
return object;
|
|
8038
|
+
var message = new $root.api.NixPackageSearchRequest();
|
|
8039
|
+
if (object.query != null)
|
|
8040
|
+
message.query = String(object.query);
|
|
8041
|
+
return message;
|
|
8042
|
+
};
|
|
8043
|
+
|
|
8044
|
+
/**
|
|
8045
|
+
* Creates a plain object from a NixPackageSearchRequest message. Also converts values to other types if specified.
|
|
8046
|
+
* @function toObject
|
|
8047
|
+
* @memberof api.NixPackageSearchRequest
|
|
8048
|
+
* @static
|
|
8049
|
+
* @param {api.NixPackageSearchRequest} message NixPackageSearchRequest
|
|
8050
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8051
|
+
* @returns {Object.<string,*>} Plain object
|
|
8052
|
+
*/
|
|
8053
|
+
NixPackageSearchRequest.toObject = function toObject(message, options) {
|
|
8054
|
+
if (!options)
|
|
8055
|
+
options = {};
|
|
8056
|
+
var object = {};
|
|
8057
|
+
if (options.defaults)
|
|
8058
|
+
object.query = "";
|
|
8059
|
+
if (message.query != null && message.hasOwnProperty("query"))
|
|
8060
|
+
object.query = message.query;
|
|
8061
|
+
return object;
|
|
8062
|
+
};
|
|
8063
|
+
|
|
8064
|
+
/**
|
|
8065
|
+
* Converts this NixPackageSearchRequest to JSON.
|
|
8066
|
+
* @function toJSON
|
|
8067
|
+
* @memberof api.NixPackageSearchRequest
|
|
8068
|
+
* @instance
|
|
8069
|
+
* @returns {Object.<string,*>} JSON object
|
|
8070
|
+
*/
|
|
8071
|
+
NixPackageSearchRequest.prototype.toJSON = function toJSON() {
|
|
8072
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8073
|
+
};
|
|
8074
|
+
|
|
8075
|
+
return NixPackageSearchRequest;
|
|
8076
|
+
})();
|
|
8077
|
+
|
|
8078
|
+
api.NixPackageSearchResponse = (function() {
|
|
8079
|
+
|
|
8080
|
+
/**
|
|
8081
|
+
* Properties of a NixPackageSearchResponse.
|
|
8082
|
+
* @memberof api
|
|
8083
|
+
* @interface INixPackageSearchResponse
|
|
8084
|
+
* @property {Array.<api.NixPackage|api.INixPackage>|null} [packages] NixPackageSearchResponse packages
|
|
8085
|
+
*/
|
|
8086
|
+
|
|
8087
|
+
/**
|
|
8088
|
+
* Constructs a new NixPackageSearchResponse.
|
|
8089
|
+
* @memberof api
|
|
8090
|
+
* @classdesc Represents a NixPackageSearchResponse.
|
|
8091
|
+
* @constructor
|
|
8092
|
+
* @param {api.INixPackageSearchResponse=} [properties] Properties to set
|
|
8093
|
+
*/
|
|
8094
|
+
function NixPackageSearchResponse(properties) {
|
|
8095
|
+
this.packages = [];
|
|
8096
|
+
if (properties)
|
|
8097
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8098
|
+
if (properties[keys[i]] != null)
|
|
8099
|
+
this[keys[i]] = properties[keys[i]];
|
|
8100
|
+
}
|
|
8101
|
+
|
|
8102
|
+
/**
|
|
8103
|
+
* NixPackageSearchResponse packages.
|
|
8104
|
+
* @member {Array.<api.NixPackage>} packages
|
|
8105
|
+
* @memberof api.NixPackageSearchResponse
|
|
8106
|
+
* @instance
|
|
8107
|
+
*/
|
|
8108
|
+
NixPackageSearchResponse.prototype.packages = $util.emptyArray;
|
|
8109
|
+
|
|
8110
|
+
/**
|
|
8111
|
+
* Creates a new NixPackageSearchResponse instance using the specified properties.
|
|
8112
|
+
* @function create
|
|
8113
|
+
* @memberof api.NixPackageSearchResponse
|
|
8114
|
+
* @static
|
|
8115
|
+
* @param {api.INixPackageSearchResponse=} [properties] Properties to set
|
|
8116
|
+
* @returns {api.NixPackageSearchResponse} NixPackageSearchResponse instance
|
|
8117
|
+
*/
|
|
8118
|
+
NixPackageSearchResponse.create = function create(properties) {
|
|
8119
|
+
return NixPackageSearchResponse.fromObject(properties);
|
|
8120
|
+
};
|
|
8121
|
+
|
|
8122
|
+
/**
|
|
8123
|
+
* Encodes the specified NixPackageSearchResponse message. Does not implicitly {@link api.NixPackageSearchResponse.verify|verify} messages.
|
|
8124
|
+
* @function encode
|
|
8125
|
+
* @memberof api.NixPackageSearchResponse
|
|
8126
|
+
* @static
|
|
8127
|
+
* @param {api.NixPackageSearchResponse} message NixPackageSearchResponse message or plain object to encode
|
|
8128
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8129
|
+
* @returns {$protobuf.Writer} Writer
|
|
8130
|
+
*/
|
|
8131
|
+
NixPackageSearchResponse.encode = function encode(message, writer) {
|
|
8132
|
+
if (!writer)
|
|
8133
|
+
writer = $Writer.create();
|
|
8134
|
+
if (message.packages != null && message.packages.length)
|
|
8135
|
+
for (var i = 0; i < message.packages.length; ++i)
|
|
8136
|
+
$root.api.NixPackage.encode(message.packages[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
8137
|
+
return writer;
|
|
8138
|
+
};
|
|
8139
|
+
|
|
8140
|
+
/**
|
|
8141
|
+
* Encodes the specified NixPackageSearchResponse message, length delimited. Does not implicitly {@link api.NixPackageSearchResponse.verify|verify} messages.
|
|
8142
|
+
* @function encodeDelimited
|
|
8143
|
+
* @memberof api.NixPackageSearchResponse
|
|
8144
|
+
* @static
|
|
8145
|
+
* @param {api.NixPackageSearchResponse} message NixPackageSearchResponse message or plain object to encode
|
|
8146
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8147
|
+
* @returns {$protobuf.Writer} Writer
|
|
8148
|
+
*/
|
|
8149
|
+
NixPackageSearchResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8150
|
+
return this.encode(message, writer).ldelim();
|
|
8151
|
+
};
|
|
8152
|
+
|
|
8153
|
+
/**
|
|
8154
|
+
* Decodes a NixPackageSearchResponse message from the specified reader or buffer.
|
|
8155
|
+
* @function decode
|
|
8156
|
+
* @memberof api.NixPackageSearchResponse
|
|
8157
|
+
* @static
|
|
8158
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8159
|
+
* @param {number} [length] Message length if known beforehand
|
|
8160
|
+
* @returns {api.NixPackageSearchResponse} NixPackageSearchResponse
|
|
8161
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8162
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8163
|
+
*/
|
|
8164
|
+
NixPackageSearchResponse.decode = function decode(reader, length) {
|
|
8165
|
+
if (!(reader instanceof $Reader))
|
|
8166
|
+
reader = $Reader.create(reader);
|
|
8167
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.NixPackageSearchResponse();
|
|
8168
|
+
while (reader.pos < end) {
|
|
8169
|
+
var tag = reader.uint32();
|
|
8170
|
+
switch (tag >>> 3) {
|
|
8171
|
+
case 1:
|
|
8172
|
+
if (!(message.packages && message.packages.length))
|
|
8173
|
+
message.packages = [];
|
|
8174
|
+
message.packages.push($root.api.NixPackage.decode(reader, reader.uint32()));
|
|
8175
|
+
break;
|
|
8176
|
+
default:
|
|
8177
|
+
reader.skipType(tag & 7);
|
|
8178
|
+
break;
|
|
8179
|
+
}
|
|
5307
8180
|
}
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
8181
|
+
return message;
|
|
8182
|
+
};
|
|
8183
|
+
|
|
8184
|
+
/**
|
|
8185
|
+
* Decodes a NixPackageSearchResponse message from the specified reader or buffer, length delimited.
|
|
8186
|
+
* @function decodeDelimited
|
|
8187
|
+
* @memberof api.NixPackageSearchResponse
|
|
8188
|
+
* @static
|
|
8189
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8190
|
+
* @returns {api.NixPackageSearchResponse} NixPackageSearchResponse
|
|
8191
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8192
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8193
|
+
*/
|
|
8194
|
+
NixPackageSearchResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
8195
|
+
if (!(reader instanceof $Reader))
|
|
8196
|
+
reader = new $Reader(reader);
|
|
8197
|
+
return this.decode(reader, reader.uint32());
|
|
8198
|
+
};
|
|
8199
|
+
|
|
8200
|
+
/**
|
|
8201
|
+
* Verifies a NixPackageSearchResponse message.
|
|
8202
|
+
* @function verify
|
|
8203
|
+
* @memberof api.NixPackageSearchResponse
|
|
8204
|
+
* @static
|
|
8205
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8206
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8207
|
+
*/
|
|
8208
|
+
NixPackageSearchResponse.verify = function verify(message) {
|
|
8209
|
+
if (typeof message !== "object" || message === null)
|
|
8210
|
+
return "object expected";
|
|
8211
|
+
if (message.packages != null && message.hasOwnProperty("packages")) {
|
|
8212
|
+
if (!Array.isArray(message.packages))
|
|
8213
|
+
return "packages: array expected";
|
|
8214
|
+
for (var i = 0; i < message.packages.length; ++i) {
|
|
8215
|
+
var error = $root.api.NixPackage.verify(message.packages[i]);
|
|
8216
|
+
if (error)
|
|
8217
|
+
return "packages." + error;
|
|
8218
|
+
}
|
|
5312
8219
|
}
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
|
|
5316
|
-
|
|
8220
|
+
return null;
|
|
8221
|
+
};
|
|
8222
|
+
|
|
8223
|
+
/**
|
|
8224
|
+
* Creates a NixPackageSearchResponse message from a plain object. Also converts values to their respective internal types.
|
|
8225
|
+
* @function fromObject
|
|
8226
|
+
* @memberof api.NixPackageSearchResponse
|
|
8227
|
+
* @static
|
|
8228
|
+
* @param {Object.<string,*>} object Plain object
|
|
8229
|
+
* @returns {api.NixPackageSearchResponse} NixPackageSearchResponse
|
|
8230
|
+
*/
|
|
8231
|
+
NixPackageSearchResponse.fromObject = function fromObject(object) {
|
|
8232
|
+
if (object instanceof $root.api.NixPackageSearchResponse)
|
|
8233
|
+
return object;
|
|
8234
|
+
var message = new $root.api.NixPackageSearchResponse();
|
|
8235
|
+
if (object.packages) {
|
|
8236
|
+
if (!Array.isArray(object.packages))
|
|
8237
|
+
throw TypeError(".api.NixPackageSearchResponse.packages: array expected");
|
|
8238
|
+
message.packages = [];
|
|
8239
|
+
for (var i = 0; i < object.packages.length; ++i) {
|
|
8240
|
+
if (typeof object.packages[i] !== "object")
|
|
8241
|
+
throw TypeError(".api.NixPackageSearchResponse.packages: object expected");
|
|
8242
|
+
message.packages[i] = $root.api.NixPackage.fromObject(object.packages[i]);
|
|
8243
|
+
}
|
|
5317
8244
|
}
|
|
5318
|
-
|
|
5319
|
-
|
|
5320
|
-
|
|
5321
|
-
|
|
5322
|
-
|
|
5323
|
-
|
|
5324
|
-
|
|
8245
|
+
return message;
|
|
8246
|
+
};
|
|
8247
|
+
|
|
8248
|
+
/**
|
|
8249
|
+
* Creates a plain object from a NixPackageSearchResponse message. Also converts values to other types if specified.
|
|
8250
|
+
* @function toObject
|
|
8251
|
+
* @memberof api.NixPackageSearchResponse
|
|
8252
|
+
* @static
|
|
8253
|
+
* @param {api.NixPackageSearchResponse} message NixPackageSearchResponse
|
|
8254
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8255
|
+
* @returns {Object.<string,*>} Plain object
|
|
8256
|
+
*/
|
|
8257
|
+
NixPackageSearchResponse.toObject = function toObject(message, options) {
|
|
8258
|
+
if (!options)
|
|
8259
|
+
options = {};
|
|
8260
|
+
var object = {};
|
|
8261
|
+
if (options.arrays || options.defaults)
|
|
8262
|
+
object.packages = [];
|
|
8263
|
+
if (message.packages && message.packages.length) {
|
|
8264
|
+
object.packages = [];
|
|
8265
|
+
for (var j = 0; j < message.packages.length; ++j)
|
|
8266
|
+
object.packages[j] = $root.api.NixPackage.toObject(message.packages[j], options);
|
|
5325
8267
|
}
|
|
5326
8268
|
return object;
|
|
5327
8269
|
};
|
|
5328
8270
|
|
|
5329
8271
|
/**
|
|
5330
|
-
* Converts this
|
|
8272
|
+
* Converts this NixPackageSearchResponse to JSON.
|
|
5331
8273
|
* @function toJSON
|
|
5332
|
-
* @memberof api.
|
|
8274
|
+
* @memberof api.NixPackageSearchResponse
|
|
5333
8275
|
* @instance
|
|
5334
8276
|
* @returns {Object.<string,*>} JSON object
|
|
5335
8277
|
*/
|
|
5336
|
-
|
|
8278
|
+
NixPackageSearchResponse.prototype.toJSON = function toJSON() {
|
|
5337
8279
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
5338
8280
|
};
|
|
5339
8281
|
|
|
5340
|
-
return
|
|
8282
|
+
return NixPackageSearchResponse;
|
|
5341
8283
|
})();
|
|
5342
8284
|
|
|
5343
8285
|
api.StartLSP = (function() {
|
|
@@ -35696,6 +38638,7 @@
|
|
|
35696
38638
|
* @property {api.HostingConfig|api.IHostingConfig|null} [hosting] DotReplit hosting
|
|
35697
38639
|
* @property {Object.<string,string>|null} [env] DotReplit env
|
|
35698
38640
|
* @property {api.GitHubImportConfig|api.IGitHubImportConfig|null} [gitHubImport] DotReplit gitHubImport
|
|
38641
|
+
* @property {api.AuthConfig|api.IAuthConfig|null} [auth] DotReplit auth
|
|
35699
38642
|
*/
|
|
35700
38643
|
|
|
35701
38644
|
/**
|
|
@@ -35843,6 +38786,14 @@
|
|
|
35843
38786
|
*/
|
|
35844
38787
|
DotReplit.prototype.gitHubImport = null;
|
|
35845
38788
|
|
|
38789
|
+
/**
|
|
38790
|
+
* DotReplit auth.
|
|
38791
|
+
* @member {api.AuthConfig|null|undefined} auth
|
|
38792
|
+
* @memberof api.DotReplit
|
|
38793
|
+
* @instance
|
|
38794
|
+
*/
|
|
38795
|
+
DotReplit.prototype.auth = null;
|
|
38796
|
+
|
|
35846
38797
|
/**
|
|
35847
38798
|
* Creates a new DotReplit instance using the specified properties.
|
|
35848
38799
|
* @function create
|
|
@@ -35904,6 +38855,8 @@
|
|
|
35904
38855
|
writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.env[keys[i]]).ldelim();
|
|
35905
38856
|
if (message.gitHubImport != null && Object.hasOwnProperty.call(message, "gitHubImport"))
|
|
35906
38857
|
$root.api.GitHubImportConfig.encode(message.gitHubImport, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
|
|
38858
|
+
if (message.auth != null && Object.hasOwnProperty.call(message, "auth"))
|
|
38859
|
+
$root.api.AuthConfig.encode(message.auth, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
35907
38860
|
return writer;
|
|
35908
38861
|
};
|
|
35909
38862
|
|
|
@@ -36026,6 +38979,9 @@
|
|
|
36026
38979
|
case 16:
|
|
36027
38980
|
message.gitHubImport = $root.api.GitHubImportConfig.decode(reader, reader.uint32());
|
|
36028
38981
|
break;
|
|
38982
|
+
case 17:
|
|
38983
|
+
message.auth = $root.api.AuthConfig.decode(reader, reader.uint32());
|
|
38984
|
+
break;
|
|
36029
38985
|
default:
|
|
36030
38986
|
reader.skipType(tag & 7);
|
|
36031
38987
|
break;
|
|
@@ -36145,6 +39101,11 @@
|
|
|
36145
39101
|
if (error)
|
|
36146
39102
|
return "gitHubImport." + error;
|
|
36147
39103
|
}
|
|
39104
|
+
if (message.auth != null && message.hasOwnProperty("auth")) {
|
|
39105
|
+
var error = $root.api.AuthConfig.verify(message.auth);
|
|
39106
|
+
if (error)
|
|
39107
|
+
return "auth." + error;
|
|
39108
|
+
}
|
|
36148
39109
|
return null;
|
|
36149
39110
|
};
|
|
36150
39111
|
|
|
@@ -36240,6 +39201,11 @@
|
|
|
36240
39201
|
throw TypeError(".api.DotReplit.gitHubImport: object expected");
|
|
36241
39202
|
message.gitHubImport = $root.api.GitHubImportConfig.fromObject(object.gitHubImport);
|
|
36242
39203
|
}
|
|
39204
|
+
if (object.auth != null) {
|
|
39205
|
+
if (typeof object.auth !== "object")
|
|
39206
|
+
throw TypeError(".api.DotReplit.auth: object expected");
|
|
39207
|
+
message.auth = $root.api.AuthConfig.fromObject(object.auth);
|
|
39208
|
+
}
|
|
36243
39209
|
return message;
|
|
36244
39210
|
};
|
|
36245
39211
|
|
|
@@ -36276,6 +39242,7 @@
|
|
|
36276
39242
|
object.audio = false;
|
|
36277
39243
|
object.hosting = null;
|
|
36278
39244
|
object.gitHubImport = null;
|
|
39245
|
+
object.auth = null;
|
|
36279
39246
|
}
|
|
36280
39247
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
36281
39248
|
object.run = $root.api.Exec.toObject(message.run, options);
|
|
@@ -36319,6 +39286,8 @@
|
|
|
36319
39286
|
}
|
|
36320
39287
|
if (message.gitHubImport != null && message.hasOwnProperty("gitHubImport"))
|
|
36321
39288
|
object.gitHubImport = $root.api.GitHubImportConfig.toObject(message.gitHubImport, options);
|
|
39289
|
+
if (message.auth != null && message.hasOwnProperty("auth"))
|
|
39290
|
+
object.auth = $root.api.AuthConfig.toObject(message.auth, options);
|
|
36322
39291
|
return object;
|
|
36323
39292
|
};
|
|
36324
39293
|
|
|
@@ -36933,6 +39902,192 @@
|
|
|
36933
39902
|
return HostingConfig;
|
|
36934
39903
|
})();
|
|
36935
39904
|
|
|
39905
|
+
api.AuthConfig = (function() {
|
|
39906
|
+
|
|
39907
|
+
/**
|
|
39908
|
+
* Properties of an AuthConfig.
|
|
39909
|
+
* @memberof api
|
|
39910
|
+
* @interface IAuthConfig
|
|
39911
|
+
* @property {boolean|null} [enabled] AuthConfig enabled
|
|
39912
|
+
*/
|
|
39913
|
+
|
|
39914
|
+
/**
|
|
39915
|
+
* Constructs a new AuthConfig.
|
|
39916
|
+
* @memberof api
|
|
39917
|
+
* @classdesc Represents an AuthConfig.
|
|
39918
|
+
* @constructor
|
|
39919
|
+
* @param {api.IAuthConfig=} [properties] Properties to set
|
|
39920
|
+
*/
|
|
39921
|
+
function AuthConfig(properties) {
|
|
39922
|
+
if (properties)
|
|
39923
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
39924
|
+
if (properties[keys[i]] != null)
|
|
39925
|
+
this[keys[i]] = properties[keys[i]];
|
|
39926
|
+
}
|
|
39927
|
+
|
|
39928
|
+
/**
|
|
39929
|
+
* AuthConfig enabled.
|
|
39930
|
+
* @member {boolean} enabled
|
|
39931
|
+
* @memberof api.AuthConfig
|
|
39932
|
+
* @instance
|
|
39933
|
+
*/
|
|
39934
|
+
AuthConfig.prototype.enabled = false;
|
|
39935
|
+
|
|
39936
|
+
/**
|
|
39937
|
+
* Creates a new AuthConfig instance using the specified properties.
|
|
39938
|
+
* @function create
|
|
39939
|
+
* @memberof api.AuthConfig
|
|
39940
|
+
* @static
|
|
39941
|
+
* @param {api.IAuthConfig=} [properties] Properties to set
|
|
39942
|
+
* @returns {api.AuthConfig} AuthConfig instance
|
|
39943
|
+
*/
|
|
39944
|
+
AuthConfig.create = function create(properties) {
|
|
39945
|
+
return AuthConfig.fromObject(properties);
|
|
39946
|
+
};
|
|
39947
|
+
|
|
39948
|
+
/**
|
|
39949
|
+
* Encodes the specified AuthConfig message. Does not implicitly {@link api.AuthConfig.verify|verify} messages.
|
|
39950
|
+
* @function encode
|
|
39951
|
+
* @memberof api.AuthConfig
|
|
39952
|
+
* @static
|
|
39953
|
+
* @param {api.AuthConfig} message AuthConfig message or plain object to encode
|
|
39954
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39955
|
+
* @returns {$protobuf.Writer} Writer
|
|
39956
|
+
*/
|
|
39957
|
+
AuthConfig.encode = function encode(message, writer) {
|
|
39958
|
+
if (!writer)
|
|
39959
|
+
writer = $Writer.create();
|
|
39960
|
+
if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled"))
|
|
39961
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled);
|
|
39962
|
+
return writer;
|
|
39963
|
+
};
|
|
39964
|
+
|
|
39965
|
+
/**
|
|
39966
|
+
* Encodes the specified AuthConfig message, length delimited. Does not implicitly {@link api.AuthConfig.verify|verify} messages.
|
|
39967
|
+
* @function encodeDelimited
|
|
39968
|
+
* @memberof api.AuthConfig
|
|
39969
|
+
* @static
|
|
39970
|
+
* @param {api.AuthConfig} message AuthConfig message or plain object to encode
|
|
39971
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
39972
|
+
* @returns {$protobuf.Writer} Writer
|
|
39973
|
+
*/
|
|
39974
|
+
AuthConfig.encodeDelimited = function encodeDelimited(message, writer) {
|
|
39975
|
+
return this.encode(message, writer).ldelim();
|
|
39976
|
+
};
|
|
39977
|
+
|
|
39978
|
+
/**
|
|
39979
|
+
* Decodes an AuthConfig message from the specified reader or buffer.
|
|
39980
|
+
* @function decode
|
|
39981
|
+
* @memberof api.AuthConfig
|
|
39982
|
+
* @static
|
|
39983
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
39984
|
+
* @param {number} [length] Message length if known beforehand
|
|
39985
|
+
* @returns {api.AuthConfig} AuthConfig
|
|
39986
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
39987
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
39988
|
+
*/
|
|
39989
|
+
AuthConfig.decode = function decode(reader, length) {
|
|
39990
|
+
if (!(reader instanceof $Reader))
|
|
39991
|
+
reader = $Reader.create(reader);
|
|
39992
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.AuthConfig();
|
|
39993
|
+
while (reader.pos < end) {
|
|
39994
|
+
var tag = reader.uint32();
|
|
39995
|
+
switch (tag >>> 3) {
|
|
39996
|
+
case 1:
|
|
39997
|
+
message.enabled = reader.bool();
|
|
39998
|
+
break;
|
|
39999
|
+
default:
|
|
40000
|
+
reader.skipType(tag & 7);
|
|
40001
|
+
break;
|
|
40002
|
+
}
|
|
40003
|
+
}
|
|
40004
|
+
return message;
|
|
40005
|
+
};
|
|
40006
|
+
|
|
40007
|
+
/**
|
|
40008
|
+
* Decodes an AuthConfig message from the specified reader or buffer, length delimited.
|
|
40009
|
+
* @function decodeDelimited
|
|
40010
|
+
* @memberof api.AuthConfig
|
|
40011
|
+
* @static
|
|
40012
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
40013
|
+
* @returns {api.AuthConfig} AuthConfig
|
|
40014
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
40015
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
40016
|
+
*/
|
|
40017
|
+
AuthConfig.decodeDelimited = function decodeDelimited(reader) {
|
|
40018
|
+
if (!(reader instanceof $Reader))
|
|
40019
|
+
reader = new $Reader(reader);
|
|
40020
|
+
return this.decode(reader, reader.uint32());
|
|
40021
|
+
};
|
|
40022
|
+
|
|
40023
|
+
/**
|
|
40024
|
+
* Verifies an AuthConfig message.
|
|
40025
|
+
* @function verify
|
|
40026
|
+
* @memberof api.AuthConfig
|
|
40027
|
+
* @static
|
|
40028
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
40029
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
40030
|
+
*/
|
|
40031
|
+
AuthConfig.verify = function verify(message) {
|
|
40032
|
+
if (typeof message !== "object" || message === null)
|
|
40033
|
+
return "object expected";
|
|
40034
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
40035
|
+
if (typeof message.enabled !== "boolean")
|
|
40036
|
+
return "enabled: boolean expected";
|
|
40037
|
+
return null;
|
|
40038
|
+
};
|
|
40039
|
+
|
|
40040
|
+
/**
|
|
40041
|
+
* Creates an AuthConfig message from a plain object. Also converts values to their respective internal types.
|
|
40042
|
+
* @function fromObject
|
|
40043
|
+
* @memberof api.AuthConfig
|
|
40044
|
+
* @static
|
|
40045
|
+
* @param {Object.<string,*>} object Plain object
|
|
40046
|
+
* @returns {api.AuthConfig} AuthConfig
|
|
40047
|
+
*/
|
|
40048
|
+
AuthConfig.fromObject = function fromObject(object) {
|
|
40049
|
+
if (object instanceof $root.api.AuthConfig)
|
|
40050
|
+
return object;
|
|
40051
|
+
var message = new $root.api.AuthConfig();
|
|
40052
|
+
if (object.enabled != null)
|
|
40053
|
+
message.enabled = Boolean(object.enabled);
|
|
40054
|
+
return message;
|
|
40055
|
+
};
|
|
40056
|
+
|
|
40057
|
+
/**
|
|
40058
|
+
* Creates a plain object from an AuthConfig message. Also converts values to other types if specified.
|
|
40059
|
+
* @function toObject
|
|
40060
|
+
* @memberof api.AuthConfig
|
|
40061
|
+
* @static
|
|
40062
|
+
* @param {api.AuthConfig} message AuthConfig
|
|
40063
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
40064
|
+
* @returns {Object.<string,*>} Plain object
|
|
40065
|
+
*/
|
|
40066
|
+
AuthConfig.toObject = function toObject(message, options) {
|
|
40067
|
+
if (!options)
|
|
40068
|
+
options = {};
|
|
40069
|
+
var object = {};
|
|
40070
|
+
if (options.defaults)
|
|
40071
|
+
object.enabled = false;
|
|
40072
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
40073
|
+
object.enabled = message.enabled;
|
|
40074
|
+
return object;
|
|
40075
|
+
};
|
|
40076
|
+
|
|
40077
|
+
/**
|
|
40078
|
+
* Converts this AuthConfig to JSON.
|
|
40079
|
+
* @function toJSON
|
|
40080
|
+
* @memberof api.AuthConfig
|
|
40081
|
+
* @instance
|
|
40082
|
+
* @returns {Object.<string,*>} JSON object
|
|
40083
|
+
*/
|
|
40084
|
+
AuthConfig.prototype.toJSON = function toJSON() {
|
|
40085
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
40086
|
+
};
|
|
40087
|
+
|
|
40088
|
+
return AuthConfig;
|
|
40089
|
+
})();
|
|
40090
|
+
|
|
36936
40091
|
api.DotReplitInterp = (function() {
|
|
36937
40092
|
|
|
36938
40093
|
/**
|
|
@@ -44961,6 +48116,7 @@
|
|
|
44961
48116
|
* @property {string|null} [user] GovalReplIdentity user
|
|
44962
48117
|
* @property {string|null} [slug] GovalReplIdentity slug
|
|
44963
48118
|
* @property {string|null} [aud] GovalReplIdentity aud
|
|
48119
|
+
* @property {boolean|null} [ephemeral] GovalReplIdentity ephemeral
|
|
44964
48120
|
*/
|
|
44965
48121
|
|
|
44966
48122
|
/**
|
|
@@ -45009,6 +48165,14 @@
|
|
|
45009
48165
|
*/
|
|
45010
48166
|
GovalReplIdentity.prototype.aud = "";
|
|
45011
48167
|
|
|
48168
|
+
/**
|
|
48169
|
+
* GovalReplIdentity ephemeral.
|
|
48170
|
+
* @member {boolean} ephemeral
|
|
48171
|
+
* @memberof api.GovalReplIdentity
|
|
48172
|
+
* @instance
|
|
48173
|
+
*/
|
|
48174
|
+
GovalReplIdentity.prototype.ephemeral = false;
|
|
48175
|
+
|
|
45012
48176
|
/**
|
|
45013
48177
|
* Creates a new GovalReplIdentity instance using the specified properties.
|
|
45014
48178
|
* @function create
|
|
@@ -45041,6 +48205,8 @@
|
|
|
45041
48205
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
|
|
45042
48206
|
if (message.aud != null && Object.hasOwnProperty.call(message, "aud"))
|
|
45043
48207
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.aud);
|
|
48208
|
+
if (message.ephemeral != null && Object.hasOwnProperty.call(message, "ephemeral"))
|
|
48209
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ephemeral);
|
|
45044
48210
|
return writer;
|
|
45045
48211
|
};
|
|
45046
48212
|
|
|
@@ -45087,6 +48253,9 @@
|
|
|
45087
48253
|
case 4:
|
|
45088
48254
|
message.aud = reader.string();
|
|
45089
48255
|
break;
|
|
48256
|
+
case 5:
|
|
48257
|
+
message.ephemeral = reader.bool();
|
|
48258
|
+
break;
|
|
45090
48259
|
default:
|
|
45091
48260
|
reader.skipType(tag & 7);
|
|
45092
48261
|
break;
|
|
@@ -45134,6 +48303,9 @@
|
|
|
45134
48303
|
if (message.aud != null && message.hasOwnProperty("aud"))
|
|
45135
48304
|
if (!$util.isString(message.aud))
|
|
45136
48305
|
return "aud: string expected";
|
|
48306
|
+
if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
|
|
48307
|
+
if (typeof message.ephemeral !== "boolean")
|
|
48308
|
+
return "ephemeral: boolean expected";
|
|
45137
48309
|
return null;
|
|
45138
48310
|
};
|
|
45139
48311
|
|
|
@@ -45157,6 +48329,8 @@
|
|
|
45157
48329
|
message.slug = String(object.slug);
|
|
45158
48330
|
if (object.aud != null)
|
|
45159
48331
|
message.aud = String(object.aud);
|
|
48332
|
+
if (object.ephemeral != null)
|
|
48333
|
+
message.ephemeral = Boolean(object.ephemeral);
|
|
45160
48334
|
return message;
|
|
45161
48335
|
};
|
|
45162
48336
|
|
|
@@ -45178,6 +48352,7 @@
|
|
|
45178
48352
|
object.user = "";
|
|
45179
48353
|
object.slug = "";
|
|
45180
48354
|
object.aud = "";
|
|
48355
|
+
object.ephemeral = false;
|
|
45181
48356
|
}
|
|
45182
48357
|
if (message.replid != null && message.hasOwnProperty("replid"))
|
|
45183
48358
|
object.replid = message.replid;
|
|
@@ -45187,6 +48362,8 @@
|
|
|
45187
48362
|
object.slug = message.slug;
|
|
45188
48363
|
if (message.aud != null && message.hasOwnProperty("aud"))
|
|
45189
48364
|
object.aud = message.aud;
|
|
48365
|
+
if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
|
|
48366
|
+
object.ephemeral = message.ephemeral;
|
|
45190
48367
|
return object;
|
|
45191
48368
|
};
|
|
45192
48369
|
|