@replit/protocol 0.2.51 → 0.2.52

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
@@ -178,6 +178,8 @@
178
178
  * @property {api.DotReplitGetResponse|api.IDotReplitGetResponse|null} [dotReplitGetResponse] Command dotReplitGetResponse
179
179
  * @property {api.RunConfigGetRequest|api.IRunConfigGetRequest|null} [runConfigGetRequest] Command runConfigGetRequest
180
180
  * @property {api.RunConfigGetResponse|api.IRunConfigGetResponse|null} [runConfigGetResponse] Command runConfigGetResponse
181
+ * @property {api.DotReplitUpdateRequest|api.IDotReplitUpdateRequest|null} [dotReplitUpdateRequest] Command dotReplitUpdateRequest
182
+ * @property {api.DotReplitUpdateResponse|api.IDotReplitUpdateResponse|null} [dotReplitUpdateResponse] Command dotReplitUpdateResponse
181
183
  * @property {api.StartLSP|api.IStartLSP|null} [startLSP] Command startLSP
182
184
  * @property {api.FirewallDenied|api.IFirewallDenied|null} [firewallDenied] Command firewallDenied
183
185
  * @property {string|null} [ref] Command ref
@@ -1375,6 +1377,22 @@
1375
1377
  */
1376
1378
  Command.prototype.runConfigGetResponse = null;
1377
1379
 
1380
+ /**
1381
+ * Command dotReplitUpdateRequest.
1382
+ * @member {api.DotReplitUpdateRequest|null|undefined} dotReplitUpdateRequest
1383
+ * @memberof api.Command
1384
+ * @instance
1385
+ */
1386
+ Command.prototype.dotReplitUpdateRequest = null;
1387
+
1388
+ /**
1389
+ * Command dotReplitUpdateResponse.
1390
+ * @member {api.DotReplitUpdateResponse|null|undefined} dotReplitUpdateResponse
1391
+ * @memberof api.Command
1392
+ * @instance
1393
+ */
1394
+ Command.prototype.dotReplitUpdateResponse = null;
1395
+
1378
1396
  /**
1379
1397
  * Command startLSP.
1380
1398
  * @member {api.StartLSP|null|undefined} startLSP
@@ -1412,12 +1430,12 @@
1412
1430
 
1413
1431
  /**
1414
1432
  * Command body.
1415
- * @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"|"startLSP"|"firewallDenied"|undefined} body
1433
+ * @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"|undefined} body
1416
1434
  * @memberof api.Command
1417
1435
  * @instance
1418
1436
  */
1419
1437
  Object.defineProperty(Command.prototype, "body", {
1420
- 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", "startLSP", "firewallDenied"]),
1438
+ 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"]),
1421
1439
  set: $util.oneOfSetter($oneOfFields)
1422
1440
  });
1423
1441
 
@@ -1743,6 +1761,10 @@
1743
1761
  writer.uint32(/* id 392, wireType 0 =*/3136).bool(message.NoninteractiveFSChangeEvent);
1744
1762
  if (message.firewallDenied != null && Object.hasOwnProperty.call(message, "firewallDenied"))
1745
1763
  $root.api.FirewallDenied.encode(message.firewallDenied, writer.uint32(/* id 393, wireType 2 =*/3146).fork()).ldelim();
1764
+ if (message.dotReplitUpdateRequest != null && Object.hasOwnProperty.call(message, "dotReplitUpdateRequest"))
1765
+ $root.api.DotReplitUpdateRequest.encode(message.dotReplitUpdateRequest, writer.uint32(/* id 395, wireType 2 =*/3162).fork()).ldelim();
1766
+ if (message.dotReplitUpdateResponse != null && Object.hasOwnProperty.call(message, "dotReplitUpdateResponse"))
1767
+ $root.api.DotReplitUpdateResponse.encode(message.dotReplitUpdateResponse, writer.uint32(/* id 396, wireType 2 =*/3170).fork()).ldelim();
1746
1768
  if (message.ref != null && Object.hasOwnProperty.call(message, "ref"))
1747
1769
  writer.uint32(/* id 1000, wireType 2 =*/8002).string(message.ref);
1748
1770
  if (message.traceInfo != null && Object.hasOwnProperty.call(message, "traceInfo"))
@@ -2223,6 +2245,12 @@
2223
2245
  case 391:
2224
2246
  message.runConfigGetResponse = $root.api.RunConfigGetResponse.decode(reader, reader.uint32());
2225
2247
  break;
2248
+ case 395:
2249
+ message.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.decode(reader, reader.uint32());
2250
+ break;
2251
+ case 396:
2252
+ message.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.decode(reader, reader.uint32());
2253
+ break;
2226
2254
  case 345:
2227
2255
  message.startLSP = $root.api.StartLSP.decode(reader, reader.uint32());
2228
2256
  break;
@@ -3716,6 +3744,26 @@
3716
3744
  return "runConfigGetResponse." + error;
3717
3745
  }
3718
3746
  }
3747
+ if (message.dotReplitUpdateRequest != null && message.hasOwnProperty("dotReplitUpdateRequest")) {
3748
+ if (properties.body === 1)
3749
+ return "body: multiple values";
3750
+ properties.body = 1;
3751
+ {
3752
+ var error = $root.api.DotReplitUpdateRequest.verify(message.dotReplitUpdateRequest);
3753
+ if (error)
3754
+ return "dotReplitUpdateRequest." + error;
3755
+ }
3756
+ }
3757
+ if (message.dotReplitUpdateResponse != null && message.hasOwnProperty("dotReplitUpdateResponse")) {
3758
+ if (properties.body === 1)
3759
+ return "body: multiple values";
3760
+ properties.body = 1;
3761
+ {
3762
+ var error = $root.api.DotReplitUpdateResponse.verify(message.dotReplitUpdateResponse);
3763
+ if (error)
3764
+ return "dotReplitUpdateResponse." + error;
3765
+ }
3766
+ }
3719
3767
  if (message.startLSP != null && message.hasOwnProperty("startLSP")) {
3720
3768
  if (properties.body === 1)
3721
3769
  return "body: multiple values";
@@ -4466,6 +4514,16 @@
4466
4514
  throw TypeError(".api.Command.runConfigGetResponse: object expected");
4467
4515
  message.runConfigGetResponse = $root.api.RunConfigGetResponse.fromObject(object.runConfigGetResponse);
4468
4516
  }
4517
+ if (object.dotReplitUpdateRequest != null) {
4518
+ if (typeof object.dotReplitUpdateRequest !== "object")
4519
+ throw TypeError(".api.Command.dotReplitUpdateRequest: object expected");
4520
+ message.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.fromObject(object.dotReplitUpdateRequest);
4521
+ }
4522
+ if (object.dotReplitUpdateResponse != null) {
4523
+ if (typeof object.dotReplitUpdateResponse !== "object")
4524
+ throw TypeError(".api.Command.dotReplitUpdateResponse: object expected");
4525
+ message.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.fromObject(object.dotReplitUpdateResponse);
4526
+ }
4469
4527
  if (object.startLSP != null) {
4470
4528
  if (typeof object.startLSP !== "object")
4471
4529
  throw TypeError(".api.Command.startLSP: object expected");
@@ -5247,6 +5305,16 @@
5247
5305
  if (options.oneofs)
5248
5306
  object.body = "firewallDenied";
5249
5307
  }
5308
+ if (message.dotReplitUpdateRequest != null && message.hasOwnProperty("dotReplitUpdateRequest")) {
5309
+ object.dotReplitUpdateRequest = $root.api.DotReplitUpdateRequest.toObject(message.dotReplitUpdateRequest, options);
5310
+ if (options.oneofs)
5311
+ object.body = "dotReplitUpdateRequest";
5312
+ }
5313
+ if (message.dotReplitUpdateResponse != null && message.hasOwnProperty("dotReplitUpdateResponse")) {
5314
+ object.dotReplitUpdateResponse = $root.api.DotReplitUpdateResponse.toObject(message.dotReplitUpdateResponse, options);
5315
+ if (options.oneofs)
5316
+ object.body = "dotReplitUpdateResponse";
5317
+ }
5250
5318
  if (message.ref != null && message.hasOwnProperty("ref"))
5251
5319
  object.ref = message.ref;
5252
5320
  var keys2;
