@replit/protocol 0.3.11 → 0.3.13
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 +1387 -207
- package/main/index.js +3529 -430
- package/main/index.js.flow +1909 -235
- package/package.json +2 -2
- package/yarn-error.log +386 -0
package/main/index.js
CHANGED
|
@@ -231,6 +231,8 @@
|
|
|
231
231
|
* @property {replit.goval.api.ReplspaceApiOpenMultipleFiles|replit.goval.api.IReplspaceApiOpenMultipleFiles|null} [replspaceApiOpenMultipleFiles] Command replspaceApiOpenMultipleFiles
|
|
232
232
|
* @property {replit.goval.api.NixModulesGetRegistryRequest|replit.goval.api.INixModulesGetRegistryRequest|null} [nixModulesGetRegistryRequest] Command nixModulesGetRegistryRequest
|
|
233
233
|
* @property {replit.goval.api.NixModulesGetRegistryResponse|replit.goval.api.INixModulesGetRegistryResponse|null} [nixModulesGetRegistryResponse] Command nixModulesGetRegistryResponse
|
|
234
|
+
* @property {replit.goval.api.pid2.ClientFrame|replit.goval.api.pid2.IClientFrame|null} [pid2Input] Command pid2Input
|
|
235
|
+
* @property {replit.goval.api.pid2.ServerFrame|replit.goval.api.pid2.IServerFrame|null} [pid2Output] Command pid2Output
|
|
234
236
|
* @property {string|null} [ref] Command ref
|
|
235
237
|
* @property {Object.<string,string>|null} [traceInfo] Command traceInfo
|
|
236
238
|
*/
|
|
@@ -1706,6 +1708,22 @@
|
|
|
1706
1708
|
*/
|
|
1707
1709
|
Command.prototype.nixModulesGetRegistryResponse = null;
|
|
1708
1710
|
|
|
1711
|
+
/**
|
|
1712
|
+
* Command pid2Input.
|
|
1713
|
+
* @member {replit.goval.api.pid2.ClientFrame|null|undefined} pid2Input
|
|
1714
|
+
* @memberof replit.goval.api.Command
|
|
1715
|
+
* @instance
|
|
1716
|
+
*/
|
|
1717
|
+
Command.prototype.pid2Input = null;
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* Command pid2Output.
|
|
1721
|
+
* @member {replit.goval.api.pid2.ServerFrame|null|undefined} pid2Output
|
|
1722
|
+
* @memberof replit.goval.api.Command
|
|
1723
|
+
* @instance
|
|
1724
|
+
*/
|
|
1725
|
+
Command.prototype.pid2Output = null;
|
|
1726
|
+
|
|
1709
1727
|
/**
|
|
1710
1728
|
* Command ref.
|
|
1711
1729
|
* @member {string} ref
|
|
@@ -1727,12 +1745,12 @@
|
|
|
1727
1745
|
|
|
1728
1746
|
/**
|
|
1729
1747
|
* Command body.
|
|
1730
|
-
* @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"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
|
|
1748
|
+
* @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"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"pid2Input"|"pid2Output"|undefined} body
|
|
1731
1749
|
* @memberof replit.goval.api.Command
|
|
1732
1750
|
* @instance
|
|
1733
1751
|
*/
|
|
1734
1752
|
Object.defineProperty(Command.prototype, "body", {
|
|
1735
|
-
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", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
|
|
1753
|
+
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", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "pid2Input", "pid2Output"]),
|
|
1736
1754
|
set: $util.oneOfSetter($oneOfFields)
|
|
1737
1755
|
});
|
|
1738
1756
|
|
|
@@ -2124,6 +2142,10 @@
|
|
|
2124
2142
|
$root.replit.goval.api.NixModulesGetRegistryRequest.encode(message.nixModulesGetRegistryRequest, writer.uint32(/* id 439, wireType 2 =*/3514).fork()).ldelim();
|
|
2125
2143
|
if (message.nixModulesGetRegistryResponse != null && Object.hasOwnProperty.call(message, "nixModulesGetRegistryResponse"))
|
|
2126
2144
|
$root.replit.goval.api.NixModulesGetRegistryResponse.encode(message.nixModulesGetRegistryResponse, writer.uint32(/* id 440, wireType 2 =*/3522).fork()).ldelim();
|
|
2145
|
+
if (message.pid2Input != null && Object.hasOwnProperty.call(message, "pid2Input"))
|
|
2146
|
+
$root.replit.goval.api.pid2.ClientFrame.encode(message.pid2Input, writer.uint32(/* id 441, wireType 2 =*/3530).fork()).ldelim();
|
|
2147
|
+
if (message.pid2Output != null && Object.hasOwnProperty.call(message, "pid2Output"))
|
|
2148
|
+
$root.replit.goval.api.pid2.ServerFrame.encode(message.pid2Output, writer.uint32(/* id 442, wireType 2 =*/3538).fork()).ldelim();
|
|
2127
2149
|
if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
|
|
2128
2150
|
writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
|
|
2129
2151
|
if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
|
|
@@ -2709,6 +2731,12 @@
|
|
|
2709
2731
|
case 440:
|
|
2710
2732
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.decode(reader, reader.uint32());
|
|
2711
2733
|
break;
|
|
2734
|
+
case 441:
|
|
2735
|
+
message.pid2Input = $root.replit.goval.api.pid2.ClientFrame.decode(reader, reader.uint32());
|
|
2736
|
+
break;
|
|
2737
|
+
case 442:
|
|
2738
|
+
message.pid2Output = $root.replit.goval.api.pid2.ServerFrame.decode(reader, reader.uint32());
|
|
2739
|
+
break;
|
|
2712
2740
|
case 1000:
|
|
2713
2741
|
message.ref = reader.string();
|
|
2714
2742
|
break;
|
|
@@ -4543,6 +4571,26 @@
|
|
|
4543
4571
|
return "nixModulesGetRegistryResponse." + error;
|
|
4544
4572
|
}
|
|
4545
4573
|
}
|
|
4574
|
+
if (message.pid2Input != null && message.hasOwnProperty("pid2Input")) {
|
|
4575
|
+
if (properties.body === 1)
|
|
4576
|
+
return "body: multiple values";
|
|
4577
|
+
properties.body = 1;
|
|
4578
|
+
{
|
|
4579
|
+
var error = $root.replit.goval.api.pid2.ClientFrame.verify(message.pid2Input);
|
|
4580
|
+
if (error)
|
|
4581
|
+
return "pid2Input." + error;
|
|
4582
|
+
}
|
|
4583
|
+
}
|
|
4584
|
+
if (message.pid2Output != null && message.hasOwnProperty("pid2Output")) {
|
|
4585
|
+
if (properties.body === 1)
|
|
4586
|
+
return "body: multiple values";
|
|
4587
|
+
properties.body = 1;
|
|
4588
|
+
{
|
|
4589
|
+
var error = $root.replit.goval.api.pid2.ServerFrame.verify(message.pid2Output);
|
|
4590
|
+
if (error)
|
|
4591
|
+
return "pid2Output." + error;
|
|
4592
|
+
}
|
|
4593
|
+
}
|
|
4546
4594
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
4547
4595
|
if (!$util.isString(message.ref))
|
|
4548
4596
|
return "ref: string expected";
|
|
@@ -5445,6 +5493,16 @@
|
|
|
5445
5493
|
throw TypeError(".replit.goval.api.Command.nixModulesGetRegistryResponse: object expected");
|
|
5446
5494
|
message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.fromObject(object.nixModulesGetRegistryResponse);
|
|
5447
5495
|
}
|
|
5496
|
+
if (object.pid2Input != null) {
|
|
5497
|
+
if (typeof object.pid2Input !== "object")
|
|
5498
|
+
throw TypeError(".replit.goval.api.Command.pid2Input: object expected");
|
|
5499
|
+
message.pid2Input = $root.replit.goval.api.pid2.ClientFrame.fromObject(object.pid2Input);
|
|
5500
|
+
}
|
|
5501
|
+
if (object.pid2Output != null) {
|
|
5502
|
+
if (typeof object.pid2Output !== "object")
|
|
5503
|
+
throw TypeError(".replit.goval.api.Command.pid2Output: object expected");
|
|
5504
|
+
message.pid2Output = $root.replit.goval.api.pid2.ServerFrame.fromObject(object.pid2Output);
|
|
5505
|
+
}
|
|
5448
5506
|
if (object.ref != null)
|
|
5449
5507
|
message.ref = String(object.ref);
|
|
5450
5508
|
if (object.traceInfo) {
|
|
@@ -6381,6 +6439,16 @@
|
|
|
6381
6439
|
if (options.oneofs)
|
|
6382
6440
|
object.body = "nixModulesGetRegistryResponse";
|
|
6383
6441
|
}
|
|
6442
|
+
if (message.pid2Input != null && message.hasOwnProperty("pid2Input")) {
|
|
6443
|
+
object.pid2Input = $root.replit.goval.api.pid2.ClientFrame.toObject(message.pid2Input, options);
|
|
6444
|
+
if (options.oneofs)
|
|
6445
|
+
object.body = "pid2Input";
|
|
6446
|
+
}
|
|
6447
|
+
if (message.pid2Output != null && message.hasOwnProperty("pid2Output")) {
|
|
6448
|
+
object.pid2Output = $root.replit.goval.api.pid2.ServerFrame.toObject(message.pid2Output, options);
|
|
6449
|
+
if (options.oneofs)
|
|
6450
|
+
object.body = "pid2Output";
|
|
6451
|
+
}
|
|
6384
6452
|
if (message.ref != null && message.hasOwnProperty("ref"))
|
|
6385
6453
|
object.ref = message.ref;
|
|
6386
6454
|
var keys2;
|
|
@@ -48260,8 +48328,8 @@
|
|
|
48260
48328
|
* @property {Array.<replit.goval.api.LanguageServerOption|replit.goval.api.ILanguageServerOption>|null} [languageServers] NixModule languageServers
|
|
48261
48329
|
* @property {string|null} [buildType] NixModule buildType
|
|
48262
48330
|
* @property {Array.<string>|null} [resolutionPath] NixModule resolutionPath
|
|
48263
|
-
* @property {string|null} [
|
|
48264
|
-
* @property {string|null} [
|
|
48331
|
+
* @property {string|null} [resolvedId] NixModule resolvedId
|
|
48332
|
+
* @property {string|null} [referencedId] NixModule referencedId
|
|
48265
48333
|
*/
|
|
48266
48334
|
|
|
48267
48335
|
/**
|
|
@@ -48364,20 +48432,20 @@
|
|
|
48364
48432
|
NixModule.prototype.resolutionPath = $util.emptyArray;
|
|
48365
48433
|
|
|
48366
48434
|
/**
|
|
48367
|
-
* NixModule
|
|
48368
|
-
* @member {string}
|
|
48435
|
+
* NixModule resolvedId.
|
|
48436
|
+
* @member {string} resolvedId
|
|
48369
48437
|
* @memberof replit.goval.api.NixModule
|
|
48370
48438
|
* @instance
|
|
48371
48439
|
*/
|
|
48372
|
-
NixModule.prototype.
|
|
48440
|
+
NixModule.prototype.resolvedId = "";
|
|
48373
48441
|
|
|
48374
48442
|
/**
|
|
48375
|
-
* NixModule
|
|
48376
|
-
* @member {string}
|
|
48443
|
+
* NixModule referencedId.
|
|
48444
|
+
* @member {string} referencedId
|
|
48377
48445
|
* @memberof replit.goval.api.NixModule
|
|
48378
48446
|
* @instance
|
|
48379
48447
|
*/
|
|
48380
|
-
NixModule.prototype.
|
|
48448
|
+
NixModule.prototype.referencedId = "";
|
|
48381
48449
|
|
|
48382
48450
|
/**
|
|
48383
48451
|
* Creates a new NixModule instance using the specified properties.
|
|
@@ -48428,10 +48496,10 @@
|
|
|
48428
48496
|
if (message.resolutionPath != null && message.resolutionPath.length)
|
|
48429
48497
|
for (var i = 0; i < message.resolutionPath.length; ++i)
|
|
48430
48498
|
writer.uint32(/* id 10, wireType 2 =*/82).string(message.resolutionPath[i]);
|
|
48431
|
-
if (message.
|
|
48432
|
-
writer.uint32(/* id 11, wireType 2 =*/90).string(message.
|
|
48433
|
-
if (message.
|
|
48434
|
-
writer.uint32(/* id 12, wireType 2 =*/98).string(message.
|
|
48499
|
+
if (message.resolvedId != null && Object.hasOwnProperty.call(message, "resolvedId"))
|
|
48500
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.resolvedId);
|
|
48501
|
+
if (message.referencedId != null && Object.hasOwnProperty.call(message, "referencedId"))
|
|
48502
|
+
writer.uint32(/* id 12, wireType 2 =*/98).string(message.referencedId);
|
|
48435
48503
|
return writer;
|
|
48436
48504
|
};
|
|
48437
48505
|
|
|
@@ -48507,10 +48575,10 @@
|
|
|
48507
48575
|
message.resolutionPath.push(reader.string());
|
|
48508
48576
|
break;
|
|
48509
48577
|
case 11:
|
|
48510
|
-
message.
|
|
48578
|
+
message.resolvedId = reader.string();
|
|
48511
48579
|
break;
|
|
48512
48580
|
case 12:
|
|
48513
|
-
message.
|
|
48581
|
+
message.referencedId = reader.string();
|
|
48514
48582
|
break;
|
|
48515
48583
|
default:
|
|
48516
48584
|
reader.skipType(tag & 7);
|
|
@@ -48605,12 +48673,12 @@
|
|
|
48605
48673
|
if (!$util.isString(message.resolutionPath[i]))
|
|
48606
48674
|
return "resolutionPath: string[] expected";
|
|
48607
48675
|
}
|
|
48608
|
-
if (message.
|
|
48609
|
-
if (!$util.isString(message.
|
|
48610
|
-
return "
|
|
48611
|
-
if (message.
|
|
48612
|
-
if (!$util.isString(message.
|
|
48613
|
-
return "
|
|
48676
|
+
if (message.resolvedId != null && message.hasOwnProperty("resolvedId"))
|
|
48677
|
+
if (!$util.isString(message.resolvedId))
|
|
48678
|
+
return "resolvedId: string expected";
|
|
48679
|
+
if (message.referencedId != null && message.hasOwnProperty("referencedId"))
|
|
48680
|
+
if (!$util.isString(message.referencedId))
|
|
48681
|
+
return "referencedId: string expected";
|
|
48614
48682
|
return null;
|
|
48615
48683
|
};
|
|
48616
48684
|
|
|
@@ -48683,10 +48751,10 @@
|
|
|
48683
48751
|
for (var i = 0; i < object.resolutionPath.length; ++i)
|
|
48684
48752
|
message.resolutionPath[i] = String(object.resolutionPath[i]);
|
|
48685
48753
|
}
|
|
48686
|
-
if (object.
|
|
48687
|
-
message.
|
|
48688
|
-
if (object.
|
|
48689
|
-
message.
|
|
48754
|
+
if (object.resolvedId != null)
|
|
48755
|
+
message.resolvedId = String(object.resolvedId);
|
|
48756
|
+
if (object.referencedId != null)
|
|
48757
|
+
message.referencedId = String(object.referencedId);
|
|
48690
48758
|
return message;
|
|
48691
48759
|
};
|
|
48692
48760
|
|
|
@@ -48716,8 +48784,8 @@
|
|
|
48716
48784
|
object.name = "";
|
|
48717
48785
|
object.description = "";
|
|
48718
48786
|
object.buildType = "";
|
|
48719
|
-
object.
|
|
48720
|
-
object.
|
|
48787
|
+
object.resolvedId = "";
|
|
48788
|
+
object.referencedId = "";
|
|
48721
48789
|
}
|
|
48722
48790
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
48723
48791
|
object.id = message.id;
|
|
@@ -48754,10 +48822,10 @@
|
|
|
48754
48822
|
for (var j = 0; j < message.resolutionPath.length; ++j)
|
|
48755
48823
|
object.resolutionPath[j] = message.resolutionPath[j];
|
|
48756
48824
|
}
|
|
48757
|
-
if (message.
|
|
48758
|
-
object.
|
|
48759
|
-
if (message.
|
|
48760
|
-
object.
|
|
48825
|
+
if (message.resolvedId != null && message.hasOwnProperty("resolvedId"))
|
|
48826
|
+
object.resolvedId = message.resolvedId;
|
|
48827
|
+
if (message.referencedId != null && message.hasOwnProperty("referencedId"))
|
|
48828
|
+
object.referencedId = message.referencedId;
|
|
48761
48829
|
return object;
|
|
48762
48830
|
};
|
|
48763
48831
|
|
|
@@ -60450,7 +60518,6 @@
|
|
|
60450
60518
|
* @memberof replit.goval.api.lore
|
|
60451
60519
|
* @interface IRestore
|
|
60452
60520
|
* @property {string|null} [replId] Restore replId
|
|
60453
|
-
* @property {string|null} [restoreReplId] Restore restoreReplId
|
|
60454
60521
|
*/
|
|
60455
60522
|
|
|
60456
60523
|
/**
|
|
@@ -60475,14 +60542,6 @@
|
|
|
60475
60542
|
*/
|
|
60476
60543
|
Restore.prototype.replId = "";
|
|
60477
60544
|
|
|
60478
|
-
/**
|
|
60479
|
-
* Restore restoreReplId.
|
|
60480
|
-
* @member {string} restoreReplId
|
|
60481
|
-
* @memberof replit.goval.api.lore.Restore
|
|
60482
|
-
* @instance
|
|
60483
|
-
*/
|
|
60484
|
-
Restore.prototype.restoreReplId = "";
|
|
60485
|
-
|
|
60486
60545
|
/**
|
|
60487
60546
|
* Creates a new Restore instance using the specified properties.
|
|
60488
60547
|
* @function create
|
|
@@ -60509,8 +60568,6 @@
|
|
|
60509
60568
|
writer = $Writer.create();
|
|
60510
60569
|
if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
|
|
60511
60570
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.replId);
|
|
60512
|
-
if (message.restoreReplId != null && Object.hasOwnProperty.call(message, "restoreReplId"))
|
|
60513
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.restoreReplId);
|
|
60514
60571
|
return writer;
|
|
60515
60572
|
};
|
|
60516
60573
|
|
|
@@ -60548,9 +60605,6 @@
|
|
|
60548
60605
|
case 1:
|
|
60549
60606
|
message.replId = reader.string();
|
|
60550
60607
|
break;
|
|
60551
|
-
case 2:
|
|
60552
|
-
message.restoreReplId = reader.string();
|
|
60553
|
-
break;
|
|
60554
60608
|
default:
|
|
60555
60609
|
reader.skipType(tag & 7);
|
|
60556
60610
|
break;
|
|
@@ -60589,9 +60643,6 @@
|
|
|
60589
60643
|
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
60590
60644
|
if (!$util.isString(message.replId))
|
|
60591
60645
|
return "replId: string expected";
|
|
60592
|
-
if (message.restoreReplId != null && message.hasOwnProperty("restoreReplId"))
|
|
60593
|
-
if (!$util.isString(message.restoreReplId))
|
|
60594
|
-
return "restoreReplId: string expected";
|
|
60595
60646
|
return null;
|
|
60596
60647
|
};
|
|
60597
60648
|
|
|
@@ -60609,8 +60660,6 @@
|
|
|
60609
60660
|
var message = new $root.replit.goval.api.lore.Restore();
|
|
60610
60661
|
if (object.replId != null)
|
|
60611
60662
|
message.replId = String(object.replId);
|
|
60612
|
-
if (object.restoreReplId != null)
|
|
60613
|
-
message.restoreReplId = String(object.restoreReplId);
|
|
60614
60663
|
return message;
|
|
60615
60664
|
};
|
|
60616
60665
|
|
|
@@ -60627,14 +60676,10 @@
|
|
|
60627
60676
|
if (!options)
|
|
60628
60677
|
options = {};
|
|
60629
60678
|
var object = {};
|
|
60630
|
-
if (options.defaults)
|
|
60679
|
+
if (options.defaults)
|
|
60631
60680
|
object.replId = "";
|
|
60632
|
-
object.restoreReplId = "";
|
|
60633
|
-
}
|
|
60634
60681
|
if (message.replId != null && message.hasOwnProperty("replId"))
|
|
60635
60682
|
object.replId = message.replId;
|
|
60636
|
-
if (message.restoreReplId != null && message.hasOwnProperty("restoreReplId"))
|
|
60637
|
-
object.restoreReplId = message.restoreReplId;
|
|
60638
60683
|
return object;
|
|
60639
60684
|
};
|
|
60640
60685
|
|
|
@@ -65018,407 +65063,3243 @@
|
|
|
65018
65063
|
return UserPowerUps;
|
|
65019
65064
|
})();
|
|
65020
65065
|
|
|
65021
|
-
|
|
65022
|
-
})();
|
|
65023
|
-
|
|
65024
|
-
return goval;
|
|
65025
|
-
})();
|
|
65026
|
-
|
|
65027
|
-
return replit;
|
|
65028
|
-
})();
|
|
65029
|
-
|
|
65030
|
-
$root.google = (function() {
|
|
65031
|
-
|
|
65032
|
-
/**
|
|
65033
|
-
* Namespace google.
|
|
65034
|
-
* @exports google
|
|
65035
|
-
* @namespace
|
|
65036
|
-
*/
|
|
65037
|
-
var google = {};
|
|
65038
|
-
|
|
65039
|
-
google.protobuf = (function() {
|
|
65040
|
-
|
|
65041
|
-
/**
|
|
65042
|
-
* Namespace protobuf.
|
|
65043
|
-
* @memberof google
|
|
65044
|
-
* @namespace
|
|
65045
|
-
*/
|
|
65046
|
-
var protobuf = {};
|
|
65047
|
-
|
|
65048
|
-
protobuf.Timestamp = (function() {
|
|
65049
|
-
|
|
65050
|
-
/**
|
|
65051
|
-
* Properties of a Timestamp.
|
|
65052
|
-
* @memberof google.protobuf
|
|
65053
|
-
* @interface ITimestamp
|
|
65054
|
-
* @property {number|null} [seconds] Timestamp seconds
|
|
65055
|
-
* @property {number|null} [nanos] Timestamp nanos
|
|
65056
|
-
*/
|
|
65057
|
-
|
|
65058
|
-
/**
|
|
65059
|
-
* Constructs a new Timestamp.
|
|
65060
|
-
* @memberof google.protobuf
|
|
65061
|
-
* @classdesc Represents a Timestamp.
|
|
65062
|
-
* @constructor
|
|
65063
|
-
* @param {google.protobuf.ITimestamp=} [properties] Properties to set
|
|
65064
|
-
*/
|
|
65065
|
-
function Timestamp(properties) {
|
|
65066
|
-
if (properties)
|
|
65067
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65068
|
-
if (properties[keys[i]] != null)
|
|
65069
|
-
this[keys[i]] = properties[keys[i]];
|
|
65070
|
-
}
|
|
65071
|
-
|
|
65072
|
-
/**
|
|
65073
|
-
* Timestamp seconds.
|
|
65074
|
-
* @member {number} seconds
|
|
65075
|
-
* @memberof google.protobuf.Timestamp
|
|
65076
|
-
* @instance
|
|
65077
|
-
*/
|
|
65078
|
-
Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
65079
|
-
|
|
65080
|
-
/**
|
|
65081
|
-
* Timestamp nanos.
|
|
65082
|
-
* @member {number} nanos
|
|
65083
|
-
* @memberof google.protobuf.Timestamp
|
|
65084
|
-
* @instance
|
|
65085
|
-
*/
|
|
65086
|
-
Timestamp.prototype.nanos = 0;
|
|
65066
|
+
api.pid2 = (function() {
|
|
65087
65067
|
|
|
65088
|
-
|
|
65089
|
-
|
|
65090
|
-
|
|
65091
|
-
|
|
65092
|
-
|
|
65093
|
-
|
|
65094
|
-
* @returns {google.protobuf.Timestamp} Timestamp instance
|
|
65095
|
-
*/
|
|
65096
|
-
Timestamp.create = function create(properties) {
|
|
65097
|
-
return Timestamp.fromObject(properties);
|
|
65098
|
-
};
|
|
65068
|
+
/**
|
|
65069
|
+
* Namespace pid2.
|
|
65070
|
+
* @memberof replit.goval.api
|
|
65071
|
+
* @namespace
|
|
65072
|
+
*/
|
|
65073
|
+
var pid2 = {};
|
|
65099
65074
|
|
|
65100
|
-
|
|
65101
|
-
* Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
65102
|
-
* @function encode
|
|
65103
|
-
* @memberof google.protobuf.Timestamp
|
|
65104
|
-
* @static
|
|
65105
|
-
* @param {google.protobuf.Timestamp} message Timestamp message or plain object to encode
|
|
65106
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65107
|
-
* @returns {$protobuf.Writer} Writer
|
|
65108
|
-
*/
|
|
65109
|
-
Timestamp.encode = function encode(message, writer) {
|
|
65110
|
-
if (!writer)
|
|
65111
|
-
writer = $Writer.create();
|
|
65112
|
-
if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
|
|
65113
|
-
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds);
|
|
65114
|
-
if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos"))
|
|
65115
|
-
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos);
|
|
65116
|
-
return writer;
|
|
65117
|
-
};
|
|
65075
|
+
pid2.ClientFrame = (function() {
|
|
65118
65076
|
|
|
65119
|
-
|
|
65120
|
-
|
|
65121
|
-
|
|
65122
|
-
|
|
65123
|
-
|
|
65124
|
-
|
|
65125
|
-
|
|
65126
|
-
|
|
65127
|
-
|
|
65128
|
-
|
|
65129
|
-
|
|
65130
|
-
};
|
|
65077
|
+
/**
|
|
65078
|
+
* Properties of a ClientFrame.
|
|
65079
|
+
* @memberof replit.goval.api.pid2
|
|
65080
|
+
* @interface IClientFrame
|
|
65081
|
+
* @property {number|null} [sessionId] ClientFrame sessionId
|
|
65082
|
+
* @property {replit.goval.api.pid2.UnaryCallRequest|replit.goval.api.pid2.IUnaryCallRequest|null} [unaryCall] ClientFrame unaryCall
|
|
65083
|
+
* @property {replit.goval.api.pid2.StreamCallRequest|replit.goval.api.pid2.IStreamCallRequest|null} [streamCall] ClientFrame streamCall
|
|
65084
|
+
* @property {replit.goval.api.pid2.StreamContinuationRequest|replit.goval.api.pid2.IStreamContinuationRequest|null} [streamContinuation] ClientFrame streamContinuation
|
|
65085
|
+
* @property {replit.goval.api.pid2.StreamCancelRequest|replit.goval.api.pid2.IStreamCancelRequest|null} [streamCancel] ClientFrame streamCancel
|
|
65086
|
+
* @property {replit.goval.api.pid2.Ping|replit.goval.api.pid2.IPing|null} [ping] ClientFrame ping
|
|
65087
|
+
*/
|
|
65131
65088
|
|
|
65132
|
-
|
|
65133
|
-
|
|
65134
|
-
|
|
65135
|
-
|
|
65136
|
-
|
|
65137
|
-
|
|
65138
|
-
|
|
65139
|
-
|
|
65140
|
-
|
|
65141
|
-
|
|
65142
|
-
|
|
65143
|
-
|
|
65144
|
-
if (!(reader instanceof $Reader))
|
|
65145
|
-
reader = $Reader.create(reader);
|
|
65146
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp();
|
|
65147
|
-
while (reader.pos < end) {
|
|
65148
|
-
var tag = reader.uint32();
|
|
65149
|
-
switch (tag >>> 3) {
|
|
65150
|
-
case 1:
|
|
65151
|
-
message.seconds = reader.int64();
|
|
65152
|
-
break;
|
|
65153
|
-
case 2:
|
|
65154
|
-
message.nanos = reader.int32();
|
|
65155
|
-
break;
|
|
65156
|
-
default:
|
|
65157
|
-
reader.skipType(tag & 7);
|
|
65158
|
-
break;
|
|
65089
|
+
/**
|
|
65090
|
+
* Constructs a new ClientFrame.
|
|
65091
|
+
* @memberof replit.goval.api.pid2
|
|
65092
|
+
* @classdesc Represents a ClientFrame.
|
|
65093
|
+
* @constructor
|
|
65094
|
+
* @param {replit.goval.api.pid2.IClientFrame=} [properties] Properties to set
|
|
65095
|
+
*/
|
|
65096
|
+
function ClientFrame(properties) {
|
|
65097
|
+
if (properties)
|
|
65098
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65099
|
+
if (properties[keys[i]] != null)
|
|
65100
|
+
this[keys[i]] = properties[keys[i]];
|
|
65159
65101
|
}
|
|
65160
|
-
}
|
|
65161
|
-
return message;
|
|
65162
|
-
};
|
|
65163
65102
|
|
|
65164
|
-
|
|
65165
|
-
|
|
65166
|
-
|
|
65167
|
-
|
|
65168
|
-
|
|
65169
|
-
|
|
65170
|
-
|
|
65171
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65172
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65173
|
-
*/
|
|
65174
|
-
Timestamp.decodeDelimited = function decodeDelimited(reader) {
|
|
65175
|
-
if (!(reader instanceof $Reader))
|
|
65176
|
-
reader = new $Reader(reader);
|
|
65177
|
-
return this.decode(reader, reader.uint32());
|
|
65178
|
-
};
|
|
65179
|
-
|
|
65180
|
-
/**
|
|
65181
|
-
* Verifies a Timestamp message.
|
|
65182
|
-
* @function verify
|
|
65183
|
-
* @memberof google.protobuf.Timestamp
|
|
65184
|
-
* @static
|
|
65185
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
65186
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
65187
|
-
*/
|
|
65188
|
-
Timestamp.verify = function verify(message) {
|
|
65189
|
-
if (typeof message !== "object" || message === null)
|
|
65190
|
-
return "object expected";
|
|
65191
|
-
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
65192
|
-
if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high)))
|
|
65193
|
-
return "seconds: integer|Long expected";
|
|
65194
|
-
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
65195
|
-
if (!$util.isInteger(message.nanos))
|
|
65196
|
-
return "nanos: integer expected";
|
|
65197
|
-
return null;
|
|
65198
|
-
};
|
|
65199
|
-
|
|
65200
|
-
/**
|
|
65201
|
-
* Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
|
65202
|
-
* @function fromObject
|
|
65203
|
-
* @memberof google.protobuf.Timestamp
|
|
65204
|
-
* @static
|
|
65205
|
-
* @param {Object.<string,*>} object Plain object
|
|
65206
|
-
* @returns {google.protobuf.Timestamp} Timestamp
|
|
65207
|
-
*/
|
|
65208
|
-
Timestamp.fromObject = function fromObject(object) {
|
|
65209
|
-
if (object instanceof $root.google.protobuf.Timestamp)
|
|
65210
|
-
return object;
|
|
65211
|
-
var message = new $root.google.protobuf.Timestamp();
|
|
65212
|
-
if (object.seconds != null)
|
|
65213
|
-
if ($util.Long)
|
|
65214
|
-
(message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
|
|
65215
|
-
else if (typeof object.seconds === "string")
|
|
65216
|
-
message.seconds = parseInt(object.seconds, 10);
|
|
65217
|
-
else if (typeof object.seconds === "number")
|
|
65218
|
-
message.seconds = object.seconds;
|
|
65219
|
-
else if (typeof object.seconds === "object")
|
|
65220
|
-
message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber();
|
|
65221
|
-
if (object.nanos != null)
|
|
65222
|
-
message.nanos = object.nanos | 0;
|
|
65223
|
-
return message;
|
|
65224
|
-
};
|
|
65103
|
+
/**
|
|
65104
|
+
* ClientFrame sessionId.
|
|
65105
|
+
* @member {number} sessionId
|
|
65106
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65107
|
+
* @instance
|
|
65108
|
+
*/
|
|
65109
|
+
ClientFrame.prototype.sessionId = 0;
|
|
65225
65110
|
|
|
65226
|
-
|
|
65227
|
-
|
|
65228
|
-
|
|
65229
|
-
|
|
65230
|
-
|
|
65231
|
-
|
|
65232
|
-
|
|
65233
|
-
* @returns {Object.<string,*>} Plain object
|
|
65234
|
-
*/
|
|
65235
|
-
Timestamp.toObject = function toObject(message, options) {
|
|
65236
|
-
if (!options)
|
|
65237
|
-
options = {};
|
|
65238
|
-
var object = {};
|
|
65239
|
-
if (options.defaults) {
|
|
65240
|
-
if ($util.Long) {
|
|
65241
|
-
var long = new $util.Long(0, 0, false);
|
|
65242
|
-
object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
65243
|
-
} else
|
|
65244
|
-
object.seconds = options.longs === String ? "0" : 0;
|
|
65245
|
-
object.nanos = 0;
|
|
65246
|
-
}
|
|
65247
|
-
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
65248
|
-
if (typeof message.seconds === "number")
|
|
65249
|
-
object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
|
|
65250
|
-
else
|
|
65251
|
-
object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
|
|
65252
|
-
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
65253
|
-
object.nanos = message.nanos;
|
|
65254
|
-
return object;
|
|
65255
|
-
};
|
|
65111
|
+
/**
|
|
65112
|
+
* ClientFrame unaryCall.
|
|
65113
|
+
* @member {replit.goval.api.pid2.UnaryCallRequest|null|undefined} unaryCall
|
|
65114
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65115
|
+
* @instance
|
|
65116
|
+
*/
|
|
65117
|
+
ClientFrame.prototype.unaryCall = null;
|
|
65256
65118
|
|
|
65257
|
-
|
|
65258
|
-
|
|
65259
|
-
|
|
65260
|
-
|
|
65261
|
-
|
|
65262
|
-
|
|
65263
|
-
|
|
65264
|
-
Timestamp.prototype.toJSON = function toJSON() {
|
|
65265
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
65266
|
-
};
|
|
65119
|
+
/**
|
|
65120
|
+
* ClientFrame streamCall.
|
|
65121
|
+
* @member {replit.goval.api.pid2.StreamCallRequest|null|undefined} streamCall
|
|
65122
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65123
|
+
* @instance
|
|
65124
|
+
*/
|
|
65125
|
+
ClientFrame.prototype.streamCall = null;
|
|
65267
65126
|
|
|
65268
|
-
|
|
65269
|
-
|
|
65127
|
+
/**
|
|
65128
|
+
* ClientFrame streamContinuation.
|
|
65129
|
+
* @member {replit.goval.api.pid2.StreamContinuationRequest|null|undefined} streamContinuation
|
|
65130
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65131
|
+
* @instance
|
|
65132
|
+
*/
|
|
65133
|
+
ClientFrame.prototype.streamContinuation = null;
|
|
65270
65134
|
|
|
65271
|
-
|
|
65135
|
+
/**
|
|
65136
|
+
* ClientFrame streamCancel.
|
|
65137
|
+
* @member {replit.goval.api.pid2.StreamCancelRequest|null|undefined} streamCancel
|
|
65138
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65139
|
+
* @instance
|
|
65140
|
+
*/
|
|
65141
|
+
ClientFrame.prototype.streamCancel = null;
|
|
65272
65142
|
|
|
65273
|
-
|
|
65274
|
-
|
|
65275
|
-
|
|
65276
|
-
|
|
65277
|
-
|
|
65278
|
-
|
|
65143
|
+
/**
|
|
65144
|
+
* ClientFrame ping.
|
|
65145
|
+
* @member {replit.goval.api.pid2.Ping|null|undefined} ping
|
|
65146
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65147
|
+
* @instance
|
|
65148
|
+
*/
|
|
65149
|
+
ClientFrame.prototype.ping = null;
|
|
65279
65150
|
|
|
65280
|
-
|
|
65281
|
-
|
|
65282
|
-
* @memberof google.protobuf
|
|
65283
|
-
* @classdesc Represents a Struct.
|
|
65284
|
-
* @constructor
|
|
65285
|
-
* @param {google.protobuf.IStruct=} [properties] Properties to set
|
|
65286
|
-
*/
|
|
65287
|
-
function Struct(properties) {
|
|
65288
|
-
this.fields = {};
|
|
65289
|
-
if (properties)
|
|
65290
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65291
|
-
if (properties[keys[i]] != null)
|
|
65292
|
-
this[keys[i]] = properties[keys[i]];
|
|
65293
|
-
}
|
|
65151
|
+
// OneOf field names bound to virtual getters and setters
|
|
65152
|
+
var $oneOfFields;
|
|
65294
65153
|
|
|
65295
|
-
|
|
65296
|
-
|
|
65297
|
-
|
|
65298
|
-
|
|
65299
|
-
|
|
65300
|
-
|
|
65301
|
-
|
|
65154
|
+
/**
|
|
65155
|
+
* ClientFrame body.
|
|
65156
|
+
* @member {"unaryCall"|"streamCall"|"streamContinuation"|"streamCancel"|"ping"|undefined} body
|
|
65157
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65158
|
+
* @instance
|
|
65159
|
+
*/
|
|
65160
|
+
Object.defineProperty(ClientFrame.prototype, "body", {
|
|
65161
|
+
get: $util.oneOfGetter($oneOfFields = ["unaryCall", "streamCall", "streamContinuation", "streamCancel", "ping"]),
|
|
65162
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
65163
|
+
});
|
|
65302
65164
|
|
|
65303
|
-
|
|
65304
|
-
|
|
65305
|
-
|
|
65306
|
-
|
|
65307
|
-
|
|
65308
|
-
|
|
65309
|
-
|
|
65310
|
-
|
|
65311
|
-
|
|
65312
|
-
|
|
65313
|
-
|
|
65165
|
+
/**
|
|
65166
|
+
* Creates a new ClientFrame instance using the specified properties.
|
|
65167
|
+
* @function create
|
|
65168
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65169
|
+
* @static
|
|
65170
|
+
* @param {replit.goval.api.pid2.IClientFrame=} [properties] Properties to set
|
|
65171
|
+
* @returns {replit.goval.api.pid2.ClientFrame} ClientFrame instance
|
|
65172
|
+
*/
|
|
65173
|
+
ClientFrame.create = function create(properties) {
|
|
65174
|
+
return ClientFrame.fromObject(properties);
|
|
65175
|
+
};
|
|
65314
65176
|
|
|
65315
|
-
|
|
65316
|
-
|
|
65317
|
-
|
|
65318
|
-
|
|
65319
|
-
|
|
65320
|
-
|
|
65321
|
-
|
|
65322
|
-
|
|
65323
|
-
|
|
65324
|
-
|
|
65325
|
-
|
|
65326
|
-
|
|
65327
|
-
|
|
65328
|
-
|
|
65329
|
-
|
|
65330
|
-
|
|
65331
|
-
|
|
65332
|
-
|
|
65333
|
-
|
|
65177
|
+
/**
|
|
65178
|
+
* Encodes the specified ClientFrame message. Does not implicitly {@link replit.goval.api.pid2.ClientFrame.verify|verify} messages.
|
|
65179
|
+
* @function encode
|
|
65180
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65181
|
+
* @static
|
|
65182
|
+
* @param {replit.goval.api.pid2.ClientFrame} message ClientFrame message or plain object to encode
|
|
65183
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65184
|
+
* @returns {$protobuf.Writer} Writer
|
|
65185
|
+
*/
|
|
65186
|
+
ClientFrame.encode = function encode(message, writer) {
|
|
65187
|
+
if (!writer)
|
|
65188
|
+
writer = $Writer.create();
|
|
65189
|
+
if (message.sessionId != null && Object.hasOwnProperty.call(message, "sessionId"))
|
|
65190
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sessionId);
|
|
65191
|
+
if (message.unaryCall != null && Object.hasOwnProperty.call(message, "unaryCall"))
|
|
65192
|
+
$root.replit.goval.api.pid2.UnaryCallRequest.encode(message.unaryCall, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
65193
|
+
if (message.streamCall != null && Object.hasOwnProperty.call(message, "streamCall"))
|
|
65194
|
+
$root.replit.goval.api.pid2.StreamCallRequest.encode(message.streamCall, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
65195
|
+
if (message.streamContinuation != null && Object.hasOwnProperty.call(message, "streamContinuation"))
|
|
65196
|
+
$root.replit.goval.api.pid2.StreamContinuationRequest.encode(message.streamContinuation, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
65197
|
+
if (message.streamCancel != null && Object.hasOwnProperty.call(message, "streamCancel"))
|
|
65198
|
+
$root.replit.goval.api.pid2.StreamCancelRequest.encode(message.streamCancel, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
65199
|
+
if (message.ping != null && Object.hasOwnProperty.call(message, "ping"))
|
|
65200
|
+
$root.replit.goval.api.pid2.Ping.encode(message.ping, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
65201
|
+
return writer;
|
|
65202
|
+
};
|
|
65334
65203
|
|
|
65335
|
-
|
|
65336
|
-
|
|
65337
|
-
|
|
65338
|
-
|
|
65339
|
-
|
|
65340
|
-
|
|
65341
|
-
|
|
65342
|
-
|
|
65343
|
-
|
|
65344
|
-
|
|
65345
|
-
|
|
65346
|
-
|
|
65204
|
+
/**
|
|
65205
|
+
* Encodes the specified ClientFrame message, length delimited. Does not implicitly {@link replit.goval.api.pid2.ClientFrame.verify|verify} messages.
|
|
65206
|
+
* @function encodeDelimited
|
|
65207
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65208
|
+
* @static
|
|
65209
|
+
* @param {replit.goval.api.pid2.ClientFrame} message ClientFrame message or plain object to encode
|
|
65210
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65211
|
+
* @returns {$protobuf.Writer} Writer
|
|
65212
|
+
*/
|
|
65213
|
+
ClientFrame.encodeDelimited = function encodeDelimited(message, writer) {
|
|
65214
|
+
return this.encode(message, writer).ldelim();
|
|
65215
|
+
};
|
|
65347
65216
|
|
|
65348
|
-
|
|
65349
|
-
|
|
65350
|
-
|
|
65351
|
-
|
|
65352
|
-
|
|
65353
|
-
|
|
65354
|
-
|
|
65355
|
-
|
|
65356
|
-
|
|
65357
|
-
|
|
65358
|
-
|
|
65359
|
-
|
|
65360
|
-
|
|
65361
|
-
|
|
65362
|
-
|
|
65363
|
-
|
|
65364
|
-
|
|
65365
|
-
|
|
65366
|
-
case 1:
|
|
65367
|
-
if (message.fields === $util.emptyObject)
|
|
65368
|
-
message.fields = {};
|
|
65369
|
-
var end2 = reader.uint32() + reader.pos;
|
|
65370
|
-
key = "";
|
|
65371
|
-
value = null;
|
|
65372
|
-
while (reader.pos < end2) {
|
|
65373
|
-
var tag2 = reader.uint32();
|
|
65374
|
-
switch (tag2 >>> 3) {
|
|
65217
|
+
/**
|
|
65218
|
+
* Decodes a ClientFrame message from the specified reader or buffer.
|
|
65219
|
+
* @function decode
|
|
65220
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65221
|
+
* @static
|
|
65222
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65223
|
+
* @param {number} [length] Message length if known beforehand
|
|
65224
|
+
* @returns {replit.goval.api.pid2.ClientFrame} ClientFrame
|
|
65225
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65226
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65227
|
+
*/
|
|
65228
|
+
ClientFrame.decode = function decode(reader, length) {
|
|
65229
|
+
if (!(reader instanceof $Reader))
|
|
65230
|
+
reader = $Reader.create(reader);
|
|
65231
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.ClientFrame();
|
|
65232
|
+
while (reader.pos < end) {
|
|
65233
|
+
var tag = reader.uint32();
|
|
65234
|
+
switch (tag >>> 3) {
|
|
65375
65235
|
case 1:
|
|
65376
|
-
|
|
65236
|
+
message.sessionId = reader.uint32();
|
|
65377
65237
|
break;
|
|
65378
65238
|
case 2:
|
|
65379
|
-
|
|
65239
|
+
message.unaryCall = $root.replit.goval.api.pid2.UnaryCallRequest.decode(reader, reader.uint32());
|
|
65240
|
+
break;
|
|
65241
|
+
case 3:
|
|
65242
|
+
message.streamCall = $root.replit.goval.api.pid2.StreamCallRequest.decode(reader, reader.uint32());
|
|
65243
|
+
break;
|
|
65244
|
+
case 4:
|
|
65245
|
+
message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.decode(reader, reader.uint32());
|
|
65246
|
+
break;
|
|
65247
|
+
case 5:
|
|
65248
|
+
message.streamCancel = $root.replit.goval.api.pid2.StreamCancelRequest.decode(reader, reader.uint32());
|
|
65249
|
+
break;
|
|
65250
|
+
case 6:
|
|
65251
|
+
message.ping = $root.replit.goval.api.pid2.Ping.decode(reader, reader.uint32());
|
|
65380
65252
|
break;
|
|
65381
65253
|
default:
|
|
65382
|
-
reader.skipType(
|
|
65254
|
+
reader.skipType(tag & 7);
|
|
65383
65255
|
break;
|
|
65384
65256
|
}
|
|
65385
65257
|
}
|
|
65386
|
-
message
|
|
65387
|
-
|
|
65388
|
-
default:
|
|
65389
|
-
reader.skipType(tag & 7);
|
|
65390
|
-
break;
|
|
65391
|
-
}
|
|
65392
|
-
}
|
|
65393
|
-
return message;
|
|
65394
|
-
};
|
|
65258
|
+
return message;
|
|
65259
|
+
};
|
|
65395
65260
|
|
|
65396
|
-
|
|
65397
|
-
|
|
65398
|
-
|
|
65399
|
-
|
|
65400
|
-
|
|
65401
|
-
|
|
65402
|
-
|
|
65403
|
-
|
|
65404
|
-
|
|
65405
|
-
|
|
65406
|
-
|
|
65407
|
-
|
|
65408
|
-
|
|
65409
|
-
|
|
65410
|
-
|
|
65261
|
+
/**
|
|
65262
|
+
* Decodes a ClientFrame message from the specified reader or buffer, length delimited.
|
|
65263
|
+
* @function decodeDelimited
|
|
65264
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65265
|
+
* @static
|
|
65266
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65267
|
+
* @returns {replit.goval.api.pid2.ClientFrame} ClientFrame
|
|
65268
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65269
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65270
|
+
*/
|
|
65271
|
+
ClientFrame.decodeDelimited = function decodeDelimited(reader) {
|
|
65272
|
+
if (!(reader instanceof $Reader))
|
|
65273
|
+
reader = new $Reader(reader);
|
|
65274
|
+
return this.decode(reader, reader.uint32());
|
|
65275
|
+
};
|
|
65411
65276
|
|
|
65412
|
-
|
|
65413
|
-
|
|
65414
|
-
|
|
65415
|
-
|
|
65416
|
-
|
|
65417
|
-
|
|
65418
|
-
|
|
65419
|
-
|
|
65420
|
-
|
|
65421
|
-
|
|
65277
|
+
/**
|
|
65278
|
+
* Verifies a ClientFrame message.
|
|
65279
|
+
* @function verify
|
|
65280
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65281
|
+
* @static
|
|
65282
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
65283
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
65284
|
+
*/
|
|
65285
|
+
ClientFrame.verify = function verify(message) {
|
|
65286
|
+
if (typeof message !== "object" || message === null)
|
|
65287
|
+
return "object expected";
|
|
65288
|
+
var properties = {};
|
|
65289
|
+
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
65290
|
+
if (!$util.isInteger(message.sessionId))
|
|
65291
|
+
return "sessionId: integer expected";
|
|
65292
|
+
if (message.unaryCall != null && message.hasOwnProperty("unaryCall")) {
|
|
65293
|
+
properties.body = 1;
|
|
65294
|
+
{
|
|
65295
|
+
var error = $root.replit.goval.api.pid2.UnaryCallRequest.verify(message.unaryCall);
|
|
65296
|
+
if (error)
|
|
65297
|
+
return "unaryCall." + error;
|
|
65298
|
+
}
|
|
65299
|
+
}
|
|
65300
|
+
if (message.streamCall != null && message.hasOwnProperty("streamCall")) {
|
|
65301
|
+
if (properties.body === 1)
|
|
65302
|
+
return "body: multiple values";
|
|
65303
|
+
properties.body = 1;
|
|
65304
|
+
{
|
|
65305
|
+
var error = $root.replit.goval.api.pid2.StreamCallRequest.verify(message.streamCall);
|
|
65306
|
+
if (error)
|
|
65307
|
+
return "streamCall." + error;
|
|
65308
|
+
}
|
|
65309
|
+
}
|
|
65310
|
+
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
65311
|
+
if (properties.body === 1)
|
|
65312
|
+
return "body: multiple values";
|
|
65313
|
+
properties.body = 1;
|
|
65314
|
+
{
|
|
65315
|
+
var error = $root.replit.goval.api.pid2.StreamContinuationRequest.verify(message.streamContinuation);
|
|
65316
|
+
if (error)
|
|
65317
|
+
return "streamContinuation." + error;
|
|
65318
|
+
}
|
|
65319
|
+
}
|
|
65320
|
+
if (message.streamCancel != null && message.hasOwnProperty("streamCancel")) {
|
|
65321
|
+
if (properties.body === 1)
|
|
65322
|
+
return "body: multiple values";
|
|
65323
|
+
properties.body = 1;
|
|
65324
|
+
{
|
|
65325
|
+
var error = $root.replit.goval.api.pid2.StreamCancelRequest.verify(message.streamCancel);
|
|
65326
|
+
if (error)
|
|
65327
|
+
return "streamCancel." + error;
|
|
65328
|
+
}
|
|
65329
|
+
}
|
|
65330
|
+
if (message.ping != null && message.hasOwnProperty("ping")) {
|
|
65331
|
+
if (properties.body === 1)
|
|
65332
|
+
return "body: multiple values";
|
|
65333
|
+
properties.body = 1;
|
|
65334
|
+
{
|
|
65335
|
+
var error = $root.replit.goval.api.pid2.Ping.verify(message.ping);
|
|
65336
|
+
if (error)
|
|
65337
|
+
return "ping." + error;
|
|
65338
|
+
}
|
|
65339
|
+
}
|
|
65340
|
+
return null;
|
|
65341
|
+
};
|
|
65342
|
+
|
|
65343
|
+
/**
|
|
65344
|
+
* Creates a ClientFrame message from a plain object. Also converts values to their respective internal types.
|
|
65345
|
+
* @function fromObject
|
|
65346
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65347
|
+
* @static
|
|
65348
|
+
* @param {Object.<string,*>} object Plain object
|
|
65349
|
+
* @returns {replit.goval.api.pid2.ClientFrame} ClientFrame
|
|
65350
|
+
*/
|
|
65351
|
+
ClientFrame.fromObject = function fromObject(object) {
|
|
65352
|
+
if (object instanceof $root.replit.goval.api.pid2.ClientFrame)
|
|
65353
|
+
return object;
|
|
65354
|
+
var message = new $root.replit.goval.api.pid2.ClientFrame();
|
|
65355
|
+
if (object.sessionId != null)
|
|
65356
|
+
message.sessionId = object.sessionId >>> 0;
|
|
65357
|
+
if (object.unaryCall != null) {
|
|
65358
|
+
if (typeof object.unaryCall !== "object")
|
|
65359
|
+
throw TypeError(".replit.goval.api.pid2.ClientFrame.unaryCall: object expected");
|
|
65360
|
+
message.unaryCall = $root.replit.goval.api.pid2.UnaryCallRequest.fromObject(object.unaryCall);
|
|
65361
|
+
}
|
|
65362
|
+
if (object.streamCall != null) {
|
|
65363
|
+
if (typeof object.streamCall !== "object")
|
|
65364
|
+
throw TypeError(".replit.goval.api.pid2.ClientFrame.streamCall: object expected");
|
|
65365
|
+
message.streamCall = $root.replit.goval.api.pid2.StreamCallRequest.fromObject(object.streamCall);
|
|
65366
|
+
}
|
|
65367
|
+
if (object.streamContinuation != null) {
|
|
65368
|
+
if (typeof object.streamContinuation !== "object")
|
|
65369
|
+
throw TypeError(".replit.goval.api.pid2.ClientFrame.streamContinuation: object expected");
|
|
65370
|
+
message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.fromObject(object.streamContinuation);
|
|
65371
|
+
}
|
|
65372
|
+
if (object.streamCancel != null) {
|
|
65373
|
+
if (typeof object.streamCancel !== "object")
|
|
65374
|
+
throw TypeError(".replit.goval.api.pid2.ClientFrame.streamCancel: object expected");
|
|
65375
|
+
message.streamCancel = $root.replit.goval.api.pid2.StreamCancelRequest.fromObject(object.streamCancel);
|
|
65376
|
+
}
|
|
65377
|
+
if (object.ping != null) {
|
|
65378
|
+
if (typeof object.ping !== "object")
|
|
65379
|
+
throw TypeError(".replit.goval.api.pid2.ClientFrame.ping: object expected");
|
|
65380
|
+
message.ping = $root.replit.goval.api.pid2.Ping.fromObject(object.ping);
|
|
65381
|
+
}
|
|
65382
|
+
return message;
|
|
65383
|
+
};
|
|
65384
|
+
|
|
65385
|
+
/**
|
|
65386
|
+
* Creates a plain object from a ClientFrame message. Also converts values to other types if specified.
|
|
65387
|
+
* @function toObject
|
|
65388
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65389
|
+
* @static
|
|
65390
|
+
* @param {replit.goval.api.pid2.ClientFrame} message ClientFrame
|
|
65391
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
65392
|
+
* @returns {Object.<string,*>} Plain object
|
|
65393
|
+
*/
|
|
65394
|
+
ClientFrame.toObject = function toObject(message, options) {
|
|
65395
|
+
if (!options)
|
|
65396
|
+
options = {};
|
|
65397
|
+
var object = {};
|
|
65398
|
+
if (options.defaults)
|
|
65399
|
+
object.sessionId = 0;
|
|
65400
|
+
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
65401
|
+
object.sessionId = message.sessionId;
|
|
65402
|
+
if (message.unaryCall != null && message.hasOwnProperty("unaryCall")) {
|
|
65403
|
+
object.unaryCall = $root.replit.goval.api.pid2.UnaryCallRequest.toObject(message.unaryCall, options);
|
|
65404
|
+
if (options.oneofs)
|
|
65405
|
+
object.body = "unaryCall";
|
|
65406
|
+
}
|
|
65407
|
+
if (message.streamCall != null && message.hasOwnProperty("streamCall")) {
|
|
65408
|
+
object.streamCall = $root.replit.goval.api.pid2.StreamCallRequest.toObject(message.streamCall, options);
|
|
65409
|
+
if (options.oneofs)
|
|
65410
|
+
object.body = "streamCall";
|
|
65411
|
+
}
|
|
65412
|
+
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
65413
|
+
object.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.toObject(message.streamContinuation, options);
|
|
65414
|
+
if (options.oneofs)
|
|
65415
|
+
object.body = "streamContinuation";
|
|
65416
|
+
}
|
|
65417
|
+
if (message.streamCancel != null && message.hasOwnProperty("streamCancel")) {
|
|
65418
|
+
object.streamCancel = $root.replit.goval.api.pid2.StreamCancelRequest.toObject(message.streamCancel, options);
|
|
65419
|
+
if (options.oneofs)
|
|
65420
|
+
object.body = "streamCancel";
|
|
65421
|
+
}
|
|
65422
|
+
if (message.ping != null && message.hasOwnProperty("ping")) {
|
|
65423
|
+
object.ping = $root.replit.goval.api.pid2.Ping.toObject(message.ping, options);
|
|
65424
|
+
if (options.oneofs)
|
|
65425
|
+
object.body = "ping";
|
|
65426
|
+
}
|
|
65427
|
+
return object;
|
|
65428
|
+
};
|
|
65429
|
+
|
|
65430
|
+
/**
|
|
65431
|
+
* Converts this ClientFrame to JSON.
|
|
65432
|
+
* @function toJSON
|
|
65433
|
+
* @memberof replit.goval.api.pid2.ClientFrame
|
|
65434
|
+
* @instance
|
|
65435
|
+
* @returns {Object.<string,*>} JSON object
|
|
65436
|
+
*/
|
|
65437
|
+
ClientFrame.prototype.toJSON = function toJSON() {
|
|
65438
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
65439
|
+
};
|
|
65440
|
+
|
|
65441
|
+
return ClientFrame;
|
|
65442
|
+
})();
|
|
65443
|
+
|
|
65444
|
+
pid2.ServerFrame = (function() {
|
|
65445
|
+
|
|
65446
|
+
/**
|
|
65447
|
+
* Properties of a ServerFrame.
|
|
65448
|
+
* @memberof replit.goval.api.pid2
|
|
65449
|
+
* @interface IServerFrame
|
|
65450
|
+
* @property {number|null} [sessionId] ServerFrame sessionId
|
|
65451
|
+
* @property {replit.goval.api.pid2.UnaryCallResponse|replit.goval.api.pid2.IUnaryCallResponse|null} [unaryCall] ServerFrame unaryCall
|
|
65452
|
+
* @property {replit.goval.api.pid2.StreamContinuationResponse|replit.goval.api.pid2.IStreamContinuationResponse|null} [streamContinuation] ServerFrame streamContinuation
|
|
65453
|
+
* @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [goaway] ServerFrame goaway
|
|
65454
|
+
* @property {replit.goval.api.pid2.Ping|replit.goval.api.pid2.IPing|null} [ping] ServerFrame ping
|
|
65455
|
+
*/
|
|
65456
|
+
|
|
65457
|
+
/**
|
|
65458
|
+
* Constructs a new ServerFrame.
|
|
65459
|
+
* @memberof replit.goval.api.pid2
|
|
65460
|
+
* @classdesc Represents a ServerFrame.
|
|
65461
|
+
* @constructor
|
|
65462
|
+
* @param {replit.goval.api.pid2.IServerFrame=} [properties] Properties to set
|
|
65463
|
+
*/
|
|
65464
|
+
function ServerFrame(properties) {
|
|
65465
|
+
if (properties)
|
|
65466
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65467
|
+
if (properties[keys[i]] != null)
|
|
65468
|
+
this[keys[i]] = properties[keys[i]];
|
|
65469
|
+
}
|
|
65470
|
+
|
|
65471
|
+
/**
|
|
65472
|
+
* ServerFrame sessionId.
|
|
65473
|
+
* @member {number} sessionId
|
|
65474
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65475
|
+
* @instance
|
|
65476
|
+
*/
|
|
65477
|
+
ServerFrame.prototype.sessionId = 0;
|
|
65478
|
+
|
|
65479
|
+
/**
|
|
65480
|
+
* ServerFrame unaryCall.
|
|
65481
|
+
* @member {replit.goval.api.pid2.UnaryCallResponse|null|undefined} unaryCall
|
|
65482
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65483
|
+
* @instance
|
|
65484
|
+
*/
|
|
65485
|
+
ServerFrame.prototype.unaryCall = null;
|
|
65486
|
+
|
|
65487
|
+
/**
|
|
65488
|
+
* ServerFrame streamContinuation.
|
|
65489
|
+
* @member {replit.goval.api.pid2.StreamContinuationResponse|null|undefined} streamContinuation
|
|
65490
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65491
|
+
* @instance
|
|
65492
|
+
*/
|
|
65493
|
+
ServerFrame.prototype.streamContinuation = null;
|
|
65494
|
+
|
|
65495
|
+
/**
|
|
65496
|
+
* ServerFrame goaway.
|
|
65497
|
+
* @member {replit.goval.api.pid2.Error|null|undefined} goaway
|
|
65498
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65499
|
+
* @instance
|
|
65500
|
+
*/
|
|
65501
|
+
ServerFrame.prototype.goaway = null;
|
|
65502
|
+
|
|
65503
|
+
/**
|
|
65504
|
+
* ServerFrame ping.
|
|
65505
|
+
* @member {replit.goval.api.pid2.Ping|null|undefined} ping
|
|
65506
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65507
|
+
* @instance
|
|
65508
|
+
*/
|
|
65509
|
+
ServerFrame.prototype.ping = null;
|
|
65510
|
+
|
|
65511
|
+
// OneOf field names bound to virtual getters and setters
|
|
65512
|
+
var $oneOfFields;
|
|
65513
|
+
|
|
65514
|
+
/**
|
|
65515
|
+
* ServerFrame body.
|
|
65516
|
+
* @member {"unaryCall"|"streamContinuation"|"goaway"|"ping"|undefined} body
|
|
65517
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65518
|
+
* @instance
|
|
65519
|
+
*/
|
|
65520
|
+
Object.defineProperty(ServerFrame.prototype, "body", {
|
|
65521
|
+
get: $util.oneOfGetter($oneOfFields = ["unaryCall", "streamContinuation", "goaway", "ping"]),
|
|
65522
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
65523
|
+
});
|
|
65524
|
+
|
|
65525
|
+
/**
|
|
65526
|
+
* Creates a new ServerFrame instance using the specified properties.
|
|
65527
|
+
* @function create
|
|
65528
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65529
|
+
* @static
|
|
65530
|
+
* @param {replit.goval.api.pid2.IServerFrame=} [properties] Properties to set
|
|
65531
|
+
* @returns {replit.goval.api.pid2.ServerFrame} ServerFrame instance
|
|
65532
|
+
*/
|
|
65533
|
+
ServerFrame.create = function create(properties) {
|
|
65534
|
+
return ServerFrame.fromObject(properties);
|
|
65535
|
+
};
|
|
65536
|
+
|
|
65537
|
+
/**
|
|
65538
|
+
* Encodes the specified ServerFrame message. Does not implicitly {@link replit.goval.api.pid2.ServerFrame.verify|verify} messages.
|
|
65539
|
+
* @function encode
|
|
65540
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65541
|
+
* @static
|
|
65542
|
+
* @param {replit.goval.api.pid2.ServerFrame} message ServerFrame message or plain object to encode
|
|
65543
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65544
|
+
* @returns {$protobuf.Writer} Writer
|
|
65545
|
+
*/
|
|
65546
|
+
ServerFrame.encode = function encode(message, writer) {
|
|
65547
|
+
if (!writer)
|
|
65548
|
+
writer = $Writer.create();
|
|
65549
|
+
if (message.sessionId != null && Object.hasOwnProperty.call(message, "sessionId"))
|
|
65550
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sessionId);
|
|
65551
|
+
if (message.unaryCall != null && Object.hasOwnProperty.call(message, "unaryCall"))
|
|
65552
|
+
$root.replit.goval.api.pid2.UnaryCallResponse.encode(message.unaryCall, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
65553
|
+
if (message.streamContinuation != null && Object.hasOwnProperty.call(message, "streamContinuation"))
|
|
65554
|
+
$root.replit.goval.api.pid2.StreamContinuationResponse.encode(message.streamContinuation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
65555
|
+
if (message.goaway != null && Object.hasOwnProperty.call(message, "goaway"))
|
|
65556
|
+
$root.replit.goval.api.pid2.Error.encode(message.goaway, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
65557
|
+
if (message.ping != null && Object.hasOwnProperty.call(message, "ping"))
|
|
65558
|
+
$root.replit.goval.api.pid2.Ping.encode(message.ping, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
65559
|
+
return writer;
|
|
65560
|
+
};
|
|
65561
|
+
|
|
65562
|
+
/**
|
|
65563
|
+
* Encodes the specified ServerFrame message, length delimited. Does not implicitly {@link replit.goval.api.pid2.ServerFrame.verify|verify} messages.
|
|
65564
|
+
* @function encodeDelimited
|
|
65565
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65566
|
+
* @static
|
|
65567
|
+
* @param {replit.goval.api.pid2.ServerFrame} message ServerFrame message or plain object to encode
|
|
65568
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65569
|
+
* @returns {$protobuf.Writer} Writer
|
|
65570
|
+
*/
|
|
65571
|
+
ServerFrame.encodeDelimited = function encodeDelimited(message, writer) {
|
|
65572
|
+
return this.encode(message, writer).ldelim();
|
|
65573
|
+
};
|
|
65574
|
+
|
|
65575
|
+
/**
|
|
65576
|
+
* Decodes a ServerFrame message from the specified reader or buffer.
|
|
65577
|
+
* @function decode
|
|
65578
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65579
|
+
* @static
|
|
65580
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65581
|
+
* @param {number} [length] Message length if known beforehand
|
|
65582
|
+
* @returns {replit.goval.api.pid2.ServerFrame} ServerFrame
|
|
65583
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65584
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65585
|
+
*/
|
|
65586
|
+
ServerFrame.decode = function decode(reader, length) {
|
|
65587
|
+
if (!(reader instanceof $Reader))
|
|
65588
|
+
reader = $Reader.create(reader);
|
|
65589
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.ServerFrame();
|
|
65590
|
+
while (reader.pos < end) {
|
|
65591
|
+
var tag = reader.uint32();
|
|
65592
|
+
switch (tag >>> 3) {
|
|
65593
|
+
case 1:
|
|
65594
|
+
message.sessionId = reader.uint32();
|
|
65595
|
+
break;
|
|
65596
|
+
case 2:
|
|
65597
|
+
message.unaryCall = $root.replit.goval.api.pid2.UnaryCallResponse.decode(reader, reader.uint32());
|
|
65598
|
+
break;
|
|
65599
|
+
case 3:
|
|
65600
|
+
message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationResponse.decode(reader, reader.uint32());
|
|
65601
|
+
break;
|
|
65602
|
+
case 4:
|
|
65603
|
+
message.goaway = $root.replit.goval.api.pid2.Error.decode(reader, reader.uint32());
|
|
65604
|
+
break;
|
|
65605
|
+
case 5:
|
|
65606
|
+
message.ping = $root.replit.goval.api.pid2.Ping.decode(reader, reader.uint32());
|
|
65607
|
+
break;
|
|
65608
|
+
default:
|
|
65609
|
+
reader.skipType(tag & 7);
|
|
65610
|
+
break;
|
|
65611
|
+
}
|
|
65612
|
+
}
|
|
65613
|
+
return message;
|
|
65614
|
+
};
|
|
65615
|
+
|
|
65616
|
+
/**
|
|
65617
|
+
* Decodes a ServerFrame message from the specified reader or buffer, length delimited.
|
|
65618
|
+
* @function decodeDelimited
|
|
65619
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65620
|
+
* @static
|
|
65621
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65622
|
+
* @returns {replit.goval.api.pid2.ServerFrame} ServerFrame
|
|
65623
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65624
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65625
|
+
*/
|
|
65626
|
+
ServerFrame.decodeDelimited = function decodeDelimited(reader) {
|
|
65627
|
+
if (!(reader instanceof $Reader))
|
|
65628
|
+
reader = new $Reader(reader);
|
|
65629
|
+
return this.decode(reader, reader.uint32());
|
|
65630
|
+
};
|
|
65631
|
+
|
|
65632
|
+
/**
|
|
65633
|
+
* Verifies a ServerFrame message.
|
|
65634
|
+
* @function verify
|
|
65635
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65636
|
+
* @static
|
|
65637
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
65638
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
65639
|
+
*/
|
|
65640
|
+
ServerFrame.verify = function verify(message) {
|
|
65641
|
+
if (typeof message !== "object" || message === null)
|
|
65642
|
+
return "object expected";
|
|
65643
|
+
var properties = {};
|
|
65644
|
+
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
65645
|
+
if (!$util.isInteger(message.sessionId))
|
|
65646
|
+
return "sessionId: integer expected";
|
|
65647
|
+
if (message.unaryCall != null && message.hasOwnProperty("unaryCall")) {
|
|
65648
|
+
properties.body = 1;
|
|
65649
|
+
{
|
|
65650
|
+
var error = $root.replit.goval.api.pid2.UnaryCallResponse.verify(message.unaryCall);
|
|
65651
|
+
if (error)
|
|
65652
|
+
return "unaryCall." + error;
|
|
65653
|
+
}
|
|
65654
|
+
}
|
|
65655
|
+
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
65656
|
+
if (properties.body === 1)
|
|
65657
|
+
return "body: multiple values";
|
|
65658
|
+
properties.body = 1;
|
|
65659
|
+
{
|
|
65660
|
+
var error = $root.replit.goval.api.pid2.StreamContinuationResponse.verify(message.streamContinuation);
|
|
65661
|
+
if (error)
|
|
65662
|
+
return "streamContinuation." + error;
|
|
65663
|
+
}
|
|
65664
|
+
}
|
|
65665
|
+
if (message.goaway != null && message.hasOwnProperty("goaway")) {
|
|
65666
|
+
if (properties.body === 1)
|
|
65667
|
+
return "body: multiple values";
|
|
65668
|
+
properties.body = 1;
|
|
65669
|
+
{
|
|
65670
|
+
var error = $root.replit.goval.api.pid2.Error.verify(message.goaway);
|
|
65671
|
+
if (error)
|
|
65672
|
+
return "goaway." + error;
|
|
65673
|
+
}
|
|
65674
|
+
}
|
|
65675
|
+
if (message.ping != null && message.hasOwnProperty("ping")) {
|
|
65676
|
+
if (properties.body === 1)
|
|
65677
|
+
return "body: multiple values";
|
|
65678
|
+
properties.body = 1;
|
|
65679
|
+
{
|
|
65680
|
+
var error = $root.replit.goval.api.pid2.Ping.verify(message.ping);
|
|
65681
|
+
if (error)
|
|
65682
|
+
return "ping." + error;
|
|
65683
|
+
}
|
|
65684
|
+
}
|
|
65685
|
+
return null;
|
|
65686
|
+
};
|
|
65687
|
+
|
|
65688
|
+
/**
|
|
65689
|
+
* Creates a ServerFrame message from a plain object. Also converts values to their respective internal types.
|
|
65690
|
+
* @function fromObject
|
|
65691
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65692
|
+
* @static
|
|
65693
|
+
* @param {Object.<string,*>} object Plain object
|
|
65694
|
+
* @returns {replit.goval.api.pid2.ServerFrame} ServerFrame
|
|
65695
|
+
*/
|
|
65696
|
+
ServerFrame.fromObject = function fromObject(object) {
|
|
65697
|
+
if (object instanceof $root.replit.goval.api.pid2.ServerFrame)
|
|
65698
|
+
return object;
|
|
65699
|
+
var message = new $root.replit.goval.api.pid2.ServerFrame();
|
|
65700
|
+
if (object.sessionId != null)
|
|
65701
|
+
message.sessionId = object.sessionId >>> 0;
|
|
65702
|
+
if (object.unaryCall != null) {
|
|
65703
|
+
if (typeof object.unaryCall !== "object")
|
|
65704
|
+
throw TypeError(".replit.goval.api.pid2.ServerFrame.unaryCall: object expected");
|
|
65705
|
+
message.unaryCall = $root.replit.goval.api.pid2.UnaryCallResponse.fromObject(object.unaryCall);
|
|
65706
|
+
}
|
|
65707
|
+
if (object.streamContinuation != null) {
|
|
65708
|
+
if (typeof object.streamContinuation !== "object")
|
|
65709
|
+
throw TypeError(".replit.goval.api.pid2.ServerFrame.streamContinuation: object expected");
|
|
65710
|
+
message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationResponse.fromObject(object.streamContinuation);
|
|
65711
|
+
}
|
|
65712
|
+
if (object.goaway != null) {
|
|
65713
|
+
if (typeof object.goaway !== "object")
|
|
65714
|
+
throw TypeError(".replit.goval.api.pid2.ServerFrame.goaway: object expected");
|
|
65715
|
+
message.goaway = $root.replit.goval.api.pid2.Error.fromObject(object.goaway);
|
|
65716
|
+
}
|
|
65717
|
+
if (object.ping != null) {
|
|
65718
|
+
if (typeof object.ping !== "object")
|
|
65719
|
+
throw TypeError(".replit.goval.api.pid2.ServerFrame.ping: object expected");
|
|
65720
|
+
message.ping = $root.replit.goval.api.pid2.Ping.fromObject(object.ping);
|
|
65721
|
+
}
|
|
65722
|
+
return message;
|
|
65723
|
+
};
|
|
65724
|
+
|
|
65725
|
+
/**
|
|
65726
|
+
* Creates a plain object from a ServerFrame message. Also converts values to other types if specified.
|
|
65727
|
+
* @function toObject
|
|
65728
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65729
|
+
* @static
|
|
65730
|
+
* @param {replit.goval.api.pid2.ServerFrame} message ServerFrame
|
|
65731
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
65732
|
+
* @returns {Object.<string,*>} Plain object
|
|
65733
|
+
*/
|
|
65734
|
+
ServerFrame.toObject = function toObject(message, options) {
|
|
65735
|
+
if (!options)
|
|
65736
|
+
options = {};
|
|
65737
|
+
var object = {};
|
|
65738
|
+
if (options.defaults)
|
|
65739
|
+
object.sessionId = 0;
|
|
65740
|
+
if (message.sessionId != null && message.hasOwnProperty("sessionId"))
|
|
65741
|
+
object.sessionId = message.sessionId;
|
|
65742
|
+
if (message.unaryCall != null && message.hasOwnProperty("unaryCall")) {
|
|
65743
|
+
object.unaryCall = $root.replit.goval.api.pid2.UnaryCallResponse.toObject(message.unaryCall, options);
|
|
65744
|
+
if (options.oneofs)
|
|
65745
|
+
object.body = "unaryCall";
|
|
65746
|
+
}
|
|
65747
|
+
if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
|
|
65748
|
+
object.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationResponse.toObject(message.streamContinuation, options);
|
|
65749
|
+
if (options.oneofs)
|
|
65750
|
+
object.body = "streamContinuation";
|
|
65751
|
+
}
|
|
65752
|
+
if (message.goaway != null && message.hasOwnProperty("goaway")) {
|
|
65753
|
+
object.goaway = $root.replit.goval.api.pid2.Error.toObject(message.goaway, options);
|
|
65754
|
+
if (options.oneofs)
|
|
65755
|
+
object.body = "goaway";
|
|
65756
|
+
}
|
|
65757
|
+
if (message.ping != null && message.hasOwnProperty("ping")) {
|
|
65758
|
+
object.ping = $root.replit.goval.api.pid2.Ping.toObject(message.ping, options);
|
|
65759
|
+
if (options.oneofs)
|
|
65760
|
+
object.body = "ping";
|
|
65761
|
+
}
|
|
65762
|
+
return object;
|
|
65763
|
+
};
|
|
65764
|
+
|
|
65765
|
+
/**
|
|
65766
|
+
* Converts this ServerFrame to JSON.
|
|
65767
|
+
* @function toJSON
|
|
65768
|
+
* @memberof replit.goval.api.pid2.ServerFrame
|
|
65769
|
+
* @instance
|
|
65770
|
+
* @returns {Object.<string,*>} JSON object
|
|
65771
|
+
*/
|
|
65772
|
+
ServerFrame.prototype.toJSON = function toJSON() {
|
|
65773
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
65774
|
+
};
|
|
65775
|
+
|
|
65776
|
+
return ServerFrame;
|
|
65777
|
+
})();
|
|
65778
|
+
|
|
65779
|
+
pid2.UnaryCallRequest = (function() {
|
|
65780
|
+
|
|
65781
|
+
/**
|
|
65782
|
+
* Properties of an UnaryCallRequest.
|
|
65783
|
+
* @memberof replit.goval.api.pid2
|
|
65784
|
+
* @interface IUnaryCallRequest
|
|
65785
|
+
* @property {number|null} [streamId] UnaryCallRequest streamId
|
|
65786
|
+
* @property {string|null} [service] UnaryCallRequest service
|
|
65787
|
+
* @property {string|null} [method] UnaryCallRequest method
|
|
65788
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [request] UnaryCallRequest request
|
|
65789
|
+
*/
|
|
65790
|
+
|
|
65791
|
+
/**
|
|
65792
|
+
* Constructs a new UnaryCallRequest.
|
|
65793
|
+
* @memberof replit.goval.api.pid2
|
|
65794
|
+
* @classdesc Represents an UnaryCallRequest.
|
|
65795
|
+
* @constructor
|
|
65796
|
+
* @param {replit.goval.api.pid2.IUnaryCallRequest=} [properties] Properties to set
|
|
65797
|
+
*/
|
|
65798
|
+
function UnaryCallRequest(properties) {
|
|
65799
|
+
if (properties)
|
|
65800
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65801
|
+
if (properties[keys[i]] != null)
|
|
65802
|
+
this[keys[i]] = properties[keys[i]];
|
|
65803
|
+
}
|
|
65804
|
+
|
|
65805
|
+
/**
|
|
65806
|
+
* UnaryCallRequest streamId.
|
|
65807
|
+
* @member {number} streamId
|
|
65808
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65809
|
+
* @instance
|
|
65810
|
+
*/
|
|
65811
|
+
UnaryCallRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65812
|
+
|
|
65813
|
+
/**
|
|
65814
|
+
* UnaryCallRequest service.
|
|
65815
|
+
* @member {string} service
|
|
65816
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65817
|
+
* @instance
|
|
65818
|
+
*/
|
|
65819
|
+
UnaryCallRequest.prototype.service = "";
|
|
65820
|
+
|
|
65821
|
+
/**
|
|
65822
|
+
* UnaryCallRequest method.
|
|
65823
|
+
* @member {string} method
|
|
65824
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65825
|
+
* @instance
|
|
65826
|
+
*/
|
|
65827
|
+
UnaryCallRequest.prototype.method = "";
|
|
65828
|
+
|
|
65829
|
+
/**
|
|
65830
|
+
* UnaryCallRequest request.
|
|
65831
|
+
* @member {google.protobuf.Any|null|undefined} request
|
|
65832
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65833
|
+
* @instance
|
|
65834
|
+
*/
|
|
65835
|
+
UnaryCallRequest.prototype.request = null;
|
|
65836
|
+
|
|
65837
|
+
/**
|
|
65838
|
+
* Creates a new UnaryCallRequest instance using the specified properties.
|
|
65839
|
+
* @function create
|
|
65840
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65841
|
+
* @static
|
|
65842
|
+
* @param {replit.goval.api.pid2.IUnaryCallRequest=} [properties] Properties to set
|
|
65843
|
+
* @returns {replit.goval.api.pid2.UnaryCallRequest} UnaryCallRequest instance
|
|
65844
|
+
*/
|
|
65845
|
+
UnaryCallRequest.create = function create(properties) {
|
|
65846
|
+
return UnaryCallRequest.fromObject(properties);
|
|
65847
|
+
};
|
|
65848
|
+
|
|
65849
|
+
/**
|
|
65850
|
+
* Encodes the specified UnaryCallRequest message. Does not implicitly {@link replit.goval.api.pid2.UnaryCallRequest.verify|verify} messages.
|
|
65851
|
+
* @function encode
|
|
65852
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65853
|
+
* @static
|
|
65854
|
+
* @param {replit.goval.api.pid2.UnaryCallRequest} message UnaryCallRequest message or plain object to encode
|
|
65855
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65856
|
+
* @returns {$protobuf.Writer} Writer
|
|
65857
|
+
*/
|
|
65858
|
+
UnaryCallRequest.encode = function encode(message, writer) {
|
|
65859
|
+
if (!writer)
|
|
65860
|
+
writer = $Writer.create();
|
|
65861
|
+
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
65862
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
65863
|
+
if (message.service != null && Object.hasOwnProperty.call(message, "service"))
|
|
65864
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.service);
|
|
65865
|
+
if (message.method != null && Object.hasOwnProperty.call(message, "method"))
|
|
65866
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.method);
|
|
65867
|
+
if (message.request != null && Object.hasOwnProperty.call(message, "request"))
|
|
65868
|
+
$root.google.protobuf.Any.encode(message.request, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
65869
|
+
return writer;
|
|
65870
|
+
};
|
|
65871
|
+
|
|
65872
|
+
/**
|
|
65873
|
+
* Encodes the specified UnaryCallRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.UnaryCallRequest.verify|verify} messages.
|
|
65874
|
+
* @function encodeDelimited
|
|
65875
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65876
|
+
* @static
|
|
65877
|
+
* @param {replit.goval.api.pid2.UnaryCallRequest} message UnaryCallRequest message or plain object to encode
|
|
65878
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65879
|
+
* @returns {$protobuf.Writer} Writer
|
|
65880
|
+
*/
|
|
65881
|
+
UnaryCallRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
65882
|
+
return this.encode(message, writer).ldelim();
|
|
65883
|
+
};
|
|
65884
|
+
|
|
65885
|
+
/**
|
|
65886
|
+
* Decodes an UnaryCallRequest message from the specified reader or buffer.
|
|
65887
|
+
* @function decode
|
|
65888
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65889
|
+
* @static
|
|
65890
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65891
|
+
* @param {number} [length] Message length if known beforehand
|
|
65892
|
+
* @returns {replit.goval.api.pid2.UnaryCallRequest} UnaryCallRequest
|
|
65893
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65894
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65895
|
+
*/
|
|
65896
|
+
UnaryCallRequest.decode = function decode(reader, length) {
|
|
65897
|
+
if (!(reader instanceof $Reader))
|
|
65898
|
+
reader = $Reader.create(reader);
|
|
65899
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.UnaryCallRequest();
|
|
65900
|
+
while (reader.pos < end) {
|
|
65901
|
+
var tag = reader.uint32();
|
|
65902
|
+
switch (tag >>> 3) {
|
|
65903
|
+
case 1:
|
|
65904
|
+
message.streamId = reader.uint64();
|
|
65905
|
+
break;
|
|
65906
|
+
case 2:
|
|
65907
|
+
message.service = reader.string();
|
|
65908
|
+
break;
|
|
65909
|
+
case 3:
|
|
65910
|
+
message.method = reader.string();
|
|
65911
|
+
break;
|
|
65912
|
+
case 4:
|
|
65913
|
+
message.request = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
65914
|
+
break;
|
|
65915
|
+
default:
|
|
65916
|
+
reader.skipType(tag & 7);
|
|
65917
|
+
break;
|
|
65918
|
+
}
|
|
65919
|
+
}
|
|
65920
|
+
return message;
|
|
65921
|
+
};
|
|
65922
|
+
|
|
65923
|
+
/**
|
|
65924
|
+
* Decodes an UnaryCallRequest message from the specified reader or buffer, length delimited.
|
|
65925
|
+
* @function decodeDelimited
|
|
65926
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65927
|
+
* @static
|
|
65928
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65929
|
+
* @returns {replit.goval.api.pid2.UnaryCallRequest} UnaryCallRequest
|
|
65930
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65931
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65932
|
+
*/
|
|
65933
|
+
UnaryCallRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
65934
|
+
if (!(reader instanceof $Reader))
|
|
65935
|
+
reader = new $Reader(reader);
|
|
65936
|
+
return this.decode(reader, reader.uint32());
|
|
65937
|
+
};
|
|
65938
|
+
|
|
65939
|
+
/**
|
|
65940
|
+
* Verifies an UnaryCallRequest message.
|
|
65941
|
+
* @function verify
|
|
65942
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65943
|
+
* @static
|
|
65944
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
65945
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
65946
|
+
*/
|
|
65947
|
+
UnaryCallRequest.verify = function verify(message) {
|
|
65948
|
+
if (typeof message !== "object" || message === null)
|
|
65949
|
+
return "object expected";
|
|
65950
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
65951
|
+
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
65952
|
+
return "streamId: integer|Long expected";
|
|
65953
|
+
if (message.service != null && message.hasOwnProperty("service"))
|
|
65954
|
+
if (!$util.isString(message.service))
|
|
65955
|
+
return "service: string expected";
|
|
65956
|
+
if (message.method != null && message.hasOwnProperty("method"))
|
|
65957
|
+
if (!$util.isString(message.method))
|
|
65958
|
+
return "method: string expected";
|
|
65959
|
+
if (message.request != null && message.hasOwnProperty("request")) {
|
|
65960
|
+
var error = $root.google.protobuf.Any.verify(message.request);
|
|
65961
|
+
if (error)
|
|
65962
|
+
return "request." + error;
|
|
65963
|
+
}
|
|
65964
|
+
return null;
|
|
65965
|
+
};
|
|
65966
|
+
|
|
65967
|
+
/**
|
|
65968
|
+
* Creates an UnaryCallRequest message from a plain object. Also converts values to their respective internal types.
|
|
65969
|
+
* @function fromObject
|
|
65970
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
65971
|
+
* @static
|
|
65972
|
+
* @param {Object.<string,*>} object Plain object
|
|
65973
|
+
* @returns {replit.goval.api.pid2.UnaryCallRequest} UnaryCallRequest
|
|
65974
|
+
*/
|
|
65975
|
+
UnaryCallRequest.fromObject = function fromObject(object) {
|
|
65976
|
+
if (object instanceof $root.replit.goval.api.pid2.UnaryCallRequest)
|
|
65977
|
+
return object;
|
|
65978
|
+
var message = new $root.replit.goval.api.pid2.UnaryCallRequest();
|
|
65979
|
+
if (object.streamId != null)
|
|
65980
|
+
if ($util.Long)
|
|
65981
|
+
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
65982
|
+
else if (typeof object.streamId === "string")
|
|
65983
|
+
message.streamId = parseInt(object.streamId, 10);
|
|
65984
|
+
else if (typeof object.streamId === "number")
|
|
65985
|
+
message.streamId = object.streamId;
|
|
65986
|
+
else if (typeof object.streamId === "object")
|
|
65987
|
+
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
65988
|
+
if (object.service != null)
|
|
65989
|
+
message.service = String(object.service);
|
|
65990
|
+
if (object.method != null)
|
|
65991
|
+
message.method = String(object.method);
|
|
65992
|
+
if (object.request != null) {
|
|
65993
|
+
if (typeof object.request !== "object")
|
|
65994
|
+
throw TypeError(".replit.goval.api.pid2.UnaryCallRequest.request: object expected");
|
|
65995
|
+
message.request = $root.google.protobuf.Any.fromObject(object.request);
|
|
65996
|
+
}
|
|
65997
|
+
return message;
|
|
65998
|
+
};
|
|
65999
|
+
|
|
66000
|
+
/**
|
|
66001
|
+
* Creates a plain object from an UnaryCallRequest message. Also converts values to other types if specified.
|
|
66002
|
+
* @function toObject
|
|
66003
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
66004
|
+
* @static
|
|
66005
|
+
* @param {replit.goval.api.pid2.UnaryCallRequest} message UnaryCallRequest
|
|
66006
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66007
|
+
* @returns {Object.<string,*>} Plain object
|
|
66008
|
+
*/
|
|
66009
|
+
UnaryCallRequest.toObject = function toObject(message, options) {
|
|
66010
|
+
if (!options)
|
|
66011
|
+
options = {};
|
|
66012
|
+
var object = {};
|
|
66013
|
+
if (options.defaults) {
|
|
66014
|
+
if ($util.Long) {
|
|
66015
|
+
var long = new $util.Long(0, 0, true);
|
|
66016
|
+
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66017
|
+
} else
|
|
66018
|
+
object.streamId = options.longs === String ? "0" : 0;
|
|
66019
|
+
object.service = "";
|
|
66020
|
+
object.method = "";
|
|
66021
|
+
object.request = null;
|
|
66022
|
+
}
|
|
66023
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66024
|
+
if (typeof message.streamId === "number")
|
|
66025
|
+
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
66026
|
+
else
|
|
66027
|
+
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
66028
|
+
if (message.service != null && message.hasOwnProperty("service"))
|
|
66029
|
+
object.service = message.service;
|
|
66030
|
+
if (message.method != null && message.hasOwnProperty("method"))
|
|
66031
|
+
object.method = message.method;
|
|
66032
|
+
if (message.request != null && message.hasOwnProperty("request"))
|
|
66033
|
+
object.request = $root.google.protobuf.Any.toObject(message.request, options);
|
|
66034
|
+
return object;
|
|
66035
|
+
};
|
|
66036
|
+
|
|
66037
|
+
/**
|
|
66038
|
+
* Converts this UnaryCallRequest to JSON.
|
|
66039
|
+
* @function toJSON
|
|
66040
|
+
* @memberof replit.goval.api.pid2.UnaryCallRequest
|
|
66041
|
+
* @instance
|
|
66042
|
+
* @returns {Object.<string,*>} JSON object
|
|
66043
|
+
*/
|
|
66044
|
+
UnaryCallRequest.prototype.toJSON = function toJSON() {
|
|
66045
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66046
|
+
};
|
|
66047
|
+
|
|
66048
|
+
return UnaryCallRequest;
|
|
66049
|
+
})();
|
|
66050
|
+
|
|
66051
|
+
pid2.StreamCallRequest = (function() {
|
|
66052
|
+
|
|
66053
|
+
/**
|
|
66054
|
+
* Properties of a StreamCallRequest.
|
|
66055
|
+
* @memberof replit.goval.api.pid2
|
|
66056
|
+
* @interface IStreamCallRequest
|
|
66057
|
+
* @property {number|null} [streamId] StreamCallRequest streamId
|
|
66058
|
+
* @property {string|null} [service] StreamCallRequest service
|
|
66059
|
+
* @property {string|null} [method] StreamCallRequest method
|
|
66060
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [header] StreamCallRequest header
|
|
66061
|
+
*/
|
|
66062
|
+
|
|
66063
|
+
/**
|
|
66064
|
+
* Constructs a new StreamCallRequest.
|
|
66065
|
+
* @memberof replit.goval.api.pid2
|
|
66066
|
+
* @classdesc Represents a StreamCallRequest.
|
|
66067
|
+
* @constructor
|
|
66068
|
+
* @param {replit.goval.api.pid2.IStreamCallRequest=} [properties] Properties to set
|
|
66069
|
+
*/
|
|
66070
|
+
function StreamCallRequest(properties) {
|
|
66071
|
+
if (properties)
|
|
66072
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66073
|
+
if (properties[keys[i]] != null)
|
|
66074
|
+
this[keys[i]] = properties[keys[i]];
|
|
66075
|
+
}
|
|
66076
|
+
|
|
66077
|
+
/**
|
|
66078
|
+
* StreamCallRequest streamId.
|
|
66079
|
+
* @member {number} streamId
|
|
66080
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66081
|
+
* @instance
|
|
66082
|
+
*/
|
|
66083
|
+
StreamCallRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66084
|
+
|
|
66085
|
+
/**
|
|
66086
|
+
* StreamCallRequest service.
|
|
66087
|
+
* @member {string} service
|
|
66088
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66089
|
+
* @instance
|
|
66090
|
+
*/
|
|
66091
|
+
StreamCallRequest.prototype.service = "";
|
|
66092
|
+
|
|
66093
|
+
/**
|
|
66094
|
+
* StreamCallRequest method.
|
|
66095
|
+
* @member {string} method
|
|
66096
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66097
|
+
* @instance
|
|
66098
|
+
*/
|
|
66099
|
+
StreamCallRequest.prototype.method = "";
|
|
66100
|
+
|
|
66101
|
+
/**
|
|
66102
|
+
* StreamCallRequest header.
|
|
66103
|
+
* @member {google.protobuf.Any|null|undefined} header
|
|
66104
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66105
|
+
* @instance
|
|
66106
|
+
*/
|
|
66107
|
+
StreamCallRequest.prototype.header = null;
|
|
66108
|
+
|
|
66109
|
+
/**
|
|
66110
|
+
* Creates a new StreamCallRequest instance using the specified properties.
|
|
66111
|
+
* @function create
|
|
66112
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66113
|
+
* @static
|
|
66114
|
+
* @param {replit.goval.api.pid2.IStreamCallRequest=} [properties] Properties to set
|
|
66115
|
+
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest instance
|
|
66116
|
+
*/
|
|
66117
|
+
StreamCallRequest.create = function create(properties) {
|
|
66118
|
+
return StreamCallRequest.fromObject(properties);
|
|
66119
|
+
};
|
|
66120
|
+
|
|
66121
|
+
/**
|
|
66122
|
+
* Encodes the specified StreamCallRequest message. Does not implicitly {@link replit.goval.api.pid2.StreamCallRequest.verify|verify} messages.
|
|
66123
|
+
* @function encode
|
|
66124
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66125
|
+
* @static
|
|
66126
|
+
* @param {replit.goval.api.pid2.StreamCallRequest} message StreamCallRequest message or plain object to encode
|
|
66127
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66128
|
+
* @returns {$protobuf.Writer} Writer
|
|
66129
|
+
*/
|
|
66130
|
+
StreamCallRequest.encode = function encode(message, writer) {
|
|
66131
|
+
if (!writer)
|
|
66132
|
+
writer = $Writer.create();
|
|
66133
|
+
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
66134
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
66135
|
+
if (message.service != null && Object.hasOwnProperty.call(message, "service"))
|
|
66136
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.service);
|
|
66137
|
+
if (message.method != null && Object.hasOwnProperty.call(message, "method"))
|
|
66138
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.method);
|
|
66139
|
+
if (message.header != null && Object.hasOwnProperty.call(message, "header"))
|
|
66140
|
+
$root.google.protobuf.Any.encode(message.header, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
66141
|
+
return writer;
|
|
66142
|
+
};
|
|
66143
|
+
|
|
66144
|
+
/**
|
|
66145
|
+
* Encodes the specified StreamCallRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.StreamCallRequest.verify|verify} messages.
|
|
66146
|
+
* @function encodeDelimited
|
|
66147
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66148
|
+
* @static
|
|
66149
|
+
* @param {replit.goval.api.pid2.StreamCallRequest} message StreamCallRequest message or plain object to encode
|
|
66150
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66151
|
+
* @returns {$protobuf.Writer} Writer
|
|
66152
|
+
*/
|
|
66153
|
+
StreamCallRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66154
|
+
return this.encode(message, writer).ldelim();
|
|
66155
|
+
};
|
|
66156
|
+
|
|
66157
|
+
/**
|
|
66158
|
+
* Decodes a StreamCallRequest message from the specified reader or buffer.
|
|
66159
|
+
* @function decode
|
|
66160
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66161
|
+
* @static
|
|
66162
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66163
|
+
* @param {number} [length] Message length if known beforehand
|
|
66164
|
+
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest
|
|
66165
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66166
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66167
|
+
*/
|
|
66168
|
+
StreamCallRequest.decode = function decode(reader, length) {
|
|
66169
|
+
if (!(reader instanceof $Reader))
|
|
66170
|
+
reader = $Reader.create(reader);
|
|
66171
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.StreamCallRequest();
|
|
66172
|
+
while (reader.pos < end) {
|
|
66173
|
+
var tag = reader.uint32();
|
|
66174
|
+
switch (tag >>> 3) {
|
|
66175
|
+
case 1:
|
|
66176
|
+
message.streamId = reader.uint64();
|
|
66177
|
+
break;
|
|
66178
|
+
case 2:
|
|
66179
|
+
message.service = reader.string();
|
|
66180
|
+
break;
|
|
66181
|
+
case 3:
|
|
66182
|
+
message.method = reader.string();
|
|
66183
|
+
break;
|
|
66184
|
+
case 4:
|
|
66185
|
+
message.header = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
66186
|
+
break;
|
|
66187
|
+
default:
|
|
66188
|
+
reader.skipType(tag & 7);
|
|
66189
|
+
break;
|
|
66190
|
+
}
|
|
66191
|
+
}
|
|
66192
|
+
return message;
|
|
66193
|
+
};
|
|
66194
|
+
|
|
66195
|
+
/**
|
|
66196
|
+
* Decodes a StreamCallRequest message from the specified reader or buffer, length delimited.
|
|
66197
|
+
* @function decodeDelimited
|
|
66198
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66199
|
+
* @static
|
|
66200
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66201
|
+
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest
|
|
66202
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66203
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66204
|
+
*/
|
|
66205
|
+
StreamCallRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
66206
|
+
if (!(reader instanceof $Reader))
|
|
66207
|
+
reader = new $Reader(reader);
|
|
66208
|
+
return this.decode(reader, reader.uint32());
|
|
66209
|
+
};
|
|
66210
|
+
|
|
66211
|
+
/**
|
|
66212
|
+
* Verifies a StreamCallRequest message.
|
|
66213
|
+
* @function verify
|
|
66214
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66215
|
+
* @static
|
|
66216
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66217
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66218
|
+
*/
|
|
66219
|
+
StreamCallRequest.verify = function verify(message) {
|
|
66220
|
+
if (typeof message !== "object" || message === null)
|
|
66221
|
+
return "object expected";
|
|
66222
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66223
|
+
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
66224
|
+
return "streamId: integer|Long expected";
|
|
66225
|
+
if (message.service != null && message.hasOwnProperty("service"))
|
|
66226
|
+
if (!$util.isString(message.service))
|
|
66227
|
+
return "service: string expected";
|
|
66228
|
+
if (message.method != null && message.hasOwnProperty("method"))
|
|
66229
|
+
if (!$util.isString(message.method))
|
|
66230
|
+
return "method: string expected";
|
|
66231
|
+
if (message.header != null && message.hasOwnProperty("header")) {
|
|
66232
|
+
var error = $root.google.protobuf.Any.verify(message.header);
|
|
66233
|
+
if (error)
|
|
66234
|
+
return "header." + error;
|
|
66235
|
+
}
|
|
66236
|
+
return null;
|
|
66237
|
+
};
|
|
66238
|
+
|
|
66239
|
+
/**
|
|
66240
|
+
* Creates a StreamCallRequest message from a plain object. Also converts values to their respective internal types.
|
|
66241
|
+
* @function fromObject
|
|
66242
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66243
|
+
* @static
|
|
66244
|
+
* @param {Object.<string,*>} object Plain object
|
|
66245
|
+
* @returns {replit.goval.api.pid2.StreamCallRequest} StreamCallRequest
|
|
66246
|
+
*/
|
|
66247
|
+
StreamCallRequest.fromObject = function fromObject(object) {
|
|
66248
|
+
if (object instanceof $root.replit.goval.api.pid2.StreamCallRequest)
|
|
66249
|
+
return object;
|
|
66250
|
+
var message = new $root.replit.goval.api.pid2.StreamCallRequest();
|
|
66251
|
+
if (object.streamId != null)
|
|
66252
|
+
if ($util.Long)
|
|
66253
|
+
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
66254
|
+
else if (typeof object.streamId === "string")
|
|
66255
|
+
message.streamId = parseInt(object.streamId, 10);
|
|
66256
|
+
else if (typeof object.streamId === "number")
|
|
66257
|
+
message.streamId = object.streamId;
|
|
66258
|
+
else if (typeof object.streamId === "object")
|
|
66259
|
+
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
66260
|
+
if (object.service != null)
|
|
66261
|
+
message.service = String(object.service);
|
|
66262
|
+
if (object.method != null)
|
|
66263
|
+
message.method = String(object.method);
|
|
66264
|
+
if (object.header != null) {
|
|
66265
|
+
if (typeof object.header !== "object")
|
|
66266
|
+
throw TypeError(".replit.goval.api.pid2.StreamCallRequest.header: object expected");
|
|
66267
|
+
message.header = $root.google.protobuf.Any.fromObject(object.header);
|
|
66268
|
+
}
|
|
66269
|
+
return message;
|
|
66270
|
+
};
|
|
66271
|
+
|
|
66272
|
+
/**
|
|
66273
|
+
* Creates a plain object from a StreamCallRequest message. Also converts values to other types if specified.
|
|
66274
|
+
* @function toObject
|
|
66275
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66276
|
+
* @static
|
|
66277
|
+
* @param {replit.goval.api.pid2.StreamCallRequest} message StreamCallRequest
|
|
66278
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66279
|
+
* @returns {Object.<string,*>} Plain object
|
|
66280
|
+
*/
|
|
66281
|
+
StreamCallRequest.toObject = function toObject(message, options) {
|
|
66282
|
+
if (!options)
|
|
66283
|
+
options = {};
|
|
66284
|
+
var object = {};
|
|
66285
|
+
if (options.defaults) {
|
|
66286
|
+
if ($util.Long) {
|
|
66287
|
+
var long = new $util.Long(0, 0, true);
|
|
66288
|
+
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66289
|
+
} else
|
|
66290
|
+
object.streamId = options.longs === String ? "0" : 0;
|
|
66291
|
+
object.service = "";
|
|
66292
|
+
object.method = "";
|
|
66293
|
+
object.header = null;
|
|
66294
|
+
}
|
|
66295
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66296
|
+
if (typeof message.streamId === "number")
|
|
66297
|
+
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
66298
|
+
else
|
|
66299
|
+
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
66300
|
+
if (message.service != null && message.hasOwnProperty("service"))
|
|
66301
|
+
object.service = message.service;
|
|
66302
|
+
if (message.method != null && message.hasOwnProperty("method"))
|
|
66303
|
+
object.method = message.method;
|
|
66304
|
+
if (message.header != null && message.hasOwnProperty("header"))
|
|
66305
|
+
object.header = $root.google.protobuf.Any.toObject(message.header, options);
|
|
66306
|
+
return object;
|
|
66307
|
+
};
|
|
66308
|
+
|
|
66309
|
+
/**
|
|
66310
|
+
* Converts this StreamCallRequest to JSON.
|
|
66311
|
+
* @function toJSON
|
|
66312
|
+
* @memberof replit.goval.api.pid2.StreamCallRequest
|
|
66313
|
+
* @instance
|
|
66314
|
+
* @returns {Object.<string,*>} JSON object
|
|
66315
|
+
*/
|
|
66316
|
+
StreamCallRequest.prototype.toJSON = function toJSON() {
|
|
66317
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66318
|
+
};
|
|
66319
|
+
|
|
66320
|
+
return StreamCallRequest;
|
|
66321
|
+
})();
|
|
66322
|
+
|
|
66323
|
+
pid2.StreamContinuationRequest = (function() {
|
|
66324
|
+
|
|
66325
|
+
/**
|
|
66326
|
+
* Properties of a StreamContinuationRequest.
|
|
66327
|
+
* @memberof replit.goval.api.pid2
|
|
66328
|
+
* @interface IStreamContinuationRequest
|
|
66329
|
+
* @property {number|null} [streamId] StreamContinuationRequest streamId
|
|
66330
|
+
* @property {boolean|null} [streamEnd] StreamContinuationRequest streamEnd
|
|
66331
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [request] StreamContinuationRequest request
|
|
66332
|
+
*/
|
|
66333
|
+
|
|
66334
|
+
/**
|
|
66335
|
+
* Constructs a new StreamContinuationRequest.
|
|
66336
|
+
* @memberof replit.goval.api.pid2
|
|
66337
|
+
* @classdesc Represents a StreamContinuationRequest.
|
|
66338
|
+
* @constructor
|
|
66339
|
+
* @param {replit.goval.api.pid2.IStreamContinuationRequest=} [properties] Properties to set
|
|
66340
|
+
*/
|
|
66341
|
+
function StreamContinuationRequest(properties) {
|
|
66342
|
+
if (properties)
|
|
66343
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66344
|
+
if (properties[keys[i]] != null)
|
|
66345
|
+
this[keys[i]] = properties[keys[i]];
|
|
66346
|
+
}
|
|
66347
|
+
|
|
66348
|
+
/**
|
|
66349
|
+
* StreamContinuationRequest streamId.
|
|
66350
|
+
* @member {number} streamId
|
|
66351
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66352
|
+
* @instance
|
|
66353
|
+
*/
|
|
66354
|
+
StreamContinuationRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66355
|
+
|
|
66356
|
+
/**
|
|
66357
|
+
* StreamContinuationRequest streamEnd.
|
|
66358
|
+
* @member {boolean} streamEnd
|
|
66359
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66360
|
+
* @instance
|
|
66361
|
+
*/
|
|
66362
|
+
StreamContinuationRequest.prototype.streamEnd = false;
|
|
66363
|
+
|
|
66364
|
+
/**
|
|
66365
|
+
* StreamContinuationRequest request.
|
|
66366
|
+
* @member {google.protobuf.Any|null|undefined} request
|
|
66367
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66368
|
+
* @instance
|
|
66369
|
+
*/
|
|
66370
|
+
StreamContinuationRequest.prototype.request = null;
|
|
66371
|
+
|
|
66372
|
+
/**
|
|
66373
|
+
* Creates a new StreamContinuationRequest instance using the specified properties.
|
|
66374
|
+
* @function create
|
|
66375
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66376
|
+
* @static
|
|
66377
|
+
* @param {replit.goval.api.pid2.IStreamContinuationRequest=} [properties] Properties to set
|
|
66378
|
+
* @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest instance
|
|
66379
|
+
*/
|
|
66380
|
+
StreamContinuationRequest.create = function create(properties) {
|
|
66381
|
+
return StreamContinuationRequest.fromObject(properties);
|
|
66382
|
+
};
|
|
66383
|
+
|
|
66384
|
+
/**
|
|
66385
|
+
* Encodes the specified StreamContinuationRequest message. Does not implicitly {@link replit.goval.api.pid2.StreamContinuationRequest.verify|verify} messages.
|
|
66386
|
+
* @function encode
|
|
66387
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66388
|
+
* @static
|
|
66389
|
+
* @param {replit.goval.api.pid2.StreamContinuationRequest} message StreamContinuationRequest message or plain object to encode
|
|
66390
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66391
|
+
* @returns {$protobuf.Writer} Writer
|
|
66392
|
+
*/
|
|
66393
|
+
StreamContinuationRequest.encode = function encode(message, writer) {
|
|
66394
|
+
if (!writer)
|
|
66395
|
+
writer = $Writer.create();
|
|
66396
|
+
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
66397
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
66398
|
+
if (message.streamEnd != null && Object.hasOwnProperty.call(message, "streamEnd"))
|
|
66399
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnd);
|
|
66400
|
+
if (message.request != null && Object.hasOwnProperty.call(message, "request"))
|
|
66401
|
+
$root.google.protobuf.Any.encode(message.request, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
66402
|
+
return writer;
|
|
66403
|
+
};
|
|
66404
|
+
|
|
66405
|
+
/**
|
|
66406
|
+
* Encodes the specified StreamContinuationRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.StreamContinuationRequest.verify|verify} messages.
|
|
66407
|
+
* @function encodeDelimited
|
|
66408
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66409
|
+
* @static
|
|
66410
|
+
* @param {replit.goval.api.pid2.StreamContinuationRequest} message StreamContinuationRequest message or plain object to encode
|
|
66411
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66412
|
+
* @returns {$protobuf.Writer} Writer
|
|
66413
|
+
*/
|
|
66414
|
+
StreamContinuationRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66415
|
+
return this.encode(message, writer).ldelim();
|
|
66416
|
+
};
|
|
66417
|
+
|
|
66418
|
+
/**
|
|
66419
|
+
* Decodes a StreamContinuationRequest message from the specified reader or buffer.
|
|
66420
|
+
* @function decode
|
|
66421
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66422
|
+
* @static
|
|
66423
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66424
|
+
* @param {number} [length] Message length if known beforehand
|
|
66425
|
+
* @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest
|
|
66426
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66427
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66428
|
+
*/
|
|
66429
|
+
StreamContinuationRequest.decode = function decode(reader, length) {
|
|
66430
|
+
if (!(reader instanceof $Reader))
|
|
66431
|
+
reader = $Reader.create(reader);
|
|
66432
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.StreamContinuationRequest();
|
|
66433
|
+
while (reader.pos < end) {
|
|
66434
|
+
var tag = reader.uint32();
|
|
66435
|
+
switch (tag >>> 3) {
|
|
66436
|
+
case 1:
|
|
66437
|
+
message.streamId = reader.uint64();
|
|
66438
|
+
break;
|
|
66439
|
+
case 2:
|
|
66440
|
+
message.streamEnd = reader.bool();
|
|
66441
|
+
break;
|
|
66442
|
+
case 3:
|
|
66443
|
+
message.request = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
66444
|
+
break;
|
|
66445
|
+
default:
|
|
66446
|
+
reader.skipType(tag & 7);
|
|
66447
|
+
break;
|
|
66448
|
+
}
|
|
66449
|
+
}
|
|
66450
|
+
return message;
|
|
66451
|
+
};
|
|
66452
|
+
|
|
66453
|
+
/**
|
|
66454
|
+
* Decodes a StreamContinuationRequest message from the specified reader or buffer, length delimited.
|
|
66455
|
+
* @function decodeDelimited
|
|
66456
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66457
|
+
* @static
|
|
66458
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66459
|
+
* @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest
|
|
66460
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66461
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66462
|
+
*/
|
|
66463
|
+
StreamContinuationRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
66464
|
+
if (!(reader instanceof $Reader))
|
|
66465
|
+
reader = new $Reader(reader);
|
|
66466
|
+
return this.decode(reader, reader.uint32());
|
|
66467
|
+
};
|
|
66468
|
+
|
|
66469
|
+
/**
|
|
66470
|
+
* Verifies a StreamContinuationRequest message.
|
|
66471
|
+
* @function verify
|
|
66472
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66473
|
+
* @static
|
|
66474
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66475
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66476
|
+
*/
|
|
66477
|
+
StreamContinuationRequest.verify = function verify(message) {
|
|
66478
|
+
if (typeof message !== "object" || message === null)
|
|
66479
|
+
return "object expected";
|
|
66480
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66481
|
+
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
66482
|
+
return "streamId: integer|Long expected";
|
|
66483
|
+
if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
|
|
66484
|
+
if (typeof message.streamEnd !== "boolean")
|
|
66485
|
+
return "streamEnd: boolean expected";
|
|
66486
|
+
if (message.request != null && message.hasOwnProperty("request")) {
|
|
66487
|
+
var error = $root.google.protobuf.Any.verify(message.request);
|
|
66488
|
+
if (error)
|
|
66489
|
+
return "request." + error;
|
|
66490
|
+
}
|
|
66491
|
+
return null;
|
|
66492
|
+
};
|
|
66493
|
+
|
|
66494
|
+
/**
|
|
66495
|
+
* Creates a StreamContinuationRequest message from a plain object. Also converts values to their respective internal types.
|
|
66496
|
+
* @function fromObject
|
|
66497
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66498
|
+
* @static
|
|
66499
|
+
* @param {Object.<string,*>} object Plain object
|
|
66500
|
+
* @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest
|
|
66501
|
+
*/
|
|
66502
|
+
StreamContinuationRequest.fromObject = function fromObject(object) {
|
|
66503
|
+
if (object instanceof $root.replit.goval.api.pid2.StreamContinuationRequest)
|
|
66504
|
+
return object;
|
|
66505
|
+
var message = new $root.replit.goval.api.pid2.StreamContinuationRequest();
|
|
66506
|
+
if (object.streamId != null)
|
|
66507
|
+
if ($util.Long)
|
|
66508
|
+
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
66509
|
+
else if (typeof object.streamId === "string")
|
|
66510
|
+
message.streamId = parseInt(object.streamId, 10);
|
|
66511
|
+
else if (typeof object.streamId === "number")
|
|
66512
|
+
message.streamId = object.streamId;
|
|
66513
|
+
else if (typeof object.streamId === "object")
|
|
66514
|
+
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
66515
|
+
if (object.streamEnd != null)
|
|
66516
|
+
message.streamEnd = Boolean(object.streamEnd);
|
|
66517
|
+
if (object.request != null) {
|
|
66518
|
+
if (typeof object.request !== "object")
|
|
66519
|
+
throw TypeError(".replit.goval.api.pid2.StreamContinuationRequest.request: object expected");
|
|
66520
|
+
message.request = $root.google.protobuf.Any.fromObject(object.request);
|
|
66521
|
+
}
|
|
66522
|
+
return message;
|
|
66523
|
+
};
|
|
66524
|
+
|
|
66525
|
+
/**
|
|
66526
|
+
* Creates a plain object from a StreamContinuationRequest message. Also converts values to other types if specified.
|
|
66527
|
+
* @function toObject
|
|
66528
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66529
|
+
* @static
|
|
66530
|
+
* @param {replit.goval.api.pid2.StreamContinuationRequest} message StreamContinuationRequest
|
|
66531
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66532
|
+
* @returns {Object.<string,*>} Plain object
|
|
66533
|
+
*/
|
|
66534
|
+
StreamContinuationRequest.toObject = function toObject(message, options) {
|
|
66535
|
+
if (!options)
|
|
66536
|
+
options = {};
|
|
66537
|
+
var object = {};
|
|
66538
|
+
if (options.defaults) {
|
|
66539
|
+
if ($util.Long) {
|
|
66540
|
+
var long = new $util.Long(0, 0, true);
|
|
66541
|
+
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66542
|
+
} else
|
|
66543
|
+
object.streamId = options.longs === String ? "0" : 0;
|
|
66544
|
+
object.streamEnd = false;
|
|
66545
|
+
object.request = null;
|
|
66546
|
+
}
|
|
66547
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66548
|
+
if (typeof message.streamId === "number")
|
|
66549
|
+
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
66550
|
+
else
|
|
66551
|
+
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
66552
|
+
if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
|
|
66553
|
+
object.streamEnd = message.streamEnd;
|
|
66554
|
+
if (message.request != null && message.hasOwnProperty("request"))
|
|
66555
|
+
object.request = $root.google.protobuf.Any.toObject(message.request, options);
|
|
66556
|
+
return object;
|
|
66557
|
+
};
|
|
66558
|
+
|
|
66559
|
+
/**
|
|
66560
|
+
* Converts this StreamContinuationRequest to JSON.
|
|
66561
|
+
* @function toJSON
|
|
66562
|
+
* @memberof replit.goval.api.pid2.StreamContinuationRequest
|
|
66563
|
+
* @instance
|
|
66564
|
+
* @returns {Object.<string,*>} JSON object
|
|
66565
|
+
*/
|
|
66566
|
+
StreamContinuationRequest.prototype.toJSON = function toJSON() {
|
|
66567
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66568
|
+
};
|
|
66569
|
+
|
|
66570
|
+
return StreamContinuationRequest;
|
|
66571
|
+
})();
|
|
66572
|
+
|
|
66573
|
+
pid2.StreamCancelRequest = (function() {
|
|
66574
|
+
|
|
66575
|
+
/**
|
|
66576
|
+
* Properties of a StreamCancelRequest.
|
|
66577
|
+
* @memberof replit.goval.api.pid2
|
|
66578
|
+
* @interface IStreamCancelRequest
|
|
66579
|
+
* @property {number|null} [streamId] StreamCancelRequest streamId
|
|
66580
|
+
*/
|
|
66581
|
+
|
|
66582
|
+
/**
|
|
66583
|
+
* Constructs a new StreamCancelRequest.
|
|
66584
|
+
* @memberof replit.goval.api.pid2
|
|
66585
|
+
* @classdesc Represents a StreamCancelRequest.
|
|
66586
|
+
* @constructor
|
|
66587
|
+
* @param {replit.goval.api.pid2.IStreamCancelRequest=} [properties] Properties to set
|
|
66588
|
+
*/
|
|
66589
|
+
function StreamCancelRequest(properties) {
|
|
66590
|
+
if (properties)
|
|
66591
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66592
|
+
if (properties[keys[i]] != null)
|
|
66593
|
+
this[keys[i]] = properties[keys[i]];
|
|
66594
|
+
}
|
|
66595
|
+
|
|
66596
|
+
/**
|
|
66597
|
+
* StreamCancelRequest streamId.
|
|
66598
|
+
* @member {number} streamId
|
|
66599
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66600
|
+
* @instance
|
|
66601
|
+
*/
|
|
66602
|
+
StreamCancelRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66603
|
+
|
|
66604
|
+
/**
|
|
66605
|
+
* Creates a new StreamCancelRequest instance using the specified properties.
|
|
66606
|
+
* @function create
|
|
66607
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66608
|
+
* @static
|
|
66609
|
+
* @param {replit.goval.api.pid2.IStreamCancelRequest=} [properties] Properties to set
|
|
66610
|
+
* @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest instance
|
|
66611
|
+
*/
|
|
66612
|
+
StreamCancelRequest.create = function create(properties) {
|
|
66613
|
+
return StreamCancelRequest.fromObject(properties);
|
|
66614
|
+
};
|
|
66615
|
+
|
|
66616
|
+
/**
|
|
66617
|
+
* Encodes the specified StreamCancelRequest message. Does not implicitly {@link replit.goval.api.pid2.StreamCancelRequest.verify|verify} messages.
|
|
66618
|
+
* @function encode
|
|
66619
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66620
|
+
* @static
|
|
66621
|
+
* @param {replit.goval.api.pid2.StreamCancelRequest} message StreamCancelRequest message or plain object to encode
|
|
66622
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66623
|
+
* @returns {$protobuf.Writer} Writer
|
|
66624
|
+
*/
|
|
66625
|
+
StreamCancelRequest.encode = function encode(message, writer) {
|
|
66626
|
+
if (!writer)
|
|
66627
|
+
writer = $Writer.create();
|
|
66628
|
+
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
66629
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
66630
|
+
return writer;
|
|
66631
|
+
};
|
|
66632
|
+
|
|
66633
|
+
/**
|
|
66634
|
+
* Encodes the specified StreamCancelRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.StreamCancelRequest.verify|verify} messages.
|
|
66635
|
+
* @function encodeDelimited
|
|
66636
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66637
|
+
* @static
|
|
66638
|
+
* @param {replit.goval.api.pid2.StreamCancelRequest} message StreamCancelRequest message or plain object to encode
|
|
66639
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66640
|
+
* @returns {$protobuf.Writer} Writer
|
|
66641
|
+
*/
|
|
66642
|
+
StreamCancelRequest.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66643
|
+
return this.encode(message, writer).ldelim();
|
|
66644
|
+
};
|
|
66645
|
+
|
|
66646
|
+
/**
|
|
66647
|
+
* Decodes a StreamCancelRequest message from the specified reader or buffer.
|
|
66648
|
+
* @function decode
|
|
66649
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66650
|
+
* @static
|
|
66651
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66652
|
+
* @param {number} [length] Message length if known beforehand
|
|
66653
|
+
* @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest
|
|
66654
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66655
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66656
|
+
*/
|
|
66657
|
+
StreamCancelRequest.decode = function decode(reader, length) {
|
|
66658
|
+
if (!(reader instanceof $Reader))
|
|
66659
|
+
reader = $Reader.create(reader);
|
|
66660
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.StreamCancelRequest();
|
|
66661
|
+
while (reader.pos < end) {
|
|
66662
|
+
var tag = reader.uint32();
|
|
66663
|
+
switch (tag >>> 3) {
|
|
66664
|
+
case 1:
|
|
66665
|
+
message.streamId = reader.uint64();
|
|
66666
|
+
break;
|
|
66667
|
+
default:
|
|
66668
|
+
reader.skipType(tag & 7);
|
|
66669
|
+
break;
|
|
66670
|
+
}
|
|
66671
|
+
}
|
|
66672
|
+
return message;
|
|
66673
|
+
};
|
|
66674
|
+
|
|
66675
|
+
/**
|
|
66676
|
+
* Decodes a StreamCancelRequest message from the specified reader or buffer, length delimited.
|
|
66677
|
+
* @function decodeDelimited
|
|
66678
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66679
|
+
* @static
|
|
66680
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66681
|
+
* @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest
|
|
66682
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66683
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66684
|
+
*/
|
|
66685
|
+
StreamCancelRequest.decodeDelimited = function decodeDelimited(reader) {
|
|
66686
|
+
if (!(reader instanceof $Reader))
|
|
66687
|
+
reader = new $Reader(reader);
|
|
66688
|
+
return this.decode(reader, reader.uint32());
|
|
66689
|
+
};
|
|
66690
|
+
|
|
66691
|
+
/**
|
|
66692
|
+
* Verifies a StreamCancelRequest message.
|
|
66693
|
+
* @function verify
|
|
66694
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66695
|
+
* @static
|
|
66696
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66697
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66698
|
+
*/
|
|
66699
|
+
StreamCancelRequest.verify = function verify(message) {
|
|
66700
|
+
if (typeof message !== "object" || message === null)
|
|
66701
|
+
return "object expected";
|
|
66702
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66703
|
+
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
66704
|
+
return "streamId: integer|Long expected";
|
|
66705
|
+
return null;
|
|
66706
|
+
};
|
|
66707
|
+
|
|
66708
|
+
/**
|
|
66709
|
+
* Creates a StreamCancelRequest message from a plain object. Also converts values to their respective internal types.
|
|
66710
|
+
* @function fromObject
|
|
66711
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66712
|
+
* @static
|
|
66713
|
+
* @param {Object.<string,*>} object Plain object
|
|
66714
|
+
* @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest
|
|
66715
|
+
*/
|
|
66716
|
+
StreamCancelRequest.fromObject = function fromObject(object) {
|
|
66717
|
+
if (object instanceof $root.replit.goval.api.pid2.StreamCancelRequest)
|
|
66718
|
+
return object;
|
|
66719
|
+
var message = new $root.replit.goval.api.pid2.StreamCancelRequest();
|
|
66720
|
+
if (object.streamId != null)
|
|
66721
|
+
if ($util.Long)
|
|
66722
|
+
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
66723
|
+
else if (typeof object.streamId === "string")
|
|
66724
|
+
message.streamId = parseInt(object.streamId, 10);
|
|
66725
|
+
else if (typeof object.streamId === "number")
|
|
66726
|
+
message.streamId = object.streamId;
|
|
66727
|
+
else if (typeof object.streamId === "object")
|
|
66728
|
+
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
66729
|
+
return message;
|
|
66730
|
+
};
|
|
66731
|
+
|
|
66732
|
+
/**
|
|
66733
|
+
* Creates a plain object from a StreamCancelRequest message. Also converts values to other types if specified.
|
|
66734
|
+
* @function toObject
|
|
66735
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66736
|
+
* @static
|
|
66737
|
+
* @param {replit.goval.api.pid2.StreamCancelRequest} message StreamCancelRequest
|
|
66738
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66739
|
+
* @returns {Object.<string,*>} Plain object
|
|
66740
|
+
*/
|
|
66741
|
+
StreamCancelRequest.toObject = function toObject(message, options) {
|
|
66742
|
+
if (!options)
|
|
66743
|
+
options = {};
|
|
66744
|
+
var object = {};
|
|
66745
|
+
if (options.defaults)
|
|
66746
|
+
if ($util.Long) {
|
|
66747
|
+
var long = new $util.Long(0, 0, true);
|
|
66748
|
+
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66749
|
+
} else
|
|
66750
|
+
object.streamId = options.longs === String ? "0" : 0;
|
|
66751
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66752
|
+
if (typeof message.streamId === "number")
|
|
66753
|
+
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
66754
|
+
else
|
|
66755
|
+
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
66756
|
+
return object;
|
|
66757
|
+
};
|
|
66758
|
+
|
|
66759
|
+
/**
|
|
66760
|
+
* Converts this StreamCancelRequest to JSON.
|
|
66761
|
+
* @function toJSON
|
|
66762
|
+
* @memberof replit.goval.api.pid2.StreamCancelRequest
|
|
66763
|
+
* @instance
|
|
66764
|
+
* @returns {Object.<string,*>} JSON object
|
|
66765
|
+
*/
|
|
66766
|
+
StreamCancelRequest.prototype.toJSON = function toJSON() {
|
|
66767
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66768
|
+
};
|
|
66769
|
+
|
|
66770
|
+
return StreamCancelRequest;
|
|
66771
|
+
})();
|
|
66772
|
+
|
|
66773
|
+
pid2.UnaryCallResponse = (function() {
|
|
66774
|
+
|
|
66775
|
+
/**
|
|
66776
|
+
* Properties of an UnaryCallResponse.
|
|
66777
|
+
* @memberof replit.goval.api.pid2
|
|
66778
|
+
* @interface IUnaryCallResponse
|
|
66779
|
+
* @property {number|null} [streamId] UnaryCallResponse streamId
|
|
66780
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [response] UnaryCallResponse response
|
|
66781
|
+
* @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [error] UnaryCallResponse error
|
|
66782
|
+
*/
|
|
66783
|
+
|
|
66784
|
+
/**
|
|
66785
|
+
* Constructs a new UnaryCallResponse.
|
|
66786
|
+
* @memberof replit.goval.api.pid2
|
|
66787
|
+
* @classdesc Represents an UnaryCallResponse.
|
|
66788
|
+
* @constructor
|
|
66789
|
+
* @param {replit.goval.api.pid2.IUnaryCallResponse=} [properties] Properties to set
|
|
66790
|
+
*/
|
|
66791
|
+
function UnaryCallResponse(properties) {
|
|
66792
|
+
if (properties)
|
|
66793
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66794
|
+
if (properties[keys[i]] != null)
|
|
66795
|
+
this[keys[i]] = properties[keys[i]];
|
|
66796
|
+
}
|
|
66797
|
+
|
|
66798
|
+
/**
|
|
66799
|
+
* UnaryCallResponse streamId.
|
|
66800
|
+
* @member {number} streamId
|
|
66801
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66802
|
+
* @instance
|
|
66803
|
+
*/
|
|
66804
|
+
UnaryCallResponse.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66805
|
+
|
|
66806
|
+
/**
|
|
66807
|
+
* UnaryCallResponse response.
|
|
66808
|
+
* @member {google.protobuf.Any|null|undefined} response
|
|
66809
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66810
|
+
* @instance
|
|
66811
|
+
*/
|
|
66812
|
+
UnaryCallResponse.prototype.response = null;
|
|
66813
|
+
|
|
66814
|
+
/**
|
|
66815
|
+
* UnaryCallResponse error.
|
|
66816
|
+
* @member {replit.goval.api.pid2.Error|null|undefined} error
|
|
66817
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66818
|
+
* @instance
|
|
66819
|
+
*/
|
|
66820
|
+
UnaryCallResponse.prototype.error = null;
|
|
66821
|
+
|
|
66822
|
+
// OneOf field names bound to virtual getters and setters
|
|
66823
|
+
var $oneOfFields;
|
|
66824
|
+
|
|
66825
|
+
/**
|
|
66826
|
+
* UnaryCallResponse body.
|
|
66827
|
+
* @member {"response"|"error"|undefined} body
|
|
66828
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66829
|
+
* @instance
|
|
66830
|
+
*/
|
|
66831
|
+
Object.defineProperty(UnaryCallResponse.prototype, "body", {
|
|
66832
|
+
get: $util.oneOfGetter($oneOfFields = ["response", "error"]),
|
|
66833
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
66834
|
+
});
|
|
66835
|
+
|
|
66836
|
+
/**
|
|
66837
|
+
* Creates a new UnaryCallResponse instance using the specified properties.
|
|
66838
|
+
* @function create
|
|
66839
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66840
|
+
* @static
|
|
66841
|
+
* @param {replit.goval.api.pid2.IUnaryCallResponse=} [properties] Properties to set
|
|
66842
|
+
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse instance
|
|
66843
|
+
*/
|
|
66844
|
+
UnaryCallResponse.create = function create(properties) {
|
|
66845
|
+
return UnaryCallResponse.fromObject(properties);
|
|
66846
|
+
};
|
|
66847
|
+
|
|
66848
|
+
/**
|
|
66849
|
+
* Encodes the specified UnaryCallResponse message. Does not implicitly {@link replit.goval.api.pid2.UnaryCallResponse.verify|verify} messages.
|
|
66850
|
+
* @function encode
|
|
66851
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66852
|
+
* @static
|
|
66853
|
+
* @param {replit.goval.api.pid2.UnaryCallResponse} message UnaryCallResponse message or plain object to encode
|
|
66854
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66855
|
+
* @returns {$protobuf.Writer} Writer
|
|
66856
|
+
*/
|
|
66857
|
+
UnaryCallResponse.encode = function encode(message, writer) {
|
|
66858
|
+
if (!writer)
|
|
66859
|
+
writer = $Writer.create();
|
|
66860
|
+
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
66861
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
66862
|
+
if (message.response != null && Object.hasOwnProperty.call(message, "response"))
|
|
66863
|
+
$root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
66864
|
+
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
66865
|
+
$root.replit.goval.api.pid2.Error.encode(message.error, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
66866
|
+
return writer;
|
|
66867
|
+
};
|
|
66868
|
+
|
|
66869
|
+
/**
|
|
66870
|
+
* Encodes the specified UnaryCallResponse message, length delimited. Does not implicitly {@link replit.goval.api.pid2.UnaryCallResponse.verify|verify} messages.
|
|
66871
|
+
* @function encodeDelimited
|
|
66872
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66873
|
+
* @static
|
|
66874
|
+
* @param {replit.goval.api.pid2.UnaryCallResponse} message UnaryCallResponse message or plain object to encode
|
|
66875
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66876
|
+
* @returns {$protobuf.Writer} Writer
|
|
66877
|
+
*/
|
|
66878
|
+
UnaryCallResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66879
|
+
return this.encode(message, writer).ldelim();
|
|
66880
|
+
};
|
|
66881
|
+
|
|
66882
|
+
/**
|
|
66883
|
+
* Decodes an UnaryCallResponse message from the specified reader or buffer.
|
|
66884
|
+
* @function decode
|
|
66885
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66886
|
+
* @static
|
|
66887
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66888
|
+
* @param {number} [length] Message length if known beforehand
|
|
66889
|
+
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse
|
|
66890
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66891
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66892
|
+
*/
|
|
66893
|
+
UnaryCallResponse.decode = function decode(reader, length) {
|
|
66894
|
+
if (!(reader instanceof $Reader))
|
|
66895
|
+
reader = $Reader.create(reader);
|
|
66896
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.UnaryCallResponse();
|
|
66897
|
+
while (reader.pos < end) {
|
|
66898
|
+
var tag = reader.uint32();
|
|
66899
|
+
switch (tag >>> 3) {
|
|
66900
|
+
case 1:
|
|
66901
|
+
message.streamId = reader.uint64();
|
|
66902
|
+
break;
|
|
66903
|
+
case 2:
|
|
66904
|
+
message.response = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
66905
|
+
break;
|
|
66906
|
+
case 3:
|
|
66907
|
+
message.error = $root.replit.goval.api.pid2.Error.decode(reader, reader.uint32());
|
|
66908
|
+
break;
|
|
66909
|
+
default:
|
|
66910
|
+
reader.skipType(tag & 7);
|
|
66911
|
+
break;
|
|
66912
|
+
}
|
|
66913
|
+
}
|
|
66914
|
+
return message;
|
|
66915
|
+
};
|
|
66916
|
+
|
|
66917
|
+
/**
|
|
66918
|
+
* Decodes an UnaryCallResponse message from the specified reader or buffer, length delimited.
|
|
66919
|
+
* @function decodeDelimited
|
|
66920
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66921
|
+
* @static
|
|
66922
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66923
|
+
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse
|
|
66924
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66925
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66926
|
+
*/
|
|
66927
|
+
UnaryCallResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
66928
|
+
if (!(reader instanceof $Reader))
|
|
66929
|
+
reader = new $Reader(reader);
|
|
66930
|
+
return this.decode(reader, reader.uint32());
|
|
66931
|
+
};
|
|
66932
|
+
|
|
66933
|
+
/**
|
|
66934
|
+
* Verifies an UnaryCallResponse message.
|
|
66935
|
+
* @function verify
|
|
66936
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66937
|
+
* @static
|
|
66938
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66939
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66940
|
+
*/
|
|
66941
|
+
UnaryCallResponse.verify = function verify(message) {
|
|
66942
|
+
if (typeof message !== "object" || message === null)
|
|
66943
|
+
return "object expected";
|
|
66944
|
+
var properties = {};
|
|
66945
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
66946
|
+
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
66947
|
+
return "streamId: integer|Long expected";
|
|
66948
|
+
if (message.response != null && message.hasOwnProperty("response")) {
|
|
66949
|
+
properties.body = 1;
|
|
66950
|
+
{
|
|
66951
|
+
var error = $root.google.protobuf.Any.verify(message.response);
|
|
66952
|
+
if (error)
|
|
66953
|
+
return "response." + error;
|
|
66954
|
+
}
|
|
66955
|
+
}
|
|
66956
|
+
if (message.error != null && message.hasOwnProperty("error")) {
|
|
66957
|
+
if (properties.body === 1)
|
|
66958
|
+
return "body: multiple values";
|
|
66959
|
+
properties.body = 1;
|
|
66960
|
+
{
|
|
66961
|
+
var error = $root.replit.goval.api.pid2.Error.verify(message.error);
|
|
66962
|
+
if (error)
|
|
66963
|
+
return "error." + error;
|
|
66964
|
+
}
|
|
66965
|
+
}
|
|
66966
|
+
return null;
|
|
66967
|
+
};
|
|
66968
|
+
|
|
66969
|
+
/**
|
|
66970
|
+
* Creates an UnaryCallResponse message from a plain object. Also converts values to their respective internal types.
|
|
66971
|
+
* @function fromObject
|
|
66972
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
66973
|
+
* @static
|
|
66974
|
+
* @param {Object.<string,*>} object Plain object
|
|
66975
|
+
* @returns {replit.goval.api.pid2.UnaryCallResponse} UnaryCallResponse
|
|
66976
|
+
*/
|
|
66977
|
+
UnaryCallResponse.fromObject = function fromObject(object) {
|
|
66978
|
+
if (object instanceof $root.replit.goval.api.pid2.UnaryCallResponse)
|
|
66979
|
+
return object;
|
|
66980
|
+
var message = new $root.replit.goval.api.pid2.UnaryCallResponse();
|
|
66981
|
+
if (object.streamId != null)
|
|
66982
|
+
if ($util.Long)
|
|
66983
|
+
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
66984
|
+
else if (typeof object.streamId === "string")
|
|
66985
|
+
message.streamId = parseInt(object.streamId, 10);
|
|
66986
|
+
else if (typeof object.streamId === "number")
|
|
66987
|
+
message.streamId = object.streamId;
|
|
66988
|
+
else if (typeof object.streamId === "object")
|
|
66989
|
+
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
66990
|
+
if (object.response != null) {
|
|
66991
|
+
if (typeof object.response !== "object")
|
|
66992
|
+
throw TypeError(".replit.goval.api.pid2.UnaryCallResponse.response: object expected");
|
|
66993
|
+
message.response = $root.google.protobuf.Any.fromObject(object.response);
|
|
66994
|
+
}
|
|
66995
|
+
if (object.error != null) {
|
|
66996
|
+
if (typeof object.error !== "object")
|
|
66997
|
+
throw TypeError(".replit.goval.api.pid2.UnaryCallResponse.error: object expected");
|
|
66998
|
+
message.error = $root.replit.goval.api.pid2.Error.fromObject(object.error);
|
|
66999
|
+
}
|
|
67000
|
+
return message;
|
|
67001
|
+
};
|
|
67002
|
+
|
|
67003
|
+
/**
|
|
67004
|
+
* Creates a plain object from an UnaryCallResponse message. Also converts values to other types if specified.
|
|
67005
|
+
* @function toObject
|
|
67006
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67007
|
+
* @static
|
|
67008
|
+
* @param {replit.goval.api.pid2.UnaryCallResponse} message UnaryCallResponse
|
|
67009
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67010
|
+
* @returns {Object.<string,*>} Plain object
|
|
67011
|
+
*/
|
|
67012
|
+
UnaryCallResponse.toObject = function toObject(message, options) {
|
|
67013
|
+
if (!options)
|
|
67014
|
+
options = {};
|
|
67015
|
+
var object = {};
|
|
67016
|
+
if (options.defaults)
|
|
67017
|
+
if ($util.Long) {
|
|
67018
|
+
var long = new $util.Long(0, 0, true);
|
|
67019
|
+
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
67020
|
+
} else
|
|
67021
|
+
object.streamId = options.longs === String ? "0" : 0;
|
|
67022
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
67023
|
+
if (typeof message.streamId === "number")
|
|
67024
|
+
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
67025
|
+
else
|
|
67026
|
+
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
67027
|
+
if (message.response != null && message.hasOwnProperty("response")) {
|
|
67028
|
+
object.response = $root.google.protobuf.Any.toObject(message.response, options);
|
|
67029
|
+
if (options.oneofs)
|
|
67030
|
+
object.body = "response";
|
|
67031
|
+
}
|
|
67032
|
+
if (message.error != null && message.hasOwnProperty("error")) {
|
|
67033
|
+
object.error = $root.replit.goval.api.pid2.Error.toObject(message.error, options);
|
|
67034
|
+
if (options.oneofs)
|
|
67035
|
+
object.body = "error";
|
|
67036
|
+
}
|
|
67037
|
+
return object;
|
|
67038
|
+
};
|
|
67039
|
+
|
|
67040
|
+
/**
|
|
67041
|
+
* Converts this UnaryCallResponse to JSON.
|
|
67042
|
+
* @function toJSON
|
|
67043
|
+
* @memberof replit.goval.api.pid2.UnaryCallResponse
|
|
67044
|
+
* @instance
|
|
67045
|
+
* @returns {Object.<string,*>} JSON object
|
|
67046
|
+
*/
|
|
67047
|
+
UnaryCallResponse.prototype.toJSON = function toJSON() {
|
|
67048
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67049
|
+
};
|
|
67050
|
+
|
|
67051
|
+
return UnaryCallResponse;
|
|
67052
|
+
})();
|
|
67053
|
+
|
|
67054
|
+
pid2.StreamContinuationResponse = (function() {
|
|
67055
|
+
|
|
67056
|
+
/**
|
|
67057
|
+
* Properties of a StreamContinuationResponse.
|
|
67058
|
+
* @memberof replit.goval.api.pid2
|
|
67059
|
+
* @interface IStreamContinuationResponse
|
|
67060
|
+
* @property {number|null} [streamId] StreamContinuationResponse streamId
|
|
67061
|
+
* @property {boolean|null} [streamEnd] StreamContinuationResponse streamEnd
|
|
67062
|
+
* @property {google.protobuf.Any|google.protobuf.IAny|null} [response] StreamContinuationResponse response
|
|
67063
|
+
* @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [error] StreamContinuationResponse error
|
|
67064
|
+
*/
|
|
67065
|
+
|
|
67066
|
+
/**
|
|
67067
|
+
* Constructs a new StreamContinuationResponse.
|
|
67068
|
+
* @memberof replit.goval.api.pid2
|
|
67069
|
+
* @classdesc Represents a StreamContinuationResponse.
|
|
67070
|
+
* @constructor
|
|
67071
|
+
* @param {replit.goval.api.pid2.IStreamContinuationResponse=} [properties] Properties to set
|
|
67072
|
+
*/
|
|
67073
|
+
function StreamContinuationResponse(properties) {
|
|
67074
|
+
if (properties)
|
|
67075
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67076
|
+
if (properties[keys[i]] != null)
|
|
67077
|
+
this[keys[i]] = properties[keys[i]];
|
|
67078
|
+
}
|
|
67079
|
+
|
|
67080
|
+
/**
|
|
67081
|
+
* StreamContinuationResponse streamId.
|
|
67082
|
+
* @member {number} streamId
|
|
67083
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67084
|
+
* @instance
|
|
67085
|
+
*/
|
|
67086
|
+
StreamContinuationResponse.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
67087
|
+
|
|
67088
|
+
/**
|
|
67089
|
+
* StreamContinuationResponse streamEnd.
|
|
67090
|
+
* @member {boolean} streamEnd
|
|
67091
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67092
|
+
* @instance
|
|
67093
|
+
*/
|
|
67094
|
+
StreamContinuationResponse.prototype.streamEnd = false;
|
|
67095
|
+
|
|
67096
|
+
/**
|
|
67097
|
+
* StreamContinuationResponse response.
|
|
67098
|
+
* @member {google.protobuf.Any|null|undefined} response
|
|
67099
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67100
|
+
* @instance
|
|
67101
|
+
*/
|
|
67102
|
+
StreamContinuationResponse.prototype.response = null;
|
|
67103
|
+
|
|
67104
|
+
/**
|
|
67105
|
+
* StreamContinuationResponse error.
|
|
67106
|
+
* @member {replit.goval.api.pid2.Error|null|undefined} error
|
|
67107
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67108
|
+
* @instance
|
|
67109
|
+
*/
|
|
67110
|
+
StreamContinuationResponse.prototype.error = null;
|
|
67111
|
+
|
|
67112
|
+
// OneOf field names bound to virtual getters and setters
|
|
67113
|
+
var $oneOfFields;
|
|
67114
|
+
|
|
67115
|
+
/**
|
|
67116
|
+
* StreamContinuationResponse body.
|
|
67117
|
+
* @member {"response"|"error"|undefined} body
|
|
67118
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67119
|
+
* @instance
|
|
67120
|
+
*/
|
|
67121
|
+
Object.defineProperty(StreamContinuationResponse.prototype, "body", {
|
|
67122
|
+
get: $util.oneOfGetter($oneOfFields = ["response", "error"]),
|
|
67123
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
67124
|
+
});
|
|
67125
|
+
|
|
67126
|
+
/**
|
|
67127
|
+
* Creates a new StreamContinuationResponse instance using the specified properties.
|
|
67128
|
+
* @function create
|
|
67129
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67130
|
+
* @static
|
|
67131
|
+
* @param {replit.goval.api.pid2.IStreamContinuationResponse=} [properties] Properties to set
|
|
67132
|
+
* @returns {replit.goval.api.pid2.StreamContinuationResponse} StreamContinuationResponse instance
|
|
67133
|
+
*/
|
|
67134
|
+
StreamContinuationResponse.create = function create(properties) {
|
|
67135
|
+
return StreamContinuationResponse.fromObject(properties);
|
|
67136
|
+
};
|
|
67137
|
+
|
|
67138
|
+
/**
|
|
67139
|
+
* Encodes the specified StreamContinuationResponse message. Does not implicitly {@link replit.goval.api.pid2.StreamContinuationResponse.verify|verify} messages.
|
|
67140
|
+
* @function encode
|
|
67141
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67142
|
+
* @static
|
|
67143
|
+
* @param {replit.goval.api.pid2.StreamContinuationResponse} message StreamContinuationResponse message or plain object to encode
|
|
67144
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67145
|
+
* @returns {$protobuf.Writer} Writer
|
|
67146
|
+
*/
|
|
67147
|
+
StreamContinuationResponse.encode = function encode(message, writer) {
|
|
67148
|
+
if (!writer)
|
|
67149
|
+
writer = $Writer.create();
|
|
67150
|
+
if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
|
|
67151
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
|
|
67152
|
+
if (message.streamEnd != null && Object.hasOwnProperty.call(message, "streamEnd"))
|
|
67153
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnd);
|
|
67154
|
+
if (message.response != null && Object.hasOwnProperty.call(message, "response"))
|
|
67155
|
+
$root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
67156
|
+
if (message.error != null && Object.hasOwnProperty.call(message, "error"))
|
|
67157
|
+
$root.replit.goval.api.pid2.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
67158
|
+
return writer;
|
|
67159
|
+
};
|
|
67160
|
+
|
|
67161
|
+
/**
|
|
67162
|
+
* Encodes the specified StreamContinuationResponse message, length delimited. Does not implicitly {@link replit.goval.api.pid2.StreamContinuationResponse.verify|verify} messages.
|
|
67163
|
+
* @function encodeDelimited
|
|
67164
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67165
|
+
* @static
|
|
67166
|
+
* @param {replit.goval.api.pid2.StreamContinuationResponse} message StreamContinuationResponse message or plain object to encode
|
|
67167
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67168
|
+
* @returns {$protobuf.Writer} Writer
|
|
67169
|
+
*/
|
|
67170
|
+
StreamContinuationResponse.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67171
|
+
return this.encode(message, writer).ldelim();
|
|
67172
|
+
};
|
|
67173
|
+
|
|
67174
|
+
/**
|
|
67175
|
+
* Decodes a StreamContinuationResponse message from the specified reader or buffer.
|
|
67176
|
+
* @function decode
|
|
67177
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67178
|
+
* @static
|
|
67179
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67180
|
+
* @param {number} [length] Message length if known beforehand
|
|
67181
|
+
* @returns {replit.goval.api.pid2.StreamContinuationResponse} StreamContinuationResponse
|
|
67182
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67183
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67184
|
+
*/
|
|
67185
|
+
StreamContinuationResponse.decode = function decode(reader, length) {
|
|
67186
|
+
if (!(reader instanceof $Reader))
|
|
67187
|
+
reader = $Reader.create(reader);
|
|
67188
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.StreamContinuationResponse();
|
|
67189
|
+
while (reader.pos < end) {
|
|
67190
|
+
var tag = reader.uint32();
|
|
67191
|
+
switch (tag >>> 3) {
|
|
67192
|
+
case 1:
|
|
67193
|
+
message.streamId = reader.uint64();
|
|
67194
|
+
break;
|
|
67195
|
+
case 2:
|
|
67196
|
+
message.streamEnd = reader.bool();
|
|
67197
|
+
break;
|
|
67198
|
+
case 3:
|
|
67199
|
+
message.response = $root.google.protobuf.Any.decode(reader, reader.uint32());
|
|
67200
|
+
break;
|
|
67201
|
+
case 4:
|
|
67202
|
+
message.error = $root.replit.goval.api.pid2.Error.decode(reader, reader.uint32());
|
|
67203
|
+
break;
|
|
67204
|
+
default:
|
|
67205
|
+
reader.skipType(tag & 7);
|
|
67206
|
+
break;
|
|
67207
|
+
}
|
|
67208
|
+
}
|
|
67209
|
+
return message;
|
|
67210
|
+
};
|
|
67211
|
+
|
|
67212
|
+
/**
|
|
67213
|
+
* Decodes a StreamContinuationResponse message from the specified reader or buffer, length delimited.
|
|
67214
|
+
* @function decodeDelimited
|
|
67215
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67216
|
+
* @static
|
|
67217
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67218
|
+
* @returns {replit.goval.api.pid2.StreamContinuationResponse} StreamContinuationResponse
|
|
67219
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67220
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67221
|
+
*/
|
|
67222
|
+
StreamContinuationResponse.decodeDelimited = function decodeDelimited(reader) {
|
|
67223
|
+
if (!(reader instanceof $Reader))
|
|
67224
|
+
reader = new $Reader(reader);
|
|
67225
|
+
return this.decode(reader, reader.uint32());
|
|
67226
|
+
};
|
|
67227
|
+
|
|
67228
|
+
/**
|
|
67229
|
+
* Verifies a StreamContinuationResponse message.
|
|
67230
|
+
* @function verify
|
|
67231
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67232
|
+
* @static
|
|
67233
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
67234
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67235
|
+
*/
|
|
67236
|
+
StreamContinuationResponse.verify = function verify(message) {
|
|
67237
|
+
if (typeof message !== "object" || message === null)
|
|
67238
|
+
return "object expected";
|
|
67239
|
+
var properties = {};
|
|
67240
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
67241
|
+
if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
|
|
67242
|
+
return "streamId: integer|Long expected";
|
|
67243
|
+
if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
|
|
67244
|
+
if (typeof message.streamEnd !== "boolean")
|
|
67245
|
+
return "streamEnd: boolean expected";
|
|
67246
|
+
if (message.response != null && message.hasOwnProperty("response")) {
|
|
67247
|
+
properties.body = 1;
|
|
67248
|
+
{
|
|
67249
|
+
var error = $root.google.protobuf.Any.verify(message.response);
|
|
67250
|
+
if (error)
|
|
67251
|
+
return "response." + error;
|
|
67252
|
+
}
|
|
67253
|
+
}
|
|
67254
|
+
if (message.error != null && message.hasOwnProperty("error")) {
|
|
67255
|
+
if (properties.body === 1)
|
|
67256
|
+
return "body: multiple values";
|
|
67257
|
+
properties.body = 1;
|
|
67258
|
+
{
|
|
67259
|
+
var error = $root.replit.goval.api.pid2.Error.verify(message.error);
|
|
67260
|
+
if (error)
|
|
67261
|
+
return "error." + error;
|
|
67262
|
+
}
|
|
67263
|
+
}
|
|
67264
|
+
return null;
|
|
67265
|
+
};
|
|
67266
|
+
|
|
67267
|
+
/**
|
|
67268
|
+
* Creates a StreamContinuationResponse message from a plain object. Also converts values to their respective internal types.
|
|
67269
|
+
* @function fromObject
|
|
67270
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67271
|
+
* @static
|
|
67272
|
+
* @param {Object.<string,*>} object Plain object
|
|
67273
|
+
* @returns {replit.goval.api.pid2.StreamContinuationResponse} StreamContinuationResponse
|
|
67274
|
+
*/
|
|
67275
|
+
StreamContinuationResponse.fromObject = function fromObject(object) {
|
|
67276
|
+
if (object instanceof $root.replit.goval.api.pid2.StreamContinuationResponse)
|
|
67277
|
+
return object;
|
|
67278
|
+
var message = new $root.replit.goval.api.pid2.StreamContinuationResponse();
|
|
67279
|
+
if (object.streamId != null)
|
|
67280
|
+
if ($util.Long)
|
|
67281
|
+
(message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
|
|
67282
|
+
else if (typeof object.streamId === "string")
|
|
67283
|
+
message.streamId = parseInt(object.streamId, 10);
|
|
67284
|
+
else if (typeof object.streamId === "number")
|
|
67285
|
+
message.streamId = object.streamId;
|
|
67286
|
+
else if (typeof object.streamId === "object")
|
|
67287
|
+
message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
|
|
67288
|
+
if (object.streamEnd != null)
|
|
67289
|
+
message.streamEnd = Boolean(object.streamEnd);
|
|
67290
|
+
if (object.response != null) {
|
|
67291
|
+
if (typeof object.response !== "object")
|
|
67292
|
+
throw TypeError(".replit.goval.api.pid2.StreamContinuationResponse.response: object expected");
|
|
67293
|
+
message.response = $root.google.protobuf.Any.fromObject(object.response);
|
|
67294
|
+
}
|
|
67295
|
+
if (object.error != null) {
|
|
67296
|
+
if (typeof object.error !== "object")
|
|
67297
|
+
throw TypeError(".replit.goval.api.pid2.StreamContinuationResponse.error: object expected");
|
|
67298
|
+
message.error = $root.replit.goval.api.pid2.Error.fromObject(object.error);
|
|
67299
|
+
}
|
|
67300
|
+
return message;
|
|
67301
|
+
};
|
|
67302
|
+
|
|
67303
|
+
/**
|
|
67304
|
+
* Creates a plain object from a StreamContinuationResponse message. Also converts values to other types if specified.
|
|
67305
|
+
* @function toObject
|
|
67306
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67307
|
+
* @static
|
|
67308
|
+
* @param {replit.goval.api.pid2.StreamContinuationResponse} message StreamContinuationResponse
|
|
67309
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67310
|
+
* @returns {Object.<string,*>} Plain object
|
|
67311
|
+
*/
|
|
67312
|
+
StreamContinuationResponse.toObject = function toObject(message, options) {
|
|
67313
|
+
if (!options)
|
|
67314
|
+
options = {};
|
|
67315
|
+
var object = {};
|
|
67316
|
+
if (options.defaults) {
|
|
67317
|
+
if ($util.Long) {
|
|
67318
|
+
var long = new $util.Long(0, 0, true);
|
|
67319
|
+
object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
67320
|
+
} else
|
|
67321
|
+
object.streamId = options.longs === String ? "0" : 0;
|
|
67322
|
+
object.streamEnd = false;
|
|
67323
|
+
}
|
|
67324
|
+
if (message.streamId != null && message.hasOwnProperty("streamId"))
|
|
67325
|
+
if (typeof message.streamId === "number")
|
|
67326
|
+
object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
|
|
67327
|
+
else
|
|
67328
|
+
object.streamId = options.longs === String ? $util.Long.prototype.toString.call(message.streamId) : options.longs === Number ? new $util.LongBits(message.streamId.low >>> 0, message.streamId.high >>> 0).toNumber(true) : message.streamId;
|
|
67329
|
+
if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
|
|
67330
|
+
object.streamEnd = message.streamEnd;
|
|
67331
|
+
if (message.response != null && message.hasOwnProperty("response")) {
|
|
67332
|
+
object.response = $root.google.protobuf.Any.toObject(message.response, options);
|
|
67333
|
+
if (options.oneofs)
|
|
67334
|
+
object.body = "response";
|
|
67335
|
+
}
|
|
67336
|
+
if (message.error != null && message.hasOwnProperty("error")) {
|
|
67337
|
+
object.error = $root.replit.goval.api.pid2.Error.toObject(message.error, options);
|
|
67338
|
+
if (options.oneofs)
|
|
67339
|
+
object.body = "error";
|
|
67340
|
+
}
|
|
67341
|
+
return object;
|
|
67342
|
+
};
|
|
67343
|
+
|
|
67344
|
+
/**
|
|
67345
|
+
* Converts this StreamContinuationResponse to JSON.
|
|
67346
|
+
* @function toJSON
|
|
67347
|
+
* @memberof replit.goval.api.pid2.StreamContinuationResponse
|
|
67348
|
+
* @instance
|
|
67349
|
+
* @returns {Object.<string,*>} JSON object
|
|
67350
|
+
*/
|
|
67351
|
+
StreamContinuationResponse.prototype.toJSON = function toJSON() {
|
|
67352
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67353
|
+
};
|
|
67354
|
+
|
|
67355
|
+
return StreamContinuationResponse;
|
|
67356
|
+
})();
|
|
67357
|
+
|
|
67358
|
+
pid2.Error = (function() {
|
|
67359
|
+
|
|
67360
|
+
/**
|
|
67361
|
+
* Properties of an Error.
|
|
67362
|
+
* @memberof replit.goval.api.pid2
|
|
67363
|
+
* @interface IError
|
|
67364
|
+
* @property {replit.goval.api.pid2.Error.Code|null} [code] Error code
|
|
67365
|
+
* @property {string|null} [message] Error message
|
|
67366
|
+
*/
|
|
67367
|
+
|
|
67368
|
+
/**
|
|
67369
|
+
* Constructs a new Error.
|
|
67370
|
+
* @memberof replit.goval.api.pid2
|
|
67371
|
+
* @classdesc Represents an Error.
|
|
67372
|
+
* @constructor
|
|
67373
|
+
* @param {replit.goval.api.pid2.IError=} [properties] Properties to set
|
|
67374
|
+
*/
|
|
67375
|
+
function Error(properties) {
|
|
67376
|
+
if (properties)
|
|
67377
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67378
|
+
if (properties[keys[i]] != null)
|
|
67379
|
+
this[keys[i]] = properties[keys[i]];
|
|
67380
|
+
}
|
|
67381
|
+
|
|
67382
|
+
/**
|
|
67383
|
+
* Error code.
|
|
67384
|
+
* @member {replit.goval.api.pid2.Error.Code} code
|
|
67385
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67386
|
+
* @instance
|
|
67387
|
+
*/
|
|
67388
|
+
Error.prototype.code = 0;
|
|
67389
|
+
|
|
67390
|
+
/**
|
|
67391
|
+
* Error message.
|
|
67392
|
+
* @member {string} message
|
|
67393
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67394
|
+
* @instance
|
|
67395
|
+
*/
|
|
67396
|
+
Error.prototype.message = "";
|
|
67397
|
+
|
|
67398
|
+
/**
|
|
67399
|
+
* Creates a new Error instance using the specified properties.
|
|
67400
|
+
* @function create
|
|
67401
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67402
|
+
* @static
|
|
67403
|
+
* @param {replit.goval.api.pid2.IError=} [properties] Properties to set
|
|
67404
|
+
* @returns {replit.goval.api.pid2.Error} Error instance
|
|
67405
|
+
*/
|
|
67406
|
+
Error.create = function create(properties) {
|
|
67407
|
+
return Error.fromObject(properties);
|
|
67408
|
+
};
|
|
67409
|
+
|
|
67410
|
+
/**
|
|
67411
|
+
* Encodes the specified Error message. Does not implicitly {@link replit.goval.api.pid2.Error.verify|verify} messages.
|
|
67412
|
+
* @function encode
|
|
67413
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67414
|
+
* @static
|
|
67415
|
+
* @param {replit.goval.api.pid2.Error} message Error message or plain object to encode
|
|
67416
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67417
|
+
* @returns {$protobuf.Writer} Writer
|
|
67418
|
+
*/
|
|
67419
|
+
Error.encode = function encode(message, writer) {
|
|
67420
|
+
if (!writer)
|
|
67421
|
+
writer = $Writer.create();
|
|
67422
|
+
if (message.code != null && Object.hasOwnProperty.call(message, "code"))
|
|
67423
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
|
|
67424
|
+
if (message.message != null && Object.hasOwnProperty.call(message, "message"))
|
|
67425
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
67426
|
+
return writer;
|
|
67427
|
+
};
|
|
67428
|
+
|
|
67429
|
+
/**
|
|
67430
|
+
* Encodes the specified Error message, length delimited. Does not implicitly {@link replit.goval.api.pid2.Error.verify|verify} messages.
|
|
67431
|
+
* @function encodeDelimited
|
|
67432
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67433
|
+
* @static
|
|
67434
|
+
* @param {replit.goval.api.pid2.Error} message Error message or plain object to encode
|
|
67435
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67436
|
+
* @returns {$protobuf.Writer} Writer
|
|
67437
|
+
*/
|
|
67438
|
+
Error.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67439
|
+
return this.encode(message, writer).ldelim();
|
|
67440
|
+
};
|
|
67441
|
+
|
|
67442
|
+
/**
|
|
67443
|
+
* Decodes an Error message from the specified reader or buffer.
|
|
67444
|
+
* @function decode
|
|
67445
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67446
|
+
* @static
|
|
67447
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67448
|
+
* @param {number} [length] Message length if known beforehand
|
|
67449
|
+
* @returns {replit.goval.api.pid2.Error} Error
|
|
67450
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67451
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67452
|
+
*/
|
|
67453
|
+
Error.decode = function decode(reader, length) {
|
|
67454
|
+
if (!(reader instanceof $Reader))
|
|
67455
|
+
reader = $Reader.create(reader);
|
|
67456
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.Error();
|
|
67457
|
+
while (reader.pos < end) {
|
|
67458
|
+
var tag = reader.uint32();
|
|
67459
|
+
switch (tag >>> 3) {
|
|
67460
|
+
case 1:
|
|
67461
|
+
message.code = reader.int32();
|
|
67462
|
+
break;
|
|
67463
|
+
case 2:
|
|
67464
|
+
message.message = reader.string();
|
|
67465
|
+
break;
|
|
67466
|
+
default:
|
|
67467
|
+
reader.skipType(tag & 7);
|
|
67468
|
+
break;
|
|
67469
|
+
}
|
|
67470
|
+
}
|
|
67471
|
+
return message;
|
|
67472
|
+
};
|
|
67473
|
+
|
|
67474
|
+
/**
|
|
67475
|
+
* Decodes an Error message from the specified reader or buffer, length delimited.
|
|
67476
|
+
* @function decodeDelimited
|
|
67477
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67478
|
+
* @static
|
|
67479
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67480
|
+
* @returns {replit.goval.api.pid2.Error} Error
|
|
67481
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67482
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67483
|
+
*/
|
|
67484
|
+
Error.decodeDelimited = function decodeDelimited(reader) {
|
|
67485
|
+
if (!(reader instanceof $Reader))
|
|
67486
|
+
reader = new $Reader(reader);
|
|
67487
|
+
return this.decode(reader, reader.uint32());
|
|
67488
|
+
};
|
|
67489
|
+
|
|
67490
|
+
/**
|
|
67491
|
+
* Verifies an Error message.
|
|
67492
|
+
* @function verify
|
|
67493
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67494
|
+
* @static
|
|
67495
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
67496
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67497
|
+
*/
|
|
67498
|
+
Error.verify = function verify(message) {
|
|
67499
|
+
if (typeof message !== "object" || message === null)
|
|
67500
|
+
return "object expected";
|
|
67501
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
67502
|
+
switch (message.code) {
|
|
67503
|
+
default:
|
|
67504
|
+
return "code: enum value expected";
|
|
67505
|
+
case 0:
|
|
67506
|
+
case 1:
|
|
67507
|
+
case 2:
|
|
67508
|
+
case 3:
|
|
67509
|
+
case 4:
|
|
67510
|
+
case 5:
|
|
67511
|
+
case 6:
|
|
67512
|
+
case 7:
|
|
67513
|
+
case 8:
|
|
67514
|
+
case 9:
|
|
67515
|
+
case 10:
|
|
67516
|
+
case 11:
|
|
67517
|
+
case 12:
|
|
67518
|
+
case 13:
|
|
67519
|
+
case 14:
|
|
67520
|
+
case 15:
|
|
67521
|
+
case 16:
|
|
67522
|
+
break;
|
|
67523
|
+
}
|
|
67524
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
67525
|
+
if (!$util.isString(message.message))
|
|
67526
|
+
return "message: string expected";
|
|
67527
|
+
return null;
|
|
67528
|
+
};
|
|
67529
|
+
|
|
67530
|
+
/**
|
|
67531
|
+
* Creates an Error message from a plain object. Also converts values to their respective internal types.
|
|
67532
|
+
* @function fromObject
|
|
67533
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67534
|
+
* @static
|
|
67535
|
+
* @param {Object.<string,*>} object Plain object
|
|
67536
|
+
* @returns {replit.goval.api.pid2.Error} Error
|
|
67537
|
+
*/
|
|
67538
|
+
Error.fromObject = function fromObject(object) {
|
|
67539
|
+
if (object instanceof $root.replit.goval.api.pid2.Error)
|
|
67540
|
+
return object;
|
|
67541
|
+
var message = new $root.replit.goval.api.pid2.Error();
|
|
67542
|
+
switch (object.code) {
|
|
67543
|
+
case "OK":
|
|
67544
|
+
case 0:
|
|
67545
|
+
message.code = 0;
|
|
67546
|
+
break;
|
|
67547
|
+
case "CANCELED":
|
|
67548
|
+
case 1:
|
|
67549
|
+
message.code = 1;
|
|
67550
|
+
break;
|
|
67551
|
+
case "UNKNOWN":
|
|
67552
|
+
case 2:
|
|
67553
|
+
message.code = 2;
|
|
67554
|
+
break;
|
|
67555
|
+
case "INVALID_ARGUMENT":
|
|
67556
|
+
case 3:
|
|
67557
|
+
message.code = 3;
|
|
67558
|
+
break;
|
|
67559
|
+
case "DEADLINE_EXCEEDED":
|
|
67560
|
+
case 4:
|
|
67561
|
+
message.code = 4;
|
|
67562
|
+
break;
|
|
67563
|
+
case "NOT_FOUND":
|
|
67564
|
+
case 5:
|
|
67565
|
+
message.code = 5;
|
|
67566
|
+
break;
|
|
67567
|
+
case "ALREADY_EXISTS":
|
|
67568
|
+
case 6:
|
|
67569
|
+
message.code = 6;
|
|
67570
|
+
break;
|
|
67571
|
+
case "PERMISSION_DENIED":
|
|
67572
|
+
case 7:
|
|
67573
|
+
message.code = 7;
|
|
67574
|
+
break;
|
|
67575
|
+
case "RESOURCE_EXHAUSTED":
|
|
67576
|
+
case 8:
|
|
67577
|
+
message.code = 8;
|
|
67578
|
+
break;
|
|
67579
|
+
case "FAILED_PRECONDITION":
|
|
67580
|
+
case 9:
|
|
67581
|
+
message.code = 9;
|
|
67582
|
+
break;
|
|
67583
|
+
case "ABORTED":
|
|
67584
|
+
case 10:
|
|
67585
|
+
message.code = 10;
|
|
67586
|
+
break;
|
|
67587
|
+
case "OUT_OF_RANGE":
|
|
67588
|
+
case 11:
|
|
67589
|
+
message.code = 11;
|
|
67590
|
+
break;
|
|
67591
|
+
case "UNIMPLEMENTED":
|
|
67592
|
+
case 12:
|
|
67593
|
+
message.code = 12;
|
|
67594
|
+
break;
|
|
67595
|
+
case "INTERNAL":
|
|
67596
|
+
case 13:
|
|
67597
|
+
message.code = 13;
|
|
67598
|
+
break;
|
|
67599
|
+
case "UNAVAILABLE":
|
|
67600
|
+
case 14:
|
|
67601
|
+
message.code = 14;
|
|
67602
|
+
break;
|
|
67603
|
+
case "DATA_LOSS":
|
|
67604
|
+
case 15:
|
|
67605
|
+
message.code = 15;
|
|
67606
|
+
break;
|
|
67607
|
+
case "UNAUTHENTICATED":
|
|
67608
|
+
case 16:
|
|
67609
|
+
message.code = 16;
|
|
67610
|
+
break;
|
|
67611
|
+
}
|
|
67612
|
+
if (object.message != null)
|
|
67613
|
+
message.message = String(object.message);
|
|
67614
|
+
return message;
|
|
67615
|
+
};
|
|
67616
|
+
|
|
67617
|
+
/**
|
|
67618
|
+
* Creates a plain object from an Error message. Also converts values to other types if specified.
|
|
67619
|
+
* @function toObject
|
|
67620
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67621
|
+
* @static
|
|
67622
|
+
* @param {replit.goval.api.pid2.Error} message Error
|
|
67623
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67624
|
+
* @returns {Object.<string,*>} Plain object
|
|
67625
|
+
*/
|
|
67626
|
+
Error.toObject = function toObject(message, options) {
|
|
67627
|
+
if (!options)
|
|
67628
|
+
options = {};
|
|
67629
|
+
var object = {};
|
|
67630
|
+
if (options.defaults) {
|
|
67631
|
+
object.code = options.enums === String ? "OK" : 0;
|
|
67632
|
+
object.message = "";
|
|
67633
|
+
}
|
|
67634
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
67635
|
+
object.code = options.enums === String ? $root.replit.goval.api.pid2.Error.Code[message.code] : message.code;
|
|
67636
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
67637
|
+
object.message = message.message;
|
|
67638
|
+
return object;
|
|
67639
|
+
};
|
|
67640
|
+
|
|
67641
|
+
/**
|
|
67642
|
+
* Converts this Error to JSON.
|
|
67643
|
+
* @function toJSON
|
|
67644
|
+
* @memberof replit.goval.api.pid2.Error
|
|
67645
|
+
* @instance
|
|
67646
|
+
* @returns {Object.<string,*>} JSON object
|
|
67647
|
+
*/
|
|
67648
|
+
Error.prototype.toJSON = function toJSON() {
|
|
67649
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67650
|
+
};
|
|
67651
|
+
|
|
67652
|
+
/**
|
|
67653
|
+
* Code enum.
|
|
67654
|
+
* @name replit.goval.api.pid2.Error.Code
|
|
67655
|
+
* @enum {number}
|
|
67656
|
+
* @property {number} OK=0 OK value
|
|
67657
|
+
* @property {number} CANCELED=1 CANCELED value
|
|
67658
|
+
* @property {number} UNKNOWN=2 UNKNOWN value
|
|
67659
|
+
* @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value
|
|
67660
|
+
* @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value
|
|
67661
|
+
* @property {number} NOT_FOUND=5 NOT_FOUND value
|
|
67662
|
+
* @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value
|
|
67663
|
+
* @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value
|
|
67664
|
+
* @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value
|
|
67665
|
+
* @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value
|
|
67666
|
+
* @property {number} ABORTED=10 ABORTED value
|
|
67667
|
+
* @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value
|
|
67668
|
+
* @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value
|
|
67669
|
+
* @property {number} INTERNAL=13 INTERNAL value
|
|
67670
|
+
* @property {number} UNAVAILABLE=14 UNAVAILABLE value
|
|
67671
|
+
* @property {number} DATA_LOSS=15 DATA_LOSS value
|
|
67672
|
+
* @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value
|
|
67673
|
+
*/
|
|
67674
|
+
Error.Code = (function() {
|
|
67675
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
67676
|
+
values[valuesById[0] = "OK"] = 0;
|
|
67677
|
+
values[valuesById[1] = "CANCELED"] = 1;
|
|
67678
|
+
values[valuesById[2] = "UNKNOWN"] = 2;
|
|
67679
|
+
values[valuesById[3] = "INVALID_ARGUMENT"] = 3;
|
|
67680
|
+
values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4;
|
|
67681
|
+
values[valuesById[5] = "NOT_FOUND"] = 5;
|
|
67682
|
+
values[valuesById[6] = "ALREADY_EXISTS"] = 6;
|
|
67683
|
+
values[valuesById[7] = "PERMISSION_DENIED"] = 7;
|
|
67684
|
+
values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8;
|
|
67685
|
+
values[valuesById[9] = "FAILED_PRECONDITION"] = 9;
|
|
67686
|
+
values[valuesById[10] = "ABORTED"] = 10;
|
|
67687
|
+
values[valuesById[11] = "OUT_OF_RANGE"] = 11;
|
|
67688
|
+
values[valuesById[12] = "UNIMPLEMENTED"] = 12;
|
|
67689
|
+
values[valuesById[13] = "INTERNAL"] = 13;
|
|
67690
|
+
values[valuesById[14] = "UNAVAILABLE"] = 14;
|
|
67691
|
+
values[valuesById[15] = "DATA_LOSS"] = 15;
|
|
67692
|
+
values[valuesById[16] = "UNAUTHENTICATED"] = 16;
|
|
67693
|
+
return values;
|
|
67694
|
+
})();
|
|
67695
|
+
|
|
67696
|
+
return Error;
|
|
67697
|
+
})();
|
|
67698
|
+
|
|
67699
|
+
pid2.Ping = (function() {
|
|
67700
|
+
|
|
67701
|
+
/**
|
|
67702
|
+
* Properties of a Ping.
|
|
67703
|
+
* @memberof replit.goval.api.pid2
|
|
67704
|
+
* @interface IPing
|
|
67705
|
+
* @property {number|null} [nonce] Ping nonce
|
|
67706
|
+
*/
|
|
67707
|
+
|
|
67708
|
+
/**
|
|
67709
|
+
* Constructs a new Ping.
|
|
67710
|
+
* @memberof replit.goval.api.pid2
|
|
67711
|
+
* @classdesc Represents a Ping.
|
|
67712
|
+
* @constructor
|
|
67713
|
+
* @param {replit.goval.api.pid2.IPing=} [properties] Properties to set
|
|
67714
|
+
*/
|
|
67715
|
+
function Ping(properties) {
|
|
67716
|
+
if (properties)
|
|
67717
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67718
|
+
if (properties[keys[i]] != null)
|
|
67719
|
+
this[keys[i]] = properties[keys[i]];
|
|
67720
|
+
}
|
|
67721
|
+
|
|
67722
|
+
/**
|
|
67723
|
+
* Ping nonce.
|
|
67724
|
+
* @member {number} nonce
|
|
67725
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67726
|
+
* @instance
|
|
67727
|
+
*/
|
|
67728
|
+
Ping.prototype.nonce = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
67729
|
+
|
|
67730
|
+
/**
|
|
67731
|
+
* Creates a new Ping instance using the specified properties.
|
|
67732
|
+
* @function create
|
|
67733
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67734
|
+
* @static
|
|
67735
|
+
* @param {replit.goval.api.pid2.IPing=} [properties] Properties to set
|
|
67736
|
+
* @returns {replit.goval.api.pid2.Ping} Ping instance
|
|
67737
|
+
*/
|
|
67738
|
+
Ping.create = function create(properties) {
|
|
67739
|
+
return Ping.fromObject(properties);
|
|
67740
|
+
};
|
|
67741
|
+
|
|
67742
|
+
/**
|
|
67743
|
+
* Encodes the specified Ping message. Does not implicitly {@link replit.goval.api.pid2.Ping.verify|verify} messages.
|
|
67744
|
+
* @function encode
|
|
67745
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67746
|
+
* @static
|
|
67747
|
+
* @param {replit.goval.api.pid2.Ping} message Ping message or plain object to encode
|
|
67748
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67749
|
+
* @returns {$protobuf.Writer} Writer
|
|
67750
|
+
*/
|
|
67751
|
+
Ping.encode = function encode(message, writer) {
|
|
67752
|
+
if (!writer)
|
|
67753
|
+
writer = $Writer.create();
|
|
67754
|
+
if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
|
|
67755
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.nonce);
|
|
67756
|
+
return writer;
|
|
67757
|
+
};
|
|
67758
|
+
|
|
67759
|
+
/**
|
|
67760
|
+
* Encodes the specified Ping message, length delimited. Does not implicitly {@link replit.goval.api.pid2.Ping.verify|verify} messages.
|
|
67761
|
+
* @function encodeDelimited
|
|
67762
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67763
|
+
* @static
|
|
67764
|
+
* @param {replit.goval.api.pid2.Ping} message Ping message or plain object to encode
|
|
67765
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67766
|
+
* @returns {$protobuf.Writer} Writer
|
|
67767
|
+
*/
|
|
67768
|
+
Ping.encodeDelimited = function encodeDelimited(message, writer) {
|
|
67769
|
+
return this.encode(message, writer).ldelim();
|
|
67770
|
+
};
|
|
67771
|
+
|
|
67772
|
+
/**
|
|
67773
|
+
* Decodes a Ping message from the specified reader or buffer.
|
|
67774
|
+
* @function decode
|
|
67775
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67776
|
+
* @static
|
|
67777
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67778
|
+
* @param {number} [length] Message length if known beforehand
|
|
67779
|
+
* @returns {replit.goval.api.pid2.Ping} Ping
|
|
67780
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67781
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67782
|
+
*/
|
|
67783
|
+
Ping.decode = function decode(reader, length) {
|
|
67784
|
+
if (!(reader instanceof $Reader))
|
|
67785
|
+
reader = $Reader.create(reader);
|
|
67786
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.Ping();
|
|
67787
|
+
while (reader.pos < end) {
|
|
67788
|
+
var tag = reader.uint32();
|
|
67789
|
+
switch (tag >>> 3) {
|
|
67790
|
+
case 1:
|
|
67791
|
+
message.nonce = reader.uint64();
|
|
67792
|
+
break;
|
|
67793
|
+
default:
|
|
67794
|
+
reader.skipType(tag & 7);
|
|
67795
|
+
break;
|
|
67796
|
+
}
|
|
67797
|
+
}
|
|
67798
|
+
return message;
|
|
67799
|
+
};
|
|
67800
|
+
|
|
67801
|
+
/**
|
|
67802
|
+
* Decodes a Ping message from the specified reader or buffer, length delimited.
|
|
67803
|
+
* @function decodeDelimited
|
|
67804
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67805
|
+
* @static
|
|
67806
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
67807
|
+
* @returns {replit.goval.api.pid2.Ping} Ping
|
|
67808
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
67809
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
67810
|
+
*/
|
|
67811
|
+
Ping.decodeDelimited = function decodeDelimited(reader) {
|
|
67812
|
+
if (!(reader instanceof $Reader))
|
|
67813
|
+
reader = new $Reader(reader);
|
|
67814
|
+
return this.decode(reader, reader.uint32());
|
|
67815
|
+
};
|
|
67816
|
+
|
|
67817
|
+
/**
|
|
67818
|
+
* Verifies a Ping message.
|
|
67819
|
+
* @function verify
|
|
67820
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67821
|
+
* @static
|
|
67822
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
67823
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
67824
|
+
*/
|
|
67825
|
+
Ping.verify = function verify(message) {
|
|
67826
|
+
if (typeof message !== "object" || message === null)
|
|
67827
|
+
return "object expected";
|
|
67828
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
67829
|
+
if (!$util.isInteger(message.nonce) && !(message.nonce && $util.isInteger(message.nonce.low) && $util.isInteger(message.nonce.high)))
|
|
67830
|
+
return "nonce: integer|Long expected";
|
|
67831
|
+
return null;
|
|
67832
|
+
};
|
|
67833
|
+
|
|
67834
|
+
/**
|
|
67835
|
+
* Creates a Ping message from a plain object. Also converts values to their respective internal types.
|
|
67836
|
+
* @function fromObject
|
|
67837
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67838
|
+
* @static
|
|
67839
|
+
* @param {Object.<string,*>} object Plain object
|
|
67840
|
+
* @returns {replit.goval.api.pid2.Ping} Ping
|
|
67841
|
+
*/
|
|
67842
|
+
Ping.fromObject = function fromObject(object) {
|
|
67843
|
+
if (object instanceof $root.replit.goval.api.pid2.Ping)
|
|
67844
|
+
return object;
|
|
67845
|
+
var message = new $root.replit.goval.api.pid2.Ping();
|
|
67846
|
+
if (object.nonce != null)
|
|
67847
|
+
if ($util.Long)
|
|
67848
|
+
(message.nonce = $util.Long.fromValue(object.nonce)).unsigned = true;
|
|
67849
|
+
else if (typeof object.nonce === "string")
|
|
67850
|
+
message.nonce = parseInt(object.nonce, 10);
|
|
67851
|
+
else if (typeof object.nonce === "number")
|
|
67852
|
+
message.nonce = object.nonce;
|
|
67853
|
+
else if (typeof object.nonce === "object")
|
|
67854
|
+
message.nonce = new $util.LongBits(object.nonce.low >>> 0, object.nonce.high >>> 0).toNumber(true);
|
|
67855
|
+
return message;
|
|
67856
|
+
};
|
|
67857
|
+
|
|
67858
|
+
/**
|
|
67859
|
+
* Creates a plain object from a Ping message. Also converts values to other types if specified.
|
|
67860
|
+
* @function toObject
|
|
67861
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67862
|
+
* @static
|
|
67863
|
+
* @param {replit.goval.api.pid2.Ping} message Ping
|
|
67864
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
67865
|
+
* @returns {Object.<string,*>} Plain object
|
|
67866
|
+
*/
|
|
67867
|
+
Ping.toObject = function toObject(message, options) {
|
|
67868
|
+
if (!options)
|
|
67869
|
+
options = {};
|
|
67870
|
+
var object = {};
|
|
67871
|
+
if (options.defaults)
|
|
67872
|
+
if ($util.Long) {
|
|
67873
|
+
var long = new $util.Long(0, 0, true);
|
|
67874
|
+
object.nonce = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
67875
|
+
} else
|
|
67876
|
+
object.nonce = options.longs === String ? "0" : 0;
|
|
67877
|
+
if (message.nonce != null && message.hasOwnProperty("nonce"))
|
|
67878
|
+
if (typeof message.nonce === "number")
|
|
67879
|
+
object.nonce = options.longs === String ? String(message.nonce) : message.nonce;
|
|
67880
|
+
else
|
|
67881
|
+
object.nonce = options.longs === String ? $util.Long.prototype.toString.call(message.nonce) : options.longs === Number ? new $util.LongBits(message.nonce.low >>> 0, message.nonce.high >>> 0).toNumber(true) : message.nonce;
|
|
67882
|
+
return object;
|
|
67883
|
+
};
|
|
67884
|
+
|
|
67885
|
+
/**
|
|
67886
|
+
* Converts this Ping to JSON.
|
|
67887
|
+
* @function toJSON
|
|
67888
|
+
* @memberof replit.goval.api.pid2.Ping
|
|
67889
|
+
* @instance
|
|
67890
|
+
* @returns {Object.<string,*>} JSON object
|
|
67891
|
+
*/
|
|
67892
|
+
Ping.prototype.toJSON = function toJSON() {
|
|
67893
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
67894
|
+
};
|
|
67895
|
+
|
|
67896
|
+
return Ping;
|
|
67897
|
+
})();
|
|
67898
|
+
|
|
67899
|
+
return pid2;
|
|
67900
|
+
})();
|
|
67901
|
+
|
|
67902
|
+
return api;
|
|
67903
|
+
})();
|
|
67904
|
+
|
|
67905
|
+
return goval;
|
|
67906
|
+
})();
|
|
67907
|
+
|
|
67908
|
+
return replit;
|
|
67909
|
+
})();
|
|
67910
|
+
|
|
67911
|
+
$root.google = (function() {
|
|
67912
|
+
|
|
67913
|
+
/**
|
|
67914
|
+
* Namespace google.
|
|
67915
|
+
* @exports google
|
|
67916
|
+
* @namespace
|
|
67917
|
+
*/
|
|
67918
|
+
var google = {};
|
|
67919
|
+
|
|
67920
|
+
google.protobuf = (function() {
|
|
67921
|
+
|
|
67922
|
+
/**
|
|
67923
|
+
* Namespace protobuf.
|
|
67924
|
+
* @memberof google
|
|
67925
|
+
* @namespace
|
|
67926
|
+
*/
|
|
67927
|
+
var protobuf = {};
|
|
67928
|
+
|
|
67929
|
+
protobuf.Timestamp = (function() {
|
|
67930
|
+
|
|
67931
|
+
/**
|
|
67932
|
+
* Properties of a Timestamp.
|
|
67933
|
+
* @memberof google.protobuf
|
|
67934
|
+
* @interface ITimestamp
|
|
67935
|
+
* @property {number|null} [seconds] Timestamp seconds
|
|
67936
|
+
* @property {number|null} [nanos] Timestamp nanos
|
|
67937
|
+
*/
|
|
67938
|
+
|
|
67939
|
+
/**
|
|
67940
|
+
* Constructs a new Timestamp.
|
|
67941
|
+
* @memberof google.protobuf
|
|
67942
|
+
* @classdesc Represents a Timestamp.
|
|
67943
|
+
* @constructor
|
|
67944
|
+
* @param {google.protobuf.ITimestamp=} [properties] Properties to set
|
|
67945
|
+
*/
|
|
67946
|
+
function Timestamp(properties) {
|
|
67947
|
+
if (properties)
|
|
67948
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
67949
|
+
if (properties[keys[i]] != null)
|
|
67950
|
+
this[keys[i]] = properties[keys[i]];
|
|
67951
|
+
}
|
|
67952
|
+
|
|
67953
|
+
/**
|
|
67954
|
+
* Timestamp seconds.
|
|
67955
|
+
* @member {number} seconds
|
|
67956
|
+
* @memberof google.protobuf.Timestamp
|
|
67957
|
+
* @instance
|
|
67958
|
+
*/
|
|
67959
|
+
Timestamp.prototype.seconds = $util.Long ? $util.Long.fromBits(0,0,false) : 0;
|
|
67960
|
+
|
|
67961
|
+
/**
|
|
67962
|
+
* Timestamp nanos.
|
|
67963
|
+
* @member {number} nanos
|
|
67964
|
+
* @memberof google.protobuf.Timestamp
|
|
67965
|
+
* @instance
|
|
67966
|
+
*/
|
|
67967
|
+
Timestamp.prototype.nanos = 0;
|
|
67968
|
+
|
|
67969
|
+
/**
|
|
67970
|
+
* Creates a new Timestamp instance using the specified properties.
|
|
67971
|
+
* @function create
|
|
67972
|
+
* @memberof google.protobuf.Timestamp
|
|
67973
|
+
* @static
|
|
67974
|
+
* @param {google.protobuf.ITimestamp=} [properties] Properties to set
|
|
67975
|
+
* @returns {google.protobuf.Timestamp} Timestamp instance
|
|
67976
|
+
*/
|
|
67977
|
+
Timestamp.create = function create(properties) {
|
|
67978
|
+
return Timestamp.fromObject(properties);
|
|
67979
|
+
};
|
|
67980
|
+
|
|
67981
|
+
/**
|
|
67982
|
+
* Encodes the specified Timestamp message. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
67983
|
+
* @function encode
|
|
67984
|
+
* @memberof google.protobuf.Timestamp
|
|
67985
|
+
* @static
|
|
67986
|
+
* @param {google.protobuf.Timestamp} message Timestamp message or plain object to encode
|
|
67987
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
67988
|
+
* @returns {$protobuf.Writer} Writer
|
|
67989
|
+
*/
|
|
67990
|
+
Timestamp.encode = function encode(message, writer) {
|
|
67991
|
+
if (!writer)
|
|
67992
|
+
writer = $Writer.create();
|
|
67993
|
+
if (message.seconds != null && Object.hasOwnProperty.call(message, "seconds"))
|
|
67994
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int64(message.seconds);
|
|
67995
|
+
if (message.nanos != null && Object.hasOwnProperty.call(message, "nanos"))
|
|
67996
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.nanos);
|
|
67997
|
+
return writer;
|
|
67998
|
+
};
|
|
67999
|
+
|
|
68000
|
+
/**
|
|
68001
|
+
* Encodes the specified Timestamp message, length delimited. Does not implicitly {@link google.protobuf.Timestamp.verify|verify} messages.
|
|
68002
|
+
* @function encodeDelimited
|
|
68003
|
+
* @memberof google.protobuf.Timestamp
|
|
68004
|
+
* @static
|
|
68005
|
+
* @param {google.protobuf.Timestamp} message Timestamp message or plain object to encode
|
|
68006
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68007
|
+
* @returns {$protobuf.Writer} Writer
|
|
68008
|
+
*/
|
|
68009
|
+
Timestamp.encodeDelimited = function encodeDelimited(message, writer) {
|
|
68010
|
+
return this.encode(message, writer).ldelim();
|
|
68011
|
+
};
|
|
68012
|
+
|
|
68013
|
+
/**
|
|
68014
|
+
* Decodes a Timestamp message from the specified reader or buffer.
|
|
68015
|
+
* @function decode
|
|
68016
|
+
* @memberof google.protobuf.Timestamp
|
|
68017
|
+
* @static
|
|
68018
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68019
|
+
* @param {number} [length] Message length if known beforehand
|
|
68020
|
+
* @returns {google.protobuf.Timestamp} Timestamp
|
|
68021
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68022
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68023
|
+
*/
|
|
68024
|
+
Timestamp.decode = function decode(reader, length) {
|
|
68025
|
+
if (!(reader instanceof $Reader))
|
|
68026
|
+
reader = $Reader.create(reader);
|
|
68027
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Timestamp();
|
|
68028
|
+
while (reader.pos < end) {
|
|
68029
|
+
var tag = reader.uint32();
|
|
68030
|
+
switch (tag >>> 3) {
|
|
68031
|
+
case 1:
|
|
68032
|
+
message.seconds = reader.int64();
|
|
68033
|
+
break;
|
|
68034
|
+
case 2:
|
|
68035
|
+
message.nanos = reader.int32();
|
|
68036
|
+
break;
|
|
68037
|
+
default:
|
|
68038
|
+
reader.skipType(tag & 7);
|
|
68039
|
+
break;
|
|
68040
|
+
}
|
|
68041
|
+
}
|
|
68042
|
+
return message;
|
|
68043
|
+
};
|
|
68044
|
+
|
|
68045
|
+
/**
|
|
68046
|
+
* Decodes a Timestamp message from the specified reader or buffer, length delimited.
|
|
68047
|
+
* @function decodeDelimited
|
|
68048
|
+
* @memberof google.protobuf.Timestamp
|
|
68049
|
+
* @static
|
|
68050
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68051
|
+
* @returns {google.protobuf.Timestamp} Timestamp
|
|
68052
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68053
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68054
|
+
*/
|
|
68055
|
+
Timestamp.decodeDelimited = function decodeDelimited(reader) {
|
|
68056
|
+
if (!(reader instanceof $Reader))
|
|
68057
|
+
reader = new $Reader(reader);
|
|
68058
|
+
return this.decode(reader, reader.uint32());
|
|
68059
|
+
};
|
|
68060
|
+
|
|
68061
|
+
/**
|
|
68062
|
+
* Verifies a Timestamp message.
|
|
68063
|
+
* @function verify
|
|
68064
|
+
* @memberof google.protobuf.Timestamp
|
|
68065
|
+
* @static
|
|
68066
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
68067
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
68068
|
+
*/
|
|
68069
|
+
Timestamp.verify = function verify(message) {
|
|
68070
|
+
if (typeof message !== "object" || message === null)
|
|
68071
|
+
return "object expected";
|
|
68072
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
68073
|
+
if (!$util.isInteger(message.seconds) && !(message.seconds && $util.isInteger(message.seconds.low) && $util.isInteger(message.seconds.high)))
|
|
68074
|
+
return "seconds: integer|Long expected";
|
|
68075
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
68076
|
+
if (!$util.isInteger(message.nanos))
|
|
68077
|
+
return "nanos: integer expected";
|
|
68078
|
+
return null;
|
|
68079
|
+
};
|
|
68080
|
+
|
|
68081
|
+
/**
|
|
68082
|
+
* Creates a Timestamp message from a plain object. Also converts values to their respective internal types.
|
|
68083
|
+
* @function fromObject
|
|
68084
|
+
* @memberof google.protobuf.Timestamp
|
|
68085
|
+
* @static
|
|
68086
|
+
* @param {Object.<string,*>} object Plain object
|
|
68087
|
+
* @returns {google.protobuf.Timestamp} Timestamp
|
|
68088
|
+
*/
|
|
68089
|
+
Timestamp.fromObject = function fromObject(object) {
|
|
68090
|
+
if (object instanceof $root.google.protobuf.Timestamp)
|
|
68091
|
+
return object;
|
|
68092
|
+
var message = new $root.google.protobuf.Timestamp();
|
|
68093
|
+
if (object.seconds != null)
|
|
68094
|
+
if ($util.Long)
|
|
68095
|
+
(message.seconds = $util.Long.fromValue(object.seconds)).unsigned = false;
|
|
68096
|
+
else if (typeof object.seconds === "string")
|
|
68097
|
+
message.seconds = parseInt(object.seconds, 10);
|
|
68098
|
+
else if (typeof object.seconds === "number")
|
|
68099
|
+
message.seconds = object.seconds;
|
|
68100
|
+
else if (typeof object.seconds === "object")
|
|
68101
|
+
message.seconds = new $util.LongBits(object.seconds.low >>> 0, object.seconds.high >>> 0).toNumber();
|
|
68102
|
+
if (object.nanos != null)
|
|
68103
|
+
message.nanos = object.nanos | 0;
|
|
68104
|
+
return message;
|
|
68105
|
+
};
|
|
68106
|
+
|
|
68107
|
+
/**
|
|
68108
|
+
* Creates a plain object from a Timestamp message. Also converts values to other types if specified.
|
|
68109
|
+
* @function toObject
|
|
68110
|
+
* @memberof google.protobuf.Timestamp
|
|
68111
|
+
* @static
|
|
68112
|
+
* @param {google.protobuf.Timestamp} message Timestamp
|
|
68113
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
68114
|
+
* @returns {Object.<string,*>} Plain object
|
|
68115
|
+
*/
|
|
68116
|
+
Timestamp.toObject = function toObject(message, options) {
|
|
68117
|
+
if (!options)
|
|
68118
|
+
options = {};
|
|
68119
|
+
var object = {};
|
|
68120
|
+
if (options.defaults) {
|
|
68121
|
+
if ($util.Long) {
|
|
68122
|
+
var long = new $util.Long(0, 0, false);
|
|
68123
|
+
object.seconds = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
68124
|
+
} else
|
|
68125
|
+
object.seconds = options.longs === String ? "0" : 0;
|
|
68126
|
+
object.nanos = 0;
|
|
68127
|
+
}
|
|
68128
|
+
if (message.seconds != null && message.hasOwnProperty("seconds"))
|
|
68129
|
+
if (typeof message.seconds === "number")
|
|
68130
|
+
object.seconds = options.longs === String ? String(message.seconds) : message.seconds;
|
|
68131
|
+
else
|
|
68132
|
+
object.seconds = options.longs === String ? $util.Long.prototype.toString.call(message.seconds) : options.longs === Number ? new $util.LongBits(message.seconds.low >>> 0, message.seconds.high >>> 0).toNumber() : message.seconds;
|
|
68133
|
+
if (message.nanos != null && message.hasOwnProperty("nanos"))
|
|
68134
|
+
object.nanos = message.nanos;
|
|
68135
|
+
return object;
|
|
68136
|
+
};
|
|
68137
|
+
|
|
68138
|
+
/**
|
|
68139
|
+
* Converts this Timestamp to JSON.
|
|
68140
|
+
* @function toJSON
|
|
68141
|
+
* @memberof google.protobuf.Timestamp
|
|
68142
|
+
* @instance
|
|
68143
|
+
* @returns {Object.<string,*>} JSON object
|
|
68144
|
+
*/
|
|
68145
|
+
Timestamp.prototype.toJSON = function toJSON() {
|
|
68146
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
68147
|
+
};
|
|
68148
|
+
|
|
68149
|
+
return Timestamp;
|
|
68150
|
+
})();
|
|
68151
|
+
|
|
68152
|
+
protobuf.Struct = (function() {
|
|
68153
|
+
|
|
68154
|
+
/**
|
|
68155
|
+
* Properties of a Struct.
|
|
68156
|
+
* @memberof google.protobuf
|
|
68157
|
+
* @interface IStruct
|
|
68158
|
+
* @property {Object.<string,google.protobuf.Value|google.protobuf.IValue>|null} [fields] Struct fields
|
|
68159
|
+
*/
|
|
68160
|
+
|
|
68161
|
+
/**
|
|
68162
|
+
* Constructs a new Struct.
|
|
68163
|
+
* @memberof google.protobuf
|
|
68164
|
+
* @classdesc Represents a Struct.
|
|
68165
|
+
* @constructor
|
|
68166
|
+
* @param {google.protobuf.IStruct=} [properties] Properties to set
|
|
68167
|
+
*/
|
|
68168
|
+
function Struct(properties) {
|
|
68169
|
+
this.fields = {};
|
|
68170
|
+
if (properties)
|
|
68171
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
68172
|
+
if (properties[keys[i]] != null)
|
|
68173
|
+
this[keys[i]] = properties[keys[i]];
|
|
68174
|
+
}
|
|
68175
|
+
|
|
68176
|
+
/**
|
|
68177
|
+
* Struct fields.
|
|
68178
|
+
* @member {Object.<string,google.protobuf.Value>} fields
|
|
68179
|
+
* @memberof google.protobuf.Struct
|
|
68180
|
+
* @instance
|
|
68181
|
+
*/
|
|
68182
|
+
Struct.prototype.fields = $util.emptyObject;
|
|
68183
|
+
|
|
68184
|
+
/**
|
|
68185
|
+
* Creates a new Struct instance using the specified properties.
|
|
68186
|
+
* @function create
|
|
68187
|
+
* @memberof google.protobuf.Struct
|
|
68188
|
+
* @static
|
|
68189
|
+
* @param {google.protobuf.IStruct=} [properties] Properties to set
|
|
68190
|
+
* @returns {google.protobuf.Struct} Struct instance
|
|
68191
|
+
*/
|
|
68192
|
+
Struct.create = function create(properties) {
|
|
68193
|
+
return Struct.fromObject(properties);
|
|
68194
|
+
};
|
|
68195
|
+
|
|
68196
|
+
/**
|
|
68197
|
+
* Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
|
|
68198
|
+
* @function encode
|
|
68199
|
+
* @memberof google.protobuf.Struct
|
|
68200
|
+
* @static
|
|
68201
|
+
* @param {google.protobuf.Struct} message Struct message or plain object to encode
|
|
68202
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68203
|
+
* @returns {$protobuf.Writer} Writer
|
|
68204
|
+
*/
|
|
68205
|
+
Struct.encode = function encode(message, writer) {
|
|
68206
|
+
if (!writer)
|
|
68207
|
+
writer = $Writer.create();
|
|
68208
|
+
if (message.fields != null && Object.hasOwnProperty.call(message, "fields"))
|
|
68209
|
+
for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) {
|
|
68210
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
68211
|
+
$root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
68212
|
+
}
|
|
68213
|
+
return writer;
|
|
68214
|
+
};
|
|
68215
|
+
|
|
68216
|
+
/**
|
|
68217
|
+
* Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
|
|
68218
|
+
* @function encodeDelimited
|
|
68219
|
+
* @memberof google.protobuf.Struct
|
|
68220
|
+
* @static
|
|
68221
|
+
* @param {google.protobuf.Struct} message Struct message or plain object to encode
|
|
68222
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
68223
|
+
* @returns {$protobuf.Writer} Writer
|
|
68224
|
+
*/
|
|
68225
|
+
Struct.encodeDelimited = function encodeDelimited(message, writer) {
|
|
68226
|
+
return this.encode(message, writer).ldelim();
|
|
68227
|
+
};
|
|
68228
|
+
|
|
68229
|
+
/**
|
|
68230
|
+
* Decodes a Struct message from the specified reader or buffer.
|
|
68231
|
+
* @function decode
|
|
68232
|
+
* @memberof google.protobuf.Struct
|
|
68233
|
+
* @static
|
|
68234
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68235
|
+
* @param {number} [length] Message length if known beforehand
|
|
68236
|
+
* @returns {google.protobuf.Struct} Struct
|
|
68237
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68238
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68239
|
+
*/
|
|
68240
|
+
Struct.decode = function decode(reader, length) {
|
|
68241
|
+
if (!(reader instanceof $Reader))
|
|
68242
|
+
reader = $Reader.create(reader);
|
|
68243
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value;
|
|
68244
|
+
while (reader.pos < end) {
|
|
68245
|
+
var tag = reader.uint32();
|
|
68246
|
+
switch (tag >>> 3) {
|
|
68247
|
+
case 1:
|
|
68248
|
+
if (message.fields === $util.emptyObject)
|
|
68249
|
+
message.fields = {};
|
|
68250
|
+
var end2 = reader.uint32() + reader.pos;
|
|
68251
|
+
key = "";
|
|
68252
|
+
value = null;
|
|
68253
|
+
while (reader.pos < end2) {
|
|
68254
|
+
var tag2 = reader.uint32();
|
|
68255
|
+
switch (tag2 >>> 3) {
|
|
68256
|
+
case 1:
|
|
68257
|
+
key = reader.string();
|
|
68258
|
+
break;
|
|
68259
|
+
case 2:
|
|
68260
|
+
value = $root.google.protobuf.Value.decode(reader, reader.uint32());
|
|
68261
|
+
break;
|
|
68262
|
+
default:
|
|
68263
|
+
reader.skipType(tag2 & 7);
|
|
68264
|
+
break;
|
|
68265
|
+
}
|
|
68266
|
+
}
|
|
68267
|
+
message.fields[key] = value;
|
|
68268
|
+
break;
|
|
68269
|
+
default:
|
|
68270
|
+
reader.skipType(tag & 7);
|
|
68271
|
+
break;
|
|
68272
|
+
}
|
|
68273
|
+
}
|
|
68274
|
+
return message;
|
|
68275
|
+
};
|
|
68276
|
+
|
|
68277
|
+
/**
|
|
68278
|
+
* Decodes a Struct message from the specified reader or buffer, length delimited.
|
|
68279
|
+
* @function decodeDelimited
|
|
68280
|
+
* @memberof google.protobuf.Struct
|
|
68281
|
+
* @static
|
|
68282
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
68283
|
+
* @returns {google.protobuf.Struct} Struct
|
|
68284
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
68285
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
68286
|
+
*/
|
|
68287
|
+
Struct.decodeDelimited = function decodeDelimited(reader) {
|
|
68288
|
+
if (!(reader instanceof $Reader))
|
|
68289
|
+
reader = new $Reader(reader);
|
|
68290
|
+
return this.decode(reader, reader.uint32());
|
|
68291
|
+
};
|
|
68292
|
+
|
|
68293
|
+
/**
|
|
68294
|
+
* Verifies a Struct message.
|
|
68295
|
+
* @function verify
|
|
68296
|
+
* @memberof google.protobuf.Struct
|
|
68297
|
+
* @static
|
|
68298
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
68299
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
68300
|
+
*/
|
|
68301
|
+
Struct.verify = function verify(message) {
|
|
68302
|
+
if (typeof message !== "object" || message === null)
|
|
65422
68303
|
return "object expected";
|
|
65423
68304
|
if (message.fields != null && message.hasOwnProperty("fields")) {
|
|
65424
68305
|
if (!$util.isObject(message.fields))
|
|
@@ -66281,6 +69162,224 @@
|
|
|
66281
69162
|
return FieldMask;
|
|
66282
69163
|
})();
|
|
66283
69164
|
|
|
69165
|
+
protobuf.Any = (function() {
|
|
69166
|
+
|
|
69167
|
+
/**
|
|
69168
|
+
* Properties of an Any.
|
|
69169
|
+
* @memberof google.protobuf
|
|
69170
|
+
* @interface IAny
|
|
69171
|
+
* @property {string|null} [type_url] Any type_url
|
|
69172
|
+
* @property {Uint8Array|null} [value] Any value
|
|
69173
|
+
*/
|
|
69174
|
+
|
|
69175
|
+
/**
|
|
69176
|
+
* Constructs a new Any.
|
|
69177
|
+
* @memberof google.protobuf
|
|
69178
|
+
* @classdesc Represents an Any.
|
|
69179
|
+
* @constructor
|
|
69180
|
+
* @param {google.protobuf.IAny=} [properties] Properties to set
|
|
69181
|
+
*/
|
|
69182
|
+
function Any(properties) {
|
|
69183
|
+
if (properties)
|
|
69184
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
69185
|
+
if (properties[keys[i]] != null)
|
|
69186
|
+
this[keys[i]] = properties[keys[i]];
|
|
69187
|
+
}
|
|
69188
|
+
|
|
69189
|
+
/**
|
|
69190
|
+
* Any type_url.
|
|
69191
|
+
* @member {string} type_url
|
|
69192
|
+
* @memberof google.protobuf.Any
|
|
69193
|
+
* @instance
|
|
69194
|
+
*/
|
|
69195
|
+
Any.prototype.type_url = "";
|
|
69196
|
+
|
|
69197
|
+
/**
|
|
69198
|
+
* Any value.
|
|
69199
|
+
* @member {Uint8Array} value
|
|
69200
|
+
* @memberof google.protobuf.Any
|
|
69201
|
+
* @instance
|
|
69202
|
+
*/
|
|
69203
|
+
Any.prototype.value = $util.newBuffer([]);
|
|
69204
|
+
|
|
69205
|
+
/**
|
|
69206
|
+
* Creates a new Any instance using the specified properties.
|
|
69207
|
+
* @function create
|
|
69208
|
+
* @memberof google.protobuf.Any
|
|
69209
|
+
* @static
|
|
69210
|
+
* @param {google.protobuf.IAny=} [properties] Properties to set
|
|
69211
|
+
* @returns {google.protobuf.Any} Any instance
|
|
69212
|
+
*/
|
|
69213
|
+
Any.create = function create(properties) {
|
|
69214
|
+
return Any.fromObject(properties);
|
|
69215
|
+
};
|
|
69216
|
+
|
|
69217
|
+
/**
|
|
69218
|
+
* Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
69219
|
+
* @function encode
|
|
69220
|
+
* @memberof google.protobuf.Any
|
|
69221
|
+
* @static
|
|
69222
|
+
* @param {google.protobuf.Any} message Any message or plain object to encode
|
|
69223
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69224
|
+
* @returns {$protobuf.Writer} Writer
|
|
69225
|
+
*/
|
|
69226
|
+
Any.encode = function encode(message, writer) {
|
|
69227
|
+
if (!writer)
|
|
69228
|
+
writer = $Writer.create();
|
|
69229
|
+
if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url"))
|
|
69230
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url);
|
|
69231
|
+
if (message.value != null && Object.hasOwnProperty.call(message, "value"))
|
|
69232
|
+
writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value);
|
|
69233
|
+
return writer;
|
|
69234
|
+
};
|
|
69235
|
+
|
|
69236
|
+
/**
|
|
69237
|
+
* Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
|
|
69238
|
+
* @function encodeDelimited
|
|
69239
|
+
* @memberof google.protobuf.Any
|
|
69240
|
+
* @static
|
|
69241
|
+
* @param {google.protobuf.Any} message Any message or plain object to encode
|
|
69242
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
69243
|
+
* @returns {$protobuf.Writer} Writer
|
|
69244
|
+
*/
|
|
69245
|
+
Any.encodeDelimited = function encodeDelimited(message, writer) {
|
|
69246
|
+
return this.encode(message, writer).ldelim();
|
|
69247
|
+
};
|
|
69248
|
+
|
|
69249
|
+
/**
|
|
69250
|
+
* Decodes an Any message from the specified reader or buffer.
|
|
69251
|
+
* @function decode
|
|
69252
|
+
* @memberof google.protobuf.Any
|
|
69253
|
+
* @static
|
|
69254
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69255
|
+
* @param {number} [length] Message length if known beforehand
|
|
69256
|
+
* @returns {google.protobuf.Any} Any
|
|
69257
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69258
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69259
|
+
*/
|
|
69260
|
+
Any.decode = function decode(reader, length) {
|
|
69261
|
+
if (!(reader instanceof $Reader))
|
|
69262
|
+
reader = $Reader.create(reader);
|
|
69263
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any();
|
|
69264
|
+
while (reader.pos < end) {
|
|
69265
|
+
var tag = reader.uint32();
|
|
69266
|
+
switch (tag >>> 3) {
|
|
69267
|
+
case 1:
|
|
69268
|
+
message.type_url = reader.string();
|
|
69269
|
+
break;
|
|
69270
|
+
case 2:
|
|
69271
|
+
message.value = reader.bytes();
|
|
69272
|
+
break;
|
|
69273
|
+
default:
|
|
69274
|
+
reader.skipType(tag & 7);
|
|
69275
|
+
break;
|
|
69276
|
+
}
|
|
69277
|
+
}
|
|
69278
|
+
return message;
|
|
69279
|
+
};
|
|
69280
|
+
|
|
69281
|
+
/**
|
|
69282
|
+
* Decodes an Any message from the specified reader or buffer, length delimited.
|
|
69283
|
+
* @function decodeDelimited
|
|
69284
|
+
* @memberof google.protobuf.Any
|
|
69285
|
+
* @static
|
|
69286
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
69287
|
+
* @returns {google.protobuf.Any} Any
|
|
69288
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
69289
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
69290
|
+
*/
|
|
69291
|
+
Any.decodeDelimited = function decodeDelimited(reader) {
|
|
69292
|
+
if (!(reader instanceof $Reader))
|
|
69293
|
+
reader = new $Reader(reader);
|
|
69294
|
+
return this.decode(reader, reader.uint32());
|
|
69295
|
+
};
|
|
69296
|
+
|
|
69297
|
+
/**
|
|
69298
|
+
* Verifies an Any message.
|
|
69299
|
+
* @function verify
|
|
69300
|
+
* @memberof google.protobuf.Any
|
|
69301
|
+
* @static
|
|
69302
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
69303
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
69304
|
+
*/
|
|
69305
|
+
Any.verify = function verify(message) {
|
|
69306
|
+
if (typeof message !== "object" || message === null)
|
|
69307
|
+
return "object expected";
|
|
69308
|
+
if (message.type_url != null && message.hasOwnProperty("type_url"))
|
|
69309
|
+
if (!$util.isString(message.type_url))
|
|
69310
|
+
return "type_url: string expected";
|
|
69311
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
69312
|
+
if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
|
|
69313
|
+
return "value: buffer expected";
|
|
69314
|
+
return null;
|
|
69315
|
+
};
|
|
69316
|
+
|
|
69317
|
+
/**
|
|
69318
|
+
* Creates an Any message from a plain object. Also converts values to their respective internal types.
|
|
69319
|
+
* @function fromObject
|
|
69320
|
+
* @memberof google.protobuf.Any
|
|
69321
|
+
* @static
|
|
69322
|
+
* @param {Object.<string,*>} object Plain object
|
|
69323
|
+
* @returns {google.protobuf.Any} Any
|
|
69324
|
+
*/
|
|
69325
|
+
Any.fromObject = function fromObject(object) {
|
|
69326
|
+
if (object instanceof $root.google.protobuf.Any)
|
|
69327
|
+
return object;
|
|
69328
|
+
var message = new $root.google.protobuf.Any();
|
|
69329
|
+
if (object.type_url != null)
|
|
69330
|
+
message.type_url = String(object.type_url);
|
|
69331
|
+
if (object.value != null)
|
|
69332
|
+
if (typeof object.value === "string")
|
|
69333
|
+
$util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
|
|
69334
|
+
else if (object.value.length)
|
|
69335
|
+
message.value = object.value;
|
|
69336
|
+
return message;
|
|
69337
|
+
};
|
|
69338
|
+
|
|
69339
|
+
/**
|
|
69340
|
+
* Creates a plain object from an Any message. Also converts values to other types if specified.
|
|
69341
|
+
* @function toObject
|
|
69342
|
+
* @memberof google.protobuf.Any
|
|
69343
|
+
* @static
|
|
69344
|
+
* @param {google.protobuf.Any} message Any
|
|
69345
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
69346
|
+
* @returns {Object.<string,*>} Plain object
|
|
69347
|
+
*/
|
|
69348
|
+
Any.toObject = function toObject(message, options) {
|
|
69349
|
+
if (!options)
|
|
69350
|
+
options = {};
|
|
69351
|
+
var object = {};
|
|
69352
|
+
if (options.defaults) {
|
|
69353
|
+
object.type_url = "";
|
|
69354
|
+
if (options.bytes === String)
|
|
69355
|
+
object.value = "";
|
|
69356
|
+
else {
|
|
69357
|
+
object.value = [];
|
|
69358
|
+
if (options.bytes !== Array)
|
|
69359
|
+
object.value = $util.newBuffer(object.value);
|
|
69360
|
+
}
|
|
69361
|
+
}
|
|
69362
|
+
if (message.type_url != null && message.hasOwnProperty("type_url"))
|
|
69363
|
+
object.type_url = message.type_url;
|
|
69364
|
+
if (message.value != null && message.hasOwnProperty("value"))
|
|
69365
|
+
object.value = options.bytes === String ? $util.base64.encode(message.value, 0, message.value.length) : options.bytes === Array ? Array.prototype.slice.call(message.value) : message.value;
|
|
69366
|
+
return object;
|
|
69367
|
+
};
|
|
69368
|
+
|
|
69369
|
+
/**
|
|
69370
|
+
* Converts this Any to JSON.
|
|
69371
|
+
* @function toJSON
|
|
69372
|
+
* @memberof google.protobuf.Any
|
|
69373
|
+
* @instance
|
|
69374
|
+
* @returns {Object.<string,*>} JSON object
|
|
69375
|
+
*/
|
|
69376
|
+
Any.prototype.toJSON = function toJSON() {
|
|
69377
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
69378
|
+
};
|
|
69379
|
+
|
|
69380
|
+
return Any;
|
|
69381
|
+
})();
|
|
69382
|
+
|
|
66284
69383
|
return protobuf;
|
|
66285
69384
|
})();
|
|
66286
69385
|
|