@replit/protocol 0.3.23 → 0.3.25

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.js CHANGED
@@ -71,7 +71,6 @@
71
71
  * @property {string|null} [error] Command error
72
72
  * @property {string|null} [stderr] Command stderr
73
73
  * @property {string|null} [log] Command log
74
- * @property {string|null} [record] Command record
75
74
  * @property {replit.goval.api.OutputBlockStartEvent|replit.goval.api.IOutputBlockStartEvent|null} [outputBlockStartEvent] Command outputBlockStartEvent
76
75
  * @property {replit.goval.api.OutputBlockEndEvent|replit.goval.api.IOutputBlockEndEvent|null} [outputBlockEndEvent] Command outputBlockEndEvent
77
76
  * @property {number|null} [exitCodeEvent] Command exitCodeEvent
@@ -236,8 +235,6 @@
236
235
  * @property {replit.goval.api.ReplspaceApiOpenMultipleFiles|replit.goval.api.IReplspaceApiOpenMultipleFiles|null} [replspaceApiOpenMultipleFiles] Command replspaceApiOpenMultipleFiles
237
236
  * @property {replit.goval.api.NixModulesGetRegistryRequest|replit.goval.api.INixModulesGetRegistryRequest|null} [nixModulesGetRegistryRequest] Command nixModulesGetRegistryRequest
238
237
  * @property {replit.goval.api.NixModulesGetRegistryResponse|replit.goval.api.INixModulesGetRegistryResponse|null} [nixModulesGetRegistryResponse] Command nixModulesGetRegistryResponse
239
- * @property {replit.goval.api.pid2.ClientFrame|replit.goval.api.pid2.IClientFrame|null} [pid2Input] Command pid2Input
240
- * @property {replit.goval.api.pid2.ServerFrame|replit.goval.api.pid2.IServerFrame|null} [pid2Output] Command pid2Output
241
238
  * @property {string|null} [ref] Command ref
242
239
  * @property {Object.<string,string>|null} [traceInfo] Command traceInfo
243
240
  */
@@ -433,14 +430,6 @@
433
430
  */
434
431
  Command.prototype.log = null;
435
432
 
436
- /**
437
- * Command record.
438
- * @member {string|null|undefined} record
439
- * @memberof replit.goval.api.Command
440
- * @instance
441
- */
442
- Command.prototype.record = null;
443
-
444
433
  /**
445
434
  * Command outputBlockStartEvent.
446
435
  * @member {replit.goval.api.OutputBlockStartEvent|null|undefined} outputBlockStartEvent
@@ -1753,22 +1742,6 @@
1753
1742
  */
1754
1743
  Command.prototype.nixModulesGetRegistryResponse = null;
1755
1744
 
1756
- /**
1757
- * Command pid2Input.
1758
- * @member {replit.goval.api.pid2.ClientFrame|null|undefined} pid2Input
1759
- * @memberof replit.goval.api.Command
1760
- * @instance
1761
- */
1762
- Command.prototype.pid2Input = null;
1763
-
1764
- /**
1765
- * Command pid2Output.
1766
- * @member {replit.goval.api.pid2.ServerFrame|null|undefined} pid2Output
1767
- * @memberof replit.goval.api.Command
1768
- * @instance
1769
- */
1770
- Command.prototype.pid2Output = null;
1771
-
1772
1745
  /**
1773
1746
  * Command ref.
1774
1747
  * @member {string} ref
@@ -1790,12 +1763,12 @@
1790
1763
 
1791
1764
  /**
1792
1765
  * Command body.
1793
- * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|"pid2Input"|"pid2Output"|undefined} body
1766
+ * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"outputBlockStartEvent"|"outputBlockEndEvent"|"exitCodeEvent"|"splitStderrRequest"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageInstallResponse"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|"userEvent"|"replspaceApiOpenFile"|"replspaceApiCloseFile"|"replspaceApiGetGitHubToken"|"replspaceApiGitHubToken"|"focused"|"nixModulesGetRequest"|"nixModulesGetResponse"|"nixModulesChanged"|"nixModulesBuildRequest"|"packageSetPackagerRequest"|"packageSetPackagerResp"|"toolchainGetRequest"|"toolchainGetResponse"|"toolchainChanged"|"replspaceApiOpenMultipleFiles"|"nixModulesGetRegistryRequest"|"nixModulesGetRegistryResponse"|undefined} body
1794
1767
  * @memberof replit.goval.api.Command
1795
1768
  * @instance
1796
1769
  */
1797
1770
  Object.defineProperty(Command.prototype, "body", {
1798
- 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", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse", "pid2Input", "pid2Output"]),
1771
+ get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "outputBlockStartEvent", "outputBlockEndEvent", "exitCodeEvent", "splitStderrRequest", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageInstallResponse", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse", "userEvent", "replspaceApiOpenFile", "replspaceApiCloseFile", "replspaceApiGetGitHubToken", "replspaceApiGitHubToken", "focused", "nixModulesGetRequest", "nixModulesGetResponse", "nixModulesChanged", "nixModulesBuildRequest", "packageSetPackagerRequest", "packageSetPackagerResp", "toolchainGetRequest", "toolchainGetResponse", "toolchainChanged", "replspaceApiOpenMultipleFiles", "nixModulesGetRegistryRequest", "nixModulesGetRegistryResponse"]),
1799
1772
  set: $util.oneOfSetter($oneOfFields)
1800
1773
  });
1801
1774
 
@@ -2151,8 +2124,6 @@
2151
2124
  $root.replit.goval.api.NixPackageSearchRequest.encode(message.nixPackageSearchRequest, writer.uint32(/* id 420, wireType 2 =*/3362).fork()).ldelim();
2152
2125
  if (message.nixPackageSearchResponse != null && Object.hasOwnProperty.call(message, "nixPackageSearchResponse"))
2153
2126
  $root.replit.goval.api.NixPackageSearchResponse.encode(message.nixPackageSearchResponse, writer.uint32(/* id 421, wireType 2 =*/3370).fork()).ldelim();
2154
- if (message.record != null && Object.hasOwnProperty.call(message, "record"))
2155
- writer.uint32(/* id 422, wireType 2 =*/3378).string(message.record);
2156
2127
  if (message.userEvent != null && Object.hasOwnProperty.call(message, "userEvent"))
2157
2128
  $root.replit.goval.api.UserEvent.encode(message.userEvent, writer.uint32(/* id 423, wireType 2 =*/3386).fork()).ldelim();
2158
2129
  if (message.replspaceApiOpenFile != null && Object.hasOwnProperty.call(message, "replspaceApiOpenFile"))
@@ -2189,10 +2160,6 @@
2189
2160
  $root.replit.goval.api.NixModulesGetRegistryRequest.encode(message.nixModulesGetRegistryRequest, writer.uint32(/* id 439, wireType 2 =*/3514).fork()).ldelim();
2190
2161
  if (message.nixModulesGetRegistryResponse != null && Object.hasOwnProperty.call(message, "nixModulesGetRegistryResponse"))
2191
2162
  $root.replit.goval.api.NixModulesGetRegistryResponse.encode(message.nixModulesGetRegistryResponse, writer.uint32(/* id 440, wireType 2 =*/3522).fork()).ldelim();
2192
- if (message.pid2Input != null && Object.hasOwnProperty.call(message, "pid2Input"))
2193
- $root.replit.goval.api.pid2.ClientFrame.encode(message.pid2Input, writer.uint32(/* id 441, wireType 2 =*/3530).fork()).ldelim();
2194
- if (message.pid2Output != null && Object.hasOwnProperty.call(message, "pid2Output"))
2195
- $root.replit.goval.api.pid2.ServerFrame.encode(message.pid2Output, writer.uint32(/* id 442, wireType 2 =*/3538).fork()).ldelim();
2196
2163
  if (message.outputBlockStartEvent != null && Object.hasOwnProperty.call(message, "outputBlockStartEvent"))
2197
2164
  $root.replit.goval.api.OutputBlockStartEvent.encode(message.outputBlockStartEvent, writer.uint32(/* id 443, wireType 2 =*/3546).fork()).ldelim();
2198
2165
  if (message.outputBlockEndEvent != null && Object.hasOwnProperty.call(message, "outputBlockEndEvent"))
@@ -2328,10 +2295,6 @@
2328
2295
  message.log = reader.string();
2329
2296
  break;
2330
2297
  }
2331
- case 422: {
2332
- message.record = reader.string();
2333
- break;
2334
- }
2335
2298
  case 443: {
2336
2299
  message.outputBlockStartEvent = $root.replit.goval.api.OutputBlockStartEvent.decode(reader, reader.uint32());
2337
2300
  break;
@@ -2988,14 +2951,6 @@
2988
2951
  message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.decode(reader, reader.uint32());
2989
2952
  break;
2990
2953
  }
2991
- case 441: {
2992
- message.pid2Input = $root.replit.goval.api.pid2.ClientFrame.decode(reader, reader.uint32());
2993
- break;
2994
- }
2995
- case 442: {
2996
- message.pid2Output = $root.replit.goval.api.pid2.ServerFrame.decode(reader, reader.uint32());
2997
- break;
2998
- }
2999
2954
  case 1000: {
3000
2955
  message.ref = reader.string();
3001
2956
  break;
@@ -3242,13 +3197,6 @@
3242
3197
  if (!$util.isString(message.log))
3243
3198
  return "log: string expected";
3244
3199
  }
3245
- if (message.record != null && message.hasOwnProperty("record")) {
3246
- if (properties.body === 1)
3247
- return "body: multiple values";
3248
- properties.body = 1;
3249
- if (!$util.isString(message.record))
3250
- return "record: string expected";
3251
- }
3252
3200
  if (message.outputBlockStartEvent != null && message.hasOwnProperty("outputBlockStartEvent")) {
3253
3201
  if (properties.body === 1)
3254
3202
  return "body: multiple values";
@@ -4876,26 +4824,6 @@
4876
4824
  return "nixModulesGetRegistryResponse." + error;
4877
4825
  }
4878
4826
  }
4879
- if (message.pid2Input != null && message.hasOwnProperty("pid2Input")) {
4880
- if (properties.body === 1)
4881
- return "body: multiple values";
4882
- properties.body = 1;
4883
- {
4884
- var error = $root.replit.goval.api.pid2.ClientFrame.verify(message.pid2Input);
4885
- if (error)
4886
- return "pid2Input." + error;
4887
- }
4888
- }
4889
- if (message.pid2Output != null && message.hasOwnProperty("pid2Output")) {
4890
- if (properties.body === 1)
4891
- return "body: multiple values";
4892
- properties.body = 1;
4893
- {
4894
- var error = $root.replit.goval.api.pid2.ServerFrame.verify(message.pid2Output);
4895
- if (error)
4896
- return "pid2Output." + error;
4897
- }
4898
- }
4899
4827
  if (message.ref != null && message.hasOwnProperty("ref"))
4900
4828
  if (!$util.isString(message.ref))
4901
4829
  return "ref: string expected";
@@ -5005,8 +4933,6 @@
5005
4933
  message.stderr = String(object.stderr);
5006
4934
  if (object.log != null)
5007
4935
  message.log = String(object.log);
5008
- if (object.record != null)
5009
- message.record = String(object.record);
5010
4936
  if (object.outputBlockStartEvent != null) {
5011
4937
  if (typeof object.outputBlockStartEvent !== "object")
5012
4938
  throw TypeError(".replit.goval.api.Command.outputBlockStartEvent: object expected");
@@ -5823,16 +5749,6 @@
5823
5749
  throw TypeError(".replit.goval.api.Command.nixModulesGetRegistryResponse: object expected");
5824
5750
  message.nixModulesGetRegistryResponse = $root.replit.goval.api.NixModulesGetRegistryResponse.fromObject(object.nixModulesGetRegistryResponse);
5825
5751
  }
5826
- if (object.pid2Input != null) {
5827
- if (typeof object.pid2Input !== "object")
5828
- throw TypeError(".replit.goval.api.Command.pid2Input: object expected");
5829
- message.pid2Input = $root.replit.goval.api.pid2.ClientFrame.fromObject(object.pid2Input);
5830
- }
5831
- if (object.pid2Output != null) {
5832
- if (typeof object.pid2Output !== "object")
5833
- throw TypeError(".replit.goval.api.Command.pid2Output: object expected");
5834
- message.pid2Output = $root.replit.goval.api.pid2.ServerFrame.fromObject(object.pid2Output);
5835
- }
5836
5752
  if (object.ref != null)
5837
5753
  message.ref = String(object.ref);
5838
5754
  if (object.traceInfo) {
@@ -6679,11 +6595,6 @@
6679
6595
  if (options.oneofs)
6680
6596
  object.body = "nixPackageSearchResponse";
6681
6597
  }
6682
- if (message.record != null && message.hasOwnProperty("record")) {
6683
- object.record = message.record;
6684
- if (options.oneofs)
6685
- object.body = "record";
6686
- }
6687
6598
  if (message.userEvent != null && message.hasOwnProperty("userEvent")) {
6688
6599
  object.userEvent = $root.replit.goval.api.UserEvent.toObject(message.userEvent, options);
6689
6600
  if (options.oneofs)
@@ -6774,16 +6685,6 @@
6774
6685
  if (options.oneofs)
6775
6686
  object.body = "nixModulesGetRegistryResponse";
6776
6687
  }
6777
- if (message.pid2Input != null && message.hasOwnProperty("pid2Input")) {
6778
- object.pid2Input = $root.replit.goval.api.pid2.ClientFrame.toObject(message.pid2Input, options);
6779
- if (options.oneofs)
6780
- object.body = "pid2Input";
6781
- }
6782
- if (message.pid2Output != null && message.hasOwnProperty("pid2Output")) {
6783
- object.pid2Output = $root.replit.goval.api.pid2.ServerFrame.toObject(message.pid2Output, options);
6784
- if (options.oneofs)
6785
- object.body = "pid2Output";
6786
- }
6787
6688
  if (message.outputBlockStartEvent != null && message.hasOwnProperty("outputBlockStartEvent")) {
6788
6689
  object.outputBlockStartEvent = $root.replit.goval.api.OutputBlockStartEvent.toObject(message.outputBlockStartEvent, options);
6789
6690
  if (options.oneofs)
@@ -58920,7 +58821,6 @@
58920
58821
  * @property {replit.goval.api.repl.Permissions|replit.goval.api.repl.IPermissions|null} [permissions] ReplToken permissions
58921
58822
  * @property {Array.<replit.goval.api.features.Feature|replit.goval.api.features.IFeature>|null} [features] ReplToken features
58922
58823
  * @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] ReplToken buildInfo
58923
- * @property {replit.goval.api.repl.Pid2|replit.goval.api.repl.IPid2|null} [pid2] ReplToken pid2
58924
58824
  */
58925
58825
 
58926
58826
  /**
@@ -59067,14 +58967,6 @@
59067
58967
  */
59068
58968
  ReplToken.prototype.buildInfo = null;
59069
58969
 
59070
- /**
59071
- * ReplToken pid2.
59072
- * @member {replit.goval.api.repl.Pid2|null|undefined} pid2
59073
- * @memberof replit.goval.api.ReplToken
59074
- * @instance
59075
- */
59076
- ReplToken.prototype.pid2 = null;
59077
-
59078
58970
  // OneOf field names bound to virtual getters and setters
59079
58971
  var $oneOfFields;
59080
58972
 
@@ -59147,8 +59039,6 @@
59147
59039
  $root.replit.goval.api.repl.ResourceLimits.encode(message.interactiveResourceLimits, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
59148
59040
  if (message.buildInfo != null && Object.hasOwnProperty.call(message, "buildInfo"))
59149
59041
  $root.replit.goval.api.repl.BuildInfo.encode(message.buildInfo, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
59150
- if (message.pid2 != null && Object.hasOwnProperty.call(message, "pid2"))
59151
- $root.replit.goval.api.repl.Pid2.encode(message.pid2, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
59152
59042
  return writer;
59153
59043
  };
59154
59044
 
@@ -59251,10 +59141,6 @@
59251
59141
  message.buildInfo = $root.replit.goval.api.repl.BuildInfo.decode(reader, reader.uint32());
59252
59142
  break;
59253
59143
  }
59254
- case 19: {
59255
- message.pid2 = $root.replit.goval.api.repl.Pid2.decode(reader, reader.uint32());
59256
- break;
59257
- }
59258
59144
  default:
59259
59145
  reader.skipType(tag & 7);
59260
59146
  break;
@@ -59361,6 +59247,7 @@
59361
59247
  return "format: enum value expected";
59362
59248
  case 0:
59363
59249
  case 1:
59250
+ case 2:
59364
59251
  break;
59365
59252
  }
59366
59253
  if (message.presenced != null && message.hasOwnProperty("presenced")) {
@@ -59394,11 +59281,6 @@
59394
59281
  if (error)
59395
59282
  return "buildInfo." + error;
59396
59283
  }
59397
- if (message.pid2 != null && message.hasOwnProperty("pid2")) {
59398
- var error = $root.replit.goval.api.repl.Pid2.verify(message.pid2);
59399
- if (error)
59400
- return "pid2." + error;
59401
- }
59402
59284
  return null;
59403
59285
  };
59404
59286
 
@@ -59492,6 +59374,10 @@
59492
59374
  case 1:
59493
59375
  message.format = 1;
59494
59376
  break;
59377
+ case "PID2":
59378
+ case 2:
59379
+ message.format = 2;
59380
+ break;
59495
59381
  }
59496
59382
  if (object.presenced != null) {
59497
59383
  if (typeof object.presenced !== "object")
@@ -59525,11 +59411,6 @@
59525
59411
  throw TypeError(".replit.goval.api.ReplToken.buildInfo: object expected");
59526
59412
  message.buildInfo = $root.replit.goval.api.repl.BuildInfo.fromObject(object.buildInfo);
59527
59413
  }
59528
- if (object.pid2 != null) {
59529
- if (typeof object.pid2 !== "object")
59530
- throw TypeError(".replit.goval.api.ReplToken.pid2: object expected");
59531
- message.pid2 = $root.replit.goval.api.repl.Pid2.fromObject(object.pid2);
59532
- }
59533
59414
  return message;
59534
59415
  };
59535
59416
 
@@ -59562,7 +59443,6 @@
59562
59443
  object.permissions = null;
59563
59444
  object.interactiveResourceLimits = null;
59564
59445
  object.buildInfo = null;
59565
- object.pid2 = null;
59566
59446
  }
59567
59447
  if (message.iat != null && message.hasOwnProperty("iat"))
59568
59448
  object.iat = $root.google.protobuf.Timestamp.toObject(message.iat, options);
@@ -59611,8 +59491,6 @@
59611
59491
  object.interactiveResourceLimits = $root.replit.goval.api.repl.ResourceLimits.toObject(message.interactiveResourceLimits, options);
59612
59492
  if (message.buildInfo != null && message.hasOwnProperty("buildInfo"))
59613
59493
  object.buildInfo = $root.replit.goval.api.repl.BuildInfo.toObject(message.buildInfo, options);
59614
- if (message.pid2 != null && message.hasOwnProperty("pid2"))
59615
- object.pid2 = $root.replit.goval.api.repl.Pid2.toObject(message.pid2, options);
59616
59494
  return object;
59617
59495
  };
59618
59496
 
@@ -60100,11 +59978,13 @@
60100
59978
  * @enum {number}
60101
59979
  * @property {number} PROTOBUF=0 PROTOBUF value
60102
59980
  * @property {number} JSON=1 JSON value
59981
+ * @property {number} PID2=2 PID2 value
60103
59982
  */
60104
59983
  ReplToken.WireFormat = (function() {
60105
59984
  var valuesById = {}, values = Object.create(valuesById);
60106
59985
  values[valuesById[0] = "PROTOBUF"] = 0;
60107
59986
  values[valuesById[1] = "JSON"] = 1;
59987
+ values[valuesById[2] = "PID2"] = 2;
60108
59988
  return values;
60109
59989
  })();
60110
59990
 
@@ -62314,9 +62194,12 @@
62314
62194
  * @property {number} GHOSTWRITER=6 GHOSTWRITER value
62315
62195
  * @property {number} RENEW_IDENTITY=7 RENEW_IDENTITY value
62316
62196
  * @property {number} RENEW_KV=8 RENEW_KV value
62197
+ * @property {number} DEPLOYMENTS=10 DEPLOYMENTS value
62317
62198
  * @property {number} ANY_REPLID=2 ANY_REPLID value
62318
62199
  * @property {number} ANY_USER=3 ANY_USER value
62200
+ * @property {number} ANY_USER_ID=11 ANY_USER_ID value
62319
62201
  * @property {number} ANY_CLUSTER=4 ANY_CLUSTER value
62202
+ * @property {number} ANY_SUBCLUSTER=9 ANY_SUBCLUSTER value
62320
62203
  */
62321
62204
  api.FlagClaim = (function() {
62322
62205
  var valuesById = {}, values = Object.create(valuesById);
@@ -62326,9 +62209,12 @@
62326
62209
  values[valuesById[6] = "GHOSTWRITER"] = 6;
62327
62210
  values[valuesById[7] = "RENEW_IDENTITY"] = 7;
62328
62211
  values[valuesById[8] = "RENEW_KV"] = 8;
62212
+ values[valuesById[10] = "DEPLOYMENTS"] = 10;
62329
62213
  values[valuesById[2] = "ANY_REPLID"] = 2;
62330
62214
  values[valuesById[3] = "ANY_USER"] = 3;
62215
+ values[valuesById[11] = "ANY_USER_ID"] = 11;
62331
62216
  values[valuesById[4] = "ANY_CLUSTER"] = 4;
62217
+ values[valuesById[9] = "ANY_SUBCLUSTER"] = 9;
62332
62218
  return values;
62333
62219
  })();
62334
62220
 
@@ -62340,7 +62226,10 @@
62340
62226
  * @interface ICertificateClaim
62341
62227
  * @property {string|null} [replid] CertificateClaim replid
62342
62228
  * @property {string|null} [user] CertificateClaim user
62229
+ * @property {number|null} [userId] CertificateClaim userId
62343
62230
  * @property {string|null} [cluster] CertificateClaim cluster
62231
+ * @property {string|null} [subcluster] CertificateClaim subcluster
62232
+ * @property {boolean|null} [deployment] CertificateClaim deployment
62344
62233
  * @property {replit.goval.api.FlagClaim|null} [flag] CertificateClaim flag
62345
62234
  */
62346
62235
 
@@ -62374,6 +62263,14 @@
62374
62263
  */
62375
62264
  CertificateClaim.prototype.user = null;
62376
62265
 
62266
+ /**
62267
+ * CertificateClaim userId.
62268
+ * @member {number|null|undefined} userId
62269
+ * @memberof replit.goval.api.CertificateClaim
62270
+ * @instance
62271
+ */
62272
+ CertificateClaim.prototype.userId = null;
62273
+
62377
62274
  /**
62378
62275
  * CertificateClaim cluster.
62379
62276
  * @member {string|null|undefined} cluster
@@ -62382,6 +62279,22 @@
62382
62279
  */
62383
62280
  CertificateClaim.prototype.cluster = null;
62384
62281
 
62282
+ /**
62283
+ * CertificateClaim subcluster.
62284
+ * @member {string|null|undefined} subcluster
62285
+ * @memberof replit.goval.api.CertificateClaim
62286
+ * @instance
62287
+ */
62288
+ CertificateClaim.prototype.subcluster = null;
62289
+
62290
+ /**
62291
+ * CertificateClaim deployment.
62292
+ * @member {boolean|null|undefined} deployment
62293
+ * @memberof replit.goval.api.CertificateClaim
62294
+ * @instance
62295
+ */
62296
+ CertificateClaim.prototype.deployment = null;
62297
+
62385
62298
  /**
62386
62299
  * CertificateClaim flag.
62387
62300
  * @member {replit.goval.api.FlagClaim|null|undefined} flag
@@ -62395,12 +62308,12 @@
62395
62308
 
62396
62309
  /**
62397
62310
  * CertificateClaim claim.
62398
- * @member {"replid"|"user"|"cluster"|"flag"|undefined} claim
62311
+ * @member {"replid"|"user"|"userId"|"cluster"|"subcluster"|"deployment"|"flag"|undefined} claim
62399
62312
  * @memberof replit.goval.api.CertificateClaim
62400
62313
  * @instance
62401
62314
  */
