@replit/protocol 0.2.76 → 0.2.77

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,6 +71,7 @@
71
71
  * @property {string|null} [error] Command error
72
72
  * @property {string|null} [stderr] Command stderr
73
73
  * @property {string|null} [log] Command log
74
+ * @property {string|null} [record] Command record
74
75
  * @property {replit.goval.api.SaneTerm|replit.goval.api.ISaneTerm|null} [saneTerm] Command saneTerm
75
76
  * @property {replit.goval.api.ResizeTerm|replit.goval.api.IResizeTerm|null} [resizeTerm] Command resizeTerm
76
77
  * @property {replit.goval.api.State|null} [state] Command state
@@ -407,6 +408,14 @@
407
408
  */
408
409
  Command.prototype.log = null;
409
410
 
411
+ /**
412
+ * Command record.
413
+ * @member {string|null|undefined} record
414
+ * @memberof replit.goval.api.Command
415
+ * @instance
416
+ */
417
+ Command.prototype.record = null;
418
+
410
419
  /**
411
420
  * Command saneTerm.
412
421
  * @member {replit.goval.api.SaneTerm|null|undefined} saneTerm
@@ -1556,12 +1565,12 @@
1556
1565
 
1557
1566
  /**
1558
1567
  * Command body.
1559
- * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|undefined} body
1568
+ * @member {"openChan"|"openChanRes"|"closeChan"|"closeChanRes"|"containerState"|"portOpen"|"portClose"|"toast"|"protocolError"|"redirect"|"alwaysOn"|"runMain"|"clear"|"eval"|"result"|"input"|"output"|"error"|"stderr"|"log"|"record"|"saneTerm"|"resizeTerm"|"state"|"ok"|"persist"|"persistMirror"|"write"|"remove"|"move"|"tryRemove"|"mkdir"|"stat"|"statRes"|"transferStart"|"transferChunk"|"transferComplete"|"transferCancel"|"transfer"|"read"|"readdir"|"files"|"file"|"checkChanges"|"changedFiles"|"lintResults"|"runContainedTest"|"testResult"|"debuggerStart"|"debuggerStep"|"debuggerStatus"|"ensurePackages"|"ping"|"pong"|"hello"|"goodbye"|"proxyGoingAway"|"hint"|"connect"|"send"|"recv"|"disconnect"|"fileAuthReq"|"fileAuthRes"|"mutliFileAuthRes"|"listObjects"|"listObjectsResp"|"ot"|"otstatus"|"otLinkFile"|"otLinkFileResponse"|"otNewCursor"|"otDeleteCursor"|"otFetchRequest"|"otFetchResponse"|"otTransformSelectionRequest"|"otTransformSelectionResponse"|"flush"|"debug"|"startVCR"|"readVCR"|"VCRLog"|"auth"|"execInfo"|"subscribeFile"|"fileEvent"|"roster"|"join"|"part"|"openFile"|"fileOpened"|"followUser"|"unfollowUser"|"updateSessionTimestamp"|"sessionTimestampUpdated"|"exec"|"packageSearch"|"packageSearchResp"|"packageInfo"|"packageInfoResp"|"packageAdd"|"packageRemove"|"packageInstall"|"packageListSpecfile"|"packageListSpecfileResp"|"packageCacheSave"|"chatMessage"|"chatTyping"|"chatScrollback"|"fsSnapshot"|"fsSnapshotEvent"|"fsTakeLock"|"fsReleaseLock"|"hasCap"|"snapshotEvent"|"NoninteractiveFSChangeEvent"|"pid1Config"|"metrics"|"bootStatus"|"readMetaRequest"|"readMetaResponse"|"writeMetaRequest"|"writeMetaResponse"|"appendMetaRequest"|"appendMetaResponse"|"audio"|"pprofRequest"|"pprofResponse"|"audio2"|"PTYConfig"|"debugMain"|"debugState"|"debugMainReply"|"debugInput"|"debugOutput"|"debugStop"|"debugLeave"|"debugSessions"|"debugAddBreakpointRequest"|"debugUpdateBreakpointRequest"|"debugRemoveBreakpointRequest"|"debugBreakpointEvent"|"dotReplitGetRequest"|"dotReplitGetResponse"|"runConfigGetRequest"|"runConfigGetResponse"|"dotReplitUpdateRequest"|"dotReplitUpdateResponse"|"startLSP"|"firewallDenied"|"nixPackageAddRequest"|"nixPackageAddResponse"|"nixPackageRemoveRequest"|"nixPackageRemoveResponse"|"nixPackageListRequest"|"nixPackageListResponse"|"nixChannelsRequest"|"nixChannelsResponse"|"nixChannelLatestStableRequest"|"nixChannelLatestStableResponse"|"nixPackageSearchRequest"|"nixPackageSearchResponse"|undefined} body
1560
1569
  * @memberof replit.goval.api.Command
1561
1570
  * @instance
1562
1571
  */
