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