62402
62315
  Object.defineProperty(CertificateClaim.prototype, "claim", {
62403
- get: $util.oneOfGetter($oneOfFields = ["replid", "user", "cluster", "flag"]),
62316
+ get: $util.oneOfGetter($oneOfFields = ["replid", "user", "userId", "cluster", "subcluster", "deployment", "flag"]),
62404
62317
  set: $util.oneOfSetter($oneOfFields)
62405
62318
  });
62406
62319
 
@@ -62436,6 +62349,12 @@
62436
62349
  writer.uint32(/* id 3, wireType 0 =*/24).int32(message.flag);
62437
62350
  if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
62438
62351
  writer.uint32(/* id 4, wireType 2 =*/34).string(message.cluster);
62352
+ if (message.subcluster != null && Object.hasOwnProperty.call(message, "subcluster"))
62353
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.subcluster);
62354
+ if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment"))
62355
+ writer.uint32(/* id 6, wireType 0 =*/48).bool(message.deployment);
62356
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
62357
+ writer.uint32(/* id 7, wireType 0 =*/56).int64(message.userId);
62439
62358
  return writer;
62440
62359
  };
62441
62360
 
@@ -62478,10 +62397,22 @@
62478
62397
  message.user = reader.string();
62479
62398
  break;
62480
62399
  }
62400
+ case 7: {
62401
+ message.userId = reader.int64();
62402
+ break;
62403
+ }
62481
62404
  case 4: {
62482
62405
  message.cluster = reader.string();
62483
62406
  break;
62484
62407
  }
62408
+ case 5: {
62409
+ message.subcluster = reader.string();
62410
+ break;
62411
+ }
62412
+ case 6: {
62413
+ message.deployment = reader.bool();
62414
+ break;
62415
+ }
62485
62416
  case 3: {
62486
62417
  message.flag = reader.int32();
62487
62418
  break;
@@ -62534,6 +62465,13 @@
62534
62465
  if (!$util.isString(message.user))
62535
62466
  return "user: string expected";
62536
62467
  }
62468
+ if (message.userId != null && message.hasOwnProperty("userId")) {
62469
+ if (properties.claim === 1)
62470
+ return "claim: multiple values";
62471
+ properties.claim = 1;
62472
+ if (!$util.isInteger(message.userId) && !(message.userId && $util.isInteger(message.userId.low) && $util.isInteger(message.userId.high)))
62473
+ return "userId: integer|Long expected";
62474
+ }
62537
62475
  if (message.cluster != null && message.hasOwnProperty("cluster")) {
62538
62476
  if (properties.claim === 1)
62539
62477
  return "claim: multiple values";
@@ -62541,6 +62479,20 @@
62541
62479
  if (!$util.isString(message.cluster))
62542
62480
  return "cluster: string expected";
62543
62481
  }
62482
+ if (message.subcluster != null && message.hasOwnProperty("subcluster")) {
62483
+ if (properties.claim === 1)
62484
+ return "claim: multiple values";
62485
+ properties.claim = 1;
62486
+ if (!$util.isString(message.subcluster))
62487
+ return "subcluster: string expected";
62488
+ }
62489
+ if (message.deployment != null && message.hasOwnProperty("deployment")) {
62490
+ if (properties.claim === 1)
62491
+ return "claim: multiple values";
62492
+ properties.claim = 1;
62493
+ if (typeof message.deployment !== "boolean")
62494
+ return "deployment: boolean expected";
62495
+ }
62544
62496
  if (message.flag != null && message.hasOwnProperty("flag")) {
62545
62497
  if (properties.claim === 1)
62546
62498
  return "claim: multiple values";
@@ -62554,9 +62506,12 @@
62554
62506
  case 6:
62555
62507
  case 7:
62556
62508
  case 8:
62509
+ case 10:
62557
62510
  case 2:
62558
62511
  case 3:
62512
+ case 11:
62559
62513
  case 4:
62514
+ case 9:
62560
62515
  break;
62561
62516
  }
62562
62517
  }
@@ -62579,8 +62534,21 @@
62579
62534
  message.replid = String(object.replid);
62580
62535
  if (object.user != null)
62581
62536
  message.user = String(object.user);
62537
+ if (object.userId != null)
62538
+ if ($util.Long)
62539
+ (message.userId = $util.Long.fromValue(object.userId)).unsigned = false;
62540
+ else if (typeof object.userId === "string")
62541
+ message.userId = parseInt(object.userId, 10);
62542
+ else if (typeof object.userId === "number")
62543
+ message.userId = object.userId;
62544
+ else if (typeof object.userId === "object")
62545
+ message.userId = new $util.LongBits(object.userId.low >>> 0, object.userId.high >>> 0).toNumber();
62582
62546
  if (object.cluster != null)
62583
62547
  message.cluster = String(object.cluster);
62548
+ if (object.subcluster != null)
62549
+ message.subcluster = String(object.subcluster);
62550
+ if (object.deployment != null)
62551
+ message.deployment = Boolean(object.deployment);
62584
62552
  switch (object.flag) {
62585
62553
  default:
62586
62554
  if (typeof object.flag === "number") {
@@ -62612,6 +62580,10 @@
62612
62580
  case 8:
62613
62581
  message.flag = 8;
62614
62582
  break;
62583
+ case "DEPLOYMENTS":
62584
+ case 10:
62585
+ message.flag = 10;
62586
+ break;
62615
62587
  case "ANY_REPLID":
62616
62588
  case 2:
62617
62589
  message.flag = 2;
@@ -62620,10 +62592,18 @@
62620
62592
  case 3:
62621
62593
  message.flag = 3;
62622
62594
  break;
62595
+ case "ANY_USER_ID":
62596
+ case 11:
62597
+ message.flag = 11;
62598
+ break;
62623
62599
  case "ANY_CLUSTER":
62624
62600
  case 4:
62625
62601
  message.flag = 4;
62626
62602
  break;
62603
+ case "ANY_SUBCLUSTER":
62604
+ case 9:
62605
+ message.flag = 9;
62606
+ break;
62627
62607
  }
62628
62608
  return message;
62629
62609
  };
@@ -62661,6 +62641,24 @@
62661
62641
  if (options.oneofs)
62662
62642
  object.claim = "cluster";
62663
62643
  }
62644
+ if (message.subcluster != null && message.hasOwnProperty("subcluster")) {
62645
+ object.subcluster = message.subcluster;
62646
+ if (options.oneofs)
62647
+ object.claim = "subcluster";
62648
+ }
62649
+ if (message.deployment != null && message.hasOwnProperty("deployment")) {
62650
+ object.deployment = message.deployment;
62651
+ if (options.oneofs)
62652
+ object.claim = "deployment";
62653
+ }
62654
+ if (message.userId != null && message.hasOwnProperty("userId")) {
62655
+ if (typeof message.userId === "number")
62656
+ object.userId = options.longs === String ? String(message.userId) : message.userId;
62657
+ else
62658
+ object.userId = options.longs === String ? $util.Long.prototype.toString.call(message.userId) : options.longs === Number ? new $util.LongBits(message.userId.low >>> 0, message.userId.high >>> 0).toNumber() : message.userId;
62659
+ if (options.oneofs)
62660
+ object.claim = "userId";
62661
+ }
62664
62662
  return object;
62665
62663
  };
62666
62664
 
@@ -63355,6 +63353,8 @@
63355
63353
  * @property {replit.goval.api.repl.BuildInfo|replit.goval.api.repl.IBuildInfo|null} [buildInfo] GovalReplIdentity buildInfo
63356
63354
  * @property {boolean|null} [isTeam] GovalReplIdentity isTeam
63357
63355
  * @property {Array.<string>|null} [roles] GovalReplIdentity roles
63356
+ * @property {replit.goval.api.ReplRuntimeInteractive|replit.goval.api.IReplRuntimeInteractive|null} [interactive] GovalReplIdentity interactive
63357
+ * @property {replit.goval.api.ReplRuntimeDeployment|replit.goval.api.IReplRuntimeDeployment|null} [deployment] GovalReplIdentity deployment
63358
63358
  */
63359
63359
 
63360
63360
  /**
@@ -63452,6 +63452,36 @@
63452
63452
  */
63453
63453
  GovalReplIdentity.prototype.roles = $util.emptyArray;
63454
63454
 
63455
+ /**
63456
+ * GovalReplIdentity interactive.
63457
+ * @member {replit.goval.api.ReplRuntimeInteractive|null|undefined} interactive
63458
+ * @memberof replit.goval.api.GovalReplIdentity
63459
+ * @instance
63460
+ */
63461
+ GovalReplIdentity.prototype.interactive = null;
63462
+
63463
+ /**
63464
+ * GovalReplIdentity deployment.
63465
+ * @member {replit.goval.api.ReplRuntimeDeployment|null|undefined} deployment
63466
+ * @memberof replit.goval.api.GovalReplIdentity
63467
+ * @instance
63468
+ */
63469
+ GovalReplIdentity.prototype.deployment = null;
63470
+
63471
+ // OneOf field names bound to virtual getters and setters
63472
+ var $oneOfFields;
63473
+
63474
+ /**
63475
+ * GovalReplIdentity runtime.
63476
+ * @member {"interactive"|"deployment"|undefined} runtime
63477
+ * @memberof replit.goval.api.GovalReplIdentity
63478
+ * @instance
63479
+ */
63480
+ Object.defineProperty(GovalReplIdentity.prototype, "runtime", {
63481
+ get: $util.oneOfGetter($oneOfFields = ["interactive", "deployment"]),
63482
+ set: $util.oneOfSetter($oneOfFields)
63483
+ });
63484
+
63455
63485
  /**
63456
63486
  * Creates a new GovalReplIdentity instance using the specified properties.
63457
63487
  * @function create
@@ -63497,6 +63527,10 @@
63497
63527
  if (message.roles != null && message.roles.length)
63498
63528
  for (var i = 0; i < message.roles.length; ++i)
63499
63529
  writer.uint32(/* id 10, wireType 2 =*/82).string(message.roles[i]);
63530
+ if (message.interactive != null && Object.hasOwnProperty.call(message, "interactive"))
63531
+ $root.replit.goval.api.ReplRuntimeInteractive.encode(message.interactive, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
63532
+ if (message.deployment != null && Object.hasOwnProperty.call(message, "deployment"))
63533
+ $root.replit.goval.api.ReplRuntimeDeployment.encode(message.deployment, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
63500
63534
  return writer;
63501
63535
  };
63502
63536
 
@@ -63573,6 +63607,14 @@
63573
63607
  message.roles.push(reader.string());
63574
63608
  break;
63575
63609
  }
63610
+ case 11: {
63611
+ message.interactive = $root.replit.goval.api.ReplRuntimeInteractive.decode(reader, reader.uint32());
63612
+ break;
63613
+ }
63614
+ case 12: {
63615
+ message.deployment = $root.replit.goval.api.ReplRuntimeDeployment.decode(reader, reader.uint32());
63616
+ break;
63617
+ }
63576
63618
  default:
63577
63619
  reader.skipType(tag & 7);
63578
63620
  break;
@@ -63608,6 +63650,7 @@
63608
63650
  GovalReplIdentity.verify = function verify(message) {
63609
63651
  if (typeof message !== "object" || message === null)
63610
63652
  return "object expected";
63653
+ var properties = {};
63611
63654
  if (message.replid != null && message.hasOwnProperty("replid"))
63612
63655
  if (!$util.isString(message.replid))
63613
63656
  return "replid: string expected";
@@ -63644,6 +63687,24 @@
63644
63687
  if (!$util.isString(message.roles[i]))
63645
63688
  return "roles: string[] expected";
63646
63689
  }
63690
+ if (message.interactive != null && message.hasOwnProperty("interactive")) {
63691
+ properties.runtime = 1;
63692
+ {
63693
+ var error = $root.replit.goval.api.ReplRuntimeInteractive.verify(message.interactive);
63694
+ if (error)
63695
+ return "interactive." + error;
63696
+ }
63697
+ }
63698
+ if (message.deployment != null && message.hasOwnProperty("deployment")) {
63699
+ if (properties.runtime === 1)
63700
+ return "runtime: multiple values";
63701
+ properties.runtime = 1;
63702
+ {
63703
+ var error = $root.replit.goval.api.ReplRuntimeDeployment.verify(message.deployment);
63704
+ if (error)
63705
+ return "deployment." + error;
63706
+ }
63707
+ }
63647
63708
  return null;
63648
63709
  };
63649
63710
 
@@ -63694,6 +63755,16 @@
63694
63755
  for (var i = 0; i < object.roles.length; ++i)
63695
63756
  message.roles[i] = String(object.roles[i]);
63696
63757
  }
63758
+ if (object.interactive != null) {
63759
+ if (typeof object.interactive !== "object")
63760
+ throw TypeError(".replit.goval.api.GovalReplIdentity.interactive: object expected");
63761
+ message.interactive = $root.replit.goval.api.ReplRuntimeInteractive.fromObject(object.interactive);
63762
+ }
63763
+ if (object.deployment != null) {
63764
+ if (typeof object.deployment !== "object")
63765
+ throw TypeError(".replit.goval.api.GovalReplIdentity.deployment: object expected");
63766
+ message.deployment = $root.replit.goval.api.ReplRuntimeDeployment.fromObject(object.deployment);
63767
+ }
63697
63768
  return message;
63698
63769
  };
63699
63770
 
@@ -63753,6 +63824,16 @@
63753
63824
  for (var j = 0; j < message.roles.length; ++j)
63754
63825
  object.roles[j] = message.roles[j];
63755
63826
  }
63827
+ if (message.interactive != null && message.hasOwnProperty("interactive")) {
63828
+ object.interactive = $root.replit.goval.api.ReplRuntimeInteractive.toObject(message.interactive, options);
63829
+ if (options.oneofs)
63830
+ object.runtime = "interactive";
63831
+ }
63832
+ if (message.deployment != null && message.hasOwnProperty("deployment")) {
63833
+ object.deployment = $root.replit.goval.api.ReplRuntimeDeployment.toObject(message.deployment, options);
63834
+ if (options.oneofs)
63835
+ object.runtime = "deployment";
63836
+ }
63756
63837
  return object;
63757
63838
  };
63758
63839
 
@@ -63785,6 +63866,406 @@
63785
63866
  return GovalReplIdentity;
63786
63867
  })();
63787
63868
 