1563
1572
  Object.defineProperty(Command.prototype, "body", {
1564
- get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse"]),
1573
+ get: $util.oneOfGetter($oneOfFields = ["openChan", "openChanRes", "closeChan", "closeChanRes", "containerState", "portOpen", "portClose", "toast", "protocolError", "redirect", "alwaysOn", "runMain", "clear", "eval", "result", "input", "output", "error", "stderr", "log", "record", "saneTerm", "resizeTerm", "state", "ok", "persist", "persistMirror", "write", "remove", "move", "tryRemove", "mkdir", "stat", "statRes", "transferStart", "transferChunk", "transferComplete", "transferCancel", "transfer", "read", "readdir", "files", "file", "checkChanges", "changedFiles", "lintResults", "runContainedTest", "testResult", "debuggerStart", "debuggerStep", "debuggerStatus", "ensurePackages", "ping", "pong", "hello", "goodbye", "proxyGoingAway", "hint", "connect", "send", "recv", "disconnect", "fileAuthReq", "fileAuthRes", "mutliFileAuthRes", "listObjects", "listObjectsResp", "ot", "otstatus", "otLinkFile", "otLinkFileResponse", "otNewCursor", "otDeleteCursor", "otFetchRequest", "otFetchResponse", "otTransformSelectionRequest", "otTransformSelectionResponse", "flush", "debug", "startVCR", "readVCR", "VCRLog", "auth", "execInfo", "subscribeFile", "fileEvent", "roster", "join", "part", "openFile", "fileOpened", "followUser", "unfollowUser", "updateSessionTimestamp", "sessionTimestampUpdated", "exec", "packageSearch", "packageSearchResp", "packageInfo", "packageInfoResp", "packageAdd", "packageRemove", "packageInstall", "packageListSpecfile", "packageListSpecfileResp", "packageCacheSave", "chatMessage", "chatTyping", "chatScrollback", "fsSnapshot", "fsSnapshotEvent", "fsTakeLock", "fsReleaseLock", "hasCap", "snapshotEvent", "NoninteractiveFSChangeEvent", "pid1Config", "metrics", "bootStatus", "readMetaRequest", "readMetaResponse", "writeMetaRequest", "writeMetaResponse", "appendMetaRequest", "appendMetaResponse", "audio", "pprofRequest", "pprofResponse", "audio2", "PTYConfig", "debugMain", "debugState", "debugMainReply", "debugInput", "debugOutput", "debugStop", "debugLeave", "debugSessions", "debugAddBreakpointRequest", "debugUpdateBreakpointRequest", "debugRemoveBreakpointRequest", "debugBreakpointEvent", "dotReplitGetRequest", "dotReplitGetResponse", "runConfigGetRequest", "runConfigGetResponse", "dotReplitUpdateRequest", "dotReplitUpdateResponse", "startLSP", "firewallDenied", "nixPackageAddRequest", "nixPackageAddResponse", "nixPackageRemoveRequest", "nixPackageRemoveResponse", "nixPackageListRequest", "nixPackageListResponse", "nixChannelsRequest", "nixChannelsResponse", "nixChannelLatestStableRequest", "nixChannelLatestStableResponse", "nixPackageSearchRequest", "nixPackageSearchResponse"]),
1565
1574
  set: $util.oneOfSetter($oneOfFields)
1566
1575
  });
1567
1576
 
@@ -1915,6 +1924,8 @@
1915
1924
  $root.replit.goval.api.NixPackageSearchRequest.encode(message.nixPackageSearchRequest, writer.uint32(/* id 420, wireType 2 =*/3362).fork()).ldelim();
1916
1925
  if (message.nixPackageSearchResponse != null && Object.hasOwnProperty.call(message, "nixPackageSearchResponse"))
1917
1926
  $root.replit.goval.api.NixPackageSearchResponse.encode(message.nixPackageSearchResponse, writer.uint32(/* id 421, wireType 2 =*/3370).fork()).ldelim();
1927
+ if (message.record != null && Object.hasOwnProperty.call(message, "record"))
1928
+ writer.uint32(/* id 422, wireType 2 =*/3378).string(message.record);
1918
1929
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
1919
1930
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
1920
1931
  if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
@@ -2020,6 +2031,9 @@
2020
2031
  case 47:
2021
2032
  message.log = reader.string();
2022
2033
  break;
2034
+ case 422:
2035
+ message.record = reader.string();
2036
+ break;
2023
2037
  case 26:
2024
2038
  message.saneTerm = $root.replit.goval.api.SaneTerm.decode(reader, reader.uint32());
2025
2039
  break;
@@ -2687,6 +2701,13 @@
2687
2701
  if (!$util.isString(message.log))
2688
2702
  return "log: string expected";
2689
2703
  }
2704
+ if (message.record != null && message.hasOwnProperty("record")) {
2705
+ if (properties.body === 1)
2706
+ return "body: multiple values";
2707
+ properties.body = 1;
2708
+ if (!$util.isString(message.record))
2709
+ return "record: string expected";
2710
+ }
2690
2711
  if (message.saneTerm != null && message.hasOwnProperty("saneTerm")) {
2691
2712
  if (properties.body === 1)
2692
2713
  return "body: multiple values";
@@ -4199,6 +4220,8 @@
4199
4220
  message.stderr = String(object.stderr);
4200
4221
  if (object.log != null)
4201
4222
  message.log = String(object.log);
4223
+ if (object.record != null)
4224
+ message.record = String(object.record);
4202
4225
  if (object.saneTerm != null) {
4203
4226
  if (typeof object.saneTerm !== "object")
4204
4227
  throw TypeError(".replit.goval.api.Command.saneTerm: object expected");
@@ -5741,6 +5764,11 @@
5741
5764
  if (options.oneofs)
5742
5765
  object.body = "nixPackageSearchResponse";
5743
5766
  }
5767
+ if (message.record != null && message.hasOwnProperty("record")) {
5768
+ object.record = message.record;
5769
+ if (options.oneofs)
5770
+ object.body = "record";
5771
+ }
5744
5772
  if (message.ref != null && message.hasOwnProperty("ref"))
5745
5773
  object.ref = message.ref;
5746
5774
  var keys2;
@@ -44640,6 +44668,264 @@
44640
44668
  return FirewallDenied;
44641
44669
  })();
44642
44670
 
