@replit/protocol 0.2.61 → 0.2.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/main/index.js CHANGED
@@ -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) {
@@ -5290,54 +5638,2648 @@
5290
5638
  if (options.oneofs)
5291
5639
  object.body = "runConfigGetRequest";
5292
5640
  }
5293
- if (message.runConfigGetResponse != null && message.hasOwnProperty("runConfigGetResponse")) {
5294
- object.runConfigGetResponse = $root.api.RunConfigGetResponse.toObject(message.runConfigGetResponse, options);
5295
- if (options.oneofs)
5296
- object.body = "runConfigGetResponse";
5641
+ if (message.runConfigGetResponse != null && message.hasOwnProperty("runConfigGetResponse")) {
5642
+ object.runConfigGetResponse = $root.api.RunConfigGetResponse.toObject(message.runConfigGetResponse, options);
5643
+ if (options.oneofs)
5644
+ object.body = "runConfigGetResponse";
5645
+ }
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
+ }
5297
7804
  }
5298
- if (message.NoninteractiveFSChangeEvent != null && message.hasOwnProperty("NoninteractiveFSChangeEvent")) {
5299
- object.NoninteractiveFSChangeEvent = message.NoninteractiveFSChangeEvent;
5300
- if (options.oneofs)
5301
- object.body = "NoninteractiveFSChangeEvent";
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
- if (message.firewallDenied != null && message.hasOwnProperty("firewallDenied")) {
5304
- object.firewallDenied = $root.api.FirewallDenied.toObject(message.firewallDenied, options);
5305
- if (options.oneofs)
5306
- object.body = "firewallDenied";
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
- if (message.dotReplitUpdateRequest != null && message.hasOwnProperty("dotReplitUpdateRequest")) {
5309
- object.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.toObject(message.dotReplitUpdateRequest, options);
5310
- if (options.oneofs)
5311
- object.body = "dotReplitUpdateRequest";
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
- if (message.dotReplitUpdateResponse != null && message.hasOwnProperty("dotReplitUpdateResponse")) {
5314
- object.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.toObject(message.dotReplitUpdateResponse, options);
5315
- if (options.oneofs)
5316
- object.body = "dotReplitUpdateResponse";
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
- if (message.ref != null && message.hasOwnProperty("ref"))
5319
- object.ref = message.ref;
5320
- var keys2;
5321
- if (message.traceInfo && (keys2 = Object.keys(message.traceInfo)).length) {
5322
- object.traceInfo = {};
5323
- for (var j = 0; j < keys2.length; ++j)
5324
- object.traceInfo[keys2[j]] = message.traceInfo[keys2[j]];
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 Command to JSON.
8272
+ * Converts this NixPackageSearchResponse to JSON.
5331
8273
  * @function toJSON
5332
- * @memberof api.Command
8274
+ * @memberof api.NixPackageSearchResponse
5333
8275
  * @instance
5334
8276
  * @returns {Object.<string,*>} JSON object
5335
8277
  */
5336
- Command.prototype.toJSON = function toJSON() {
8278
+ NixPackageSearchResponse.prototype.toJSON = function toJSON() {
5337
8279
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
5338
8280
  };
5339
8281
 
5340
- return Command;
8282
+ return NixPackageSearchResponse;
5341
8283
  })();
5342
8284
 
5343
8285
  api.StartLSP = (function() {
@@ -35697,6 +38639,9 @@
35697
38639
  * @property {Object.<string,string>|null} [env] DotReplit env
35698
38640
  * @property {api.GitHubImportConfig|api.IGitHubImportConfig|null} [gitHubImport] DotReplit gitHubImport
35699
38641
  * @property {api.AuthConfig|api.IAuthConfig|null} [auth] DotReplit auth
38642
+ * @property {Array.<api.DotReplitHint|api.IDotReplitHint>|null} [hintsList] DotReplit hintsList
38643
+ * @property {Array.<api.DotReplitPort|api.IDotReplitPort>|null} [ports] DotReplit ports
38644
+ * @property {Array.<api.DotReplitEnvVar|api.IDotReplitEnvVar>|null} [orderedEnv] DotReplit orderedEnv
35700
38645
  */
35701
38646
 
35702
38647
  /**
@@ -35710,6 +38655,9 @@
35710
38655
  this.languages = {};
35711
38656
  this.hidden = [];
35712
38657
  this.env = {};
38658
+ this.hintsList = [];
38659
+ this.ports = [];
38660
+ this.orderedEnv = [];
35713
38661
  if (properties)
35714
38662
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
35715
38663
  if (properties[keys[i]] != null)
@@ -35852,6 +38800,30 @@
35852
38800
  */
35853
38801
  DotReplit.prototype.auth = null;
35854
38802
 
38803
+ /**
38804
+ * DotReplit hintsList.
38805
+ * @member {Array.<api.DotReplitHint>} hintsList
38806
+ * @memberof api.DotReplit
38807
+ * @instance
38808
+ */
38809
+ DotReplit.prototype.hintsList = $util.emptyArray;
38810
+
38811
+ /**
38812
+ * DotReplit ports.
38813
+ * @member {Array.<api.DotReplitPort>} ports
38814
+ * @memberof api.DotReplit
38815
+ * @instance
38816
+ */
38817
+ DotReplit.prototype.ports = $util.emptyArray;
38818
+
38819
+ /**
38820
+ * DotReplit orderedEnv.
38821
+ * @member {Array.<api.DotReplitEnvVar>} orderedEnv
38822
+ * @memberof api.DotReplit
38823
+ * @instance
38824
+ */
38825
+ DotReplit.prototype.orderedEnv = $util.emptyArray;
38826
+
35855
38827
  /**
35856
38828
  * Creates a new DotReplit instance using the specified properties.
35857
38829
  * @function create
@@ -35915,6 +38887,15 @@
35915
38887
  $root.api.GitHubImportConfig.encode(message.gitHubImport, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim();
35916
38888
  if (message.auth != null && Object.hasOwnProperty.call(message, "auth"))
35917
38889
  $root.api.AuthConfig.encode(message.auth, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
38890
+ if (message.hintsList != null && message.hintsList.length)
38891
+ for (var i = 0; i < message.hintsList.length; ++i)
38892
+ $root.api.DotReplitHint.encode(message.hintsList[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
38893
+ if (message.ports != null && message.ports.length)
38894
+ for (var i = 0; i < message.ports.length; ++i)
38895
+ $root.api.DotReplitPort.encode(message.ports[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
38896
+ if (message.orderedEnv != null && message.orderedEnv.length)
38897
+ for (var i = 0; i < message.orderedEnv.length; ++i)
38898
+ $root.api.DotReplitEnvVar.encode(message.orderedEnv[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim();
35918
38899
  return writer;
35919
38900
  };
35920
38901
 
@@ -36040,6 +39021,21 @@
36040
39021
  case 17:
36041
39022
  message.auth = $root.api.AuthConfig.decode(reader, reader.uint32());
36042
39023
  break;
39024
+ case 18:
39025
+ if (!(message.hintsList && message.hintsList.length))
39026
+ message.hintsList = [];
39027
+ message.hintsList.push($root.api.DotReplitHint.decode(reader, reader.uint32()));
39028
+ break;
39029
+ case 19:
39030
+ if (!(message.ports && message.ports.length))
39031
+ message.ports = [];
39032
+ message.ports.push($root.api.DotReplitPort.decode(reader, reader.uint32()));
39033
+ break;
39034
+ case 20:
39035
+ if (!(message.orderedEnv && message.orderedEnv.length))
39036
+ message.orderedEnv = [];
39037
+ message.orderedEnv.push($root.api.DotReplitEnvVar.decode(reader, reader.uint32()));
39038
+ break;
36043
39039
  default:
36044
39040
  reader.skipType(tag & 7);
36045
39041
  break;
@@ -36164,6 +39160,33 @@
36164
39160
  if (error)
36165
39161
  return "auth." + error;
36166
39162
  }
39163
+ if (message.hintsList != null && message.hasOwnProperty("hintsList")) {
39164
+ if (!Array.isArray(message.hintsList))
39165
+ return "hintsList: array expected";
39166
+ for (var i = 0; i < message.hintsList.length; ++i) {
39167
+ var error = $root.api.DotReplitHint.verify(message.hintsList[i]);
39168
+ if (error)
39169
+ return "hintsList." + error;
39170
+ }
39171
+ }
39172
+ if (message.ports != null && message.hasOwnProperty("ports")) {
39173
+ if (!Array.isArray(message.ports))
39174
+ return "ports: array expected";
39175
+ for (var i = 0; i < message.ports.length; ++i) {
39176
+ var error = $root.api.DotReplitPort.verify(message.ports[i]);
39177
+ if (error)
39178
+ return "ports." + error;
39179
+ }
39180
+ }
39181
+ if (message.orderedEnv != null && message.hasOwnProperty("orderedEnv")) {
39182
+ if (!Array.isArray(message.orderedEnv))
39183
+ return "orderedEnv: array expected";
39184
+ for (var i = 0; i < message.orderedEnv.length; ++i) {
39185
+ var error = $root.api.DotReplitEnvVar.verify(message.orderedEnv[i]);
39186
+ if (error)
39187
+ return "orderedEnv." + error;
39188
+ }
39189
+ }
36167
39190
  return null;
36168
39191
  };
36169
39192
 
@@ -36264,6 +39287,36 @@
36264
39287
  throw TypeError(".api.DotReplit.auth: object expected");
36265
39288
  message.auth = $root.api.AuthConfig.fromObject(object.auth);
36266
39289
  }
39290
+ if (object.hintsList) {
39291
+ if (!Array.isArray(object.hintsList))
39292
+ throw TypeError(".api.DotReplit.hintsList: array expected");
39293
+ message.hintsList = [];
39294
+ for (var i = 0; i < object.hintsList.length; ++i) {
39295
+ if (typeof object.hintsList[i] !== "object")
39296
+ throw TypeError(".api.DotReplit.hintsList: object expected");
39297
+ message.hintsList[i] = $root.api.DotReplitHint.fromObject(object.hintsList[i]);
39298
+ }
39299
+ }
39300
+ if (object.ports) {
39301
+ if (!Array.isArray(object.ports))
39302
+ throw TypeError(".api.DotReplit.ports: array expected");
39303
+ message.ports = [];
39304
+ for (var i = 0; i < object.ports.length; ++i) {
39305
+ if (typeof object.ports[i] !== "object")
39306
+ throw TypeError(".api.DotReplit.ports: object expected");
39307
+ message.ports[i] = $root.api.DotReplitPort.fromObject(object.ports[i]);
39308
+ }
39309
+ }
39310
+ if (object.orderedEnv) {
39311
+ if (!Array.isArray(object.orderedEnv))
39312
+ throw TypeError(".api.DotReplit.orderedEnv: array expected");
39313
+ message.orderedEnv = [];
39314
+ for (var i = 0; i < object.orderedEnv.length; ++i) {
39315
+ if (typeof object.orderedEnv[i] !== "object")
39316
+ throw TypeError(".api.DotReplit.orderedEnv: object expected");
39317
+ message.orderedEnv[i] = $root.api.DotReplitEnvVar.fromObject(object.orderedEnv[i]);
39318
+ }
39319
+ }
36267
39320
  return message;
36268
39321
  };
36269
39322
 
@@ -36280,8 +39333,12 @@
36280
39333
  if (!options)
36281
39334
  options = {};
36282
39335
  var object = {};
36283
- if (options.arrays || options.defaults)
39336
+ if (options.arrays || options.defaults) {
36284
39337
  object.hidden = [];
39338
+ object.hintsList = [];
39339
+ object.ports = [];
39340
+ object.orderedEnv = [];
39341
+ }
36285
39342
  if (options.objects || options.defaults) {
36286
39343
  object.languages = {};
36287
39344
  object.env = {};
@@ -36346,6 +39403,21 @@
36346
39403
  object.gitHubImport = $root.api.GitHubImportConfig.toObject(message.gitHubImport, options);
36347
39404
  if (message.auth != null && message.hasOwnProperty("auth"))
36348
39405
  object.auth = $root.api.AuthConfig.toObject(message.auth, options);
39406
+ if (message.hintsList && message.hintsList.length) {
39407
+ object.hintsList = [];
39408
+ for (var j = 0; j < message.hintsList.length; ++j)
39409
+ object.hintsList[j] = $root.api.DotReplitHint.toObject(message.hintsList[j], options);
39410
+ }
39411
+ if (message.ports && message.ports.length) {
39412
+ object.ports = [];
39413
+ for (var j = 0; j < message.ports.length; ++j)
39414
+ object.ports[j] = $root.api.DotReplitPort.toObject(message.ports[j], options);
39415
+ }
39416
+ if (message.orderedEnv && message.orderedEnv.length) {
39417
+ object.orderedEnv = [];
39418
+ for (var j = 0; j < message.orderedEnv.length; ++j)
39419
+ object.orderedEnv[j] = $root.api.DotReplitEnvVar.toObject(message.orderedEnv[j], options);
39420
+ }
36349
39421
  return object;
36350
39422
  };
36351
39423
 
@@ -36363,13 +39435,640 @@
36363
39435
  return DotReplit;
36364
39436
  })();
36365
39437
 
39438
+ api.DotReplitEnvVar = (function() {
39439
+
39440
+ /**
39441
+ * Properties of a DotReplitEnvVar.
39442
+ * @memberof api
39443
+ * @interface IDotReplitEnvVar
39444
+ * @property {string|null} [key] DotReplitEnvVar key
39445
+ * @property {string|null} [value] DotReplitEnvVar value
39446
+ */
39447
+
39448
+ /**
39449
+ * Constructs a new DotReplitEnvVar.
39450
+ * @memberof api
39451
+ * @classdesc Represents a DotReplitEnvVar.
39452
+ * @constructor
39453
+ * @param {api.IDotReplitEnvVar=} [properties] Properties to set
39454
+ */
39455
+ function DotReplitEnvVar(properties) {
39456
+ if (properties)
39457
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39458
+ if (properties[keys[i]] != null)
39459
+ this[keys[i]] = properties[keys[i]];
39460
+ }
39461
+
39462
+ /**
39463
+ * DotReplitEnvVar key.
39464
+ * @member {string} key
39465
+ * @memberof api.DotReplitEnvVar
39466
+ * @instance
39467
+ */
39468
+ DotReplitEnvVar.prototype.key = "";
39469
+
39470
+ /**
39471
+ * DotReplitEnvVar value.
39472
+ * @member {string} value
39473
+ * @memberof api.DotReplitEnvVar
39474
+ * @instance
39475
+ */
39476
+ DotReplitEnvVar.prototype.value = "";
39477
+
39478
+ /**
39479
+ * Creates a new DotReplitEnvVar instance using the specified properties.
39480
+ * @function create
39481
+ * @memberof api.DotReplitEnvVar
39482
+ * @static
39483
+ * @param {api.IDotReplitEnvVar=} [properties] Properties to set
39484
+ * @returns {api.DotReplitEnvVar} DotReplitEnvVar instance
39485
+ */
39486
+ DotReplitEnvVar.create = function create(properties) {
39487
+ return DotReplitEnvVar.fromObject(properties);
39488
+ };
39489
+
39490
+ /**
39491
+ * Encodes the specified DotReplitEnvVar message. Does not implicitly {@link api.DotReplitEnvVar.verify|verify} messages.
39492
+ * @function encode
39493
+ * @memberof api.DotReplitEnvVar
39494
+ * @static
39495
+ * @param {api.DotReplitEnvVar} message DotReplitEnvVar message or plain object to encode
39496
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39497
+ * @returns {$protobuf.Writer} Writer
39498
+ */
39499
+ DotReplitEnvVar.encode = function encode(message, writer) {
39500
+ if (!writer)
39501
+ writer = $Writer.create();
39502
+ if (message.key != null && Object.hasOwnProperty.call(message, "key"))
39503
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.key);
39504
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
39505
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.value);
39506
+ return writer;
39507
+ };
39508
+
39509
+ /**
39510
+ * Encodes the specified DotReplitEnvVar message, length delimited. Does not implicitly {@link api.DotReplitEnvVar.verify|verify} messages.
39511
+ * @function encodeDelimited
39512
+ * @memberof api.DotReplitEnvVar
39513
+ * @static
39514
+ * @param {api.DotReplitEnvVar} message DotReplitEnvVar message or plain object to encode
39515
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39516
+ * @returns {$protobuf.Writer} Writer
39517
+ */
39518
+ DotReplitEnvVar.encodeDelimited = function encodeDelimited(message, writer) {
39519
+ return this.encode(message, writer).ldelim();
39520
+ };
39521
+
39522
+ /**
39523
+ * Decodes a DotReplitEnvVar message from the specified reader or buffer.
39524
+ * @function decode
39525
+ * @memberof api.DotReplitEnvVar
39526
+ * @static
39527
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39528
+ * @param {number} [length] Message length if known beforehand
39529
+ * @returns {api.DotReplitEnvVar} DotReplitEnvVar
39530
+ * @throws {Error} If the payload is not a reader or valid buffer
39531
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39532
+ */
39533
+ DotReplitEnvVar.decode = function decode(reader, length) {
39534
+ if (!(reader instanceof $Reader))
39535
+ reader = $Reader.create(reader);
39536
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitEnvVar();
39537
+ while (reader.pos < end) {
39538
+ var tag = reader.uint32();
39539
+ switch (tag >>> 3) {
39540
+ case 1:
39541
+ message.key = reader.string();
39542
+ break;
39543
+ case 2:
39544
+ message.value = reader.string();
39545
+ break;
39546
+ default:
39547
+ reader.skipType(tag & 7);
39548
+ break;
39549
+ }
39550
+ }
39551
+ return message;
39552
+ };
39553
+
39554
+ /**
39555
+ * Decodes a DotReplitEnvVar message from the specified reader or buffer, length delimited.
39556
+ * @function decodeDelimited
39557
+ * @memberof api.DotReplitEnvVar
39558
+ * @static
39559
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39560
+ * @returns {api.DotReplitEnvVar} DotReplitEnvVar
39561
+ * @throws {Error} If the payload is not a reader or valid buffer
39562
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39563
+ */
39564
+ DotReplitEnvVar.decodeDelimited = function decodeDelimited(reader) {
39565
+ if (!(reader instanceof $Reader))
39566
+ reader = new $Reader(reader);
39567
+ return this.decode(reader, reader.uint32());
39568
+ };
39569
+
39570
+ /**
39571
+ * Verifies a DotReplitEnvVar message.
39572
+ * @function verify
39573
+ * @memberof api.DotReplitEnvVar
39574
+ * @static
39575
+ * @param {Object.<string,*>} message Plain object to verify
39576
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39577
+ */
39578
+ DotReplitEnvVar.verify = function verify(message) {
39579
+ if (typeof message !== "object" || message === null)
39580
+ return "object expected";
39581
+ if (message.key != null && message.hasOwnProperty("key"))
39582
+ if (!$util.isString(message.key))
39583
+ return "key: string expected";
39584
+ if (message.value != null && message.hasOwnProperty("value"))
39585
+ if (!$util.isString(message.value))
39586
+ return "value: string expected";
39587
+ return null;
39588
+ };
39589
+
39590
+ /**
39591
+ * Creates a DotReplitEnvVar message from a plain object. Also converts values to their respective internal types.
39592
+ * @function fromObject
39593
+ * @memberof api.DotReplitEnvVar
39594
+ * @static
39595
+ * @param {Object.<string,*>} object Plain object
39596
+ * @returns {api.DotReplitEnvVar} DotReplitEnvVar
39597
+ */
39598
+ DotReplitEnvVar.fromObject = function fromObject(object) {
39599
+ if (object instanceof $root.api.DotReplitEnvVar)
39600
+ return object;
39601
+ var message = new $root.api.DotReplitEnvVar();
39602
+ if (object.key != null)
39603
+ message.key = String(object.key);
39604
+ if (object.value != null)
39605
+ message.value = String(object.value);
39606
+ return message;
39607
+ };
39608
+
39609
+ /**
39610
+ * Creates a plain object from a DotReplitEnvVar message. Also converts values to other types if specified.
39611
+ * @function toObject
39612
+ * @memberof api.DotReplitEnvVar
39613
+ * @static
39614
+ * @param {api.DotReplitEnvVar} message DotReplitEnvVar
39615
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39616
+ * @returns {Object.<string,*>} Plain object
39617
+ */
39618
+ DotReplitEnvVar.toObject = function toObject(message, options) {
39619
+ if (!options)
39620
+ options = {};
39621
+ var object = {};
39622
+ if (options.defaults) {
39623
+ object.key = "";
39624
+ object.value = "";
39625
+ }
39626
+ if (message.key != null && message.hasOwnProperty("key"))
39627
+ object.key = message.key;
39628
+ if (message.value != null && message.hasOwnProperty("value"))
39629
+ object.value = message.value;
39630
+ return object;
39631
+ };
39632
+
39633
+ /**
39634
+ * Converts this DotReplitEnvVar to JSON.
39635
+ * @function toJSON
39636
+ * @memberof api.DotReplitEnvVar
39637
+ * @instance
39638
+ * @returns {Object.<string,*>} JSON object
39639
+ */
39640
+ DotReplitEnvVar.prototype.toJSON = function toJSON() {
39641
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
39642
+ };
39643
+
39644
+ return DotReplitEnvVar;
39645
+ })();
39646
+
39647
+ api.DotReplitPort = (function() {
39648
+
39649
+ /**
39650
+ * Properties of a DotReplitPort.
39651
+ * @memberof api
39652
+ * @interface IDotReplitPort
39653
+ * @property {number|null} [localPort] DotReplitPort localPort
39654
+ * @property {number|null} [externalPort] DotReplitPort externalPort
39655
+ */
39656
+
39657
+ /**
39658
+ * Constructs a new DotReplitPort.
39659
+ * @memberof api
39660
+ * @classdesc Represents a DotReplitPort.
39661
+ * @constructor
39662
+ * @param {api.IDotReplitPort=} [properties] Properties to set
39663
+ */
39664
+ function DotReplitPort(properties) {
39665
+ if (properties)
39666
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39667
+ if (properties[keys[i]] != null)
39668
+ this[keys[i]] = properties[keys[i]];
39669
+ }
39670
+
39671
+ /**
39672
+ * DotReplitPort localPort.
39673
+ * @member {number} localPort
39674
+ * @memberof api.DotReplitPort
39675
+ * @instance
39676
+ */
39677
+ DotReplitPort.prototype.localPort = 0;
39678
+
39679
+ /**
39680
+ * DotReplitPort externalPort.
39681
+ * @member {number} externalPort
39682
+ * @memberof api.DotReplitPort
39683
+ * @instance
39684
+ */
39685
+ DotReplitPort.prototype.externalPort = 0;
39686
+
39687
+ /**
39688
+ * Creates a new DotReplitPort instance using the specified properties.
39689
+ * @function create
39690
+ * @memberof api.DotReplitPort
39691
+ * @static
39692
+ * @param {api.IDotReplitPort=} [properties] Properties to set
39693
+ * @returns {api.DotReplitPort} DotReplitPort instance
39694
+ */
39695
+ DotReplitPort.create = function create(properties) {
39696
+ return DotReplitPort.fromObject(properties);
39697
+ };
39698
+
39699
+ /**
39700
+ * Encodes the specified DotReplitPort message. Does not implicitly {@link api.DotReplitPort.verify|verify} messages.
39701
+ * @function encode
39702
+ * @memberof api.DotReplitPort
39703
+ * @static
39704
+ * @param {api.DotReplitPort} message DotReplitPort message or plain object to encode
39705
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39706
+ * @returns {$protobuf.Writer} Writer
39707
+ */
39708
+ DotReplitPort.encode = function encode(message, writer) {
39709
+ if (!writer)
39710
+ writer = $Writer.create();
39711
+ if (message.localPort != null && Object.hasOwnProperty.call(message, "localPort"))
39712
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.localPort);
39713
+ if (message.externalPort != null && Object.hasOwnProperty.call(message, "externalPort"))
39714
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.externalPort);
39715
+ return writer;
39716
+ };
39717
+
39718
+ /**
39719
+ * Encodes the specified DotReplitPort message, length delimited. Does not implicitly {@link api.DotReplitPort.verify|verify} messages.
39720
+ * @function encodeDelimited
39721
+ * @memberof api.DotReplitPort
39722
+ * @static
39723
+ * @param {api.DotReplitPort} message DotReplitPort message or plain object to encode
39724
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39725
+ * @returns {$protobuf.Writer} Writer
39726
+ */
39727
+ DotReplitPort.encodeDelimited = function encodeDelimited(message, writer) {
39728
+ return this.encode(message, writer).ldelim();
39729
+ };
39730
+
39731
+ /**
39732
+ * Decodes a DotReplitPort message from the specified reader or buffer.
39733
+ * @function decode
39734
+ * @memberof api.DotReplitPort
39735
+ * @static
39736
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39737
+ * @param {number} [length] Message length if known beforehand
39738
+ * @returns {api.DotReplitPort} DotReplitPort
39739
+ * @throws {Error} If the payload is not a reader or valid buffer
39740
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39741
+ */
39742
+ DotReplitPort.decode = function decode(reader, length) {
39743
+ if (!(reader instanceof $Reader))
39744
+ reader = $Reader.create(reader);
39745
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitPort();
39746
+ while (reader.pos < end) {
39747
+ var tag = reader.uint32();
39748
+ switch (tag >>> 3) {
39749
+ case 1:
39750
+ message.localPort = reader.uint32();
39751
+ break;
39752
+ case 2:
39753
+ message.externalPort = reader.uint32();
39754
+ break;
39755
+ default:
39756
+ reader.skipType(tag & 7);
39757
+ break;
39758
+ }
39759
+ }
39760
+ return message;
39761
+ };
39762
+
39763
+ /**
39764
+ * Decodes a DotReplitPort message from the specified reader or buffer, length delimited.
39765
+ * @function decodeDelimited
39766
+ * @memberof api.DotReplitPort
39767
+ * @static
39768
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39769
+ * @returns {api.DotReplitPort} DotReplitPort
39770
+ * @throws {Error} If the payload is not a reader or valid buffer
39771
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39772
+ */
39773
+ DotReplitPort.decodeDelimited = function decodeDelimited(reader) {
39774
+ if (!(reader instanceof $Reader))
39775
+ reader = new $Reader(reader);
39776
+ return this.decode(reader, reader.uint32());
39777
+ };
39778
+
39779
+ /**
39780
+ * Verifies a DotReplitPort message.
39781
+ * @function verify
39782
+ * @memberof api.DotReplitPort
39783
+ * @static
39784
+ * @param {Object.<string,*>} message Plain object to verify
39785
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39786
+ */
39787
+ DotReplitPort.verify = function verify(message) {
39788
+ if (typeof message !== "object" || message === null)
39789
+ return "object expected";
39790
+ if (message.localPort != null && message.hasOwnProperty("localPort"))
39791
+ if (!$util.isInteger(message.localPort))
39792
+ return "localPort: integer expected";
39793
+ if (message.externalPort != null && message.hasOwnProperty("externalPort"))
39794
+ if (!$util.isInteger(message.externalPort))
39795
+ return "externalPort: integer expected";
39796
+ return null;
39797
+ };
39798
+
39799
+ /**
39800
+ * Creates a DotReplitPort message from a plain object. Also converts values to their respective internal types.
39801
+ * @function fromObject
39802
+ * @memberof api.DotReplitPort
39803
+ * @static
39804
+ * @param {Object.<string,*>} object Plain object
39805
+ * @returns {api.DotReplitPort} DotReplitPort
39806
+ */
39807
+ DotReplitPort.fromObject = function fromObject(object) {
39808
+ if (object instanceof $root.api.DotReplitPort)
39809
+ return object;
39810
+ var message = new $root.api.DotReplitPort();
39811
+ if (object.localPort != null)
39812
+ message.localPort = object.localPort >>> 0;
39813
+ if (object.externalPort != null)
39814
+ message.externalPort = object.externalPort >>> 0;
39815
+ return message;
39816
+ };
39817
+
39818
+ /**
39819
+ * Creates a plain object from a DotReplitPort message. Also converts values to other types if specified.
39820
+ * @function toObject
39821
+ * @memberof api.DotReplitPort
39822
+ * @static
39823
+ * @param {api.DotReplitPort} message DotReplitPort
39824
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
39825
+ * @returns {Object.<string,*>} Plain object
39826
+ */
39827
+ DotReplitPort.toObject = function toObject(message, options) {
39828
+ if (!options)
39829
+ options = {};
39830
+ var object = {};
39831
+ if (options.defaults) {
39832
+ object.localPort = 0;
39833
+ object.externalPort = 0;
39834
+ }
39835
+ if (message.localPort != null && message.hasOwnProperty("localPort"))
39836
+ object.localPort = message.localPort;
39837
+ if (message.externalPort != null && message.hasOwnProperty("externalPort"))
39838
+ object.externalPort = message.externalPort;
39839
+ return object;
39840
+ };
39841
+
39842
+ /**
39843
+ * Converts this DotReplitPort to JSON.
39844
+ * @function toJSON
39845
+ * @memberof api.DotReplitPort
39846
+ * @instance
39847
+ * @returns {Object.<string,*>} JSON object
39848
+ */
39849
+ DotReplitPort.prototype.toJSON = function toJSON() {
39850
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
39851
+ };
39852
+
39853
+ return DotReplitPort;
39854
+ })();
39855
+
39856
+ api.DotReplitHint = (function() {
39857
+
39858
+ /**
39859
+ * Properties of a DotReplitHint.
39860
+ * @memberof api
39861
+ * @interface IDotReplitHint
39862
+ * @property {string|null} [regex] DotReplitHint regex
39863
+ * @property {string|null} [message] DotReplitHint message
39864
+ */
39865
+
39866
+ /**
39867
+ * Constructs a new DotReplitHint.
39868
+ * @memberof api
39869
+ * @classdesc Represents a DotReplitHint.
39870
+ * @constructor
39871
+ * @param {api.IDotReplitHint=} [properties] Properties to set
39872
+ */
39873
+ function DotReplitHint(properties) {
39874
+ if (properties)
39875
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
39876
+ if (properties[keys[i]] != null)
39877
+ this[keys[i]] = properties[keys[i]];
39878
+ }
39879
+
39880
+ /**
39881
+ * DotReplitHint regex.
39882
+ * @member {string} regex
39883
+ * @memberof api.DotReplitHint
39884
+ * @instance
39885
+ */
39886
+ DotReplitHint.prototype.regex = "";
39887
+
39888
+ /**
39889
+ * DotReplitHint message.
39890
+ * @member {string} message
39891
+ * @memberof api.DotReplitHint
39892
+ * @instance
39893
+ */
39894
+ DotReplitHint.prototype.message = "";
39895
+
39896
+ /**
39897
+ * Creates a new DotReplitHint instance using the specified properties.
39898
+ * @function create
39899
+ * @memberof api.DotReplitHint
39900
+ * @static
39901
+ * @param {api.IDotReplitHint=} [properties] Properties to set
39902
+ * @returns {api.DotReplitHint} DotReplitHint instance
39903
+ */
39904
+ DotReplitHint.create = function create(properties) {
39905
+ return DotReplitHint.fromObject(properties);
39906
+ };
39907
+
39908
+ /**
39909
+ * Encodes the specified DotReplitHint message. Does not implicitly {@link api.DotReplitHint.verify|verify} messages.
39910
+ * @function encode
39911
+ * @memberof api.DotReplitHint
39912
+ * @static
39913
+ * @param {api.DotReplitHint} message DotReplitHint message or plain object to encode
39914
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39915
+ * @returns {$protobuf.Writer} Writer
39916
+ */
39917
+ DotReplitHint.encode = function encode(message, writer) {
39918
+ if (!writer)
39919
+ writer = $Writer.create();
39920
+ if (message.regex != null && Object.hasOwnProperty.call(message, "regex"))
39921
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.regex);
39922
+ if (message.message != null && Object.hasOwnProperty.call(message, "message"))
39923
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
39924
+ return writer;
39925
+ };
39926
+
39927
+ /**
39928
+ * Encodes the specified DotReplitHint message, length delimited. Does not implicitly {@link api.DotReplitHint.verify|verify} messages.
39929
+ * @function encodeDelimited
39930
+ * @memberof api.DotReplitHint
39931
+ * @static
39932
+ * @param {api.DotReplitHint} message DotReplitHint message or plain object to encode
39933
+ * @param {$protobuf.Writer} [writer] Writer to encode to
39934
+ * @returns {$protobuf.Writer} Writer
39935
+ */
39936
+ DotReplitHint.encodeDelimited = function encodeDelimited(message, writer) {
39937
+ return this.encode(message, writer).ldelim();
39938
+ };
39939
+
39940
+ /**
39941
+ * Decodes a DotReplitHint message from the specified reader or buffer.
39942
+ * @function decode
39943
+ * @memberof api.DotReplitHint
39944
+ * @static
39945
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39946
+ * @param {number} [length] Message length if known beforehand
39947
+ * @returns {api.DotReplitHint} DotReplitHint
39948
+ * @throws {Error} If the payload is not a reader or valid buffer
39949
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39950
+ */
39951
+ DotReplitHint.decode = function decode(reader, length) {
39952
+ if (!(reader instanceof $Reader))
39953
+ reader = $Reader.create(reader);
39954
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitHint();
39955
+ while (reader.pos < end) {
39956
+ var tag = reader.uint32();
39957
+ switch (tag >>> 3) {
39958
+ case 1:
39959
+ message.regex = reader.string();
39960
+ break;
39961
+ case 2:
39962
+ message.message = reader.string();
39963
+ break;
39964
+ default:
39965
+ reader.skipType(tag & 7);
39966
+ break;
39967
+ }
39968
+ }
39969
+ return message;
39970
+ };
39971
+
39972
+ /**
39973
+ * Decodes a DotReplitHint message from the specified reader or buffer, length delimited.
39974
+ * @function decodeDelimited
39975
+ * @memberof api.DotReplitHint
39976
+ * @static
39977
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
39978
+ * @returns {api.DotReplitHint} DotReplitHint
39979
+ * @throws {Error} If the payload is not a reader or valid buffer
39980
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
39981
+ */
39982
+ DotReplitHint.decodeDelimited = function decodeDelimited(reader) {
39983
+ if (!(reader instanceof $Reader))
39984
+ reader = new $Reader(reader);
39985
+ return this.decode(reader, reader.uint32());
39986
+ };
39987
+
39988
+ /**
39989
+ * Verifies a DotReplitHint message.
39990
+ * @function verify
39991
+ * @memberof api.DotReplitHint
39992
+ * @static
39993
+ * @param {Object.<string,*>} message Plain object to verify
39994
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
39995
+ */
39996
+ DotReplitHint.verify = function verify(message) {
39997
+ if (typeof message !== "object" || message === null)
39998
+ return "object expected";
39999
+ if (message.regex != null && message.hasOwnProperty("regex"))
40000
+ if (!$util.isString(message.regex))
40001
+ return "regex: string expected";
40002
+ if (message.message != null && message.hasOwnProperty("message"))
40003
+ if (!$util.isString(message.message))
40004
+ return "message: string expected";
40005
+ return null;
40006
+ };
40007
+
40008
+ /**
40009
+ * Creates a DotReplitHint message from a plain object. Also converts values to their respective internal types.
40010
+ * @function fromObject
40011
+ * @memberof api.DotReplitHint
40012
+ * @static
40013
+ * @param {Object.<string,*>} object Plain object
40014
+ * @returns {api.DotReplitHint} DotReplitHint
40015
+ */
40016
+ DotReplitHint.fromObject = function fromObject(object) {
40017
+ if (object instanceof $root.api.DotReplitHint)
40018
+ return object;
40019
+ var message = new $root.api.DotReplitHint();
40020
+ if (object.regex != null)
40021
+ message.regex = String(object.regex);
40022
+ if (object.message != null)
40023
+ message.message = String(object.message);
40024
+ return message;
40025
+ };
40026
+
40027
+ /**
40028
+ * Creates a plain object from a DotReplitHint message. Also converts values to other types if specified.
40029
+ * @function toObject
40030
+ * @memberof api.DotReplitHint
40031
+ * @static
40032
+ * @param {api.DotReplitHint} message DotReplitHint
40033
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
40034
+ * @returns {Object.<string,*>} Plain object
40035
+ */
40036
+ DotReplitHint.toObject = function toObject(message, options) {
40037
+ if (!options)
40038
+ options = {};
40039
+ var object = {};
40040
+ if (options.defaults) {
40041
+ object.regex = "";
40042
+ object.message = "";
40043
+ }
40044
+ if (message.regex != null && message.hasOwnProperty("regex"))
40045
+ object.regex = message.regex;
40046
+ if (message.message != null && message.hasOwnProperty("message"))
40047
+ object.message = message.message;
40048
+ return object;
40049
+ };
40050
+
40051
+ /**
40052
+ * Converts this DotReplitHint to JSON.
40053
+ * @function toJSON
40054
+ * @memberof api.DotReplitHint
40055
+ * @instance
40056
+ * @returns {Object.<string,*>} JSON object
40057
+ */
40058
+ DotReplitHint.prototype.toJSON = function toJSON() {
40059
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
40060
+ };
40061
+
40062
+ return DotReplitHint;
40063
+ })();
40064
+
36366
40065
  api.GitHubImportConfig = (function() {
36367
40066
 
36368
40067
  /**
36369
40068
  * Properties of a GitHubImportConfig.
36370
40069
  * @memberof api
36371
40070
  * @interface IGitHubImportConfig
36372
- * @property {Array.<string>|null} [RequiredFiles] GitHubImportConfig RequiredFiles
40071
+ * @property {Array.<string>|null} [requiredFiles] GitHubImportConfig requiredFiles
36373
40072
  */
36374
40073
 
36375
40074
  /**
@@ -36380,7 +40079,7 @@
36380
40079
  * @param {api.IGitHubImportConfig=} [properties] Properties to set
36381
40080
  */
36382
40081
  function GitHubImportConfig(properties) {
36383
- this.RequiredFiles = [];
40082
+ this.requiredFiles = [];
36384
40083
  if (properties)
36385
40084
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
36386
40085
  if (properties[keys[i]] != null)
@@ -36388,12 +40087,12 @@
36388
40087
  }
36389
40088
 
36390
40089
  /**
36391
- * GitHubImportConfig RequiredFiles.
36392
- * @member {Array.<string>} RequiredFiles
40090
+ * GitHubImportConfig requiredFiles.
40091
+ * @member {Array.<string>} requiredFiles
36393
40092
  * @memberof api.GitHubImportConfig
36394
40093
  * @instance
36395
40094
  */
36396
- GitHubImportConfig.prototype.RequiredFiles = $util.emptyArray;
40095
+ GitHubImportConfig.prototype.requiredFiles = $util.emptyArray;
36397
40096
 
36398
40097
  /**
36399
40098
  * Creates a new GitHubImportConfig instance using the specified properties.
@@ -36419,9 +40118,9 @@
36419
40118
  GitHubImportConfig.encode = function encode(message, writer) {
36420
40119
  if (!writer)
36421
40120
  writer = $Writer.create();
36422
- if (message.RequiredFiles != null && message.RequiredFiles.length)
36423
- for (var i = 0; i < message.RequiredFiles.length; ++i)
36424
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.RequiredFiles[i]);
40121
+ if (message.requiredFiles != null && message.requiredFiles.length)
40122
+ for (var i = 0; i < message.requiredFiles.length; ++i)
40123
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.requiredFiles[i]);
36425
40124
  return writer;
36426
40125
  };
36427
40126
 
@@ -36457,9 +40156,9 @@
36457
40156
  var tag = reader.uint32();
36458
40157
  switch (tag >>> 3) {
36459
40158
  case 1:
36460
- if (!(message.RequiredFiles && message.RequiredFiles.length))
36461
- message.RequiredFiles = [];
36462
- message.RequiredFiles.push(reader.string());
40159
+ if (!(message.requiredFiles && message.requiredFiles.length))
40160
+ message.requiredFiles = [];
40161
+ message.requiredFiles.push(reader.string());
36463
40162
  break;
36464
40163
  default:
36465
40164
  reader.skipType(tag & 7);
@@ -36496,12 +40195,12 @@
36496
40195
  GitHubImportConfig.verify = function verify(message) {
36497
40196
  if (typeof message !== "object" || message === null)
36498
40197
  return "object expected";
36499
- if (message.RequiredFiles != null && message.hasOwnProperty("RequiredFiles")) {
36500
- if (!Array.isArray(message.RequiredFiles))
36501
- return "RequiredFiles: array expected";
36502
- for (var i = 0; i < message.RequiredFiles.length; ++i)
36503
- if (!$util.isString(message.RequiredFiles[i]))
36504
- return "RequiredFiles: string[] expected";
40198
+ if (message.requiredFiles != null && message.hasOwnProperty("requiredFiles")) {
40199
+ if (!Array.isArray(message.requiredFiles))
40200
+ return "requiredFiles: array expected";
40201
+ for (var i = 0; i < message.requiredFiles.length; ++i)
40202
+ if (!$util.isString(message.requiredFiles[i]))
40203
+ return "requiredFiles: string[] expected";
36505
40204
  }
36506
40205
  return null;
36507
40206
  };
@@ -36518,12 +40217,12 @@
36518
40217
  if (object instanceof $root.api.GitHubImportConfig)
36519
40218
  return object;
36520
40219
  var message = new $root.api.GitHubImportConfig();
36521
- if (object.RequiredFiles) {
36522
- if (!Array.isArray(object.RequiredFiles))
36523
- throw TypeError(".api.GitHubImportConfig.RequiredFiles: array expected");
36524
- message.RequiredFiles = [];
36525
- for (var i = 0; i < object.RequiredFiles.length; ++i)
36526
- message.RequiredFiles[i] = String(object.RequiredFiles[i]);
40220
+ if (object.requiredFiles) {
40221
+ if (!Array.isArray(object.requiredFiles))
40222
+ throw TypeError(".api.GitHubImportConfig.requiredFiles: array expected");
40223
+ message.requiredFiles = [];
40224
+ for (var i = 0; i < object.requiredFiles.length; ++i)
40225
+ message.requiredFiles[i] = String(object.requiredFiles[i]);
36527
40226
  }
36528
40227
  return message;
36529
40228
  };
@@ -36542,11 +40241,11 @@
36542
40241
  options = {};
36543
40242
  var object = {};
36544
40243
  if (options.arrays || options.defaults)
36545
- object.RequiredFiles = [];
36546
- if (message.RequiredFiles && message.RequiredFiles.length) {
36547
- object.RequiredFiles = [];
36548
- for (var j = 0; j < message.RequiredFiles.length; ++j)
36549
- object.RequiredFiles[j] = message.RequiredFiles[j];
40244
+ object.requiredFiles = [];
40245
+ if (message.requiredFiles && message.requiredFiles.length) {
40246
+ object.requiredFiles = [];
40247
+ for (var j = 0; j < message.requiredFiles.length; ++j)
40248
+ object.requiredFiles[j] = message.requiredFiles[j];
36550
40249
  }
36551
40250
  return object;
36552
40251
  };
@@ -38226,6 +41925,7 @@
38226
41925
  * @interface IDotReplitPackagerFeatures
38227
41926
  * @property {boolean|null} [packageSearch] DotReplitPackagerFeatures packageSearch
38228
41927
  * @property {boolean|null} [guessImports] DotReplitPackagerFeatures guessImports
41928
+ * @property {boolean|null} [enabledForHosting] DotReplitPackagerFeatures enabledForHosting
38229
41929
  */
38230
41930
 
38231
41931
  /**
@@ -38258,6 +41958,14 @@
38258
41958
  */
38259
41959
  DotReplitPackagerFeatures.prototype.guessImports = false;
38260
41960
 
41961
+ /**
41962
+ * DotReplitPackagerFeatures enabledForHosting.
41963
+ * @member {boolean} enabledForHosting
41964
+ * @memberof api.DotReplitPackagerFeatures
41965
+ * @instance
41966
+ */
41967
+ DotReplitPackagerFeatures.prototype.enabledForHosting = false;
41968
+
38261
41969
  /**
38262
41970
  * Creates a new DotReplitPackagerFeatures instance using the specified properties.
38263
41971
  * @function create
@@ -38286,6 +41994,8 @@
38286
41994
  writer.uint32(/* id 1, wireType 0 =*/8).bool(message.packageSearch);
38287
41995
  if (message.guessImports != null && Object.hasOwnProperty.call(message, "guessImports"))
38288
41996
  writer.uint32(/* id 2, wireType 0 =*/16).bool(message.guessImports);
41997
+ if (message.enabledForHosting != null && Object.hasOwnProperty.call(message, "enabledForHosting"))
41998
+ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.enabledForHosting);
38289
41999
  return writer;