63869
+ api.ReplRuntimeInteractive = (function() {
63870
+
63871
+ /**
63872
+ * Properties of a ReplRuntimeInteractive.
63873
+ * @memberof replit.goval.api
63874
+ * @interface IReplRuntimeInteractive
63875
+ * @property {string|null} [cluster] ReplRuntimeInteractive cluster
63876
+ * @property {string|null} [subcluster] ReplRuntimeInteractive subcluster
63877
+ */
63878
+
63879
+ /**
63880
+ * Constructs a new ReplRuntimeInteractive.
63881
+ * @memberof replit.goval.api
63882
+ * @classdesc Represents a ReplRuntimeInteractive.
63883
+ * @constructor
63884
+ * @param {replit.goval.api.IReplRuntimeInteractive=} [properties] Properties to set
63885
+ */
63886
+ function ReplRuntimeInteractive(properties) {
63887
+ if (properties)
63888
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
63889
+ if (properties[keys[i]] != null)
63890
+ this[keys[i]] = properties[keys[i]];
63891
+ }
63892
+
63893
+ /**
63894
+ * ReplRuntimeInteractive cluster.
63895
+ * @member {string} cluster
63896
+ * @memberof replit.goval.api.ReplRuntimeInteractive
63897
+ * @instance
63898
+ */
63899
+ ReplRuntimeInteractive.prototype.cluster = "";
63900
+
63901
+ /**
63902
+ * ReplRuntimeInteractive subcluster.
63903
+ * @member {string} subcluster
63904
+ * @memberof replit.goval.api.ReplRuntimeInteractive
63905
+ * @instance
63906
+ */
63907
+ ReplRuntimeInteractive.prototype.subcluster = "";
63908
+
63909
+ /**
63910
+ * Creates a new ReplRuntimeInteractive instance using the specified properties.
63911
+ * @function create
63912
+ * @memberof replit.goval.api.ReplRuntimeInteractive
63913
+ * @static
63914
+ * @param {replit.goval.api.IReplRuntimeInteractive=} [properties] Properties to set
63915
+ * @returns {replit.goval.api.ReplRuntimeInteractive} ReplRuntimeInteractive instance
63916
+ */
63917
+ ReplRuntimeInteractive.create = function create(properties) {
63918
+ return ReplRuntimeInteractive.fromObject(properties);
63919
+ };
63920
+
63921
+ /**
63922
+ * Encodes the specified ReplRuntimeInteractive message. Does not implicitly {@link replit.goval.api.ReplRuntimeInteractive.verify|verify} messages.
63923
+ * @function encode
63924
+ * @memberof replit.goval.api.ReplRuntimeInteractive
63925
+ * @static
63926
+ * @param {replit.goval.api.ReplRuntimeInteractive} message ReplRuntimeInteractive message or plain object to encode
63927
+ * @param {$protobuf.Writer} [writer] Writer to encode to
63928
+ * @returns {$protobuf.Writer} Writer
63929
+ */
63930
+ ReplRuntimeInteractive.encode = function encode(message, writer) {
63931
+ if (!writer)
63932
+ writer = $Writer.create();
63933
+ if (message.cluster != null && Object.hasOwnProperty.call(message, "cluster"))
63934
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.cluster);
63935
+ if (message.subcluster != null && Object.hasOwnProperty.call(message, "subcluster"))
63936
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.subcluster);
63937
+ return writer;
63938
+ };
63939
+
63940
+ /**
63941
+ * Encodes the specified ReplRuntimeInteractive message, length delimited. Does not implicitly {@link replit.goval.api.ReplRuntimeInteractive.verify|verify} messages.
63942
+ * @function encodeDelimited
63943
+ * @memberof replit.goval.api.ReplRuntimeInteractive
63944
+ * @static
63945
+ * @param {replit.goval.api.ReplRuntimeInteractive} message ReplRuntimeInteractive message or plain object to encode
63946
+ * @param {$protobuf.Writer} [writer] Writer to encode to
63947
+ * @returns {$protobuf.Writer} Writer
63948
+ */
63949
+ ReplRuntimeInteractive.encodeDelimited = function encodeDelimited(message, writer) {
63950
+ return this.encode(message, writer).ldelim();
63951
+ };
63952
+
63953
+ /**
63954
+ * Decodes a ReplRuntimeInteractive message from the specified reader or buffer.
63955
+ * @function decode
63956
+ * @memberof replit.goval.api.ReplRuntimeInteractive
63957
+ * @static
63958
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63959
+ * @param {number} [length] Message length if known beforehand
63960
+ * @returns {replit.goval.api.ReplRuntimeInteractive} ReplRuntimeInteractive
63961
+ * @throws {Error} If the payload is not a reader or valid buffer
63962
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
63963
+ */
63964
+ ReplRuntimeInteractive.decode = function decode(reader, length) {
63965
+ if (!(reader instanceof $Reader))
63966
+ reader = $Reader.create(reader);
63967
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplRuntimeInteractive();
63968
+ while (reader.pos < end) {
63969
+ var tag = reader.uint32();
63970
+ switch (tag >>> 3) {
63971
+ case 1: {
63972
+ message.cluster = reader.string();
63973
+ break;
63974
+ }
63975
+ case 2: {
63976
+ message.subcluster = reader.string();
63977
+ break;
63978
+ }
63979
+ default:
63980
+ reader.skipType(tag & 7);
63981
+ break;
63982
+ }
63983
+ }
63984
+ return message;
63985
+ };
63986
+
63987
+ /**
63988
+ * Decodes a ReplRuntimeInteractive message from the specified reader or buffer, length delimited.
63989
+ * @function decodeDelimited
63990
+ * @memberof replit.goval.api.ReplRuntimeInteractive
63991
+ * @static
63992
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
63993
+ * @returns {replit.goval.api.ReplRuntimeInteractive} ReplRuntimeInteractive
63994
+ * @throws {Error} If the payload is not a reader or valid buffer
63995
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
63996
+ */
63997
+ ReplRuntimeInteractive.decodeDelimited = function decodeDelimited(reader) {
63998
+ if (!(reader instanceof $Reader))
63999
+ reader = new $Reader(reader);
64000
+ return this.decode(reader, reader.uint32());
64001
+ };
64002
+
64003
+ /**
64004
+ * Verifies a ReplRuntimeInteractive message.
64005
+ * @function verify
64006
+ * @memberof replit.goval.api.ReplRuntimeInteractive
64007
+ * @static
64008
+ * @param {Object.<string,*>} message Plain object to verify
64009
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
64010
+ */
64011
+ ReplRuntimeInteractive.verify = function verify(message) {
64012
+ if (typeof message !== "object" || message === null)
64013
+ return "object expected";
64014
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
64015
+ if (!$util.isString(message.cluster))
64016
+ return "cluster: string expected";
64017
+ if (message.subcluster != null && message.hasOwnProperty("subcluster"))
64018
+ if (!$util.isString(message.subcluster))
64019
+ return "subcluster: string expected";
64020
+ return null;
64021
+ };
64022
+
64023
+ /**
64024
+ * Creates a ReplRuntimeInteractive message from a plain object. Also converts values to their respective internal types.
64025
+ * @function fromObject
64026
+ * @memberof replit.goval.api.ReplRuntimeInteractive
64027
+ * @static
64028
+ * @param {Object.<string,*>} object Plain object
64029
+ * @returns {replit.goval.api.ReplRuntimeInteractive} ReplRuntimeInteractive
64030
+ */
64031
+ ReplRuntimeInteractive.fromObject = function fromObject(object) {
64032
+ if (object instanceof $root.replit.goval.api.ReplRuntimeInteractive)
64033
+ return object;
64034
+ var message = new $root.replit.goval.api.ReplRuntimeInteractive();
64035
+ if (object.cluster != null)
64036
+ message.cluster = String(object.cluster);
64037
+ if (object.subcluster != null)
64038
+ message.subcluster = String(object.subcluster);
64039
+ return message;
64040
+ };
64041
+
64042
+ /**
64043
+ * Creates a plain object from a ReplRuntimeInteractive message. Also converts values to other types if specified.
64044
+ * @function toObject
64045
+ * @memberof replit.goval.api.ReplRuntimeInteractive
64046
+ * @static
64047
+ * @param {replit.goval.api.ReplRuntimeInteractive} message ReplRuntimeInteractive
64048
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
64049
+ * @returns {Object.<string,*>} Plain object
64050
+ */
64051
+ ReplRuntimeInteractive.toObject = function toObject(message, options) {
64052
+ if (!options)
64053
+ options = {};
64054
+ var object = {};
64055
+ if (options.defaults) {
64056
+ object.cluster = "";
64057
+ object.subcluster = "";
64058
+ }
64059
+ if (message.cluster != null && message.hasOwnProperty("cluster"))
64060
+ object.cluster = message.cluster;
64061
+ if (message.subcluster != null && message.hasOwnProperty("subcluster"))
64062
+ object.subcluster = message.subcluster;
64063
+ return object;
64064
+ };
64065
+
64066
+ /**
64067
+ * Converts this ReplRuntimeInteractive to JSON.
64068
+ * @function toJSON
64069
+ * @memberof replit.goval.api.ReplRuntimeInteractive
64070
+ * @instance
64071
+ * @returns {Object.<string,*>} JSON object
64072
+ */
64073
+ ReplRuntimeInteractive.prototype.toJSON = function toJSON() {
64074
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
64075
+ };
64076
+
64077
+ /**
64078
+ * Gets the default type url for ReplRuntimeInteractive
64079
+ * @function getTypeUrl
64080
+ * @memberof replit.goval.api.ReplRuntimeInteractive
64081
+ * @static
64082
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
64083
+ * @returns {string} The default type url
64084
+ */
64085
+ ReplRuntimeInteractive.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
64086
+ if (typeUrlPrefix === undefined) {
64087
+ typeUrlPrefix = "type.googleapis.com";
64088
+ }
64089
+ return typeUrlPrefix + "/replit.goval.api.ReplRuntimeInteractive";
64090
+ };
64091
+
64092
+ return ReplRuntimeInteractive;
64093
+ })();
64094
+
64095
+ api.ReplRuntimeDeployment = (function() {
64096
+
64097
+ /**
64098
+ * Properties of a ReplRuntimeDeployment.
64099
+ * @memberof replit.goval.api
64100
+ * @interface IReplRuntimeDeployment
64101
+ */
64102
+
64103
+ /**
64104
+ * Constructs a new ReplRuntimeDeployment.
64105
+ * @memberof replit.goval.api
64106
+ * @classdesc Represents a ReplRuntimeDeployment.
64107
+ * @constructor
64108
+ * @param {replit.goval.api.IReplRuntimeDeployment=} [properties] Properties to set
64109
+ */
64110
+ function ReplRuntimeDeployment(properties) {
64111
+ if (properties)
64112
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
64113
+ if (properties[keys[i]] != null)
64114
+ this[keys[i]] = properties[keys[i]];
64115
+ }
64116
+
64117
+ /**
64118
+ * Creates a new ReplRuntimeDeployment instance using the specified properties.
64119
+ * @function create
64120
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64121
+ * @static
64122
+ * @param {replit.goval.api.IReplRuntimeDeployment=} [properties] Properties to set
64123
+ * @returns {replit.goval.api.ReplRuntimeDeployment} ReplRuntimeDeployment instance
64124
+ */
64125
+ ReplRuntimeDeployment.create = function create(properties) {
64126
+ return ReplRuntimeDeployment.fromObject(properties);
64127
+ };
64128
+
64129
+ /**
64130
+ * Encodes the specified ReplRuntimeDeployment message. Does not implicitly {@link replit.goval.api.ReplRuntimeDeployment.verify|verify} messages.
64131
+ * @function encode
64132
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64133
+ * @static
64134
+ * @param {replit.goval.api.ReplRuntimeDeployment} message ReplRuntimeDeployment message or plain object to encode
64135
+ * @param {$protobuf.Writer} [writer] Writer to encode to
64136
+ * @returns {$protobuf.Writer} Writer
64137
+ */
64138
+ ReplRuntimeDeployment.encode = function encode(message, writer) {
64139
+ if (!writer)
64140
+ writer = $Writer.create();
64141
+ return writer;
64142
+ };
64143
+
64144
+ /**
64145
+ * Encodes the specified ReplRuntimeDeployment message, length delimited. Does not implicitly {@link replit.goval.api.ReplRuntimeDeployment.verify|verify} messages.
64146
+ * @function encodeDelimited
64147
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64148
+ * @static
64149
+ * @param {replit.goval.api.ReplRuntimeDeployment} message ReplRuntimeDeployment message or plain object to encode
64150
+ * @param {$protobuf.Writer} [writer] Writer to encode to
64151
+ * @returns {$protobuf.Writer} Writer
64152
+ */
64153
+ ReplRuntimeDeployment.encodeDelimited = function encodeDelimited(message, writer) {
64154
+ return this.encode(message, writer).ldelim();
64155
+ };
64156
+
64157
+ /**
64158
+ * Decodes a ReplRuntimeDeployment message from the specified reader or buffer.
64159
+ * @function decode
64160
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64161
+ * @static
64162
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
64163
+ * @param {number} [length] Message length if known beforehand
64164
+ * @returns {replit.goval.api.ReplRuntimeDeployment} ReplRuntimeDeployment
64165
+ * @throws {Error} If the payload is not a reader or valid buffer
64166
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
64167
+ */
64168
+ ReplRuntimeDeployment.decode = function decode(reader, length) {
64169
+ if (!(reader instanceof $Reader))
64170
+ reader = $Reader.create(reader);
64171
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplRuntimeDeployment();
64172
+ while (reader.pos < end) {
64173
+ var tag = reader.uint32();
64174
+ switch (tag >>> 3) {
64175
+ default:
64176
+ reader.skipType(tag & 7);
64177
+ break;
64178
+ }
64179
+ }
64180
+ return message;
64181
+ };
64182
+
64183
+ /**
64184
+ * Decodes a ReplRuntimeDeployment message from the specified reader or buffer, length delimited.
64185
+ * @function decodeDelimited
64186
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64187
+ * @static
64188
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
64189
+ * @returns {replit.goval.api.ReplRuntimeDeployment} ReplRuntimeDeployment
64190
+ * @throws {Error} If the payload is not a reader or valid buffer
64191
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
64192
+ */
64193
+ ReplRuntimeDeployment.decodeDelimited = function decodeDelimited(reader) {
64194
+ if (!(reader instanceof $Reader))
64195
+ reader = new $Reader(reader);
64196
+ return this.decode(reader, reader.uint32());
64197
+ };
64198
+
64199
+ /**
64200
+ * Verifies a ReplRuntimeDeployment message.
64201
+ * @function verify
64202
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64203
+ * @static
64204
+ * @param {Object.<string,*>} message Plain object to verify
64205
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
64206
+ */
64207
+ ReplRuntimeDeployment.verify = function verify(message) {
64208
+ if (typeof message !== "object" || message === null)
64209
+ return "object expected";
64210
+ return null;
64211
+ };
64212
+
64213
+ /**
64214
+ * Creates a ReplRuntimeDeployment message from a plain object. Also converts values to their respective internal types.
64215
+ * @function fromObject
64216
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64217
+ * @static
64218
+ * @param {Object.<string,*>} object Plain object
64219
+ * @returns {replit.goval.api.ReplRuntimeDeployment} ReplRuntimeDeployment
64220
+ */
64221
+ ReplRuntimeDeployment.fromObject = function fromObject(object) {
64222
+ if (object instanceof $root.replit.goval.api.ReplRuntimeDeployment)
64223
+ return object;
64224
+ return new $root.replit.goval.api.ReplRuntimeDeployment();
64225
+ };
64226
+
64227
+ /**
64228
+ * Creates a plain object from a ReplRuntimeDeployment message. Also converts values to other types if specified.
64229
+ * @function toObject
64230
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64231
+ * @static
64232
+ * @param {replit.goval.api.ReplRuntimeDeployment} message ReplRuntimeDeployment
64233
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
64234
+ * @returns {Object.<string,*>} Plain object
64235
+ */
64236
+ ReplRuntimeDeployment.toObject = function toObject() {
64237
+ return {};
64238
+ };
64239
+
64240
+ /**
64241
+ * Converts this ReplRuntimeDeployment to JSON.
64242
+ * @function toJSON
64243
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64244
+ * @instance
64245
+ * @returns {Object.<string,*>} JSON object
64246
+ */
64247
+ ReplRuntimeDeployment.prototype.toJSON = function toJSON() {
64248
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
64249
+ };
64250
+
64251
+ /**
64252
+ * Gets the default type url for ReplRuntimeDeployment
64253
+ * @function getTypeUrl
64254
+ * @memberof replit.goval.api.ReplRuntimeDeployment
64255
+ * @static
64256
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
64257
+ * @returns {string} The default type url
64258
+ */
64259
+ ReplRuntimeDeployment.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
64260
+ if (typeUrlPrefix === undefined) {
64261
+ typeUrlPrefix = "type.googleapis.com";
64262
+ }
64263
+ return typeUrlPrefix + "/replit.goval.api.ReplRuntimeDeployment";
64264
+ };
64265
+
64266
+ return ReplRuntimeDeployment;
64267
+ })();
64268
+
63788
64269
  api.lore = (function() {
63789
64270
 
63790
64271
  /**
@@ -69851,265 +70332,6 @@
69851
70332
  return BuildInfo;
69852
70333
  })();
69853
70334
 
69854
- repl.Pid2 = (function() {
69855
-
69856
- /**
69857
- * Properties of a Pid2.
69858
- * @memberof replit.goval.api.repl
69859
- * @interface IPid2
69860
- * @property {replit.goval.api.repl.Pid2.Bucket|null} [bucket] Pid2 bucket
69861
- * @property {string|null} [version] Pid2 version
69862
- */
69863
-
69864
- /**
69865
- * Constructs a new Pid2.
69866
- * @memberof replit.goval.api.repl
69867
- * @classdesc Represents a Pid2.
69868
- * @constructor
69869
- * @param {replit.goval.api.repl.IPid2=} [properties] Properties to set
69870
- */
69871
- function Pid2(properties) {
69872
- if (properties)
69873
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
69874
- if (properties[keys[i]] != null)
69875
- this[keys[i]] = properties[keys[i]];
69876
- }
69877
-
69878
- /**
69879
- * Pid2 bucket.
69880
- * @member {replit.goval.api.repl.Pid2.Bucket} bucket
69881
- * @memberof replit.goval.api.repl.Pid2
69882
- * @instance
69883
- */
69884
- Pid2.prototype.bucket = 0;
69885
-
69886
- /**
69887
- * Pid2 version.
69888
- * @member {string} version
69889
- * @memberof replit.goval.api.repl.Pid2
69890
- * @instance
69891
- */
69892
- Pid2.prototype.version = "";
69893
-
69894
- /**
69895
- * Creates a new Pid2 instance using the specified properties.
69896
- * @function create
69897
- * @memberof replit.goval.api.repl.Pid2
69898
- * @static
69899
- * @param {replit.goval.api.repl.IPid2=} [properties] Properties to set
69900
- * @returns {replit.goval.api.repl.Pid2} Pid2 instance
69901
- */
69902
- Pid2.create = function create(properties) {
69903
- return Pid2.fromObject(properties);
69904
- };
69905
-
69906
- /**
69907
- * Encodes the specified Pid2 message. Does not implicitly {@link replit.goval.api.repl.Pid2.verify|verify} messages.
69908
- * @function encode
69909
- * @memberof replit.goval.api.repl.Pid2
69910
- * @static
69911
- * @param {replit.goval.api.repl.Pid2} message Pid2 message or plain object to encode
69912
- * @param {$protobuf.Writer} [writer] Writer to encode to
69913
- * @returns {$protobuf.Writer} Writer
69914
- */
69915
- Pid2.encode = function encode(message, writer) {
69916
- if (!writer)
69917
- writer = $Writer.create();
69918
- if (message.bucket != null && Object.hasOwnProperty.call(message, "bucket"))
69919
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.bucket);
69920
- if (message.version != null && Object.hasOwnProperty.call(message, "version"))
69921
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.version);
69922
- return writer;
69923
- };
69924
-
69925
- /**
69926
- * Encodes the specified Pid2 message, length delimited. Does not implicitly {@link replit.goval.api.repl.Pid2.verify|verify} messages.
69927
- * @function encodeDelimited
69928
- * @memberof replit.goval.api.repl.Pid2
69929
- * @static
69930
- * @param {replit.goval.api.repl.Pid2} message Pid2 message or plain object to encode
69931
- * @param {$protobuf.Writer} [writer] Writer to encode to
69932
- * @returns {$protobuf.Writer} Writer
69933
- */
69934
- Pid2.encodeDelimited = function encodeDelimited(message, writer) {
69935
- return this.encode(message, writer).ldelim();
69936
- };
69937
-
69938
- /**
69939
- * Decodes a Pid2 message from the specified reader or buffer.
69940
- * @function decode
69941
- * @memberof replit.goval.api.repl.Pid2
69942
- * @static
69943
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69944
- * @param {number} [length] Message length if known beforehand
69945
- * @returns {replit.goval.api.repl.Pid2} Pid2
69946
- * @throws {Error} If the payload is not a reader or valid buffer
69947
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
69948
- */
69949
- Pid2.decode = function decode(reader, length) {
69950
- if (!(reader instanceof $Reader))
69951
- reader = $Reader.create(reader);
69952
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.repl.Pid2();
69953
- while (reader.pos < end) {
69954
- var tag = reader.uint32();
69955
- switch (tag >>> 3) {
69956
- case 1: {
69957
- message.bucket = reader.int32();
69958
- break;
69959
- }
69960
- case 2: {
69961
- message.version = reader.string();
69962
- break;
69963
- }
69964
- default:
69965
- reader.skipType(tag & 7);
69966
- break;
69967
- }
69968
- }
69969
- return message;
69970
- };
69971
-
69972
- /**
69973
- * Decodes a Pid2 message from the specified reader or buffer, length delimited.
69974
- * @function decodeDelimited
69975
- * @memberof replit.goval.api.repl.Pid2
69976
- * @static
69977
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
69978
- * @returns {replit.goval.api.repl.Pid2} Pid2
69979
- * @throws {Error} If the payload is not a reader or valid buffer
69980
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
69981
- */
69982
- Pid2.decodeDelimited = function decodeDelimited(reader) {
69983
- if (!(reader instanceof $Reader))
69984
- reader = new $Reader(reader);
69985
- return this.decode(reader, reader.uint32());
69986
- };
69987
-
69988
- /**
69989
- * Verifies a Pid2 message.
69990
- * @function verify
69991
- * @memberof replit.goval.api.repl.Pid2
69992
- * @static
69993
- * @param {Object.<string,*>} message Plain object to verify
69994
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
69995
- */
69996
- Pid2.verify = function verify(message) {
69997
- if (typeof message !== "object" || message === null)
69998
- return "object expected";
69999
- if (message.bucket != null && message.hasOwnProperty("bucket"))
70000
- switch (message.bucket) {
70001
- default:
70002
- return "bucket: enum value expected";
70003
- case 0:
70004
- case 1:
70005
- break;
70006
- }
70007
- if (message.version != null && message.hasOwnProperty("version"))
70008
- if (!$util.isString(message.version))
70009
- return "version: string expected";
70010
- return null;
70011
- };
70012
-
70013
- /**
70014
- * Creates a Pid2 message from a plain object. Also converts values to their respective internal types.
70015
- * @function fromObject
70016
- * @memberof replit.goval.api.repl.Pid2
70017
- * @static
70018
- * @param {Object.<string,*>} object Plain object
70019
- * @returns {replit.goval.api.repl.Pid2} Pid2
70020
- */
70021
- Pid2.fromObject = function fromObject(object) {
70022
- if (object instanceof $root.replit.goval.api.repl.Pid2)
70023
- return object;
70024
- var message = new $root.replit.goval.api.repl.Pid2();
70025
- switch (object.bucket) {
70026
- default:
70027
- if (typeof object.bucket === "number") {
70028
- message.bucket = object.bucket;
70029
- break;
70030
- }
70031
- break;
70032
- case "PRODUCTION":
70033
- case 0:
70034
- message.bucket = 0;
70035
- break;
70036
- case "DEVELOPMENT":
70037
- case 1:
70038
- message.bucket = 1;
70039
- break;
70040
- }
70041
- if (object.version != null)
70042
- message.version = String(object.version);
70043
- return message;
70044
- };
70045
-
70046
- /**
70047
- * Creates a plain object from a Pid2 message. Also converts values to other types if specified.
70048
- * @function toObject
70049
- * @memberof replit.goval.api.repl.Pid2
70050
- * @static
70051
- * @param {replit.goval.api.repl.Pid2} message Pid2
70052
- * @param {$protobuf.IConversionOptions} [options] Conversion options
70053
- * @returns {Object.<string,*>} Plain object
70054
- */
70055
- Pid2.toObject = function toObject(message, options) {
70056
- if (!options)
70057
- options = {};
70058
- var object = {};
70059
- if (options.defaults) {
70060
- object.bucket = options.enums === String ? "PRODUCTION" : 0;
70061
- object.version = "";
70062
- }
70063
- if (message.bucket != null && message.hasOwnProperty("bucket"))
70064
- object.bucket = options.enums === String ? $root.replit.goval.api.repl.Pid2.Bucket[message.bucket] === undefined ? message.bucket : $root.replit.goval.api.repl.Pid2.Bucket[message.bucket] : message.bucket;
70065
- if (message.version != null && message.hasOwnProperty("version"))
70066
- object.version = message.version;
70067
- return object;
70068
- };
70069
-
70070
- /**
70071
- * Converts this Pid2 to JSON.
70072
- * @function toJSON
70073
- * @memberof replit.goval.api.repl.Pid2
70074
- * @instance
70075
- * @returns {Object.<string,*>} JSON object
70076
- */
70077
- Pid2.prototype.toJSON = function toJSON() {
70078
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
70079
- };
70080
-
70081
- /**
70082
- * Gets the default type url for Pid2
70083
- * @function getTypeUrl
70084
- * @memberof replit.goval.api.repl.Pid2
70085
- * @static
70086
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
70087
- * @returns {string} The default type url
70088
- */
70089
- Pid2.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
70090
- if (typeUrlPrefix === undefined) {
70091
- typeUrlPrefix = "type.googleapis.com";
70092
- }
70093
- return typeUrlPrefix + "/replit.goval.api.repl.Pid2";
70094
- };
70095
-
70096
- /**
70097
- * Bucket enum.
70098
- * @name replit.goval.api.repl.Pid2.Bucket
70099
- * @enum {number}
70100
- * @property {number} PRODUCTION=0 PRODUCTION value
70101
- * @property {number} DEVELOPMENT=1 DEVELOPMENT value
70102
- */
70103
- Pid2.Bucket = (function() {
70104
- var valuesById = {}, values = Object.create(valuesById);
70105
- values[valuesById[0] = "PRODUCTION"] = 0;
70106
- values[valuesById[1] = "DEVELOPMENT"] = 1;
70107
- return values;
70108
- })();
70109
-
70110
- return Pid2;
70111
- })();
70112
-
70113
70335
  return repl;
70114
70336
  })();
70115
70337
 
@@ -71046,2693 +71268,273 @@
71046
71268
 