44671
+ api.ReplLogMessage = (function() {
44672
+
44673
+ /**
44674
+ * Properties of a ReplLogMessage.
44675
+ * @memberof replit.goval.api
44676
+ * @interface IReplLogMessage
44677
+ * @property {google.protobuf.Timestamp|google.protobuf.ITimestamp|null} [timestamp] ReplLogMessage timestamp
44678
+ * @property {string|null} [replId] ReplLogMessage replId
44679
+ * @property {string|null} [logLine] ReplLogMessage logLine
44680
+ * @property {string|null} [userName] ReplLogMessage userName
44681
+ */
44682
+
44683
+ /**
44684
+ * Constructs a new ReplLogMessage.
44685
+ * @memberof replit.goval.api
44686
+ * @classdesc Represents a ReplLogMessage.
44687
+ * @constructor
44688
+ * @param {replit.goval.api.IReplLogMessage=} [properties] Properties to set
44689
+ */
44690
+ function ReplLogMessage(properties) {
44691
+ if (properties)
44692
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
44693
+ if (properties[keys[i]] != null)
44694
+ this[keys[i]] = properties[keys[i]];
44695
+ }
44696
+
44697
+ /**
44698
+ * ReplLogMessage timestamp.
44699
+ * @member {google.protobuf.Timestamp|null|undefined} timestamp
44700
+ * @memberof replit.goval.api.ReplLogMessage
44701
+ * @instance
44702
+ */
44703
+ ReplLogMessage.prototype.timestamp = null;
44704
+
44705
+ /**
44706
+ * ReplLogMessage replId.
44707
+ * @member {string} replId
44708
+ * @memberof replit.goval.api.ReplLogMessage
44709
+ * @instance
44710
+ */
44711
+ ReplLogMessage.prototype.replId = "";
44712
+
44713
+ /**
44714
+ * ReplLogMessage logLine.
44715
+ * @member {string} logLine
44716
+ * @memberof replit.goval.api.ReplLogMessage
44717
+ * @instance
44718
+ */
44719
+ ReplLogMessage.prototype.logLine = "";
44720
+
44721
+ /**
44722
+ * ReplLogMessage userName.
44723
+ * @member {string} userName
44724
+ * @memberof replit.goval.api.ReplLogMessage
44725
+ * @instance
44726
+ */
44727
+ ReplLogMessage.prototype.userName = "";
44728
+
44729
+ /**
44730
+ * Creates a new ReplLogMessage instance using the specified properties.
44731
+ * @function create
44732
+ * @memberof replit.goval.api.ReplLogMessage
44733
+ * @static
44734
+ * @param {replit.goval.api.IReplLogMessage=} [properties] Properties to set
44735
+ * @returns {replit.goval.api.ReplLogMessage} ReplLogMessage instance
44736
+ */
44737
+ ReplLogMessage.create = function create(properties) {
44738
+ return ReplLogMessage.fromObject(properties);
44739
+ };
44740
+
44741
+ /**
44742
+ * Encodes the specified ReplLogMessage message. Does not implicitly {@link replit.goval.api.ReplLogMessage.verify|verify} messages.
44743
+ * @function encode
44744
+ * @memberof replit.goval.api.ReplLogMessage
44745
+ * @static
44746
+ * @param {replit.goval.api.ReplLogMessage} message ReplLogMessage message or plain object to encode
44747
+ * @param {$protobuf.Writer} [writer] Writer to encode to
44748
+ * @returns {$protobuf.Writer} Writer
44749
+ */
44750
+ ReplLogMessage.encode = function encode(message, writer) {
44751
+ if (!writer)
44752
+ writer = $Writer.create();
44753
+ if (message.timestamp != null && Object.hasOwnProperty.call(message, "timestamp"))
44754
+ $root.google.protobuf.Timestamp.encode(message.timestamp, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
44755
+ if (message.replId != null && Object.hasOwnProperty.call(message, "replId"))
44756
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.replId);
44757
+ if (message.logLine != null && Object.hasOwnProperty.call(message, "logLine"))
44758
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.logLine);
44759
+ if (message.userName != null && Object.hasOwnProperty.call(message, "userName"))
44760
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.userName);
44761
+ return writer;
44762
+ };
44763
+
44764
+ /**
44765
+ * Encodes the specified ReplLogMessage message, length delimited. Does not implicitly {@link replit.goval.api.ReplLogMessage.verify|verify} messages.
44766
+ * @function encodeDelimited
44767
+ * @memberof replit.goval.api.ReplLogMessage
44768
+ * @static
44769
+ * @param {replit.goval.api.ReplLogMessage} message ReplLogMessage message or plain object to encode
44770
+ * @param {$protobuf.Writer} [writer] Writer to encode to
44771
+ * @returns {$protobuf.Writer} Writer
44772
+ */
44773
+ ReplLogMessage.encodeDelimited = function encodeDelimited(message, writer) {
44774
+ return this.encode(message, writer).ldelim();
44775
+ };
44776
+
44777
+ /**
44778
+ * Decodes a ReplLogMessage message from the specified reader or buffer.
44779
+ * @function decode
44780
+ * @memberof replit.goval.api.ReplLogMessage
44781
+ * @static
44782
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
44783
+ * @param {number} [length] Message length if known beforehand
44784
+ * @returns {replit.goval.api.ReplLogMessage} ReplLogMessage
44785
+ * @throws {Error} If the payload is not a reader or valid buffer
44786
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
44787
+ */
44788
+ ReplLogMessage.decode = function decode(reader, length) {
44789
+ if (!(reader instanceof $Reader))
44790
+ reader = $Reader.create(reader);
44791
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.ReplLogMessage();
44792
+ while (reader.pos < end) {
44793
+ var tag = reader.uint32();
44794
+ switch (tag >>> 3) {
44795
+ case 1:
44796
+ message.timestamp = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
44797
+ break;
44798
+ case 2:
44799
+ message.replId = reader.string();
44800
+ break;
44801
+ case 3:
44802
+ message.logLine = reader.string();
44803
+ break;
44804
+ case 4:
44805
+ message.userName = reader.string();
44806
+ break;
44807
+ default:
44808
+ reader.skipType(tag & 7);
44809
+ break;
44810
+ }
44811
+ }
44812
+ return message;
44813
+ };
44814
+
44815
+ /**
44816
+ * Decodes a ReplLogMessage message from the specified reader or buffer, length delimited.
44817
+ * @function decodeDelimited
44818
+ * @memberof replit.goval.api.ReplLogMessage
44819
+ * @static
44820
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
44821
+ * @returns {replit.goval.api.ReplLogMessage} ReplLogMessage
44822
+ * @throws {Error} If the payload is not a reader or valid buffer
44823
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
44824
+ */
44825
+ ReplLogMessage.decodeDelimited = function decodeDelimited(reader) {
44826
+ if (!(reader instanceof $Reader))
44827
+ reader = new $Reader(reader);
44828
+ return this.decode(reader, reader.uint32());
44829
+ };
44830
+
44831
+ /**
44832
+ * Verifies a ReplLogMessage message.
44833
+ * @function verify
44834
+ * @memberof replit.goval.api.ReplLogMessage
44835
+ * @static
44836
+ * @param {Object.<string,*>} message Plain object to verify
44837
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
44838
+ */
44839
+ ReplLogMessage.verify = function verify(message) {
44840
+ if (typeof message !== "object" || message === null)
44841
+ return "object expected";
44842
+ if (message.timestamp != null && message.hasOwnProperty("timestamp")) {
44843
+ var error = $root.google.protobuf.Timestamp.verify(message.timestamp);
44844
+ if (error)
44845
+ return "timestamp." + error;
44846
+ }
44847
+ if (message.replId != null && message.hasOwnProperty("replId"))
44848
+ if (!$util.isString(message.replId))
44849
+ return "replId: string expected";
44850
+ if (message.logLine != null && message.hasOwnProperty("logLine"))
44851
+ if (!$util.isString(message.logLine))
44852
+ return "logLine: string expected";
44853
+ if (message.userName != null && message.hasOwnProperty("userName"))
44854
+ if (!$util.isString(message.userName))
44855
+ return "userName: string expected";
44856
+ return null;
44857
+ };
44858
+
44859
+ /**
44860
+ * Creates a ReplLogMessage message from a plain object. Also converts values to their respective internal types.
44861
+ * @function fromObject
44862
+ * @memberof replit.goval.api.ReplLogMessage
44863
+ * @static
44864
+ * @param {Object.<string,*>} object Plain object
44865
+ * @returns {replit.goval.api.ReplLogMessage} ReplLogMessage
44866
+ */
44867
+ ReplLogMessage.fromObject = function fromObject(object) {
44868
+ if (object instanceof $root.replit.goval.api.ReplLogMessage)
44869
+ return object;
44870
+ var message = new $root.replit.goval.api.ReplLogMessage();
44871
+ if (object.timestamp != null) {
44872
+ if (typeof object.timestamp !== "object")
44873
+ throw TypeError(".replit.goval.api.ReplLogMessage.timestamp: object expected");
44874
+ message.timestamp = $root.google.protobuf.Timestamp.fromObject(object.timestamp);
44875
+ }
44876
+ if (object.replId != null)
44877
+ message.replId = String(object.replId);
44878
+ if (object.logLine != null)
44879
+ message.logLine = String(object.logLine);
44880
+ if (object.userName != null)
44881
+ message.userName = String(object.userName);
44882
+ return message;
44883
+ };
44884
+
44885
+ /**
44886
+ * Creates a plain object from a ReplLogMessage message. Also converts values to other types if specified.
44887
+ * @function toObject
44888
+ * @memberof replit.goval.api.ReplLogMessage
44889
+ * @static
44890
+ * @param {replit.goval.api.ReplLogMessage} message ReplLogMessage
44891
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
44892
+ * @returns {Object.<string,*>} Plain object
44893
+ */
44894
+ ReplLogMessage.toObject = function toObject(message, options) {
44895
+ if (!options)
44896
+ options = {};
44897
+ var object = {};
44898
+ if (options.defaults) {
44899
+ object.timestamp = null;
44900
+ object.replId = "";
44901
+ object.logLine = "";
44902
+ object.userName = "";
44903
+ }
44904
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
44905
+ object.timestamp = $root.google.protobuf.Timestamp.toObject(message.timestamp, options);
44906
+ if (message.replId != null && message.hasOwnProperty("replId"))
44907
+ object.replId = message.replId;
44908
+ if (message.logLine != null && message.hasOwnProperty("logLine"))
44909
+ object.logLine = message.logLine;
44910
+ if (message.userName != null && message.hasOwnProperty("userName"))
44911
+ object.userName = message.userName;
44912
+ return object;
44913
+ };
44914
+
44915
+ /**
44916
+ * Converts this ReplLogMessage to JSON.
44917
+ * @function toJSON
44918
+ * @memberof replit.goval.api.ReplLogMessage
44919
+ * @instance
44920
+ * @returns {Object.<string,*>} JSON object
44921
+ */
44922
+ ReplLogMessage.prototype.toJSON = function toJSON() {
44923
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
44924
+ };
44925
+
44926
+ return ReplLogMessage;
44927
+ })();
44928
+
44643
44929
  api.ReplToken = (function() {
44644
44930
 
44645
44931
  /**
@@ -49716,6 +50002,7 @@
49716
50002
  * @memberof replit.goval.api
49717
50003
  * @interface IGovalCommand
49718
50004
  * @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] GovalCommand updateMetadata
50005
+ * @property {replit.goval.api.PartialUpdateMetadata|replit.goval.api.IPartialUpdateMetadata|null} [partialUpdateMetadata] GovalCommand partialUpdateMetadata
49719
50006
  */
49720
50007
 
49721
50008
  /**
@@ -49740,17 +50027,25 @@
49740
50027
  */
49741
50028
  GovalCommand.prototype.updateMetadata = null;
49742
50029
 
50030
+ /**
50031
+ * GovalCommand partialUpdateMetadata.
50032
+ * @member {replit.goval.api.PartialUpdateMetadata|null|undefined} partialUpdateMetadata
50033
+ * @memberof replit.goval.api.GovalCommand
50034
+ * @instance
50035
+ */
50036
+ GovalCommand.prototype.partialUpdateMetadata = null;
50037
+
49743
50038
  // OneOf field names bound to virtual getters and setters
49744
50039
  var $oneOfFields;
49745
50040
 
49746
50041
  /**
49747
50042
  * GovalCommand command.
49748
- * @member {"updateMetadata"|undefined} command
50043
+ * @member {"updateMetadata"|"partialUpdateMetadata"|undefined} command
49749
50044
  * @memberof replit.goval.api.GovalCommand
49750
50045
  * @instance
49751
50046
  */
49752
50047
  Object.defineProperty(GovalCommand.prototype, "command", {
49753
- get: $util.oneOfGetter($oneOfFields = ["updateMetadata"]),
50048
+ get: $util.oneOfGetter($oneOfFields = ["updateMetadata", "partialUpdateMetadata"]),
49754
50049
  set: $util.oneOfSetter($oneOfFields)
49755
50050
  });
49756
50051
 
@@ -49780,6 +50075,8 @@
49780
50075
  writer = $Writer.create();
49781
50076
  if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
49782
50077
  $root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
50078
+ if (message.partialUpdateMetadata != null && Object.hasOwnProperty.call(message, "partialUpdateMetadata"))
50079
+ $root.replit.goval.api.PartialUpdateMetadata.encode(message.partialUpdateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
49783
50080
  return writer;
49784
50081
  };
49785
50082
 
@@ -49817,6 +50114,9 @@
49817
50114
  case 1:
49818
50115
  message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
49819
50116
  break;
50117
+ case 2:
50118
+ message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.decode(reader, reader.uint32());
50119
+ break;
49820
50120
  default:
49821
50121
  reader.skipType(tag & 7);
49822
50122
  break;
@@ -49861,6 +50161,16 @@
49861
50161
  return "updateMetadata." + error;
49862
50162
  }
49863
50163
  }