@@ -33700,6 +33768,608 @@
33700
33768
  return RunConfigGetResponse;
33701
33769
  })();
33702
33770
 
33771
+ api.DotReplitUpdateOp = (function() {
33772
+
33773
+ /**
33774
+ * Properties of a DotReplitUpdateOp.
33775
+ * @memberof api
33776
+ * @interface IDotReplitUpdateOp
33777
+ * @property {string|null} [op] DotReplitUpdateOp op
33778
+ * @property {string|null} [path] DotReplitUpdateOp path
33779
+ * @property {google.protobuf.Value|google.protobuf.IValue|null} [value] DotReplitUpdateOp value
33780
+ */
33781
+
33782
+ /**
33783
+ * Constructs a new DotReplitUpdateOp.
33784
+ * @memberof api
33785
+ * @classdesc Represents a DotReplitUpdateOp.
33786
+ * @constructor
33787
+ * @param {api.IDotReplitUpdateOp=} [properties] Properties to set
33788
+ */
33789
+ function DotReplitUpdateOp(properties) {
33790
+ if (properties)
33791
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
33792
+ if (properties[keys[i]] != null)
33793
+ this[keys[i]] = properties[keys[i]];
33794
+ }
33795
+
33796
+ /**
33797
+ * DotReplitUpdateOp op.
33798
+ * @member {string} op
33799
+ * @memberof api.DotReplitUpdateOp
33800
+ * @instance
33801
+ */
33802
+ DotReplitUpdateOp.prototype.op = "";
33803
+
33804
+ /**
33805
+ * DotReplitUpdateOp path.
33806
+ * @member {string} path
33807
+ * @memberof api.DotReplitUpdateOp
33808
+ * @instance
33809
+ */
33810
+ DotReplitUpdateOp.prototype.path = "";
33811
+
33812
+ /**
33813
+ * DotReplitUpdateOp value.
33814
+ * @member {google.protobuf.Value|null|undefined} value
33815
+ * @memberof api.DotReplitUpdateOp
33816
+ * @instance
33817
+ */
33818
+ DotReplitUpdateOp.prototype.value = null;
33819
+
33820
+ /**
33821
+ * Creates a new DotReplitUpdateOp instance using the specified properties.
33822
+ * @function create
33823
+ * @memberof api.DotReplitUpdateOp
33824
+ * @static
33825
+ * @param {api.IDotReplitUpdateOp=} [properties] Properties to set
33826
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp instance
33827
+ */
33828
+ DotReplitUpdateOp.create = function create(properties) {
33829
+ return DotReplitUpdateOp.fromObject(properties);
33830
+ };
33831
+
33832
+ /**
33833
+ * Encodes the specified DotReplitUpdateOp message. Does not implicitly {@link api.DotReplitUpdateOp.verify|verify} messages.
33834
+ * @function encode
33835
+ * @memberof api.DotReplitUpdateOp
33836
+ * @static
33837
+ * @param {api.DotReplitUpdateOp} message DotReplitUpdateOp message or plain object to encode
33838
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33839
+ * @returns {$protobuf.Writer} Writer
33840
+ */
33841
+ DotReplitUpdateOp.encode = function encode(message, writer) {
33842
+ if (!writer)
33843
+ writer = $Writer.create();
33844
+ if (message.op != null && Object.hasOwnProperty.call(message, "op"))
33845
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.op);
33846
+ if (message.path != null && Object.hasOwnProperty.call(message, "path"))
33847
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
33848
+ if (message.value != null && Object.hasOwnProperty.call(message, "value"))
33849
+ $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
33850
+ return writer;
33851
+ };
33852
+
33853
+ /**
33854
+ * Encodes the specified DotReplitUpdateOp message, length delimited. Does not implicitly {@link api.DotReplitUpdateOp.verify|verify} messages.
33855
+ * @function encodeDelimited
33856
+ * @memberof api.DotReplitUpdateOp
33857
+ * @static
33858
+ * @param {api.DotReplitUpdateOp} message DotReplitUpdateOp message or plain object to encode
33859
+ * @param {$protobuf.Writer} [writer] Writer to encode to
33860
+ * @returns {$protobuf.Writer} Writer
33861
+ */
33862
+ DotReplitUpdateOp.encodeDelimited = function encodeDelimited(message, writer) {
33863
+ return this.encode(message, writer).ldelim();
33864
+ };
33865
+
33866
+ /**
33867
+ * Decodes a DotReplitUpdateOp message from the specified reader or buffer.
33868
+ * @function decode
33869
+ * @memberof api.DotReplitUpdateOp
33870
+ * @static
33871
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33872
+ * @param {number} [length] Message length if known beforehand
33873
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp
33874
+ * @throws {Error} If the payload is not a reader or valid buffer
33875
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33876
+ */
33877
+ DotReplitUpdateOp.decode = function decode(reader, length) {
33878
+ if (!(reader instanceof $Reader))
33879
+ reader = $Reader.create(reader);
33880
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUpdateOp();
33881
+ while (reader.pos < end) {
33882
+ var tag = reader.uint32();
33883
+ switch (tag >>> 3) {
33884
+ case 1:
33885
+ message.op = reader.string();
33886
+ break;
33887
+ case 2:
33888
+ message.path = reader.string();
33889
+ break;
33890
+ case 3:
33891
+ message.value = $root.google.protobuf.Value.decode(reader, reader.uint32());
33892
+ break;
33893
+ default:
33894
+ reader.skipType(tag & 7);
33895
+ break;
33896
+ }
33897
+ }
33898
+ return message;
33899
+ };
33900
+
33901
+ /**
33902
+ * Decodes a DotReplitUpdateOp message from the specified reader or buffer, length delimited.
33903
+ * @function decodeDelimited
33904
+ * @memberof api.DotReplitUpdateOp
33905
+ * @static
33906
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
33907
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp
33908
+ * @throws {Error} If the payload is not a reader or valid buffer
33909
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
33910
+ */
33911
+ DotReplitUpdateOp.decodeDelimited = function decodeDelimited(reader) {
33912
+ if (!(reader instanceof $Reader))
33913
+ reader = new $Reader(reader);
33914
+ return this.decode(reader, reader.uint32());
33915
+ };
33916
+
33917
+ /**
33918
+ * Verifies a DotReplitUpdateOp message.
33919
+ * @function verify
33920
+ * @memberof api.DotReplitUpdateOp
33921
+ * @static
33922
+ * @param {Object.<string,*>} message Plain object to verify
33923
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
33924
+ */
33925
+ DotReplitUpdateOp.verify = function verify(message) {
33926
+ if (typeof message !== "object" || message === null)
33927
+ return "object expected";
33928
+ if (message.op != null && message.hasOwnProperty("op"))
33929
+ if (!$util.isString(message.op))
33930
+ return "op: string expected";
33931
+ if (message.path != null && message.hasOwnProperty("path"))
33932
+ if (!$util.isString(message.path))
33933
+ return "path: string expected";
33934
+ if (message.value != null && message.hasOwnProperty("value")) {
33935
+ var error = $root.google.protobuf.Value.verify(message.value);
33936
+ if (error)
33937
+ return "value." + error;
33938
+ }
33939
+ return null;
33940
+ };
33941
+
33942
+ /**
33943
+ * Creates a DotReplitUpdateOp message from a plain object. Also converts values to their respective internal types.
33944
+ * @function fromObject
33945
+ * @memberof api.DotReplitUpdateOp
33946
+ * @static
33947
+ * @param {Object.<string,*>} object Plain object
33948
+ * @returns {api.DotReplitUpdateOp} DotReplitUpdateOp
33949
+ */
33950
+ DotReplitUpdateOp.fromObject = function fromObject(object) {
33951
+ if (object instanceof $root.api.DotReplitUpdateOp)
33952
+ return object;
33953
+ var message = new $root.api.DotReplitUpdateOp();
33954
+ if (object.op != null)
33955
+ message.op = String(object.op);
33956
+ if (object.path != null)
33957
+ message.path = String(object.path);
33958
+ if (object.value != null) {
33959
+ if (typeof object.value !== "object")
33960
+ throw TypeError(".api.DotReplitUpdateOp.value: object expected");
33961
+ message.value = $root.google.protobuf.Value.fromObject(object.value);
33962
+ }
33963
+ return message;
33964
+ };
33965
+
33966
+ /**
33967
+ * Creates a plain object from a DotReplitUpdateOp message. Also converts values to other types if specified.
33968
+ * @function toObject
33969
+ * @memberof api.DotReplitUpdateOp
33970
+ * @static
33971
+ * @param {api.DotReplitUpdateOp} message DotReplitUpdateOp
33972
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
33973
+ * @returns {Object.<string,*>} Plain object
33974
+ */
33975
+ DotReplitUpdateOp.toObject = function toObject(message, options) {
33976
+ if (!options)
33977
+ options = {};
33978
+ var object = {};
33979
+ if (options.defaults) {
33980
+ object.op = "";
33981
+ object.path = "";
33982
+ object.value = null;
33983
+ }
33984
+ if (message.op != null && message.hasOwnProperty("op"))
33985
+ object.op = message.op;
33986
+ if (message.path != null && message.hasOwnProperty("path"))
33987
+ object.path = message.path;
33988
+ if (message.value != null && message.hasOwnProperty("value"))
33989
+ object.value = $root.google.protobuf.Value.toObject(message.value, options);
33990
+ return object;
33991
+ };
33992
+
33993
+ /**
33994
+ * Converts this DotReplitUpdateOp to JSON.
33995
+ * @function toJSON
33996
+ * @memberof api.DotReplitUpdateOp
33997
+ * @instance
33998
+ * @returns {Object.<string,*>} JSON object
33999
+ */
34000
+ DotReplitUpdateOp.prototype.toJSON = function toJSON() {
34001
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
34002
+ };
34003
+
34004
+ return DotReplitUpdateOp;
34005
+ })();
34006
+
34007
+ api.DotReplitUpdateRequest = (function() {
34008
+
34009
+ /**
34010
+ * Properties of a DotReplitUpdateRequest.
34011
+ * @memberof api
34012
+ * @interface IDotReplitUpdateRequest
34013
+ * @property {Array.<api.DotReplitUpdateOp|api.IDotReplitUpdateOp>|null} [ops] DotReplitUpdateRequest ops
34014
+ */
34015
+
34016
+ /**
34017
+ * Constructs a new DotReplitUpdateRequest.
34018
+ * @memberof api
34019
+ * @classdesc Represents a DotReplitUpdateRequest.
34020
+ * @constructor
34021
+ * @param {api.IDotReplitUpdateRequest=} [properties] Properties to set
34022
+ */
34023
+ function DotReplitUpdateRequest(properties) {
34024
+ this.ops = [];
34025
+ if (properties)
34026
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
34027
+ if (properties[keys[i]] != null)
34028
+ this[keys[i]] = properties[keys[i]];
34029
+ }
34030
+
34031
+ /**
34032
+ * DotReplitUpdateRequest ops.
34033
+ * @member {Array.<api.DotReplitUpdateOp>} ops
34034
+ * @memberof api.DotReplitUpdateRequest
34035
+ * @instance
34036
+ */
34037
+ DotReplitUpdateRequest.prototype.ops = $util.emptyArray;
34038
+
34039
+ /**
34040
+ * Creates a new DotReplitUpdateRequest instance using the specified properties.
34041
+ * @function create
34042
+ * @memberof api.DotReplitUpdateRequest
34043
+ * @static
34044
+ * @param {api.IDotReplitUpdateRequest=} [properties] Properties to set
34045
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest instance
34046
+ */
34047
+ DotReplitUpdateRequest.create = function create(properties) {
34048
+ return DotReplitUpdateRequest.fromObject(properties);
34049
+ };
34050
+
34051
+ /**
34052
+ * Encodes the specified DotReplitUpdateRequest message. Does not implicitly {@link api.DotReplitUpdateRequest.verify|verify} messages.
34053
+ * @function encode
34054
+ * @memberof api.DotReplitUpdateRequest
34055
+ * @static
34056
+ * @param {api.DotReplitUpdateRequest} message DotReplitUpdateRequest message or plain object to encode
34057
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34058
+ * @returns {$protobuf.Writer} Writer
34059
+ */
34060
+ DotReplitUpdateRequest.encode = function encode(message, writer) {
34061
+ if (!writer)
34062
+ writer = $Writer.create();
34063
+ if (message.ops != null && message.ops.length)
34064
+ for (var i = 0; i < message.ops.length; ++i)
34065
+ $root.api.DotReplitUpdateOp.encode(message.ops[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
34066
+ return writer;
34067
+ };
34068
+
34069
+ /**
34070
+ * Encodes the specified DotReplitUpdateRequest message, length delimited. Does not implicitly {@link api.DotReplitUpdateRequest.verify|verify} messages.
34071
+ * @function encodeDelimited
34072
+ * @memberof api.DotReplitUpdateRequest
34073
+ * @static
34074
+ * @param {api.DotReplitUpdateRequest} message DotReplitUpdateRequest message or plain object to encode
34075
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34076
+ * @returns {$protobuf.Writer} Writer
34077
+ */
34078
+ DotReplitUpdateRequest.encodeDelimited = function encodeDelimited(message, writer) {
34079
+ return this.encode(message, writer).ldelim();
34080
+ };
34081
+
34082
+ /**
34083
+ * Decodes a DotReplitUpdateRequest message from the specified reader or buffer.
34084
+ * @function decode
34085
+ * @memberof api.DotReplitUpdateRequest
34086
+ * @static
34087
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34088
+ * @param {number} [length] Message length if known beforehand
34089
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest
34090
+ * @throws {Error} If the payload is not a reader or valid buffer
34091
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34092
+ */
34093
+ DotReplitUpdateRequest.decode = function decode(reader, length) {
34094
+ if (!(reader instanceof $Reader))
34095
+ reader = $Reader.create(reader);
34096
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUpdateRequest();
34097
+ while (reader.pos < end) {
34098
+ var tag = reader.uint32();
34099
+ switch (tag >>> 3) {
34100
+ case 1:
34101
+ if (!(message.ops && message.ops.length))
34102
+ message.ops = [];
34103
+ message.ops.push($root.api.DotReplitUpdateOp.decode(reader, reader.uint32()));
34104
+ break;
34105
+ default:
34106
+ reader.skipType(tag & 7);
34107
+ break;
34108
+ }
34109
+ }
34110
+ return message;
34111
+ };
34112
+
34113
+ /**
34114
+ * Decodes a DotReplitUpdateRequest message from the specified reader or buffer, length delimited.
34115
+ * @function decodeDelimited
34116
+ * @memberof api.DotReplitUpdateRequest
34117
+ * @static
34118
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34119
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest
34120
+ * @throws {Error} If the payload is not a reader or valid buffer
34121
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34122
+ */
34123
+ DotReplitUpdateRequest.decodeDelimited = function decodeDelimited(reader) {
34124
+ if (!(reader instanceof $Reader))
34125
+ reader = new $Reader(reader);
34126
+ return this.decode(reader, reader.uint32());
34127
+ };
34128
+
34129
+ /**
34130
+ * Verifies a DotReplitUpdateRequest message.
34131
+ * @function verify
34132
+ * @memberof api.DotReplitUpdateRequest
34133
+ * @static
34134
+ * @param {Object.<string,*>} message Plain object to verify
34135
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
34136
+ */
34137
+ DotReplitUpdateRequest.verify = function verify(message) {
34138
+ if (typeof message !== "object" || message === null)
34139
+ return "object expected";
34140
+ if (message.ops != null && message.hasOwnProperty("ops")) {
34141
+ if (!Array.isArray(message.ops))
34142
+ return "ops: array expected";
34143
+ for (var i = 0; i < message.ops.length; ++i) {
34144
+ var error = $root.api.DotReplitUpdateOp.verify(message.ops[i]);
34145
+ if (error)
34146
+ return "ops." + error;
34147
+ }
34148
+ }
34149
+ return null;
34150
+ };
34151
+
34152
+ /**
34153
+ * Creates a DotReplitUpdateRequest message from a plain object. Also converts values to their respective internal types.
34154
+ * @function fromObject
34155
+ * @memberof api.DotReplitUpdateRequest
34156
+ * @static
34157
+ * @param {Object.<string,*>} object Plain object
34158
+ * @returns {api.DotReplitUpdateRequest} DotReplitUpdateRequest
34159
+ */
34160
+ DotReplitUpdateRequest.fromObject = function fromObject(object) {
34161
+ if (object instanceof $root.api.DotReplitUpdateRequest)
34162
+ return object;
34163
+ var message = new $root.api.DotReplitUpdateRequest();
34164
+ if (object.ops) {
34165
+ if (!Array.isArray(object.ops))
34166
+ throw TypeError(".api.DotReplitUpdateRequest.ops: array expected");
34167
+ message.ops = [];
34168
+ for (var i = 0; i < object.ops.length; ++i) {
34169
+ if (typeof object.ops[i] !== "object")
34170
+ throw TypeError(".api.DotReplitUpdateRequest.ops: object expected");
34171
+ message.ops[i] = $root.api.DotReplitUpdateOp.fromObject(object.ops[i]);
34172
+ }
34173
+ }
34174
+ return message;
34175
+ };
34176
+
34177
+ /**
34178
+ * Creates a plain object from a DotReplitUpdateRequest message. Also converts values to other types if specified.
34179
+ * @function toObject
34180
+ * @memberof api.DotReplitUpdateRequest
34181
+ * @static
34182
+ * @param {api.DotReplitUpdateRequest} message DotReplitUpdateRequest
34183
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
34184
+ * @returns {Object.<string,*>} Plain object
34185
+ */
34186
+ DotReplitUpdateRequest.toObject = function toObject(message, options) {
34187
+ if (!options)
34188
+ options = {};
34189
+ var object = {};
34190
+ if (options.arrays || options.defaults)
34191
+ object.ops = [];
34192
+ if (message.ops && message.ops.length) {
34193
+ object.ops = [];
34194
+ for (var j = 0; j < message.ops.length; ++j)
34195
+ object.ops[j] = $root.api.DotReplitUpdateOp.toObject(message.ops[j], options);
34196
+ }
34197
+ return object;
34198
+ };
34199
+
34200
+ /**
34201
+ * Converts this DotReplitUpdateRequest to JSON.
34202
+ * @function toJSON
34203
+ * @memberof api.DotReplitUpdateRequest
34204
+ * @instance
34205
+ * @returns {Object.<string,*>} JSON object
34206
+ */
34207
+ DotReplitUpdateRequest.prototype.toJSON = function toJSON() {
34208
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
34209
+ };
34210
+
34211
+ return DotReplitUpdateRequest;
34212
+ })();
34213
+
34214
+ api.DotReplitUpdateResponse = (function() {
34215
+
34216
+ /**
34217
+ * Properties of a DotReplitUpdateResponse.
34218
+ * @memberof api
34219
+ * @interface IDotReplitUpdateResponse
34220
+ */
34221
+
34222
+ /**
34223
+ * Constructs a new DotReplitUpdateResponse.
34224
+ * @memberof api
34225
+ * @classdesc Represents a DotReplitUpdateResponse.
34226
+ * @constructor
34227
+ * @param {api.IDotReplitUpdateResponse=} [properties] Properties to set
34228
+ */
34229
+ function DotReplitUpdateResponse(properties) {
34230
+ if (properties)
34231
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
34232
+ if (properties[keys[i]] != null)
34233
+ this[keys[i]] = properties[keys[i]];
34234
+ }
34235
+
34236
+ /**
34237
+ * Creates a new DotReplitUpdateResponse instance using the specified properties.
34238
+ * @function create
34239
+ * @memberof api.DotReplitUpdateResponse
34240
+ * @static
34241
+ * @param {api.IDotReplitUpdateResponse=} [properties] Properties to set
34242
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse instance
34243
+ */
34244
+ DotReplitUpdateResponse.create = function create(properties) {
34245
+ return DotReplitUpdateResponse.fromObject(properties);
34246
+ };
34247
+
34248
+ /**
34249
+ * Encodes the specified DotReplitUpdateResponse message. Does not implicitly {@link api.DotReplitUpdateResponse.verify|verify} messages.
34250
+ * @function encode
34251
+ * @memberof api.DotReplitUpdateResponse
34252
+ * @static
34253
+ * @param {api.DotReplitUpdateResponse} message DotReplitUpdateResponse message or plain object to encode
34254
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34255
+ * @returns {$protobuf.Writer} Writer
34256
+ */
34257
+ DotReplitUpdateResponse.encode = function encode(message, writer) {
34258
+ if (!writer)
34259
+ writer = $Writer.create();
34260
+ return writer;
34261
+ };
34262
+
34263
+ /**
34264
+ * Encodes the specified DotReplitUpdateResponse message, length delimited. Does not implicitly {@link api.DotReplitUpdateResponse.verify|verify} messages.
34265
+ * @function encodeDelimited
34266
+ * @memberof api.DotReplitUpdateResponse
34267
+ * @static
34268
+ * @param {api.DotReplitUpdateResponse} message DotReplitUpdateResponse message or plain object to encode
34269
+ * @param {$protobuf.Writer} [writer] Writer to encode to
34270
+ * @returns {$protobuf.Writer} Writer
34271
+ */
34272
+ DotReplitUpdateResponse.encodeDelimited = function encodeDelimited(message, writer) {
34273
+ return this.encode(message, writer).ldelim();
34274
+ };
34275
+
34276
+ /**
34277
+ * Decodes a DotReplitUpdateResponse message from the specified reader or buffer.
34278
+ * @function decode
34279
+ * @memberof api.DotReplitUpdateResponse
34280
+ * @static
34281
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34282
+ * @param {number} [length] Message length if known beforehand
34283
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse
34284
+ * @throws {Error} If the payload is not a reader or valid buffer
34285
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34286
+ */
34287
+ DotReplitUpdateResponse.decode = function decode(reader, length) {
34288
+ if (!(reader instanceof $Reader))
34289
+ reader = $Reader.create(reader);
34290
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.api.DotReplitUpdateResponse();
34291
+ while (reader.pos < end) {
34292
+ var tag = reader.uint32();
34293
+ switch (tag >>> 3) {
34294
+ default:
34295
+ reader.skipType(tag & 7);
34296
+ break;
34297
+ }
34298
+ }
34299
+ return message;
34300
+ };
34301
+
34302
+ /**
34303
+ * Decodes a DotReplitUpdateResponse message from the specified reader or buffer, length delimited.
34304
+ * @function decodeDelimited
34305
+ * @memberof api.DotReplitUpdateResponse
34306
+ * @static
34307
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
34308
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse
34309
+ * @throws {Error} If the payload is not a reader or valid buffer
34310
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
34311
+ */
34312
+ DotReplitUpdateResponse.decodeDelimited = function decodeDelimited(reader) {
34313
+ if (!(reader instanceof $Reader))
34314
+ reader = new $Reader(reader);
34315
+ return this.decode(reader, reader.uint32());
34316
+ };
34317
+
34318
+ /**
34319
+ * Verifies a DotReplitUpdateResponse message.
34320
+ * @function verify
34321
+ * @memberof api.DotReplitUpdateResponse
34322
+ * @static
34323
+ * @param {Object.<string,*>} message Plain object to verify
34324
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
34325
+ */
34326
+ DotReplitUpdateResponse.verify = function verify(message) {
34327
+ if (typeof message !== "object" || message === null)
34328
+ return "object expected";
34329
+ return null;
34330
+ };
34331
+
34332
+ /**
34333
+ * Creates a DotReplitUpdateResponse message from a plain object. Also converts values to their respective internal types.
34334
+ * @function fromObject
34335
+ * @memberof api.DotReplitUpdateResponse
34336
+ * @static
34337
+ * @param {Object.<string,*>} object Plain object
34338
+ * @returns {api.DotReplitUpdateResponse} DotReplitUpdateResponse
34339
+ */
34340
+ DotReplitUpdateResponse.fromObject = function fromObject(object) {
34341
+ if (object instanceof $root.api.DotReplitUpdateResponse)
34342
+ return object;
34343
+ return new $root.api.DotReplitUpdateResponse();
34344
+ };
34345
+
34346
+ /**
34347
+ * Creates a plain object from a DotReplitUpdateResponse message. Also converts values to other types if specified.
34348
+ * @function toObject
34349
+ * @memberof api.DotReplitUpdateResponse
34350
+ * @static
34351
+ * @param {api.DotReplitUpdateResponse} message DotReplitUpdateResponse
34352
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
34353
+ * @returns {Object.<string,*>} Plain object
34354
+ */
34355
+ DotReplitUpdateResponse.toObject = function toObject() {
34356
+ return {};
34357
+ };
34358
+
34359
+ /**
34360
+ * Converts this DotReplitUpdateResponse to JSON.
34361
+ * @function toJSON
34362
+ * @memberof api.DotReplitUpdateResponse
34363
+ * @instance
34364
+ * @returns {Object.<string,*>} JSON object
34365
+ */
34366
+ DotReplitUpdateResponse.prototype.toJSON = function toJSON() {
34367
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
34368
+ };
34369
+
34370
+ return DotReplitUpdateResponse;
34371
+ })();
34372
+
33703
34373
  api.DebugAddBreakpointRequest = (function() {
33704
34374
 
33705
34375
  /**
@@ -42396,6 +43066,817 @@
42396
43066
  return Timestamp;
42397
43067
  })();
42398
43068
 
43069
+ protobuf.Struct = (function() {
43070
+
43071
+ /**
43072
+ * Properties of a Struct.
43073
+ * @memberof google.protobuf
43074
+ * @interface IStruct
43075
+ * @property {Object.<string,google.protobuf.Value|google.protobuf.IValue>|null} [fields] Struct fields
43076
+ */
43077
+
43078
+ /**
43079
+ * Constructs a new Struct.
43080
+ * @memberof google.protobuf
43081
+ * @classdesc Represents a Struct.
43082
+ * @constructor
43083
+ * @param {google.protobuf.IStruct=} [properties] Properties to set
43084
+ */
43085
+ function Struct(properties) {
43086
+ this.fields = {};
43087
+ if (properties)
43088
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
43089
+ if (properties[keys[i]] != null)
43090
+ this[keys[i]] = properties[keys[i]];
43091
+ }
43092
+
43093
+ /**
43094
+ * Struct fields.
43095
+ * @member {Object.<string,google.protobuf.Value>} fields
43096
+ * @memberof google.protobuf.Struct
43097
+ * @instance
43098
+ */
43099
+ Struct.prototype.fields = $util.emptyObject;
43100
+
43101
+ /**
43102
+ * Creates a new Struct instance using the specified properties.
43103
+ * @function create
43104
+ * @memberof google.protobuf.Struct
43105
+ * @static
43106
+ * @param {google.protobuf.IStruct=} [properties] Properties to set
43107
+ * @returns {google.protobuf.Struct} Struct instance
43108
+ */
43109
+ Struct.create = function create(properties) {
43110
+ return Struct.fromObject(properties);
43111
+ };
43112
+
43113
+ /**
43114
+ * Encodes the specified Struct message. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
43115
+ * @function encode
43116
+ * @memberof google.protobuf.Struct
43117
+ * @static
43118
+ * @param {google.protobuf.Struct} message Struct message or plain object to encode
43119
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43120
+ * @returns {$protobuf.Writer} Writer
43121
+ */
43122
+ Struct.encode = function encode(message, writer) {
43123
+ if (!writer)
43124
+ writer = $Writer.create();
43125
+ if (message.fields != null && Object.hasOwnProperty.call(message, "fields"))
43126
+ for (var keys = Object.keys(message.fields), i = 0; i < keys.length; ++i) {
43127
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
43128
+ $root.google.protobuf.Value.encode(message.fields[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
43129
+ }
43130
+ return writer;
43131
+ };
43132
+
43133
+ /**
43134
+ * Encodes the specified Struct message, length delimited. Does not implicitly {@link google.protobuf.Struct.verify|verify} messages.
43135
+ * @function encodeDelimited
43136
+ * @memberof google.protobuf.Struct
43137
+ * @static
43138
+ * @param {google.protobuf.Struct} message Struct message or plain object to encode
43139
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43140
+ * @returns {$protobuf.Writer} Writer
43141
+ */
43142
+ Struct.encodeDelimited = function encodeDelimited(message, writer) {
43143
+ return this.encode(message, writer).ldelim();
43144
+ };
43145
+
43146
+ /**
43147
+ * Decodes a Struct message from the specified reader or buffer.
43148
+ * @function decode
43149
+ * @memberof google.protobuf.Struct
43150
+ * @static
43151
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43152
+ * @param {number} [length] Message length if known beforehand
43153
+ * @returns {google.protobuf.Struct} Struct
43154
+ * @throws {Error} If the payload is not a reader or valid buffer
43155
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43156
+ */
43157
+ Struct.decode = function decode(reader, length) {
43158
+ if (!(reader instanceof $Reader))
43159
+ reader = $Reader.create(reader);
43160
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Struct(), key, value;
43161
+ while (reader.pos < end) {
43162
+ var tag = reader.uint32();
43163
+ switch (tag >>> 3) {
43164
+ case 1:
43165
+ if (message.fields === $util.emptyObject)
43166
+ message.fields = {};
43167
+ var end2 = reader.uint32() + reader.pos;
43168
+ key = "";
43169
+ value = null;
43170
+ while (reader.pos < end2) {
43171
+ var tag2 = reader.uint32();
43172
+ switch (tag2 >>> 3) {
43173
+ case 1:
43174
+ key = reader.string();
43175
+ break;
43176
+ case 2:
43177
+ value = $root.google.protobuf.Value.decode(reader, reader.uint32());
43178
+ break;
43179
+ default:
43180
+ reader.skipType(tag2 & 7);
43181
+ break;
43182
+ }
43183
+ }
43184
+ message.fields[key] = value;
43185
+ break;
43186
+ default:
43187
+ reader.skipType(tag & 7);
43188
+ break;
43189
+ }
43190
+ }
43191
+ return message;
43192
+ };
43193
+
43194
+ /**
43195
+ * Decodes a Struct message from the specified reader or buffer, length delimited.
43196
+ * @function decodeDelimited
43197
+ * @memberof google.protobuf.Struct
43198
+ * @static
43199
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43200
+ * @returns {google.protobuf.Struct} Struct
43201
+ * @throws {Error} If the payload is not a reader or valid buffer
43202
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43203
+ */
43204
+ Struct.decodeDelimited = function decodeDelimited(reader) {
43205
+ if (!(reader instanceof $Reader))
43206
+ reader = new $Reader(reader);
43207
+ return this.decode(reader, reader.uint32());
43208
+ };
43209
+
43210
+ /**
43211
+ * Verifies a Struct message.
43212
+ * @function verify
43213
+ * @memberof google.protobuf.Struct
43214
+ * @static
43215
+ * @param {Object.<string,*>} message Plain object to verify
43216
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
43217
+ */
43218
+ Struct.verify = function verify(message) {
43219
+ if (typeof message !== "object" || message === null)
43220
+ return "object expected";
43221
+ if (message.fields != null && message.hasOwnProperty("fields")) {
43222
+ if (!$util.isObject(message.fields))
43223
+ return "fields: object expected";
43224
+ var key = Object.keys(message.fields);
43225
+ for (var i = 0; i < key.length; ++i) {
43226
+ var error = $root.google.protobuf.Value.verify(message.fields[key[i]]);
43227
+ if (error)
43228
+ return "fields." + error;
43229
+ }
43230
+ }
43231
+ return null;
43232
+ };
43233
+
43234
+ /**
43235
+ * Creates a Struct message from a plain object. Also converts values to their respective internal types.
43236
+ * @function fromObject
43237
+ * @memberof google.protobuf.Struct
43238
+ * @static
43239
+ * @param {Object.<string,*>} object Plain object
43240
+ * @returns {google.protobuf.Struct} Struct
43241
+ */
43242
+ Struct.fromObject = function fromObject(object) {
43243
+ if (object instanceof $root.google.protobuf.Struct)
43244
+ return object;
43245
+ var message = new $root.google.protobuf.Struct();
43246
+ if (object.fields) {
43247
+ if (typeof object.fields !== "object")
43248
+ throw TypeError(".google.protobuf.Struct.fields: object expected");
43249
+ message.fields = {};
43250
+ for (var keys = Object.keys(object.fields), i = 0; i < keys.length; ++i) {
43251
+ if (typeof object.fields[keys[i]] !== "object")
43252
+ throw TypeError(".google.protobuf.Struct.fields: object expected");
43253
+ message.fields[keys[i]] = $root.google.protobuf.Value.fromObject(object.fields[keys[i]]);
43254
+ }
43255
+ }
43256
+ return message;
43257
+ };
43258
+
43259
+ /**
43260
+ * Creates a plain object from a Struct message. Also converts values to other types if specified.
43261
+ * @function toObject
43262
+ * @memberof google.protobuf.Struct
43263
+ * @static
43264
+ * @param {google.protobuf.Struct} message Struct
43265
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43266
+ * @returns {Object.<string,*>} Plain object
43267
+ */
43268
+ Struct.toObject = function toObject(message, options) {
43269
+ if (!options)
43270
+ options = {};
43271
+ var object = {};
43272
+ if (options.objects || options.defaults)
43273
+ object.fields = {};
43274
+ var keys2;
43275
+ if (message.fields && (keys2 = Object.keys(message.fields)).length) {
43276
+ object.fields = {};
43277
+ for (var j = 0; j < keys2.length; ++j)
43278
+ object.fields[keys2[j]] = $root.google.protobuf.Value.toObject(message.fields[keys2[j]], options);
43279
+ }
43280
+ return object;
43281
+ };
43282
+
43283
+ /**
43284
+ * Converts this Struct to JSON.
43285
+ * @function toJSON
43286
+ * @memberof google.protobuf.Struct
43287
+ * @instance
43288
+ * @returns {Object.<string,*>} JSON object
43289
+ */
43290
+ Struct.prototype.toJSON = function toJSON() {
43291
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43292
+ };
43293
+
43294
+ return Struct;
43295
+ })();
43296
+
43297
+ protobuf.Value = (function() {
43298
+
43299
+ /**
43300
+ * Properties of a Value.
43301
+ * @memberof google.protobuf
43302
+ * @interface IValue
43303
+ * @property {google.protobuf.NullValue|null} [nullValue] Value nullValue
43304
+ * @property {number|null} [numberValue] Value numberValue
43305
+ * @property {string|null} [stringValue] Value stringValue
43306
+ * @property {boolean|null} [boolValue] Value boolValue
43307
+ * @property {google.protobuf.Struct|google.protobuf.IStruct|null} [structValue] Value structValue
43308
+ * @property {google.protobuf.ListValue|google.protobuf.IListValue|null} [listValue] Value listValue
43309
+ */
43310
+
43311
+ /**
43312
+ * Constructs a new Value.
43313
+ * @memberof google.protobuf
43314
+ * @classdesc Represents a Value.
43315
+ * @constructor
43316
+ * @param {google.protobuf.IValue=} [properties] Properties to set
43317
+ */
43318
+ function Value(properties) {
43319
+ if (properties)
43320
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
43321
+ if (properties[keys[i]] != null)
43322
+ this[keys[i]] = properties[keys[i]];
43323
+ }
43324
+
43325
+ /**
43326
+ * Value nullValue.
43327
+ * @member {google.protobuf.NullValue|null|undefined} nullValue
43328
+ * @memberof google.protobuf.Value
43329
+ * @instance
43330
+ */
43331
+ Value.prototype.nullValue = null;
43332
+
43333
+ /**
43334
+ * Value numberValue.
43335
+ * @member {number|null|undefined} numberValue
43336
+ * @memberof google.protobuf.Value
43337
+ * @instance
43338
+ */
43339
+ Value.prototype.numberValue = null;
43340
+
43341
+ /**
43342
+ * Value stringValue.
43343
+ * @member {string|null|undefined} stringValue
43344
+ * @memberof google.protobuf.Value
43345
+ * @instance
43346
+ */
43347
+ Value.prototype.stringValue = null;
43348
+
43349
+ /**
43350
+ * Value boolValue.
43351
+ * @member {boolean|null|undefined} boolValue
43352
+ * @memberof google.protobuf.Value
43353
+ * @instance
43354
+ */
43355
+ Value.prototype.boolValue = null;
43356
+
43357
+ /**
43358
+ * Value structValue.
43359
+ * @member {google.protobuf.Struct|null|undefined} structValue
43360
+ * @memberof google.protobuf.Value
43361
+ * @instance
43362
+ */
43363
+ Value.prototype.structValue = null;
43364
+
43365
+ /**
43366
+ * Value listValue.
43367
+ * @member {google.protobuf.ListValue|null|undefined} listValue
43368
+ * @memberof google.protobuf.Value
43369
+ * @instance
43370
+ */
43371
+ Value.prototype.listValue = null;
43372
+
43373
+ // OneOf field names bound to virtual getters and setters
43374
+ var $oneOfFields;
43375
+
43376
+ /**
43377
+ * Value kind.
43378
+ * @member {"nullValue"|"numberValue"|"stringValue"|"boolValue"|"structValue"|"listValue"|undefined} kind
43379
+ * @memberof google.protobuf.Value
43380
+ * @instance
43381
+ */
43382
+ Object.defineProperty(Value.prototype, "kind", {
43383
+ get: $util.oneOfGetter($oneOfFields = ["nullValue", "numberValue", "stringValue", "boolValue", "structValue", "listValue"]),
43384
+ set: $util.oneOfSetter($oneOfFields)
43385
+ });
43386
+
43387
+ /**
43388
+ * Creates a new Value instance using the specified properties.
43389
+ * @function create
43390
+ * @memberof google.protobuf.Value
43391
+ * @static
43392
+ * @param {google.protobuf.IValue=} [properties] Properties to set
43393
+ * @returns {google.protobuf.Value} Value instance
43394
+ */
43395
+ Value.create = function create(properties) {
43396
+ return Value.fromObject(properties);
43397
+ };
43398
+
43399
+ /**
43400
+ * Encodes the specified Value message. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
43401
+ * @function encode
43402
+ * @memberof google.protobuf.Value
43403
+ * @static
43404
+ * @param {google.protobuf.Value} message Value message or plain object to encode
43405
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43406
+ * @returns {$protobuf.Writer} Writer
43407
+ */
43408
+ Value.encode = function encode(message, writer) {
43409
+ if (!writer)
43410
+ writer = $Writer.create();
43411
+ if (message.nullValue != null && Object.hasOwnProperty.call(message, "nullValue"))
43412
+ writer.uint32(/* id 1, wireType 0 =*/8).int32(message.nullValue);
43413
+ if (message.numberValue != null && Object.hasOwnProperty.call(message, "numberValue"))
43414
+ writer.uint32(/* id 2, wireType 1 =*/17).double(message.numberValue);
43415
+ if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue"))
43416
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.stringValue);
43417
+ if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue"))
43418
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.boolValue);
43419
+ if (message.structValue != null && Object.hasOwnProperty.call(message, "structValue"))
43420
+ $root.google.protobuf.Struct.encode(message.structValue, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
43421
+ if (message.listValue != null && Object.hasOwnProperty.call(message, "listValue"))
43422
+ $root.google.protobuf.ListValue.encode(message.listValue, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
43423
+ return writer;
43424
+ };
43425
+
43426
+ /**
43427
+ * Encodes the specified Value message, length delimited. Does not implicitly {@link google.protobuf.Value.verify|verify} messages.
43428
+ * @function encodeDelimited
43429
+ * @memberof google.protobuf.Value
43430
+ * @static
43431
+ * @param {google.protobuf.Value} message Value message or plain object to encode
43432
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43433
+ * @returns {$protobuf.Writer} Writer
43434
+ */
43435
+ Value.encodeDelimited = function encodeDelimited(message, writer) {
43436
+ return this.encode(message, writer).ldelim();
43437
+ };
43438
+
43439
+ /**
43440
+ * Decodes a Value message from the specified reader or buffer.
43441
+ * @function decode
43442
+ * @memberof google.protobuf.Value
43443
+ * @static
43444
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43445
+ * @param {number} [length] Message length if known beforehand
43446
+ * @returns {google.protobuf.Value} Value
43447
+ * @throws {Error} If the payload is not a reader or valid buffer
43448
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43449
+ */
43450
+ Value.decode = function decode(reader, length) {
43451
+ if (!(reader instanceof $Reader))
43452
+ reader = $Reader.create(reader);
43453
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.Value();
43454
+ while (reader.pos < end) {
43455
+ var tag = reader.uint32();
43456
+ switch (tag >>> 3) {
43457
+ case 1:
43458
+ message.nullValue = reader.int32();
43459
+ break;
43460
+ case 2:
43461
+ message.numberValue = reader.double();
43462
+ break;
43463
+ case 3:
43464
+ message.stringValue = reader.string();
43465
+ break;
43466
+ case 4:
43467
+ message.boolValue = reader.bool();
43468
+ break;
43469
+ case 5:
43470
+ message.structValue = $root.google.protobuf.Struct.decode(reader, reader.uint32());
43471
+ break;
43472
+ case 6:
43473
+ message.listValue = $root.google.protobuf.ListValue.decode(reader, reader.uint32());
43474
+ break;
43475
+ default:
43476
+ reader.skipType(tag & 7);
43477
+ break;
43478
+ }
43479
+ }
43480
+ return message;
43481
+ };
43482
+
43483
+ /**
43484
+ * Decodes a Value message from the specified reader or buffer, length delimited.
43485
+ * @function decodeDelimited
43486
+ * @memberof google.protobuf.Value
43487
+ * @static
43488
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43489
+ * @returns {google.protobuf.Value} Value
43490
+ * @throws {Error} If the payload is not a reader or valid buffer
43491
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43492
+ */
43493
+ Value.decodeDelimited = function decodeDelimited(reader) {
43494
+ if (!(reader instanceof $Reader))
43495
+ reader = new $Reader(reader);
43496
+ return this.decode(reader, reader.uint32());
43497
+ };
43498
+
43499
+ /**
43500
+ * Verifies a Value message.
43501
+ * @function verify
43502
+ * @memberof google.protobuf.Value
43503
+ * @static
43504
+ * @param {Object.<string,*>} message Plain object to verify
43505
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
43506
+ */
43507
+ Value.verify = function verify(message) {
43508
+ if (typeof message !== "object" || message === null)
43509
+ return "object expected";
43510
+ var properties = {};
43511
+ if (message.nullValue != null && message.hasOwnProperty("nullValue")) {
43512
+ properties.kind = 1;
43513
+ switch (message.nullValue) {
43514
+ default:
43515
+ return "nullValue: enum value expected";
43516
+ case 0:
43517
+ break;
43518
+ }
43519
+ }
43520
+ if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
43521
+ if (properties.kind === 1)
43522
+ return "kind: multiple values";
43523
+ properties.kind = 1;
43524
+ if (typeof message.numberValue !== "number")
43525
+ return "numberValue: number expected";
43526
+ }
43527
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
43528
+ if (properties.kind === 1)
43529
+ return "kind: multiple values";
43530
+ properties.kind = 1;
43531
+ if (!$util.isString(message.stringValue))
43532
+ return "stringValue: string expected";
43533
+ }
43534
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
43535
+ if (properties.kind === 1)
43536
+ return "kind: multiple values";
43537
+ properties.kind = 1;
43538
+ if (typeof message.boolValue !== "boolean")
43539
+ return "boolValue: boolean expected";
43540
+ }
43541
+ if (message.structValue != null && message.hasOwnProperty("structValue")) {
43542
+ if (properties.kind === 1)
43543
+ return "kind: multiple values";
43544
+ properties.kind = 1;
43545
+ {
43546
+ var error = $root.google.protobuf.Struct.verify(message.structValue);
43547
+ if (error)
43548
+ return "structValue." + error;
43549
+ }
43550
+ }
43551
+ if (message.listValue != null && message.hasOwnProperty("listValue")) {
43552
+ if (properties.kind === 1)
43553
+ return "kind: multiple values";
43554
+ properties.kind = 1;
43555
+ {
43556
+ var error = $root.google.protobuf.ListValue.verify(message.listValue);
43557
+ if (error)
43558
+ return "listValue." + error;
43559
+ }
43560
+ }
43561
+ return null;
43562
+ };
43563
+
43564
+ /**
43565
+ * Creates a Value message from a plain object. Also converts values to their respective internal types.
43566
+ * @function fromObject
43567
+ * @memberof google.protobuf.Value
43568
+ * @static
43569
+ * @param {Object.<string,*>} object Plain object
43570
+ * @returns {google.protobuf.Value} Value
43571
+ */
43572
+ Value.fromObject = function fromObject(object) {
43573
+ if (object instanceof $root.google.protobuf.Value)
43574
+ return object;
43575
+ var message = new $root.google.protobuf.Value();
43576
+ switch (object.nullValue) {
43577
+ case "NULL_VALUE":
43578
+ case 0:
43579
+ message.nullValue = 0;
43580
+ break;
43581
+ }
43582
+ if (object.numberValue != null)
43583
+ message.numberValue = Number(object.numberValue);
43584
+ if (object.stringValue != null)
43585
+ message.stringValue = String(object.stringValue);
43586
+ if (object.boolValue != null)
43587
+ message.boolValue = Boolean(object.boolValue);
43588
+ if (object.structValue != null) {
43589
+ if (typeof object.structValue !== "object")
43590
+ throw TypeError(".google.protobuf.Value.structValue: object expected");
43591
+ message.structValue = $root.google.protobuf.Struct.fromObject(object.structValue);
43592
+ }
43593
+ if (object.listValue != null) {
43594
+ if (typeof object.listValue !== "object")
43595
+ throw TypeError(".google.protobuf.Value.listValue: object expected");
43596
+ message.listValue = $root.google.protobuf.ListValue.fromObject(object.listValue);
43597
+ }
43598
+ return message;
43599
+ };
43600
+
43601
+ /**
43602
+ * Creates a plain object from a Value message. Also converts values to other types if specified.
43603
+ * @function toObject
43604
+ * @memberof google.protobuf.Value
43605
+ * @static
43606
+ * @param {google.protobuf.Value} message Value
43607
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43608
+ * @returns {Object.<string,*>} Plain object
43609
+ */
43610
+ Value.toObject = function toObject(message, options) {
43611
+ if (!options)
43612
+ options = {};
43613
+ var object = {};
43614
+ if (message.nullValue != null && message.hasOwnProperty("nullValue")) {
43615
+ object.nullValue = options.enums === String ? $root.google.protobuf.NullValue[message.nullValue] : message.nullValue;
43616
+ if (options.oneofs)
43617
+ object.kind = "nullValue";
43618
+ }
43619
+ if (message.numberValue != null && message.hasOwnProperty("numberValue")) {
43620
+ object.numberValue = options.json && !isFinite(message.numberValue) ? String(message.numberValue) : message.numberValue;
43621
+ if (options.oneofs)
43622
+ object.kind = "numberValue";
43623
+ }
43624
+ if (message.stringValue != null && message.hasOwnProperty("stringValue")) {
43625
+ object.stringValue = message.stringValue;
43626
+ if (options.oneofs)
43627
+ object.kind = "stringValue";
43628
+ }
43629
+ if (message.boolValue != null && message.hasOwnProperty("boolValue")) {
43630
+ object.boolValue = message.boolValue;
43631
+ if (options.oneofs)
43632
+ object.kind = "boolValue";
43633
+ }
43634
+ if (message.structValue != null && message.hasOwnProperty("structValue")) {
43635
+ object.structValue = $root.google.protobuf.Struct.toObject(message.structValue, options);
43636
+ if (options.oneofs)
43637
+ object.kind = "structValue";
43638
+ }
43639
+ if (message.listValue != null && message.hasOwnProperty("listValue")) {
43640
+ object.listValue = $root.google.protobuf.ListValue.toObject(message.listValue, options);
43641
+ if (options.oneofs)
43642
+ object.kind = "listValue";
43643
+ }
43644
+ return object;
43645
+ };
43646
+
43647
+ /**
43648
+ * Converts this Value to JSON.
43649
+ * @function toJSON
43650
+ * @memberof google.protobuf.Value
43651
+ * @instance
43652
+ * @returns {Object.<string,*>} JSON object
43653
+ */
43654
+ Value.prototype.toJSON = function toJSON() {
43655
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43656
+ };
43657
+
43658
+ return Value;
43659
+ })();
43660
+
43661
+ /**
43662
+ * NullValue enum.
43663
+ * @name google.protobuf.NullValue
43664
+ * @enum {number}
43665
+ * @property {number} NULL_VALUE=0 NULL_VALUE value
43666
+ */
43667
+ protobuf.NullValue = (function() {
43668
+ var valuesById = {}, values = Object.create(valuesById);
43669
+ values[valuesById[0] = "NULL_VALUE"] = 0;
43670
+ return values;
43671
+ })();
43672
+
43673
+ protobuf.ListValue = (function() {
43674
+
43675
+ /**
43676
+ * Properties of a ListValue.
43677
+ * @memberof google.protobuf
43678
+ * @interface IListValue
43679
+ * @property {Array.<google.protobuf.Value|google.protobuf.IValue>|null} [values] ListValue values
43680
+ */
43681
+
43682
+ /**
43683
+ * Constructs a new ListValue.
43684
+ * @memberof google.protobuf
43685
+ * @classdesc Represents a ListValue.
43686
+ * @constructor
43687
+ * @param {google.protobuf.IListValue=} [properties] Properties to set
43688
+ */
43689
+ function ListValue(properties) {
43690
+ this.values = [];
43691
+ if (properties)
43692
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
43693
+ if (properties[keys[i]] != null)
43694
+ this[keys[i]] = properties[keys[i]];
43695
+ }
43696
+
43697
+ /**
43698
+ * ListValue values.
43699
+ * @member {Array.<google.protobuf.Value>} values
43700
+ * @memberof google.protobuf.ListValue
43701
+ * @instance
43702
+ */
43703
+ ListValue.prototype.values = $util.emptyArray;
43704
+
43705
+ /**
43706
+ * Creates a new ListValue instance using the specified properties.
43707
+ * @function create
43708
+ * @memberof google.protobuf.ListValue
43709
+ * @static
43710
+ * @param {google.protobuf.IListValue=} [properties] Properties to set
43711
+ * @returns {google.protobuf.ListValue} ListValue instance
43712
+ */
43713
+ ListValue.create = function create(properties) {
43714
+ return ListValue.fromObject(properties);
43715
+ };
43716
+
43717
+ /**
43718
+ * Encodes the specified ListValue message. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
43719
+ * @function encode
43720
+ * @memberof google.protobuf.ListValue
43721
+ * @static
43722
+ * @param {google.protobuf.ListValue} message ListValue message or plain object to encode
43723
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43724
+ * @returns {$protobuf.Writer} Writer
43725
+ */
43726
+ ListValue.encode = function encode(message, writer) {
43727
+ if (!writer)
43728
+ writer = $Writer.create();
43729
+ if (message.values != null && message.values.length)
43730
+ for (var i = 0; i < message.values.length; ++i)
43731
+ $root.google.protobuf.Value.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
43732
+ return writer;
43733
+ };
43734
+
43735
+ /**
43736
+ * Encodes the specified ListValue message, length delimited. Does not implicitly {@link google.protobuf.ListValue.verify|verify} messages.
43737
+ * @function encodeDelimited
43738
+ * @memberof google.protobuf.ListValue
43739
+ * @static
43740
+ * @param {google.protobuf.ListValue} message ListValue message or plain object to encode
43741
+ * @param {$protobuf.Writer} [writer] Writer to encode to
43742
+ * @returns {$protobuf.Writer} Writer
43743
+ */
43744
+ ListValue.encodeDelimited = function encodeDelimited(message, writer) {
43745
+ return this.encode(message, writer).ldelim();
43746
+ };
43747
+
43748
+ /**
43749
+ * Decodes a ListValue message from the specified reader or buffer.
43750
+ * @function decode
43751
+ * @memberof google.protobuf.ListValue
43752
+ * @static
43753
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43754
+ * @param {number} [length] Message length if known beforehand
43755
+ * @returns {google.protobuf.ListValue} ListValue
43756
+ * @throws {Error} If the payload is not a reader or valid buffer
43757
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43758
+ */
43759
+ ListValue.decode = function decode(reader, length) {
43760
+ if (!(reader instanceof $Reader))
43761
+ reader = $Reader.create(reader);
43762
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.protobuf.ListValue();
43763
+ while (reader.pos < end) {
43764
+ var tag = reader.uint32();
43765
+ switch (tag >>> 3) {
43766
+ case 1:
43767
+ if (!(message.values && message.values.length))
43768
+ message.values = [];
43769
+ message.values.push($root.google.protobuf.Value.decode(reader, reader.uint32()));
43770
+ break;
43771
+ default:
43772
+ reader.skipType(tag & 7);
43773
+ break;
43774
+ }
43775
+ }
43776
+ return message;
43777
+ };
43778
+
43779
+ /**
43780
+ * Decodes a ListValue message from the specified reader or buffer, length delimited.
43781
+ * @function decodeDelimited
43782
+ * @memberof google.protobuf.ListValue
43783
+ * @static
43784
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
43785
+ * @returns {google.protobuf.ListValue} ListValue
43786
+ * @throws {Error} If the payload is not a reader or valid buffer
43787
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
43788
+ */
43789
+ ListValue.decodeDelimited = function decodeDelimited(reader) {
43790
+ if (!(reader instanceof $Reader))
43791
+ reader = new $Reader(reader);
43792
+ return this.decode(reader, reader.uint32());
43793
+ };
43794
+
43795
+ /**
43796
+ * Verifies a ListValue message.
43797
+ * @function verify
43798
+ * @memberof google.protobuf.ListValue
43799
+ * @static
43800
+ * @param {Object.<string,*>} message Plain object to verify
43801
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
43802
+ */
43803
+ ListValue.verify = function verify(message) {
43804
+ if (typeof message !== "object" || message === null)
43805
+ return "object expected";
43806
+ if (message.values != null && message.hasOwnProperty("values")) {
43807
+ if (!Array.isArray(message.values))
43808
+ return "values: array expected";
43809
+ for (var i = 0; i < message.values.length; ++i) {
43810
+ var error = $root.google.protobuf.Value.verify(message.values[i]);
43811
+ if (error)
43812
+ return "values." + error;
43813
+ }
43814
+ }
43815
+ return null;
43816
+ };
43817
+
43818
+ /**
43819
+ * Creates a ListValue message from a plain object. Also converts values to their respective internal types.
43820
+ * @function fromObject
43821
+ * @memberof google.protobuf.ListValue
43822
+ * @static
43823
+ * @param {Object.<string,*>} object Plain object
43824
+ * @returns {google.protobuf.ListValue} ListValue
43825
+ */
43826
+ ListValue.fromObject = function fromObject(object) {
43827
+ if (object instanceof $root.google.protobuf.ListValue)
43828
+ return object;
43829
+ var message = new $root.google.protobuf.ListValue();
43830
+ if (object.values) {
43831
+ if (!Array.isArray(object.values))
43832
+ throw TypeError(".google.protobuf.ListValue.values: array expected");
43833
+ message.values = [];
43834
+ for (var i = 0; i < object.values.length; ++i) {
43835
+ if (typeof object.values[i] !== "object")
43836
+ throw TypeError(".google.protobuf.ListValue.values: object expected");
43837
+ message.values[i] = $root.google.protobuf.Value.fromObject(object.values[i]);
43838
+ }
43839
+ }
43840
+ return message;
43841
+ };
43842
+
43843
+ /**
43844
+ * Creates a plain object from a ListValue message. Also converts values to other types if specified.
43845
+ * @function toObject
43846
+ * @memberof google.protobuf.ListValue
43847
+ * @static
43848
+ * @param {google.protobuf.ListValue} message ListValue
43849
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
43850
+ * @returns {Object.<string,*>} Plain object
43851
+ */
43852
+ ListValue.toObject = function toObject(message, options) {
43853
+ if (!options)
43854
+ options = {};
43855
+ var object = {};
43856
+ if (options.arrays || options.defaults)
43857
+ object.values = [];
43858
+ if (message.values && message.values.length) {
43859
+ object.values = [];
43860
+ for (var j = 0; j < message.values.length; ++j)
43861
+ object.values[j] = $root.google.protobuf.Value.toObject(message.values[j], options);
43862
+ }
43863
+ return object;
43864
+ };
43865
+
43866
+ /**
43867
+ * Converts this ListValue to JSON.
43868
+ * @function toJSON
43869
+ * @memberof google.protobuf.ListValue
43870
+ * @instance
43871
+ * @returns {Object.<string,*>} JSON object
43872
+ */
43873
+ ListValue.prototype.toJSON = function toJSON() {
43874
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
43875
+ };
43876
+
43877
+ return ListValue;
43878
+ })();
43879
+
42399
43880
  return protobuf;
42400
43881
  })();
42401
43882