71047
71269
  api.UserPowerUps = (function() {
71048
71270
 
71049
- /**
71050
- * Properties of a UserPowerUps.
71051
- * @memberof replit.goval.api
71052
- * @interface IUserPowerUps
71053
- * @property {number|null} [userId] UserPowerUps userId
71054
- * @property {string|null} [username] UserPowerUps username
71055
- * @property {Array.<replit.goval.api.PowerUp|replit.goval.api.IPowerUp>|null} [powerups] UserPowerUps powerups
71056
- */
71057
-
71058
- /**
71059
- * Constructs a new UserPowerUps.
71060
- * @memberof replit.goval.api
71061
- * @classdesc Represents a UserPowerUps.
71062
- * @constructor
71063
- * @param {replit.goval.api.IUserPowerUps=} [properties] Properties to set
71064
- */
71065
- function UserPowerUps(properties) {
71066
- this.powerups = [];
71067
- if (properties)
71068
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
71069
- if (properties[keys[i]] != null)
71070
- this[keys[i]] = properties[keys[i]];
71071
- }
71072
-
71073
- /**
71074
- * UserPowerUps userId.
71075
- * @member {number} userId
71076
- * @memberof replit.goval.api.UserPowerUps
71077
- * @instance
71078
- */
71079
- UserPowerUps.prototype.userId = 0;
71080
-
71081
- /**
71082
- * UserPowerUps username.
71083
- * @member {string} username
71084
- * @memberof replit.goval.api.UserPowerUps
71085
- * @instance
71086
- */
71087
- UserPowerUps.prototype.username = "";
71088
-
71089
- /**
71090
- * UserPowerUps powerups.
71091
- * @member {Array.<replit.goval.api.PowerUp>} powerups
71092
- * @memberof replit.goval.api.UserPowerUps
71093
- * @instance
71094
- */
71095
- UserPowerUps.prototype.powerups = $util.emptyArray;
71096
-
71097
- /**
71098
- * Creates a new UserPowerUps instance using the specified properties.
71099
- * @function create
71100
- * @memberof replit.goval.api.UserPowerUps
71101
- * @static
71102
- * @param {replit.goval.api.IUserPowerUps=} [properties] Properties to set
71103
- * @returns {replit.goval.api.UserPowerUps} UserPowerUps instance
71104
- */
71105
- UserPowerUps.create = function create(properties) {
71106
- return UserPowerUps.fromObject(properties);
71107
- };
71108
-
71109
- /**
71110
- * Encodes the specified UserPowerUps message. Does not implicitly {@link replit.goval.api.UserPowerUps.verify|verify} messages.
71111
- * @function encode
71112
- * @memberof replit.goval.api.UserPowerUps
71113
- * @static
71114
- * @param {replit.goval.api.UserPowerUps} message UserPowerUps message or plain object to encode
71115
- * @param {$protobuf.Writer} [writer] Writer to encode to
71116
- * @returns {$protobuf.Writer} Writer
71117
- */
71118
- UserPowerUps.encode = function encode(message, writer) {
71119
- if (!writer)
71120
- writer = $Writer.create();
71121
- if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
71122
- writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userId);
71123
- if (message.username != null && Object.hasOwnProperty.call(message, "username"))
71124
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.username);
71125
- if (message.powerups != null && message.powerups.length)
71126
- for (var i = 0; i < message.powerups.length; ++i)
71127
- $root.replit.goval.api.PowerUp.encode(message.powerups[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
71128
- return writer;
71129
- };
71130
-
71131
- /**
71132
- * Encodes the specified UserPowerUps message, length delimited. Does not implicitly {@link replit.goval.api.UserPowerUps.verify|verify} messages.
71133
- * @function encodeDelimited
71134
- * @memberof replit.goval.api.UserPowerUps
71135
- * @static
71136
- * @param {replit.goval.api.UserPowerUps} message UserPowerUps message or plain object to encode
71137
- * @param {$protobuf.Writer} [writer] Writer to encode to
71138
- * @returns {$protobuf.Writer} Writer
71139
- */
71140
- UserPowerUps.encodeDelimited = function encodeDelimited(message, writer) {
71141
- return this.encode(message, writer).ldelim();
71142
- };
71143
-
71144
- /**
71145
- * Decodes a UserPowerUps message from the specified reader or buffer.
71146
- * @function decode
71147
- * @memberof replit.goval.api.UserPowerUps
71148
- * @static
71149
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71150
- * @param {number} [length] Message length if known beforehand
71151
- * @returns {replit.goval.api.UserPowerUps} UserPowerUps
71152
- * @throws {Error} If the payload is not a reader or valid buffer
71153
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
71154
- */
71155
- UserPowerUps.decode = function decode(reader, length) {
71156
- if (!(reader instanceof $Reader))
71157
- reader = $Reader.create(reader);
71158
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UserPowerUps();
71159
- while (reader.pos < end) {
71160
- var tag = reader.uint32();
71161
- switch (tag >>> 3) {
71162
- case 1: {
71163
- message.userId = reader.uint32();
71164
- break;
71165
- }
71166
- case 2: {
71167
- message.username = reader.string();
71168
- break;
71169
- }
71170
- case 3: {
71171
- if (!(message.powerups && message.powerups.length))
71172
- message.powerups = [];
71173
- message.powerups.push($root.replit.goval.api.PowerUp.decode(reader, reader.uint32()));
71174
- break;
71175
- }
71176
- default:
71177
- reader.skipType(tag & 7);
71178
- break;
71179
- }
71180
- }
71181
- return message;
71182
- };
71183
-
71184
- /**
71185
- * Decodes a UserPowerUps message from the specified reader or buffer, length delimited.
71186
- * @function decodeDelimited
71187
- * @memberof replit.goval.api.UserPowerUps
71188
- * @static
71189
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71190
- * @returns {replit.goval.api.UserPowerUps} UserPowerUps
71191
- * @throws {Error} If the payload is not a reader or valid buffer
71192
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
71193
- */
71194
- UserPowerUps.decodeDelimited = function decodeDelimited(reader) {
71195
- if (!(reader instanceof $Reader))
71196
- reader = new $Reader(reader);
71197
- return this.decode(reader, reader.uint32());
71198
- };
71199
-
71200
- /**
71201
- * Verifies a UserPowerUps message.
71202
- * @function verify
71203
- * @memberof replit.goval.api.UserPowerUps
71204
- * @static
71205
- * @param {Object.<string,*>} message Plain object to verify
71206
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
71207
- */
71208
- UserPowerUps.verify = function verify(message) {
71209
- if (typeof message !== "object" || message === null)
71210
- return "object expected";
71211
- if (message.userId != null && message.hasOwnProperty("userId"))
71212
- if (!$util.isInteger(message.userId))
71213
- return "userId: integer expected";
71214
- if (message.username != null && message.hasOwnProperty("username"))
71215
- if (!$util.isString(message.username))
71216
- return "username: string expected";
71217
- if (message.powerups != null && message.hasOwnProperty("powerups")) {
71218
- if (!Array.isArray(message.powerups))
71219
- return "powerups: array expected";
71220
- for (var i = 0; i < message.powerups.length; ++i) {
71221
- var error = $root.replit.goval.api.PowerUp.verify(message.powerups[i]);
71222
- if (error)
71223
- return "powerups." + error;
71224
- }
71225
- }
71226
- return null;
71227
- };
71228
-
71229
- /**
71230
- * Creates a UserPowerUps message from a plain object. Also converts values to their respective internal types.
71231
- * @function fromObject
71232
- * @memberof replit.goval.api.UserPowerUps
71233
- * @static
71234
- * @param {Object.<string,*>} object Plain object
71235
- * @returns {replit.goval.api.UserPowerUps} UserPowerUps
71236
- */
71237
- UserPowerUps.fromObject = function fromObject(object) {
71238
- if (object instanceof $root.replit.goval.api.UserPowerUps)
71239
- return object;
71240
- var message = new $root.replit.goval.api.UserPowerUps();
71241
- if (object.userId != null)
71242
- message.userId = object.userId >>> 0;
71243
- if (object.username != null)
71244
- message.username = String(object.username);
71245
- if (object.powerups) {
71246
- if (!Array.isArray(object.powerups))
71247
- throw TypeError(".replit.goval.api.UserPowerUps.powerups: array expected");
71248
- message.powerups = [];
71249
- for (var i = 0; i < object.powerups.length; ++i) {
71250
- if (typeof object.powerups[i] !== "object")
71251
- throw TypeError(".replit.goval.api.UserPowerUps.powerups: object expected");
71252
- message.powerups[i] = $root.replit.goval.api.PowerUp.fromObject(object.powerups[i]);
71253
- }
71254
- }
71255
- return message;
71256
- };
71257
-
71258
- /**
71259
- * Creates a plain object from a UserPowerUps message. Also converts values to other types if specified.
71260
- * @function toObject
71261
- * @memberof replit.goval.api.UserPowerUps
71262
- * @static
71263
- * @param {replit.goval.api.UserPowerUps} message UserPowerUps
71264
- * @param {$protobuf.IConversionOptions} [options] Conversion options
71265
- * @returns {Object.<string,*>} Plain object
71266
- */
71267
- UserPowerUps.toObject = function toObject(message, options) {
71268
- if (!options)
71269
- options = {};
71270
- var object = {};
71271
- if (options.arrays || options.defaults)
71272
- object.powerups = [];
71273
- if (options.defaults) {
71274
- object.userId = 0;
71275
- object.username = "";
71276
- }
71277
- if (message.userId != null && message.hasOwnProperty("userId"))
71278
- object.userId = message.userId;
71279
- if (message.username != null && message.hasOwnProperty("username"))
71280
- object.username = message.username;
71281
- if (message.powerups && message.powerups.length) {
71282
- object.powerups = [];
71283
- for (var j = 0; j < message.powerups.length; ++j)
71284
- object.powerups[j] = $root.replit.goval.api.PowerUp.toObject(message.powerups[j], options);
71285
- }
71286
- return object;
71287
- };
71288
-
71289
- /**
71290
- * Converts this UserPowerUps to JSON.
71291
- * @function toJSON
71292
- * @memberof replit.goval.api.UserPowerUps
71293
- * @instance
71294
- * @returns {Object.<string,*>} JSON object
71295
- */
71296
- UserPowerUps.prototype.toJSON = function toJSON() {
71297
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71298
- };
71299
-
71300
- /**
71301
- * Gets the default type url for UserPowerUps
71302
- * @function getTypeUrl
71303
- * @memberof replit.goval.api.UserPowerUps
71304
- * @static
71305
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
71306
- * @returns {string} The default type url
71307
- */
71308
- UserPowerUps.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
71309
- if (typeUrlPrefix === undefined) {
71310
- typeUrlPrefix = "type.googleapis.com";
71311
- }
71312
- return typeUrlPrefix + "/replit.goval.api.UserPowerUps";
71313
- };
71314
-
71315
- return UserPowerUps;
71316
- })();
71317
-
71318
- api.pid2 = (function() {
71319
-
71320
- /**
71321
- * Namespace pid2.
71322
- * @memberof replit.goval.api
71323
- * @namespace
71324
- */
71325
- var pid2 = {};
71326
-
71327
- pid2.ClientFrame = (function() {
71328
-
71329
- /**
71330
- * Properties of a ClientFrame.
71331
- * @memberof replit.goval.api.pid2
71332
- * @interface IClientFrame
71333
- * @property {number|null} [sessionId] ClientFrame sessionId
71334
- * @property {replit.goval.api.pid2.CallRequest|replit.goval.api.pid2.ICallRequest|null} [call] ClientFrame call
71335
- * @property {replit.goval.api.pid2.StreamContinuationRequest|replit.goval.api.pid2.IStreamContinuationRequest|null} [streamContinuation] ClientFrame streamContinuation
71336
- * @property {replit.goval.api.pid2.StreamCancelRequest|replit.goval.api.pid2.IStreamCancelRequest|null} [streamCancel] ClientFrame streamCancel
71337
- * @property {replit.goval.api.pid2.Ping|replit.goval.api.pid2.IPing|null} [ping] ClientFrame ping
71338
- */
71339
-
71340
- /**
71341
- * Constructs a new ClientFrame.
71342
- * @memberof replit.goval.api.pid2
71343
- * @classdesc Represents a ClientFrame.
71344
- * @constructor
71345
- * @param {replit.goval.api.pid2.IClientFrame=} [properties] Properties to set
71346
- */
71347
- function ClientFrame(properties) {
71348
- if (properties)
71349
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
71350
- if (properties[keys[i]] != null)
71351
- this[keys[i]] = properties[keys[i]];
71352
- }
71353
-
71354
- /**
71355
- * ClientFrame sessionId.
71356
- * @member {number} sessionId
71357
- * @memberof replit.goval.api.pid2.ClientFrame
71358
- * @instance
71359
- */
71360
- ClientFrame.prototype.sessionId = 0;
71361
-
71362
- /**
71363
- * ClientFrame call.
71364
- * @member {replit.goval.api.pid2.CallRequest|null|undefined} call
71365
- * @memberof replit.goval.api.pid2.ClientFrame
71366
- * @instance
71367
- */
71368
- ClientFrame.prototype.call = null;
71369
-
71370
- /**
71371
- * ClientFrame streamContinuation.
71372
- * @member {replit.goval.api.pid2.StreamContinuationRequest|null|undefined} streamContinuation
71373
- * @memberof replit.goval.api.pid2.ClientFrame
71374
- * @instance
71375
- */
71376
- ClientFrame.prototype.streamContinuation = null;
71377
-
71378
- /**
71379
- * ClientFrame streamCancel.
71380
- * @member {replit.goval.api.pid2.StreamCancelRequest|null|undefined} streamCancel
71381
- * @memberof replit.goval.api.pid2.ClientFrame
71382
- * @instance
71383
- */
71384
- ClientFrame.prototype.streamCancel = null;
71385
-
71386
- /**
71387
- * ClientFrame ping.
71388
- * @member {replit.goval.api.pid2.Ping|null|undefined} ping
71389
- * @memberof replit.goval.api.pid2.ClientFrame
71390
- * @instance
71391
- */
71392
- ClientFrame.prototype.ping = null;
71393
-
71394
- // OneOf field names bound to virtual getters and setters
71395
- var $oneOfFields;
71396
-
71397
- /**
71398
- * ClientFrame body.
71399
- * @member {"call"|"streamContinuation"|"streamCancel"|"ping"|undefined} body
71400
- * @memberof replit.goval.api.pid2.ClientFrame
71401
- * @instance
71402
- */
71403
- Object.defineProperty(ClientFrame.prototype, "body", {
71404
- get: $util.oneOfGetter($oneOfFields = ["call", "streamContinuation", "streamCancel", "ping"]),
71405
- set: $util.oneOfSetter($oneOfFields)
71406
- });
71407
-
71408
- /**
71409
- * Creates a new ClientFrame instance using the specified properties.
71410
- * @function create
71411
- * @memberof replit.goval.api.pid2.ClientFrame
71412
- * @static
71413
- * @param {replit.goval.api.pid2.IClientFrame=} [properties] Properties to set
71414
- * @returns {replit.goval.api.pid2.ClientFrame} ClientFrame instance
71415
- */
71416
- ClientFrame.create = function create(properties) {
71417
- return ClientFrame.fromObject(properties);
71418
- };
71419
-
71420
- /**
71421
- * Encodes the specified ClientFrame message. Does not implicitly {@link replit.goval.api.pid2.ClientFrame.verify|verify} messages.
71422
- * @function encode
71423
- * @memberof replit.goval.api.pid2.ClientFrame
71424
- * @static
71425
- * @param {replit.goval.api.pid2.ClientFrame} message ClientFrame message or plain object to encode
71426
- * @param {$protobuf.Writer} [writer] Writer to encode to
71427
- * @returns {$protobuf.Writer} Writer
71428
- */
71429
- ClientFrame.encode = function encode(message, writer) {
71430
- if (!writer)
71431
- writer = $Writer.create();
71432
- if (message.sessionId != null && Object.hasOwnProperty.call(message, "sessionId"))
71433
- writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sessionId);
71434
- if (message.call != null && Object.hasOwnProperty.call(message, "call"))
71435
- $root.replit.goval.api.pid2.CallRequest.encode(message.call, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
71436
- if (message.streamContinuation != null && Object.hasOwnProperty.call(message, "streamContinuation"))
71437
- $root.replit.goval.api.pid2.StreamContinuationRequest.encode(message.streamContinuation, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
71438
- if (message.streamCancel != null && Object.hasOwnProperty.call(message, "streamCancel"))
71439
- $root.replit.goval.api.pid2.StreamCancelRequest.encode(message.streamCancel, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
71440
- if (message.ping != null && Object.hasOwnProperty.call(message, "ping"))
71441
- $root.replit.goval.api.pid2.Ping.encode(message.ping, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
71442
- return writer;
71443
- };
71444
-
71445
- /**
71446
- * Encodes the specified ClientFrame message, length delimited. Does not implicitly {@link replit.goval.api.pid2.ClientFrame.verify|verify} messages.
71447
- * @function encodeDelimited
71448
- * @memberof replit.goval.api.pid2.ClientFrame
71449
- * @static
71450
- * @param {replit.goval.api.pid2.ClientFrame} message ClientFrame message or plain object to encode
71451
- * @param {$protobuf.Writer} [writer] Writer to encode to
71452
- * @returns {$protobuf.Writer} Writer
71453
- */
71454
- ClientFrame.encodeDelimited = function encodeDelimited(message, writer) {
71455
- return this.encode(message, writer).ldelim();
71456
- };
71457
-
71458
- /**
71459
- * Decodes a ClientFrame message from the specified reader or buffer.
71460
- * @function decode
71461
- * @memberof replit.goval.api.pid2.ClientFrame
71462
- * @static
71463
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71464
- * @param {number} [length] Message length if known beforehand
71465
- * @returns {replit.goval.api.pid2.ClientFrame} ClientFrame
71466
- * @throws {Error} If the payload is not a reader or valid buffer
71467
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
71468
- */
71469
- ClientFrame.decode = function decode(reader, length) {
71470
- if (!(reader instanceof $Reader))
71471
- reader = $Reader.create(reader);
71472
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.ClientFrame();
71473
- while (reader.pos < end) {
71474
- var tag = reader.uint32();
71475
- switch (tag >>> 3) {
71476
- case 1: {
71477
- message.sessionId = reader.uint32();
71478
- break;
71479
- }
71480
- case 2: {
71481
- message.call = $root.replit.goval.api.pid2.CallRequest.decode(reader, reader.uint32());
71482
- break;
71483
- }
71484
- case 3: {
71485
- message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.decode(reader, reader.uint32());
71486
- break;
71487
- }
71488
- case 4: {
71489
- message.streamCancel = $root.replit.goval.api.pid2.StreamCancelRequest.decode(reader, reader.uint32());
71490
- break;
71491
- }
71492
- case 5: {
71493
- message.ping = $root.replit.goval.api.pid2.Ping.decode(reader, reader.uint32());
71494
- break;
71495
- }
71496
- default:
71497
- reader.skipType(tag & 7);
71498
- break;
71499
- }
71500
- }
71501
- return message;
71502
- };
71503
-
71504
- /**
71505
- * Decodes a ClientFrame message from the specified reader or buffer, length delimited.
71506
- * @function decodeDelimited
71507
- * @memberof replit.goval.api.pid2.ClientFrame
71508
- * @static
71509
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71510
- * @returns {replit.goval.api.pid2.ClientFrame} ClientFrame
71511
- * @throws {Error} If the payload is not a reader or valid buffer
71512
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
71513
- */
71514
- ClientFrame.decodeDelimited = function decodeDelimited(reader) {
71515
- if (!(reader instanceof $Reader))
71516
- reader = new $Reader(reader);
71517
- return this.decode(reader, reader.uint32());
71518
- };
71519
-
71520
- /**
71521
- * Verifies a ClientFrame message.
71522
- * @function verify
71523
- * @memberof replit.goval.api.pid2.ClientFrame
71524
- * @static
71525
- * @param {Object.<string,*>} message Plain object to verify
71526
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
71527
- */
71528
- ClientFrame.verify = function verify(message) {
71529
- if (typeof message !== "object" || message === null)
71530
- return "object expected";
71531
- var properties = {};
71532
- if (message.sessionId != null && message.hasOwnProperty("sessionId"))
71533
- if (!$util.isInteger(message.sessionId))
71534
- return "sessionId: integer expected";
71535
- if (message.call != null && message.hasOwnProperty("call")) {
71536
- properties.body = 1;
71537
- {
71538
- var error = $root.replit.goval.api.pid2.CallRequest.verify(message.call);
71539
- if (error)
71540
- return "call." + error;
71541
- }
71542
- }
71543
- if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
71544
- if (properties.body === 1)
71545
- return "body: multiple values";
71546
- properties.body = 1;
71547
- {
71548
- var error = $root.replit.goval.api.pid2.StreamContinuationRequest.verify(message.streamContinuation);
71549
- if (error)
71550
- return "streamContinuation." + error;
71551
- }
71552
- }
71553
- if (message.streamCancel != null && message.hasOwnProperty("streamCancel")) {
71554
- if (properties.body === 1)
71555
- return "body: multiple values";
71556
- properties.body = 1;
71557
- {
71558
- var error = $root.replit.goval.api.pid2.StreamCancelRequest.verify(message.streamCancel);
71559
- if (error)
71560
- return "streamCancel." + error;
71561
- }
71562
- }
71563
- if (message.ping != null && message.hasOwnProperty("ping")) {
71564
- if (properties.body === 1)
71565
- return "body: multiple values";
71566
- properties.body = 1;
71567
- {
71568
- var error = $root.replit.goval.api.pid2.Ping.verify(message.ping);
71569
- if (error)
71570
- return "ping." + error;
71571
- }
71572
- }
71573
- return null;
71574
- };
71575
-
71576
- /**
71577
- * Creates a ClientFrame message from a plain object. Also converts values to their respective internal types.
71578
- * @function fromObject
71579
- * @memberof replit.goval.api.pid2.ClientFrame
71580
- * @static
71581
- * @param {Object.<string,*>} object Plain object
71582
- * @returns {replit.goval.api.pid2.ClientFrame} ClientFrame
71583
- */
71584
- ClientFrame.fromObject = function fromObject(object) {
71585
- if (object instanceof $root.replit.goval.api.pid2.ClientFrame)
71586
- return object;
71587
- var message = new $root.replit.goval.api.pid2.ClientFrame();
71588
- if (object.sessionId != null)
71589
- message.sessionId = object.sessionId >>> 0;
71590
- if (object.call != null) {
71591
- if (typeof object.call !== "object")
71592
- throw TypeError(".replit.goval.api.pid2.ClientFrame.call: object expected");
71593
- message.call = $root.replit.goval.api.pid2.CallRequest.fromObject(object.call);
71594
- }
71595
- if (object.streamContinuation != null) {
71596
- if (typeof object.streamContinuation !== "object")
71597
- throw TypeError(".replit.goval.api.pid2.ClientFrame.streamContinuation: object expected");
71598
- message.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.fromObject(object.streamContinuation);
71599
- }
71600
- if (object.streamCancel != null) {
71601
- if (typeof object.streamCancel !== "object")
71602
- throw TypeError(".replit.goval.api.pid2.ClientFrame.streamCancel: object expected");
71603
- message.streamCancel = $root.replit.goval.api.pid2.StreamCancelRequest.fromObject(object.streamCancel);
71604
- }
71605
- if (object.ping != null) {
71606
- if (typeof object.ping !== "object")
71607
- throw TypeError(".replit.goval.api.pid2.ClientFrame.ping: object expected");
71608
- message.ping = $root.replit.goval.api.pid2.Ping.fromObject(object.ping);
71609
- }
71610
- return message;
71611
- };
71612
-
71613
- /**
71614
- * Creates a plain object from a ClientFrame message. Also converts values to other types if specified.
71615
- * @function toObject
71616
- * @memberof replit.goval.api.pid2.ClientFrame
71617
- * @static
71618
- * @param {replit.goval.api.pid2.ClientFrame} message ClientFrame
71619
- * @param {$protobuf.IConversionOptions} [options] Conversion options
71620
- * @returns {Object.<string,*>} Plain object
71621
- */
71622
- ClientFrame.toObject = function toObject(message, options) {
71623
- if (!options)
71624
- options = {};
71625
- var object = {};
71626
- if (options.defaults)
71627
- object.sessionId = 0;
71628
- if (message.sessionId != null && message.hasOwnProperty("sessionId"))
71629
- object.sessionId = message.sessionId;
71630
- if (message.call != null && message.hasOwnProperty("call")) {
71631
- object.call = $root.replit.goval.api.pid2.CallRequest.toObject(message.call, options);
71632
- if (options.oneofs)
71633
- object.body = "call";
71634
- }
71635
- if (message.streamContinuation != null && message.hasOwnProperty("streamContinuation")) {
71636
- object.streamContinuation = $root.replit.goval.api.pid2.StreamContinuationRequest.toObject(message.streamContinuation, options);
71637
- if (options.oneofs)
71638
- object.body = "streamContinuation";
71639
- }
71640
- if (message.streamCancel != null && message.hasOwnProperty("streamCancel")) {
71641
- object.streamCancel = $root.replit.goval.api.pid2.StreamCancelRequest.toObject(message.streamCancel, options);
71642
- if (options.oneofs)
71643
- object.body = "streamCancel";
71644
- }
71645
- if (message.ping != null && message.hasOwnProperty("ping")) {
71646
- object.ping = $root.replit.goval.api.pid2.Ping.toObject(message.ping, options);
71647
- if (options.oneofs)
71648
- object.body = "ping";
71649
- }
71650
- return object;
71651
- };
71652
-
71653
- /**
71654
- * Converts this ClientFrame to JSON.
71655
- * @function toJSON
71656
- * @memberof replit.goval.api.pid2.ClientFrame
71657
- * @instance
71658
- * @returns {Object.<string,*>} JSON object
71659
- */
71660
- ClientFrame.prototype.toJSON = function toJSON() {
71661
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71662
- };
71663
-
71664
- /**
71665
- * Gets the default type url for ClientFrame
71666
- * @function getTypeUrl
71667
- * @memberof replit.goval.api.pid2.ClientFrame
71668
- * @static
71669
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
71670
- * @returns {string} The default type url
71671
- */
71672
- ClientFrame.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
71673
- if (typeUrlPrefix === undefined) {
71674
- typeUrlPrefix = "type.googleapis.com";
71675
- }
71676
- return typeUrlPrefix + "/replit.goval.api.pid2.ClientFrame";
71677
- };
71678
-
71679
- return ClientFrame;
71680
- })();
71681
-
71682
- pid2.ServerFrame = (function() {
71683
-
71684
- /**
71685
- * Properties of a ServerFrame.
71686
- * @memberof replit.goval.api.pid2
71687
- * @interface IServerFrame
71688
- * @property {number|null} [sessionId] ServerFrame sessionId
71689
- * @property {replit.goval.api.pid2.CallResponse|replit.goval.api.pid2.ICallResponse|null} [response] ServerFrame response
71690
- * @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [goaway] ServerFrame goaway
71691
- * @property {replit.goval.api.pid2.Ping|replit.goval.api.pid2.IPing|null} [ping] ServerFrame ping
71692
- */
71693
-
71694
- /**
71695
- * Constructs a new ServerFrame.
71696
- * @memberof replit.goval.api.pid2
71697
- * @classdesc Represents a ServerFrame.
71698
- * @constructor
71699
- * @param {replit.goval.api.pid2.IServerFrame=} [properties] Properties to set
71700
- */
71701
- function ServerFrame(properties) {
71702
- if (properties)
71703
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
71704
- if (properties[keys[i]] != null)
71705
- this[keys[i]] = properties[keys[i]];
71706
- }
71707
-
71708
- /**
71709
- * ServerFrame sessionId.
71710
- * @member {number} sessionId
71711
- * @memberof replit.goval.api.pid2.ServerFrame
71712
- * @instance
71713
- */
71714
- ServerFrame.prototype.sessionId = 0;
71715
-
71716
- /**
71717
- * ServerFrame response.
71718
- * @member {replit.goval.api.pid2.CallResponse|null|undefined} response
71719
- * @memberof replit.goval.api.pid2.ServerFrame
71720
- * @instance
71721
- */
71722
- ServerFrame.prototype.response = null;
71723
-
71724
- /**
71725
- * ServerFrame goaway.
71726
- * @member {replit.goval.api.pid2.Error|null|undefined} goaway
71727
- * @memberof replit.goval.api.pid2.ServerFrame
71728
- * @instance
71729
- */
71730
- ServerFrame.prototype.goaway = null;
71731
-
71732
- /**
71733
- * ServerFrame ping.
71734
- * @member {replit.goval.api.pid2.Ping|null|undefined} ping
71735
- * @memberof replit.goval.api.pid2.ServerFrame
71736
- * @instance
71737
- */
71738
- ServerFrame.prototype.ping = null;
71739
-
71740
- // OneOf field names bound to virtual getters and setters
71741
- var $oneOfFields;
71742
-
71743
- /**
71744
- * ServerFrame body.
71745
- * @member {"response"|"goaway"|"ping"|undefined} body
71746
- * @memberof replit.goval.api.pid2.ServerFrame
71747
- * @instance
71748
- */
71749
- Object.defineProperty(ServerFrame.prototype, "body", {
71750
- get: $util.oneOfGetter($oneOfFields = ["response", "goaway", "ping"]),
71751
- set: $util.oneOfSetter($oneOfFields)
71752
- });
71753
-
71754
- /**
71755
- * Creates a new ServerFrame instance using the specified properties.
71756
- * @function create
71757
- * @memberof replit.goval.api.pid2.ServerFrame
71758
- * @static
71759
- * @param {replit.goval.api.pid2.IServerFrame=} [properties] Properties to set
71760
- * @returns {replit.goval.api.pid2.ServerFrame} ServerFrame instance
71761
- */
71762
- ServerFrame.create = function create(properties) {
71763
- return ServerFrame.fromObject(properties);
71764
- };
71765
-
71766
- /**
71767
- * Encodes the specified ServerFrame message. Does not implicitly {@link replit.goval.api.pid2.ServerFrame.verify|verify} messages.
71768
- * @function encode
71769
- * @memberof replit.goval.api.pid2.ServerFrame
71770
- * @static
71771
- * @param {replit.goval.api.pid2.ServerFrame} message ServerFrame message or plain object to encode
71772
- * @param {$protobuf.Writer} [writer] Writer to encode to
71773
- * @returns {$protobuf.Writer} Writer
71774
- */
71775
- ServerFrame.encode = function encode(message, writer) {
71776
- if (!writer)
71777
- writer = $Writer.create();
71778
- if (message.sessionId != null && Object.hasOwnProperty.call(message, "sessionId"))
71779
- writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.sessionId);
71780
- if (message.response != null && Object.hasOwnProperty.call(message, "response"))
71781
- $root.replit.goval.api.pid2.CallResponse.encode(message.response, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
71782
- if (message.goaway != null && Object.hasOwnProperty.call(message, "goaway"))
71783
- $root.replit.goval.api.pid2.Error.encode(message.goaway, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
71784
- if (message.ping != null && Object.hasOwnProperty.call(message, "ping"))
71785
- $root.replit.goval.api.pid2.Ping.encode(message.ping, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
71786
- return writer;
71787
- };
71788
-
71789
- /**
71790
- * Encodes the specified ServerFrame message, length delimited. Does not implicitly {@link replit.goval.api.pid2.ServerFrame.verify|verify} messages.
71791
- * @function encodeDelimited
71792
- * @memberof replit.goval.api.pid2.ServerFrame
71793
- * @static
71794
- * @param {replit.goval.api.pid2.ServerFrame} message ServerFrame message or plain object to encode
71795
- * @param {$protobuf.Writer} [writer] Writer to encode to
71796
- * @returns {$protobuf.Writer} Writer
71797
- */
71798
- ServerFrame.encodeDelimited = function encodeDelimited(message, writer) {
71799
- return this.encode(message, writer).ldelim();
71800
- };
71801
-
71802
- /**
71803
- * Decodes a ServerFrame message from the specified reader or buffer.
71804
- * @function decode
71805
- * @memberof replit.goval.api.pid2.ServerFrame
71806
- * @static
71807
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71808
- * @param {number} [length] Message length if known beforehand
71809
- * @returns {replit.goval.api.pid2.ServerFrame} ServerFrame
71810
- * @throws {Error} If the payload is not a reader or valid buffer
71811
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
71812
- */
71813
- ServerFrame.decode = function decode(reader, length) {
71814
- if (!(reader instanceof $Reader))
71815
- reader = $Reader.create(reader);
71816
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.ServerFrame();
71817
- while (reader.pos < end) {
71818
- var tag = reader.uint32();
71819
- switch (tag >>> 3) {
71820
- case 1: {
71821
- message.sessionId = reader.uint32();
71822
- break;
71823
- }
71824
- case 2: {
71825
- message.response = $root.replit.goval.api.pid2.CallResponse.decode(reader, reader.uint32());
71826
- break;
71827
- }
71828
- case 4: {
71829
- message.goaway = $root.replit.goval.api.pid2.Error.decode(reader, reader.uint32());
71830
- break;
71831
- }
71832
- case 5: {
71833
- message.ping = $root.replit.goval.api.pid2.Ping.decode(reader, reader.uint32());
71834
- break;
71835
- }
71836
- default:
71837
- reader.skipType(tag & 7);
71838
- break;
71839
- }
71840
- }
71841
- return message;
71842
- };
71843
-
71844
- /**
71845
- * Decodes a ServerFrame message from the specified reader or buffer, length delimited.
71846
- * @function decodeDelimited
71847
- * @memberof replit.goval.api.pid2.ServerFrame
71848
- * @static
71849
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71850
- * @returns {replit.goval.api.pid2.ServerFrame} ServerFrame
71851
- * @throws {Error} If the payload is not a reader or valid buffer
71852
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
71853
- */
71854
- ServerFrame.decodeDelimited = function decodeDelimited(reader) {
71855
- if (!(reader instanceof $Reader))
71856
- reader = new $Reader(reader);
71857
- return this.decode(reader, reader.uint32());
71858
- };
71859
-
71860
- /**
71861
- * Verifies a ServerFrame message.
71862
- * @function verify
71863
- * @memberof replit.goval.api.pid2.ServerFrame
71864
- * @static
71865
- * @param {Object.<string,*>} message Plain object to verify
71866
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
71867
- */
71868
- ServerFrame.verify = function verify(message) {
71869
- if (typeof message !== "object" || message === null)
71870
- return "object expected";
71871
- var properties = {};
71872
- if (message.sessionId != null && message.hasOwnProperty("sessionId"))
71873
- if (!$util.isInteger(message.sessionId))
71874
- return "sessionId: integer expected";
71875
- if (message.response != null && message.hasOwnProperty("response")) {
71876
- properties.body = 1;
71877
- {
71878
- var error = $root.replit.goval.api.pid2.CallResponse.verify(message.response);
71879
- if (error)
71880
- return "response." + error;
71881
- }
71882
- }
71883
- if (message.goaway != null && message.hasOwnProperty("goaway")) {
71884
- if (properties.body === 1)
71885
- return "body: multiple values";
71886
- properties.body = 1;
71887
- {
71888
- var error = $root.replit.goval.api.pid2.Error.verify(message.goaway);
71889
- if (error)
71890
- return "goaway." + error;
71891
- }
71892
- }
71893
- if (message.ping != null && message.hasOwnProperty("ping")) {
71894
- if (properties.body === 1)
71895
- return "body: multiple values";
71896
- properties.body = 1;
71897
- {
71898
- var error = $root.replit.goval.api.pid2.Ping.verify(message.ping);
71899
- if (error)
71900
- return "ping." + error;
71901
- }
71902
- }
71903
- return null;
71904
- };
71905
-
71906
- /**
71907
- * Creates a ServerFrame message from a plain object. Also converts values to their respective internal types.
71908
- * @function fromObject
71909
- * @memberof replit.goval.api.pid2.ServerFrame
71910
- * @static
71911
- * @param {Object.<string,*>} object Plain object
71912
- * @returns {replit.goval.api.pid2.ServerFrame} ServerFrame
71913
- */
71914
- ServerFrame.fromObject = function fromObject(object) {
71915
- if (object instanceof $root.replit.goval.api.pid2.ServerFrame)
71916
- return object;
71917
- var message = new $root.replit.goval.api.pid2.ServerFrame();
71918
- if (object.sessionId != null)
71919
- message.sessionId = object.sessionId >>> 0;
71920
- if (object.response != null) {
71921
- if (typeof object.response !== "object")
71922
- throw TypeError(".replit.goval.api.pid2.ServerFrame.response: object expected");
71923
- message.response = $root.replit.goval.api.pid2.CallResponse.fromObject(object.response);
71924
- }
71925
- if (object.goaway != null) {
71926
- if (typeof object.goaway !== "object")
71927
- throw TypeError(".replit.goval.api.pid2.ServerFrame.goaway: object expected");
71928
- message.goaway = $root.replit.goval.api.pid2.Error.fromObject(object.goaway);
71929
- }
71930
- if (object.ping != null) {
71931
- if (typeof object.ping !== "object")
71932
- throw TypeError(".replit.goval.api.pid2.ServerFrame.ping: object expected");
71933
- message.ping = $root.replit.goval.api.pid2.Ping.fromObject(object.ping);
71934
- }
71935
- return message;
71936
- };
71937
-
71938
- /**
71939
- * Creates a plain object from a ServerFrame message. Also converts values to other types if specified.
71940
- * @function toObject
71941
- * @memberof replit.goval.api.pid2.ServerFrame
71942
- * @static
71943
- * @param {replit.goval.api.pid2.ServerFrame} message ServerFrame
71944
- * @param {$protobuf.IConversionOptions} [options] Conversion options
71945
- * @returns {Object.<string,*>} Plain object
71946
- */
71947
- ServerFrame.toObject = function toObject(message, options) {
71948
- if (!options)
71949
- options = {};
71950
- var object = {};
71951
- if (options.defaults)
71952
- object.sessionId = 0;
71953
- if (message.sessionId != null && message.hasOwnProperty("sessionId"))
71954
- object.sessionId = message.sessionId;
71955
- if (message.response != null && message.hasOwnProperty("response")) {
71956
- object.response = $root.replit.goval.api.pid2.CallResponse.toObject(message.response, options);
71957
- if (options.oneofs)
71958
- object.body = "response";
71959
- }
71960
- if (message.goaway != null && message.hasOwnProperty("goaway")) {
71961
- object.goaway = $root.replit.goval.api.pid2.Error.toObject(message.goaway, options);
71962
- if (options.oneofs)
71963
- object.body = "goaway";
71964
- }
71965
- if (message.ping != null && message.hasOwnProperty("ping")) {
71966
- object.ping = $root.replit.goval.api.pid2.Ping.toObject(message.ping, options);
71967
- if (options.oneofs)
71968
- object.body = "ping";
71969
- }
71970
- return object;
71971
- };
71972
-
71973
- /**
71974
- * Converts this ServerFrame to JSON.
71975
- * @function toJSON
71976
- * @memberof replit.goval.api.pid2.ServerFrame
71977
- * @instance
71978
- * @returns {Object.<string,*>} JSON object
71979
- */
71980
- ServerFrame.prototype.toJSON = function toJSON() {
71981
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71982
- };
71983
-
71984
- /**
71985
- * Gets the default type url for ServerFrame
71986
- * @function getTypeUrl
71987
- * @memberof replit.goval.api.pid2.ServerFrame
71988
- * @static
71989
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
71990
- * @returns {string} The default type url
71991
- */
71992
- ServerFrame.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
71993
- if (typeUrlPrefix === undefined) {
71994
- typeUrlPrefix = "type.googleapis.com";
71995
- }
71996
- return typeUrlPrefix + "/replit.goval.api.pid2.ServerFrame";
71997
- };
71998
-
71999
- return ServerFrame;
72000
- })();
72001
-
72002
- pid2.CallRequest = (function() {
72003
-
72004
- /**
72005
- * Properties of a CallRequest.
72006
- * @memberof replit.goval.api.pid2
72007
- * @interface ICallRequest
72008
- * @property {number|null} [streamId] CallRequest streamId
72009
- * @property {string|null} [service] CallRequest service
72010
- * @property {string|null} [method] CallRequest method
72011
- * @property {google.protobuf.Any|google.protobuf.IAny|null} [unaryRequest] CallRequest unaryRequest
72012
- * @property {google.protobuf.Any|google.protobuf.IAny|null} [streamHeader] CallRequest streamHeader
72013
- */
72014
-
72015
- /**
72016
- * Constructs a new CallRequest.
72017
- * @memberof replit.goval.api.pid2
72018
- * @classdesc Represents a CallRequest.
72019
- * @constructor
72020
- * @param {replit.goval.api.pid2.ICallRequest=} [properties] Properties to set
72021
- */
72022
- function CallRequest(properties) {
72023
- if (properties)
72024
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
72025
- if (properties[keys[i]] != null)
72026
- this[keys[i]] = properties[keys[i]];
72027
- }
72028
-
72029
- /**
72030
- * CallRequest streamId.
72031
- * @member {number} streamId
72032
- * @memberof replit.goval.api.pid2.CallRequest
72033
- * @instance
72034
- */
72035
- CallRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
72036
-
72037
- /**
72038
- * CallRequest service.
72039
- * @member {string} service
72040
- * @memberof replit.goval.api.pid2.CallRequest
72041
- * @instance
72042
- */
72043
- CallRequest.prototype.service = "";
72044
-
72045
- /**
72046
- * CallRequest method.
72047
- * @member {string} method
72048
- * @memberof replit.goval.api.pid2.CallRequest
72049
- * @instance
72050
- */
72051
- CallRequest.prototype.method = "";
72052
-
72053
- /**
72054
- * CallRequest unaryRequest.
72055
- * @member {google.protobuf.Any|null|undefined} unaryRequest
72056
- * @memberof replit.goval.api.pid2.CallRequest
72057
- * @instance
72058
- */
72059
- CallRequest.prototype.unaryRequest = null;
72060
-
72061
- /**
72062
- * CallRequest streamHeader.
72063
- * @member {google.protobuf.Any|null|undefined} streamHeader
72064
- * @memberof replit.goval.api.pid2.CallRequest
72065
- * @instance
72066
- */
72067
- CallRequest.prototype.streamHeader = null;
72068
-
72069
- // OneOf field names bound to virtual getters and setters
72070
- var $oneOfFields;
72071
-
72072
- /**
72073
- * CallRequest body.
72074
- * @member {"unaryRequest"|"streamHeader"|undefined} body
72075
- * @memberof replit.goval.api.pid2.CallRequest
72076
- * @instance
72077
- */
72078
- Object.defineProperty(CallRequest.prototype, "body", {
72079
- get: $util.oneOfGetter($oneOfFields = ["unaryRequest", "streamHeader"]),
72080
- set: $util.oneOfSetter($oneOfFields)
72081
- });
72082
-
72083
- /**
72084
- * Creates a new CallRequest instance using the specified properties.
72085
- * @function create
72086
- * @memberof replit.goval.api.pid2.CallRequest
72087
- * @static
72088
- * @param {replit.goval.api.pid2.ICallRequest=} [properties] Properties to set
72089
- * @returns {replit.goval.api.pid2.CallRequest} CallRequest instance
72090
- */
72091
- CallRequest.create = function create(properties) {
72092
- return CallRequest.fromObject(properties);
72093
- };
72094
-
72095
- /**
72096
- * Encodes the specified CallRequest message. Does not implicitly {@link replit.goval.api.pid2.CallRequest.verify|verify} messages.
72097
- * @function encode
72098
- * @memberof replit.goval.api.pid2.CallRequest
72099
- * @static
72100
- * @param {replit.goval.api.pid2.CallRequest} message CallRequest message or plain object to encode
72101
- * @param {$protobuf.Writer} [writer] Writer to encode to
72102
- * @returns {$protobuf.Writer} Writer
72103
- */
72104
- CallRequest.encode = function encode(message, writer) {
72105
- if (!writer)
72106
- writer = $Writer.create();
72107
- if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
72108
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
72109
- if (message.service != null && Object.hasOwnProperty.call(message, "service"))
72110
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.service);
72111
- if (message.method != null && Object.hasOwnProperty.call(message, "method"))
72112
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.method);
72113
- if (message.unaryRequest != null && Object.hasOwnProperty.call(message, "unaryRequest"))
72114
- $root.google.protobuf.Any.encode(message.unaryRequest, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
72115
- if (message.streamHeader != null && Object.hasOwnProperty.call(message, "streamHeader"))
72116
- $root.google.protobuf.Any.encode(message.streamHeader, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
72117
- return writer;
72118
- };
72119
-
72120
- /**
72121
- * Encodes the specified CallRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.CallRequest.verify|verify} messages.
72122
- * @function encodeDelimited
72123
- * @memberof replit.goval.api.pid2.CallRequest
72124
- * @static
72125
- * @param {replit.goval.api.pid2.CallRequest} message CallRequest message or plain object to encode
72126
- * @param {$protobuf.Writer} [writer] Writer to encode to
72127
- * @returns {$protobuf.Writer} Writer
72128
- */
72129
- CallRequest.encodeDelimited = function encodeDelimited(message, writer) {
72130
- return this.encode(message, writer).ldelim();
72131
- };
72132
-
72133
- /**
72134
- * Decodes a CallRequest message from the specified reader or buffer.
72135
- * @function decode
72136
- * @memberof replit.goval.api.pid2.CallRequest
72137
- * @static
72138
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72139
- * @param {number} [length] Message length if known beforehand
72140
- * @returns {replit.goval.api.pid2.CallRequest} CallRequest
72141
- * @throws {Error} If the payload is not a reader or valid buffer
72142
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72143
- */
72144
- CallRequest.decode = function decode(reader, length) {
72145
- if (!(reader instanceof $Reader))
72146
- reader = $Reader.create(reader);
72147
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.CallRequest();
72148
- while (reader.pos < end) {
72149
- var tag = reader.uint32();
72150
- switch (tag >>> 3) {
72151
- case 1: {
72152
- message.streamId = reader.uint64();
72153
- break;
72154
- }
72155
- case 2: {
72156
- message.service = reader.string();
72157
- break;
72158
- }
72159
- case 3: {
72160
- message.method = reader.string();
72161
- break;
72162
- }
72163
- case 4: {
72164
- message.unaryRequest = $root.google.protobuf.Any.decode(reader, reader.uint32());
72165
- break;
72166
- }
72167
- case 5: {
72168
- message.streamHeader = $root.google.protobuf.Any.decode(reader, reader.uint32());
72169
- break;
72170
- }
72171
- default:
72172
- reader.skipType(tag & 7);
72173
- break;
72174
- }
72175
- }
72176
- return message;
72177
- };
72178
-
72179
- /**
72180
- * Decodes a CallRequest message from the specified reader or buffer, length delimited.
72181
- * @function decodeDelimited
72182
- * @memberof replit.goval.api.pid2.CallRequest
72183
- * @static
72184
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72185
- * @returns {replit.goval.api.pid2.CallRequest} CallRequest
72186
- * @throws {Error} If the payload is not a reader or valid buffer
72187
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72188
- */
72189
- CallRequest.decodeDelimited = function decodeDelimited(reader) {
72190
- if (!(reader instanceof $Reader))
72191
- reader = new $Reader(reader);
72192
- return this.decode(reader, reader.uint32());
72193
- };
72194
-
72195
- /**
72196
- * Verifies a CallRequest message.
72197
- * @function verify
72198
- * @memberof replit.goval.api.pid2.CallRequest
72199
- * @static
72200
- * @param {Object.<string,*>} message Plain object to verify
72201
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
72202
- */
72203
- CallRequest.verify = function verify(message) {
72204
- if (typeof message !== "object" || message === null)
72205
- return "object expected";
72206
- var properties = {};
72207
- if (message.streamId != null && message.hasOwnProperty("streamId"))
72208
- if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
72209
- return "streamId: integer|Long expected";
72210
- if (message.service != null && message.hasOwnProperty("service"))
72211
- if (!$util.isString(message.service))
72212
- return "service: string expected";
72213
- if (message.method != null && message.hasOwnProperty("method"))
72214
- if (!$util.isString(message.method))
72215
- return "method: string expected";
72216
- if (message.unaryRequest != null && message.hasOwnProperty("unaryRequest")) {
72217
- properties.body = 1;
72218
- {
72219
- var error = $root.google.protobuf.Any.verify(message.unaryRequest);
72220
- if (error)
72221
- return "unaryRequest." + error;
72222
- }
72223
- }
72224
- if (message.streamHeader != null && message.hasOwnProperty("streamHeader")) {
72225
- if (properties.body === 1)
72226
- return "body: multiple values";
72227
- properties.body = 1;
72228
- {
72229
- var error = $root.google.protobuf.Any.verify(message.streamHeader);
72230
- if (error)
72231
- return "streamHeader." + error;
72232
- }
72233
- }
72234
- return null;
72235
- };
72236
-
72237
- /**
72238
- * Creates a CallRequest message from a plain object. Also converts values to their respective internal types.
72239
- * @function fromObject
72240
- * @memberof replit.goval.api.pid2.CallRequest
72241
- * @static
72242
- * @param {Object.<string,*>} object Plain object
72243
- * @returns {replit.goval.api.pid2.CallRequest} CallRequest
72244
- */
72245
- CallRequest.fromObject = function fromObject(object) {
72246
- if (object instanceof $root.replit.goval.api.pid2.CallRequest)
72247
- return object;
72248
- var message = new $root.replit.goval.api.pid2.CallRequest();
72249
- if (object.streamId != null)
72250
- if ($util.Long)
72251
- (message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
72252
- else if (typeof object.streamId === "string")
72253
- message.streamId = parseInt(object.streamId, 10);
72254
- else if (typeof object.streamId === "number")
72255
- message.streamId = object.streamId;
72256
- else if (typeof object.streamId === "object")
72257
- message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
72258
- if (object.service != null)
72259
- message.service = String(object.service);
72260
- if (object.method != null)
72261
- message.method = String(object.method);
72262
- if (object.unaryRequest != null) {
72263
- if (typeof object.unaryRequest !== "object")
72264
- throw TypeError(".replit.goval.api.pid2.CallRequest.unaryRequest: object expected");
72265
- message.unaryRequest = $root.google.protobuf.Any.fromObject(object.unaryRequest);
72266
- }
72267
- if (object.streamHeader != null) {
72268
- if (typeof object.streamHeader !== "object")
72269
- throw TypeError(".replit.goval.api.pid2.CallRequest.streamHeader: object expected");
72270
- message.streamHeader = $root.google.protobuf.Any.fromObject(object.streamHeader);
72271
- }
72272
- return message;
72273
- };
72274
-
72275
- /**
72276
- * Creates a plain object from a CallRequest message. Also converts values to other types if specified.
72277
- * @function toObject
72278
- * @memberof replit.goval.api.pid2.CallRequest
72279
- * @static
72280
- * @param {replit.goval.api.pid2.CallRequest} message CallRequest
72281
- * @param {$protobuf.IConversionOptions} [options] Conversion options
72282
- * @returns {Object.<string,*>} Plain object
72283
- */
72284
- CallRequest.toObject = function toObject(message, options) {
72285
- if (!options)
72286
- options = {};
72287
- var object = {};
72288
- if (options.defaults) {
72289
- if ($util.Long) {
72290
- var long = new $util.Long(0, 0, true);
72291
- object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
72292
- } else
72293
- object.streamId = options.longs === String ? "0" : 0;
72294
- object.service = "";
72295
- object.method = "";
72296
- }
72297
- if (message.streamId != null && message.hasOwnProperty("streamId"))
72298
- if (typeof message.streamId === "number")
72299
- object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
72300
- else
72301
- 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;
72302
- if (message.service != null && message.hasOwnProperty("service"))
72303
- object.service = message.service;
72304
- if (message.method != null && message.hasOwnProperty("method"))
72305
- object.method = message.method;
72306
- if (message.unaryRequest != null && message.hasOwnProperty("unaryRequest")) {
72307
- object.unaryRequest = $root.google.protobuf.Any.toObject(message.unaryRequest, options);
72308
- if (options.oneofs)
72309
- object.body = "unaryRequest";
72310
- }
72311
- if (message.streamHeader != null && message.hasOwnProperty("streamHeader")) {
72312
- object.streamHeader = $root.google.protobuf.Any.toObject(message.streamHeader, options);
72313
- if (options.oneofs)
72314
- object.body = "streamHeader";
72315
- }
72316
- return object;
72317
- };
72318
-
72319
- /**
72320
- * Converts this CallRequest to JSON.
72321
- * @function toJSON
72322
- * @memberof replit.goval.api.pid2.CallRequest
72323
- * @instance
72324
- * @returns {Object.<string,*>} JSON object
72325
- */
72326
- CallRequest.prototype.toJSON = function toJSON() {
72327
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
72328
- };
72329
-
72330
- /**
72331
- * Gets the default type url for CallRequest
72332
- * @function getTypeUrl
72333
- * @memberof replit.goval.api.pid2.CallRequest
72334
- * @static
72335
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
72336
- * @returns {string} The default type url
72337
- */
72338
- CallRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
72339
- if (typeUrlPrefix === undefined) {
72340
- typeUrlPrefix = "type.googleapis.com";
72341
- }
72342
- return typeUrlPrefix + "/replit.goval.api.pid2.CallRequest";
72343
- };
72344
-
72345
- return CallRequest;
72346
- })();
72347
-
72348
- pid2.StreamContinuationRequest = (function() {
72349
-
72350
- /**
72351
- * Properties of a StreamContinuationRequest.
72352
- * @memberof replit.goval.api.pid2
72353
- * @interface IStreamContinuationRequest
72354
- * @property {number|null} [streamId] StreamContinuationRequest streamId
72355
- * @property {boolean|null} [streamEnd] StreamContinuationRequest streamEnd
72356
- * @property {google.protobuf.Any|google.protobuf.IAny|null} [request] StreamContinuationRequest request
72357
- */
72358
-
72359
- /**
72360
- * Constructs a new StreamContinuationRequest.
72361
- * @memberof replit.goval.api.pid2
72362
- * @classdesc Represents a StreamContinuationRequest.
72363
- * @constructor
72364
- * @param {replit.goval.api.pid2.IStreamContinuationRequest=} [properties] Properties to set
72365
- */
72366
- function StreamContinuationRequest(properties) {
72367
- if (properties)
72368
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
72369
- if (properties[keys[i]] != null)
72370
- this[keys[i]] = properties[keys[i]];
72371
- }
72372
-
72373
- /**
72374
- * StreamContinuationRequest streamId.
72375
- * @member {number} streamId
72376
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72377
- * @instance
72378
- */
72379
- StreamContinuationRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
72380
-
72381
- /**
72382
- * StreamContinuationRequest streamEnd.
72383
- * @member {boolean} streamEnd
72384
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72385
- * @instance
72386
- */
72387
- StreamContinuationRequest.prototype.streamEnd = false;
72388
-
72389
- /**
72390
- * StreamContinuationRequest request.
72391
- * @member {google.protobuf.Any|null|undefined} request
72392
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72393
- * @instance
72394
- */
72395
- StreamContinuationRequest.prototype.request = null;
72396
-
72397
- /**
72398
- * Creates a new StreamContinuationRequest instance using the specified properties.
72399
- * @function create
72400
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72401
- * @static
72402
- * @param {replit.goval.api.pid2.IStreamContinuationRequest=} [properties] Properties to set
72403
- * @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest instance
72404
- */
72405
- StreamContinuationRequest.create = function create(properties) {
72406
- return StreamContinuationRequest.fromObject(properties);
72407
- };
72408
-
72409
- /**
72410
- * Encodes the specified StreamContinuationRequest message. Does not implicitly {@link replit.goval.api.pid2.StreamContinuationRequest.verify|verify} messages.
72411
- * @function encode
72412
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72413
- * @static
72414
- * @param {replit.goval.api.pid2.StreamContinuationRequest} message StreamContinuationRequest message or plain object to encode
72415
- * @param {$protobuf.Writer} [writer] Writer to encode to
72416
- * @returns {$protobuf.Writer} Writer
72417
- */
72418
- StreamContinuationRequest.encode = function encode(message, writer) {
72419
- if (!writer)
72420
- writer = $Writer.create();
72421
- if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
72422
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
72423
- if (message.streamEnd != null && Object.hasOwnProperty.call(message, "streamEnd"))
72424
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnd);
72425
- if (message.request != null && Object.hasOwnProperty.call(message, "request"))
72426
- $root.google.protobuf.Any.encode(message.request, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
72427
- return writer;
72428
- };
72429
-
72430
- /**
72431
- * Encodes the specified StreamContinuationRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.StreamContinuationRequest.verify|verify} messages.
72432
- * @function encodeDelimited
72433
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72434
- * @static
72435
- * @param {replit.goval.api.pid2.StreamContinuationRequest} message StreamContinuationRequest message or plain object to encode
72436
- * @param {$protobuf.Writer} [writer] Writer to encode to
72437
- * @returns {$protobuf.Writer} Writer
72438
- */
72439
- StreamContinuationRequest.encodeDelimited = function encodeDelimited(message, writer) {
72440
- return this.encode(message, writer).ldelim();
72441
- };
72442
-
72443
- /**
72444
- * Decodes a StreamContinuationRequest message from the specified reader or buffer.
72445
- * @function decode
72446
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72447
- * @static
72448
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72449
- * @param {number} [length] Message length if known beforehand
72450
- * @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest
72451
- * @throws {Error} If the payload is not a reader or valid buffer
72452
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72453
- */
72454
- StreamContinuationRequest.decode = function decode(reader, length) {
72455
- if (!(reader instanceof $Reader))
72456
- reader = $Reader.create(reader);
72457
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.StreamContinuationRequest();
72458
- while (reader.pos < end) {
72459
- var tag = reader.uint32();
72460
- switch (tag >>> 3) {
72461
- case 1: {
72462
- message.streamId = reader.uint64();
72463
- break;
72464
- }
72465
- case 2: {
72466
- message.streamEnd = reader.bool();
72467
- break;
72468
- }
72469
- case 3: {
72470
- message.request = $root.google.protobuf.Any.decode(reader, reader.uint32());
72471
- break;
72472
- }
72473
- default:
72474
- reader.skipType(tag & 7);
72475
- break;
72476
- }
72477
- }
72478
- return message;
72479
- };
72480
-
72481
- /**
72482
- * Decodes a StreamContinuationRequest message from the specified reader or buffer, length delimited.
72483
- * @function decodeDelimited
72484
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72485
- * @static
72486
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72487
- * @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest
72488
- * @throws {Error} If the payload is not a reader or valid buffer
72489
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72490
- */
72491
- StreamContinuationRequest.decodeDelimited = function decodeDelimited(reader) {
72492
- if (!(reader instanceof $Reader))
72493
- reader = new $Reader(reader);
72494
- return this.decode(reader, reader.uint32());
72495
- };
72496
-
72497
- /**
72498
- * Verifies a StreamContinuationRequest message.
72499
- * @function verify
72500
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72501
- * @static
72502
- * @param {Object.<string,*>} message Plain object to verify
72503
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
72504
- */
72505
- StreamContinuationRequest.verify = function verify(message) {
72506
- if (typeof message !== "object" || message === null)
72507
- return "object expected";
72508
- if (message.streamId != null && message.hasOwnProperty("streamId"))
72509
- if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
72510
- return "streamId: integer|Long expected";
72511
- if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
72512
- if (typeof message.streamEnd !== "boolean")
72513
- return "streamEnd: boolean expected";
72514
- if (message.request != null && message.hasOwnProperty("request")) {
72515
- var error = $root.google.protobuf.Any.verify(message.request);
72516
- if (error)
72517
- return "request." + error;
72518
- }
72519
- return null;
72520
- };
72521
-
72522
- /**
72523
- * Creates a StreamContinuationRequest message from a plain object. Also converts values to their respective internal types.
72524
- * @function fromObject
72525
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72526
- * @static
72527
- * @param {Object.<string,*>} object Plain object
72528
- * @returns {replit.goval.api.pid2.StreamContinuationRequest} StreamContinuationRequest
72529
- */
72530
- StreamContinuationRequest.fromObject = function fromObject(object) {
72531
- if (object instanceof $root.replit.goval.api.pid2.StreamContinuationRequest)
72532
- return object;
72533
- var message = new $root.replit.goval.api.pid2.StreamContinuationRequest();
72534
- if (object.streamId != null)
72535
- if ($util.Long)
72536
- (message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
72537
- else if (typeof object.streamId === "string")
72538
- message.streamId = parseInt(object.streamId, 10);
72539
- else if (typeof object.streamId === "number")
72540
- message.streamId = object.streamId;
72541
- else if (typeof object.streamId === "object")
72542
- message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
72543
- if (object.streamEnd != null)
72544
- message.streamEnd = Boolean(object.streamEnd);
72545
- if (object.request != null) {
72546
- if (typeof object.request !== "object")
72547
- throw TypeError(".replit.goval.api.pid2.StreamContinuationRequest.request: object expected");
72548
- message.request = $root.google.protobuf.Any.fromObject(object.request);
72549
- }
72550
- return message;
72551
- };
72552
-
72553
- /**
72554
- * Creates a plain object from a StreamContinuationRequest message. Also converts values to other types if specified.
72555
- * @function toObject
72556
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72557
- * @static
72558
- * @param {replit.goval.api.pid2.StreamContinuationRequest} message StreamContinuationRequest
72559
- * @param {$protobuf.IConversionOptions} [options] Conversion options
72560
- * @returns {Object.<string,*>} Plain object
72561
- */
72562
- StreamContinuationRequest.toObject = function toObject(message, options) {
72563
- if (!options)
72564
- options = {};
72565
- var object = {};
72566
- if (options.defaults) {
72567
- if ($util.Long) {
72568
- var long = new $util.Long(0, 0, true);
72569
- object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
72570
- } else
72571
- object.streamId = options.longs === String ? "0" : 0;
72572
- object.streamEnd = false;
72573
- object.request = null;
72574
- }
72575
- if (message.streamId != null && message.hasOwnProperty("streamId"))
72576
- if (typeof message.streamId === "number")
72577
- object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
72578
- else
72579
- 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;
72580
- if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
72581
- object.streamEnd = message.streamEnd;
72582
- if (message.request != null && message.hasOwnProperty("request"))
72583
- object.request = $root.google.protobuf.Any.toObject(message.request, options);
72584
- return object;
72585
- };
72586
-
72587
- /**
72588
- * Converts this StreamContinuationRequest to JSON.
72589
- * @function toJSON
72590
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72591
- * @instance
72592
- * @returns {Object.<string,*>} JSON object
72593
- */
72594
- StreamContinuationRequest.prototype.toJSON = function toJSON() {
72595
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
72596
- };
72597
-
72598
- /**
72599
- * Gets the default type url for StreamContinuationRequest
72600
- * @function getTypeUrl
72601
- * @memberof replit.goval.api.pid2.StreamContinuationRequest
72602
- * @static
72603
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
72604
- * @returns {string} The default type url
72605
- */
72606
- StreamContinuationRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
72607
- if (typeUrlPrefix === undefined) {
72608
- typeUrlPrefix = "type.googleapis.com";
72609
- }
72610
- return typeUrlPrefix + "/replit.goval.api.pid2.StreamContinuationRequest";
72611
- };
72612
-
72613
- return StreamContinuationRequest;
72614
- })();
72615
-
72616
- pid2.StreamCancelRequest = (function() {
72617
-
72618
- /**
72619
- * Properties of a StreamCancelRequest.
72620
- * @memberof replit.goval.api.pid2
72621
- * @interface IStreamCancelRequest
72622
- * @property {number|null} [streamId] StreamCancelRequest streamId
72623
- */
72624
-
72625
- /**
72626
- * Constructs a new StreamCancelRequest.
72627
- * @memberof replit.goval.api.pid2
72628
- * @classdesc Represents a StreamCancelRequest.
72629
- * @constructor
72630
- * @param {replit.goval.api.pid2.IStreamCancelRequest=} [properties] Properties to set
72631
- */
72632
- function StreamCancelRequest(properties) {
72633
- if (properties)
72634
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
72635
- if (properties[keys[i]] != null)
72636
- this[keys[i]] = properties[keys[i]];
72637
- }
72638
-
72639
- /**
72640
- * StreamCancelRequest streamId.
72641
- * @member {number} streamId
72642
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72643
- * @instance
72644
- */
72645
- StreamCancelRequest.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
72646
-
72647
- /**
72648
- * Creates a new StreamCancelRequest instance using the specified properties.
72649
- * @function create
72650
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72651
- * @static
72652
- * @param {replit.goval.api.pid2.IStreamCancelRequest=} [properties] Properties to set
72653
- * @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest instance
72654
- */
72655
- StreamCancelRequest.create = function create(properties) {
72656
- return StreamCancelRequest.fromObject(properties);
72657
- };
72658
-
72659
- /**
72660
- * Encodes the specified StreamCancelRequest message. Does not implicitly {@link replit.goval.api.pid2.StreamCancelRequest.verify|verify} messages.
72661
- * @function encode
72662
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72663
- * @static
72664
- * @param {replit.goval.api.pid2.StreamCancelRequest} message StreamCancelRequest message or plain object to encode
72665
- * @param {$protobuf.Writer} [writer] Writer to encode to
72666
- * @returns {$protobuf.Writer} Writer
72667
- */
72668
- StreamCancelRequest.encode = function encode(message, writer) {
72669
- if (!writer)
72670
- writer = $Writer.create();
72671
- if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
72672
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
72673
- return writer;
72674
- };
72675
-
72676
- /**
72677
- * Encodes the specified StreamCancelRequest message, length delimited. Does not implicitly {@link replit.goval.api.pid2.StreamCancelRequest.verify|verify} messages.
72678
- * @function encodeDelimited
72679
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72680
- * @static
72681
- * @param {replit.goval.api.pid2.StreamCancelRequest} message StreamCancelRequest message or plain object to encode
72682
- * @param {$protobuf.Writer} [writer] Writer to encode to
72683
- * @returns {$protobuf.Writer} Writer
72684
- */
72685
- StreamCancelRequest.encodeDelimited = function encodeDelimited(message, writer) {
72686
- return this.encode(message, writer).ldelim();
72687
- };
72688
-
72689
- /**
72690
- * Decodes a StreamCancelRequest message from the specified reader or buffer.
72691
- * @function decode
72692
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72693
- * @static
72694
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72695
- * @param {number} [length] Message length if known beforehand
72696
- * @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest
72697
- * @throws {Error} If the payload is not a reader or valid buffer
72698
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72699
- */
72700
- StreamCancelRequest.decode = function decode(reader, length) {
72701
- if (!(reader instanceof $Reader))
72702
- reader = $Reader.create(reader);
72703
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.StreamCancelRequest();
72704
- while (reader.pos < end) {
72705
- var tag = reader.uint32();
72706
- switch (tag >>> 3) {
72707
- case 1: {
72708
- message.streamId = reader.uint64();
72709
- break;
72710
- }
72711
- default:
72712
- reader.skipType(tag & 7);
72713
- break;
72714
- }
72715
- }
72716
- return message;
72717
- };
72718
-
72719
- /**
72720
- * Decodes a StreamCancelRequest message from the specified reader or buffer, length delimited.
72721
- * @function decodeDelimited
72722
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72723
- * @static
72724
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72725
- * @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest
72726
- * @throws {Error} If the payload is not a reader or valid buffer
72727
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72728
- */
72729
- StreamCancelRequest.decodeDelimited = function decodeDelimited(reader) {
72730
- if (!(reader instanceof $Reader))
72731
- reader = new $Reader(reader);
72732
- return this.decode(reader, reader.uint32());
72733
- };
72734
-
72735
- /**
72736
- * Verifies a StreamCancelRequest message.
72737
- * @function verify
72738
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72739
- * @static
72740
- * @param {Object.<string,*>} message Plain object to verify
72741
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
72742
- */
72743
- StreamCancelRequest.verify = function verify(message) {
72744
- if (typeof message !== "object" || message === null)
72745
- return "object expected";
72746
- if (message.streamId != null && message.hasOwnProperty("streamId"))
72747
- if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
72748
- return "streamId: integer|Long expected";
72749
- return null;
72750
- };
72751
-
72752
- /**
72753
- * Creates a StreamCancelRequest message from a plain object. Also converts values to their respective internal types.
72754
- * @function fromObject
72755
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72756
- * @static
72757
- * @param {Object.<string,*>} object Plain object
72758
- * @returns {replit.goval.api.pid2.StreamCancelRequest} StreamCancelRequest
72759
- */
72760
- StreamCancelRequest.fromObject = function fromObject(object) {
72761
- if (object instanceof $root.replit.goval.api.pid2.StreamCancelRequest)
72762
- return object;
72763
- var message = new $root.replit.goval.api.pid2.StreamCancelRequest();
72764
- if (object.streamId != null)
72765
- if ($util.Long)
72766
- (message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
72767
- else if (typeof object.streamId === "string")
72768
- message.streamId = parseInt(object.streamId, 10);
72769
- else if (typeof object.streamId === "number")
72770
- message.streamId = object.streamId;
72771
- else if (typeof object.streamId === "object")
72772
- message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
72773
- return message;
72774
- };
72775
-
72776
- /**
72777
- * Creates a plain object from a StreamCancelRequest message. Also converts values to other types if specified.
72778
- * @function toObject
72779
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72780
- * @static
72781
- * @param {replit.goval.api.pid2.StreamCancelRequest} message StreamCancelRequest
72782
- * @param {$protobuf.IConversionOptions} [options] Conversion options
72783
- * @returns {Object.<string,*>} Plain object
72784
- */
72785
- StreamCancelRequest.toObject = function toObject(message, options) {
72786
- if (!options)
72787
- options = {};
72788
- var object = {};
72789
- if (options.defaults)
72790
- if ($util.Long) {
72791
- var long = new $util.Long(0, 0, true);
72792
- object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
72793
- } else
72794
- object.streamId = options.longs === String ? "0" : 0;
72795
- if (message.streamId != null && message.hasOwnProperty("streamId"))
72796
- if (typeof message.streamId === "number")
72797
- object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
72798
- else
72799
- 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;
72800
- return object;
72801
- };
72802
-
72803
- /**
72804
- * Converts this StreamCancelRequest to JSON.
72805
- * @function toJSON
72806
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72807
- * @instance
72808
- * @returns {Object.<string,*>} JSON object
72809
- */
72810
- StreamCancelRequest.prototype.toJSON = function toJSON() {
72811
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
72812
- };
72813
-
72814
- /**
72815
- * Gets the default type url for StreamCancelRequest
72816
- * @function getTypeUrl
72817
- * @memberof replit.goval.api.pid2.StreamCancelRequest
72818
- * @static
72819
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
72820
- * @returns {string} The default type url
72821
- */
72822
- StreamCancelRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
72823
- if (typeUrlPrefix === undefined) {
72824
- typeUrlPrefix = "type.googleapis.com";
72825
- }
72826
- return typeUrlPrefix + "/replit.goval.api.pid2.StreamCancelRequest";
72827
- };
72828
-
72829
- return StreamCancelRequest;
72830
- })();
72831
-
72832
- pid2.CallResponse = (function() {
72833
-
72834
- /**
72835
- * Properties of a CallResponse.
72836
- * @memberof replit.goval.api.pid2
72837
- * @interface ICallResponse
72838
- * @property {number|null} [streamId] CallResponse streamId
72839
- * @property {boolean|null} [streamEnd] CallResponse streamEnd
72840
- * @property {google.protobuf.Any|google.protobuf.IAny|null} [response] CallResponse response
72841
- * @property {replit.goval.api.pid2.Error|replit.goval.api.pid2.IError|null} [error] CallResponse error
72842
- */
72843
-
72844
- /**
72845
- * Constructs a new CallResponse.
72846
- * @memberof replit.goval.api.pid2
72847
- * @classdesc Represents a CallResponse.
72848
- * @constructor
72849
- * @param {replit.goval.api.pid2.ICallResponse=} [properties] Properties to set
72850
- */
72851
- function CallResponse(properties) {
72852
- if (properties)
72853
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
72854
- if (properties[keys[i]] != null)
72855
- this[keys[i]] = properties[keys[i]];
72856
- }
72857
-
72858
- /**
72859
- * CallResponse streamId.
72860
- * @member {number} streamId
72861
- * @memberof replit.goval.api.pid2.CallResponse
72862
- * @instance
72863
- */
72864
- CallResponse.prototype.streamId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
72865
-
72866
- /**
72867
- * CallResponse streamEnd.
72868
- * @member {boolean} streamEnd
72869
- * @memberof replit.goval.api.pid2.CallResponse
72870
- * @instance
72871
- */
72872
- CallResponse.prototype.streamEnd = false;
72873
-
72874
- /**
72875
- * CallResponse response.
72876
- * @member {google.protobuf.Any|null|undefined} response
72877
- * @memberof replit.goval.api.pid2.CallResponse
72878
- * @instance
72879
- */
72880
- CallResponse.prototype.response = null;
72881
-
72882
- /**
72883
- * CallResponse error.
72884
- * @member {replit.goval.api.pid2.Error|null|undefined} error
72885
- * @memberof replit.goval.api.pid2.CallResponse
72886
- * @instance
72887
- */
72888
- CallResponse.prototype.error = null;
72889
-
72890
- // OneOf field names bound to virtual getters and setters
72891
- var $oneOfFields;
72892
-
72893
- /**
72894
- * CallResponse body.
72895
- * @member {"response"|"error"|undefined} body
72896
- * @memberof replit.goval.api.pid2.CallResponse
72897
- * @instance
72898
- */
72899
- Object.defineProperty(CallResponse.prototype, "body", {
72900
- get: $util.oneOfGetter($oneOfFields = ["response", "error"]),
72901
- set: $util.oneOfSetter($oneOfFields)
72902
- });
72903
-
72904
- /**
72905
- * Creates a new CallResponse instance using the specified properties.
72906
- * @function create
72907
- * @memberof replit.goval.api.pid2.CallResponse
72908
- * @static
72909
- * @param {replit.goval.api.pid2.ICallResponse=} [properties] Properties to set
72910
- * @returns {replit.goval.api.pid2.CallResponse} CallResponse instance
72911
- */
72912
- CallResponse.create = function create(properties) {
72913
- return CallResponse.fromObject(properties);
72914
- };
72915
-
72916
- /**
72917
- * Encodes the specified CallResponse message. Does not implicitly {@link replit.goval.api.pid2.CallResponse.verify|verify} messages.
72918
- * @function encode
72919
- * @memberof replit.goval.api.pid2.CallResponse
72920
- * @static
72921
- * @param {replit.goval.api.pid2.CallResponse} message CallResponse message or plain object to encode
72922
- * @param {$protobuf.Writer} [writer] Writer to encode to
72923
- * @returns {$protobuf.Writer} Writer
72924
- */
72925
- CallResponse.encode = function encode(message, writer) {
72926
- if (!writer)
72927
- writer = $Writer.create();
72928
- if (message.streamId != null && Object.hasOwnProperty.call(message, "streamId"))
72929
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.streamId);
72930
- if (message.streamEnd != null && Object.hasOwnProperty.call(message, "streamEnd"))
72931
- writer.uint32(/* id 2, wireType 0 =*/16).bool(message.streamEnd);
72932
- if (message.response != null && Object.hasOwnProperty.call(message, "response"))
72933
- $root.google.protobuf.Any.encode(message.response, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
72934
- if (message.error != null && Object.hasOwnProperty.call(message, "error"))
72935
- $root.replit.goval.api.pid2.Error.encode(message.error, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
72936
- return writer;
72937
- };
72938
-
72939
- /**
72940
- * Encodes the specified CallResponse message, length delimited. Does not implicitly {@link replit.goval.api.pid2.CallResponse.verify|verify} messages.
72941
- * @function encodeDelimited
72942
- * @memberof replit.goval.api.pid2.CallResponse
72943
- * @static
72944
- * @param {replit.goval.api.pid2.CallResponse} message CallResponse message or plain object to encode
72945
- * @param {$protobuf.Writer} [writer] Writer to encode to
72946
- * @returns {$protobuf.Writer} Writer
72947
- */
72948
- CallResponse.encodeDelimited = function encodeDelimited(message, writer) {
72949
- return this.encode(message, writer).ldelim();
72950
- };
72951
-
72952
- /**
72953
- * Decodes a CallResponse message from the specified reader or buffer.
72954
- * @function decode
72955
- * @memberof replit.goval.api.pid2.CallResponse
72956
- * @static
72957
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
72958
- * @param {number} [length] Message length if known beforehand
72959
- * @returns {replit.goval.api.pid2.CallResponse} CallResponse
72960
- * @throws {Error} If the payload is not a reader or valid buffer
72961
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
72962
- */
72963
- CallResponse.decode = function decode(reader, length) {
72964
- if (!(reader instanceof $Reader))
72965
- reader = $Reader.create(reader);
72966
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.CallResponse();
72967
- while (reader.pos < end) {
72968
- var tag = reader.uint32();
72969
- switch (tag >>> 3) {
72970
- case 1: {
72971
- message.streamId = reader.uint64();
72972
- break;
72973
- }
72974
- case 2: {
72975
- message.streamEnd = reader.bool();
72976
- break;
72977
- }
72978
- case 3: {
72979
- message.response = $root.google.protobuf.Any.decode(reader, reader.uint32());
72980
- break;
72981
- }
72982
- case 4: {
72983
- message.error = $root.replit.goval.api.pid2.Error.decode(reader, reader.uint32());
72984
- break;
72985
- }
72986
- default:
72987
- reader.skipType(tag & 7);
72988
- break;
72989
- }
72990
- }
72991
- return message;
72992
- };
72993
-
72994
- /**
72995
- * Decodes a CallResponse message from the specified reader or buffer, length delimited.
72996
- * @function decodeDelimited
72997
- * @memberof replit.goval.api.pid2.CallResponse
72998
- * @static
72999
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73000
- * @returns {replit.goval.api.pid2.CallResponse} CallResponse
73001
- * @throws {Error} If the payload is not a reader or valid buffer
73002
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
73003
- */
73004
- CallResponse.decodeDelimited = function decodeDelimited(reader) {
73005
- if (!(reader instanceof $Reader))
73006
- reader = new $Reader(reader);
73007
- return this.decode(reader, reader.uint32());
73008
- };
73009
-
73010
- /**
73011
- * Verifies a CallResponse message.
73012
- * @function verify
73013
- * @memberof replit.goval.api.pid2.CallResponse
73014
- * @static
73015
- * @param {Object.<string,*>} message Plain object to verify
73016
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
73017
- */
73018
- CallResponse.verify = function verify(message) {
73019
- if (typeof message !== "object" || message === null)
73020
- return "object expected";
73021
- var properties = {};
73022
- if (message.streamId != null && message.hasOwnProperty("streamId"))
73023
- if (!$util.isInteger(message.streamId) && !(message.streamId && $util.isInteger(message.streamId.low) && $util.isInteger(message.streamId.high)))
73024
- return "streamId: integer|Long expected";
73025
- if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
73026
- if (typeof message.streamEnd !== "boolean")
73027
- return "streamEnd: boolean expected";
73028
- if (message.response != null && message.hasOwnProperty("response")) {
73029
- properties.body = 1;
73030
- {
73031
- var error = $root.google.protobuf.Any.verify(message.response);
73032
- if (error)
73033
- return "response." + error;
73034
- }
73035
- }
73036
- if (message.error != null && message.hasOwnProperty("error")) {
73037
- if (properties.body === 1)
73038
- return "body: multiple values";
73039
- properties.body = 1;
73040
- {
73041
- var error = $root.replit.goval.api.pid2.Error.verify(message.error);
73042
- if (error)
73043
- return "error." + error;
73044
- }
73045
- }
73046
- return null;
73047
- };
73048
-
73049
- /**
73050
- * Creates a CallResponse message from a plain object. Also converts values to their respective internal types.
73051
- * @function fromObject
73052
- * @memberof replit.goval.api.pid2.CallResponse
73053
- * @static
73054
- * @param {Object.<string,*>} object Plain object
73055
- * @returns {replit.goval.api.pid2.CallResponse} CallResponse
73056
- */
73057
- CallResponse.fromObject = function fromObject(object) {
73058
- if (object instanceof $root.replit.goval.api.pid2.CallResponse)
73059
- return object;
73060
- var message = new $root.replit.goval.api.pid2.CallResponse();
73061
- if (object.streamId != null)
73062
- if ($util.Long)
73063
- (message.streamId = $util.Long.fromValue(object.streamId)).unsigned = true;
73064
- else if (typeof object.streamId === "string")
73065
- message.streamId = parseInt(object.streamId, 10);
73066
- else if (typeof object.streamId === "number")
73067
- message.streamId = object.streamId;
73068
- else if (typeof object.streamId === "object")
73069
- message.streamId = new $util.LongBits(object.streamId.low >>> 0, object.streamId.high >>> 0).toNumber(true);
73070
- if (object.streamEnd != null)
73071
- message.streamEnd = Boolean(object.streamEnd);
73072
- if (object.response != null) {
73073
- if (typeof object.response !== "object")
73074
- throw TypeError(".replit.goval.api.pid2.CallResponse.response: object expected");
73075
- message.response = $root.google.protobuf.Any.fromObject(object.response);
73076
- }
73077
- if (object.error != null) {
73078
- if (typeof object.error !== "object")
73079
- throw TypeError(".replit.goval.api.pid2.CallResponse.error: object expected");
73080
- message.error = $root.replit.goval.api.pid2.Error.fromObject(object.error);
73081
- }
73082
- return message;
73083
- };
73084
-
73085
- /**
73086
- * Creates a plain object from a CallResponse message. Also converts values to other types if specified.
73087
- * @function toObject
73088
- * @memberof replit.goval.api.pid2.CallResponse
73089
- * @static
73090
- * @param {replit.goval.api.pid2.CallResponse} message CallResponse
73091
- * @param {$protobuf.IConversionOptions} [options] Conversion options
73092
- * @returns {Object.<string,*>} Plain object
73093
- */
73094
- CallResponse.toObject = function toObject(message, options) {
73095
- if (!options)
73096
- options = {};
73097
- var object = {};
73098
- if (options.defaults) {
73099
- if ($util.Long) {
73100
- var long = new $util.Long(0, 0, true);
73101
- object.streamId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
73102
- } else
73103
- object.streamId = options.longs === String ? "0" : 0;
73104
- object.streamEnd = false;
73105
- }
73106
- if (message.streamId != null && message.hasOwnProperty("streamId"))
73107
- if (typeof message.streamId === "number")
73108
- object.streamId = options.longs === String ? String(message.streamId) : message.streamId;
73109
- else
73110
- 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;
73111
- if (message.streamEnd != null && message.hasOwnProperty("streamEnd"))
73112
- object.streamEnd = message.streamEnd;
73113
- if (message.response != null && message.hasOwnProperty("response")) {
73114
- object.response = $root.google.protobuf.Any.toObject(message.response, options);
73115
- if (options.oneofs)
73116
- object.body = "response";
73117
- }
73118
- if (message.error != null && message.hasOwnProperty("error")) {
73119
- object.error = $root.replit.goval.api.pid2.Error.toObject(message.error, options);
73120
- if (options.oneofs)
73121
- object.body = "error";
73122
- }
73123
- return object;
73124
- };
73125
-
73126
- /**
73127
- * Converts this CallResponse to JSON.
73128
- * @function toJSON
73129
- * @memberof replit.goval.api.pid2.CallResponse
73130
- * @instance
73131
- * @returns {Object.<string,*>} JSON object
73132
- */
73133
- CallResponse.prototype.toJSON = function toJSON() {
73134
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
73135
- };
73136
-
73137
- /**
73138
- * Gets the default type url for CallResponse
73139
- * @function getTypeUrl
73140
- * @memberof replit.goval.api.pid2.CallResponse
73141
- * @static
73142
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
73143
- * @returns {string} The default type url
73144
- */
73145
- CallResponse.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
73146
- if (typeUrlPrefix === undefined) {
73147
- typeUrlPrefix = "type.googleapis.com";
73148
- }
73149
- return typeUrlPrefix + "/replit.goval.api.pid2.CallResponse";
73150
- };
73151
-
73152
- return CallResponse;
73153
- })();
73154
-
73155
- pid2.Error = (function() {
73156
-
73157
- /**
73158
- * Properties of an Error.
73159
- * @memberof replit.goval.api.pid2
73160
- * @interface IError
73161
- * @property {replit.goval.api.pid2.Error.Code|null} [code] Error code
73162
- * @property {string|null} [message] Error message
73163
- */
73164
-
73165
- /**
73166
- * Constructs a new Error.
73167
- * @memberof replit.goval.api.pid2
73168
- * @classdesc Represents an Error.
73169
- * @constructor
73170
- * @param {replit.goval.api.pid2.IError=} [properties] Properties to set
73171
- */
73172
- function Error(properties) {
73173
- if (properties)
73174
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
73175
- if (properties[keys[i]] != null)
73176
- this[keys[i]] = properties[keys[i]];
73177
- }
73178
-
73179
- /**
73180
- * Error code.
73181
- * @member {replit.goval.api.pid2.Error.Code} code
73182
- * @memberof replit.goval.api.pid2.Error
73183
- * @instance
73184
- */
73185
- Error.prototype.code = 0;
73186
-
73187
- /**
73188
- * Error message.
73189
- * @member {string} message
73190
- * @memberof replit.goval.api.pid2.Error
73191
- * @instance
73192
- */
73193
- Error.prototype.message = "";
73194
-
73195
- /**
73196
- * Creates a new Error instance using the specified properties.
73197
- * @function create
73198
- * @memberof replit.goval.api.pid2.Error
73199
- * @static
73200
- * @param {replit.goval.api.pid2.IError=} [properties] Properties to set
73201
- * @returns {replit.goval.api.pid2.Error} Error instance
73202
- */
73203
- Error.create = function create(properties) {
73204
- return Error.fromObject(properties);
73205
- };
73206
-
73207
- /**
73208
- * Encodes the specified Error message. Does not implicitly {@link replit.goval.api.pid2.Error.verify|verify} messages.
73209
- * @function encode
73210
- * @memberof replit.goval.api.pid2.Error
73211
- * @static
73212
- * @param {replit.goval.api.pid2.Error} message Error message or plain object to encode
73213
- * @param {$protobuf.Writer} [writer] Writer to encode to
73214
- * @returns {$protobuf.Writer} Writer
73215
- */
73216
- Error.encode = function encode(message, writer) {
73217
- if (!writer)
73218
- writer = $Writer.create();
73219
- if (message.code != null && Object.hasOwnProperty.call(message, "code"))
73220
- writer.uint32(/* id 1, wireType 0 =*/8).int32(message.code);
73221
- if (message.message != null && Object.hasOwnProperty.call(message, "message"))
73222
- writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
73223
- return writer;
73224
- };
73225
-
73226
- /**
73227
- * Encodes the specified Error message, length delimited. Does not implicitly {@link replit.goval.api.pid2.Error.verify|verify} messages.
73228
- * @function encodeDelimited
73229
- * @memberof replit.goval.api.pid2.Error
73230
- * @static
73231
- * @param {replit.goval.api.pid2.Error} message Error message or plain object to encode
73232
- * @param {$protobuf.Writer} [writer] Writer to encode to
73233
- * @returns {$protobuf.Writer} Writer
73234
- */
73235
- Error.encodeDelimited = function encodeDelimited(message, writer) {
73236
- return this.encode(message, writer).ldelim();
73237
- };
73238
-
73239
- /**
73240
- * Decodes an Error message from the specified reader or buffer.
73241
- * @function decode
73242
- * @memberof replit.goval.api.pid2.Error
73243
- * @static
73244
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73245
- * @param {number} [length] Message length if known beforehand
73246
- * @returns {replit.goval.api.pid2.Error} Error
73247
- * @throws {Error} If the payload is not a reader or valid buffer
73248
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
73249
- */
73250
- Error.decode = function decode(reader, length) {
73251
- if (!(reader instanceof $Reader))
73252
- reader = $Reader.create(reader);
73253
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.Error();
73254
- while (reader.pos < end) {
73255
- var tag = reader.uint32();
73256
- switch (tag >>> 3) {
73257
- case 1: {
73258
- message.code = reader.int32();
73259
- break;
73260
- }
73261
- case 2: {
73262
- message.message = reader.string();
73263
- break;
73264
- }
73265
- default:
73266
- reader.skipType(tag & 7);
73267
- break;
73268
- }
73269
- }
73270
- return message;
73271
- };
73272
-
73273
- /**
73274
- * Decodes an Error message from the specified reader or buffer, length delimited.
73275
- * @function decodeDelimited
73276
- * @memberof replit.goval.api.pid2.Error
73277
- * @static
73278
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73279
- * @returns {replit.goval.api.pid2.Error} Error
73280
- * @throws {Error} If the payload is not a reader or valid buffer
73281
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
73282
- */
73283
- Error.decodeDelimited = function decodeDelimited(reader) {
73284
- if (!(reader instanceof $Reader))
73285
- reader = new $Reader(reader);
73286
- return this.decode(reader, reader.uint32());
73287
- };
73288
-
73289
- /**
73290
- * Verifies an Error message.
73291
- * @function verify
73292
- * @memberof replit.goval.api.pid2.Error
73293
- * @static
73294
- * @param {Object.<string,*>} message Plain object to verify
73295
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
73296
- */
73297
- Error.verify = function verify(message) {
73298
- if (typeof message !== "object" || message === null)
73299
- return "object expected";
73300
- if (message.code != null && message.hasOwnProperty("code"))
73301
- switch (message.code) {
73302
- default:
73303
- return "code: enum value expected";
73304
- case 0:
73305
- case 1:
73306
- case 2:
73307
- case 3:
73308
- case 4:
73309
- case 5:
73310
- case 6:
73311
- case 7:
73312
- case 8:
73313
- case 9:
73314
- case 10:
73315
- case 11:
73316
- case 12:
73317
- case 13:
73318
- case 14:
73319
- case 15:
73320
- case 16:
73321
- break;
73322
- }
73323
- if (message.message != null && message.hasOwnProperty("message"))
73324
- if (!$util.isString(message.message))
73325
- return "message: string expected";
73326
- return null;
73327
- };
73328
-
73329
- /**
73330
- * Creates an Error message from a plain object. Also converts values to their respective internal types.
73331
- * @function fromObject
73332
- * @memberof replit.goval.api.pid2.Error
73333
- * @static
73334
- * @param {Object.<string,*>} object Plain object
73335
- * @returns {replit.goval.api.pid2.Error} Error
73336
- */
73337
- Error.fromObject = function fromObject(object) {
73338
- if (object instanceof $root.replit.goval.api.pid2.Error)
73339
- return object;
73340
- var message = new $root.replit.goval.api.pid2.Error();
73341
- switch (object.code) {
73342
- default:
73343
- if (typeof object.code === "number") {
73344
- message.code = object.code;
73345
- break;
73346
- }
73347
- break;
73348
- case "OK":
73349
- case 0:
73350
- message.code = 0;
73351
- break;
73352
- case "CANCELED":
73353
- case 1:
73354
- message.code = 1;
73355
- break;
73356
- case "UNKNOWN":
73357
- case 2:
73358
- message.code = 2;
73359
- break;
73360
- case "INVALID_ARGUMENT":
73361
- case 3:
73362
- message.code = 3;
73363
- break;
73364
- case "DEADLINE_EXCEEDED":
73365
- case 4:
73366
- message.code = 4;
73367
- break;
73368
- case "NOT_FOUND":
73369
- case 5:
73370
- message.code = 5;
73371
- break;
73372
- case "ALREADY_EXISTS":
73373
- case 6:
73374
- message.code = 6;
73375
- break;
73376
- case "PERMISSION_DENIED":
73377
- case 7:
73378
- message.code = 7;
73379
- break;
73380
- case "RESOURCE_EXHAUSTED":
73381
- case 8:
73382
- message.code = 8;
73383
- break;
73384
- case "FAILED_PRECONDITION":
73385
- case 9:
73386
- message.code = 9;
73387
- break;
73388
- case "ABORTED":
73389
- case 10:
73390
- message.code = 10;
73391
- break;
73392
- case "OUT_OF_RANGE":
73393
- case 11:
73394
- message.code = 11;
73395
- break;
73396
- case "UNIMPLEMENTED":
73397
- case 12:
73398
- message.code = 12;
73399
- break;
73400
- case "INTERNAL":
73401
- case 13:
73402
- message.code = 13;
73403
- break;
73404
- case "UNAVAILABLE":
73405
- case 14:
73406
- message.code = 14;
73407
- break;
73408
- case "DATA_LOSS":
73409
- case 15:
73410
- message.code = 15;
73411
- break;
73412
- case "UNAUTHENTICATED":
73413
- case 16:
73414
- message.code = 16;
73415
- break;
73416
- }
73417
- if (object.message != null)
73418
- message.message = String(object.message);
73419
- return message;
73420
- };
73421
-
73422
- /**
73423
- * Creates a plain object from an Error message. Also converts values to other types if specified.
73424
- * @function toObject
73425
- * @memberof replit.goval.api.pid2.Error
73426
- * @static
73427
- * @param {replit.goval.api.pid2.Error} message Error
73428
- * @param {$protobuf.IConversionOptions} [options] Conversion options
73429
- * @returns {Object.<string,*>} Plain object
73430
- */
73431
- Error.toObject = function toObject(message, options) {
73432
- if (!options)
73433
- options = {};
73434
- var object = {};
73435
- if (options.defaults) {
73436
- object.code = options.enums === String ? "OK" : 0;
73437
- object.message = "";
73438
- }
73439
- if (message.code != null && message.hasOwnProperty("code"))
73440
- object.code = options.enums === String ? $root.replit.goval.api.pid2.Error.Code[message.code] === undefined ? message.code : $root.replit.goval.api.pid2.Error.Code[message.code] : message.code;
73441
- if (message.message != null && message.hasOwnProperty("message"))
73442
- object.message = message.message;
73443
- return object;
73444
- };
73445
-
73446
- /**
73447
- * Converts this Error to JSON.
73448
- * @function toJSON
73449
- * @memberof replit.goval.api.pid2.Error
73450
- * @instance
73451
- * @returns {Object.<string,*>} JSON object
73452
- */
73453
- Error.prototype.toJSON = function toJSON() {
73454
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
73455
- };
73456
-
73457
- /**
73458
- * Gets the default type url for Error
73459
- * @function getTypeUrl
73460
- * @memberof replit.goval.api.pid2.Error
73461
- * @static
73462
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
73463
- * @returns {string} The default type url
73464
- */
73465
- Error.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
73466
- if (typeUrlPrefix === undefined) {
73467
- typeUrlPrefix = "type.googleapis.com";
73468
- }
73469
- return typeUrlPrefix + "/replit.goval.api.pid2.Error";
73470
- };
73471
-
73472
- /**
73473
- * Code enum.
73474
- * @name replit.goval.api.pid2.Error.Code
73475
- * @enum {number}
73476
- * @property {number} OK=0 OK value
73477
- * @property {number} CANCELED=1 CANCELED value
73478
- * @property {number} UNKNOWN=2 UNKNOWN value
73479
- * @property {number} INVALID_ARGUMENT=3 INVALID_ARGUMENT value
73480
- * @property {number} DEADLINE_EXCEEDED=4 DEADLINE_EXCEEDED value
73481
- * @property {number} NOT_FOUND=5 NOT_FOUND value
73482
- * @property {number} ALREADY_EXISTS=6 ALREADY_EXISTS value
73483
- * @property {number} PERMISSION_DENIED=7 PERMISSION_DENIED value
73484
- * @property {number} RESOURCE_EXHAUSTED=8 RESOURCE_EXHAUSTED value
73485
- * @property {number} FAILED_PRECONDITION=9 FAILED_PRECONDITION value
73486
- * @property {number} ABORTED=10 ABORTED value
73487
- * @property {number} OUT_OF_RANGE=11 OUT_OF_RANGE value
73488
- * @property {number} UNIMPLEMENTED=12 UNIMPLEMENTED value
73489
- * @property {number} INTERNAL=13 INTERNAL value
73490
- * @property {number} UNAVAILABLE=14 UNAVAILABLE value
73491
- * @property {number} DATA_LOSS=15 DATA_LOSS value
73492
- * @property {number} UNAUTHENTICATED=16 UNAUTHENTICATED value
73493
- */
73494
- Error.Code = (function() {
73495
- var valuesById = {}, values = Object.create(valuesById);
73496
- values[valuesById[0] = "OK"] = 0;
73497
- values[valuesById[1] = "CANCELED"] = 1;
73498
- values[valuesById[2] = "UNKNOWN"] = 2;
73499
- values[valuesById[3] = "INVALID_ARGUMENT"] = 3;
73500
- values[valuesById[4] = "DEADLINE_EXCEEDED"] = 4;
73501
- values[valuesById[5] = "NOT_FOUND"] = 5;
73502
- values[valuesById[6] = "ALREADY_EXISTS"] = 6;
73503
- values[valuesById[7] = "PERMISSION_DENIED"] = 7;
73504
- values[valuesById[8] = "RESOURCE_EXHAUSTED"] = 8;
73505
- values[valuesById[9] = "FAILED_PRECONDITION"] = 9;
73506
- values[valuesById[10] = "ABORTED"] = 10;
73507
- values[valuesById[11] = "OUT_OF_RANGE"] = 11;
73508
- values[valuesById[12] = "UNIMPLEMENTED"] = 12;
73509
- values[valuesById[13] = "INTERNAL"] = 13;
73510
- values[valuesById[14] = "UNAVAILABLE"] = 14;
73511
- values[valuesById[15] = "DATA_LOSS"] = 15;
73512
- values[valuesById[16] = "UNAUTHENTICATED"] = 16;
73513
- return values;
73514
- })();
73515
-
73516
- return Error;
73517
- })();
71271
+ /**
71272
+ * Properties of a UserPowerUps.
71273
+ * @memberof replit.goval.api
71274
+ * @interface IUserPowerUps
71275
+ * @property {number|null} [userId] UserPowerUps userId
71276
+ * @property {string|null} [username] UserPowerUps username
71277
+ * @property {Array.<replit.goval.api.PowerUp|replit.goval.api.IPowerUp>|null} [powerups] UserPowerUps powerups
71278
+ */
73518
71279
 
73519
- pid2.Ping = (function() {
71280
+ /**
71281
+ * Constructs a new UserPowerUps.
71282
+ * @memberof replit.goval.api
71283
+ * @classdesc Represents a UserPowerUps.
71284
+ * @constructor
71285
+ * @param {replit.goval.api.IUserPowerUps=} [properties] Properties to set
71286
+ */
71287
+ function UserPowerUps(properties) {
71288
+ this.powerups = [];
71289
+ if (properties)
71290
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
71291
+ if (properties[keys[i]] != null)
71292
+ this[keys[i]] = properties[keys[i]];
71293
+ }
73520
71294
 
73521
- /**
73522
- * Properties of a Ping.
73523
- * @memberof replit.goval.api.pid2
73524
- * @interface IPing
73525
- * @property {number|null} [nonce] Ping nonce
73526
- */
71295
+ /**
71296
+ * UserPowerUps userId.
71297
+ * @member {number} userId
71298
+ * @memberof replit.goval.api.UserPowerUps
71299
+ * @instance
71300
+ */
71301
+ UserPowerUps.prototype.userId = 0;
73527
71302
 
73528
- /**
73529
- * Constructs a new Ping.
73530
- * @memberof replit.goval.api.pid2
73531
- * @classdesc Represents a Ping.
73532
- * @constructor
73533
- * @param {replit.goval.api.pid2.IPing=} [properties] Properties to set
73534
- */
73535
- function Ping(properties) {
73536
- if (properties)
73537
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
73538
- if (properties[keys[i]] != null)
73539
- this[keys[i]] = properties[keys[i]];
73540
- }
71303
+ /**
71304
+ * UserPowerUps username.
71305
+ * @member {string} username
71306
+ * @memberof replit.goval.api.UserPowerUps
71307
+ * @instance
71308
+ */
71309
+ UserPowerUps.prototype.username = "";
73541
71310
 
73542
- /**
73543
- * Ping nonce.
73544
- * @member {number} nonce
73545
- * @memberof replit.goval.api.pid2.Ping
73546
- * @instance
73547
- */
73548
- Ping.prototype.nonce = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
71311
+ /**
71312
+ * UserPowerUps powerups.
71313
+ * @member {Array.<replit.goval.api.PowerUp>} powerups
71314
+ * @memberof replit.goval.api.UserPowerUps
71315
+ * @instance
71316
+ */
71317
+ UserPowerUps.prototype.powerups = $util.emptyArray;
73549
71318
 
73550
- /**
73551
- * Creates a new Ping instance using the specified properties.
73552
- * @function create
73553
- * @memberof replit.goval.api.pid2.Ping
73554
- * @static
73555
- * @param {replit.goval.api.pid2.IPing=} [properties] Properties to set
73556
- * @returns {replit.goval.api.pid2.Ping} Ping instance
73557
- */
73558
- Ping.create = function create(properties) {
73559
- return Ping.fromObject(properties);
73560
- };
71319
+ /**
71320
+ * Creates a new UserPowerUps instance using the specified properties.
71321
+ * @function create
71322
+ * @memberof replit.goval.api.UserPowerUps
71323
+ * @static
71324
+ * @param {replit.goval.api.IUserPowerUps=} [properties] Properties to set
71325
+ * @returns {replit.goval.api.UserPowerUps} UserPowerUps instance
71326
+ */
71327
+ UserPowerUps.create = function create(properties) {
71328
+ return UserPowerUps.fromObject(properties);
71329
+ };
73561
71330
 
73562
- /**
73563
- * Encodes the specified Ping message. Does not implicitly {@link replit.goval.api.pid2.Ping.verify|verify} messages.
73564
- * @function encode
73565
- * @memberof replit.goval.api.pid2.Ping
73566
- * @static
73567
- * @param {replit.goval.api.pid2.Ping} message Ping message or plain object to encode
73568
- * @param {$protobuf.Writer} [writer] Writer to encode to
73569
- * @returns {$protobuf.Writer} Writer
73570
- */
73571
- Ping.encode = function encode(message, writer) {
73572
- if (!writer)
73573
- writer = $Writer.create();
73574
- if (message.nonce != null && Object.hasOwnProperty.call(message, "nonce"))
73575
- writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.nonce);
73576
- return writer;
73577
- };
71331
+ /**
71332
+ * Encodes the specified UserPowerUps message. Does not implicitly {@link replit.goval.api.UserPowerUps.verify|verify} messages.
71333
+ * @function encode
71334
+ * @memberof replit.goval.api.UserPowerUps
71335
+ * @static
71336
+ * @param {replit.goval.api.UserPowerUps} message UserPowerUps message or plain object to encode
71337
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71338
+ * @returns {$protobuf.Writer} Writer
71339
+ */
71340
+ UserPowerUps.encode = function encode(message, writer) {
71341
+ if (!writer)
71342
+ writer = $Writer.create();
71343
+ if (message.userId != null && Object.hasOwnProperty.call(message, "userId"))
71344
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.userId);
71345
+ if (message.username != null && Object.hasOwnProperty.call(message, "username"))
71346
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.username);
71347
+ if (message.powerups != null && message.powerups.length)
71348
+ for (var i = 0; i < message.powerups.length; ++i)
71349
+ $root.replit.goval.api.PowerUp.encode(message.powerups[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
71350
+ return writer;
71351
+ };
73578
71352
 
73579
- /**
73580
- * Encodes the specified Ping message, length delimited. Does not implicitly {@link replit.goval.api.pid2.Ping.verify|verify} messages.
73581
- * @function encodeDelimited
73582
- * @memberof replit.goval.api.pid2.Ping
73583
- * @static
73584
- * @param {replit.goval.api.pid2.Ping} message Ping message or plain object to encode
73585
- * @param {$protobuf.Writer} [writer] Writer to encode to
73586
- * @returns {$protobuf.Writer} Writer
73587
- */
73588
- Ping.encodeDelimited = function encodeDelimited(message, writer) {
73589
- return this.encode(message, writer).ldelim();
73590
- };
71353
+ /**
71354
+ * Encodes the specified UserPowerUps message, length delimited. Does not implicitly {@link replit.goval.api.UserPowerUps.verify|verify} messages.
71355
+ * @function encodeDelimited
71356
+ * @memberof replit.goval.api.UserPowerUps
71357
+ * @static
71358
+ * @param {replit.goval.api.UserPowerUps} message UserPowerUps message or plain object to encode
71359
+ * @param {$protobuf.Writer} [writer] Writer to encode to
71360
+ * @returns {$protobuf.Writer} Writer
71361
+ */
71362
+ UserPowerUps.encodeDelimited = function encodeDelimited(message, writer) {
71363
+ return this.encode(message, writer).ldelim();
71364
+ };
73591
71365
 
73592
- /**
73593
- * Decodes a Ping message from the specified reader or buffer.
73594
- * @function decode
73595
- * @memberof replit.goval.api.pid2.Ping
73596
- * @static
73597
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73598
- * @param {number} [length] Message length if known beforehand
73599
- * @returns {replit.goval.api.pid2.Ping} Ping
73600
- * @throws {Error} If the payload is not a reader or valid buffer
73601
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
73602
- */
73603
- Ping.decode = function decode(reader, length) {
73604
- if (!(reader instanceof $Reader))
73605
- reader = $Reader.create(reader);
73606
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.pid2.Ping();
73607
- while (reader.pos < end) {
73608
- var tag = reader.uint32();
73609
- switch (tag >>> 3) {
73610
- case 1: {
73611
- message.nonce = reader.uint64();
73612
- break;
73613
- }
73614
- default:
73615
- reader.skipType(tag & 7);
71366
+ /**
71367
+ * Decodes a UserPowerUps message from the specified reader or buffer.
71368
+ * @function decode
71369
+ * @memberof replit.goval.api.UserPowerUps
71370
+ * @static
71371
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71372
+ * @param {number} [length] Message length if known beforehand
71373
+ * @returns {replit.goval.api.UserPowerUps} UserPowerUps
71374
+ * @throws {Error} If the payload is not a reader or valid buffer
71375
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71376
+ */
71377
+ UserPowerUps.decode = function decode(reader, length) {
71378
+ if (!(reader instanceof $Reader))
71379
+ reader = $Reader.create(reader);
71380
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.UserPowerUps();
71381
+ while (reader.pos < end) {
71382
+ var tag = reader.uint32();
71383
+ switch (tag >>> 3) {
71384
+ case 1: {
71385
+ message.userId = reader.uint32();
71386
+ break;
71387
+ }
71388
+ case 2: {
71389
+ message.username = reader.string();
71390
+ break;
71391
+ }
71392
+ case 3: {
71393
+ if (!(message.powerups && message.powerups.length))
71394
+ message.powerups = [];
71395
+ message.powerups.push($root.replit.goval.api.PowerUp.decode(reader, reader.uint32()));
73616
71396
  break;
73617
71397
  }
71398
+ default:
71399
+ reader.skipType(tag & 7);
71400
+ break;
73618
71401
  }
73619
- return message;
73620
- };
73621
-
73622
- /**
73623
- * Decodes a Ping message from the specified reader or buffer, length delimited.
73624
- * @function decodeDelimited
73625
- * @memberof replit.goval.api.pid2.Ping
73626
- * @static
73627
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
73628
- * @returns {replit.goval.api.pid2.Ping} Ping
73629
- * @throws {Error} If the payload is not a reader or valid buffer
73630
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
73631
- */
73632
- Ping.decodeDelimited = function decodeDelimited(reader) {
73633
- if (!(reader instanceof $Reader))
73634
- reader = new $Reader(reader);
73635
- return this.decode(reader, reader.uint32());
73636
- };
71402
+ }
71403
+ return message;
71404
+ };
73637
71405
 
73638
- /**
73639
- * Verifies a Ping message.
73640
- * @function verify
73641
- * @memberof replit.goval.api.pid2.Ping
73642
- * @static
73643
- * @param {Object.<string,*>} message Plain object to verify
73644
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
73645
- */
73646
- Ping.verify = function verify(message) {
73647
- if (typeof message !== "object" || message === null)
73648
- return "object expected";
73649
- if (message.nonce != null && message.hasOwnProperty("nonce"))
73650
- if (!$util.isInteger(message.nonce) && !(message.nonce && $util.isInteger(message.nonce.low) && $util.isInteger(message.nonce.high)))
73651
- return "nonce: integer|Long expected";
73652
- return null;
73653
- };
71406
+ /**
71407
+ * Decodes a UserPowerUps message from the specified reader or buffer, length delimited.
71408
+ * @function decodeDelimited
71409
+ * @memberof replit.goval.api.UserPowerUps
71410
+ * @static
71411
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
71412
+ * @returns {replit.goval.api.UserPowerUps} UserPowerUps
71413
+ * @throws {Error} If the payload is not a reader or valid buffer
71414
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
71415
+ */
71416
+ UserPowerUps.decodeDelimited = function decodeDelimited(reader) {
71417
+ if (!(reader instanceof $Reader))
71418
+ reader = new $Reader(reader);
71419
+ return this.decode(reader, reader.uint32());
71420
+ };
73654
71421
 
73655
- /**
73656
- * Creates a Ping message from a plain object. Also converts values to their respective internal types.
73657
- * @function fromObject
73658
- * @memberof replit.goval.api.pid2.Ping
73659
- * @static
73660
- * @param {Object.<string,*>} object Plain object
73661
- * @returns {replit.goval.api.pid2.Ping} Ping
73662
- */
73663
- Ping.fromObject = function fromObject(object) {
73664
- if (object instanceof $root.replit.goval.api.pid2.Ping)
73665
- return object;
73666
- var message = new $root.replit.goval.api.pid2.Ping();
73667
- if (object.nonce != null)
73668
- if ($util.Long)
73669
- (message.nonce = $util.Long.fromValue(object.nonce)).unsigned = true;
73670
- else if (typeof object.nonce === "string")
73671
- message.nonce = parseInt(object.nonce, 10);
73672
- else if (typeof object.nonce === "number")
73673
- message.nonce = object.nonce;
73674
- else if (typeof object.nonce === "object")
73675
- message.nonce = new $util.LongBits(object.nonce.low >>> 0, object.nonce.high >>> 0).toNumber(true);
73676
- return message;
73677
- };
71422
+ /**
71423
+ * Verifies a UserPowerUps message.
71424
+ * @function verify
71425
+ * @memberof replit.goval.api.UserPowerUps
71426
+ * @static
71427
+ * @param {Object.<string,*>} message Plain object to verify
71428
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
71429
+ */
71430
+ UserPowerUps.verify = function verify(message) {
71431
+ if (typeof message !== "object" || message === null)
71432
+ return "object expected";
71433
+ if (message.userId != null && message.hasOwnProperty("userId"))
71434
+ if (!$util.isInteger(message.userId))
71435
+ return "userId: integer expected";
71436
+ if (message.username != null && message.hasOwnProperty("username"))
71437
+ if (!$util.isString(message.username))
71438
+ return "username: string expected";
71439
+ if (message.powerups != null && message.hasOwnProperty("powerups")) {
71440
+ if (!Array.isArray(message.powerups))
71441
+ return "powerups: array expected";
71442
+ for (var i = 0; i < message.powerups.length; ++i) {
71443
+ var error = $root.replit.goval.api.PowerUp.verify(message.powerups[i]);
71444
+ if (error)
71445
+ return "powerups." + error;
71446
+ }
71447
+ }
71448
+ return null;
71449
+ };
73678
71450
 
73679
- /**
73680
- * Creates a plain object from a Ping message. Also converts values to other types if specified.
73681
- * @function toObject
73682
- * @memberof replit.goval.api.pid2.Ping
73683
- * @static
73684
- * @param {replit.goval.api.pid2.Ping} message Ping
73685
- * @param {$protobuf.IConversionOptions} [options] Conversion options
73686
- * @returns {Object.<string,*>} Plain object
73687
- */
73688
- Ping.toObject = function toObject(message, options) {
73689
- if (!options)
73690
- options = {};
73691
- var object = {};
73692
- if (options.defaults)
73693
- if ($util.Long) {
73694
- var long = new $util.Long(0, 0, true);
73695
- object.nonce = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
73696
- } else
73697
- object.nonce = options.longs === String ? "0" : 0;
73698
- if (message.nonce != null && message.hasOwnProperty("nonce"))
73699
- if (typeof message.nonce === "number")
73700
- object.nonce = options.longs === String ? String(message.nonce) : message.nonce;
73701
- else
73702
- 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;
71451
+ /**
71452
+ * Creates a UserPowerUps message from a plain object. Also converts values to their respective internal types.
71453
+ * @function fromObject
71454
+ * @memberof replit.goval.api.UserPowerUps
71455
+ * @static
71456
+ * @param {Object.<string,*>} object Plain object
71457
+ * @returns {replit.goval.api.UserPowerUps} UserPowerUps
71458
+ */
71459
+ UserPowerUps.fromObject = function fromObject(object) {
71460
+ if (object instanceof $root.replit.goval.api.UserPowerUps)
73703
71461
  return object;
73704
- };
71462
+ var message = new $root.replit.goval.api.UserPowerUps();
71463
+ if (object.userId != null)
71464
+ message.userId = object.userId >>> 0;
71465
+ if (object.username != null)
71466
+ message.username = String(object.username);
71467
+ if (object.powerups) {
71468
+ if (!Array.isArray(object.powerups))
71469
+ throw TypeError(".replit.goval.api.UserPowerUps.powerups: array expected");
71470
+ message.powerups = [];
71471
+ for (var i = 0; i < object.powerups.length; ++i) {
71472
+ if (typeof object.powerups[i] !== "object")
71473
+ throw TypeError(".replit.goval.api.UserPowerUps.powerups: object expected");
71474
+ message.powerups[i] = $root.replit.goval.api.PowerUp.fromObject(object.powerups[i]);
71475
+ }
71476
+ }
71477
+ return message;
71478
+ };
73705
71479
 
73706
- /**
73707
- * Converts this Ping to JSON.
73708
- * @function toJSON
73709
- * @memberof replit.goval.api.pid2.Ping
73710
- * @instance
73711
- * @returns {Object.<string,*>} JSON object
73712
- */
73713
- Ping.prototype.toJSON = function toJSON() {
73714
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
73715
- };
71480
+ /**
71481
+ * Creates a plain object from a UserPowerUps message. Also converts values to other types if specified.
71482
+ * @function toObject
71483
+ * @memberof replit.goval.api.UserPowerUps
71484
+ * @static
71485
+ * @param {replit.goval.api.UserPowerUps} message UserPowerUps
71486
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
71487
+ * @returns {Object.<string,*>} Plain object
71488
+ */
71489
+ UserPowerUps.toObject = function toObject(message, options) {
71490
+ if (!options)
71491
+ options = {};
71492
+ var object = {};
71493
+ if (options.arrays || options.defaults)
71494
+ object.powerups = [];
71495
+ if (options.defaults) {
71496
+ object.userId = 0;
71497
+ object.username = "";
71498
+ }
71499
+ if (message.userId != null && message.hasOwnProperty("userId"))
71500
+ object.userId = message.userId;
71501
+ if (message.username != null && message.hasOwnProperty("username"))
71502
+ object.username = message.username;
71503
+ if (message.powerups && message.powerups.length) {
71504
+ object.powerups = [];
71505
+ for (var j = 0; j < message.powerups.length; ++j)
71506
+ object.powerups[j] = $root.replit.goval.api.PowerUp.toObject(message.powerups[j], options);
71507
+ }
71508
+ return object;
71509
+ };
73716
71510
 
73717
- /**
73718
- * Gets the default type url for Ping
73719
- * @function getTypeUrl
73720
- * @memberof replit.goval.api.pid2.Ping
73721
- * @static
73722
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
73723
- * @returns {string} The default type url
73724
- */
73725
- Ping.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
73726
- if (typeUrlPrefix === undefined) {
73727
- typeUrlPrefix = "type.googleapis.com";
73728
- }
73729
- return typeUrlPrefix + "/replit.goval.api.pid2.Ping";
73730
- };
71511
+ /**
71512
+ * Converts this UserPowerUps to JSON.
71513
+ * @function toJSON
71514
+ * @memberof replit.goval.api.UserPowerUps
71515
+ * @instance
71516
+ * @returns {Object.<string,*>} JSON object
71517
+ */
71518
+ UserPowerUps.prototype.toJSON = function toJSON() {
71519
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
71520
+ };
73731
71521
 
73732
- return Ping;
73733
- })();
71522
+ /**
71523
+ * Gets the default type url for UserPowerUps
71524
+ * @function getTypeUrl
71525
+ * @memberof replit.goval.api.UserPowerUps
71526
+ * @static
71527
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
71528
+ * @returns {string} The default type url
71529
+ */
71530
+ UserPowerUps.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
71531
+ if (typeUrlPrefix === undefined) {
71532
+ typeUrlPrefix = "type.googleapis.com";
71533
+ }
71534
+ return typeUrlPrefix + "/replit.goval.api.UserPowerUps";
71535
+ };
73734
71536
 
73735
- return pid2;
71537
+ return UserPowerUps;
73736
71538
  })();