50164
+ if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
50165
+ if (properties.command === 1)
50166
+ return "command: multiple values";
50167
+ properties.command = 1;
50168
+ {
50169
+ var error = $root.replit.goval.api.PartialUpdateMetadata.verify(message.partialUpdateMetadata);
50170
+ if (error)
50171
+ return "partialUpdateMetadata." + error;
50172
+ }
50173
+ }
49864
50174
  return null;
49865
50175
  };
49866
50176
 
@@ -49881,6 +50191,11 @@
49881
50191
  throw TypeError(".replit.goval.api.GovalCommand.updateMetadata: object expected");
49882
50192
  message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
49883
50193
  }
50194
+ if (object.partialUpdateMetadata != null) {
50195
+ if (typeof object.partialUpdateMetadata !== "object")
50196
+ throw TypeError(".replit.goval.api.GovalCommand.partialUpdateMetadata: object expected");
50197
+ message.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.fromObject(object.partialUpdateMetadata);
50198
+ }
49884
50199
  return message;
49885
50200
  };
49886
50201
 
@@ -49902,6 +50217,11 @@
49902
50217
  if (options.oneofs)
49903
50218
  object.command = "updateMetadata";
49904
50219
  }
50220
+ if (message.partialUpdateMetadata != null && message.hasOwnProperty("partialUpdateMetadata")) {
50221
+ object.partialUpdateMetadata = $root.replit.goval.api.PartialUpdateMetadata.toObject(message.partialUpdateMetadata, options);
50222
+ if (options.oneofs)
50223
+ object.command = "partialUpdateMetadata";
50224
+ }
49905
50225
  return object;
