@replit/protocol 0.3.32 → 0.3.34
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 +358 -1
- package/main/index.js +911 -2
- package/main/index.js.flow +512 -1
- package/package.json +1 -1
package/main/index.js
CHANGED
|
@@ -236,6 +236,7 @@
|
|
|
236
236
|
* @property {replit.goval.api.ReplspaceApiOpenMultipleFiles|replit.goval.api.IReplspaceApiOpenMultipleFiles|null} [replspaceApiOpenMultipleFiles] Command replspaceApiOpenMultipleFiles
|
|
237
237
|
* @property {replit.goval.api.NixModulesGetRegistryRequest|replit.goval.api.INixModulesGetRegistryRequest|null} [nixModulesGetRegistryRequest] Command nixModulesGetRegistryRequest
|
|
238
238
|
* @property {replit.goval.api.NixModulesGetRegistryResponse|replit.goval.api.INixModulesGetRegistryResponse|null} [nixModulesGetRegistryResponse] Command nixModulesGetRegistryResponse
|
|
239
|
+
* @property {replit.goval.api.RiverMessage|replit.goval.api.IRiverMessage|null} [pid2Message] Command pid2Message
|
|
239
240
|
* @property {string|null} [ref] Command ref
|
|
240
241
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
241
242
|
*/
|
|
@@ -1751,6 +1752,14 @@
|
|
|
1751
1752
|
*/
|
|
1752
1753
|
Command.prototype.nixModulesGetRegistryResponse = null;
|
|
1753
1754
|
|
|
1755
|
+
/**
|
|
1756
|
+
* Command pid2Message.
|
|
1757
|
+
* @member {replit.goval.api.RiverMessage|null|undefined} pid2Message
|
|
1758
|
+
* @memberof replit.goval.api.Command
|
|
1759
|
+
* @instance
|
|
1760
|
+
*/
|
|
1761
|
+
Command.prototype.pid2Message = null;
|
|
1762
|
+
|
|
1754
1763
|
/**
|
|
1755
1764
|
* Command ref.
|
|
1756
1765
|
* @member {string} ref
|
|
@@ -1772,12 +1781,12 @@
|
|
|
1772
1781
|
|
|
1773
1782
|
/**
|
|
1774
1783
|
* Command body.
|
|
1775
|
-
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
|
|
1784
|
+
* @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"inputClose"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"pid2Message"|undefined} body
|
|
1776
1785
|
* @memberof replit.goval.api.Command
|
|
1777
1786
|
* @instance
|
|
1778
1787
|
*/
|
|
1779
1788
|
Object.defineProperty(Command.prototype, "body", {
|
|
1780
|
-
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
|
|
1789
|
+
get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "inputClose", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "pid2Message"]),
|
|
1781
1790
|
set: $util.oneOfSetter($oneOfFields)
|
|
1782
1791
|
});
|
|
1783
1792
|
|
|
@@ -2171,6 +2180,8 @@
|
|
|
2171
2180
|
$root.replit.goval.api.NixModulesGetRegistryRequest.encode(message.nixModulesGetRegistryRequest, writer.uint32(/* id 439, wireType 2 =*/3514).fork()).ldelim();
|
|
2172
2181
|
if (message.nixModulesGetRegistryResponse != null && Object.hasOwnProperty.call(message, "nixModulesGetRegistryResponse"))
|
|
2173
2182
|
$root.replit.goval.api.NixModulesGetRegistryResponse.encode(message.nixModulesGetRegistryResponse, writer.uint32(/* id 440, wireType 2 =*/3522).fork()).ldelim();
|
|
2183
|
+
if (message.pid2Message != null && Object.hasOwnProperty.call(message, "pid2Message"))
|
|
2184
|
+
$root.replit.goval.api.RiverMessage.encode(message.pid2Message, writer.uint32(/* id 441, wireType 2 =*/3530).fork()).ldelim();
|
|
2174
2185
|
if (message.outputBlockStartEvent != null && Object.hasOwnProperty.call(message, "outputBlockStartEvent"))
|
|
2175
2186
|
$root.replit.goval.api.OutputBlockStartEvent.encode(message.outputBlockStartEvent, writer.uint32(/* id 443, wireType 2 =*/3546).fork()).ldelim();
|
|
2176
2187
|
if (message.outputBlockEndEvent != null && Object.hasOwnProperty.call(message, "outputBlockEndEvent"))
|
|
@@ -2966,6 +2977,10 @@
|
|
|
2966
2977
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.decode(reader, reader.uint32());
|
|
2967
2978
|
break;
|
|
2968
2979
|
}
|
|
2980
|
+
case 441: {
|
|
2981
|
+
message.pid2Message = $root.replit.goval.api.RiverMessage.decode(reader, reader.uint32());
|
|
2982
|
+
break;
|
|
2983
|
+
}
|
|
2969
2984
|
case 1000: {
|
|
2970
2985
|
message.ref = reader.string();
|
|
2971
2986
|
break;
|
|
@@ -4849,6 +4864,16 @@
|
|
|
4849
4864
|
return "nixModulesGetRegistryResponse." + error;
|
|
4850
4865
|
}
|
|
4851
4866
|
}
|
|
4867
|
+
if (message.pid2Message != null && message.hasOwnProperty("pid2Message")) {
|
|
4868
|
+
if (properties.body === 1)
|
|
4869
|
+
return "body: multiple values";
|
|
4870
|
+
properties.body = 1;
|
|
4871
|
+
{
|
|
4872
|
+
var error = $root.replit.goval.api.RiverMessage.verify(message.pid2Message);
|
|
4873
|
+
if (error)
|
|
4874
|
+
return "pid2Message." + error;
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4852
4877
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
4853
4878
|
if (!$util.isString(message.ref))
|
|
4854
4879
|
return "ref: string expected";
|
|
@@ -5779,6 +5804,11 @@
|
|
|
5779
5804
|
throw TypeError(".replit.goval.api.Command.nixModulesGetRegistryResponse: object expected");
|
|
5780
5805
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.fromObject(object.nixModulesGetRegistryResponse);
|
|
5781
5806
|
}
|
|
5807
|
+
if (object.pid2Message != null) {
|
|
5808
|
+
if (typeof object.pid2Message !== "object")
|
|
5809
|
+
throw TypeError(".replit.goval.api.Command.pid2Message: object expected");
|
|
5810
|
+
message.pid2Message = $root.replit.goval.api.RiverMessage.fromObject(object.pid2Message);
|
|
5811
|
+
}
|
|
5782
5812
|
if (object.ref != null)
|
|
5783
5813
|
message.ref = String(object.ref);
|
|
5784
5814
|
if (object.traceInfo) {
|
|
@@ -6720,6 +6750,11 @@
|
|
|
6720
6750
|
if (options.oneofs)
|
|
6721
6751
|
object.body = "nixModulesGetRegistryResponse";
|
|
6722
6752
|
}
|
|
6753
|
+
if (message.pid2Message != null && message.hasOwnProperty("pid2Message")) {
|
|
6754
|
+
object.pid2Message = $root.replit.goval.api.RiverMessage.toObject(message.pid2Message, options);
|
|
6755
|
+
if (options.oneofs)
|
|
6756
|
+
object.body = "pid2Message";
|
|
6757
|
+
}
|
|
6723
6758
|
if (message.outputBlockStartEvent != null && message.hasOwnProperty("outputBlockStartEvent")) {
|
|
6724
6759
|
object.outputBlockStartEvent = $root.replit.goval.api.OutputBlockStartEvent.toObject(message.outputBlockStartEvent, options);
|
|
6725
6760
|
if (options.oneofs)
|
|
@@ -6780,6 +6815,379 @@
|
|
|
6780
6815
|
return Command;
|
|
6781
6816
|
})();
|
|
6782
6817
|
|
|
6818
|
+
api.RiverMessage = (function() {
|
|
6819
|
+
|
|
6820
|
+
/**
|
|
6821
|
+
* Properties of a RiverMessage.
|
|
6822
|
+
* @memberof replit.goval.api
|
|
6823
|
+
* @interface IRiverMessage
|
|
6824
|
+
* @property {string|null} [id] RiverMessage id
|
|
6825
|
+
* @property {string|null} [replyTo] RiverMessage replyTo
|
|
6826
|
+
* @property {string|null} [from] RiverMessage from
|
|
6827
|
+
* @property {string|null} [to] RiverMessage to
|
|
6828
|
+
* @property {string|null} [serviceName] RiverMessage serviceName
|
|
6829
|
+
* @property {string|null} [procedureName] RiverMessage procedureName
|
|
6830
|
+
* @property {string|null} [ack] RiverMessage ack
|
|
6831
|
+
* @property {Uint8Array|null} [payload] RiverMessage payload
|
|
6832
|
+
*/
|
|
6833
|
+
|
|
6834
|
+
/**
|
|
6835
|
+
* Constructs a new RiverMessage.
|
|
6836
|
+
* @memberof replit.goval.api
|
|
6837
|
+
* @classdesc Represents a RiverMessage.
|
|
6838
|
+
* @constructor
|
|
6839
|
+
* @param {replit.goval.api.IRiverMessage=} [properties] Properties to set
|
|
6840
|
+
*/
|
|
6841
|
+
function RiverMessage(properties) {
|
|
6842
|
+
if (properties)
|
|
6843
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
6844
|
+
if (properties[keys[i]] != null)
|
|
6845
|
+
this[keys[i]] = properties[keys[i]];
|
|
6846
|
+
}
|
|
6847
|
+
|
|
6848
|
+
/**
|
|
6849
|
+
* RiverMessage id.
|
|
6850
|
+
* @member {string} id
|
|
6851
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6852
|
+
* @instance
|
|
6853
|
+
*/
|
|
6854
|
+
RiverMessage.prototype.id = "";
|
|
6855
|
+
|
|
6856
|
+
/**
|
|
6857
|
+
* RiverMessage replyTo.
|
|
6858
|
+
* @member {string} replyTo
|
|
6859
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6860
|
+
* @instance
|
|
6861
|
+
*/
|
|
6862
|
+
RiverMessage.prototype.replyTo = "";
|
|
6863
|
+
|
|
6864
|
+
/**
|
|
6865
|
+
* RiverMessage from.
|
|
6866
|
+
* @member {string} from
|
|
6867
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6868
|
+
* @instance
|
|
6869
|
+
*/
|
|
6870
|
+
RiverMessage.prototype.from = "";
|
|
6871
|
+
|
|
6872
|
+
/**
|
|
6873
|
+
* RiverMessage to.
|
|
6874
|
+
* @member {string} to
|
|
6875
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6876
|
+
* @instance
|
|
6877
|
+
*/
|
|
6878
|
+
RiverMessage.prototype.to = "";
|
|
6879
|
+
|
|
6880
|
+
/**
|
|
6881
|
+
* RiverMessage serviceName.
|
|
6882
|
+
* @member {string} serviceName
|
|
6883
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6884
|
+
* @instance
|
|
6885
|
+
*/
|
|
6886
|
+
RiverMessage.prototype.serviceName = "";
|
|
6887
|
+
|
|
6888
|
+
/**
|
|
6889
|
+
* RiverMessage procedureName.
|
|
6890
|
+
* @member {string} procedureName
|
|
6891
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6892
|
+
* @instance
|
|
6893
|
+
*/
|
|
6894
|
+
RiverMessage.prototype.procedureName = "";
|
|
6895
|
+
|
|
6896
|
+
/**
|
|
6897
|
+
* RiverMessage ack.
|
|
6898
|
+
* @member {string} ack
|
|
6899
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6900
|
+
* @instance
|
|
6901
|
+
*/
|
|
6902
|
+
RiverMessage.prototype.ack = "";
|
|
6903
|
+
|
|
6904
|
+
/**
|
|
6905
|
+
* RiverMessage payload.
|
|
6906
|
+
* @member {Uint8Array} payload
|
|
6907
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6908
|
+
* @instance
|
|
6909
|
+
*/
|
|
6910
|
+
RiverMessage.prototype.payload = $util.newBuffer([]);
|
|
6911
|
+
|
|
6912
|
+
/**
|
|
6913
|
+
* Creates a new RiverMessage instance using the specified properties.
|
|
6914
|
+
* @function create
|
|
6915
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6916
|
+
* @static
|
|
6917
|
+
* @param {replit.goval.api.IRiverMessage=} [properties] Properties to set
|
|
6918
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage instance
|
|
6919
|
+
*/
|
|
6920
|
+
RiverMessage.create = function create(properties) {
|
|
6921
|
+
return RiverMessage.fromObject(properties);
|
|
6922
|
+
};
|
|
6923
|
+
|
|
6924
|
+
/**
|
|
6925
|
+
* Encodes the specified RiverMessage message. Does not implicitly {@link replit.goval.api.RiverMessage.verify|verify} messages.
|
|
6926
|
+
* @function encode
|
|
6927
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6928
|
+
* @static
|
|
6929
|
+
* @param {replit.goval.api.RiverMessage} message RiverMessage message or plain object to encode
|
|
6930
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6931
|
+
* @returns {$protobuf.Writer} Writer
|
|
6932
|
+
*/
|
|
6933
|
+
RiverMessage.encode = function encode(message, writer) {
|
|
6934
|
+
if (!writer)
|
|
6935
|
+
writer = $Writer.create();
|
|
6936
|
+
if (message.id != null && Object.hasOwnProperty.call(message, "id"))
|
|
6937
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
6938
|
+
if (message.replyTo != null && Object.hasOwnProperty.call(message, "replyTo"))
|
|
6939
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.replyTo);
|
|
6940
|
+
if (message.from != null && Object.hasOwnProperty.call(message, "from"))
|
|
6941
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.from);
|
|
6942
|
+
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
|
6943
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.to);
|
|
6944
|
+
if (message.serviceName != null && Object.hasOwnProperty.call(message, "serviceName"))
|
|
6945
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.serviceName);
|
|
6946
|
+
if (message.procedureName != null && Object.hasOwnProperty.call(message, "procedureName"))
|
|
6947
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.procedureName);
|
|
6948
|
+
if (message.ack != null && Object.hasOwnProperty.call(message, "ack"))
|
|
6949
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.ack);
|
|
6950
|
+
if (message.payload != null && Object.hasOwnProperty.call(message, "payload"))
|
|
6951
|
+
writer.uint32(/* id 10, wireType 2 =*/82).bytes(message.payload);
|
|
6952
|
+
return writer;
|
|
6953
|
+
};
|
|
6954
|
+
|
|
6955
|
+
/**
|
|
6956
|
+
* Encodes the specified RiverMessage message, length delimited. Does not implicitly {@link replit.goval.api.RiverMessage.verify|verify} messages.
|
|
6957
|
+
* @function encodeDelimited
|
|
6958
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6959
|
+
* @static
|
|
6960
|
+
* @param {replit.goval.api.RiverMessage} message RiverMessage message or plain object to encode
|
|
6961
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
6962
|
+
* @returns {$protobuf.Writer} Writer
|
|
6963
|
+
*/
|
|
6964
|
+
RiverMessage.encodeDelimited = function encodeDelimited(message, writer) {
|
|
6965
|
+
return this.encode(message, writer).ldelim();
|
|
6966
|
+
};
|
|
6967
|
+
|
|
6968
|
+
/**
|
|
6969
|
+
* Decodes a RiverMessage message from the specified reader or buffer.
|
|
6970
|
+
* @function decode
|
|
6971
|
+
* @memberof replit.goval.api.RiverMessage
|
|
6972
|
+
* @static
|
|
6973
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
6974
|
+
* @param {number} [length] Message length if known beforehand
|
|
6975
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
6976
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
6977
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
6978
|
+
*/
|
|
6979
|
+
RiverMessage.decode = function decode(reader, length) {
|
|
6980
|
+
if (!(reader instanceof $Reader))
|
|
6981
|
+
reader = $Reader.create(reader);
|
|
6982
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.RiverMessage();
|
|
6983
|
+
while (reader.pos < end) {
|
|
6984
|
+
var tag = reader.uint32();
|
|
6985
|
+
switch (tag >>> 3) {
|
|
6986
|
+
case 1: {
|
|
6987
|
+
message.id = reader.string();
|
|
6988
|
+
break;
|
|
6989
|
+
}
|
|
6990
|
+
case 2: {
|
|
6991
|
+
message.replyTo = reader.string();
|
|
6992
|
+
break;
|
|
6993
|
+
}
|
|
6994
|
+
case 3: {
|
|
6995
|
+
message.from = reader.string();
|
|
6996
|
+
break;
|
|
6997
|
+
}
|
|
6998
|
+
case 4: {
|
|
6999
|
+
message.to = reader.string();
|
|
7000
|
+
break;
|
|
7001
|
+
}
|
|
7002
|
+
case 5: {
|
|
7003
|
+
message.serviceName = reader.string();
|
|
7004
|
+
break;
|
|
7005
|
+
}
|
|
7006
|
+
case 6: {
|
|
7007
|
+
message.procedureName = reader.string();
|
|
7008
|
+
break;
|
|
7009
|
+
}
|
|
7010
|
+
case 7: {
|
|
7011
|
+
message.ack = reader.string();
|
|
7012
|
+
break;
|
|
7013
|
+
}
|
|
7014
|
+
case 10: {
|
|
7015
|
+
message.payload = reader.bytes();
|
|
7016
|
+
break;
|
|
7017
|
+
}
|
|
7018
|
+
default:
|
|
7019
|
+
reader.skipType(tag & 7);
|
|
7020
|
+
break;
|
|
7021
|
+
}
|
|
7022
|
+
}
|
|
7023
|
+
return message;
|
|
7024
|
+
};
|
|
7025
|
+
|
|
7026
|
+
/**
|
|
7027
|
+
* Decodes a RiverMessage message from the specified reader or buffer, length delimited.
|
|
7028
|
+
* @function decodeDelimited
|
|
7029
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7030
|
+
* @static
|
|
7031
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7032
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
7033
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7034
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7035
|
+
*/
|
|
7036
|
+
RiverMessage.decodeDelimited = function decodeDelimited(reader) {
|
|
7037
|
+
if (!(reader instanceof $Reader))
|
|
7038
|
+
reader = new $Reader(reader);
|
|
7039
|
+
return this.decode(reader, reader.uint32());
|
|
7040
|
+
};
|
|
7041
|
+
|
|
7042
|
+
/**
|
|
7043
|
+
* Verifies a RiverMessage message.
|
|
7044
|
+
* @function verify
|
|
7045
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7046
|
+
* @static
|
|
7047
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7048
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7049
|
+
*/
|
|
7050
|
+
RiverMessage.verify = function verify(message) {
|
|
7051
|
+
if (typeof message !== "object" || message === null)
|
|
7052
|
+
return "object expected";
|
|
7053
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
7054
|
+
if (!$util.isString(message.id))
|
|
7055
|
+
return "id: string expected";
|
|
7056
|
+
if (message.replyTo != null && message.hasOwnProperty("replyTo"))
|
|
7057
|
+
if (!$util.isString(message.replyTo))
|
|
7058
|
+
return "replyTo: string expected";
|
|
7059
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
7060
|
+
if (!$util.isString(message.from))
|
|
7061
|
+
return "from: string expected";
|
|
7062
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
7063
|
+
if (!$util.isString(message.to))
|
|
7064
|
+
return "to: string expected";
|
|
7065
|
+
if (message.serviceName != null && message.hasOwnProperty("serviceName"))
|
|
7066
|
+
if (!$util.isString(message.serviceName))
|
|
7067
|
+
return "serviceName: string expected";
|
|
7068
|
+
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7069
|
+
if (!$util.isString(message.procedureName))
|
|
7070
|
+
return "procedureName: string expected";
|
|
7071
|
+
if (message.ack != null && message.hasOwnProperty("ack"))
|
|
7072
|
+
if (!$util.isString(message.ack))
|
|
7073
|
+
return "ack: string expected";
|
|
7074
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
7075
|
+
if (!(message.payload && typeof message.payload.length === "number" || $util.isString(message.payload)))
|
|
7076
|
+
return "payload: buffer expected";
|
|
7077
|
+
return null;
|
|
7078
|
+
};
|
|
7079
|
+
|
|
7080
|
+
/**
|
|
7081
|
+
* Creates a RiverMessage message from a plain object. Also converts values to their respective internal types.
|
|
7082
|
+
* @function fromObject
|
|
7083
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7084
|
+
* @static
|
|
7085
|
+
* @param {Object.<string,*>} object Plain object
|
|
7086
|
+
* @returns {replit.goval.api.RiverMessage} RiverMessage
|
|
7087
|
+
*/
|
|
7088
|
+
RiverMessage.fromObject = function fromObject(object) {
|
|
7089
|
+
if (object instanceof $root.replit.goval.api.RiverMessage)
|
|
7090
|
+
return object;
|
|
7091
|
+
var message = new $root.replit.goval.api.RiverMessage();
|
|
7092
|
+
if (object.id != null)
|
|
7093
|
+
message.id = String(object.id);
|
|
7094
|
+
if (object.replyTo != null)
|
|
7095
|
+
message.replyTo = String(object.replyTo);
|
|
7096
|
+
if (object.from != null)
|
|
7097
|
+
message.from = String(object.from);
|
|
7098
|
+
if (object.to != null)
|
|
7099
|
+
message.to = String(object.to);
|
|
7100
|
+
if (object.serviceName != null)
|
|
7101
|
+
message.serviceName = String(object.serviceName);
|
|
7102
|
+
if (object.procedureName != null)
|
|
7103
|
+
message.procedureName = String(object.procedureName);
|
|
7104
|
+
if (object.ack != null)
|
|
7105
|
+
message.ack = String(object.ack);
|
|
7106
|
+
if (object.payload != null)
|
|
7107
|
+
if (typeof object.payload === "string")
|
|
7108
|
+
$util.base64.decode(object.payload, message.payload = $util.newBuffer($util.base64.length(object.payload)), 0);
|
|
7109
|
+
else if (object.payload.length >= 0)
|
|
7110
|
+
message.payload = object.payload;
|
|
7111
|
+
return message;
|
|
7112
|
+
};
|
|
7113
|
+
|
|
7114
|
+
/**
|
|
7115
|
+
* Creates a plain object from a RiverMessage message. Also converts values to other types if specified.
|
|
7116
|
+
* @function toObject
|
|
7117
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7118
|
+
* @static
|
|
7119
|
+
* @param {replit.goval.api.RiverMessage} message RiverMessage
|
|
7120
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7121
|
+
* @returns {Object.<string,*>} Plain object
|
|
7122
|
+
*/
|
|
7123
|
+
RiverMessage.toObject = function toObject(message, options) {
|
|
7124
|
+
if (!options)
|
|
7125
|
+
options = {};
|
|
7126
|
+
var object = {};
|
|
7127
|
+
if (options.defaults) {
|
|
7128
|
+
object.id = "";
|
|
7129
|
+
object.replyTo = "";
|
|
7130
|
+
object.from = "";
|
|
7131
|
+
object.to = "";
|
|
7132
|
+
object.serviceName = "";
|
|
7133
|
+
object.procedureName = "";
|
|
7134
|
+
object.ack = "";
|
|
7135
|
+
if (options.bytes === String)
|
|
7136
|
+
object.payload = "";
|
|
7137
|
+
else {
|
|
7138
|
+
object.payload = [];
|
|
7139
|
+
if (options.bytes !== Array)
|
|
7140
|
+
object.payload = $util.newBuffer(object.payload);
|
|
7141
|
+
}
|
|
7142
|
+
}
|
|
7143
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
7144
|
+
object.id = message.id;
|
|
7145
|
+
if (message.replyTo != null && message.hasOwnProperty("replyTo"))
|
|
7146
|
+
object.replyTo = message.replyTo;
|
|
7147
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
7148
|
+
object.from = message.from;
|
|
7149
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
7150
|
+
object.to = message.to;
|
|
7151
|
+
if (message.serviceName != null && message.hasOwnProperty("serviceName"))
|
|
7152
|
+
object.serviceName = message.serviceName;
|
|
7153
|
+
if (message.procedureName != null && message.hasOwnProperty("procedureName"))
|
|
7154
|
+
object.procedureName = message.procedureName;
|
|
7155
|
+
if (message.ack != null && message.hasOwnProperty("ack"))
|
|
7156
|
+
object.ack = message.ack;
|
|
7157
|
+
if (message.payload != null && message.hasOwnProperty("payload"))
|
|
7158
|
+
object.payload = options.bytes === String ? $util.base64.encode(message.payload, 0, message.payload.length) : options.bytes === Array ? Array.prototype.slice.call(message.payload) : message.payload;
|
|
7159
|
+
return object;
|
|
7160
|
+
};
|
|
7161
|
+
|
|
7162
|
+
/**
|
|
7163
|
+
* Converts this RiverMessage to JSON.
|
|
7164
|
+
* @function toJSON
|
|
7165
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7166
|
+
* @instance
|
|
7167
|
+
* @returns {Object.<string,*>} JSON object
|
|
7168
|
+
*/
|
|
7169
|
+
RiverMessage.prototype.toJSON = function toJSON() {
|
|
7170
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
7171
|
+
};
|
|
7172
|
+
|
|
7173
|
+
/**
|
|
7174
|
+
* Gets the default type url for RiverMessage
|
|
7175
|
+
* @function getTypeUrl
|
|
7176
|
+
* @memberof replit.goval.api.RiverMessage
|
|
7177
|
+
* @static
|
|
7178
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
7179
|
+
* @returns {string} The default type url
|
|
7180
|
+
*/
|
|
7181
|
+
RiverMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
7182
|
+
if (typeUrlPrefix === undefined) {
|
|
7183
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
7184
|
+
}
|
|
7185
|
+
return typeUrlPrefix + "/replit.goval.api.RiverMessage";
|
|
7186
|
+
};
|
|
7187
|
+
|
|
7188
|
+
return RiverMessage;
|
|
7189
|
+
})();
|
|
7190
|
+
|
|
6783
7191
|
api.NixPackageAddRequest = (function() {
|
|
6784
7192
|
|
|
6785
7193
|
/**
|
|
@@ -46771,6 +47179,7 @@
|
|
|
46771
47179
|
* @property {boolean|null} [ignorePorts] DeploymentConfig ignorePorts
|
|
46772
47180
|
* @property {replit.goval.api.DeploymentConfig.Target|null} [target] DeploymentConfig target
|
|
46773
47181
|
* @property {string|null} [publicDir] DeploymentConfig publicDir
|
|
47182
|
+
* @property {Array.<replit.goval.api.DeploymentConfig.RewriteRule|replit.goval.api.DeploymentConfig.IRewriteRule>|null} [rewrites] DeploymentConfig rewrites
|
|
46774
47183
|
*/
|
|
46775
47184
|
|
|
46776
47185
|
/**
|
|
@@ -46781,6 +47190,7 @@
|
|
|
46781
47190
|
* @param {replit.goval.api.IDeploymentConfig=} [properties] Properties to set
|
|
46782
47191
|
*/
|
|
46783
47192
|
function DeploymentConfig(properties) {
|
|
47193
|
+
this.rewrites = [];
|
|
46784
47194
|
if (properties)
|
|
46785
47195
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
46786
47196
|
if (properties[keys[i]] != null)
|
|
@@ -46827,6 +47237,14 @@
|
|
|
46827
47237
|
*/
|
|
46828
47238
|
DeploymentConfig.prototype.publicDir = "";
|
|
46829
47239
|
|
|
47240
|
+
/**
|
|
47241
|
+
* DeploymentConfig rewrites.
|
|
47242
|
+
* @member {Array.<replit.goval.api.DeploymentConfig.RewriteRule>} rewrites
|
|
47243
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47244
|
+
* @instance
|
|
47245
|
+
*/
|
|
47246
|
+
DeploymentConfig.prototype.rewrites = $util.emptyArray;
|
|
47247
|
+
|
|
46830
47248
|
/**
|
|
46831
47249
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
46832
47250
|
* @function create
|
|
@@ -46861,6 +47279,9 @@
|
|
|
46861
47279
|
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.target);
|
|
46862
47280
|
if (message.publicDir != null && Object.hasOwnProperty.call(message, "publicDir"))
|
|
46863
47281
|
writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicDir);
|
|
47282
|
+
if (message.rewrites != null && message.rewrites.length)
|
|
47283
|
+
for (var i = 0; i < message.rewrites.length; ++i)
|
|
47284
|
+
$root.replit.goval.api.DeploymentConfig.RewriteRule.encode(message.rewrites[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
46864
47285
|
return writer;
|
|
46865
47286
|
};
|
|
46866
47287
|
|
|
@@ -46915,6 +47336,12 @@
|
|
|
46915
47336
|
message.publicDir = reader.string();
|
|
46916
47337
|
break;
|
|
46917
47338
|
}
|
|
47339
|
+
case 6: {
|
|
47340
|
+
if (!(message.rewrites && message.rewrites.length))
|
|
47341
|
+
message.rewrites = [];
|
|
47342
|
+
message.rewrites.push($root.replit.goval.api.DeploymentConfig.RewriteRule.decode(reader, reader.uint32()));
|
|
47343
|
+
break;
|
|
47344
|
+
}
|
|
46918
47345
|
default:
|
|
46919
47346
|
reader.skipType(tag & 7);
|
|
46920
47347
|
break;
|
|
@@ -46975,6 +47402,15 @@
|
|
|
46975
47402
|
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
46976
47403
|
if (!$util.isString(message.publicDir))
|
|
46977
47404
|
return "publicDir: string expected";
|
|
47405
|
+
if (message.rewrites != null && message.hasOwnProperty("rewrites")) {
|
|
47406
|
+
if (!Array.isArray(message.rewrites))
|
|
47407
|
+
return "rewrites: array expected";
|
|
47408
|
+
for (var i = 0; i < message.rewrites.length; ++i) {
|
|
47409
|
+
var error = $root.replit.goval.api.DeploymentConfig.RewriteRule.verify(message.rewrites[i]);
|
|
47410
|
+
if (error)
|
|
47411
|
+
return "rewrites." + error;
|
|
47412
|
+
}
|
|
47413
|
+
}
|
|
46978
47414
|
return null;
|
|
46979
47415
|
};
|
|
46980
47416
|
|
|
@@ -47024,6 +47460,16 @@
|
|
|
47024
47460
|
}
|
|
47025
47461
|
if (object.publicDir != null)
|
|
47026
47462
|
message.publicDir = String(object.publicDir);
|
|
47463
|
+
if (object.rewrites) {
|
|
47464
|
+
if (!Array.isArray(object.rewrites))
|
|
47465
|
+
throw TypeError(".replit.goval.api.DeploymentConfig.rewrites: array expected");
|
|
47466
|
+
message.rewrites = [];
|
|
47467
|
+
for (var i = 0; i < object.rewrites.length; ++i) {
|
|
47468
|
+
if (typeof object.rewrites[i] !== "object")
|
|
47469
|
+
throw TypeError(".replit.goval.api.DeploymentConfig.rewrites: object expected");
|
|
47470
|
+
message.rewrites[i] = $root.replit.goval.api.DeploymentConfig.RewriteRule.fromObject(object.rewrites[i]);
|
|
47471
|
+
}
|
|
47472
|
+
}
|
|
47027
47473
|
return message;
|
|
47028
47474
|
};
|
|
47029
47475
|
|
|
@@ -47040,6 +47486,8 @@
|
|
|
47040
47486
|
if (!options)
|
|
47041
47487
|
options = {};
|
|
47042
47488
|
var object = {};
|
|
47489
|
+
if (options.arrays || options.defaults)
|
|
47490
|
+
object.rewrites = [];
|
|
47043
47491
|
if (options.defaults) {
|
|
47044
47492
|
object.run = null;
|
|
47045
47493
|
object.build = null;
|
|
@@ -47057,6 +47505,11 @@
|
|
|
47057
47505
|
object.target = options.enums === String ? $root.replit.goval.api.DeploymentConfig.Target[message.target] === undefined ? message.target : $root.replit.goval.api.DeploymentConfig.Target[message.target] : message.target;
|
|
47058
47506
|
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
47059
47507
|
object.publicDir = message.publicDir;
|
|
47508
|
+
if (message.rewrites && message.rewrites.length) {
|
|
47509
|
+
object.rewrites = [];
|
|
47510
|
+
for (var j = 0; j < message.rewrites.length; ++j)
|
|
47511
|
+
object.rewrites[j] = $root.replit.goval.api.DeploymentConfig.RewriteRule.toObject(message.rewrites[j], options);
|
|
47512
|
+
}
|
|
47060
47513
|
return object;
|
|
47061
47514
|
};
|
|
47062
47515
|
|
|
@@ -47102,6 +47555,232 @@
|
|
|
47102
47555
|
return values;
|
|
47103
47556
|
})();
|
|
47104
47557
|
|
|
47558
|
+
DeploymentConfig.RewriteRule = (function() {
|
|
47559
|
+
|
|
47560
|
+
/**
|
|
47561
|
+
* Properties of a RewriteRule.
|
|
47562
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47563
|
+
* @interface IRewriteRule
|
|
47564
|
+
* @property {string|null} [from] RewriteRule from
|
|
47565
|
+
* @property {string|null} [to] RewriteRule to
|
|
47566
|
+
*/
|
|
47567
|
+
|
|
47568
|
+
/**
|
|
47569
|
+
* Constructs a new RewriteRule.
|
|
47570
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
47571
|
+
* @classdesc Represents a RewriteRule.
|
|
47572
|
+
* @constructor
|
|
47573
|
+
* @param {replit.goval.api.DeploymentConfig.IRewriteRule=} [properties] Properties to set
|
|
47574
|
+
*/
|
|
47575
|
+
function RewriteRule(properties) {
|
|
47576
|
+
if (properties)
|
|
47577
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
47578
|
+
if (properties[keys[i]] != null)
|
|
47579
|
+
this[keys[i]] = properties[keys[i]];
|
|
47580
|
+
}
|
|
47581
|
+
|
|
47582
|
+
/**
|
|
47583
|
+
* RewriteRule from.
|
|
47584
|
+
* @member {string} from
|
|
47585
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47586
|
+
* @instance
|
|
47587
|
+
*/
|
|
47588
|
+
RewriteRule.prototype.from = "";
|
|
47589
|
+
|
|
47590
|
+
/**
|
|
47591
|
+
* RewriteRule to.
|
|
47592
|
+
* @member {string} to
|
|
47593
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47594
|
+
* @instance
|
|
47595
|
+
*/
|
|
47596
|
+
RewriteRule.prototype.to = "";
|
|
47597
|
+
|
|
47598
|
+
/**
|
|
47599
|
+
* Creates a new RewriteRule instance using the specified properties.
|
|
47600
|
+
* @function create
|
|
47601
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47602
|
+
* @static
|
|
47603
|
+
* @param {replit.goval.api.DeploymentConfig.IRewriteRule=} [properties] Properties to set
|
|
47604
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule instance
|
|
47605
|
+
*/
|
|
47606
|
+
RewriteRule.create = function create(properties) {
|
|
47607
|
+
return RewriteRule.fromObject(properties);
|
|
47608
|
+
};
|
|
47609
|
+
|
|
47610
|
+
/**
|
|
47611
|
+
* Encodes the specified RewriteRule message. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
|
|
47612
|
+
* @function encode
|
|
47613
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47614
|
+
* @static
|
|
47615
|
+
* @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule message or plain object to encode
|
|
47616
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47617
|
+
* @returns {$protobuf.Writer} Writer
|
|
47618
|
+
*/
|
|
47619
|
+
RewriteRule.encode = function encode(message, writer) {
|
|
47620
|
+
if (!writer)
|
|
47621
|
+
writer = $Writer.create();
|
|
47622
|
+
if (message.from != null && Object.hasOwnProperty.call(message, "from"))
|
|
47623
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.from);
|
|
47624
|
+
if (message.to != null && Object.hasOwnProperty.call(message, "to"))
|
|
47625
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.to);
|
|
47626
|
+
return writer;
|
|
47627
|
+
};
|
|
47628
|
+
|
|
47629
|
+
/**
|
|
47630
|
+
* Encodes the specified RewriteRule message, length delimited. Does not implicitly {@link replit.goval.api.DeploymentConfig.RewriteRule.verify|verify} messages.
|
|
47631
|
+
* @function encodeDelimited
|
|
47632
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47633
|
+
* @static
|
|
47634
|
+
* @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule message or plain object to encode
|
|
47635
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
47636
|
+
* @returns {$protobuf.Writer} Writer
|
|
47637
|
+
*/
|
|
47638
|
+
RewriteRule.encodeDelimited = function encodeDelimited(message, writer) {
|
|
47639
|
+
return this.encode(message, writer).ldelim();
|
|
47640
|
+
};
|
|
47641
|
+
|
|
47642
|
+
/**
|
|
47643
|
+
* Decodes a RewriteRule message from the specified reader or buffer.
|
|
47644
|
+
* @function decode
|
|
47645
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47646
|
+
* @static
|
|
47647
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47648
|
+
* @param {number} [length] Message length if known beforehand
|
|
47649
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
|
|
47650
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47651
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47652
|
+
*/
|
|
47653
|
+
RewriteRule.decode = function decode(reader, length) {
|
|
47654
|
+
if (!(reader instanceof $Reader))
|
|
47655
|
+
reader = $Reader.create(reader);
|
|
47656
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.DeploymentConfig.RewriteRule();
|
|
47657
|
+
while (reader.pos < end) {
|
|
47658
|
+
var tag = reader.uint32();
|
|
47659
|
+
switch (tag >>> 3) {
|
|
47660
|
+
case 1: {
|
|
47661
|
+
message.from = reader.string();
|
|
47662
|
+
break;
|
|
47663
|
+
}
|
|
47664
|
+
case 2: {
|
|
47665
|
+
message.to = reader.string();
|
|
47666
|
+
break;
|
|
47667
|
+
}
|
|
47668
|
+
default:
|
|
47669
|
+
reader.skipType(tag & 7);
|
|
47670
|
+
break;
|
|
47671
|
+
}
|
|
47672
|
+
}
|
|
47673
|
+
return message;
|
|
47674
|
+
};
|
|
47675
|
+
|
|
47676
|
+
/**
|
|
47677
|
+
* Decodes a RewriteRule message from the specified reader or buffer, length delimited.
|
|
47678
|
+
* @function decodeDelimited
|
|
47679
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47680
|
+
* @static
|
|
47681
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
47682
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
|
|
47683
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
47684
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
47685
|
+
*/
|
|
47686
|
+
RewriteRule.decodeDelimited = function decodeDelimited(reader) {
|
|
47687
|
+
if (!(reader instanceof $Reader))
|
|
47688
|
+
reader = new $Reader(reader);
|
|
47689
|
+
return this.decode(reader, reader.uint32());
|
|
47690
|
+
};
|
|
47691
|
+
|
|
47692
|
+
/**
|
|
47693
|
+
* Verifies a RewriteRule message.
|
|
47694
|
+
* @function verify
|
|
47695
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47696
|
+
* @static
|
|
47697
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
47698
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
47699
|
+
*/
|
|
47700
|
+
RewriteRule.verify = function verify(message) {
|
|
47701
|
+
if (typeof message !== "object" || message === null)
|
|
47702
|
+
return "object expected";
|
|
47703
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
47704
|
+
if (!$util.isString(message.from))
|
|
47705
|
+
return "from: string expected";
|
|
47706
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
47707
|
+
if (!$util.isString(message.to))
|
|
47708
|
+
return "to: string expected";
|
|
47709
|
+
return null;
|
|
47710
|
+
};
|
|
47711
|
+
|
|
47712
|
+
/**
|
|
47713
|
+
* Creates a RewriteRule message from a plain object. Also converts values to their respective internal types.
|
|
47714
|
+
* @function fromObject
|
|
47715
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47716
|
+
* @static
|
|
47717
|
+
* @param {Object.<string,*>} object Plain object
|
|
47718
|
+
* @returns {replit.goval.api.DeploymentConfig.RewriteRule} RewriteRule
|
|
47719
|
+
*/
|
|
47720
|
+
RewriteRule.fromObject = function fromObject(object) {
|
|
47721
|
+
if (object instanceof $root.replit.goval.api.DeploymentConfig.RewriteRule)
|
|
47722
|
+
return object;
|
|
47723
|
+
var message = new $root.replit.goval.api.DeploymentConfig.RewriteRule();
|
|
47724
|
+
if (object.from != null)
|
|
47725
|
+
message.from = String(object.from);
|
|
47726
|
+
if (object.to != null)
|
|
47727
|
+
message.to = String(object.to);
|
|
47728
|
+
return message;
|
|
47729
|
+
};
|
|
47730
|
+
|
|
47731
|
+
/**
|
|
47732
|
+
* Creates a plain object from a RewriteRule message. Also converts values to other types if specified.
|
|
47733
|
+
* @function toObject
|
|
47734
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47735
|
+
* @static
|
|
47736
|
+
* @param {replit.goval.api.DeploymentConfig.RewriteRule} message RewriteRule
|
|
47737
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
47738
|
+
* @returns {Object.<string,*>} Plain object
|
|
47739
|
+
*/
|
|
47740
|
+
RewriteRule.toObject = function toObject(message, options) {
|
|
47741
|
+
if (!options)
|
|
47742
|
+
options = {};
|
|
47743
|
+
var object = {};
|
|
47744
|
+
if (options.defaults) {
|
|
47745
|
+
object.from = "";
|
|
47746
|
+
object.to = "";
|
|
47747
|
+
}
|
|
47748
|
+
if (message.from != null && message.hasOwnProperty("from"))
|
|
47749
|
+
object.from = message.from;
|
|
47750
|
+
if (message.to != null && message.hasOwnProperty("to"))
|
|
47751
|
+
object.to = message.to;
|
|
47752
|
+
return object;
|
|
47753
|
+
};
|
|
47754
|
+
|
|
47755
|
+
/**
|
|
47756
|
+
* Converts this RewriteRule to JSON.
|
|
47757
|
+
* @function toJSON
|
|
47758
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47759
|
+
* @instance
|
|
47760
|
+
* @returns {Object.<string,*>} JSON object
|
|
47761
|
+
*/
|
|
47762
|
+
RewriteRule.prototype.toJSON = function toJSON() {
|
|
47763
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
47764
|
+
};
|
|
47765
|
+
|
|
47766
|
+
/**
|
|
47767
|
+
* Gets the default type url for RewriteRule
|
|
47768
|
+
* @function getTypeUrl
|
|
47769
|
+
* @memberof replit.goval.api.DeploymentConfig.RewriteRule
|
|
47770
|
+
* @static
|
|
47771
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
47772
|
+
* @returns {string} The default type url
|
|
47773
|
+
*/
|
|
47774
|
+
RewriteRule.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
47775
|
+
if (typeUrlPrefix === undefined) {
|
|
47776
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
47777
|
+
}
|
|
47778
|
+
return typeUrlPrefix + "/replit.goval.api.DeploymentConfig.RewriteRule";
|
|
47779
|
+
};
|
|
47780
|
+
|
|
47781
|
+
return RewriteRule;
|
|
47782
|
+
})();
|
|
47783
|
+
|
|
47105
47784
|
return DeploymentConfig;
|
|
47106
47785
|
})();
|
|
47107
47786
|
|
|
@@ -60622,6 +61301,7 @@
|
|
|
60622
61301
|
* @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
|
|
60623
61302
|
* @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
|
|
60624
61303
|
* @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
|
|
61304
|
+
* @property {replit.goval.api.repl.Pid2Binary|replit.goval.api.repl.IPid2Binary|null} [pid2Info] ReplToken pid2Info
|
|
60625
61305
|
*/
|
|
60626
61306
|
|
|
60627
61307
|
/**
|
|
@@ -60768,6 +61448,14 @@
|
|
|
60768
61448
|
*/
|
|
60769
61449
|
ReplToken.prototype.buildInfo = null;
|
|
60770
61450
|
|
|
61451
|
+
/**
|
|
61452
|
+
* ReplToken pid2Info.
|
|
61453
|
+
* @member {replit.goval.api.repl.Pid2Binary|null|undefined} pid2Info
|
|
61454
|
+
* @memberof replit.goval.api.ReplToken
|
|
61455
|
+
* @instance
|
|
61456
|
+
*/
|
|
61457
|
+
ReplToken.prototype.pid2Info = null;
|
|
61458
|
+
|
|
60771
61459
|
// OneOf field names bound to virtual getters and setters
|
|
60772
61460
|
var $oneOfFields;
|
|
60773
61461
|
|
|
@@ -60840,6 +61528,8 @@
|
|
|
60840
61528
|
$root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
60841
61529
|
if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
|
|
60842
61530
|
$root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
61531
|
+
if (message.pid2Info != null && Object.hasOwnProperty.call(message, "pid2Info"))
|
|
61532
|
+
$root.replit.goval.api.repl.Pid2Binary.encode(message.pid2Info, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
60843
61533
|
return writer;
|
|
60844
61534
|
};
|
|
60845
61535
|
|
|
@@ -60942,6 +61632,10 @@
|
|
|
60942
61632
|
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.decode(reader, reader.uint32());
|
|
60943
61633
|
break;
|
|
60944
61634
|
}
|
|
61635
|
+
case 19: {
|
|
61636
|
+
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.decode(reader, reader.uint32());
|
|
61637
|
+
break;
|
|
61638
|
+
}
|
|
60945
61639
|
default:
|
|
60946
61640
|
reader.skipType(tag & 7);
|
|
60947
61641
|
break;
|
|
@@ -61082,6 +61776,11 @@
|
|
|
61082
61776
|
if (error)
|
|
61083
61777
|
return "buildInfo." + error;
|
|
61084
61778
|
}
|
|
61779
|
+
if (message.pid2Info != null && message.hasOwnProperty("pid2Info")) {
|
|
61780
|
+
var error = $root.replit.goval.api.repl.Pid2Binary.verify(message.pid2Info);
|
|
61781
|
+
if (error)
|
|
61782
|
+
return "pid2Info." + error;
|
|
61783
|
+
}
|
|
61085
61784
|
return null;
|
|
61086
61785
|
};
|
|
61087
61786
|
|
|
@@ -61212,6 +61911,11 @@
|
|
|
61212
61911
|
throw TypeError(".replit.goval.api.ReplToken.buildInfo: object expected");
|
|
61213
61912
|
message.buildInfo = $root.replit.goval.api.repl.BuildInfo.fromObject(object.buildInfo);
|
|
61214
61913
|
}
|
|
61914
|
+
if (object.pid2Info != null) {
|
|
61915
|
+
if (typeof object.pid2Info !== "object")
|
|
61916
|
+
throw TypeError(".replit.goval.api.ReplToken.pid2Info: object expected");
|
|
61917
|
+
message.pid2Info = $root.replit.goval.api.repl.Pid2Binary.fromObject(object.pid2Info);
|
|
61918
|
+
}
|
|
61215
61919
|
return message;
|
|
61216
61920
|
};
|
|
61217
61921
|
|
|
@@ -61244,6 +61948,7 @@
|
|
|
61244
61948
|
object.permissions = null;
|
|
61245
61949
|
object.interactiveResourceLimits = null;
|
|
61246
61950
|
object.buildInfo = null;
|
|
61951
|
+
object.pid2Info = null;
|
|
61247
61952
|
}
|
|
61248
61953
|
if (message.iat != null && message.hasOwnProperty("iat"))
|
|
61249
61954
|
object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
|
|
@@ -61292,6 +61997,8 @@
|
|
|
61292
61997
|
object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
|
|
61293
61998
|
if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
|
|
61294
61999
|
object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
|
|
62000
|
+
if (message.pid2Info != null && message.hasOwnProperty("pid2Info"))
|
|
62001
|
+
object.pid2Info = $root.replit.goval.api.repl.Pid2Binary.toObject(message.pid2Info, options);
|
|
61295
62002
|
return object;
|
|
61296
62003
|
};
|
|
61297
62004
|
|
|
@@ -72603,6 +73310,208 @@
|
|
|
72603
73310
|
return BuildInfo;
|
|
72604
73311
|
})();
|
|
72605
73312
|
|
|
73313
|
+
repl.Pid2Binary = (function() {
|
|
73314
|
+
|
|
73315
|
+
/**
|
|
73316
|
+
* Properties of a Pid2Binary.
|
|
73317
|
+
* @memberof replit.goval.api.repl
|
|
73318
|
+
* @interface IPid2Binary
|
|
73319
|
+
* @property {string|null} [version] Pid2Binary version
|
|
73320
|
+
*/
|
|
73321
|
+
|
|
73322
|
+
/**
|
|
73323
|
+
* Constructs a new Pid2Binary.
|
|
73324
|
+
* @memberof replit.goval.api.repl
|
|
73325
|
+
* @classdesc Represents a Pid2Binary.
|
|
73326
|
+
* @constructor
|
|
73327
|
+
* @param {replit.goval.api.repl.IPid2Binary=} [properties] Properties to set
|
|
73328
|
+
*/
|
|
73329
|
+
function Pid2Binary(properties) {
|
|
73330
|
+
if (properties)
|
|
73331
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
73332
|
+
if (properties[keys[i]] != null)
|
|
73333
|
+
this[keys[i]] = properties[keys[i]];
|
|
73334
|
+
}
|
|
73335
|
+
|
|
73336
|
+
/**
|
|
73337
|
+
* Pid2Binary version.
|
|
73338
|
+
* @member {string} version
|
|
73339
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73340
|
+
* @instance
|
|
73341
|
+
*/
|
|
73342
|
+
Pid2Binary.prototype.version = "";
|
|
73343
|
+
|
|
73344
|
+
/**
|
|
73345
|
+
* Creates a new Pid2Binary instance using the specified properties.
|
|
73346
|
+
* @function create
|
|
73347
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73348
|
+
* @static
|
|
73349
|
+
* @param {replit.goval.api.repl.IPid2Binary=} [properties] Properties to set
|
|
73350
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary instance
|
|
73351
|
+
*/
|
|
73352
|
+
Pid2Binary.create = function create(properties) {
|
|
73353
|
+
return Pid2Binary.fromObject(properties);
|
|
73354
|
+
};
|
|
73355
|
+
|
|
73356
|
+
/**
|
|
73357
|
+
* Encodes the specified Pid2Binary message. Does not implicitly {@link replit.goval.api.repl.Pid2Binary.verify|verify} messages.
|
|
73358
|
+
* @function encode
|
|
73359
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73360
|
+
* @static
|
|
73361
|
+
* @param {replit.goval.api.repl.Pid2Binary} message Pid2Binary message or plain object to encode
|
|
73362
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73363
|
+
* @returns {$protobuf.Writer} Writer
|
|
73364
|
+
*/
|
|
73365
|
+
Pid2Binary.encode = function encode(message, writer) {
|
|
73366
|
+
if (!writer)
|
|
73367
|
+
writer = $Writer.create();
|
|
73368
|
+
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
73369
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.version);
|
|
73370
|
+
return writer;
|
|
73371
|
+
};
|
|
73372
|
+
|
|
73373
|
+
/**
|
|
73374
|
+
* Encodes the specified Pid2Binary message, length delimited. Does not implicitly {@link replit.goval.api.repl.Pid2Binary.verify|verify} messages.
|
|
73375
|
+
* @function encodeDelimited
|
|
73376
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73377
|
+
* @static
|
|
73378
|
+
* @param {replit.goval.api.repl.Pid2Binary} message Pid2Binary message or plain object to encode
|
|
73379
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
73380
|
+
* @returns {$protobuf.Writer} Writer
|
|
73381
|
+
*/
|
|
73382
|
+
Pid2Binary.encodeDelimited = function encodeDelimited(message, writer) {
|
|
73383
|
+
return this.encode(message, writer).ldelim();
|
|
73384
|
+
};
|
|
73385
|
+
|
|
73386
|
+
/**
|
|
73387
|
+
* Decodes a Pid2Binary message from the specified reader or buffer.
|
|
73388
|
+
* @function decode
|
|
73389
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73390
|
+
* @static
|
|
73391
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73392
|
+
* @param {number} [length] Message length if known beforehand
|
|
73393
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary
|
|
73394
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73395
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73396
|
+
*/
|
|
73397
|
+
Pid2Binary.decode = function decode(reader, length) {
|
|
73398
|
+
if (!(reader instanceof $Reader))
|
|
73399
|
+
reader = $Reader.create(reader);
|
|
73400
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Pid2Binary();
|
|
73401
|
+
while (reader.pos < end) {
|
|
73402
|
+
var tag = reader.uint32();
|
|
73403
|
+
switch (tag >>> 3) {
|
|
73404
|
+
case 1: {
|
|
73405
|
+
message.version = reader.string();
|
|
73406
|
+
break;
|
|
73407
|
+
}
|
|
73408
|
+
default:
|
|
73409
|
+
reader.skipType(tag & 7);
|
|
73410
|
+
break;
|
|
73411
|
+
}
|
|
73412
|
+
}
|
|
73413
|
+
return message;
|
|
73414
|
+
};
|
|
73415
|
+
|
|
73416
|
+
/**
|
|
73417
|
+
* Decodes a Pid2Binary message from the specified reader or buffer, length delimited.
|
|
73418
|
+
* @function decodeDelimited
|
|
73419
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73420
|
+
* @static
|
|
73421
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
73422
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary
|
|
73423
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
73424
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
73425
|
+
*/
|
|
73426
|
+
Pid2Binary.decodeDelimited = function decodeDelimited(reader) {
|
|
73427
|
+
if (!(reader instanceof $Reader))
|
|
73428
|
+
reader = new $Reader(reader);
|
|
73429
|
+
return this.decode(reader, reader.uint32());
|
|
73430
|
+
};
|
|
73431
|
+
|
|
73432
|
+
/**
|
|
73433
|
+
* Verifies a Pid2Binary message.
|
|
73434
|
+
* @function verify
|
|
73435
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73436
|
+
* @static
|
|
73437
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
73438
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
73439
|
+
*/
|
|
73440
|
+
Pid2Binary.verify = function verify(message) {
|
|
73441
|
+
if (typeof message !== "object" || message === null)
|
|
73442
|
+
return "object expected";
|
|
73443
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
73444
|
+
if (!$util.isString(message.version))
|
|
73445
|
+
return "version: string expected";
|
|
73446
|
+
return null;
|
|
73447
|
+
};
|
|
73448
|
+
|
|
73449
|
+
/**
|
|
73450
|
+
* Creates a Pid2Binary message from a plain object. Also converts values to their respective internal types.
|
|
73451
|
+
* @function fromObject
|
|
73452
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73453
|
+
* @static
|
|
73454
|
+
* @param {Object.<string,*>} object Plain object
|
|
73455
|
+
* @returns {replit.goval.api.repl.Pid2Binary} Pid2Binary
|
|
73456
|
+
*/
|
|
73457
|
+
Pid2Binary.fromObject = function fromObject(object) {
|
|
73458
|
+
if (object instanceof $root.replit.goval.api.repl.Pid2Binary)
|
|
73459
|
+
return object;
|
|
73460
|
+
var message = new $root.replit.goval.api.repl.Pid2Binary();
|
|
73461
|
+
if (object.version != null)
|
|
73462
|
+
message.version = String(object.version);
|
|
73463
|
+
return message;
|
|
73464
|
+
};
|
|
73465
|
+
|
|
73466
|
+
/**
|
|
73467
|
+
* Creates a plain object from a Pid2Binary message. Also converts values to other types if specified.
|
|
73468
|
+
* @function toObject
|
|
73469
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73470
|
+
* @static
|
|
73471
|
+
* @param {replit.goval.api.repl.Pid2Binary} message Pid2Binary
|
|
73472
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
73473
|
+
* @returns {Object.<string,*>} Plain object
|
|
73474
|
+
*/
|
|
73475
|
+
Pid2Binary.toObject = function toObject(message, options) {
|
|
73476
|
+
if (!options)
|
|
73477
|
+
options = {};
|
|
73478
|
+
var object = {};
|
|
73479
|
+
if (options.defaults)
|
|
73480
|
+
object.version = "";
|
|
73481
|
+
if (message.version != null && message.hasOwnProperty("version"))
|
|
73482
|
+
object.version = message.version;
|
|
73483
|
+
return object;
|
|
73484
|
+
};
|
|
73485
|
+
|
|
73486
|
+
/**
|
|
73487
|
+
* Converts this Pid2Binary to JSON.
|
|
73488
|
+
* @function toJSON
|
|
73489
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73490
|
+
* @instance
|
|
73491
|
+
* @returns {Object.<string,*>} JSON object
|
|
73492
|
+
*/
|
|
73493
|
+
Pid2Binary.prototype.toJSON = function toJSON() {
|
|
73494
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
73495
|
+
};
|
|
73496
|
+
|
|
73497
|
+
/**
|
|
73498
|
+
* Gets the default type url for Pid2Binary
|
|
73499
|
+
* @function getTypeUrl
|
|
73500
|
+
* @memberof replit.goval.api.repl.Pid2Binary
|
|
73501
|
+
* @static
|
|
73502
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
73503
|
+
* @returns {string} The default type url
|
|
73504
|
+
*/
|
|
73505
|
+
Pid2Binary.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
73506
|
+
if (typeUrlPrefix === undefined) {
|
|
73507
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
73508
|
+
}
|
|
73509
|
+
return typeUrlPrefix + "/replit.goval.api.repl.Pid2Binary";
|
|
73510
|
+
};
|
|
73511
|
+
|
|
73512
|
+
return Pid2Binary;
|
|
73513
|
+
})();
|
|
73514
|
+
|
|
72606
73515
|
return repl;
|
|
72607
73516
|
})();
|
|
72608
73517
|
|