73737
71539
 
73738
71540
  return api;
@@ -75090,241 +72892,6 @@
75090
72892
  return FieldMask;
75091
72893
  })();
75092
72894
 
75093
- protobuf.Any = (function() {
75094
-
75095
- /**
75096
- * Properties of an Any.
75097
- * @memberof google.protobuf
75098
- * @interface IAny
75099
- * @property {string|null} [type_url] Any type_url
75100
- * @property {Uint8Array|null} [value] Any value
75101
- */
75102
-
75103
- /**
75104
- * Constructs a new Any.
75105
- * @memberof google.protobuf
75106
- * @classdesc Represents an Any.
75107
- * @constructor
75108
- * @param {google.protobuf.IAny=} [properties] Properties to set
75109
- */
75110
- function Any(properties) {
75111
- if (properties)
75112
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
75113
- if (properties[keys[i]] != null)
75114
- this[keys[i]] = properties[keys[i]];
75115
- }
75116
-
75117
- /**
75118
- * Any type_url.
75119
- * @member {string} type_url
75120
- * @memberof google.protobuf.Any
75121
- * @instance
75122
- */
75123
- Any.prototype.type_url = "";
75124
-
75125
- /**
75126
- * Any value.
75127
- * @member {Uint8Array} value
75128
- * @memberof google.protobuf.Any
75129
- * @instance
75130
- */
75131
- Any.prototype.value = $util.newBuffer([]);
75132
-
75133
- /**
75134
- * Creates a new Any instance using the specified properties.
75135
- * @function create
75136
- * @memberof google.protobuf.Any
75137
- * @static
75138
- * @param {google.protobuf.IAny=} [properties] Properties to set
75139
- * @returns {google.protobuf.Any} Any instance
75140
- */
75141
- Any.create = function create(properties) {
75142
- return Any.fromObject(properties);
75143
- };
75144
-
75145
- /**
75146
- * Encodes the specified Any message. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
75147
- * @function encode
75148
- * @memberof google.protobuf.Any
75149
- * @static
75150
- * @param {google.protobuf.Any} message Any message or plain object to encode
75151
- * @param {$protobuf.Writer} [writer] Writer to encode to
75152
- * @returns {$protobuf.Writer} Writer
75153
- */
75154
- Any.encode = function encode(message, writer) {
75155
- if (!writer)
75156
- writer = $Writer.create();
75157
- if (message.type_url != null && Object.hasOwnProperty.call(message, "type_url"))
75158
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.type_url);
75159
- if (message.value != null && Object.hasOwnProperty.call(message, "value"))
75160
- writer.uint32(/* id 2, wireType 2 =*/18).bytes(message.value);
75161
- return writer;
75162
- };
75163
-
75164
- /**
75165
- * Encodes the specified Any message, length delimited. Does not implicitly {@link google.protobuf.Any.verify|verify} messages.
75166
- * @function encodeDelimited
75167
- * @memberof google.protobuf.Any
75168
- * @static
75169
- * @param {google.protobuf.Any} message Any message or plain object to encode
75170
- * @param {$protobuf.Writer} [writer] Writer to encode to
75171
- * @returns {$protobuf.Writer} Writer
75172
- */
75173
- Any.encodeDelimited = function encodeDelimited(message, writer) {
75174
- return this.encode(message, writer).ldelim();
75175
- };
75176
-
75177
- /**
75178
- * Decodes an Any message from the specified reader or buffer.
75179
- * @function decode
75180
- * @memberof google.protobuf.Any
75181
- * @static
75182
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75183
- * @param {number} [length] Message length if known beforehand
75184
- * @returns {google.protobuf.Any} Any
75185
- * @throws {Error} If the payload is not a reader or valid buffer
75186
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
75187
- */
75188
- Any.decode = function decode(reader, length) {
75189
- if (!(reader instanceof $Reader))
75190
- reader = $Reader.create(reader);
75191
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Any();
75192
- while (reader.pos < end) {
75193
- var tag = reader.uint32();
75194
- switch (tag >>> 3) {
75195
- case 1: {
75196
- message.type_url = reader.string();
75197
- break;
75198
- }
75199
- case 2: {
75200
- message.value = reader.bytes();
75201
- break;
75202
- }
75203
- default:
75204
- reader.skipType(tag & 7);
75205
- break;
75206
- }
75207
- }
75208
- return message;
75209
- };
75210
-
75211
- /**
75212
- * Decodes an Any message from the specified reader or buffer, length delimited.
75213
- * @function decodeDelimited
75214
- * @memberof google.protobuf.Any
75215
- * @static
75216
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
75217
- * @returns {google.protobuf.Any} Any
75218
- * @throws {Error} If the payload is not a reader or valid buffer
75219
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
75220
- */
75221
- Any.decodeDelimited = function decodeDelimited(reader) {
75222
- if (!(reader instanceof $Reader))
75223
- reader = new $Reader(reader);
75224
- return this.decode(reader, reader.uint32());
75225
- };
75226
-
75227
- /**
75228
- * Verifies an Any message.
75229
- * @function verify
75230
- * @memberof google.protobuf.Any
75231
- * @static
75232
- * @param {Object.<string,*>} message Plain object to verify
75233
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
75234
- */
75235
- Any.verify = function verify(message) {
75236
- if (typeof message !== "object" || message === null)
75237
- return "object expected";
75238
- if (message.type_url != null && message.hasOwnProperty("type_url"))
75239
- if (!$util.isString(message.type_url))
75240
- return "type_url: string expected";
75241
- if (message.value != null && message.hasOwnProperty("value"))
75242
- if (!(message.value && typeof message.value.length === "number" || $util.isString(message.value)))
75243
- return "value: buffer expected";
75244
- return null;
75245
- };
75246
-
75247
- /**
75248
- * Creates an Any message from a plain object. Also converts values to their respective internal types.
75249
- * @function fromObject
75250
- * @memberof google.protobuf.Any
75251
- * @static
75252
- * @param {Object.<string,*>} object Plain object
75253
- * @returns {google.protobuf.Any} Any
75254
- */
75255
- Any.fromObject = function fromObject(object) {
75256
- if (object instanceof $root.google.protobuf.Any)
75257
- return object;
75258
- var message = new $root.google.protobuf.Any();
75259
- if (object.type_url != null)
75260
- message.type_url = String(object.type_url);
75261
- if (object.value != null)
75262
- if (typeof object.value === "string")
75263
- $util.base64.decode(object.value, message.value = $util.newBuffer($util.base64.length(object.value)), 0);
75264
- else if (object.value.length >= 0)
75265
- message.value = object.value;
75266
- return message;
75267
- };
75268
-
75269
- /**
75270
- * Creates a plain object from an Any message. Also converts values to other types if specified.
75271
- * @function toObject
75272
- * @memberof google.protobuf.Any
75273
- * @static
75274
- * @param {google.protobuf.Any} message Any
75275
- * @param {$protobuf.IConversionOptions} [options] Conversion options
75276
- * @returns {Object.<string,*>} Plain object
75277
- */
75278
- Any.toObject = function toObject(message, options) {
75279
- if (!options)
75280
- options = {};
75281
- var object = {};
75282
- if (options.defaults) {
75283
- object.type_url = "";
75284
- if (options.bytes === String)
75285
- object.value = "";
75286
- else {
75287
- object.value = [];
75288
- if (options.bytes !== Array)
75289
- object.value = $util.newBuffer(object.value);
75290
- }
75291
- }
75292
- if (message.type_url != null && message.hasOwnProperty("type_url"))
75293
- object.type_url = message.type_url;
75294
- if (message.value != null && message.hasOwnProperty("value"))
75295
- 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;
75296
- return object;
75297
- };
75298
-
75299
- /**
75300
- * Converts this Any to JSON.
75301
- * @function toJSON
75302
- * @memberof google.protobuf.Any
75303
- * @instance
75304
- * @returns {Object.<string,*>} JSON object
75305
- */
75306
- Any.prototype.toJSON = function toJSON() {
75307
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
75308
- };
75309
-
75310
- /**
75311
- * Gets the default type url for Any
75312
- * @function getTypeUrl
75313
- * @memberof google.protobuf.Any
75314
- * @static
75315
- * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
75316
- * @returns {string} The default type url
75317
- */
75318
- Any.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
75319
- if (typeUrlPrefix === undefined) {
75320
- typeUrlPrefix = "type.googleapis.com";
75321
- }
75322
- return typeUrlPrefix + "/google.protobuf.Any";
75323
- };
75324
-
75325
- return Any;
75326
- })();
75327
-
75328
72895
  return protobuf;
75329
72896
  })();
75330
72897