38290
42000
  };
38291
42001
 
@@ -38326,6 +42036,9 @@
38326
42036
  case 2:
38327
42037
  message.guessImports = reader.bool();
38328
42038
  break;
42039
+ case 3:
42040
+ message.enabledForHosting = reader.bool();
42041
+ break;
38329
42042
  default:
38330
42043
  reader.skipType(tag & 7);
38331
42044
  break;
@@ -38367,6 +42080,9 @@
38367
42080
  if (message.guessImports != null && message.hasOwnProperty("guessImports"))
38368
42081
  if (typeof message.guessImports !== "boolean")
38369
42082
  return "guessImports: boolean expected";
42083
+ if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
42084
+ if (typeof message.enabledForHosting !== "boolean")
42085
+ return "enabledForHosting: boolean expected";
38370
42086
  return null;
38371
42087
  };
38372
42088
 
@@ -38386,6 +42102,8 @@
38386
42102
  message.packageSearch = Boolean(object.packageSearch);
38387
42103
  if (object.guessImports != null)
38388
42104
  message.guessImports = Boolean(object.guessImports);
42105
+ if (object.enabledForHosting != null)
42106
+ message.enabledForHosting = Boolean(object.enabledForHosting);
38389
42107
  return message;
38390
42108
  };
38391
42109
 