49906
50226
  };
49907
50227
 
@@ -49919,6 +50239,225 @@
49919
50239
  return GovalCommand;
49920
50240
  })();
49921
50241
 
50242
+ api.PartialUpdateMetadata = (function() {
50243
+
50244
+ /**
50245
+ * Properties of a PartialUpdateMetadata.
50246
+ * @memberof replit.goval.api
50247
+ * @interface IPartialUpdateMetadata
50248
+ * @property {google.protobuf.FieldMask|google.protobuf.IFieldMask|null} [fieldMask] PartialUpdateMetadata fieldMask
50249
+ * @property {replit.goval.api.repl.Metadata|replit.goval.api.repl.IMetadata|null} [updateMetadata] PartialUpdateMetadata updateMetadata
50250
+ */
50251
+
50252
+ /**
50253
+ * Constructs a new PartialUpdateMetadata.
50254
+ * @memberof replit.goval.api
50255
+ * @classdesc Represents a PartialUpdateMetadata.
50256
+ * @constructor
50257
+ * @param {replit.goval.api.IPartialUpdateMetadata=} [properties] Properties to set
50258
+ */
50259
+ function PartialUpdateMetadata(properties) {
50260
+ if (properties)
50261
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
50262
+ if (properties[keys[i]] != null)
50263
+ this[keys[i]] = properties[keys[i]];
50264
+ }
50265
+
50266
+ /**
50267
+ * PartialUpdateMetadata fieldMask.
50268
+ * @member {google.protobuf.FieldMask|null|undefined} fieldMask
50269
+ * @memberof replit.goval.api.PartialUpdateMetadata
50270
+ * @instance
50271
+ */
50272
+ PartialUpdateMetadata.prototype.fieldMask = null;
50273
+
50274
+ /**
50275
+ * PartialUpdateMetadata updateMetadata.
50276
+ * @member {replit.goval.api.repl.Metadata|null|undefined} updateMetadata
50277
+ * @memberof replit.goval.api.PartialUpdateMetadata
50278
+ * @instance
50279
+ */
50280
+ PartialUpdateMetadata.prototype.updateMetadata = null;
50281
+
50282
+ /**
50283
+ * Creates a new PartialUpdateMetadata instance using the specified properties.
50284
+ * @function create
50285
+ * @memberof replit.goval.api.PartialUpdateMetadata
50286
+ * @static
50287
+ * @param {replit.goval.api.IPartialUpdateMetadata=} [properties] Properties to set
50288
+ * @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata instance
50289
+ */
50290
+ PartialUpdateMetadata.create = function create(properties) {
50291
+ return PartialUpdateMetadata.fromObject(properties);
50292
+ };
50293
+
50294
+ /**
50295
+ * Encodes the specified PartialUpdateMetadata message. Does not implicitly {@link replit.goval.api.PartialUpdateMetadata.verify|verify} messages.
50296
+ * @function encode
50297
+ * @memberof replit.goval.api.PartialUpdateMetadata
50298
+ * @static
50299
+ * @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
50300
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50301
+ * @returns {$protobuf.Writer} Writer
50302
+ */
50303
+ PartialUpdateMetadata.encode = function encode(message, writer) {
50304
+ if (!writer)
50305
+ writer = $Writer.create();
50306
+ if (message.fieldMask != null && Object.hasOwnProperty.call(message, "fieldMask"))
50307
+ $root.google.protobuf.FieldMask.encode(message.fieldMask, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
50308
+ if (message.updateMetadata != null && Object.hasOwnProperty.call(message, "updateMetadata"))
50309
+ $root.replit.goval.api.repl.Metadata.encode(message.updateMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
50310
+ return writer;
50311
+ };
50312
+
50313
+ /**
50314
+ * Encodes the specified PartialUpdateMetadata message, length delimited. Does not implicitly {@link replit.goval.api.PartialUpdateMetadata.verify|verify} messages.
50315
+ * @function encodeDelimited
50316
+ * @memberof replit.goval.api.PartialUpdateMetadata
50317
+ * @static
50318
+ * @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata message or plain object to encode
50319
+ * @param {$protobuf.Writer} [writer] Writer to encode to
50320
+ * @returns {$protobuf.Writer} Writer
50321
+ */
50322
+ PartialUpdateMetadata.encodeDelimited = function encodeDelimited(message, writer) {
50323
+ return this.encode(message, writer).ldelim();
50324
+ };
50325
+
50326
+ /**
50327
+ * Decodes a PartialUpdateMetadata message from the specified reader or buffer.
50328
+ * @function decode
50329
+ * @memberof replit.goval.api.PartialUpdateMetadata
50330
+ * @static
50331
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50332
+ * @param {number} [length] Message length if known beforehand
50333
+ * @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
50334
+ * @throws {Error} If the payload is not a reader or valid buffer
50335
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50336
+ */
50337
+ PartialUpdateMetadata.decode = function decode(reader, length) {
50338
+ if (!(reader instanceof $Reader))
50339
+ reader = $Reader.create(reader);
50340
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.replit.goval.api.PartialUpdateMetadata();
50341
+ while (reader.pos < end) {
50342
+ var tag = reader.uint32();
50343
+ switch (tag >>> 3) {
50344
+ case 1:
50345
+ message.fieldMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32());
50346
+ break;
50347
+ case 2:
50348
+ message.updateMetadata = $root.replit.goval.api.repl.Metadata.decode(reader, reader.uint32());
50349
+ break;
50350
+ default:
50351
+ reader.skipType(tag & 7);
50352
+ break;
50353
+ }
50354
+ }
50355
+ return message;
50356
+ };
50357
+
50358
+ /**
50359
+ * Decodes a PartialUpdateMetadata message from the specified reader or buffer, length delimited.
50360
+ * @function decodeDelimited
50361
+ * @memberof replit.goval.api.PartialUpdateMetadata
50362
+ * @static
50363
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
50364
+ * @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
50365
+ * @throws {Error} If the payload is not a reader or valid buffer
50366
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
50367
+ */
50368
+ PartialUpdateMetadata.decodeDelimited = function decodeDelimited(reader) {
50369
+ if (!(reader instanceof $Reader))
50370
+ reader = new $Reader(reader);
50371
+ return this.decode(reader, reader.uint32());
50372
+ };
50373
+
50374
+ /**
50375
+ * Verifies a PartialUpdateMetadata message.
50376
+ * @function verify
50377
+ * @memberof replit.goval.api.PartialUpdateMetadata
50378
+ * @static
50379
+ * @param {Object.<string,*>} message Plain object to verify
50380
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
50381
+ */
50382
+ PartialUpdateMetadata.verify = function verify(message) {
50383
+ if (typeof message !== "object" || message === null)
50384
+ return "object expected";
50385
+ if (message.fieldMask != null && message.hasOwnProperty("fieldMask")) {
50386
+ var error = $root.google.protobuf.FieldMask.verify(message.fieldMask);
50387
+ if (error)
50388
+ return "fieldMask." + error;
50389
+ }
50390
+ if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata")) {
50391
+ var error = $root.replit.goval.api.repl.Metadata.verify(message.updateMetadata);
50392
+ if (error)
50393
+ return "updateMetadata." + error;
50394
+ }
50395
+ return null;
50396
+ };
50397
+
50398
+ /**
50399
+ * Creates a PartialUpdateMetadata message from a plain object. Also converts values to their respective internal types.
50400
+ * @function fromObject
50401
+ * @memberof replit.goval.api.PartialUpdateMetadata
50402
+ * @static
50403
+ * @param {Object.<string,*>} object Plain object
50404
+ * @returns {replit.goval.api.PartialUpdateMetadata} PartialUpdateMetadata
50405
+ */
50406
+ PartialUpdateMetadata.fromObject = function fromObject(object) {
50407
+ if (object instanceof $root.replit.goval.api.PartialUpdateMetadata)
50408
+ return object;
50409
+ var message = new $root.replit.goval.api.PartialUpdateMetadata();
50410
+ if (object.fieldMask != null) {
50411
+ if (typeof object.fieldMask !== "object")
50412
+ throw TypeError(".replit.goval.api.PartialUpdateMetadata.fieldMask: object expected");
50413
+ message.fieldMask = $root.google.protobuf.FieldMask.fromObject(object.fieldMask);
50414
+ }
50415
+ if (object.updateMetadata != null) {
50416
+ if (typeof object.updateMetadata !== "object")
50417
+ throw TypeError(".replit.goval.api.PartialUpdateMetadata.updateMetadata: object expected");
50418
+ message.updateMetadata = $root.replit.goval.api.repl.Metadata.fromObject(object.updateMetadata);
50419
+ }
50420
+ return message;
50421
+ };
50422
+
50423
+ /**
50424
+ * Creates a plain object from a PartialUpdateMetadata message. Also converts values to other types if specified.
50425
+ * @function toObject
50426
+ * @memberof replit.goval.api.PartialUpdateMetadata
50427
+ * @static
50428
+ * @param {replit.goval.api.PartialUpdateMetadata} message PartialUpdateMetadata
50429
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
50430
+ * @returns {Object.<string,*>} Plain object
50431
+ */
50432
+ PartialUpdateMetadata.toObject = function toObject(message, options) {
50433
+ if (!options)
50434
+ options = {};
50435
+ var object = {};
50436
+ if (options.defaults) {
50437
+ object.fieldMask = null;
50438
+ object.updateMetadata = null;
50439
+ }
50440
+ if (message.fieldMask != null && message.hasOwnProperty("fieldMask"))
50441
+ object.fieldMask = $root.google.protobuf.FieldMask.toObject(message.fieldMask, options);
50442
+ if (message.updateMetadata != null && message.hasOwnProperty("updateMetadata"))
50443
+ object.updateMetadata = $root.replit.goval.api.repl.Metadata.toObject(message.updateMetadata, options);
50444
+ return object;
50445
+ };
50446
+
50447
+ /**
50448
+ * Converts this PartialUpdateMetadata to JSON.
50449
+ * @function toJSON
50450
+ * @memberof replit.goval.api.PartialUpdateMetadata
50451
+ * @instance
50452
+ * @returns {Object.<string,*>} JSON object
50453
+ */
50454
+ PartialUpdateMetadata.prototype.toJSON = function toJSON() {
50455
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
50456
+ };
50457
+
50458
+ return PartialUpdateMetadata;
50459
+ })();
50460
+
49922
50461
  api.Restore = (function() {
49923
50462
 
49924
50463
  /**
@@ -53091,6 +53630,208 @@
53091
53630
  return ListValue;
53092
53631
  })();
53093
53632
 
53633
+ protobuf.FieldMask = (function() {
53634
+
53635
+ /**
53636
+ * Properties of a FieldMask.
53637
+ * @memberof google.protobuf
53638
+ * @interface IFieldMask
53639
+ * @property {Array.<string>|null} [paths] FieldMask paths
53640
+ */
53641
+
53642
+ /**
53643
+ * Constructs a new FieldMask.
53644
+ * @memberof google.protobuf
53645
+ * @classdesc Represents a FieldMask.
53646
+ * @constructor
53647
+ * @param {google.protobuf.IFieldMask=} [properties] Properties to set
53648
+ */
53649
+ function FieldMask(properties) {
53650
+ this.paths = [];
53651
+ if (properties)
53652
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
53653
+ if (properties[keys[i]] != null)
53654
+ this[keys[i]] = properties[keys[i]];
53655
+ }
53656
+
53657
+ /**
53658
+ * FieldMask paths.
53659
+ * @member {Array.<string>} paths
53660
+ * @memberof google.protobuf.FieldMask
53661
+ * @instance
53662
+ */
53663
+ FieldMask.prototype.paths = $util.emptyArray;
53664
+
53665
+ /**
53666
+ * Creates a new FieldMask instance using the specified properties.
53667
+ * @function create
53668
+ * @memberof google.protobuf.FieldMask
53669
+ * @static
53670
+ * @param {google.protobuf.IFieldMask=} [properties] Properties to set
53671
+ * @returns {google.protobuf.FieldMask} FieldMask instance
53672
+ */
53673
+ FieldMask.create = function create(properties) {
53674
+ return FieldMask.fromObject(properties);
53675
+ };
53676
+
53677
+ /**
53678
+ * Encodes the specified FieldMask message. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
53679
+ * @function encode
53680
+ * @memberof google.protobuf.FieldMask
53681
+ * @static
53682
+ * @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
53683
+ * @param {$protobuf.Writer} [writer] Writer to encode to
53684
+ * @returns {$protobuf.Writer} Writer
53685
+ */
53686
+ FieldMask.encode = function encode(message, writer) {
53687
+ if (!writer)
53688
+ writer = $Writer.create();
53689
+ if (message.paths != null && message.paths.length)
53690
+ for (var i = 0; i < message.paths.length; ++i)
53691
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.paths[i]);
53692
+ return writer;
53693
+ };
53694
+
53695
+ /**
53696
+ * Encodes the specified FieldMask message, length delimited. Does not implicitly {@link google.protobuf.FieldMask.verify|verify} messages.
53697
+ * @function encodeDelimited
53698
+ * @memberof google.protobuf.FieldMask
53699
+ * @static
53700
+ * @param {google.protobuf.FieldMask} message FieldMask message or plain object to encode
53701
+ * @param {$protobuf.Writer} [writer] Writer to encode to
53702
+ * @returns {$protobuf.Writer} Writer
53703
+ */
53704
+ FieldMask.encodeDelimited = function encodeDelimited(message, writer) {
53705
+ return this.encode(message, writer).ldelim();
53706
+ };
53707
+
53708
+ /**
53709
+ * Decodes a FieldMask message from the specified reader or buffer.
53710
+ * @function decode
53711
+ * @memberof google.protobuf.FieldMask
53712
+ * @static
53713
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
53714
+ * @param {number} [length] Message length if known beforehand
53715
+ * @returns {google.protobuf.FieldMask} FieldMask
53716
+ * @throws {Error} If the payload is not a reader or valid buffer
53717
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
53718
+ */
53719
+ FieldMask.decode = function decode(reader, length) {
53720
+ if (!(reader instanceof $Reader))
53721
+ reader = $Reader.create(reader);
53722
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.FieldMask();
53723
+ while (reader.pos < end) {
53724
+ var tag = reader.uint32();
53725
+ switch (tag >>> 3) {
53726
+ case 1:
53727
+ if (!(message.paths && message.paths.length))
53728
+ message.paths = [];
53729
+ message.paths.push(reader.string());
53730
+ break;
53731
+ default:
53732
+ reader.skipType(tag & 7);
53733
+ break;
53734
+ }
53735
+ }
53736
+ return message;
53737
+ };
53738
+
53739
+ /**
53740
+ * Decodes a FieldMask message from the specified reader or buffer, length delimited.
53741
+ * @function decodeDelimited
53742
+ * @memberof google.protobuf.FieldMask
53743
+ * @static
53744
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
53745
+ * @returns {google.protobuf.FieldMask} FieldMask
53746
+ * @throws {Error} If the payload is not a reader or valid buffer
53747
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
53748
+ */
53749
+ FieldMask.decodeDelimited = function decodeDelimited(reader) {
53750
+ if (!(reader instanceof $Reader))
53751
+ reader = new $Reader(reader);
53752
+ return this.decode(reader, reader.uint32());
53753
+ };
53754
+
53755
+ /**
53756
+ * Verifies a FieldMask message.
53757
+ * @function verify
53758
+ * @memberof google.protobuf.FieldMask
53759
+ * @static
53760
+ * @param {Object.<string,*>} message Plain object to verify
53761
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
53762
+ */
53763
+ FieldMask.verify = function verify(message) {
53764
+ if (typeof message !== "object" || message === null)
53765
+ return "object expected";
53766
+ if (message.paths != null && message.hasOwnProperty("paths")) {
53767
+ if (!Array.isArray(message.paths))
53768
+ return "paths: array expected";
53769
+ for (var i = 0; i < message.paths.length; ++i)
53770
+ if (!$util.isString(message.paths[i]))
53771
+ return "paths: string[] expected";
53772
+ }
53773
+ return null;
53774
+ };
53775
+
53776
+ /**
53777
+ * Creates a FieldMask message from a plain object. Also converts values to their respective internal types.
53778
+ * @function fromObject
53779
+ * @memberof google.protobuf.FieldMask
53780
+ * @static
53781
+ * @param {Object.<string,*>} object Plain object
53782
+ * @returns {google.protobuf.FieldMask} FieldMask
53783
+ */
53784
+ FieldMask.fromObject = function fromObject(object) {
53785
+ if (object instanceof $root.google.protobuf.FieldMask)
53786
+ return object;
53787
+ var message = new $root.google.protobuf.FieldMask();
53788
+ if (object.paths) {
53789
+ if (!Array.isArray(object.paths))
53790
+ throw TypeError(".google.protobuf.FieldMask.paths: array expected");
53791
+ message.paths = [];
53792
+ for (var i = 0; i < object.paths.length; ++i)
53793
+ message.paths[i] = String(object.paths[i]);
53794
+ }
53795
+ return message;
53796
+ };
53797
+
53798
+ /**
53799
+ * Creates a plain object from a FieldMask message. Also converts values to other types if specified.
53800
+ * @function toObject
53801
+ * @memberof google.protobuf.FieldMask
53802
+ * @static
53803
+ * @param {google.protobuf.FieldMask} message FieldMask
53804
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
53805
+ * @returns {Object.<string,*>} Plain object
53806
+ */
53807
+ FieldMask.toObject = function toObject(message, options) {
53808
+ if (!options)
53809
+ options = {};
53810
+ var object = {};
53811
+ if (options.arrays || options.defaults)
53812
+ object.paths = [];
53813
+ if (message.paths && message.paths.length) {
53814
+ object.paths = [];
53815
+ for (var j = 0; j < message.paths.length; ++j)
53816
+ object.paths[j] = message.paths[j];
53817
+ }
53818
+ return object;
53819
+ };
53820
+
53821
+ /**
53822
+ * Converts this FieldMask to JSON.
53823
+ * @function toJSON
53824
+ * @memberof google.protobuf.FieldMask
53825
+ * @instance
53826
+ * @returns {Object.<string,*>} JSON object
53827
+ */
53828
+ FieldMask.prototype.toJSON = function toJSON() {
53829
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
53830
+ };
53831
+
53832
+ return FieldMask;
53833
+ })();
53834
+
53094
53835
  return protobuf;
53095
53836
  })();
53096
53837