@replit/protocol 0.2.75 → 0.2.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main/index.d.ts +811 -1
- package/main/index.js +2122 -188
- package/main/index.js.flow +1231 -86
- package/package.json +2 -2
package/main/index.js
CHANGED
|
@@ -71,6 +71,7 @@
|
|
|
71
71
|
* @property {string|null} [error] Command error
|
|
72
72
|
* @property {string|null} [stderr] Command stderr
|
|
73
73
|
* @property {string|null} [log] Command log
|
|
74
|
+
* @property {string|null} [record] Command record
|
|
74
75
|
* @property {replit.goval.api.SaneTerm|replit.goval.api.ISaneTerm|null} [saneTerm] Command saneTerm
|
|
75
76
|
* @property {replit.goval.api.ResizeTerm|replit.goval.api.IResizeTerm|null} [resizeTerm] Command resizeTerm
|
|
76
77
|
* @property {replit.goval.api.State|null} [state] Command state
|
|
@@ -407,6 +408,14 @@
|
|
|
407
408
|
*/
|
|
408
409
|
Command.prototype.log = null;
|
|
409
410
|
|
|
411
|
+
/**
|
|
412
|
+
* Command record.
|
|
413
|
+
* @member {string|null|undefined} record
|
|
414
|
+
* @memberof replit.goval.api.Command
|
|
415
|
+
* @instance
|
|
416
|
+
*/
|
|
417
|
+
Command.prototype.record = null;
|
|
418
|
+
|
|
410
419
|
/**
|
|
411
420
|
* Command saneTerm.
|
|
412
421
|
* @member {replit.goval.api.SaneTerm|null|undefined} saneTerm
|
|
@@ -1556,12 +1565,12 @@
|
|
|
1556
1565
|
|
|
1557
1566
|
/**
|
|
1558
1567
|
* Command body.
|
|
1559
|
-
* @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
|
|
1568
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"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
|
|
1560
1569
|
* @memberof replit.goval.api.Command
|
|
1561
1570
|
* @instance
|
|
1562
1571
|
*/
|
|
1563
1572
|
Object.defineProperty(Command.prototype, "body", {
|
|
1564
|
-
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"]),
|
|
1573
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "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"]),
|
|
1565
1574
|
set: $util.oneOfSetter($oneOfFields)
|
|
1566
1575
|
});
|
|
1567
1576
|
|
|
@@ -1915,6 +1924,8 @@
|
|
|
1915
1924
|
$root.replit.goval.api.NixPackageSearchRequest.encode(message.nixPackageSearchRequest, writer.uint32(/* id 420, wireType 2 =*/3362).fork()).ldelim();
|
|
1916
1925
|
if (message.nixPackageSearchResponse != null && Object.hasOwnProperty.call(message, "nixPackageSearchResponse"))
|
|
1917
1926
|
$root.replit.goval.api.NixPackageSearchResponse.encode(message.nixPackageSearchResponse, writer.uint32(/* id 421, wireType 2 =*/3370).fork()).ldelim();
|
|
1927
|
+
if (message.record != null && Object.hasOwnProperty.call(message, "record"))
|
|
1928
|
+
writer.uint32(/* id 422, wireType 2 =*/3378).string(message.record);
|
|
1918
1929
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
1919
1930
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
1920
1931
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2020,6 +2031,9 @@
|
|
|
2020
2031
|
case 47:
|
|
2021
2032
|
message.log = reader.string();
|
|
2022
2033
|
break;
|
|
2034
|
+
case 422:
|
|
2035
|
+
message.record = reader.string();
|
|
2036
|
+
break;
|
|
2023
2037
|
case 26:
|
|
2024
2038
|
message.saneTerm = $root.replit.goval.api.SaneTerm.decode(reader, reader.uint32());
|
|
2025
2039
|
break;
|
|
@@ -2687,6 +2701,13 @@
|
|
|
2687
2701
|
if (!$util.isString(message.log))
|
|
2688
2702
|
return "log: string expected";
|
|
2689
2703
|
}
|
|
2704
|
+
if (message.record != null && message.hasOwnProperty("record")) {
|
|
2705
|
+
if (properties.body === 1)
|
|
2706
|
+
return "body: multiple values";
|
|
2707
|
+
properties.body = 1;
|
|
2708
|
+
if (!$util.isString(message.record))
|
|
2709
|
+
return "record: string expected";
|
|
2710
|
+
}
|
|
2690
2711
|
if (message.saneTerm != null && message.hasOwnProperty("saneTerm")) {
|
|
2691
2712
|
if (properties.body === 1)
|
|
2692
2713
|
return "body: multiple values";
|
|
@@ -4199,6 +4220,8 @@
|
|
|
4199
4220
|
message.stderr = String(object.stderr);
|
|
4200
4221
|
if (object.log != null)
|
|
4201
4222
|
message.log = String(object.log);
|
|
4223
|
+
if (object.record != null)
|
|
4224
|
+
message.record = String(object.record);
|
|
4202
4225
|
if (object.saneTerm != null) {
|
|
4203
4226
|
if (typeof object.saneTerm !== "object")
|
|
4204
4227
|
throw TypeError(".replit.goval.api.Command.saneTerm: object expected");
|
|
@@ -5741,6 +5764,11 @@
|
|
|
5741
5764
|
if (options.oneofs)
|
|
5742
5765
|
object.body = "nixPackageSearchResponse";
|
|
5743
5766
|
}
|
|
5767
|
+
if (message.record != null && message.hasOwnProperty("record")) {
|
|
5768
|
+
object.record = message.record;
|
|
5769
|
+
if (options.oneofs)
|
|
5770
|
+
object.body = "record";
|
|
5771
|
+
}
|
|
5744
5772
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
5745
5773
|
object.ref = message.ref;
|
|
5746
5774
|
var keys2;
|
|
@@ -44640,6 +44668,264 @@
|
|
|
44640
44668
|
return FirewallDenied;
|
|
44641
44669
|
})();
|
|
44642
44670
|
|
|
44671
|
+
api.ReplLogMessage = (function() {
|
|
44672
|
+
|
|
44673
|
+
/**
|
|
44674
|
+
* Properties of a ReplLogMessage.
|
|
44675
|
+
* @memberof replit.goval.api
|
|
44676
|
+
* @interface IReplLogMessage
|
|
44677
|
+
* @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [timestamp] ReplLogMessage timestamp
|
|
44678
|
+
* @property {string|null} [replId] ReplLogMessage replId
|
|
44679
|
+
* @property {string|null} [logLine] ReplLogMessage logLine
|
|
44680
|
+
* @property {string|null} [userName] ReplLogMessage userName
|
|
44681
|
+
*/
|
|
44682
|
+
|
|
44683
|
+
/**
|
|
44684
|
+
* Constructs a new ReplLogMessage.
|
|
44685
|
+
* @memberof replit.goval.api
|
|
44686
|
+
* @classdesc Represents a ReplLogMessage.
|
|
44687
|
+
* @constructor
|
|
44688
|
+
* @param {replit.goval.api.IReplLogMessage=} [properties] Properties to set
|
|
44689
|
+
*/
|
|
44690
|
+
function ReplLogMessage(properties) {
|
|
44691
|
+
if (properties)
|
|
44692
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44693
|
+
if (properties[keys[i]] != null)
|
|
44694
|
+
this[keys[i]] = properties[keys[i]];
|
|
44695
|
+
}
|
|
44696
|
+
|
|
44697
|
+
/**
|
|
44698
|
+
* ReplLogMessage timestamp.
|
|
44699
|
+
* @member {google.protobuf.Timestamp|null|undefined} timestamp
|
|
44700
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44701
|
+
* @instance
|
|
44702
|
+
*/
|
|
44703
|
+
ReplLogMessage.prototype.timestamp = null;
|
|
44704
|
+
|
|
44705
|
+
/**
|
|
44706
|
+
* ReplLogMessage replId.
|
|
44707
|
+
* @member {string} replId
|
|
44708
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44709
|
+
* @instance
|
|
44710
|
+
*/
|
|
44711
|
+
ReplLogMessage.prototype.replId = "";
|
|
44712
|
+
|
|
44713
|
+
/**
|
|
44714
|
+
* ReplLogMessage logLine.
|
|
44715
|
+
* @member {string} logLine
|
|
44716
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44717
|
+
* @instance
|
|
44718
|
+
*/
|
|
44719
|
+
ReplLogMessage.prototype.logLine = "";
|
|
44720
|
+
|
|
44721
|
+
/**
|
|
44722
|
+
* ReplLogMessage userName.
|
|
44723
|
+
* @member {string} userName
|
|
44724
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44725
|
+
* @instance
|
|
44726
|
+
*/
|
|
44727
|
+
ReplLogMessage.prototype.userName = "";
|
|
44728
|
+
|
|
44729
|
+
/**
|
|
44730
|
+
* Creates a new ReplLogMessage instance using the specified properties.
|
|
44731
|
+
* @function create
|
|
44732
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44733
|
+
* @static
|
|
44734
|
+
* @param {replit.goval.api.IReplLogMessage=} [properties] Properties to set
|
|
44735
|
+
* @returns {replit.goval.api.ReplLogMessage} ReplLogMessage instance
|
|
44736
|
+
*/
|
|
44737
|
+
ReplLogMessage.create = function create(properties) {
|
|
44738
|
+
return ReplLogMessage.fromObject(properties);
|
|
44739
|
+
};
|
|
44740
|
+
|
|
44741
|
+
/**
|
|
44742
|
+
* Encodes the specified ReplLogMessage message. Does not implicitly {@link replit.goval.api.ReplLogMessage.verify|verify} messages.
|
|
44743
|
+
* @function encode
|
|
44744
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44745
|
+
* @static
|
|
44746
|
+
* @param {replit.goval.api.ReplLogMessage} message ReplLogMessage message or plain object to encode
|
|
44747
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44748
|
+
* @returns {$protobuf.Writer} Writer
|
|
44749
|
+
*/
|
|
44750
|
+
ReplLogMessage.encode = function encode(message, writer) {
|
|
44751
|
+
if (!writer)
|
|
44752
|
+
writer = $Writer.create();
|
|
44753
|
+
if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
|
|
44754
|
+
$root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
44755
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
44756
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.replId);
|
|
44757
|
+
if (message.logLine != null && Object.hasOwnProperty.call(message, "logLine"))
|
|
44758
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.logLine);
|
|
44759
|
+
if (message.userName != null && Object.hasOwnProperty.call(message, "userName"))
|
|
44760
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.userName);
|
|
44761
|
+
return writer;
|
|
44762
|
+
};
|
|
44763
|
+
|
|
44764
|
+
/**
|
|
44765
|
+
* Encodes the specified ReplLogMessage message, length delimited. Does not implicitly {@link replit.goval.api.ReplLogMessage.verify|verify} messages.
|
|
44766
|
+
* @function encodeDelimited
|
|
44767
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44768
|
+
* @static
|
|
44769
|
+
* @param {replit.goval.api.ReplLogMessage} message ReplLogMessage message or plain object to encode
|
|
44770
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44771
|
+
* @returns {$protobuf.Writer} Writer
|
|
44772
|
+
*/
|
|
44773
|
+
ReplLogMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44774
|
+
return this.encode(message, writer).ldelim();
|
|
44775
|
+
};
|
|
44776
|
+
|
|
44777
|
+
/**
|
|
44778
|
+
* Decodes a ReplLogMessage message from the specified reader or buffer.
|
|
44779
|
+
* @function decode
|
|
44780
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44781
|
+
* @static
|
|
44782
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44783
|
+
* @param {number} [length] Message length if known beforehand
|
|
44784
|
+
* @returns {replit.goval.api.ReplLogMessage} ReplLogMessage
|
|
44785
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44786
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44787
|
+
*/
|
|
44788
|
+
ReplLogMessage.decode = function decode(reader, length) {
|
|
44789
|
+
if (!(reader instanceof $Reader))
|
|
44790
|
+
reader = $Reader.create(reader);
|
|
44791
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplLogMessage();
|
|
44792
|
+
while (reader.pos < end) {
|
|
44793
|
+
var tag = reader.uint32();
|
|
44794
|
+
switch (tag >>> 3) {
|
|
44795
|
+
case 1:
|
|
44796
|
+
message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
44797
|
+
break;
|
|
44798
|
+
case 2:
|
|
44799
|
+
message.replId = reader.string();
|
|
44800
|
+
break;
|
|
44801
|
+
case 3:
|
|
44802
|
+
message.logLine = reader.string();
|
|
44803
|
+
break;
|
|
44804
|
+
case 4:
|
|
44805
|
+
message.userName = reader.string();
|
|
44806
|
+
break;
|
|
44807
|
+
default:
|
|
44808
|
+
reader.skipType(tag & 7);
|
|
44809
|
+
break;
|
|
44810
|
+
}
|
|
44811
|
+
}
|
|
44812
|
+
return message;
|
|
44813
|
+
};
|
|
44814
|
+
|
|
44815
|
+
/**
|
|
44816
|
+
* Decodes a ReplLogMessage message from the specified reader or buffer, length delimited.
|
|
44817
|
+
* @function decodeDelimited
|
|
44818
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44819
|
+
* @static
|
|
44820
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44821
|
+
* @returns {replit.goval.api.ReplLogMessage} ReplLogMessage
|
|
44822
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44823
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44824
|
+
*/
|
|
44825
|
+
ReplLogMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
44826
|
+
if (!(reader instanceof $Reader))
|
|
44827
|
+
reader = new $Reader(reader);
|
|
44828
|
+
return this.decode(reader, reader.uint32());
|
|
44829
|
+
};
|
|
44830
|
+
|
|
44831
|
+
/**
|
|
44832
|
+
* Verifies a ReplLogMessage message.
|
|
44833
|
+
* @function verify
|
|
44834
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44835
|
+
* @static
|
|
44836
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44837
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44838
|
+
*/
|
|
44839
|
+
ReplLogMessage.verify = function verify(message) {
|
|
44840
|
+
if (typeof message !== "object" || message === null)
|
|
44841
|
+
return "object expected";
|
|
44842
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp")) {
|
|
44843
|
+
var error = $root.google.protobuf.Timestamp.verify(message.timestamp);
|
|
44844
|
+
if (error)
|
|
44845
|
+
return "timestamp." + error;
|
|
44846
|
+
}
|
|
44847
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
44848
|
+
if (!$util.isString(message.replId))
|
|
44849
|
+
return "replId: string expected";
|
|
44850
|
+
if (message.logLine != null && message.hasOwnProperty("logLine"))
|
|
44851
|
+
if (!$util.isString(message.logLine))
|
|
44852
|
+
return "logLine: string expected";
|
|
44853
|
+
if (message.userName != null && message.hasOwnProperty("userName"))
|
|
44854
|
+
if (!$util.isString(message.userName))
|
|
44855
|
+
return "userName: string expected";
|
|
44856
|
+
return null;
|
|
44857
|
+
};
|
|
44858
|
+
|
|
44859
|
+
/**
|
|
44860
|
+
* Creates a ReplLogMessage message from a plain object. Also converts values to their respective internal types.
|
|
44861
|
+
* @function fromObject
|
|
44862
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44863
|
+
* @static
|
|
44864
|
+
* @param {Object.<string,*>} object Plain object
|
|
44865
|
+
* @returns {replit.goval.api.ReplLogMessage} ReplLogMessage
|
|
44866
|
+
*/
|
|
44867
|
+
ReplLogMessage.fromObject = function fromObject(object) {
|
|
44868
|
+
if (object instanceof $root.replit.goval.api.ReplLogMessage)
|
|
44869
|
+
return object;
|
|
44870
|
+
var message = new $root.replit.goval.api.ReplLogMessage();
|
|
44871
|
+
if (object.timestamp != null) {
|
|
44872
|
+
if (typeof object.timestamp !== "object")
|
|
44873
|
+
throw TypeError(".replit.goval.api.ReplLogMessage.timestamp: object expected");
|
|
44874
|
+
message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp);
|
|
44875
|
+
}
|
|
44876
|
+
if (object.replId != null)
|
|
44877
|
+
message.replId = String(object.replId);
|
|
44878
|
+
if (object.logLine != null)
|
|
44879
|
+
message.logLine = String(object.logLine);
|
|
44880
|
+
if (object.userName != null)
|
|
44881
|
+
message.userName = String(object.userName);
|
|
44882
|
+
return message;
|
|
44883
|
+
};
|
|
44884
|
+
|
|
44885
|
+
/**
|
|
44886
|
+
* Creates a plain object from a ReplLogMessage message. Also converts values to other types if specified.
|
|
44887
|
+
* @function toObject
|
|
44888
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44889
|
+
* @static
|
|
44890
|
+
* @param {replit.goval.api.ReplLogMessage} message ReplLogMessage
|
|
44891
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44892
|
+
* @returns {Object.<string,*>} Plain object
|
|
44893
|
+
*/
|
|
44894
|
+
ReplLogMessage.toObject = function toObject(message, options) {
|
|
44895
|
+
if (!options)
|
|
44896
|
+
options = {};
|
|
44897
|
+
var object = {};
|
|
44898
|
+
if (options.defaults) {
|
|
44899
|
+
object.timestamp = null;
|
|
44900
|
+
object.replId = "";
|
|
44901
|
+
object.logLine = "";
|
|
44902
|
+
object.userName = "";
|
|
44903
|
+
}
|
|
44904
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
44905
|
+
object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options);
|
|
44906
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
44907
|
+
object.replId = message.replId;
|
|
44908
|
+
if (message.logLine != null && message.hasOwnProperty("logLine"))
|
|
44909
|
+
object.logLine = message.logLine;
|
|
44910
|
+
if (message.userName != null && message.hasOwnProperty("userName"))
|
|
44911
|
+
object.userName = message.userName;
|
|
44912
|
+
return object;
|
|
44913
|
+
};
|
|
44914
|
+
|
|
44915
|
+
/**
|
|
44916
|
+
* Converts this ReplLogMessage to JSON.
|
|
44917
|
+
* @function toJSON
|
|
44918
|
+
* @memberof replit.goval.api.ReplLogMessage
|
|
44919
|
+
* @instance
|
|
44920
|
+
* @returns {Object.<string,*>} JSON object
|
|
44921
|
+
*/
|
|
44922
|
+
ReplLogMessage.prototype.toJSON = function toJSON() {
|
|
44923
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44924
|
+
};
|
|
44925
|
+
|
|
44926
|
+
return ReplLogMessage;
|
|
44927
|
+
})();
|
|
44928
|
+
|
|
44643
44929
|
api.ReplToken = (function() {
|
|
44644
44930
|
|
|
44645
44931
|
/**
|
|
@@ -48935,214 +49221,1660 @@
|
|
|
48935
49221
|
return GovalReplIdentity;
|
|
48936
49222
|
})();
|
|
48937
49223
|
|
|
48938
|
-
api.
|
|
49224
|
+
api.LoreCommand = (function() {
|
|
48939
49225
|
|
|
48940
49226
|
/**
|
|
48941
|
-
*
|
|
49227
|
+
* Properties of a LoreCommand.
|
|
48942
49228
|
* @memberof replit.goval.api
|
|
48943
|
-
* @
|
|
49229
|
+
* @interface ILoreCommand
|
|
49230
|
+
* @property {replit.goval.api.ClusterTransfer|replit.goval.api.IClusterTransfer|null} [clusterTransfer] LoreCommand clusterTransfer
|
|
49231
|
+
* @property {replit.goval.api.SoftTakedown|replit.goval.api.ISoftTakedown|null} [softTakedown] LoreCommand softTakedown
|
|
49232
|
+
* @property {replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand|null} [govalCommand] LoreCommand govalCommand
|
|
49233
|
+
* @property {replit.goval.api.Restore|replit.goval.api.IRestore|null} [restore] LoreCommand restore
|
|
48944
49234
|
*/
|
|
48945
|
-
var features = {};
|
|
48946
49235
|
|
|
48947
|
-
|
|
48948
|
-
|
|
48949
|
-
|
|
48950
|
-
|
|
48951
|
-
|
|
48952
|
-
|
|
48953
|
-
|
|
49236
|
+
/**
|
|
49237
|
+
* Constructs a new LoreCommand.
|
|
49238
|
+
* @memberof replit.goval.api
|
|
49239
|
+
* @classdesc Represents a LoreCommand.
|
|
49240
|
+
* @constructor
|
|
49241
|
+
* @param {replit.goval.api.ILoreCommand=} [properties] Properties to set
|
|
49242
|
+
*/
|
|
49243
|
+
function LoreCommand(properties) {
|
|
49244
|
+
if (properties)
|
|
49245
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49246
|
+
if (properties[keys[i]] != null)
|
|
49247
|
+
this[keys[i]] = properties[keys[i]];
|
|
49248
|
+
}
|
|
48954
49249
|
|
|
48955
|
-
|
|
48956
|
-
|
|
48957
|
-
|
|
48958
|
-
|
|
48959
|
-
|
|
48960
|
-
|
|
48961
|
-
|
|
48962
|
-
function Gpu(properties) {
|
|
48963
|
-
if (properties)
|
|
48964
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
48965
|
-
if (properties[keys[i]] != null)
|
|
48966
|
-
this[keys[i]] = properties[keys[i]];
|
|
48967
|
-
}
|
|
49250
|
+
/**
|
|
49251
|
+
* LoreCommand clusterTransfer.
|
|
49252
|
+
* @member {replit.goval.api.ClusterTransfer|null|undefined} clusterTransfer
|
|
49253
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49254
|
+
* @instance
|
|
49255
|
+
*/
|
|
49256
|
+
LoreCommand.prototype.clusterTransfer = null;
|
|
48968
49257
|
|
|
48969
|
-
|
|
48970
|
-
|
|
48971
|
-
|
|
48972
|
-
|
|
48973
|
-
|
|
48974
|
-
|
|
48975
|
-
|
|
48976
|
-
*/
|
|
48977
|
-
Gpu.create = function create(properties) {
|
|
48978
|
-
return Gpu.fromObject(properties);
|
|
48979
|
-
};
|
|
49258
|
+
/**
|
|
49259
|
+
* LoreCommand softTakedown.
|
|
49260
|
+
* @member {replit.goval.api.SoftTakedown|null|undefined} softTakedown
|
|
49261
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49262
|
+
* @instance
|
|
49263
|
+
*/
|
|
49264
|
+
LoreCommand.prototype.softTakedown = null;
|
|
48980
49265
|
|
|
48981
|
-
|
|
48982
|
-
|
|
48983
|
-
|
|
48984
|
-
|
|
48985
|
-
|
|
48986
|
-
|
|
48987
|
-
|
|
48988
|
-
* @returns {$protobuf.Writer} Writer
|
|
48989
|
-
*/
|
|
48990
|
-
Gpu.encode = function encode(message, writer) {
|
|
48991
|
-
if (!writer)
|
|
48992
|
-
writer = $Writer.create();
|
|
48993
|
-
return writer;
|
|
48994
|
-
};
|
|
49266
|
+
/**
|
|
49267
|
+
* LoreCommand govalCommand.
|
|
49268
|
+
* @member {replit.goval.api.GovalCommand|null|undefined} govalCommand
|
|
49269
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49270
|
+
* @instance
|
|
49271
|
+
*/
|
|
49272
|
+
LoreCommand.prototype.govalCommand = null;
|
|
48995
49273
|
|
|
48996
|
-
|
|
48997
|
-
|
|
48998
|
-
|
|
48999
|
-
|
|
49000
|
-
|
|
49001
|
-
|
|
49002
|
-
|
|
49003
|
-
* @returns {$protobuf.Writer} Writer
|
|
49004
|
-
*/
|
|
49005
|
-
Gpu.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49006
|
-
return this.encode(message, writer).ldelim();
|
|
49007
|
-
};
|
|
49274
|
+
/**
|
|
49275
|
+
* LoreCommand restore.
|
|
49276
|
+
* @member {replit.goval.api.Restore|null|undefined} restore
|
|
49277
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49278
|
+
* @instance
|
|
49279
|
+
*/
|
|
49280
|
+
LoreCommand.prototype.restore = null;
|
|
49008
49281
|
|
|
49009
|
-
|
|
49010
|
-
|
|
49011
|
-
* @function decode
|
|
49012
|
-
* @memberof replit.goval.api.features.Gpu
|
|
49013
|
-
* @static
|
|
49014
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49015
|
-
* @param {number} [length] Message length if known beforehand
|
|
49016
|
-
* @returns {replit.goval.api.features.Gpu} Gpu
|
|
49017
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49018
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49019
|
-
*/
|
|
49020
|
-
Gpu.decode = function decode(reader, length) {
|
|
49021
|
-
if (!(reader instanceof $Reader))
|
|
49022
|
-
reader = $Reader.create(reader);
|
|
49023
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.features.Gpu();
|
|
49024
|
-
while (reader.pos < end) {
|
|
49025
|
-
var tag = reader.uint32();
|
|
49026
|
-
switch (tag >>> 3) {
|
|
49027
|
-
default:
|
|
49028
|
-
reader.skipType(tag & 7);
|
|
49029
|
-
break;
|
|
49030
|
-
}
|
|
49031
|
-
}
|
|
49032
|
-
return message;
|
|
49033
|
-
};
|
|
49282
|
+
// OneOf field names bound to virtual getters and setters
|
|
49283
|
+
var $oneOfFields;
|
|
49034
49284
|
|
|
49035
|
-
|
|
49036
|
-
|
|
49037
|
-
|
|
49038
|
-
|
|
49039
|
-
|
|
49040
|
-
|
|
49041
|
-
|
|
49042
|
-
|
|
49043
|
-
|
|
49044
|
-
|
|
49045
|
-
Gpu.decodeDelimited = function decodeDelimited(reader) {
|
|
49046
|
-
if (!(reader instanceof $Reader))
|
|
49047
|
-
reader = new $Reader(reader);
|
|
49048
|
-
return this.decode(reader, reader.uint32());
|
|
49049
|
-
};
|
|
49285
|
+
/**
|
|
49286
|
+
* LoreCommand command.
|
|
49287
|
+
* @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"restore"|undefined} command
|
|
49288
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49289
|
+
* @instance
|
|
49290
|
+
*/
|
|
49291
|
+
Object.defineProperty(LoreCommand.prototype, "command", {
|
|
49292
|
+
get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "restore"]),
|
|
49293
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
49294
|
+
});
|
|
49050
49295
|
|
|
49051
|
-
|
|
49052
|
-
|
|
49053
|
-
|
|
49054
|
-
|
|
49055
|
-
|
|
49056
|
-
|
|
49057
|
-
|
|
49058
|
-
|
|
49059
|
-
|
|
49060
|
-
|
|
49061
|
-
|
|
49062
|
-
return null;
|
|
49063
|
-
};
|
|
49296
|
+
/**
|
|
49297
|
+
* Creates a new LoreCommand instance using the specified properties.
|
|
49298
|
+
* @function create
|
|
49299
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49300
|
+
* @static
|
|
49301
|
+
* @param {replit.goval.api.ILoreCommand=} [properties] Properties to set
|
|
49302
|
+
* @returns {replit.goval.api.LoreCommand} LoreCommand instance
|
|
49303
|
+
*/
|
|
49304
|
+
LoreCommand.create = function create(properties) {
|
|
49305
|
+
return LoreCommand.fromObject(properties);
|
|
49306
|
+
};
|
|
49064
49307
|
|
|
49065
|
-
|
|
49066
|
-
|
|
49067
|
-
|
|
49068
|
-
|
|
49069
|
-
|
|
49070
|
-
|
|
49071
|
-
|
|
49072
|
-
|
|
49073
|
-
|
|
49074
|
-
|
|
49075
|
-
|
|
49076
|
-
|
|
49077
|
-
|
|
49308
|
+
/**
|
|
49309
|
+
* Encodes the specified LoreCommand message. Does not implicitly {@link replit.goval.api.LoreCommand.verify|verify} messages.
|
|
49310
|
+
* @function encode
|
|
49311
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49312
|
+
* @static
|
|
49313
|
+
* @param {replit.goval.api.LoreCommand} message LoreCommand message or plain object to encode
|
|
49314
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49315
|
+
* @returns {$protobuf.Writer} Writer
|
|
49316
|
+
*/
|
|
49317
|
+
LoreCommand.encode = function encode(message, writer) {
|
|
49318
|
+
if (!writer)
|
|
49319
|
+
writer = $Writer.create();
|
|
49320
|
+
if (message.clusterTransfer != null && Object.hasOwnProperty.call(message, "clusterTransfer"))
|
|
49321
|
+
$root.replit.goval.api.ClusterTransfer.encode(message.clusterTransfer, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
49322
|
+
if (message.softTakedown != null && Object.hasOwnProperty.call(message, "softTakedown"))
|
|
49323
|
+
$root.replit.goval.api.SoftTakedown.encode(message.softTakedown, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
49324
|
+
if (message.govalCommand != null && Object.hasOwnProperty.call(message, "govalCommand"))
|
|
49325
|
+
$root.replit.goval.api.GovalCommand.encode(message.govalCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
49326
|
+
if (message.restore != null && Object.hasOwnProperty.call(message, "restore"))
|
|
49327
|
+
$root.replit.goval.api.Restore.encode(message.restore, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
49328
|
+
return writer;
|
|
49329
|
+
};
|
|
49078
49330
|
|
|
49079
|
-
|
|
49080
|
-
|
|
49081
|
-
|
|
49082
|
-
|
|
49083
|
-
|
|
49084
|
-
|
|
49085
|
-
|
|
49086
|
-
|
|
49087
|
-
|
|
49088
|
-
|
|
49089
|
-
|
|
49090
|
-
|
|
49331
|
+
/**
|
|
49332
|
+
* Encodes the specified LoreCommand message, length delimited. Does not implicitly {@link replit.goval.api.LoreCommand.verify|verify} messages.
|
|
49333
|
+
* @function encodeDelimited
|
|
49334
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49335
|
+
* @static
|
|
49336
|
+
* @param {replit.goval.api.LoreCommand} message LoreCommand message or plain object to encode
|
|
49337
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49338
|
+
* @returns {$protobuf.Writer} Writer
|
|
49339
|
+
*/
|
|
49340
|
+
LoreCommand.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49341
|
+
return this.encode(message, writer).ldelim();
|
|
49342
|
+
};
|
|
49091
49343
|
|
|
49092
|
-
|
|
49093
|
-
|
|
49094
|
-
|
|
49095
|
-
|
|
49096
|
-
|
|
49097
|
-
|
|
49098
|
-
|
|
49099
|
-
|
|
49100
|
-
|
|
49101
|
-
|
|
49344
|
+
/**
|
|
49345
|
+
* Decodes a LoreCommand message from the specified reader or buffer.
|
|
49346
|
+
* @function decode
|
|
49347
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49348
|
+
* @static
|
|
49349
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49350
|
+
* @param {number} [length] Message length if known beforehand
|
|
49351
|
+
* @returns {replit.goval.api.LoreCommand} LoreCommand
|
|
49352
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49353
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49354
|
+
*/
|
|
49355
|
+
LoreCommand.decode = function decode(reader, length) {
|
|
49356
|
+
if (!(reader instanceof $Reader))
|
|
49357
|
+
reader = $Reader.create(reader);
|
|
49358
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.LoreCommand();
|
|
49359
|
+
while (reader.pos < end) {
|
|
49360
|
+
var tag = reader.uint32();
|
|
49361
|
+
switch (tag >>> 3) {
|
|
49362
|
+
case 1:
|
|
49363
|
+
message.clusterTransfer = $root.replit.goval.api.ClusterTransfer.decode(reader, reader.uint32());
|
|
49364
|
+
break;
|
|
49365
|
+
case 2:
|
|
49366
|
+
message.softTakedown = $root.replit.goval.api.SoftTakedown.decode(reader, reader.uint32());
|
|
49367
|
+
break;
|
|
49368
|
+
case 3:
|
|
49369
|
+
message.govalCommand = $root.replit.goval.api.GovalCommand.decode(reader, reader.uint32());
|
|
49370
|
+
break;
|
|
49371
|
+
case 4:
|
|
49372
|
+
message.restore = $root.replit.goval.api.Restore.decode(reader, reader.uint32());
|
|
49373
|
+
break;
|
|
49374
|
+
default:
|
|
49375
|
+
reader.skipType(tag & 7);
|
|
49376
|
+
break;
|
|
49377
|
+
}
|
|
49378
|
+
}
|
|
49379
|
+
return message;
|
|
49380
|
+
};
|
|
49102
49381
|
|
|
49103
|
-
|
|
49104
|
-
|
|
49382
|
+
/**
|
|
49383
|
+
* Decodes a LoreCommand message from the specified reader or buffer, length delimited.
|
|
49384
|
+
* @function decodeDelimited
|
|
49385
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49386
|
+
* @static
|
|
49387
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49388
|
+
* @returns {replit.goval.api.LoreCommand} LoreCommand
|
|
49389
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49390
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49391
|
+
*/
|
|
49392
|
+
LoreCommand.decodeDelimited = function decodeDelimited(reader) {
|
|
49393
|
+
if (!(reader instanceof $Reader))
|
|
49394
|
+
reader = new $Reader(reader);
|
|
49395
|
+
return this.decode(reader, reader.uint32());
|
|
49396
|
+
};
|
|
49105
49397
|
|
|
49106
|
-
|
|
49398
|
+
/**
|
|
49399
|
+
* Verifies a LoreCommand message.
|
|
49400
|
+
* @function verify
|
|
49401
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49402
|
+
* @static
|
|
49403
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49404
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49405
|
+
*/
|
|
49406
|
+
LoreCommand.verify = function verify(message) {
|
|
49407
|
+
if (typeof message !== "object" || message === null)
|
|
49408
|
+
return "object expected";
|
|
49409
|
+
var properties = {};
|
|
49410
|
+
if (message.clusterTransfer != null && message.hasOwnProperty("clusterTransfer")) {
|
|
49411
|
+
properties.command = 1;
|
|
49412
|
+
{
|
|
49413
|
+
var error = $root.replit.goval.api.ClusterTransfer.verify(message.clusterTransfer);
|
|
49414
|
+
if (error)
|
|
49415
|
+
return "clusterTransfer." + error;
|
|
49416
|
+
}
|
|
49417
|
+
}
|
|
49418
|
+
if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
|
|
49419
|
+
if (properties.command === 1)
|
|
49420
|
+
return "command: multiple values";
|
|
49421
|
+
properties.command = 1;
|
|
49422
|
+
{
|
|
49423
|
+
var error = $root.replit.goval.api.SoftTakedown.verify(message.softTakedown);
|
|
49424
|
+
if (error)
|
|
49425
|
+
return "softTakedown." + error;
|
|
49426
|
+
}
|
|
49427
|
+
}
|
|
49428
|
+
if (message.govalCommand != null && message.hasOwnProperty("govalCommand")) {
|
|
49429
|
+
if (properties.command === 1)
|
|
49430
|
+
return "command: multiple values";
|
|
49431
|
+
properties.command = 1;
|
|
49432
|
+
{
|
|
49433
|
+
var error = $root.replit.goval.api.GovalCommand.verify(message.govalCommand);
|
|
49434
|
+
if (error)
|
|
49435
|
+
return "govalCommand." + error;
|
|
49436
|
+
}
|
|
49437
|
+
}
|
|
49438
|
+
if (message.restore != null && message.hasOwnProperty("restore")) {
|
|
49439
|
+
if (properties.command === 1)
|
|
49440
|
+
return "command: multiple values";
|
|
49441
|
+
properties.command = 1;
|
|
49442
|
+
{
|
|
49443
|
+
var error = $root.replit.goval.api.Restore.verify(message.restore);
|
|
49444
|
+
if (error)
|
|
49445
|
+
return "restore." + error;
|
|
49446
|
+
}
|
|
49447
|
+
}
|
|
49448
|
+
return null;
|
|
49449
|
+
};
|
|
49107
49450
|
|
|
49108
|
-
|
|
49109
|
-
|
|
49110
|
-
|
|
49111
|
-
|
|
49112
|
-
|
|
49451
|
+
/**
|
|
49452
|
+
* Creates a LoreCommand message from a plain object. Also converts values to their respective internal types.
|
|
49453
|
+
* @function fromObject
|
|
49454
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49455
|
+
* @static
|
|
49456
|
+
* @param {Object.<string,*>} object Plain object
|
|
49457
|
+
* @returns {replit.goval.api.LoreCommand} LoreCommand
|
|
49458
|
+
*/
|
|
49459
|
+
LoreCommand.fromObject = function fromObject(object) {
|
|
49460
|
+
if (object instanceof $root.replit.goval.api.LoreCommand)
|
|
49461
|
+
return object;
|
|
49462
|
+
var message = new $root.replit.goval.api.LoreCommand();
|
|
49463
|
+
if (object.clusterTransfer != null) {
|
|
49464
|
+
if (typeof object.clusterTransfer !== "object")
|
|
49465
|
+
throw TypeError(".replit.goval.api.LoreCommand.clusterTransfer: object expected");
|
|
49466
|
+
message.clusterTransfer = $root.replit.goval.api.ClusterTransfer.fromObject(object.clusterTransfer);
|
|
49467
|
+
}
|
|
49468
|
+
if (object.softTakedown != null) {
|
|
49469
|
+
if (typeof object.softTakedown !== "object")
|
|
49470
|
+
throw TypeError(".replit.goval.api.LoreCommand.softTakedown: object expected");
|
|
49471
|
+
message.softTakedown = $root.replit.goval.api.SoftTakedown.fromObject(object.softTakedown);
|
|
49472
|
+
}
|
|
49473
|
+
if (object.govalCommand != null) {
|
|
49474
|
+
if (typeof object.govalCommand !== "object")
|
|
49475
|
+
throw TypeError(".replit.goval.api.LoreCommand.govalCommand: object expected");
|
|
49476
|
+
message.govalCommand = $root.replit.goval.api.GovalCommand.fromObject(object.govalCommand);
|
|
49477
|
+
}
|
|
49478
|
+
if (object.restore != null) {
|
|
49479
|
+
if (typeof object.restore !== "object")
|
|
49480
|
+
throw TypeError(".replit.goval.api.LoreCommand.restore: object expected");
|
|
49481
|
+
message.restore = $root.replit.goval.api.Restore.fromObject(object.restore);
|
|
49482
|
+
}
|
|
49483
|
+
return message;
|
|
49484
|
+
};
|
|
49113
49485
|
|
|
49114
|
-
|
|
49115
|
-
|
|
49116
|
-
|
|
49117
|
-
|
|
49118
|
-
|
|
49119
|
-
|
|
49120
|
-
|
|
49121
|
-
|
|
49122
|
-
|
|
49123
|
-
|
|
49124
|
-
|
|
49125
|
-
|
|
49486
|
+
/**
|
|
49487
|
+
* Creates a plain object from a LoreCommand message. Also converts values to other types if specified.
|
|
49488
|
+
* @function toObject
|
|
49489
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49490
|
+
* @static
|
|
49491
|
+
* @param {replit.goval.api.LoreCommand} message LoreCommand
|
|
49492
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49493
|
+
* @returns {Object.<string,*>} Plain object
|
|
49494
|
+
*/
|
|
49495
|
+
LoreCommand.toObject = function toObject(message, options) {
|
|
49496
|
+
if (!options)
|
|
49497
|
+
options = {};
|
|
49498
|
+
var object = {};
|
|
49499
|
+
if (message.clusterTransfer != null && message.hasOwnProperty("clusterTransfer")) {
|
|
49500
|
+
object.clusterTransfer = $root.replit.goval.api.ClusterTransfer.toObject(message.clusterTransfer, options);
|
|
49501
|
+
if (options.oneofs)
|
|
49502
|
+
object.command = "clusterTransfer";
|
|
49126
49503
|
}
|
|
49504
|
+
if (message.softTakedown != null && message.hasOwnProperty("softTakedown")) {
|
|
49505
|
+
object.softTakedown = $root.replit.goval.api.SoftTakedown.toObject(message.softTakedown, options);
|
|
49506
|
+
if (options.oneofs)
|
|
49507
|
+
object.command = "softTakedown";
|
|
49508
|
+
}
|
|
49509
|
+
if (message.govalCommand != null && message.hasOwnProperty("govalCommand")) {
|
|
49510
|
+
object.govalCommand = $root.replit.goval.api.GovalCommand.toObject(message.govalCommand, options);
|
|
49511
|
+
if (options.oneofs)
|
|
49512
|
+
object.command = "govalCommand";
|
|
49513
|
+
}
|
|
49514
|
+
if (message.restore != null && message.hasOwnProperty("restore")) {
|
|
49515
|
+
object.restore = $root.replit.goval.api.Restore.toObject(message.restore, options);
|
|
49516
|
+
if (options.oneofs)
|
|
49517
|
+
object.command = "restore";
|
|
49518
|
+
}
|
|
49519
|
+
return object;
|
|
49520
|
+
};
|
|
49127
49521
|
|
|
49128
|
-
|
|
49129
|
-
|
|
49130
|
-
|
|
49131
|
-
|
|
49132
|
-
|
|
49133
|
-
|
|
49134
|
-
|
|
49135
|
-
|
|
49136
|
-
|
|
49137
|
-
|
|
49138
|
-
};
|
|
49522
|
+
/**
|
|
49523
|
+
* Converts this LoreCommand to JSON.
|
|
49524
|
+
* @function toJSON
|
|
49525
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49526
|
+
* @instance
|
|
49527
|
+
* @returns {Object.<string,*>} JSON object
|
|
49528
|
+
*/
|
|
49529
|
+
LoreCommand.prototype.toJSON = function toJSON() {
|
|
49530
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49531
|
+
};
|
|
49139
49532
|
|
|
49140
|
-
|
|
49141
|
-
|
|
49142
|
-
|
|
49143
|
-
|
|
49144
|
-
|
|
49145
|
-
|
|
49533
|
+
return LoreCommand;
|
|
49534
|
+
})();
|
|
49535
|
+
|
|
49536
|
+
api.ClusterTransfer = (function() {
|
|
49537
|
+
|
|
49538
|
+
/**
|
|
49539
|
+
* Properties of a ClusterTransfer.
|
|
49540
|
+
* @memberof replit.goval.api
|
|
49541
|
+
* @interface IClusterTransfer
|
|
49542
|
+
* @property {string|null} [replId] ClusterTransfer replId
|
|
49543
|
+
* @property {string|null} [user] ClusterTransfer user
|
|
49544
|
+
* @property {string|null} [newClusterId] ClusterTransfer newClusterId
|
|
49545
|
+
* @property {string|null} [transferId] ClusterTransfer transferId
|
|
49546
|
+
*/
|
|
49547
|
+
|
|
49548
|
+
/**
|
|
49549
|
+
* Constructs a new ClusterTransfer.
|
|
49550
|
+
* @memberof replit.goval.api
|
|
49551
|
+
* @classdesc Represents a ClusterTransfer.
|
|
49552
|
+
* @constructor
|
|
49553
|
+
* @param {replit.goval.api.IClusterTransfer=} [properties] Properties to set
|
|
49554
|
+
*/
|
|
49555
|
+
function ClusterTransfer(properties) {
|
|
49556
|
+
if (properties)
|
|
49557
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49558
|
+
if (properties[keys[i]] != null)
|
|
49559
|
+
this[keys[i]] = properties[keys[i]];
|
|
49560
|
+
}
|
|
49561
|
+
|
|
49562
|
+
/**
|
|
49563
|
+
* ClusterTransfer replId.
|
|
49564
|
+
* @member {string} replId
|
|
49565
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49566
|
+
* @instance
|
|
49567
|
+
*/
|
|
49568
|
+
ClusterTransfer.prototype.replId = "";
|
|
49569
|
+
|
|
49570
|
+
/**
|
|
49571
|
+
* ClusterTransfer user.
|
|
49572
|
+
* @member {string} user
|
|
49573
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49574
|
+
* @instance
|
|
49575
|
+
*/
|
|
49576
|
+
ClusterTransfer.prototype.user = "";
|
|
49577
|
+
|
|
49578
|
+
/**
|
|
49579
|
+
* ClusterTransfer newClusterId.
|
|
49580
|
+
* @member {string} newClusterId
|
|
49581
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49582
|
+
* @instance
|
|
49583
|
+
*/
|
|
49584
|
+
ClusterTransfer.prototype.newClusterId = "";
|
|
49585
|
+
|
|
49586
|
+
/**
|
|
49587
|
+
* ClusterTransfer transferId.
|
|
49588
|
+
* @member {string} transferId
|
|
49589
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49590
|
+
* @instance
|
|
49591
|
+
*/
|
|
49592
|
+
ClusterTransfer.prototype.transferId = "";
|
|
49593
|
+
|
|
49594
|
+
/**
|
|
49595
|
+
* Creates a new ClusterTransfer instance using the specified properties.
|
|
49596
|
+
* @function create
|
|
49597
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49598
|
+
* @static
|
|
49599
|
+
* @param {replit.goval.api.IClusterTransfer=} [properties] Properties to set
|
|
49600
|
+
* @returns {replit.goval.api.ClusterTransfer} ClusterTransfer instance
|
|
49601
|
+
*/
|
|
49602
|
+
ClusterTransfer.create = function create(properties) {
|
|
49603
|
+
return ClusterTransfer.fromObject(properties);
|
|
49604
|
+
};
|
|
49605
|
+
|
|
49606
|
+
/**
|
|
49607
|
+
* Encodes the specified ClusterTransfer message. Does not implicitly {@link replit.goval.api.ClusterTransfer.verify|verify} messages.
|
|
49608
|
+
* @function encode
|
|
49609
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49610
|
+
* @static
|
|
49611
|
+
* @param {replit.goval.api.ClusterTransfer} message ClusterTransfer message or plain object to encode
|
|
49612
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49613
|
+
* @returns {$protobuf.Writer} Writer
|
|
49614
|
+
*/
|
|
49615
|
+
ClusterTransfer.encode = function encode(message, writer) {
|
|
49616
|
+
if (!writer)
|
|
49617
|
+
writer = $Writer.create();
|
|
49618
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
49619
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
49620
|
+
if (message.user != null && Object.hasOwnProperty.call(message, "user"))
|
|
49621
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.user);
|
|
49622
|
+
if (message.newClusterId != null && Object.hasOwnProperty.call(message, "newClusterId"))
|
|
49623
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.newClusterId);
|
|
49624
|
+
if (message.transferId != null && Object.hasOwnProperty.call(message, "transferId"))
|
|
49625
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.transferId);
|
|
49626
|
+
return writer;
|
|
49627
|
+
};
|
|
49628
|
+
|
|
49629
|
+
/**
|
|
49630
|
+
* Encodes the specified ClusterTransfer message, length delimited. Does not implicitly {@link replit.goval.api.ClusterTransfer.verify|verify} messages.
|
|
49631
|
+
* @function encodeDelimited
|
|
49632
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49633
|
+
* @static
|
|
49634
|
+
* @param {replit.goval.api.ClusterTransfer} message ClusterTransfer message or plain object to encode
|
|
49635
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49636
|
+
* @returns {$protobuf.Writer} Writer
|
|
49637
|
+
*/
|
|
49638
|
+
ClusterTransfer.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49639
|
+
return this.encode(message, writer).ldelim();
|
|
49640
|
+
};
|
|
49641
|
+
|
|
49642
|
+
/**
|
|
49643
|
+
* Decodes a ClusterTransfer message from the specified reader or buffer.
|
|
49644
|
+
* @function decode
|
|
49645
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49646
|
+
* @static
|
|
49647
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49648
|
+
* @param {number} [length] Message length if known beforehand
|
|
49649
|
+
* @returns {replit.goval.api.ClusterTransfer} ClusterTransfer
|
|
49650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49652
|
+
*/
|
|
49653
|
+
ClusterTransfer.decode = function decode(reader, length) {
|
|
49654
|
+
if (!(reader instanceof $Reader))
|
|
49655
|
+
reader = $Reader.create(reader);
|
|
49656
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ClusterTransfer();
|
|
49657
|
+
while (reader.pos < end) {
|
|
49658
|
+
var tag = reader.uint32();
|
|
49659
|
+
switch (tag >>> 3) {
|
|
49660
|
+
case 1:
|
|
49661
|
+
message.replId = reader.string();
|
|
49662
|
+
break;
|
|
49663
|
+
case 2:
|
|
49664
|
+
message.user = reader.string();
|
|
49665
|
+
break;
|
|
49666
|
+
case 3:
|
|
49667
|
+
message.newClusterId = reader.string();
|
|
49668
|
+
break;
|
|
49669
|
+
case 4:
|
|
49670
|
+
message.transferId = reader.string();
|
|
49671
|
+
break;
|
|
49672
|
+
default:
|
|
49673
|
+
reader.skipType(tag & 7);
|
|
49674
|
+
break;
|
|
49675
|
+
}
|
|
49676
|
+
}
|
|
49677
|
+
return message;
|
|
49678
|
+
};
|
|
49679
|
+
|
|
49680
|
+
/**
|
|
49681
|
+
* Decodes a ClusterTransfer message from the specified reader or buffer, length delimited.
|
|
49682
|
+
* @function decodeDelimited
|
|
49683
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49684
|
+
* @static
|
|
49685
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49686
|
+
* @returns {replit.goval.api.ClusterTransfer} ClusterTransfer
|
|
49687
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49688
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49689
|
+
*/
|
|
49690
|
+
ClusterTransfer.decodeDelimited = function decodeDelimited(reader) {
|
|
49691
|
+
if (!(reader instanceof $Reader))
|
|
49692
|
+
reader = new $Reader(reader);
|
|
49693
|
+
return this.decode(reader, reader.uint32());
|
|
49694
|
+
};
|
|
49695
|
+
|
|
49696
|
+
/**
|
|
49697
|
+
* Verifies a ClusterTransfer message.
|
|
49698
|
+
* @function verify
|
|
49699
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49700
|
+
* @static
|
|
49701
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49702
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49703
|
+
*/
|
|
49704
|
+
ClusterTransfer.verify = function verify(message) {
|
|
49705
|
+
if (typeof message !== "object" || message === null)
|
|
49706
|
+
return "object expected";
|
|
49707
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
49708
|
+
if (!$util.isString(message.replId))
|
|
49709
|
+
return "replId: string expected";
|
|
49710
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
49711
|
+
if (!$util.isString(message.user))
|
|
49712
|
+
return "user: string expected";
|
|
49713
|
+
if (message.newClusterId != null && message.hasOwnProperty("newClusterId"))
|
|
49714
|
+
if (!$util.isString(message.newClusterId))
|
|
49715
|
+
return "newClusterId: string expected";
|
|
49716
|
+
if (message.transferId != null && message.hasOwnProperty("transferId"))
|
|
49717
|
+
if (!$util.isString(message.transferId))
|
|
49718
|
+
return "transferId: string expected";
|
|
49719
|
+
return null;
|
|
49720
|
+
};
|
|
49721
|
+
|
|
49722
|
+
/**
|
|
49723
|
+
* Creates a ClusterTransfer message from a plain object. Also converts values to their respective internal types.
|
|
49724
|
+
* @function fromObject
|
|
49725
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49726
|
+
* @static
|
|
49727
|
+
* @param {Object.<string,*>} object Plain object
|
|
49728
|
+
* @returns {replit.goval.api.ClusterTransfer} ClusterTransfer
|
|
49729
|
+
*/
|
|
49730
|
+
ClusterTransfer.fromObject = function fromObject(object) {
|
|
49731
|
+
if (object instanceof $root.replit.goval.api.ClusterTransfer)
|
|
49732
|
+
return object;
|
|
49733
|
+
var message = new $root.replit.goval.api.ClusterTransfer();
|
|
49734
|
+
if (object.replId != null)
|
|
49735
|
+
message.replId = String(object.replId);
|
|
49736
|
+
if (object.user != null)
|
|
49737
|
+
message.user = String(object.user);
|
|
49738
|
+
if (object.newClusterId != null)
|
|
49739
|
+
message.newClusterId = String(object.newClusterId);
|
|
49740
|
+
if (object.transferId != null)
|
|
49741
|
+
message.transferId = String(object.transferId);
|
|
49742
|
+
return message;
|
|
49743
|
+
};
|
|
49744
|
+
|
|
49745
|
+
/**
|
|
49746
|
+
* Creates a plain object from a ClusterTransfer message. Also converts values to other types if specified.
|
|
49747
|
+
* @function toObject
|
|
49748
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49749
|
+
* @static
|
|
49750
|
+
* @param {replit.goval.api.ClusterTransfer} message ClusterTransfer
|
|
49751
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49752
|
+
* @returns {Object.<string,*>} Plain object
|
|
49753
|
+
*/
|
|
49754
|
+
ClusterTransfer.toObject = function toObject(message, options) {
|
|
49755
|
+
if (!options)
|
|
49756
|
+
options = {};
|
|
49757
|
+
var object = {};
|
|
49758
|
+
if (options.defaults) {
|
|
49759
|
+
object.replId = "";
|
|
49760
|
+
object.user = "";
|
|
49761
|
+
object.newClusterId = "";
|
|
49762
|
+
object.transferId = "";
|
|
49763
|
+
}
|
|
49764
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
49765
|
+
object.replId = message.replId;
|
|
49766
|
+
if (message.user != null && message.hasOwnProperty("user"))
|
|
49767
|
+
object.user = message.user;
|
|
49768
|
+
if (message.newClusterId != null && message.hasOwnProperty("newClusterId"))
|
|
49769
|
+
object.newClusterId = message.newClusterId;
|
|
49770
|
+
if (message.transferId != null && message.hasOwnProperty("transferId"))
|
|
49771
|
+
object.transferId = message.transferId;
|
|
49772
|
+
return object;
|
|
49773
|
+
};
|
|
49774
|
+
|
|
49775
|
+
/**
|
|
49776
|
+
* Converts this ClusterTransfer to JSON.
|
|
49777
|
+
* @function toJSON
|
|
49778
|
+
* @memberof replit.goval.api.ClusterTransfer
|
|
49779
|
+
* @instance
|
|
49780
|
+
* @returns {Object.<string,*>} JSON object
|
|
49781
|
+
*/
|
|
49782
|
+
ClusterTransfer.prototype.toJSON = function toJSON() {
|
|
49783
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49784
|
+
};
|
|
49785
|
+
|
|
49786
|
+
return ClusterTransfer;
|
|
49787
|
+
})();
|
|
49788
|
+
|
|
49789
|
+
api.SoftTakedown = (function() {
|
|
49790
|
+
|
|
49791
|
+
/**
|
|
49792
|
+
* Properties of a SoftTakedown.
|
|
49793
|
+
* @memberof replit.goval.api
|
|
49794
|
+
* @interface ISoftTakedown
|
|
49795
|
+
* @property {string|null} [replId] SoftTakedown replId
|
|
49796
|
+
* @property {string|null} [softTakedownId] SoftTakedown softTakedownId
|
|
49797
|
+
*/
|
|
49798
|
+
|
|
49799
|
+
/**
|
|
49800
|
+
* Constructs a new SoftTakedown.
|
|
49801
|
+
* @memberof replit.goval.api
|
|
49802
|
+
* @classdesc Represents a SoftTakedown.
|
|
49803
|
+
* @constructor
|
|
49804
|
+
* @param {replit.goval.api.ISoftTakedown=} [properties] Properties to set
|
|
49805
|
+
*/
|
|
49806
|
+
function SoftTakedown(properties) {
|
|
49807
|
+
if (properties)
|
|
49808
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
49809
|
+
if (properties[keys[i]] != null)
|
|
49810
|
+
this[keys[i]] = properties[keys[i]];
|
|
49811
|
+
}
|
|
49812
|
+
|
|
49813
|
+
/**
|
|
49814
|
+
* SoftTakedown replId.
|
|
49815
|
+
* @member {string} replId
|
|
49816
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49817
|
+
* @instance
|
|
49818
|
+
*/
|
|
49819
|
+
SoftTakedown.prototype.replId = "";
|
|
49820
|
+
|
|
49821
|
+
/**
|
|
49822
|
+
* SoftTakedown softTakedownId.
|
|
49823
|
+
* @member {string} softTakedownId
|
|
49824
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49825
|
+
* @instance
|
|
49826
|
+
*/
|
|
49827
|
+
SoftTakedown.prototype.softTakedownId = "";
|
|
49828
|
+
|
|
49829
|
+
/**
|
|
49830
|
+
* Creates a new SoftTakedown instance using the specified properties.
|
|
49831
|
+
* @function create
|
|
49832
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49833
|
+
* @static
|
|
49834
|
+
* @param {replit.goval.api.ISoftTakedown=} [properties] Properties to set
|
|
49835
|
+
* @returns {replit.goval.api.SoftTakedown} SoftTakedown instance
|
|
49836
|
+
*/
|
|
49837
|
+
SoftTakedown.create = function create(properties) {
|
|
49838
|
+
return SoftTakedown.fromObject(properties);
|
|
49839
|
+
};
|
|
49840
|
+
|
|
49841
|
+
/**
|
|
49842
|
+
* Encodes the specified SoftTakedown message. Does not implicitly {@link replit.goval.api.SoftTakedown.verify|verify} messages.
|
|
49843
|
+
* @function encode
|
|
49844
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49845
|
+
* @static
|
|
49846
|
+
* @param {replit.goval.api.SoftTakedown} message SoftTakedown message or plain object to encode
|
|
49847
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49848
|
+
* @returns {$protobuf.Writer} Writer
|
|
49849
|
+
*/
|
|
49850
|
+
SoftTakedown.encode = function encode(message, writer) {
|
|
49851
|
+
if (!writer)
|
|
49852
|
+
writer = $Writer.create();
|
|
49853
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
49854
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
49855
|
+
if (message.softTakedownId != null && Object.hasOwnProperty.call(message, "softTakedownId"))
|
|
49856
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.softTakedownId);
|
|
49857
|
+
return writer;
|
|
49858
|
+
};
|
|
49859
|
+
|
|
49860
|
+
/**
|
|
49861
|
+
* Encodes the specified SoftTakedown message, length delimited. Does not implicitly {@link replit.goval.api.SoftTakedown.verify|verify} messages.
|
|
49862
|
+
* @function encodeDelimited
|
|
49863
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49864
|
+
* @static
|
|
49865
|
+
* @param {replit.goval.api.SoftTakedown} message SoftTakedown message or plain object to encode
|
|
49866
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49867
|
+
* @returns {$protobuf.Writer} Writer
|
|
49868
|
+
*/
|
|
49869
|
+
SoftTakedown.encodeDelimited = function encodeDelimited(message, writer) {
|
|
49870
|
+
return this.encode(message, writer).ldelim();
|
|
49871
|
+
};
|
|
49872
|
+
|
|
49873
|
+
/**
|
|
49874
|
+
* Decodes a SoftTakedown message from the specified reader or buffer.
|
|
49875
|
+
* @function decode
|
|
49876
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49877
|
+
* @static
|
|
49878
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49879
|
+
* @param {number} [length] Message length if known beforehand
|
|
49880
|
+
* @returns {replit.goval.api.SoftTakedown} SoftTakedown
|
|
49881
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49882
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49883
|
+
*/
|
|
49884
|
+
SoftTakedown.decode = function decode(reader, length) {
|
|
49885
|
+
if (!(reader instanceof $Reader))
|
|
49886
|
+
reader = $Reader.create(reader);
|
|
49887
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.SoftTakedown();
|
|
49888
|
+
while (reader.pos < end) {
|
|
49889
|
+
var tag = reader.uint32();
|
|
49890
|
+
switch (tag >>> 3) {
|
|
49891
|
+
case 1:
|
|
49892
|
+
message.replId = reader.string();
|
|
49893
|
+
break;
|
|
49894
|
+
case 2:
|
|
49895
|
+
message.softTakedownId = reader.string();
|
|
49896
|
+
break;
|
|
49897
|
+
default:
|
|
49898
|
+
reader.skipType(tag & 7);
|
|
49899
|
+
break;
|
|
49900
|
+
}
|
|
49901
|
+
}
|
|
49902
|
+
return message;
|
|
49903
|
+
};
|
|
49904
|
+
|
|
49905
|
+
/**
|
|
49906
|
+
* Decodes a SoftTakedown message from the specified reader or buffer, length delimited.
|
|
49907
|
+
* @function decodeDelimited
|
|
49908
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49909
|
+
* @static
|
|
49910
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
49911
|
+
* @returns {replit.goval.api.SoftTakedown} SoftTakedown
|
|
49912
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
49913
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
49914
|
+
*/
|
|
49915
|
+
SoftTakedown.decodeDelimited = function decodeDelimited(reader) {
|
|
49916
|
+
if (!(reader instanceof $Reader))
|
|
49917
|
+
reader = new $Reader(reader);
|
|
49918
|
+
return this.decode(reader, reader.uint32());
|
|
49919
|
+
};
|
|
49920
|
+
|
|
49921
|
+
/**
|
|
49922
|
+
* Verifies a SoftTakedown message.
|
|
49923
|
+
* @function verify
|
|
49924
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49925
|
+
* @static
|
|
49926
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
49927
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
49928
|
+
*/
|
|
49929
|
+
SoftTakedown.verify = function verify(message) {
|
|
49930
|
+
if (typeof message !== "object" || message === null)
|
|
49931
|
+
return "object expected";
|
|
49932
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
49933
|
+
if (!$util.isString(message.replId))
|
|
49934
|
+
return "replId: string expected";
|
|
49935
|
+
if (message.softTakedownId != null && message.hasOwnProperty("softTakedownId"))
|
|
49936
|
+
if (!$util.isString(message.softTakedownId))
|
|
49937
|
+
return "softTakedownId: string expected";
|
|
49938
|
+
return null;
|
|
49939
|
+
};
|
|
49940
|
+
|
|
49941
|
+
/**
|
|
49942
|
+
* Creates a SoftTakedown message from a plain object. Also converts values to their respective internal types.
|
|
49943
|
+
* @function fromObject
|
|
49944
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49945
|
+
* @static
|
|
49946
|
+
* @param {Object.<string,*>} object Plain object
|
|
49947
|
+
* @returns {replit.goval.api.SoftTakedown} SoftTakedown
|
|
49948
|
+
*/
|
|
49949
|
+
SoftTakedown.fromObject = function fromObject(object) {
|
|
49950
|
+
if (object instanceof $root.replit.goval.api.SoftTakedown)
|
|
49951
|
+
return object;
|
|
49952
|
+
var message = new $root.replit.goval.api.SoftTakedown();
|
|
49953
|
+
if (object.replId != null)
|
|
49954
|
+
message.replId = String(object.replId);
|
|
49955
|
+
if (object.softTakedownId != null)
|
|
49956
|
+
message.softTakedownId = String(object.softTakedownId);
|
|
49957
|
+
return message;
|
|
49958
|
+
};
|
|
49959
|
+
|
|
49960
|
+
/**
|
|
49961
|
+
* Creates a plain object from a SoftTakedown message. Also converts values to other types if specified.
|
|
49962
|
+
* @function toObject
|
|
49963
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49964
|
+
* @static
|
|
49965
|
+
* @param {replit.goval.api.SoftTakedown} message SoftTakedown
|
|
49966
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
49967
|
+
* @returns {Object.<string,*>} Plain object
|
|
49968
|
+
*/
|
|
49969
|
+
SoftTakedown.toObject = function toObject(message, options) {
|
|
49970
|
+
if (!options)
|
|
49971
|
+
options = {};
|
|
49972
|
+
var object = {};
|
|
49973
|
+
if (options.defaults) {
|
|
49974
|
+
object.replId = "";
|
|
49975
|
+
object.softTakedownId = "";
|
|
49976
|
+
}
|
|
49977
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
49978
|
+
object.replId = message.replId;
|
|
49979
|
+
if (message.softTakedownId != null && message.hasOwnProperty("softTakedownId"))
|
|
49980
|
+
object.softTakedownId = message.softTakedownId;
|
|
49981
|
+
return object;
|
|
49982
|
+
};
|
|
49983
|
+
|
|
49984
|
+
/**
|
|
49985
|
+
* Converts this SoftTakedown to JSON.
|
|
49986
|
+
* @function toJSON
|
|
49987
|
+
* @memberof replit.goval.api.SoftTakedown
|
|
49988
|
+
* @instance
|
|
49989
|
+
* @returns {Object.<string,*>} JSON object
|
|
49990
|
+
*/
|
|
49991
|
+
SoftTakedown.prototype.toJSON = function toJSON() {
|
|
49992
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
49993
|
+
};
|
|
49994
|
+
|
|
49995
|
+
return SoftTakedown;
|
|
49996
|
+
})();
|
|
49997
|
+
|
|
49998
|
+
api.GovalCommand = (function() {
|
|
49999
|
+
|
|
50000
|
+
/**
|
|
50001
|
+
* Properties of a GovalCommand.
|
|
50002
|
+
* @memberof replit.goval.api
|
|
50003
|
+
* @interface IGovalCommand
|
|
50004
|
+
* @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
|
|
50005
|
+
* @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
|
|
50006
|
+
*/
|
|
50007
|
+
|
|
50008
|
+
/**
|
|
50009
|
+
* Constructs a new GovalCommand.
|
|
50010
|
+
* @memberof replit.goval.api
|
|
50011
|
+
* @classdesc Represents a GovalCommand.
|
|
50012
|
+
* @constructor
|
|
50013
|
+
* @param {replit.goval.api.IGovalCommand=} [properties] Properties to set
|
|
50014
|
+
*/
|
|
50015
|
+
function GovalCommand(properties) {
|
|
50016
|
+
if (properties)
|
|
50017
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50018
|
+
if (properties[keys[i]] != null)
|
|
50019
|
+
this[keys[i]] = properties[keys[i]];
|
|
50020
|
+
}
|
|
50021
|
+
|
|
50022
|
+
/**
|
|
50023
|
+
* GovalCommand updateMetadata.
|
|
50024
|
+
* @member {replit.goval.api.repl.Metadata|null|undefined} updateMetadata
|
|
50025
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50026
|
+
* @instance
|
|
50027
|
+
*/
|
|
50028
|
+
GovalCommand.prototype.updateMetadata = null;
|
|
50029
|
+
|
|
50030
|
+
/**
|
|
50031
|
+
* GovalCommand partialUpdateMetadata.
|
|
50032
|
+
* @member {replit.goval.api.PartialUpdateMetadata|null|undefined} partialUpdateMetadata
|
|
50033
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50034
|
+
* @instance
|
|
50035
|
+
*/
|
|
50036
|
+
GovalCommand.prototype.partialUpdateMetadata = null;
|
|
50037
|
+
|
|
50038
|
+
// OneOf field names bound to virtual getters and setters
|
|
50039
|
+
var $oneOfFields;
|
|
50040
|
+
|
|
50041
|
+
/**
|
|
50042
|
+
* GovalCommand command.
|
|
50043
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|undefined} command
|
|
50044
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50045
|
+
* @instance
|
|
50046
|
+
*/
|
|
50047
|
+
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
50048
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata"]),
|
|
50049
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
50050
|
+
});
|
|
50051
|
+
|
|
50052
|
+
/**
|
|
50053
|
+
* Creates a new GovalCommand instance using the specified properties.
|
|
50054
|
+
* @function create
|
|
50055
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50056
|
+
* @static
|
|
50057
|
+
* @param {replit.goval.api.IGovalCommand=} [properties] Properties to set
|
|
50058
|
+
* @returns {replit.goval.api.GovalCommand} GovalCommand instance
|
|
50059
|
+
*/
|
|
50060
|
+
GovalCommand.create = function create(properties) {
|
|
50061
|
+
return GovalCommand.fromObject(properties);
|
|
50062
|
+
};
|
|
50063
|
+
|
|
50064
|
+
/**
|
|
50065
|
+
* Encodes the specified GovalCommand message. Does not implicitly {@link replit.goval.api.GovalCommand.verify|verify} messages.
|
|
50066
|
+
* @function encode
|
|
50067
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50068
|
+
* @static
|
|
50069
|
+
* @param {replit.goval.api.GovalCommand} message GovalCommand message or plain object to encode
|
|
50070
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50071
|
+
* @returns {$protobuf.Writer} Writer
|
|
50072
|
+
*/
|
|
50073
|
+
GovalCommand.encode = function encode(message, writer) {
|
|
50074
|
+
if (!writer)
|
|
50075
|
+
writer = $Writer.create();
|
|
50076
|
+
if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
|
|
50077
|
+
$root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50078
|
+
if (message.partialUpdateMetadata != null && Object.hasOwnProperty.call(message, "partialUpdateMetadata"))
|
|
50079
|
+
$root.replit.goval.api.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50080
|
+
return writer;
|
|
50081
|
+
};
|
|
50082
|
+
|
|
50083
|
+
/**
|
|
50084
|
+
* Encodes the specified GovalCommand message, length delimited. Does not implicitly {@link replit.goval.api.GovalCommand.verify|verify} messages.
|
|
50085
|
+
* @function encodeDelimited
|
|
50086
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50087
|
+
* @static
|
|
50088
|
+
* @param {replit.goval.api.GovalCommand} message GovalCommand message or plain object to encode
|
|
50089
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50090
|
+
* @returns {$protobuf.Writer} Writer
|
|
50091
|
+
*/
|
|
50092
|
+
GovalCommand.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50093
|
+
return this.encode(message, writer).ldelim();
|
|
50094
|
+
};
|
|
50095
|
+
|
|
50096
|
+
/**
|
|
50097
|
+
* Decodes a GovalCommand message from the specified reader or buffer.
|
|
50098
|
+
* @function decode
|
|
50099
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50100
|
+
* @static
|
|
50101
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50102
|
+
* @param {number} [length] Message length if known beforehand
|
|
50103
|
+
* @returns {replit.goval.api.GovalCommand} GovalCommand
|
|
50104
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50105
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50106
|
+
*/
|
|
50107
|
+
GovalCommand.decode = function decode(reader, length) {
|
|
50108
|
+
if (!(reader instanceof $Reader))
|
|
50109
|
+
reader = $Reader.create(reader);
|
|
50110
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.GovalCommand();
|
|
50111
|
+
while (reader.pos < end) {
|
|
50112
|
+
var tag = reader.uint32();
|
|
50113
|
+
switch (tag >>> 3) {
|
|
50114
|
+
case 1:
|
|
50115
|
+
message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
|
|
50116
|
+
break;
|
|
50117
|
+
case 2:
|
|
50118
|
+
message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.decode(reader, reader.uint32());
|
|
50119
|
+
break;
|
|
50120
|
+
default:
|
|
50121
|
+
reader.skipType(tag & 7);
|
|
50122
|
+
break;
|
|
50123
|
+
}
|
|
50124
|
+
}
|
|
50125
|
+
return message;
|
|
50126
|
+
};
|
|
50127
|
+
|
|
50128
|
+
/**
|
|
50129
|
+
* Decodes a GovalCommand message from the specified reader or buffer, length delimited.
|
|
50130
|
+
* @function decodeDelimited
|
|
50131
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50132
|
+
* @static
|
|
50133
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50134
|
+
* @returns {replit.goval.api.GovalCommand} GovalCommand
|
|
50135
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50136
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50137
|
+
*/
|
|
50138
|
+
GovalCommand.decodeDelimited = function decodeDelimited(reader) {
|
|
50139
|
+
if (!(reader instanceof $Reader))
|
|
50140
|
+
reader = new $Reader(reader);
|
|
50141
|
+
return this.decode(reader, reader.uint32());
|
|
50142
|
+
};
|
|
50143
|
+
|
|
50144
|
+
/**
|
|
50145
|
+
* Verifies a GovalCommand message.
|
|
50146
|
+
* @function verify
|
|
50147
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50148
|
+
* @static
|
|
50149
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50150
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50151
|
+
*/
|
|
50152
|
+
GovalCommand.verify = function verify(message) {
|
|
50153
|
+
if (typeof message !== "object" || message === null)
|
|
50154
|
+
return "object expected";
|
|
50155
|
+
var properties = {};
|
|
50156
|
+
if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
|
|
50157
|
+
properties.command = 1;
|
|
50158
|
+
{
|
|
50159
|
+
var error = $root.replit.goval.api.repl.Metadata.verify(message.updateMetadata);
|
|
50160
|
+
if (error)
|
|
50161
|
+
return "updateMetadata." + error;
|
|
50162
|
+
}
|
|
50163
|
+
}
|
|
50164
|
+
if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
|
|
50165
|
+
if (properties.command === 1)
|
|
50166
|
+
return "command: multiple values";
|
|
50167
|
+
properties.command = 1;
|
|
50168
|
+
{
|
|
50169
|
+
var error = $root.replit.goval.api.PartialUpdateMetadata.verify(message.partialUpdateMetadata);
|
|
50170
|
+
if (error)
|
|
50171
|
+
return "partialUpdateMetadata." + error;
|
|
50172
|
+
}
|
|
50173
|
+
}
|
|
50174
|
+
return null;
|
|
50175
|
+
};
|
|
50176
|
+
|
|
50177
|
+
/**
|
|
50178
|
+
* Creates a GovalCommand message from a plain object. Also converts values to their respective internal types.
|
|
50179
|
+
* @function fromObject
|
|
50180
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50181
|
+
* @static
|
|
50182
|
+
* @param {Object.<string,*>} object Plain object
|
|
50183
|
+
* @returns {replit.goval.api.GovalCommand} GovalCommand
|
|
50184
|
+
*/
|
|
50185
|
+
GovalCommand.fromObject = function fromObject(object) {
|
|
50186
|
+
if (object instanceof $root.replit.goval.api.GovalCommand)
|
|
50187
|
+
return object;
|
|
50188
|
+
var message = new $root.replit.goval.api.GovalCommand();
|
|
50189
|
+
if (object.updateMetadata != null) {
|
|
50190
|
+
if (typeof object.updateMetadata !== "object")
|
|
50191
|
+
throw TypeError(".replit.goval.api.GovalCommand.updateMetadata: object expected");
|
|
50192
|
+
message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
|
|
50193
|
+
}
|
|
50194
|
+
if (object.partialUpdateMetadata != null) {
|
|
50195
|
+
if (typeof object.partialUpdateMetadata !== "object")
|
|
50196
|
+
throw TypeError(".replit.goval.api.GovalCommand.partialUpdateMetadata: object expected");
|
|
50197
|
+
message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.fromObject(object.partialUpdateMetadata);
|
|
50198
|
+
}
|
|
50199
|
+
return message;
|
|
50200
|
+
};
|
|
50201
|
+
|
|
50202
|
+
/**
|
|
50203
|
+
* Creates a plain object from a GovalCommand message. Also converts values to other types if specified.
|
|
50204
|
+
* @function toObject
|
|
50205
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50206
|
+
* @static
|
|
50207
|
+
* @param {replit.goval.api.GovalCommand} message GovalCommand
|
|
50208
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50209
|
+
* @returns {Object.<string,*>} Plain object
|
|
50210
|
+
*/
|
|
50211
|
+
GovalCommand.toObject = function toObject(message, options) {
|
|
50212
|
+
if (!options)
|
|
50213
|
+
options = {};
|
|
50214
|
+
var object = {};
|
|
50215
|
+
if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
|
|
50216
|
+
object.updateMetadata = $root.replit.goval.api.repl.Metadata.toObject(message.updateMetadata, options);
|
|
50217
|
+
if (options.oneofs)
|
|
50218
|
+
object.command = "updateMetadata";
|
|
50219
|
+
}
|
|
50220
|
+
if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
|
|
50221
|
+
object.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.toObject(message.partialUpdateMetadata, options);
|
|
50222
|
+
if (options.oneofs)
|
|
50223
|
+
object.command = "partialUpdateMetadata";
|
|
50224
|
+
}
|
|
50225
|
+
return object;
|
|
50226
|
+
};
|
|
50227
|
+
|
|
50228
|
+
/**
|
|
50229
|
+
* Converts this GovalCommand to JSON.
|
|
50230
|
+
* @function toJSON
|
|
50231
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50232
|
+
* @instance
|
|
50233
|
+
* @returns {Object.<string,*>} JSON object
|
|
50234
|
+
*/
|
|
50235
|
+
GovalCommand.prototype.toJSON = function toJSON() {
|
|
50236
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50237
|
+
};
|
|
50238
|
+
|
|
50239
|
+
return GovalCommand;
|
|
50240
|
+
})();
|
|
50241
|
+
|
|
50242
|
+
api.PartialUpdateMetadata = (function() {
|
|
50243
|
+
|
|
50244
|
+
/**
|
|
50245
|
+
* Properties of a PartialUpdateMetadata.
|
|
50246
|
+
* @memberof replit.goval.api
|
|
50247
|
+
* @interface IPartialUpdateMetadata
|
|
50248
|
+
* @property {google.protobuf.FieldMask|google.protobuf.IFieldMask|null} [fieldMask] PartialUpdateMetadata fieldMask
|
|
50249
|
+
* @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] PartialUpdateMetadata updateMetadata
|
|
50250
|
+
*/
|
|
50251
|
+
|
|
50252
|
+
/**
|
|
50253
|
+
* Constructs a new PartialUpdateMetadata.
|
|
50254
|
+
* @memberof replit.goval.api
|
|
50255
|
+
* @classdesc Represents a PartialUpdateMetadata.
|
|
50256
|
+
* @constructor
|
|
50257
|
+
* @param {replit.goval.api.IPartialUpdateMetadata=} [properties] Properties to set
|
|
50258
|
+
*/
|
|
50259
|
+
function PartialUpdateMetadata(properties) {
|
|
50260
|
+
if (properties)
|
|
50261
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50262
|
+
if (properties[keys[i]] != null)
|
|
50263
|
+
this[keys[i]] = properties[keys[i]];
|
|
50264
|
+
}
|
|
50265
|
+
|
|
50266
|
+
/**
|
|
50267
|
+
* PartialUpdateMetadata fieldMask.
|
|
50268
|
+
* @member {google.protobuf.FieldMask|null|undefined} fieldMask
|
|
50269
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50270
|
+
* @instance
|
|
50271
|
+
*/
|
|
50272
|
+
PartialUpdateMetadata.prototype.fieldMask = null;
|
|
50273
|
+
|
|
50274
|
+
/**
|
|
50275
|
+
* PartialUpdateMetadata updateMetadata.
|
|
50276
|
+
* @member {replit.goval.api.repl.Metadata|null|undefined} updateMetadata
|
|
50277
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50278
|
+
* @instance
|
|
50279
|
+
*/
|
|
50280
|
+
PartialUpdateMetadata.prototype.updateMetadata = null;
|
|
50281
|
+
|
|
50282
|
+
/**
|
|
50283
|
+
* Creates a new PartialUpdateMetadata instance using the specified properties.
|
|
50284
|
+
* @function create
|
|
50285
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50286
|
+
* @static
|
|
50287
|
+
* @param {replit.goval.api.IPartialUpdateMetadata=} [properties] Properties to set
|
|
50288
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata instance
|
|
50289
|
+
*/
|
|
50290
|
+
PartialUpdateMetadata.create = function create(properties) {
|
|
50291
|
+
return PartialUpdateMetadata.fromObject(properties);
|
|
50292
|
+
};
|
|
50293
|
+
|
|
50294
|
+
/**
|
|
50295
|
+
* Encodes the specified PartialUpdateMetadata message. Does not implicitly {@link replit.goval.api.PartialUpdateMetadata.verify|verify} messages.
|
|
50296
|
+
* @function encode
|
|
50297
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50298
|
+
* @static
|
|
50299
|
+
* @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
|
|
50300
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50301
|
+
* @returns {$protobuf.Writer} Writer
|
|
50302
|
+
*/
|
|
50303
|
+
PartialUpdateMetadata.encode = function encode(message, writer) {
|
|
50304
|
+
if (!writer)
|
|
50305
|
+
writer = $Writer.create();
|
|
50306
|
+
if (message.fieldMask != null && Object.hasOwnProperty.call(message, "fieldMask"))
|
|
50307
|
+
$root.google.protobuf.FieldMask.encode(message.fieldMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50308
|
+
if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
|
|
50309
|
+
$root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50310
|
+
return writer;
|
|
50311
|
+
};
|
|
50312
|
+
|
|
50313
|
+
/**
|
|
50314
|
+
* Encodes the specified PartialUpdateMetadata message, length delimited. Does not implicitly {@link replit.goval.api.PartialUpdateMetadata.verify|verify} messages.
|
|
50315
|
+
* @function encodeDelimited
|
|
50316
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50317
|
+
* @static
|
|
50318
|
+
* @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
|
|
50319
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50320
|
+
* @returns {$protobuf.Writer} Writer
|
|
50321
|
+
*/
|
|
50322
|
+
PartialUpdateMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50323
|
+
return this.encode(message, writer).ldelim();
|
|
50324
|
+
};
|
|
50325
|
+
|
|
50326
|
+
/**
|
|
50327
|
+
* Decodes a PartialUpdateMetadata message from the specified reader or buffer.
|
|
50328
|
+
* @function decode
|
|
50329
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50330
|
+
* @static
|
|
50331
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50332
|
+
* @param {number} [length] Message length if known beforehand
|
|
50333
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
|
|
50334
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50335
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50336
|
+
*/
|
|
50337
|
+
PartialUpdateMetadata.decode = function decode(reader, length) {
|
|
50338
|
+
if (!(reader instanceof $Reader))
|
|
50339
|
+
reader = $Reader.create(reader);
|
|
50340
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.PartialUpdateMetadata();
|
|
50341
|
+
while (reader.pos < end) {
|
|
50342
|
+
var tag = reader.uint32();
|
|
50343
|
+
switch (tag >>> 3) {
|
|
50344
|
+
case 1:
|
|
50345
|
+
message.fieldMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
50346
|
+
break;
|
|
50347
|
+
case 2:
|
|
50348
|
+
message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
|
|
50349
|
+
break;
|
|
50350
|
+
default:
|
|
50351
|
+
reader.skipType(tag & 7);
|
|
50352
|
+
break;
|
|
50353
|
+
}
|
|
50354
|
+
}
|
|
50355
|
+
return message;
|
|
50356
|
+
};
|
|
50357
|
+
|
|
50358
|
+
/**
|
|
50359
|
+
* Decodes a PartialUpdateMetadata message from the specified reader or buffer, length delimited.
|
|
50360
|
+
* @function decodeDelimited
|
|
50361
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50362
|
+
* @static
|
|
50363
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50364
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
|
|
50365
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50366
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50367
|
+
*/
|
|
50368
|
+
PartialUpdateMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
50369
|
+
if (!(reader instanceof $Reader))
|
|
50370
|
+
reader = new $Reader(reader);
|
|
50371
|
+
return this.decode(reader, reader.uint32());
|
|
50372
|
+
};
|
|
50373
|
+
|
|
50374
|
+
/**
|
|
50375
|
+
* Verifies a PartialUpdateMetadata message.
|
|
50376
|
+
* @function verify
|
|
50377
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50378
|
+
* @static
|
|
50379
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50380
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50381
|
+
*/
|
|
50382
|
+
PartialUpdateMetadata.verify = function verify(message) {
|
|
50383
|
+
if (typeof message !== "object" || message === null)
|
|
50384
|
+
return "object expected";
|
|
50385
|
+
if (message.fieldMask != null && message.hasOwnProperty("fieldMask")) {
|
|
50386
|
+
var error = $root.google.protobuf.FieldMask.verify(message.fieldMask);
|
|
50387
|
+
if (error)
|
|
50388
|
+
return "fieldMask." + error;
|
|
50389
|
+
}
|
|
50390
|
+
if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
|
|
50391
|
+
var error = $root.replit.goval.api.repl.Metadata.verify(message.updateMetadata);
|
|
50392
|
+
if (error)
|
|
50393
|
+
return "updateMetadata." + error;
|
|
50394
|
+
}
|
|
50395
|
+
return null;
|
|
50396
|
+
};
|
|
50397
|
+
|
|
50398
|
+
/**
|
|
50399
|
+
* Creates a PartialUpdateMetadata message from a plain object. Also converts values to their respective internal types.
|
|
50400
|
+
* @function fromObject
|
|
50401
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50402
|
+
* @static
|
|
50403
|
+
* @param {Object.<string,*>} object Plain object
|
|
50404
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
|
|
50405
|
+
*/
|
|
50406
|
+
PartialUpdateMetadata.fromObject = function fromObject(object) {
|
|
50407
|
+
if (object instanceof $root.replit.goval.api.PartialUpdateMetadata)
|
|
50408
|
+
return object;
|
|
50409
|
+
var message = new $root.replit.goval.api.PartialUpdateMetadata();
|
|
50410
|
+
if (object.fieldMask != null) {
|
|
50411
|
+
if (typeof object.fieldMask !== "object")
|
|
50412
|
+
throw TypeError(".replit.goval.api.PartialUpdateMetadata.fieldMask: object expected");
|
|
50413
|
+
message.fieldMask = $root.google.protobuf.FieldMask.fromObject(object.fieldMask);
|
|
50414
|
+
}
|
|
50415
|
+
if (object.updateMetadata != null) {
|
|
50416
|
+
if (typeof object.updateMetadata !== "object")
|
|
50417
|
+
throw TypeError(".replit.goval.api.PartialUpdateMetadata.updateMetadata: object expected");
|
|
50418
|
+
message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
|
|
50419
|
+
}
|
|
50420
|
+
return message;
|
|
50421
|
+
};
|
|
50422
|
+
|
|
50423
|
+
/**
|
|
50424
|
+
* Creates a plain object from a PartialUpdateMetadata message. Also converts values to other types if specified.
|
|
50425
|
+
* @function toObject
|
|
50426
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50427
|
+
* @static
|
|
50428
|
+
* @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata
|
|
50429
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50430
|
+
* @returns {Object.<string,*>} Plain object
|
|
50431
|
+
*/
|
|
50432
|
+
PartialUpdateMetadata.toObject = function toObject(message, options) {
|
|
50433
|
+
if (!options)
|
|
50434
|
+
options = {};
|
|
50435
|
+
var object = {};
|
|
50436
|
+
if (options.defaults) {
|
|
50437
|
+
object.fieldMask = null;
|
|
50438
|
+
object.updateMetadata = null;
|
|
50439
|
+
}
|
|
50440
|
+
if (message.fieldMask != null && message.hasOwnProperty("fieldMask"))
|
|
50441
|
+
object.fieldMask = $root.google.protobuf.FieldMask.toObject(message.fieldMask, options);
|
|
50442
|
+
if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata"))
|
|
50443
|
+
object.updateMetadata = $root.replit.goval.api.repl.Metadata.toObject(message.updateMetadata, options);
|
|
50444
|
+
return object;
|
|
50445
|
+
};
|
|
50446
|
+
|
|
50447
|
+
/**
|
|
50448
|
+
* Converts this PartialUpdateMetadata to JSON.
|
|
50449
|
+
* @function toJSON
|
|
50450
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50451
|
+
* @instance
|
|
50452
|
+
* @returns {Object.<string,*>} JSON object
|
|
50453
|
+
*/
|
|
50454
|
+
PartialUpdateMetadata.prototype.toJSON = function toJSON() {
|
|
50455
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50456
|
+
};
|
|
50457
|
+
|
|
50458
|
+
return PartialUpdateMetadata;
|
|
50459
|
+
})();
|
|
50460
|
+
|
|
50461
|
+
api.Restore = (function() {
|
|
50462
|
+
|
|
50463
|
+
/**
|
|
50464
|
+
* Properties of a Restore.
|
|
50465
|
+
* @memberof replit.goval.api
|
|
50466
|
+
* @interface IRestore
|
|
50467
|
+
* @property {string|null} [replId] Restore replId
|
|
50468
|
+
* @property {string|null} [restoreReplId] Restore restoreReplId
|
|
50469
|
+
*/
|
|
50470
|
+
|
|
50471
|
+
/**
|
|
50472
|
+
* Constructs a new Restore.
|
|
50473
|
+
* @memberof replit.goval.api
|
|
50474
|
+
* @classdesc Represents a Restore.
|
|
50475
|
+
* @constructor
|
|
50476
|
+
* @param {replit.goval.api.IRestore=} [properties] Properties to set
|
|
50477
|
+
*/
|
|
50478
|
+
function Restore(properties) {
|
|
50479
|
+
if (properties)
|
|
50480
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50481
|
+
if (properties[keys[i]] != null)
|
|
50482
|
+
this[keys[i]] = properties[keys[i]];
|
|
50483
|
+
}
|
|
50484
|
+
|
|
50485
|
+
/**
|
|
50486
|
+
* Restore replId.
|
|
50487
|
+
* @member {string} replId
|
|
50488
|
+
* @memberof replit.goval.api.Restore
|
|
50489
|
+
* @instance
|
|
50490
|
+
*/
|
|
50491
|
+
Restore.prototype.replId = "";
|
|
50492
|
+
|
|
50493
|
+
/**
|
|
50494
|
+
* Restore restoreReplId.
|
|
50495
|
+
* @member {string} restoreReplId
|
|
50496
|
+
* @memberof replit.goval.api.Restore
|
|
50497
|
+
* @instance
|
|
50498
|
+
*/
|
|
50499
|
+
Restore.prototype.restoreReplId = "";
|
|
50500
|
+
|
|
50501
|
+
/**
|
|
50502
|
+
* Creates a new Restore instance using the specified properties.
|
|
50503
|
+
* @function create
|
|
50504
|
+
* @memberof replit.goval.api.Restore
|
|
50505
|
+
* @static
|
|
50506
|
+
* @param {replit.goval.api.IRestore=} [properties] Properties to set
|
|
50507
|
+
* @returns {replit.goval.api.Restore} Restore instance
|
|
50508
|
+
*/
|
|
50509
|
+
Restore.create = function create(properties) {
|
|
50510
|
+
return Restore.fromObject(properties);
|
|
50511
|
+
};
|
|
50512
|
+
|
|
50513
|
+
/**
|
|
50514
|
+
* Encodes the specified Restore message. Does not implicitly {@link replit.goval.api.Restore.verify|verify} messages.
|
|
50515
|
+
* @function encode
|
|
50516
|
+
* @memberof replit.goval.api.Restore
|
|
50517
|
+
* @static
|
|
50518
|
+
* @param {replit.goval.api.Restore} message Restore message or plain object to encode
|
|
50519
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50520
|
+
* @returns {$protobuf.Writer} Writer
|
|
50521
|
+
*/
|
|
50522
|
+
Restore.encode = function encode(message, writer) {
|
|
50523
|
+
if (!writer)
|
|
50524
|
+
writer = $Writer.create();
|
|
50525
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
50526
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
50527
|
+
if (message.restoreReplId != null && Object.hasOwnProperty.call(message, "restoreReplId"))
|
|
50528
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.restoreReplId);
|
|
50529
|
+
return writer;
|
|
50530
|
+
};
|
|
50531
|
+
|
|
50532
|
+
/**
|
|
50533
|
+
* Encodes the specified Restore message, length delimited. Does not implicitly {@link replit.goval.api.Restore.verify|verify} messages.
|
|
50534
|
+
* @function encodeDelimited
|
|
50535
|
+
* @memberof replit.goval.api.Restore
|
|
50536
|
+
* @static
|
|
50537
|
+
* @param {replit.goval.api.Restore} message Restore message or plain object to encode
|
|
50538
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50539
|
+
* @returns {$protobuf.Writer} Writer
|
|
50540
|
+
*/
|
|
50541
|
+
Restore.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50542
|
+
return this.encode(message, writer).ldelim();
|
|
50543
|
+
};
|
|
50544
|
+
|
|
50545
|
+
/**
|
|
50546
|
+
* Decodes a Restore message from the specified reader or buffer.
|
|
50547
|
+
* @function decode
|
|
50548
|
+
* @memberof replit.goval.api.Restore
|
|
50549
|
+
* @static
|
|
50550
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50551
|
+
* @param {number} [length] Message length if known beforehand
|
|
50552
|
+
* @returns {replit.goval.api.Restore} Restore
|
|
50553
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50554
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50555
|
+
*/
|
|
50556
|
+
Restore.decode = function decode(reader, length) {
|
|
50557
|
+
if (!(reader instanceof $Reader))
|
|
50558
|
+
reader = $Reader.create(reader);
|
|
50559
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.Restore();
|
|
50560
|
+
while (reader.pos < end) {
|
|
50561
|
+
var tag = reader.uint32();
|
|
50562
|
+
switch (tag >>> 3) {
|
|
50563
|
+
case 1:
|
|
50564
|
+
message.replId = reader.string();
|
|
50565
|
+
break;
|
|
50566
|
+
case 2:
|
|
50567
|
+
message.restoreReplId = reader.string();
|
|
50568
|
+
break;
|
|
50569
|
+
default:
|
|
50570
|
+
reader.skipType(tag & 7);
|
|
50571
|
+
break;
|
|
50572
|
+
}
|
|
50573
|
+
}
|
|
50574
|
+
return message;
|
|
50575
|
+
};
|
|
50576
|
+
|
|
50577
|
+
/**
|
|
50578
|
+
* Decodes a Restore message from the specified reader or buffer, length delimited.
|
|
50579
|
+
* @function decodeDelimited
|
|
50580
|
+
* @memberof replit.goval.api.Restore
|
|
50581
|
+
* @static
|
|
50582
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50583
|
+
* @returns {replit.goval.api.Restore} Restore
|
|
50584
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50585
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50586
|
+
*/
|
|
50587
|
+
Restore.decodeDelimited = function decodeDelimited(reader) {
|
|
50588
|
+
if (!(reader instanceof $Reader))
|
|
50589
|
+
reader = new $Reader(reader);
|
|
50590
|
+
return this.decode(reader, reader.uint32());
|
|
50591
|
+
};
|
|
50592
|
+
|
|
50593
|
+
/**
|
|
50594
|
+
* Verifies a Restore message.
|
|
50595
|
+
* @function verify
|
|
50596
|
+
* @memberof replit.goval.api.Restore
|
|
50597
|
+
* @static
|
|
50598
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50599
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50600
|
+
*/
|
|
50601
|
+
Restore.verify = function verify(message) {
|
|
50602
|
+
if (typeof message !== "object" || message === null)
|
|
50603
|
+
return "object expected";
|
|
50604
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
50605
|
+
if (!$util.isString(message.replId))
|
|
50606
|
+
return "replId: string expected";
|
|
50607
|
+
if (message.restoreReplId != null && message.hasOwnProperty("restoreReplId"))
|
|
50608
|
+
if (!$util.isString(message.restoreReplId))
|
|
50609
|
+
return "restoreReplId: string expected";
|
|
50610
|
+
return null;
|
|
50611
|
+
};
|
|
50612
|
+
|
|
50613
|
+
/**
|
|
50614
|
+
* Creates a Restore message from a plain object. Also converts values to their respective internal types.
|
|
50615
|
+
* @function fromObject
|
|
50616
|
+
* @memberof replit.goval.api.Restore
|
|
50617
|
+
* @static
|
|
50618
|
+
* @param {Object.<string,*>} object Plain object
|
|
50619
|
+
* @returns {replit.goval.api.Restore} Restore
|
|
50620
|
+
*/
|
|
50621
|
+
Restore.fromObject = function fromObject(object) {
|
|
50622
|
+
if (object instanceof $root.replit.goval.api.Restore)
|
|
50623
|
+
return object;
|
|
50624
|
+
var message = new $root.replit.goval.api.Restore();
|
|
50625
|
+
if (object.replId != null)
|
|
50626
|
+
message.replId = String(object.replId);
|
|
50627
|
+
if (object.restoreReplId != null)
|
|
50628
|
+
message.restoreReplId = String(object.restoreReplId);
|
|
50629
|
+
return message;
|
|
50630
|
+
};
|
|
50631
|
+
|
|
50632
|
+
/**
|
|
50633
|
+
* Creates a plain object from a Restore message. Also converts values to other types if specified.
|
|
50634
|
+
* @function toObject
|
|
50635
|
+
* @memberof replit.goval.api.Restore
|
|
50636
|
+
* @static
|
|
50637
|
+
* @param {replit.goval.api.Restore} message Restore
|
|
50638
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50639
|
+
* @returns {Object.<string,*>} Plain object
|
|
50640
|
+
*/
|
|
50641
|
+
Restore.toObject = function toObject(message, options) {
|
|
50642
|
+
if (!options)
|
|
50643
|
+
options = {};
|
|
50644
|
+
var object = {};
|
|
50645
|
+
if (options.defaults) {
|
|
50646
|
+
object.replId = "";
|
|
50647
|
+
object.restoreReplId = "";
|
|
50648
|
+
}
|
|
50649
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
50650
|
+
object.replId = message.replId;
|
|
50651
|
+
if (message.restoreReplId != null && message.hasOwnProperty("restoreReplId"))
|
|
50652
|
+
object.restoreReplId = message.restoreReplId;
|
|
50653
|
+
return object;
|
|
50654
|
+
};
|
|
50655
|
+
|
|
50656
|
+
/**
|
|
50657
|
+
* Converts this Restore to JSON.
|
|
50658
|
+
* @function toJSON
|
|
50659
|
+
* @memberof replit.goval.api.Restore
|
|
50660
|
+
* @instance
|
|
50661
|
+
* @returns {Object.<string,*>} JSON object
|
|
50662
|
+
*/
|
|
50663
|
+
Restore.prototype.toJSON = function toJSON() {
|
|
50664
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50665
|
+
};
|
|
50666
|
+
|
|
50667
|
+
return Restore;
|
|
50668
|
+
})();
|
|
50669
|
+
|
|
50670
|
+
api.features = (function() {
|
|
50671
|
+
|
|
50672
|
+
/**
|
|
50673
|
+
* Namespace features.
|
|
50674
|
+
* @memberof replit.goval.api
|
|
50675
|
+
* @namespace
|
|
50676
|
+
*/
|
|
50677
|
+
var features = {};
|
|
50678
|
+
|
|
50679
|
+
features.Gpu = (function() {
|
|
50680
|
+
|
|
50681
|
+
/**
|
|
50682
|
+
* Properties of a Gpu.
|
|
50683
|
+
* @memberof replit.goval.api.features
|
|
50684
|
+
* @interface IGpu
|
|
50685
|
+
*/
|
|
50686
|
+
|
|
50687
|
+
/**
|
|
50688
|
+
* Constructs a new Gpu.
|
|
50689
|
+
* @memberof replit.goval.api.features
|
|
50690
|
+
* @classdesc Represents a Gpu.
|
|
50691
|
+
* @constructor
|
|
50692
|
+
* @param {replit.goval.api.features.IGpu=} [properties] Properties to set
|
|
50693
|
+
*/
|
|
50694
|
+
function Gpu(properties) {
|
|
50695
|
+
if (properties)
|
|
50696
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50697
|
+
if (properties[keys[i]] != null)
|
|
50698
|
+
this[keys[i]] = properties[keys[i]];
|
|
50699
|
+
}
|
|
50700
|
+
|
|
50701
|
+
/**
|
|
50702
|
+
* Creates a new Gpu instance using the specified properties.
|
|
50703
|
+
* @function create
|
|
50704
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50705
|
+
* @static
|
|
50706
|
+
* @param {replit.goval.api.features.IGpu=} [properties] Properties to set
|
|
50707
|
+
* @returns {replit.goval.api.features.Gpu} Gpu instance
|
|
50708
|
+
*/
|
|
50709
|
+
Gpu.create = function create(properties) {
|
|
50710
|
+
return Gpu.fromObject(properties);
|
|
50711
|
+
};
|
|
50712
|
+
|
|
50713
|
+
/**
|
|
50714
|
+
* Encodes the specified Gpu message. Does not implicitly {@link replit.goval.api.features.Gpu.verify|verify} messages.
|
|
50715
|
+
* @function encode
|
|
50716
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50717
|
+
* @static
|
|
50718
|
+
* @param {replit.goval.api.features.Gpu} message Gpu message or plain object to encode
|
|
50719
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50720
|
+
* @returns {$protobuf.Writer} Writer
|
|
50721
|
+
*/
|
|
50722
|
+
Gpu.encode = function encode(message, writer) {
|
|
50723
|
+
if (!writer)
|
|
50724
|
+
writer = $Writer.create();
|
|
50725
|
+
return writer;
|
|
50726
|
+
};
|
|
50727
|
+
|
|
50728
|
+
/**
|
|
50729
|
+
* Encodes the specified Gpu message, length delimited. Does not implicitly {@link replit.goval.api.features.Gpu.verify|verify} messages.
|
|
50730
|
+
* @function encodeDelimited
|
|
50731
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50732
|
+
* @static
|
|
50733
|
+
* @param {replit.goval.api.features.Gpu} message Gpu message or plain object to encode
|
|
50734
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50735
|
+
* @returns {$protobuf.Writer} Writer
|
|
50736
|
+
*/
|
|
50737
|
+
Gpu.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50738
|
+
return this.encode(message, writer).ldelim();
|
|
50739
|
+
};
|
|
50740
|
+
|
|
50741
|
+
/**
|
|
50742
|
+
* Decodes a Gpu message from the specified reader or buffer.
|
|
50743
|
+
* @function decode
|
|
50744
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50745
|
+
* @static
|
|
50746
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50747
|
+
* @param {number} [length] Message length if known beforehand
|
|
50748
|
+
* @returns {replit.goval.api.features.Gpu} Gpu
|
|
50749
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50750
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50751
|
+
*/
|
|
50752
|
+
Gpu.decode = function decode(reader, length) {
|
|
50753
|
+
if (!(reader instanceof $Reader))
|
|
50754
|
+
reader = $Reader.create(reader);
|
|
50755
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.features.Gpu();
|
|
50756
|
+
while (reader.pos < end) {
|
|
50757
|
+
var tag = reader.uint32();
|
|
50758
|
+
switch (tag >>> 3) {
|
|
50759
|
+
default:
|
|
50760
|
+
reader.skipType(tag & 7);
|
|
50761
|
+
break;
|
|
50762
|
+
}
|
|
50763
|
+
}
|
|
50764
|
+
return message;
|
|
50765
|
+
};
|
|
50766
|
+
|
|
50767
|
+
/**
|
|
50768
|
+
* Decodes a Gpu message from the specified reader or buffer, length delimited.
|
|
50769
|
+
* @function decodeDelimited
|
|
50770
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50771
|
+
* @static
|
|
50772
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50773
|
+
* @returns {replit.goval.api.features.Gpu} Gpu
|
|
50774
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50775
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50776
|
+
*/
|
|
50777
|
+
Gpu.decodeDelimited = function decodeDelimited(reader) {
|
|
50778
|
+
if (!(reader instanceof $Reader))
|
|
50779
|
+
reader = new $Reader(reader);
|
|
50780
|
+
return this.decode(reader, reader.uint32());
|
|
50781
|
+
};
|
|
50782
|
+
|
|
50783
|
+
/**
|
|
50784
|
+
* Verifies a Gpu message.
|
|
50785
|
+
* @function verify
|
|
50786
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50787
|
+
* @static
|
|
50788
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50789
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50790
|
+
*/
|
|
50791
|
+
Gpu.verify = function verify(message) {
|
|
50792
|
+
if (typeof message !== "object" || message === null)
|
|
50793
|
+
return "object expected";
|
|
50794
|
+
return null;
|
|
50795
|
+
};
|
|
50796
|
+
|
|
50797
|
+
/**
|
|
50798
|
+
* Creates a Gpu message from a plain object. Also converts values to their respective internal types.
|
|
50799
|
+
* @function fromObject
|
|
50800
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50801
|
+
* @static
|
|
50802
|
+
* @param {Object.<string,*>} object Plain object
|
|
50803
|
+
* @returns {replit.goval.api.features.Gpu} Gpu
|
|
50804
|
+
*/
|
|
50805
|
+
Gpu.fromObject = function fromObject(object) {
|
|
50806
|
+
if (object instanceof $root.replit.goval.api.features.Gpu)
|
|
50807
|
+
return object;
|
|
50808
|
+
return new $root.replit.goval.api.features.Gpu();
|
|
50809
|
+
};
|
|
50810
|
+
|
|
50811
|
+
/**
|
|
50812
|
+
* Creates a plain object from a Gpu message. Also converts values to other types if specified.
|
|
50813
|
+
* @function toObject
|
|
50814
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50815
|
+
* @static
|
|
50816
|
+
* @param {replit.goval.api.features.Gpu} message Gpu
|
|
50817
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50818
|
+
* @returns {Object.<string,*>} Plain object
|
|
50819
|
+
*/
|
|
50820
|
+
Gpu.toObject = function toObject() {
|
|
50821
|
+
return {};
|
|
50822
|
+
};
|
|
50823
|
+
|
|
50824
|
+
/**
|
|
50825
|
+
* Converts this Gpu to JSON.
|
|
50826
|
+
* @function toJSON
|
|
50827
|
+
* @memberof replit.goval.api.features.Gpu
|
|
50828
|
+
* @instance
|
|
50829
|
+
* @returns {Object.<string,*>} JSON object
|
|
50830
|
+
*/
|
|
50831
|
+
Gpu.prototype.toJSON = function toJSON() {
|
|
50832
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50833
|
+
};
|
|
50834
|
+
|
|
50835
|
+
return Gpu;
|
|
50836
|
+
})();
|
|
50837
|
+
|
|
50838
|
+
features.Boosted = (function() {
|
|
50839
|
+
|
|
50840
|
+
/**
|
|
50841
|
+
* Properties of a Boosted.
|
|
50842
|
+
* @memberof replit.goval.api.features
|
|
50843
|
+
* @interface IBoosted
|
|
50844
|
+
*/
|
|
50845
|
+
|
|
50846
|
+
/**
|
|
50847
|
+
* Constructs a new Boosted.
|
|
50848
|
+
* @memberof replit.goval.api.features
|
|
50849
|
+
* @classdesc Represents a Boosted.
|
|
50850
|
+
* @constructor
|
|
50851
|
+
* @param {replit.goval.api.features.IBoosted=} [properties] Properties to set
|
|
50852
|
+
*/
|
|
50853
|
+
function Boosted(properties) {
|
|
50854
|
+
if (properties)
|
|
50855
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50856
|
+
if (properties[keys[i]] != null)
|
|
50857
|
+
this[keys[i]] = properties[keys[i]];
|
|
50858
|
+
}
|
|
50859
|
+
|
|
50860
|
+
/**
|
|
50861
|
+
* Creates a new Boosted instance using the specified properties.
|
|
50862
|
+
* @function create
|
|
50863
|
+
* @memberof replit.goval.api.features.Boosted
|
|
50864
|
+
* @static
|
|
50865
|
+
* @param {replit.goval.api.features.IBoosted=} [properties] Properties to set
|
|
50866
|
+
* @returns {replit.goval.api.features.Boosted} Boosted instance
|
|
50867
|
+
*/
|
|
50868
|
+
Boosted.create = function create(properties) {
|
|
50869
|
+
return Boosted.fromObject(properties);
|
|
50870
|
+
};
|
|
50871
|
+
|
|
50872
|
+
/**
|
|
50873
|
+
* Encodes the specified Boosted message. Does not implicitly {@link replit.goval.api.features.Boosted.verify|verify} messages.
|
|
50874
|
+
* @function encode
|
|
50875
|
+
* @memberof replit.goval.api.features.Boosted
|
|
50876
|
+
* @static
|
|
50877
|
+
* @param {replit.goval.api.features.Boosted} message Boosted message or plain object to encode
|
|
49146
50878
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
49147
50879
|
* @returns {$protobuf.Writer} Writer
|
|
49148
50880
|
*/
|
|
@@ -51898,6 +53630,208 @@
|
|
|
51898
53630
|
return ListValue;
|
|
51899
53631
|
})();
|
|
51900
53632
|
|
|
53633
|
+
protobuf.FieldMask = (function() {
|
|
53634
|
+
|
|
53635
|
+
/**
|
|
53636
|
+
* Properties of a FieldMask.
|
|
53637
|
+
* @memberof google.protobuf
|
|
53638
|
+
* @interface IFieldMask
|
|
53639
|
+
* @property {Array.<string>|null} [paths] FieldMask paths
|
|
53640
|
+
*/
|
|
53641
|
+
|
|
53642
|
+
/**
|
|
53643
|
+
* Constructs a new FieldMask.
|
|
53644
|
+
* @memberof google.protobuf
|
|
53645
|
+
* @classdesc Represents a FieldMask.
|
|
53646
|
+
* @constructor
|
|
53647
|
+
* @param {google.protobuf.IFieldMask=} [properties] Properties to set
|
|
53648
|
+
*/
|
|
53649
|
+
function FieldMask(properties) {
|
|
53650
|
+
this.paths = [];
|
|
53651
|
+
if (properties)
|
|
53652
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
53653
|
+
if (properties[keys[i]] != null)
|
|
53654
|
+
this[keys[i]] = properties[keys[i]];
|
|
53655
|
+
}
|
|
53656
|
+
|
|
53657
|
+
/**
|
|
53658
|
+
* FieldMask paths.
|
|
53659
|
+
* @member {Array.<string>} paths
|
|
53660
|
+
* @memberof google.protobuf.FieldMask
|
|
53661
|
+
* @instance
|
|
53662
|
+
*/
|
|
53663
|
+
FieldMask.prototype.paths = $util.emptyArray;
|
|
53664
|
+
|
|
53665
|
+
/**
|
|
53666
|
+
* Creates a new FieldMask instance using the specified properties.
|
|
53667
|
+
* @function create
|
|
53668
|
+
* @memberof google.protobuf.FieldMask
|
|
53669
|
+
* @static
|
|
53670
|
+
* @param {google.protobuf.IFieldMask=} [properties] Properties to set
|
|
53671
|
+
* @returns {google.protobuf.FieldMask} FieldMask instance
|
|
53672
|
+
*/
|
|
53673
|
+
FieldMask.create = function create(properties) {
|
|
53674
|
+
return FieldMask.fromObject(properties);
|
|
53675
|
+
};
|
|
53676
|
+
|
|
53677
|
+
/**
|
|
53678
|
+
* Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
|
|
53679
|
+
* @function encode
|
|
53680
|
+
* @memberof google.protobuf.FieldMask
|
|
53681
|
+
* @static
|
|
53682
|
+
* @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
|
|
53683
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53684
|
+
* @returns {$protobuf.Writer} Writer
|
|
53685
|
+
*/
|
|
53686
|
+
FieldMask.encode = function encode(message, writer) {
|
|
53687
|
+
if (!writer)
|
|
53688
|
+
writer = $Writer.create();
|
|
53689
|
+
if (message.paths != null && message.paths.length)
|
|
53690
|
+
for (var i = 0; i < message.paths.length; ++i)
|
|
53691
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]);
|
|
53692
|
+
return writer;
|
|
53693
|
+
};
|
|
53694
|
+
|
|
53695
|
+
/**
|
|
53696
|
+
* Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
|
|
53697
|
+
* @function encodeDelimited
|
|
53698
|
+
* @memberof google.protobuf.FieldMask
|
|
53699
|
+
* @static
|
|
53700
|
+
* @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
|
|
53701
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
53702
|
+
* @returns {$protobuf.Writer} Writer
|
|
53703
|
+
*/
|
|
53704
|
+
FieldMask.encodeDelimited = function encodeDelimited(message, writer) {
|
|
53705
|
+
return this.encode(message, writer).ldelim();
|
|
53706
|
+
};
|
|
53707
|
+
|
|
53708
|
+
/**
|
|
53709
|
+
* Decodes a FieldMask message from the specified reader or buffer.
|
|
53710
|
+
* @function decode
|
|
53711
|
+
* @memberof google.protobuf.FieldMask
|
|
53712
|
+
* @static
|
|
53713
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53714
|
+
* @param {number} [length] Message length if known beforehand
|
|
53715
|
+
* @returns {google.protobuf.FieldMask} FieldMask
|
|
53716
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53717
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53718
|
+
*/
|
|
53719
|
+
FieldMask.decode = function decode(reader, length) {
|
|
53720
|
+
if (!(reader instanceof $Reader))
|
|
53721
|
+
reader = $Reader.create(reader);
|
|
53722
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask();
|
|
53723
|
+
while (reader.pos < end) {
|
|
53724
|
+
var tag = reader.uint32();
|
|
53725
|
+
switch (tag >>> 3) {
|
|
53726
|
+
case 1:
|
|
53727
|
+
if (!(message.paths && message.paths.length))
|
|
53728
|
+
message.paths = [];
|
|
53729
|
+
message.paths.push(reader.string());
|
|
53730
|
+
break;
|
|
53731
|
+
default:
|
|
53732
|
+
reader.skipType(tag & 7);
|
|
53733
|
+
break;
|
|
53734
|
+
}
|
|
53735
|
+
}
|
|
53736
|
+
return message;
|
|
53737
|
+
};
|
|
53738
|
+
|
|
53739
|
+
/**
|
|
53740
|
+
* Decodes a FieldMask message from the specified reader or buffer, length delimited.
|
|
53741
|
+
* @function decodeDelimited
|
|
53742
|
+
* @memberof google.protobuf.FieldMask
|
|
53743
|
+
* @static
|
|
53744
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
53745
|
+
* @returns {google.protobuf.FieldMask} FieldMask
|
|
53746
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
53747
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
53748
|
+
*/
|
|
53749
|
+
FieldMask.decodeDelimited = function decodeDelimited(reader) {
|
|
53750
|
+
if (!(reader instanceof $Reader))
|
|
53751
|
+
reader = new $Reader(reader);
|
|
53752
|
+
return this.decode(reader, reader.uint32());
|
|
53753
|
+
};
|
|
53754
|
+
|
|
53755
|
+
/**
|
|
53756
|
+
* Verifies a FieldMask message.
|
|
53757
|
+
* @function verify
|
|
53758
|
+
* @memberof google.protobuf.FieldMask
|
|
53759
|
+
* @static
|
|
53760
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
53761
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
53762
|
+
*/
|
|
53763
|
+
FieldMask.verify = function verify(message) {
|
|
53764
|
+
if (typeof message !== "object" || message === null)
|
|
53765
|
+
return "object expected";
|
|
53766
|
+
if (message.paths != null && message.hasOwnProperty("paths")) {
|
|
53767
|
+
if (!Array.isArray(message.paths))
|
|
53768
|
+
return "paths: array expected";
|
|
53769
|
+
for (var i = 0; i < message.paths.length; ++i)
|
|
53770
|
+
if (!$util.isString(message.paths[i]))
|
|
53771
|
+
return "paths: string[] expected";
|
|
53772
|
+
}
|
|
53773
|
+
return null;
|
|
53774
|
+
};
|
|
53775
|
+
|
|
53776
|
+
/**
|
|
53777
|
+
* Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
|
|
53778
|
+
* @function fromObject
|
|
53779
|
+
* @memberof google.protobuf.FieldMask
|
|
53780
|
+
* @static
|
|
53781
|
+
* @param {Object.<string,*>} object Plain object
|
|
53782
|
+
* @returns {google.protobuf.FieldMask} FieldMask
|
|
53783
|
+
*/
|
|
53784
|
+
FieldMask.fromObject = function fromObject(object) {
|
|
53785
|
+
if (object instanceof $root.google.protobuf.FieldMask)
|
|
53786
|
+
return object;
|
|
53787
|
+
var message = new $root.google.protobuf.FieldMask();
|
|
53788
|
+
if (object.paths) {
|
|
53789
|
+
if (!Array.isArray(object.paths))
|
|
53790
|
+
throw TypeError(".google.protobuf.FieldMask.paths: array expected");
|
|
53791
|
+
message.paths = [];
|
|
53792
|
+
for (var i = 0; i < object.paths.length; ++i)
|
|
53793
|
+
message.paths[i] = String(object.paths[i]);
|
|
53794
|
+
}
|
|
53795
|
+
return message;
|
|
53796
|
+
};
|
|
53797
|
+
|
|
53798
|
+
/**
|
|
53799
|
+
* Creates a plain object from a FieldMask message. Also converts values to other types if specified.
|
|
53800
|
+
* @function toObject
|
|
53801
|
+
* @memberof google.protobuf.FieldMask
|
|
53802
|
+
* @static
|
|
53803
|
+
* @param {google.protobuf.FieldMask} message FieldMask
|
|
53804
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
53805
|
+
* @returns {Object.<string,*>} Plain object
|
|
53806
|
+
*/
|
|
53807
|
+
FieldMask.toObject = function toObject(message, options) {
|
|
53808
|
+
if (!options)
|
|
53809
|
+
options = {};
|
|
53810
|
+
var object = {};
|
|
53811
|
+
if (options.arrays || options.defaults)
|
|
53812
|
+
object.paths = [];
|
|
53813
|
+
if (message.paths && message.paths.length) {
|
|
53814
|
+
object.paths = [];
|
|
53815
|
+
for (var j = 0; j < message.paths.length; ++j)
|
|
53816
|
+
object.paths[j] = message.paths[j];
|
|
53817
|
+
}
|
|
53818
|
+
return object;
|
|
53819
|
+
};
|
|
53820
|
+
|
|
53821
|
+
/**
|
|
53822
|
+
* Converts this FieldMask to JSON.
|
|
53823
|
+
* @function toJSON
|
|
53824
|
+
* @memberof google.protobuf.FieldMask
|
|
53825
|
+
* @instance
|
|
53826
|
+
* @returns {Object.<string,*>} JSON object
|
|
53827
|
+
*/
|
|
53828
|
+
FieldMask.prototype.toJSON = function toJSON() {
|
|
53829
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
53830
|
+
};
|
|
53831
|
+
|
|
53832
|
+
return FieldMask;
|
|
53833
|
+
})();
|
|
53834
|
+
|
|
51901
53835
|
return protobuf;
|
|
51902
53836
|
})();
|
|
51903
53837
|
|