@@ -38405,11 +42123,14 @@
38405
42123
  if (options.defaults) {
38406
42124
  object.packageSearch = false;
38407
42125
  object.guessImports = false;
42126
+ object.enabledForHosting = false;
38408
42127
  }
38409
42128
  if (message.packageSearch != null && message.hasOwnProperty("packageSearch"))
38410
42129
  object.packageSearch = message.packageSearch;
38411
42130
  if (message.guessImports != null && message.hasOwnProperty("guessImports"))
38412
42131
  object.guessImports = message.guessImports;
42132
+ if (message.enabledForHosting != null && message.hasOwnProperty("enabledForHosting"))
42133
+ object.enabledForHosting = message.enabledForHosting;
38413
42134
  return object;
38414
42135
  };
38415
42136
 
@@ -45174,6 +48895,7 @@
45174
48895
  * @property {string|null} [user] GovalReplIdentity user
45175
48896
  * @property {string|null} [slug] GovalReplIdentity slug
45176
48897
  * @property {string|null} [aud] GovalReplIdentity aud
48898
+ * @property {boolean|null} [ephemeral] GovalReplIdentity ephemeral
45177
48899
  */
45178
48900
 
45179
48901
  /**
@@ -45222,6 +48944,14 @@
45222
48944
  */
45223
48945
  GovalReplIdentity.prototype.aud = "";
