@replit/protocol 0.2.76 → 0.2.78
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/gen.sh +1 -2
- package/main/index.d.ts +507 -3
- package/main/index.js +1231 -6
- package/main/index.js.flow +720 -3
- package/package.json +1 -1
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
|
/**
|
|
@@ -48944,6 +49230,7 @@
|
|
|
48944
49230
|
* @property {replit.goval.api.ClusterTransfer|replit.goval.api.IClusterTransfer|null} [clusterTransfer] LoreCommand clusterTransfer
|
|
48945
49231
|
* @property {replit.goval.api.SoftTakedown|replit.goval.api.ISoftTakedown|null} [softTakedown] LoreCommand softTakedown
|
|
48946
49232
|
* @property {replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand|null} [govalCommand] LoreCommand govalCommand
|
|
49233
|
+
* @property {replit.goval.api.MultiGovalCommand|replit.goval.api.IMultiGovalCommand|null} [multiGovalCommand] LoreCommand multiGovalCommand
|
|
48947
49234
|
* @property {replit.goval.api.Restore|replit.goval.api.IRestore|null} [restore] LoreCommand restore
|
|
48948
49235
|
*/
|
|
48949
49236
|
|
|
@@ -48985,6 +49272,14 @@
|
|
|
48985
49272
|
*/
|
|
48986
49273
|
LoreCommand.prototype.govalCommand = null;
|
|
48987
49274
|
|
|
49275
|
+
/**
|
|
49276
|
+
* LoreCommand multiGovalCommand.
|
|
49277
|
+
* @member {replit.goval.api.MultiGovalCommand|null|undefined} multiGovalCommand
|
|
49278
|
+
* @memberof replit.goval.api.LoreCommand
|
|
49279
|
+
* @instance
|
|
49280
|
+
*/
|
|
49281
|
+
LoreCommand.prototype.multiGovalCommand = null;
|
|
49282
|
+
|
|
48988
49283
|
/**
|
|
48989
49284
|
* LoreCommand restore.
|
|
48990
49285
|
* @member {replit.goval.api.Restore|null|undefined} restore
|
|
@@ -48998,12 +49293,12 @@
|
|
|
48998
49293
|
|
|
48999
49294
|
/**
|
|
49000
49295
|
* LoreCommand command.
|
|
49001
|
-
* @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"restore"|undefined} command
|
|
49296
|
+
* @member {"clusterTransfer"|"softTakedown"|"govalCommand"|"multiGovalCommand"|"restore"|undefined} command
|
|
49002
49297
|
* @memberof replit.goval.api.LoreCommand
|
|
49003
49298
|
* @instance
|
|
49004
49299
|
*/
|
|
49005
49300
|
Object.defineProperty(LoreCommand.prototype, "command", {
|
|
49006
|
-
get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "restore"]),
|
|
49301
|
+
get: $util.oneOfGetter($oneOfFields = ["clusterTransfer", "softTakedown", "govalCommand", "multiGovalCommand", "restore"]),
|
|
49007
49302
|
set: $util.oneOfSetter($oneOfFields)
|
|
49008
49303
|
});
|
|
49009
49304
|
|
|
@@ -49039,6 +49334,8 @@
|
|
|
49039
49334
|
$root.replit.goval.api.GovalCommand.encode(message.govalCommand, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
49040
49335
|
if (message.restore != null && Object.hasOwnProperty.call(message, "restore"))
|
|
49041
49336
|
$root.replit.goval.api.Restore.encode(message.restore, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
49337
|
+
if (message.multiGovalCommand != null && Object.hasOwnProperty.call(message, "multiGovalCommand"))
|
|
49338
|
+
$root.replit.goval.api.MultiGovalCommand.encode(message.multiGovalCommand, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
49042
49339
|
return writer;
|
|
49043
49340
|
};
|
|
49044
49341
|
|
|
@@ -49082,6 +49379,9 @@
|
|
|
49082
49379
|
case 3:
|
|
49083
49380
|
message.govalCommand = $root.replit.goval.api.GovalCommand.decode(reader, reader.uint32());
|
|
49084
49381
|
break;
|
|
49382
|
+
case 5:
|
|
49383
|
+
message.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.decode(reader, reader.uint32());
|
|
49384
|
+
break;
|
|
49085
49385
|
case 4:
|
|
49086
49386
|
message.restore = $root.replit.goval.api.Restore.decode(reader, reader.uint32());
|
|
49087
49387
|
break;
|
|
@@ -49149,6 +49449,16 @@
|
|
|
49149
49449
|
return "govalCommand." + error;
|
|
49150
49450
|
}
|
|
49151
49451
|
}
|
|
49452
|
+
if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
|
|
49453
|
+
if (properties.command === 1)
|
|
49454
|
+
return "command: multiple values";
|
|
49455
|
+
properties.command = 1;
|
|
49456
|
+
{
|
|
49457
|
+
var error = $root.replit.goval.api.MultiGovalCommand.verify(message.multiGovalCommand);
|
|
49458
|
+
if (error)
|
|
49459
|
+
return "multiGovalCommand." + error;
|
|
49460
|
+
}
|
|
49461
|
+
}
|
|
49152
49462
|
if (message.restore != null && message.hasOwnProperty("restore")) {
|
|
49153
49463
|
if (properties.command === 1)
|
|
49154
49464
|
return "command: multiple values";
|
|
@@ -49189,6 +49499,11 @@
|
|
|
49189
49499
|
throw TypeError(".replit.goval.api.LoreCommand.govalCommand: object expected");
|
|
49190
49500
|
message.govalCommand = $root.replit.goval.api.GovalCommand.fromObject(object.govalCommand);
|
|
49191
49501
|
}
|
|
49502
|
+
if (object.multiGovalCommand != null) {
|
|
49503
|
+
if (typeof object.multiGovalCommand !== "object")
|
|
49504
|
+
throw TypeError(".replit.goval.api.LoreCommand.multiGovalCommand: object expected");
|
|
49505
|
+
message.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.fromObject(object.multiGovalCommand);
|
|
49506
|
+
}
|
|
49192
49507
|
if (object.restore != null) {
|
|
49193
49508
|
if (typeof object.restore !== "object")
|
|
49194
49509
|
throw TypeError(".replit.goval.api.LoreCommand.restore: object expected");
|
|
@@ -49230,6 +49545,11 @@
|
|
|
49230
49545
|
if (options.oneofs)
|
|
49231
49546
|
object.command = "restore";
|
|
49232
49547
|
}
|
|
49548
|
+
if (message.multiGovalCommand != null && message.hasOwnProperty("multiGovalCommand")) {
|
|
49549
|
+
object.multiGovalCommand = $root.replit.goval.api.MultiGovalCommand.toObject(message.multiGovalCommand, options);
|
|
49550
|
+
if (options.oneofs)
|
|
49551
|
+
object.command = "multiGovalCommand";
|
|
49552
|
+
}
|
|
49233
49553
|
return object;
|
|
49234
49554
|
};
|
|
49235
49555
|
|
|
@@ -49716,6 +50036,8 @@
|
|
|
49716
50036
|
* @memberof replit.goval.api
|
|
49717
50037
|
* @interface IGovalCommand
|
|
49718
50038
|
* @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
|
|
50039
|
+
* @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
|
|
50040
|
+
* @property {replit.goval.api.KillRepl|replit.goval.api.IKillRepl|null} [killRepl] GovalCommand killRepl
|
|
49719
50041
|
*/
|
|
49720
50042
|
|
|
49721
50043
|
/**
|
|
@@ -49740,17 +50062,33 @@
|
|
|
49740
50062
|
*/
|
|
49741
50063
|
GovalCommand.prototype.updateMetadata = null;
|
|
49742
50064
|
|
|
50065
|
+
/**
|
|
50066
|
+
* GovalCommand partialUpdateMetadata.
|
|
50067
|
+
* @member {replit.goval.api.PartialUpdateMetadata|null|undefined} partialUpdateMetadata
|
|
50068
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50069
|
+
* @instance
|
|
50070
|
+
*/
|
|
50071
|
+
GovalCommand.prototype.partialUpdateMetadata = null;
|
|
50072
|
+
|
|
50073
|
+
/**
|
|
50074
|
+
* GovalCommand killRepl.
|
|
50075
|
+
* @member {replit.goval.api.KillRepl|null|undefined} killRepl
|
|
50076
|
+
* @memberof replit.goval.api.GovalCommand
|
|
50077
|
+
* @instance
|
|
50078
|
+
*/
|
|
50079
|
+
GovalCommand.prototype.killRepl = null;
|
|
50080
|
+
|
|
49743
50081
|
// OneOf field names bound to virtual getters and setters
|
|
49744
50082
|
var $oneOfFields;
|
|
49745
50083
|
|
|
49746
50084
|
/**
|
|
49747
50085
|
* GovalCommand command.
|
|
49748
|
-
* @member {"updateMetadata"|undefined} command
|
|
50086
|
+
* @member {"updateMetadata"|"partialUpdateMetadata"|"killRepl"|undefined} command
|
|
49749
50087
|
* @memberof replit.goval.api.GovalCommand
|
|
49750
50088
|
* @instance
|
|
49751
50089
|
*/
|
|
49752
50090
|
Object.defineProperty(GovalCommand.prototype, "command", {
|
|
49753
|
-
get: $util.oneOfGetter($oneOfFields = ["updateMetadata"]),
|
|
50091
|
+
get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata", "killRepl"]),
|
|
49754
50092
|
set: $util.oneOfSetter($oneOfFields)
|
|
49755
50093
|
});
|
|
49756
50094
|
|
|
@@ -49780,6 +50118,10 @@
|
|
|
49780
50118
|
writer = $Writer.create();
|
|
49781
50119
|
if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
|
|
49782
50120
|
$root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50121
|
+
if (message.partialUpdateMetadata != null && Object.hasOwnProperty.call(message, "partialUpdateMetadata"))
|
|
50122
|
+
$root.replit.goval.api.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50123
|
+
if (message.killRepl != null && Object.hasOwnProperty.call(message, "killRepl"))
|
|
50124
|
+
$root.replit.goval.api.KillRepl.encode(message.killRepl, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
49783
50125
|
return writer;
|
|
49784
50126
|
};
|
|
49785
50127
|
|
|
@@ -49817,6 +50159,12 @@
|
|
|
49817
50159
|
case 1:
|
|
49818
50160
|
message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
|
|
49819
50161
|
break;
|
|
50162
|
+
case 2:
|
|
50163
|
+
message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.decode(reader, reader.uint32());
|
|
50164
|
+
break;
|
|
50165
|
+
case 3:
|
|
50166
|
+
message.killRepl = $root.replit.goval.api.KillRepl.decode(reader, reader.uint32());
|
|
50167
|
+
break;
|
|
49820
50168
|
default:
|
|
49821
50169
|
reader.skipType(tag & 7);
|
|
49822
50170
|
break;
|
|
@@ -49861,6 +50209,26 @@
|
|
|
49861
50209
|
return "updateMetadata." + error;
|
|
49862
50210
|
}
|
|
49863
50211
|
}
|
|
50212
|
+
if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
|
|
50213
|
+
if (properties.command === 1)
|
|
50214
|
+
return "command: multiple values";
|
|
50215
|
+
properties.command = 1;
|
|
50216
|
+
{
|
|
50217
|
+
var error = $root.replit.goval.api.PartialUpdateMetadata.verify(message.partialUpdateMetadata);
|
|
50218
|
+
if (error)
|
|
50219
|
+
return "partialUpdateMetadata." + error;
|
|
50220
|
+
}
|
|
50221
|
+
}
|
|
50222
|
+
if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
|
|
50223
|
+
if (properties.command === 1)
|
|
50224
|
+
return "command: multiple values";
|
|
50225
|
+
properties.command = 1;
|
|
50226
|
+
{
|
|
50227
|
+
var error = $root.replit.goval.api.KillRepl.verify(message.killRepl);
|
|
50228
|
+
if (error)
|
|
50229
|
+
return "killRepl." + error;
|
|
50230
|
+
}
|
|
50231
|
+
}
|
|
49864
50232
|
return null;
|
|
49865
50233
|
};
|
|
49866
50234
|
|
|
@@ -49881,6 +50249,16 @@
|
|
|
49881
50249
|
throw TypeError(".replit.goval.api.GovalCommand.updateMetadata: object expected");
|
|
49882
50250
|
message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
|
|
49883
50251
|
}
|
|
50252
|
+
if (object.partialUpdateMetadata != null) {
|
|
50253
|
+
if (typeof object.partialUpdateMetadata !== "object")
|
|
50254
|
+
throw TypeError(".replit.goval.api.GovalCommand.partialUpdateMetadata: object expected");
|
|
50255
|
+
message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.fromObject(object.partialUpdateMetadata);
|
|
50256
|
+
}
|
|
50257
|
+
if (object.killRepl != null) {
|
|
50258
|
+
if (typeof object.killRepl !== "object")
|
|
50259
|
+
throw TypeError(".replit.goval.api.GovalCommand.killRepl: object expected");
|
|
50260
|
+
message.killRepl = $root.replit.goval.api.KillRepl.fromObject(object.killRepl);
|
|
50261
|
+
}
|
|
49884
50262
|
return message;
|
|
49885
50263
|
};
|
|
49886
50264
|
|
|
@@ -49902,6 +50280,16 @@
|
|
|
49902
50280
|
if (options.oneofs)
|
|
49903
50281
|
object.command = "updateMetadata";
|
|
49904
50282
|
}
|
|
50283
|
+
if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
|
|
50284
|
+
object.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.toObject(message.partialUpdateMetadata, options);
|
|
50285
|
+
if (options.oneofs)
|
|
50286
|
+
object.command = "partialUpdateMetadata";
|
|
50287
|
+
}
|
|
50288
|
+
if (message.killRepl != null && message.hasOwnProperty("killRepl")) {
|
|
50289
|
+
object.killRepl = $root.replit.goval.api.KillRepl.toObject(message.killRepl, options);
|
|
50290
|
+
if (options.oneofs)
|
|
50291
|
+
object.command = "killRepl";
|
|
50292
|
+
}
|
|
49905
50293
|
return object;
|
|
49906
50294
|
};
|
|
49907
50295
|
|
|
@@ -49919,6 +50307,641 @@
|
|
|
49919
50307
|
return GovalCommand;
|
|
49920
50308
|
})();
|
|
49921
50309
|
|
|
50310
|
+
api.PartialUpdateMetadata = (function() {
|
|
50311
|
+
|
|
50312
|
+
/**
|
|
50313
|
+
* Properties of a PartialUpdateMetadata.
|
|
50314
|
+
* @memberof replit.goval.api
|
|
50315
|
+
* @interface IPartialUpdateMetadata
|
|
50316
|
+
* @property {google.protobuf.FieldMask|google.protobuf.IFieldMask|null} [fieldMask] PartialUpdateMetadata fieldMask
|
|
50317
|
+
* @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] PartialUpdateMetadata updateMetadata
|
|
50318
|
+
*/
|
|
50319
|
+
|
|
50320
|
+
/**
|
|
50321
|
+
* Constructs a new PartialUpdateMetadata.
|
|
50322
|
+
* @memberof replit.goval.api
|
|
50323
|
+
* @classdesc Represents a PartialUpdateMetadata.
|
|
50324
|
+
* @constructor
|
|
50325
|
+
* @param {replit.goval.api.IPartialUpdateMetadata=} [properties] Properties to set
|
|
50326
|
+
*/
|
|
50327
|
+
function PartialUpdateMetadata(properties) {
|
|
50328
|
+
if (properties)
|
|
50329
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50330
|
+
if (properties[keys[i]] != null)
|
|
50331
|
+
this[keys[i]] = properties[keys[i]];
|
|
50332
|
+
}
|
|
50333
|
+
|
|
50334
|
+
/**
|
|
50335
|
+
* PartialUpdateMetadata fieldMask.
|
|
50336
|
+
* @member {google.protobuf.FieldMask|null|undefined} fieldMask
|
|
50337
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50338
|
+
* @instance
|
|
50339
|
+
*/
|
|
50340
|
+
PartialUpdateMetadata.prototype.fieldMask = null;
|
|
50341
|
+
|
|
50342
|
+
/**
|
|
50343
|
+
* PartialUpdateMetadata updateMetadata.
|
|
50344
|
+
* @member {replit.goval.api.repl.Metadata|null|undefined} updateMetadata
|
|
50345
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50346
|
+
* @instance
|
|
50347
|
+
*/
|
|
50348
|
+
PartialUpdateMetadata.prototype.updateMetadata = null;
|
|
50349
|
+
|
|
50350
|
+
/**
|
|
50351
|
+
* Creates a new PartialUpdateMetadata instance using the specified properties.
|
|
50352
|
+
* @function create
|
|
50353
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50354
|
+
* @static
|
|
50355
|
+
* @param {replit.goval.api.IPartialUpdateMetadata=} [properties] Properties to set
|
|
50356
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata instance
|
|
50357
|
+
*/
|
|
50358
|
+
PartialUpdateMetadata.create = function create(properties) {
|
|
50359
|
+
return PartialUpdateMetadata.fromObject(properties);
|
|
50360
|
+
};
|
|
50361
|
+
|
|
50362
|
+
/**
|
|
50363
|
+
* Encodes the specified PartialUpdateMetadata message. Does not implicitly {@link replit.goval.api.PartialUpdateMetadata.verify|verify} messages.
|
|
50364
|
+
* @function encode
|
|
50365
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50366
|
+
* @static
|
|
50367
|
+
* @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
|
|
50368
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50369
|
+
* @returns {$protobuf.Writer} Writer
|
|
50370
|
+
*/
|
|
50371
|
+
PartialUpdateMetadata.encode = function encode(message, writer) {
|
|
50372
|
+
if (!writer)
|
|
50373
|
+
writer = $Writer.create();
|
|
50374
|
+
if (message.fieldMask != null && Object.hasOwnProperty.call(message, "fieldMask"))
|
|
50375
|
+
$root.google.protobuf.FieldMask.encode(message.fieldMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
50376
|
+
if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
|
|
50377
|
+
$root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50378
|
+
return writer;
|
|
50379
|
+
};
|
|
50380
|
+
|
|
50381
|
+
/**
|
|
50382
|
+
* Encodes the specified PartialUpdateMetadata message, length delimited. Does not implicitly {@link replit.goval.api.PartialUpdateMetadata.verify|verify} messages.
|
|
50383
|
+
* @function encodeDelimited
|
|
50384
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50385
|
+
* @static
|
|
50386
|
+
* @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
|
|
50387
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50388
|
+
* @returns {$protobuf.Writer} Writer
|
|
50389
|
+
*/
|
|
50390
|
+
PartialUpdateMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50391
|
+
return this.encode(message, writer).ldelim();
|
|
50392
|
+
};
|
|
50393
|
+
|
|
50394
|
+
/**
|
|
50395
|
+
* Decodes a PartialUpdateMetadata message from the specified reader or buffer.
|
|
50396
|
+
* @function decode
|
|
50397
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50398
|
+
* @static
|
|
50399
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50400
|
+
* @param {number} [length] Message length if known beforehand
|
|
50401
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
|
|
50402
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50403
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50404
|
+
*/
|
|
50405
|
+
PartialUpdateMetadata.decode = function decode(reader, length) {
|
|
50406
|
+
if (!(reader instanceof $Reader))
|
|
50407
|
+
reader = $Reader.create(reader);
|
|
50408
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.PartialUpdateMetadata();
|
|
50409
|
+
while (reader.pos < end) {
|
|
50410
|
+
var tag = reader.uint32();
|
|
50411
|
+
switch (tag >>> 3) {
|
|
50412
|
+
case 1:
|
|
50413
|
+
message.fieldMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
|
|
50414
|
+
break;
|
|
50415
|
+
case 2:
|
|
50416
|
+
message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
|
|
50417
|
+
break;
|
|
50418
|
+
default:
|
|
50419
|
+
reader.skipType(tag & 7);
|
|
50420
|
+
break;
|
|
50421
|
+
}
|
|
50422
|
+
}
|
|
50423
|
+
return message;
|
|
50424
|
+
};
|
|
50425
|
+
|
|
50426
|
+
/**
|
|
50427
|
+
* Decodes a PartialUpdateMetadata message from the specified reader or buffer, length delimited.
|
|
50428
|
+
* @function decodeDelimited
|
|
50429
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50430
|
+
* @static
|
|
50431
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50432
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
|
|
50433
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50434
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50435
|
+
*/
|
|
50436
|
+
PartialUpdateMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
50437
|
+
if (!(reader instanceof $Reader))
|
|
50438
|
+
reader = new $Reader(reader);
|
|
50439
|
+
return this.decode(reader, reader.uint32());
|
|
50440
|
+
};
|
|
50441
|
+
|
|
50442
|
+
/**
|
|
50443
|
+
* Verifies a PartialUpdateMetadata message.
|
|
50444
|
+
* @function verify
|
|
50445
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50446
|
+
* @static
|
|
50447
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50448
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50449
|
+
*/
|
|
50450
|
+
PartialUpdateMetadata.verify = function verify(message) {
|
|
50451
|
+
if (typeof message !== "object" || message === null)
|
|
50452
|
+
return "object expected";
|
|
50453
|
+
if (message.fieldMask != null && message.hasOwnProperty("fieldMask")) {
|
|
50454
|
+
var error = $root.google.protobuf.FieldMask.verify(message.fieldMask);
|
|
50455
|
+
if (error)
|
|
50456
|
+
return "fieldMask." + error;
|
|
50457
|
+
}
|
|
50458
|
+
if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
|
|
50459
|
+
var error = $root.replit.goval.api.repl.Metadata.verify(message.updateMetadata);
|
|
50460
|
+
if (error)
|
|
50461
|
+
return "updateMetadata." + error;
|
|
50462
|
+
}
|
|
50463
|
+
return null;
|
|
50464
|
+
};
|
|
50465
|
+
|
|
50466
|
+
/**
|
|
50467
|
+
* Creates a PartialUpdateMetadata message from a plain object. Also converts values to their respective internal types.
|
|
50468
|
+
* @function fromObject
|
|
50469
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50470
|
+
* @static
|
|
50471
|
+
* @param {Object.<string,*>} object Plain object
|
|
50472
|
+
* @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
|
|
50473
|
+
*/
|
|
50474
|
+
PartialUpdateMetadata.fromObject = function fromObject(object) {
|
|
50475
|
+
if (object instanceof $root.replit.goval.api.PartialUpdateMetadata)
|
|
50476
|
+
return object;
|
|
50477
|
+
var message = new $root.replit.goval.api.PartialUpdateMetadata();
|
|
50478
|
+
if (object.fieldMask != null) {
|
|
50479
|
+
if (typeof object.fieldMask !== "object")
|
|
50480
|
+
throw TypeError(".replit.goval.api.PartialUpdateMetadata.fieldMask: object expected");
|
|
50481
|
+
message.fieldMask = $root.google.protobuf.FieldMask.fromObject(object.fieldMask);
|
|
50482
|
+
}
|
|
50483
|
+
if (object.updateMetadata != null) {
|
|
50484
|
+
if (typeof object.updateMetadata !== "object")
|
|
50485
|
+
throw TypeError(".replit.goval.api.PartialUpdateMetadata.updateMetadata: object expected");
|
|
50486
|
+
message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
|
|
50487
|
+
}
|
|
50488
|
+
return message;
|
|
50489
|
+
};
|
|
50490
|
+
|
|
50491
|
+
/**
|
|
50492
|
+
* Creates a plain object from a PartialUpdateMetadata message. Also converts values to other types if specified.
|
|
50493
|
+
* @function toObject
|
|
50494
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50495
|
+
* @static
|
|
50496
|
+
* @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata
|
|
50497
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50498
|
+
* @returns {Object.<string,*>} Plain object
|
|
50499
|
+
*/
|
|
50500
|
+
PartialUpdateMetadata.toObject = function toObject(message, options) {
|
|
50501
|
+
if (!options)
|
|
50502
|
+
options = {};
|
|
50503
|
+
var object = {};
|
|
50504
|
+
if (options.defaults) {
|
|
50505
|
+
object.fieldMask = null;
|
|
50506
|
+
object.updateMetadata = null;
|
|
50507
|
+
}
|
|
50508
|
+
if (message.fieldMask != null && message.hasOwnProperty("fieldMask"))
|
|
50509
|
+
object.fieldMask = $root.google.protobuf.FieldMask.toObject(message.fieldMask, options);
|
|
50510
|
+
if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata"))
|
|
50511
|
+
object.updateMetadata = $root.replit.goval.api.repl.Metadata.toObject(message.updateMetadata, options);
|
|
50512
|
+
return object;
|
|
50513
|
+
};
|
|
50514
|
+
|
|
50515
|
+
/**
|
|
50516
|
+
* Converts this PartialUpdateMetadata to JSON.
|
|
50517
|
+
* @function toJSON
|
|
50518
|
+
* @memberof replit.goval.api.PartialUpdateMetadata
|
|
50519
|
+
* @instance
|
|
50520
|
+
* @returns {Object.<string,*>} JSON object
|
|
50521
|
+
*/
|
|
50522
|
+
PartialUpdateMetadata.prototype.toJSON = function toJSON() {
|
|
50523
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50524
|
+
};
|
|
50525
|
+
|
|
50526
|
+
return PartialUpdateMetadata;
|
|
50527
|
+
})();
|
|
50528
|
+
|
|
50529
|
+
api.MultiGovalCommand = (function() {
|
|
50530
|
+
|
|
50531
|
+
/**
|
|
50532
|
+
* Properties of a MultiGovalCommand.
|
|
50533
|
+
* @memberof replit.goval.api
|
|
50534
|
+
* @interface IMultiGovalCommand
|
|
50535
|
+
* @property {string|null} [replId] MultiGovalCommand replId
|
|
50536
|
+
* @property {Array.<replit.goval.api.GovalCommand|replit.goval.api.IGovalCommand>|null} [govalCommands] MultiGovalCommand govalCommands
|
|
50537
|
+
*/
|
|
50538
|
+
|
|
50539
|
+
/**
|
|
50540
|
+
* Constructs a new MultiGovalCommand.
|
|
50541
|
+
* @memberof replit.goval.api
|
|
50542
|
+
* @classdesc Represents a MultiGovalCommand.
|
|
50543
|
+
* @constructor
|
|
50544
|
+
* @param {replit.goval.api.IMultiGovalCommand=} [properties] Properties to set
|
|
50545
|
+
*/
|
|
50546
|
+
function MultiGovalCommand(properties) {
|
|
50547
|
+
this.govalCommands = [];
|
|
50548
|
+
if (properties)
|
|
50549
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50550
|
+
if (properties[keys[i]] != null)
|
|
50551
|
+
this[keys[i]] = properties[keys[i]];
|
|
50552
|
+
}
|
|
50553
|
+
|
|
50554
|
+
/**
|
|
50555
|
+
* MultiGovalCommand replId.
|
|
50556
|
+
* @member {string} replId
|
|
50557
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50558
|
+
* @instance
|
|
50559
|
+
*/
|
|
50560
|
+
MultiGovalCommand.prototype.replId = "";
|
|
50561
|
+
|
|
50562
|
+
/**
|
|
50563
|
+
* MultiGovalCommand govalCommands.
|
|
50564
|
+
* @member {Array.<replit.goval.api.GovalCommand>} govalCommands
|
|
50565
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50566
|
+
* @instance
|
|
50567
|
+
*/
|
|
50568
|
+
MultiGovalCommand.prototype.govalCommands = $util.emptyArray;
|
|
50569
|
+
|
|
50570
|
+
/**
|
|
50571
|
+
* Creates a new MultiGovalCommand instance using the specified properties.
|
|
50572
|
+
* @function create
|
|
50573
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50574
|
+
* @static
|
|
50575
|
+
* @param {replit.goval.api.IMultiGovalCommand=} [properties] Properties to set
|
|
50576
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand instance
|
|
50577
|
+
*/
|
|
50578
|
+
MultiGovalCommand.create = function create(properties) {
|
|
50579
|
+
return MultiGovalCommand.fromObject(properties);
|
|
50580
|
+
};
|
|
50581
|
+
|
|
50582
|
+
/**
|
|
50583
|
+
* Encodes the specified MultiGovalCommand message. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
|
|
50584
|
+
* @function encode
|
|
50585
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50586
|
+
* @static
|
|
50587
|
+
* @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
|
|
50588
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50589
|
+
* @returns {$protobuf.Writer} Writer
|
|
50590
|
+
*/
|
|
50591
|
+
MultiGovalCommand.encode = function encode(message, writer) {
|
|
50592
|
+
if (!writer)
|
|
50593
|
+
writer = $Writer.create();
|
|
50594
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
50595
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
50596
|
+
if (message.govalCommands != null && message.govalCommands.length)
|
|
50597
|
+
for (var i = 0; i < message.govalCommands.length; ++i)
|
|
50598
|
+
$root.replit.goval.api.GovalCommand.encode(message.govalCommands[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
50599
|
+
return writer;
|
|
50600
|
+
};
|
|
50601
|
+
|
|
50602
|
+
/**
|
|
50603
|
+
* Encodes the specified MultiGovalCommand message, length delimited. Does not implicitly {@link replit.goval.api.MultiGovalCommand.verify|verify} messages.
|
|
50604
|
+
* @function encodeDelimited
|
|
50605
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50606
|
+
* @static
|
|
50607
|
+
* @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand message or plain object to encode
|
|
50608
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50609
|
+
* @returns {$protobuf.Writer} Writer
|
|
50610
|
+
*/
|
|
50611
|
+
MultiGovalCommand.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50612
|
+
return this.encode(message, writer).ldelim();
|
|
50613
|
+
};
|
|
50614
|
+
|
|
50615
|
+
/**
|
|
50616
|
+
* Decodes a MultiGovalCommand message from the specified reader or buffer.
|
|
50617
|
+
* @function decode
|
|
50618
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50619
|
+
* @static
|
|
50620
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50621
|
+
* @param {number} [length] Message length if known beforehand
|
|
50622
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
|
|
50623
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50624
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50625
|
+
*/
|
|
50626
|
+
MultiGovalCommand.decode = function decode(reader, length) {
|
|
50627
|
+
if (!(reader instanceof $Reader))
|
|
50628
|
+
reader = $Reader.create(reader);
|
|
50629
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.MultiGovalCommand();
|
|
50630
|
+
while (reader.pos < end) {
|
|
50631
|
+
var tag = reader.uint32();
|
|
50632
|
+
switch (tag >>> 3) {
|
|
50633
|
+
case 1:
|
|
50634
|
+
message.replId = reader.string();
|
|
50635
|
+
break;
|
|
50636
|
+
case 2:
|
|
50637
|
+
if (!(message.govalCommands && message.govalCommands.length))
|
|
50638
|
+
message.govalCommands = [];
|
|
50639
|
+
message.govalCommands.push($root.replit.goval.api.GovalCommand.decode(reader, reader.uint32()));
|
|
50640
|
+
break;
|
|
50641
|
+
default:
|
|
50642
|
+
reader.skipType(tag & 7);
|
|
50643
|
+
break;
|
|
50644
|
+
}
|
|
50645
|
+
}
|
|
50646
|
+
return message;
|
|
50647
|
+
};
|
|
50648
|
+
|
|
50649
|
+
/**
|
|
50650
|
+
* Decodes a MultiGovalCommand message from the specified reader or buffer, length delimited.
|
|
50651
|
+
* @function decodeDelimited
|
|
50652
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50653
|
+
* @static
|
|
50654
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50655
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
|
|
50656
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50657
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50658
|
+
*/
|
|
50659
|
+
MultiGovalCommand.decodeDelimited = function decodeDelimited(reader) {
|
|
50660
|
+
if (!(reader instanceof $Reader))
|
|
50661
|
+
reader = new $Reader(reader);
|
|
50662
|
+
return this.decode(reader, reader.uint32());
|
|
50663
|
+
};
|
|
50664
|
+
|
|
50665
|
+
/**
|
|
50666
|
+
* Verifies a MultiGovalCommand message.
|
|
50667
|
+
* @function verify
|
|
50668
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50669
|
+
* @static
|
|
50670
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50671
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50672
|
+
*/
|
|
50673
|
+
MultiGovalCommand.verify = function verify(message) {
|
|
50674
|
+
if (typeof message !== "object" || message === null)
|
|
50675
|
+
return "object expected";
|
|
50676
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
50677
|
+
if (!$util.isString(message.replId))
|
|
50678
|
+
return "replId: string expected";
|
|
50679
|
+
if (message.govalCommands != null && message.hasOwnProperty("govalCommands")) {
|
|
50680
|
+
if (!Array.isArray(message.govalCommands))
|
|
50681
|
+
return "govalCommands: array expected";
|
|
50682
|
+
for (var i = 0; i < message.govalCommands.length; ++i) {
|
|
50683
|
+
var error = $root.replit.goval.api.GovalCommand.verify(message.govalCommands[i]);
|
|
50684
|
+
if (error)
|
|
50685
|
+
return "govalCommands." + error;
|
|
50686
|
+
}
|
|
50687
|
+
}
|
|
50688
|
+
return null;
|
|
50689
|
+
};
|
|
50690
|
+
|
|
50691
|
+
/**
|
|
50692
|
+
* Creates a MultiGovalCommand message from a plain object. Also converts values to their respective internal types.
|
|
50693
|
+
* @function fromObject
|
|
50694
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50695
|
+
* @static
|
|
50696
|
+
* @param {Object.<string,*>} object Plain object
|
|
50697
|
+
* @returns {replit.goval.api.MultiGovalCommand} MultiGovalCommand
|
|
50698
|
+
*/
|
|
50699
|
+
MultiGovalCommand.fromObject = function fromObject(object) {
|
|
50700
|
+
if (object instanceof $root.replit.goval.api.MultiGovalCommand)
|
|
50701
|
+
return object;
|
|
50702
|
+
var message = new $root.replit.goval.api.MultiGovalCommand();
|
|
50703
|
+
if (object.replId != null)
|
|
50704
|
+
message.replId = String(object.replId);
|
|
50705
|
+
if (object.govalCommands) {
|
|
50706
|
+
if (!Array.isArray(object.govalCommands))
|
|
50707
|
+
throw TypeError(".replit.goval.api.MultiGovalCommand.govalCommands: array expected");
|
|
50708
|
+
message.govalCommands = [];
|
|
50709
|
+
for (var i = 0; i < object.govalCommands.length; ++i) {
|
|
50710
|
+
if (typeof object.govalCommands[i] !== "object")
|
|
50711
|
+
throw TypeError(".replit.goval.api.MultiGovalCommand.govalCommands: object expected");
|
|
50712
|
+
message.govalCommands[i] = $root.replit.goval.api.GovalCommand.fromObject(object.govalCommands[i]);
|
|
50713
|
+
}
|
|
50714
|
+
}
|
|
50715
|
+
return message;
|
|
50716
|
+
};
|
|
50717
|
+
|
|
50718
|
+
/**
|
|
50719
|
+
* Creates a plain object from a MultiGovalCommand message. Also converts values to other types if specified.
|
|
50720
|
+
* @function toObject
|
|
50721
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50722
|
+
* @static
|
|
50723
|
+
* @param {replit.goval.api.MultiGovalCommand} message MultiGovalCommand
|
|
50724
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50725
|
+
* @returns {Object.<string,*>} Plain object
|
|
50726
|
+
*/
|
|
50727
|
+
MultiGovalCommand.toObject = function toObject(message, options) {
|
|
50728
|
+
if (!options)
|
|
50729
|
+
options = {};
|
|
50730
|
+
var object = {};
|
|
50731
|
+
if (options.arrays || options.defaults)
|
|
50732
|
+
object.govalCommands = [];
|
|
50733
|
+
if (options.defaults)
|
|
50734
|
+
object.replId = "";
|
|
50735
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
50736
|
+
object.replId = message.replId;
|
|
50737
|
+
if (message.govalCommands && message.govalCommands.length) {
|
|
50738
|
+
object.govalCommands = [];
|
|
50739
|
+
for (var j = 0; j < message.govalCommands.length; ++j)
|
|
50740
|
+
object.govalCommands[j] = $root.replit.goval.api.GovalCommand.toObject(message.govalCommands[j], options);
|
|
50741
|
+
}
|
|
50742
|
+
return object;
|
|
50743
|
+
};
|
|
50744
|
+
|
|
50745
|
+
/**
|
|
50746
|
+
* Converts this MultiGovalCommand to JSON.
|
|
50747
|
+
* @function toJSON
|
|
50748
|
+
* @memberof replit.goval.api.MultiGovalCommand
|
|
50749
|
+
* @instance
|
|
50750
|
+
* @returns {Object.<string,*>} JSON object
|
|
50751
|
+
*/
|
|
50752
|
+
MultiGovalCommand.prototype.toJSON = function toJSON() {
|
|
50753
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50754
|
+
};
|
|
50755
|
+
|
|
50756
|
+
return MultiGovalCommand;
|
|
50757
|
+
})();
|
|
50758
|
+
|
|
50759
|
+
api.KillRepl = (function() {
|
|
50760
|
+
|
|
50761
|
+
/**
|
|
50762
|
+
* Properties of a KillRepl.
|
|
50763
|
+
* @memberof replit.goval.api
|
|
50764
|
+
* @interface IKillRepl
|
|
50765
|
+
* @property {string|null} [replId] KillRepl replId
|
|
50766
|
+
*/
|
|
50767
|
+
|
|
50768
|
+
/**
|
|
50769
|
+
* Constructs a new KillRepl.
|
|
50770
|
+
* @memberof replit.goval.api
|
|
50771
|
+
* @classdesc Represents a KillRepl.
|
|
50772
|
+
* @constructor
|
|
50773
|
+
* @param {replit.goval.api.IKillRepl=} [properties] Properties to set
|
|
50774
|
+
*/
|
|
50775
|
+
function KillRepl(properties) {
|
|
50776
|
+
if (properties)
|
|
50777
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
50778
|
+
if (properties[keys[i]] != null)
|
|
50779
|
+
this[keys[i]] = properties[keys[i]];
|
|
50780
|
+
}
|
|
50781
|
+
|
|
50782
|
+
/**
|
|
50783
|
+
* KillRepl replId.
|
|
50784
|
+
* @member {string} replId
|
|
50785
|
+
* @memberof replit.goval.api.KillRepl
|
|
50786
|
+
* @instance
|
|
50787
|
+
*/
|
|
50788
|
+
KillRepl.prototype.replId = "";
|
|
50789
|
+
|
|
50790
|
+
/**
|
|
50791
|
+
* Creates a new KillRepl instance using the specified properties.
|
|
50792
|
+
* @function create
|
|
50793
|
+
* @memberof replit.goval.api.KillRepl
|
|
50794
|
+
* @static
|
|
50795
|
+
* @param {replit.goval.api.IKillRepl=} [properties] Properties to set
|
|
50796
|
+
* @returns {replit.goval.api.KillRepl} KillRepl instance
|
|
50797
|
+
*/
|
|
50798
|
+
KillRepl.create = function create(properties) {
|
|
50799
|
+
return KillRepl.fromObject(properties);
|
|
50800
|
+
};
|
|
50801
|
+
|
|
50802
|
+
/**
|
|
50803
|
+
* Encodes the specified KillRepl message. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
|
|
50804
|
+
* @function encode
|
|
50805
|
+
* @memberof replit.goval.api.KillRepl
|
|
50806
|
+
* @static
|
|
50807
|
+
* @param {replit.goval.api.KillRepl} message KillRepl message or plain object to encode
|
|
50808
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50809
|
+
* @returns {$protobuf.Writer} Writer
|
|
50810
|
+
*/
|
|
50811
|
+
KillRepl.encode = function encode(message, writer) {
|
|
50812
|
+
if (!writer)
|
|
50813
|
+
writer = $Writer.create();
|
|
50814
|
+
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
50815
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
50816
|
+
return writer;
|
|
50817
|
+
};
|
|
50818
|
+
|
|
50819
|
+
/**
|
|
50820
|
+
* Encodes the specified KillRepl message, length delimited. Does not implicitly {@link replit.goval.api.KillRepl.verify|verify} messages.
|
|
50821
|
+
* @function encodeDelimited
|
|
50822
|
+
* @memberof replit.goval.api.KillRepl
|
|
50823
|
+
* @static
|
|
50824
|
+
* @param {replit.goval.api.KillRepl} message KillRepl message or plain object to encode
|
|
50825
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
50826
|
+
* @returns {$protobuf.Writer} Writer
|
|
50827
|
+
*/
|
|
50828
|
+
KillRepl.encodeDelimited = function encodeDelimited(message, writer) {
|
|
50829
|
+
return this.encode(message, writer).ldelim();
|
|
50830
|
+
};
|
|
50831
|
+
|
|
50832
|
+
/**
|
|
50833
|
+
* Decodes a KillRepl message from the specified reader or buffer.
|
|
50834
|
+
* @function decode
|
|
50835
|
+
* @memberof replit.goval.api.KillRepl
|
|
50836
|
+
* @static
|
|
50837
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50838
|
+
* @param {number} [length] Message length if known beforehand
|
|
50839
|
+
* @returns {replit.goval.api.KillRepl} KillRepl
|
|
50840
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50841
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50842
|
+
*/
|
|
50843
|
+
KillRepl.decode = function decode(reader, length) {
|
|
50844
|
+
if (!(reader instanceof $Reader))
|
|
50845
|
+
reader = $Reader.create(reader);
|
|
50846
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.KillRepl();
|
|
50847
|
+
while (reader.pos < end) {
|
|
50848
|
+
var tag = reader.uint32();
|
|
50849
|
+
switch (tag >>> 3) {
|
|
50850
|
+
case 1:
|
|
50851
|
+
message.replId = reader.string();
|
|
50852
|
+
break;
|
|
50853
|
+
default:
|
|
50854
|
+
reader.skipType(tag & 7);
|
|
50855
|
+
break;
|
|
50856
|
+
}
|
|
50857
|
+
}
|
|
50858
|
+
return message;
|
|
50859
|
+
};
|
|
50860
|
+
|
|
50861
|
+
/**
|
|
50862
|
+
* Decodes a KillRepl message from the specified reader or buffer, length delimited.
|
|
50863
|
+
* @function decodeDelimited
|
|
50864
|
+
* @memberof replit.goval.api.KillRepl
|
|
50865
|
+
* @static
|
|
50866
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
50867
|
+
* @returns {replit.goval.api.KillRepl} KillRepl
|
|
50868
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
50869
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
50870
|
+
*/
|
|
50871
|
+
KillRepl.decodeDelimited = function decodeDelimited(reader) {
|
|
50872
|
+
if (!(reader instanceof $Reader))
|
|
50873
|
+
reader = new $Reader(reader);
|
|
50874
|
+
return this.decode(reader, reader.uint32());
|
|
50875
|
+
};
|
|
50876
|
+
|
|
50877
|
+
/**
|
|
50878
|
+
* Verifies a KillRepl message.
|
|
50879
|
+
* @function verify
|
|
50880
|
+
* @memberof replit.goval.api.KillRepl
|
|
50881
|
+
* @static
|
|
50882
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
50883
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
50884
|
+
*/
|
|
50885
|
+
KillRepl.verify = function verify(message) {
|
|
50886
|
+
if (typeof message !== "object" || message === null)
|
|
50887
|
+
return "object expected";
|
|
50888
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
50889
|
+
if (!$util.isString(message.replId))
|
|
50890
|
+
return "replId: string expected";
|
|
50891
|
+
return null;
|
|
50892
|
+
};
|
|
50893
|
+
|
|
50894
|
+
/**
|
|
50895
|
+
* Creates a KillRepl message from a plain object. Also converts values to their respective internal types.
|
|
50896
|
+
* @function fromObject
|
|
50897
|
+
* @memberof replit.goval.api.KillRepl
|
|
50898
|
+
* @static
|
|
50899
|
+
* @param {Object.<string,*>} object Plain object
|
|
50900
|
+
* @returns {replit.goval.api.KillRepl} KillRepl
|
|
50901
|
+
*/
|
|
50902
|
+
KillRepl.fromObject = function fromObject(object) {
|
|
50903
|
+
if (object instanceof $root.replit.goval.api.KillRepl)
|
|
50904
|
+
return object;
|
|
50905
|
+
var message = new $root.replit.goval.api.KillRepl();
|
|
50906
|
+
if (object.replId != null)
|
|
50907
|
+
message.replId = String(object.replId);
|
|
50908
|
+
return message;
|
|
50909
|
+
};
|
|
50910
|
+
|
|
50911
|
+
/**
|
|
50912
|
+
* Creates a plain object from a KillRepl message. Also converts values to other types if specified.
|
|
50913
|
+
* @function toObject
|
|
50914
|
+
* @memberof replit.goval.api.KillRepl
|
|
50915
|
+
* @static
|
|
50916
|
+
* @param {replit.goval.api.KillRepl} message KillRepl
|
|
50917
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
50918
|
+
* @returns {Object.<string,*>} Plain object
|
|
50919
|
+
*/
|
|
50920
|
+
KillRepl.toObject = function toObject(message, options) {
|
|
50921
|
+
if (!options)
|
|
50922
|
+
options = {};
|
|
50923
|
+
var object = {};
|
|
50924
|
+
if (options.defaults)
|
|
50925
|
+
object.replId = "";
|
|
50926
|
+
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
50927
|
+
object.replId = message.replId;
|
|
50928
|
+
return object;
|
|
50929
|
+
};
|
|
50930
|
+
|
|
50931
|
+
/**
|
|
50932
|
+
* Converts this KillRepl to JSON.
|
|
50933
|
+
* @function toJSON
|
|
50934
|
+
* @memberof replit.goval.api.KillRepl
|
|
50935
|
+
* @instance
|
|
50936
|
+
* @returns {Object.<string,*>} JSON object
|
|
50937
|
+
*/
|
|
50938
|
+
KillRepl.prototype.toJSON = function toJSON() {
|
|
50939
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
50940
|
+
};
|
|
50941
|
+
|
|
50942
|
+
return KillRepl;
|
|
50943
|
+
})();
|
|
50944
|
+
|
|
49922
50945
|
api.Restore = (function() {
|
|
49923
50946
|
|
|
49924
50947
|
/**
|
|
@@ -53091,6 +54114,208 @@
|
|
|
53091
54114
|
return ListValue;
|
|
53092
54115
|
})();
|
|
53093
54116
|
|
|
54117
|
+
protobuf.FieldMask = (function() {
|
|
54118
|
+
|
|
54119
|
+
/**
|
|
54120
|
+
* Properties of a FieldMask.
|
|
54121
|
+
* @memberof google.protobuf
|
|
54122
|
+
* @interface IFieldMask
|
|
54123
|
+
* @property {Array.<string>|null} [paths] FieldMask paths
|
|
54124
|
+
*/
|
|
54125
|
+
|
|
54126
|
+
/**
|
|
54127
|
+
* Constructs a new FieldMask.
|
|
54128
|
+
* @memberof google.protobuf
|
|
54129
|
+
* @classdesc Represents a FieldMask.
|
|
54130
|
+
* @constructor
|
|
54131
|
+
* @param {google.protobuf.IFieldMask=} [properties] Properties to set
|
|
54132
|
+
*/
|
|
54133
|
+
function FieldMask(properties) {
|
|
54134
|
+
this.paths = [];
|
|
54135
|
+
if (properties)
|
|
54136
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
54137
|
+
if (properties[keys[i]] != null)
|
|
54138
|
+
this[keys[i]] = properties[keys[i]];
|
|
54139
|
+
}
|
|
54140
|
+
|
|
54141
|
+
/**
|
|
54142
|
+
* FieldMask paths.
|
|
54143
|
+
* @member {Array.<string>} paths
|
|
54144
|
+
* @memberof google.protobuf.FieldMask
|
|
54145
|
+
* @instance
|
|
54146
|
+
*/
|
|
54147
|
+
FieldMask.prototype.paths = $util.emptyArray;
|
|
54148
|
+
|
|
54149
|
+
/**
|
|
54150
|
+
* Creates a new FieldMask instance using the specified properties.
|
|
54151
|
+
* @function create
|
|
54152
|
+
* @memberof google.protobuf.FieldMask
|
|
54153
|
+
* @static
|
|
54154
|
+
* @param {google.protobuf.IFieldMask=} [properties] Properties to set
|
|
54155
|
+
* @returns {google.protobuf.FieldMask} FieldMask instance
|
|
54156
|
+
*/
|
|
54157
|
+
FieldMask.create = function create(properties) {
|
|
54158
|
+
return FieldMask.fromObject(properties);
|
|
54159
|
+
};
|
|
54160
|
+
|
|
54161
|
+
/**
|
|
54162
|
+
* Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
|
|
54163
|
+
* @function encode
|
|
54164
|
+
* @memberof google.protobuf.FieldMask
|
|
54165
|
+
* @static
|
|
54166
|
+
* @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
|
|
54167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54168
|
+
* @returns {$protobuf.Writer} Writer
|
|
54169
|
+
*/
|
|
54170
|
+
FieldMask.encode = function encode(message, writer) {
|
|
54171
|
+
if (!writer)
|
|
54172
|
+
writer = $Writer.create();
|
|
54173
|
+
if (message.paths != null && message.paths.length)
|
|
54174
|
+
for (var i = 0; i < message.paths.length; ++i)
|
|
54175
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]);
|
|
54176
|
+
return writer;
|
|
54177
|
+
};
|
|
54178
|
+
|
|
54179
|
+
/**
|
|
54180
|
+
* Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
|
|
54181
|
+
* @function encodeDelimited
|
|
54182
|
+
* @memberof google.protobuf.FieldMask
|
|
54183
|
+
* @static
|
|
54184
|
+
* @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
|
|
54185
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
54186
|
+
* @returns {$protobuf.Writer} Writer
|
|
54187
|
+
*/
|
|
54188
|
+
FieldMask.encodeDelimited = function encodeDelimited(message, writer) {
|
|
54189
|
+
return this.encode(message, writer).ldelim();
|
|
54190
|
+
};
|
|
54191
|
+
|
|
54192
|
+
/**
|
|
54193
|
+
* Decodes a FieldMask message from the specified reader or buffer.
|
|
54194
|
+
* @function decode
|
|
54195
|
+
* @memberof google.protobuf.FieldMask
|
|
54196
|
+
* @static
|
|
54197
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54198
|
+
* @param {number} [length] Message length if known beforehand
|
|
54199
|
+
* @returns {google.protobuf.FieldMask} FieldMask
|
|
54200
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54201
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54202
|
+
*/
|
|
54203
|
+
FieldMask.decode = function decode(reader, length) {
|
|
54204
|
+
if (!(reader instanceof $Reader))
|
|
54205
|
+
reader = $Reader.create(reader);
|
|
54206
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask();
|
|
54207
|
+
while (reader.pos < end) {
|
|
54208
|
+
var tag = reader.uint32();
|
|
54209
|
+
switch (tag >>> 3) {
|
|
54210
|
+
case 1:
|
|
54211
|
+
if (!(message.paths && message.paths.length))
|
|
54212
|
+
message.paths = [];
|
|
54213
|
+
message.paths.push(reader.string());
|
|
54214
|
+
break;
|
|
54215
|
+
default:
|
|
54216
|
+
reader.skipType(tag & 7);
|
|
54217
|
+
break;
|
|
54218
|
+
}
|
|
54219
|
+
}
|
|
54220
|
+
return message;
|
|
54221
|
+
};
|
|
54222
|
+
|
|
54223
|
+
/**
|
|
54224
|
+
* Decodes a FieldMask message from the specified reader or buffer, length delimited.
|
|
54225
|
+
* @function decodeDelimited
|
|
54226
|
+
* @memberof google.protobuf.FieldMask
|
|
54227
|
+
* @static
|
|
54228
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
54229
|
+
* @returns {google.protobuf.FieldMask} FieldMask
|
|
54230
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
54231
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
54232
|
+
*/
|
|
54233
|
+
FieldMask.decodeDelimited = function decodeDelimited(reader) {
|
|
54234
|
+
if (!(reader instanceof $Reader))
|
|
54235
|
+
reader = new $Reader(reader);
|
|
54236
|
+
return this.decode(reader, reader.uint32());
|
|
54237
|
+
};
|
|
54238
|
+
|
|
54239
|
+
/**
|
|
54240
|
+
* Verifies a FieldMask message.
|
|
54241
|
+
* @function verify
|
|
54242
|
+
* @memberof google.protobuf.FieldMask
|
|
54243
|
+
* @static
|
|
54244
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
54245
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
54246
|
+
*/
|
|
54247
|
+
FieldMask.verify = function verify(message) {
|
|
54248
|
+
if (typeof message !== "object" || message === null)
|
|
54249
|
+
return "object expected";
|
|
54250
|
+
if (message.paths != null && message.hasOwnProperty("paths")) {
|
|
54251
|
+
if (!Array.isArray(message.paths))
|
|
54252
|
+
return "paths: array expected";
|
|
54253
|
+
for (var i = 0; i < message.paths.length; ++i)
|
|
54254
|
+
if (!$util.isString(message.paths[i]))
|
|
54255
|
+
return "paths: string[] expected";
|
|
54256
|
+
}
|
|
54257
|
+
return null;
|
|
54258
|
+
};
|
|
54259
|
+
|
|
54260
|
+
/**
|
|
54261
|
+
* Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
|
|
54262
|
+
* @function fromObject
|
|
54263
|
+
* @memberof google.protobuf.FieldMask
|
|
54264
|
+
* @static
|
|
54265
|
+
* @param {Object.<string,*>} object Plain object
|
|
54266
|
+
* @returns {google.protobuf.FieldMask} FieldMask
|
|
54267
|
+
*/
|
|
54268
|
+
FieldMask.fromObject = function fromObject(object) {
|
|
54269
|
+
if (object instanceof $root.google.protobuf.FieldMask)
|
|
54270
|
+
return object;
|
|
54271
|
+
var message = new $root.google.protobuf.FieldMask();
|
|
54272
|
+
if (object.paths) {
|
|
54273
|
+
if (!Array.isArray(object.paths))
|
|
54274
|
+
throw TypeError(".google.protobuf.FieldMask.paths: array expected");
|
|
54275
|
+
message.paths = [];
|
|
54276
|
+
for (var i = 0; i < object.paths.length; ++i)
|
|
54277
|
+
message.paths[i] = String(object.paths[i]);
|
|
54278
|
+
}
|
|
54279
|
+
return message;
|
|
54280
|
+
};
|
|
54281
|
+
|
|
54282
|
+
/**
|
|
54283
|
+
* Creates a plain object from a FieldMask message. Also converts values to other types if specified.
|
|
54284
|
+
* @function toObject
|
|
54285
|
+
* @memberof google.protobuf.FieldMask
|
|
54286
|
+
* @static
|
|
54287
|
+
* @param {google.protobuf.FieldMask} message FieldMask
|
|
54288
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
54289
|
+
* @returns {Object.<string,*>} Plain object
|
|
54290
|
+
*/
|
|
54291
|
+
FieldMask.toObject = function toObject(message, options) {
|
|
54292
|
+
if (!options)
|
|
54293
|
+
options = {};
|
|
54294
|
+
var object = {};
|
|
54295
|
+
if (options.arrays || options.defaults)
|
|
54296
|
+
object.paths = [];
|
|
54297
|
+
if (message.paths && message.paths.length) {
|
|
54298
|
+
object.paths = [];
|
|
54299
|
+
for (var j = 0; j < message.paths.length; ++j)
|
|
54300
|
+
object.paths[j] = message.paths[j];
|
|
54301
|
+
}
|
|
54302
|
+
return object;
|
|
54303
|
+
};
|
|
54304
|
+
|
|
54305
|
+
/**
|
|
54306
|
+
* Converts this FieldMask to JSON.
|
|
54307
|
+
* @function toJSON
|
|
54308
|
+
* @memberof google.protobuf.FieldMask
|
|
54309
|
+
* @instance
|
|
54310
|
+
* @returns {Object.<string,*>} JSON object
|
|
54311
|
+
*/
|
|
54312
|
+
FieldMask.prototype.toJSON = function toJSON() {
|
|
54313
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
54314
|
+
};
|
|
54315
|
+
|
|
54316
|
+
return FieldMask;
|
|
54317
|
+
})();
|
|
54318
|
+
|
|
53094
54319
|
return protobuf;
|
|
53095
54320
|
})();
|
|
53096
54321
|
|