45224
48946
 
48947
+ /**
48948
+ * GovalReplIdentity ephemeral.
48949
+ * @member {boolean} ephemeral
48950
+ * @memberof api.GovalReplIdentity
48951
+ * @instance
48952
+ */
48953
+ GovalReplIdentity.prototype.ephemeral = false;
48954
+
45225
48955
  /**
45226
48956
  * Creates a new GovalReplIdentity instance using the specified properties.
45227
48957
  * @function create
@@ -45254,6 +48984,8 @@
45254
48984
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.slug);
45255
48985
  if (message.aud != null && Object.hasOwnProperty.call(message, "aud"))
45256
48986
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.aud);
48987
+ if (message.ephemeral != null && Object.hasOwnProperty.call(message, "ephemeral"))
48988
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.ephemeral);
45257
48989
  return writer;
45258
48990
  };
45259
48991
 
@@ -45300,6 +49032,9 @@
45300
49032
  case 4:
45301
49033
  message.aud = reader.string();
45302
49034
  break;
49035
+ case 5:
49036
+ message.ephemeral = reader.bool();
49037
+ break;
45303
49038
  default:
45304
49039
  reader.skipType(tag & 7);
45305
49040
  break;
@@ -45347,6 +49082,9 @@
45347
49082
  if (message.aud != null && message.hasOwnProperty("aud"))
45348
49083
  if (!$util.isString(message.aud))
45349
49084
  return "aud: string expected";
49085
+ if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
49086
+ if (typeof message.ephemeral !== "boolean")
49087
+ return "ephemeral: boolean expected";
45350
49088
  return null;
45351
49089
  };
45352
49090
 
@@ -45370,6 +49108,8 @@
45370
49108
  message.slug = String(object.slug);
45371
49109
  if (object.aud != null)
45372
49110
  message.aud = String(object.aud);
49111
+ if (object.ephemeral != null)
49112
+ message.ephemeral = Boolean(object.ephemeral);
45373
49113
  return message;
45374
49114
  };
45375
49115
 
@@ -45391,6 +49131,7 @@
45391
49131
  object.user = "";
45392
49132
  object.slug = "";
45393
49133
  object.aud = "";
49134
+ object.ephemeral = false;
45394
49135
  }
45395
49136
  if (message.replid != null && message.hasOwnProperty("replid"))
45396
49137
  object.replid = message.replid;
@@ -45400,6 +49141,8 @@
45400
49141
  object.slug = message.slug;
45401
49142
  if (message.aud != null && message.hasOwnProperty("aud"))
45402
49143
  object.aud = message.aud;
49144
+ if (message.ephemeral != null && message.hasOwnProperty("ephemeral"))
49145
+ object.ephemeral = message.ephemeral;
45403
49146
  return object;
45404
49147
  };
45405
49148