core-3nweb-client-lib 0.43.20 → 0.44.1

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.
Files changed (42) hide show
  1. package/build/api-defs/files.d.ts +233 -160
  2. package/build/core/index.d.ts +1 -0
  3. package/build/core/index.js +3 -2
  4. package/build/core/storage/index.d.ts +1 -0
  5. package/build/core/storage/index.js +4 -1
  6. package/build/core/storage/synced/storage.d.ts +1 -0
  7. package/build/core/storage/synced/storage.js +4 -1
  8. package/build/core-ipc/file.d.ts +47 -0
  9. package/build/core-ipc/file.js +121 -2
  10. package/build/core-ipc/fs.js +55 -62
  11. package/build/lib-client/asmail/recipient.js +4 -2
  12. package/build/lib-client/cryptor/cryptor-wasm.js +1 -1
  13. package/build/lib-client/cryptor/cryptor.wasm +0 -0
  14. package/build/lib-client/fs-utils/files.js +5 -1
  15. package/build/lib-client/ws-utils.js +2 -7
  16. package/build/lib-client/xsp-fs/common.d.ts +2 -0
  17. package/build/lib-client/xsp-fs/common.js +2 -1
  18. package/build/lib-client/xsp-fs/exceptions.js +1 -1
  19. package/build/lib-client/xsp-fs/file-node.d.ts +3 -0
  20. package/build/lib-client/xsp-fs/file-node.js +55 -3
  21. package/build/lib-client/xsp-fs/file.d.ts +3 -0
  22. package/build/lib-client/xsp-fs/file.js +5 -1
  23. package/build/lib-client/xsp-fs/folder-node.d.ts +5 -4
  24. package/build/lib-client/xsp-fs/folder-node.js +257 -368
  25. package/build/lib-client/xsp-fs/fs.d.ts +6 -2
  26. package/build/lib-client/xsp-fs/fs.js +33 -2
  27. package/build/lib-client/xsp-fs/link-node.js +1 -1
  28. package/build/lib-client/xsp-fs/node-in-fs.d.ts +21 -0
  29. package/build/lib-client/xsp-fs/node-in-fs.js +172 -3
  30. package/build/lib-common/exceptions/file.d.ts +1 -1
  31. package/build/lib-common/exceptions/file.js +3 -2
  32. package/build/lib-common/ipc/generic-ipc.js +33 -28
  33. package/build/lib-common/ipc/ws-ipc.d.ts +2 -0
  34. package/build/lib-common/ipc/ws-ipc.js +35 -8
  35. package/build/lib-common/map-of-sets.d.ts +1 -0
  36. package/build/lib-common/map-of-sets.js +3 -0
  37. package/build/protos/asmail.proto.js +3315 -883
  38. package/build/protos/file.proto.js +1974 -0
  39. package/build/protos/fs.proto.js +3301 -869
  40. package/package.json +1 -1
  41. package/protos/file.proto +44 -0
  42. package/protos/fs.proto +42 -27
@@ -9474,6 +9474,1980 @@ $root.file = (function() {
9474
9474
  return OptionsToAdopteRemote;
9475
9475
  })();
9476
9476
 
9477
+ file.DiffCurrentAndRemoteRequestBody = (function() {
9478
+
9479
+ /**
9480
+ * Properties of a DiffCurrentAndRemoteRequestBody.
9481
+ * @memberof file
9482
+ * @interface IDiffCurrentAndRemoteRequestBody
9483
+ * @property {file.IOptionsToDiffFileVersions|null} [opts] DiffCurrentAndRemoteRequestBody opts
9484
+ */
9485
+
9486
+ /**
9487
+ * Constructs a new DiffCurrentAndRemoteRequestBody.
9488
+ * @memberof file
9489
+ * @classdesc Represents a DiffCurrentAndRemoteRequestBody.
9490
+ * @implements IDiffCurrentAndRemoteRequestBody
9491
+ * @constructor
9492
+ * @param {file.IDiffCurrentAndRemoteRequestBody=} [properties] Properties to set
9493
+ */
9494
+ function DiffCurrentAndRemoteRequestBody(properties) {
9495
+ if (properties)
9496
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9497
+ if (properties[keys[i]] != null)
9498
+ this[keys[i]] = properties[keys[i]];
9499
+ }
9500
+
9501
+ /**
9502
+ * DiffCurrentAndRemoteRequestBody opts.
9503
+ * @member {file.IOptionsToDiffFileVersions|null|undefined} opts
9504
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9505
+ * @instance
9506
+ */
9507
+ DiffCurrentAndRemoteRequestBody.prototype.opts = null;
9508
+
9509
+ /**
9510
+ * Creates a new DiffCurrentAndRemoteRequestBody instance using the specified properties.
9511
+ * @function create
9512
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9513
+ * @static
9514
+ * @param {file.IDiffCurrentAndRemoteRequestBody=} [properties] Properties to set
9515
+ * @returns {file.DiffCurrentAndRemoteRequestBody} DiffCurrentAndRemoteRequestBody instance
9516
+ */
9517
+ DiffCurrentAndRemoteRequestBody.create = function create(properties) {
9518
+ return new DiffCurrentAndRemoteRequestBody(properties);
9519
+ };
9520
+
9521
+ /**
9522
+ * Encodes the specified DiffCurrentAndRemoteRequestBody message. Does not implicitly {@link file.DiffCurrentAndRemoteRequestBody.verify|verify} messages.
9523
+ * @function encode
9524
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9525
+ * @static
9526
+ * @param {file.IDiffCurrentAndRemoteRequestBody} message DiffCurrentAndRemoteRequestBody message or plain object to encode
9527
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9528
+ * @returns {$protobuf.Writer} Writer
9529
+ */
9530
+ DiffCurrentAndRemoteRequestBody.encode = function encode(message, writer) {
9531
+ if (!writer)
9532
+ writer = $Writer.create();
9533
+ if (message.opts != null && Object.hasOwnProperty.call(message, "opts"))
9534
+ $root.file.OptionsToDiffFileVersions.encode(message.opts, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9535
+ return writer;
9536
+ };
9537
+
9538
+ /**
9539
+ * Encodes the specified DiffCurrentAndRemoteRequestBody message, length delimited. Does not implicitly {@link file.DiffCurrentAndRemoteRequestBody.verify|verify} messages.
9540
+ * @function encodeDelimited
9541
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9542
+ * @static
9543
+ * @param {file.IDiffCurrentAndRemoteRequestBody} message DiffCurrentAndRemoteRequestBody message or plain object to encode
9544
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9545
+ * @returns {$protobuf.Writer} Writer
9546
+ */
9547
+ DiffCurrentAndRemoteRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
9548
+ return this.encode(message, writer).ldelim();
9549
+ };
9550
+
9551
+ /**
9552
+ * Decodes a DiffCurrentAndRemoteRequestBody message from the specified reader or buffer.
9553
+ * @function decode
9554
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9555
+ * @static
9556
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9557
+ * @param {number} [length] Message length if known beforehand
9558
+ * @returns {file.DiffCurrentAndRemoteRequestBody} DiffCurrentAndRemoteRequestBody
9559
+ * @throws {Error} If the payload is not a reader or valid buffer
9560
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9561
+ */
9562
+ DiffCurrentAndRemoteRequestBody.decode = function decode(reader, length, error) {
9563
+ if (!(reader instanceof $Reader))
9564
+ reader = $Reader.create(reader);
9565
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.DiffCurrentAndRemoteRequestBody();
9566
+ while (reader.pos < end) {
9567
+ var tag = reader.uint32();
9568
+ if (tag === error)
9569
+ break;
9570
+ switch (tag >>> 3) {
9571
+ case 1: {
9572
+ message.opts = $root.file.OptionsToDiffFileVersions.decode(reader, reader.uint32());
9573
+ break;
9574
+ }
9575
+ default:
9576
+ reader.skipType(tag & 7);
9577
+ break;
9578
+ }
9579
+ }
9580
+ return message;
9581
+ };
9582
+
9583
+ /**
9584
+ * Decodes a DiffCurrentAndRemoteRequestBody message from the specified reader or buffer, length delimited.
9585
+ * @function decodeDelimited
9586
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9587
+ * @static
9588
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9589
+ * @returns {file.DiffCurrentAndRemoteRequestBody} DiffCurrentAndRemoteRequestBody
9590
+ * @throws {Error} If the payload is not a reader or valid buffer
9591
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9592
+ */
9593
+ DiffCurrentAndRemoteRequestBody.decodeDelimited = function decodeDelimited(reader) {
9594
+ if (!(reader instanceof $Reader))
9595
+ reader = new $Reader(reader);
9596
+ return this.decode(reader, reader.uint32());
9597
+ };
9598
+
9599
+ /**
9600
+ * Verifies a DiffCurrentAndRemoteRequestBody message.
9601
+ * @function verify
9602
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9603
+ * @static
9604
+ * @param {Object.<string,*>} message Plain object to verify
9605
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9606
+ */
9607
+ DiffCurrentAndRemoteRequestBody.verify = function verify(message) {
9608
+ if (typeof message !== "object" || message === null)
9609
+ return "object expected";
9610
+ if (message.opts != null && message.hasOwnProperty("opts")) {
9611
+ var error = $root.file.OptionsToDiffFileVersions.verify(message.opts);
9612
+ if (error)
9613
+ return "opts." + error;
9614
+ }
9615
+ return null;
9616
+ };
9617
+
9618
+ /**
9619
+ * Creates a DiffCurrentAndRemoteRequestBody message from a plain object. Also converts values to their respective internal types.
9620
+ * @function fromObject
9621
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9622
+ * @static
9623
+ * @param {Object.<string,*>} object Plain object
9624
+ * @returns {file.DiffCurrentAndRemoteRequestBody} DiffCurrentAndRemoteRequestBody
9625
+ */
9626
+ DiffCurrentAndRemoteRequestBody.fromObject = function fromObject(object) {
9627
+ if (object instanceof $root.file.DiffCurrentAndRemoteRequestBody)
9628
+ return object;
9629
+ var message = new $root.file.DiffCurrentAndRemoteRequestBody();
9630
+ if (object.opts != null) {
9631
+ if (typeof object.opts !== "object")
9632
+ throw TypeError(".file.DiffCurrentAndRemoteRequestBody.opts: object expected");
9633
+ message.opts = $root.file.OptionsToDiffFileVersions.fromObject(object.opts);
9634
+ }
9635
+ return message;
9636
+ };
9637
+
9638
+ /**
9639
+ * Creates a plain object from a DiffCurrentAndRemoteRequestBody message. Also converts values to other types if specified.
9640
+ * @function toObject
9641
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9642
+ * @static
9643
+ * @param {file.DiffCurrentAndRemoteRequestBody} message DiffCurrentAndRemoteRequestBody
9644
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9645
+ * @returns {Object.<string,*>} Plain object
9646
+ */
9647
+ DiffCurrentAndRemoteRequestBody.toObject = function toObject(message, options) {
9648
+ if (!options)
9649
+ options = {};
9650
+ var object = {};
9651
+ if (options.defaults)
9652
+ object.opts = null;
9653
+ if (message.opts != null && message.hasOwnProperty("opts"))
9654
+ object.opts = $root.file.OptionsToDiffFileVersions.toObject(message.opts, options);
9655
+ return object;
9656
+ };
9657
+
9658
+ /**
9659
+ * Converts this DiffCurrentAndRemoteRequestBody to JSON.
9660
+ * @function toJSON
9661
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9662
+ * @instance
9663
+ * @returns {Object.<string,*>} JSON object
9664
+ */
9665
+ DiffCurrentAndRemoteRequestBody.prototype.toJSON = function toJSON() {
9666
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9667
+ };
9668
+
9669
+ /**
9670
+ * Gets the default type url for DiffCurrentAndRemoteRequestBody
9671
+ * @function getTypeUrl
9672
+ * @memberof file.DiffCurrentAndRemoteRequestBody
9673
+ * @static
9674
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9675
+ * @returns {string} The default type url
9676
+ */
9677
+ DiffCurrentAndRemoteRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9678
+ if (typeUrlPrefix === undefined) {
9679
+ typeUrlPrefix = "type.googleapis.com";
9680
+ }
9681
+ return typeUrlPrefix + "/file.DiffCurrentAndRemoteRequestBody";
9682
+ };
9683
+
9684
+ return DiffCurrentAndRemoteRequestBody;
9685
+ })();
9686
+
9687
+ file.DiffCurrentAndRemoteReplyBody = (function() {
9688
+
9689
+ /**
9690
+ * Properties of a DiffCurrentAndRemoteReplyBody.
9691
+ * @memberof file
9692
+ * @interface IDiffCurrentAndRemoteReplyBody
9693
+ * @property {file.IFileDiff|null} [diff] DiffCurrentAndRemoteReplyBody diff
9694
+ */
9695
+
9696
+ /**
9697
+ * Constructs a new DiffCurrentAndRemoteReplyBody.
9698
+ * @memberof file
9699
+ * @classdesc Represents a DiffCurrentAndRemoteReplyBody.
9700
+ * @implements IDiffCurrentAndRemoteReplyBody
9701
+ * @constructor
9702
+ * @param {file.IDiffCurrentAndRemoteReplyBody=} [properties] Properties to set
9703
+ */
9704
+ function DiffCurrentAndRemoteReplyBody(properties) {
9705
+ if (properties)
9706
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9707
+ if (properties[keys[i]] != null)
9708
+ this[keys[i]] = properties[keys[i]];
9709
+ }
9710
+
9711
+ /**
9712
+ * DiffCurrentAndRemoteReplyBody diff.
9713
+ * @member {file.IFileDiff|null|undefined} diff
9714
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9715
+ * @instance
9716
+ */
9717
+ DiffCurrentAndRemoteReplyBody.prototype.diff = null;
9718
+
9719
+ /**
9720
+ * Creates a new DiffCurrentAndRemoteReplyBody instance using the specified properties.
9721
+ * @function create
9722
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9723
+ * @static
9724
+ * @param {file.IDiffCurrentAndRemoteReplyBody=} [properties] Properties to set
9725
+ * @returns {file.DiffCurrentAndRemoteReplyBody} DiffCurrentAndRemoteReplyBody instance
9726
+ */
9727
+ DiffCurrentAndRemoteReplyBody.create = function create(properties) {
9728
+ return new DiffCurrentAndRemoteReplyBody(properties);
9729
+ };
9730
+
9731
+ /**
9732
+ * Encodes the specified DiffCurrentAndRemoteReplyBody message. Does not implicitly {@link file.DiffCurrentAndRemoteReplyBody.verify|verify} messages.
9733
+ * @function encode
9734
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9735
+ * @static
9736
+ * @param {file.IDiffCurrentAndRemoteReplyBody} message DiffCurrentAndRemoteReplyBody message or plain object to encode
9737
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9738
+ * @returns {$protobuf.Writer} Writer
9739
+ */
9740
+ DiffCurrentAndRemoteReplyBody.encode = function encode(message, writer) {
9741
+ if (!writer)
9742
+ writer = $Writer.create();
9743
+ if (message.diff != null && Object.hasOwnProperty.call(message, "diff"))
9744
+ $root.file.FileDiff.encode(message.diff, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9745
+ return writer;
9746
+ };
9747
+
9748
+ /**
9749
+ * Encodes the specified DiffCurrentAndRemoteReplyBody message, length delimited. Does not implicitly {@link file.DiffCurrentAndRemoteReplyBody.verify|verify} messages.
9750
+ * @function encodeDelimited
9751
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9752
+ * @static
9753
+ * @param {file.IDiffCurrentAndRemoteReplyBody} message DiffCurrentAndRemoteReplyBody message or plain object to encode
9754
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9755
+ * @returns {$protobuf.Writer} Writer
9756
+ */
9757
+ DiffCurrentAndRemoteReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
9758
+ return this.encode(message, writer).ldelim();
9759
+ };
9760
+
9761
+ /**
9762
+ * Decodes a DiffCurrentAndRemoteReplyBody message from the specified reader or buffer.
9763
+ * @function decode
9764
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9765
+ * @static
9766
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9767
+ * @param {number} [length] Message length if known beforehand
9768
+ * @returns {file.DiffCurrentAndRemoteReplyBody} DiffCurrentAndRemoteReplyBody
9769
+ * @throws {Error} If the payload is not a reader or valid buffer
9770
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9771
+ */
9772
+ DiffCurrentAndRemoteReplyBody.decode = function decode(reader, length, error) {
9773
+ if (!(reader instanceof $Reader))
9774
+ reader = $Reader.create(reader);
9775
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.DiffCurrentAndRemoteReplyBody();
9776
+ while (reader.pos < end) {
9777
+ var tag = reader.uint32();
9778
+ if (tag === error)
9779
+ break;
9780
+ switch (tag >>> 3) {
9781
+ case 1: {
9782
+ message.diff = $root.file.FileDiff.decode(reader, reader.uint32());
9783
+ break;
9784
+ }
9785
+ default:
9786
+ reader.skipType(tag & 7);
9787
+ break;
9788
+ }
9789
+ }
9790
+ return message;
9791
+ };
9792
+
9793
+ /**
9794
+ * Decodes a DiffCurrentAndRemoteReplyBody message from the specified reader or buffer, length delimited.
9795
+ * @function decodeDelimited
9796
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9797
+ * @static
9798
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9799
+ * @returns {file.DiffCurrentAndRemoteReplyBody} DiffCurrentAndRemoteReplyBody
9800
+ * @throws {Error} If the payload is not a reader or valid buffer
9801
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9802
+ */
9803
+ DiffCurrentAndRemoteReplyBody.decodeDelimited = function decodeDelimited(reader) {
9804
+ if (!(reader instanceof $Reader))
9805
+ reader = new $Reader(reader);
9806
+ return this.decode(reader, reader.uint32());
9807
+ };
9808
+
9809
+ /**
9810
+ * Verifies a DiffCurrentAndRemoteReplyBody message.
9811
+ * @function verify
9812
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9813
+ * @static
9814
+ * @param {Object.<string,*>} message Plain object to verify
9815
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
9816
+ */
9817
+ DiffCurrentAndRemoteReplyBody.verify = function verify(message) {
9818
+ if (typeof message !== "object" || message === null)
9819
+ return "object expected";
9820
+ if (message.diff != null && message.hasOwnProperty("diff")) {
9821
+ var error = $root.file.FileDiff.verify(message.diff);
9822
+ if (error)
9823
+ return "diff." + error;
9824
+ }
9825
+ return null;
9826
+ };
9827
+
9828
+ /**
9829
+ * Creates a DiffCurrentAndRemoteReplyBody message from a plain object. Also converts values to their respective internal types.
9830
+ * @function fromObject
9831
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9832
+ * @static
9833
+ * @param {Object.<string,*>} object Plain object
9834
+ * @returns {file.DiffCurrentAndRemoteReplyBody} DiffCurrentAndRemoteReplyBody
9835
+ */
9836
+ DiffCurrentAndRemoteReplyBody.fromObject = function fromObject(object) {
9837
+ if (object instanceof $root.file.DiffCurrentAndRemoteReplyBody)
9838
+ return object;
9839
+ var message = new $root.file.DiffCurrentAndRemoteReplyBody();
9840
+ if (object.diff != null) {
9841
+ if (typeof object.diff !== "object")
9842
+ throw TypeError(".file.DiffCurrentAndRemoteReplyBody.diff: object expected");
9843
+ message.diff = $root.file.FileDiff.fromObject(object.diff);
9844
+ }
9845
+ return message;
9846
+ };
9847
+
9848
+ /**
9849
+ * Creates a plain object from a DiffCurrentAndRemoteReplyBody message. Also converts values to other types if specified.
9850
+ * @function toObject
9851
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9852
+ * @static
9853
+ * @param {file.DiffCurrentAndRemoteReplyBody} message DiffCurrentAndRemoteReplyBody
9854
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
9855
+ * @returns {Object.<string,*>} Plain object
9856
+ */
9857
+ DiffCurrentAndRemoteReplyBody.toObject = function toObject(message, options) {
9858
+ if (!options)
9859
+ options = {};
9860
+ var object = {};
9861
+ if (options.defaults)
9862
+ object.diff = null;
9863
+ if (message.diff != null && message.hasOwnProperty("diff"))
9864
+ object.diff = $root.file.FileDiff.toObject(message.diff, options);
9865
+ return object;
9866
+ };
9867
+
9868
+ /**
9869
+ * Converts this DiffCurrentAndRemoteReplyBody to JSON.
9870
+ * @function toJSON
9871
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9872
+ * @instance
9873
+ * @returns {Object.<string,*>} JSON object
9874
+ */
9875
+ DiffCurrentAndRemoteReplyBody.prototype.toJSON = function toJSON() {
9876
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
9877
+ };
9878
+
9879
+ /**
9880
+ * Gets the default type url for DiffCurrentAndRemoteReplyBody
9881
+ * @function getTypeUrl
9882
+ * @memberof file.DiffCurrentAndRemoteReplyBody
9883
+ * @static
9884
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
9885
+ * @returns {string} The default type url
9886
+ */
9887
+ DiffCurrentAndRemoteReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
9888
+ if (typeUrlPrefix === undefined) {
9889
+ typeUrlPrefix = "type.googleapis.com";
9890
+ }
9891
+ return typeUrlPrefix + "/file.DiffCurrentAndRemoteReplyBody";
9892
+ };
9893
+
9894
+ return DiffCurrentAndRemoteReplyBody;
9895
+ })();
9896
+
9897
+ file.OptionsToDiffFileVersions = (function() {
9898
+
9899
+ /**
9900
+ * Properties of an OptionsToDiffFileVersions.
9901
+ * @memberof file
9902
+ * @interface IOptionsToDiffFileVersions
9903
+ * @property {common.IUInt64Value|null} [remoteVersion] OptionsToDiffFileVersions remoteVersion
9904
+ * @property {common.IBooleanValue|null} [compareContentIfSameMTime] OptionsToDiffFileVersions compareContentIfSameMTime
9905
+ */
9906
+
9907
+ /**
9908
+ * Constructs a new OptionsToDiffFileVersions.
9909
+ * @memberof file
9910
+ * @classdesc Represents an OptionsToDiffFileVersions.
9911
+ * @implements IOptionsToDiffFileVersions
9912
+ * @constructor
9913
+ * @param {file.IOptionsToDiffFileVersions=} [properties] Properties to set
9914
+ */
9915
+ function OptionsToDiffFileVersions(properties) {
9916
+ if (properties)
9917
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
9918
+ if (properties[keys[i]] != null)
9919
+ this[keys[i]] = properties[keys[i]];
9920
+ }
9921
+
9922
+ /**
9923
+ * OptionsToDiffFileVersions remoteVersion.
9924
+ * @member {common.IUInt64Value|null|undefined} remoteVersion
9925
+ * @memberof file.OptionsToDiffFileVersions
9926
+ * @instance
9927
+ */
9928
+ OptionsToDiffFileVersions.prototype.remoteVersion = null;
9929
+
9930
+ /**
9931
+ * OptionsToDiffFileVersions compareContentIfSameMTime.
9932
+ * @member {common.IBooleanValue|null|undefined} compareContentIfSameMTime
9933
+ * @memberof file.OptionsToDiffFileVersions
9934
+ * @instance
9935
+ */
9936
+ OptionsToDiffFileVersions.prototype.compareContentIfSameMTime = null;
9937
+
9938
+ /**
9939
+ * Creates a new OptionsToDiffFileVersions instance using the specified properties.
9940
+ * @function create
9941
+ * @memberof file.OptionsToDiffFileVersions
9942
+ * @static
9943
+ * @param {file.IOptionsToDiffFileVersions=} [properties] Properties to set
9944
+ * @returns {file.OptionsToDiffFileVersions} OptionsToDiffFileVersions instance
9945
+ */
9946
+ OptionsToDiffFileVersions.create = function create(properties) {
9947
+ return new OptionsToDiffFileVersions(properties);
9948
+ };
9949
+
9950
+ /**
9951
+ * Encodes the specified OptionsToDiffFileVersions message. Does not implicitly {@link file.OptionsToDiffFileVersions.verify|verify} messages.
9952
+ * @function encode
9953
+ * @memberof file.OptionsToDiffFileVersions
9954
+ * @static
9955
+ * @param {file.IOptionsToDiffFileVersions} message OptionsToDiffFileVersions message or plain object to encode
9956
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9957
+ * @returns {$protobuf.Writer} Writer
9958
+ */
9959
+ OptionsToDiffFileVersions.encode = function encode(message, writer) {
9960
+ if (!writer)
9961
+ writer = $Writer.create();
9962
+ if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
9963
+ $root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
9964
+ if (message.compareContentIfSameMTime != null && Object.hasOwnProperty.call(message, "compareContentIfSameMTime"))
9965
+ $root.common.BooleanValue.encode(message.compareContentIfSameMTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
9966
+ return writer;
9967
+ };
9968
+
9969
+ /**
9970
+ * Encodes the specified OptionsToDiffFileVersions message, length delimited. Does not implicitly {@link file.OptionsToDiffFileVersions.verify|verify} messages.
9971
+ * @function encodeDelimited
9972
+ * @memberof file.OptionsToDiffFileVersions
9973
+ * @static
9974
+ * @param {file.IOptionsToDiffFileVersions} message OptionsToDiffFileVersions message or plain object to encode
9975
+ * @param {$protobuf.Writer} [writer] Writer to encode to
9976
+ * @returns {$protobuf.Writer} Writer
9977
+ */
9978
+ OptionsToDiffFileVersions.encodeDelimited = function encodeDelimited(message, writer) {
9979
+ return this.encode(message, writer).ldelim();
9980
+ };
9981
+
9982
+ /**
9983
+ * Decodes an OptionsToDiffFileVersions message from the specified reader or buffer.
9984
+ * @function decode
9985
+ * @memberof file.OptionsToDiffFileVersions
9986
+ * @static
9987
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
9988
+ * @param {number} [length] Message length if known beforehand
9989
+ * @returns {file.OptionsToDiffFileVersions} OptionsToDiffFileVersions
9990
+ * @throws {Error} If the payload is not a reader or valid buffer
9991
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
9992
+ */
9993
+ OptionsToDiffFileVersions.decode = function decode(reader, length, error) {
9994
+ if (!(reader instanceof $Reader))
9995
+ reader = $Reader.create(reader);
9996
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.OptionsToDiffFileVersions();
9997
+ while (reader.pos < end) {
9998
+ var tag = reader.uint32();
9999
+ if (tag === error)
10000
+ break;
10001
+ switch (tag >>> 3) {
10002
+ case 1: {
10003
+ message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
10004
+ break;
10005
+ }
10006
+ case 2: {
10007
+ message.compareContentIfSameMTime = $root.common.BooleanValue.decode(reader, reader.uint32());
10008
+ break;
10009
+ }
10010
+ default:
10011
+ reader.skipType(tag & 7);
10012
+ break;
10013
+ }
10014
+ }
10015
+ return message;
10016
+ };
10017
+
10018
+ /**
10019
+ * Decodes an OptionsToDiffFileVersions message from the specified reader or buffer, length delimited.
10020
+ * @function decodeDelimited
10021
+ * @memberof file.OptionsToDiffFileVersions
10022
+ * @static
10023
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10024
+ * @returns {file.OptionsToDiffFileVersions} OptionsToDiffFileVersions
10025
+ * @throws {Error} If the payload is not a reader or valid buffer
10026
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10027
+ */
10028
+ OptionsToDiffFileVersions.decodeDelimited = function decodeDelimited(reader) {
10029
+ if (!(reader instanceof $Reader))
10030
+ reader = new $Reader(reader);
10031
+ return this.decode(reader, reader.uint32());
10032
+ };
10033
+
10034
+ /**
10035
+ * Verifies an OptionsToDiffFileVersions message.
10036
+ * @function verify
10037
+ * @memberof file.OptionsToDiffFileVersions
10038
+ * @static
10039
+ * @param {Object.<string,*>} message Plain object to verify
10040
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10041
+ */
10042
+ OptionsToDiffFileVersions.verify = function verify(message) {
10043
+ if (typeof message !== "object" || message === null)
10044
+ return "object expected";
10045
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
10046
+ var error = $root.common.UInt64Value.verify(message.remoteVersion);
10047
+ if (error)
10048
+ return "remoteVersion." + error;
10049
+ }
10050
+ if (message.compareContentIfSameMTime != null && message.hasOwnProperty("compareContentIfSameMTime")) {
10051
+ var error = $root.common.BooleanValue.verify(message.compareContentIfSameMTime);
10052
+ if (error)
10053
+ return "compareContentIfSameMTime." + error;
10054
+ }
10055
+ return null;
10056
+ };
10057
+
10058
+ /**
10059
+ * Creates an OptionsToDiffFileVersions message from a plain object. Also converts values to their respective internal types.
10060
+ * @function fromObject
10061
+ * @memberof file.OptionsToDiffFileVersions
10062
+ * @static
10063
+ * @param {Object.<string,*>} object Plain object
10064
+ * @returns {file.OptionsToDiffFileVersions} OptionsToDiffFileVersions
10065
+ */
10066
+ OptionsToDiffFileVersions.fromObject = function fromObject(object) {
10067
+ if (object instanceof $root.file.OptionsToDiffFileVersions)
10068
+ return object;
10069
+ var message = new $root.file.OptionsToDiffFileVersions();
10070
+ if (object.remoteVersion != null) {
10071
+ if (typeof object.remoteVersion !== "object")
10072
+ throw TypeError(".file.OptionsToDiffFileVersions.remoteVersion: object expected");
10073
+ message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
10074
+ }
10075
+ if (object.compareContentIfSameMTime != null) {
10076
+ if (typeof object.compareContentIfSameMTime !== "object")
10077
+ throw TypeError(".file.OptionsToDiffFileVersions.compareContentIfSameMTime: object expected");
10078
+ message.compareContentIfSameMTime = $root.common.BooleanValue.fromObject(object.compareContentIfSameMTime);
10079
+ }
10080
+ return message;
10081
+ };
10082
+
10083
+ /**
10084
+ * Creates a plain object from an OptionsToDiffFileVersions message. Also converts values to other types if specified.
10085
+ * @function toObject
10086
+ * @memberof file.OptionsToDiffFileVersions
10087
+ * @static
10088
+ * @param {file.OptionsToDiffFileVersions} message OptionsToDiffFileVersions
10089
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10090
+ * @returns {Object.<string,*>} Plain object
10091
+ */
10092
+ OptionsToDiffFileVersions.toObject = function toObject(message, options) {
10093
+ if (!options)
10094
+ options = {};
10095
+ var object = {};
10096
+ if (options.defaults) {
10097
+ object.remoteVersion = null;
10098
+ object.compareContentIfSameMTime = null;
10099
+ }
10100
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
10101
+ object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
10102
+ if (message.compareContentIfSameMTime != null && message.hasOwnProperty("compareContentIfSameMTime"))
10103
+ object.compareContentIfSameMTime = $root.common.BooleanValue.toObject(message.compareContentIfSameMTime, options);
10104
+ return object;
10105
+ };
10106
+
10107
+ /**
10108
+ * Converts this OptionsToDiffFileVersions to JSON.
10109
+ * @function toJSON
10110
+ * @memberof file.OptionsToDiffFileVersions
10111
+ * @instance
10112
+ * @returns {Object.<string,*>} JSON object
10113
+ */
10114
+ OptionsToDiffFileVersions.prototype.toJSON = function toJSON() {
10115
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10116
+ };
10117
+
10118
+ /**
10119
+ * Gets the default type url for OptionsToDiffFileVersions
10120
+ * @function getTypeUrl
10121
+ * @memberof file.OptionsToDiffFileVersions
10122
+ * @static
10123
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10124
+ * @returns {string} The default type url
10125
+ */
10126
+ OptionsToDiffFileVersions.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10127
+ if (typeUrlPrefix === undefined) {
10128
+ typeUrlPrefix = "type.googleapis.com";
10129
+ }
10130
+ return typeUrlPrefix + "/file.OptionsToDiffFileVersions";
10131
+ };
10132
+
10133
+ return OptionsToDiffFileVersions;
10134
+ })();
10135
+
10136
+ file.TimeStampsDiff = (function() {
10137
+
10138
+ /**
10139
+ * Properties of a TimeStampsDiff.
10140
+ * @memberof file
10141
+ * @interface ITimeStampsDiff
10142
+ * @property {number|Long|null} [current] TimeStampsDiff current
10143
+ * @property {number|Long|null} [remote] TimeStampsDiff remote
10144
+ * @property {number|Long|null} [synced] TimeStampsDiff synced
10145
+ */
10146
+
10147
+ /**
10148
+ * Constructs a new TimeStampsDiff.
10149
+ * @memberof file
10150
+ * @classdesc Represents a TimeStampsDiff.
10151
+ * @implements ITimeStampsDiff
10152
+ * @constructor
10153
+ * @param {file.ITimeStampsDiff=} [properties] Properties to set
10154
+ */
10155
+ function TimeStampsDiff(properties) {
10156
+ if (properties)
10157
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10158
+ if (properties[keys[i]] != null)
10159
+ this[keys[i]] = properties[keys[i]];
10160
+ }
10161
+
10162
+ /**
10163
+ * TimeStampsDiff current.
10164
+ * @member {number|Long} current
10165
+ * @memberof file.TimeStampsDiff
10166
+ * @instance
10167
+ */
10168
+ TimeStampsDiff.prototype.current = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10169
+
10170
+ /**
10171
+ * TimeStampsDiff remote.
10172
+ * @member {number|Long} remote
10173
+ * @memberof file.TimeStampsDiff
10174
+ * @instance
10175
+ */
10176
+ TimeStampsDiff.prototype.remote = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10177
+
10178
+ /**
10179
+ * TimeStampsDiff synced.
10180
+ * @member {number|Long} synced
10181
+ * @memberof file.TimeStampsDiff
10182
+ * @instance
10183
+ */
10184
+ TimeStampsDiff.prototype.synced = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10185
+
10186
+ /**
10187
+ * Creates a new TimeStampsDiff instance using the specified properties.
10188
+ * @function create
10189
+ * @memberof file.TimeStampsDiff
10190
+ * @static
10191
+ * @param {file.ITimeStampsDiff=} [properties] Properties to set
10192
+ * @returns {file.TimeStampsDiff} TimeStampsDiff instance
10193
+ */
10194
+ TimeStampsDiff.create = function create(properties) {
10195
+ return new TimeStampsDiff(properties);
10196
+ };
10197
+
10198
+ /**
10199
+ * Encodes the specified TimeStampsDiff message. Does not implicitly {@link file.TimeStampsDiff.verify|verify} messages.
10200
+ * @function encode
10201
+ * @memberof file.TimeStampsDiff
10202
+ * @static
10203
+ * @param {file.ITimeStampsDiff} message TimeStampsDiff message or plain object to encode
10204
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10205
+ * @returns {$protobuf.Writer} Writer
10206
+ */
10207
+ TimeStampsDiff.encode = function encode(message, writer) {
10208
+ if (!writer)
10209
+ writer = $Writer.create();
10210
+ if (message.current != null && Object.hasOwnProperty.call(message, "current"))
10211
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.current);
10212
+ if (message.remote != null && Object.hasOwnProperty.call(message, "remote"))
10213
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remote);
10214
+ if (message.synced != null && Object.hasOwnProperty.call(message, "synced"))
10215
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.synced);
10216
+ return writer;
10217
+ };
10218
+
10219
+ /**
10220
+ * Encodes the specified TimeStampsDiff message, length delimited. Does not implicitly {@link file.TimeStampsDiff.verify|verify} messages.
10221
+ * @function encodeDelimited
10222
+ * @memberof file.TimeStampsDiff
10223
+ * @static
10224
+ * @param {file.ITimeStampsDiff} message TimeStampsDiff message or plain object to encode
10225
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10226
+ * @returns {$protobuf.Writer} Writer
10227
+ */
10228
+ TimeStampsDiff.encodeDelimited = function encodeDelimited(message, writer) {
10229
+ return this.encode(message, writer).ldelim();
10230
+ };
10231
+
10232
+ /**
10233
+ * Decodes a TimeStampsDiff message from the specified reader or buffer.
10234
+ * @function decode
10235
+ * @memberof file.TimeStampsDiff
10236
+ * @static
10237
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10238
+ * @param {number} [length] Message length if known beforehand
10239
+ * @returns {file.TimeStampsDiff} TimeStampsDiff
10240
+ * @throws {Error} If the payload is not a reader or valid buffer
10241
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10242
+ */
10243
+ TimeStampsDiff.decode = function decode(reader, length, error) {
10244
+ if (!(reader instanceof $Reader))
10245
+ reader = $Reader.create(reader);
10246
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.TimeStampsDiff();
10247
+ while (reader.pos < end) {
10248
+ var tag = reader.uint32();
10249
+ if (tag === error)
10250
+ break;
10251
+ switch (tag >>> 3) {
10252
+ case 1: {
10253
+ message.current = reader.uint64();
10254
+ break;
10255
+ }
10256
+ case 2: {
10257
+ message.remote = reader.uint64();
10258
+ break;
10259
+ }
10260
+ case 3: {
10261
+ message.synced = reader.uint64();
10262
+ break;
10263
+ }
10264
+ default:
10265
+ reader.skipType(tag & 7);
10266
+ break;
10267
+ }
10268
+ }
10269
+ return message;
10270
+ };
10271
+
10272
+ /**
10273
+ * Decodes a TimeStampsDiff message from the specified reader or buffer, length delimited.
10274
+ * @function decodeDelimited
10275
+ * @memberof file.TimeStampsDiff
10276
+ * @static
10277
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10278
+ * @returns {file.TimeStampsDiff} TimeStampsDiff
10279
+ * @throws {Error} If the payload is not a reader or valid buffer
10280
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10281
+ */
10282
+ TimeStampsDiff.decodeDelimited = function decodeDelimited(reader) {
10283
+ if (!(reader instanceof $Reader))
10284
+ reader = new $Reader(reader);
10285
+ return this.decode(reader, reader.uint32());
10286
+ };
10287
+
10288
+ /**
10289
+ * Verifies a TimeStampsDiff message.
10290
+ * @function verify
10291
+ * @memberof file.TimeStampsDiff
10292
+ * @static
10293
+ * @param {Object.<string,*>} message Plain object to verify
10294
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10295
+ */
10296
+ TimeStampsDiff.verify = function verify(message) {
10297
+ if (typeof message !== "object" || message === null)
10298
+ return "object expected";
10299
+ if (message.current != null && message.hasOwnProperty("current"))
10300
+ if (!$util.isInteger(message.current) && !(message.current && $util.isInteger(message.current.low) && $util.isInteger(message.current.high)))
10301
+ return "current: integer|Long expected";
10302
+ if (message.remote != null && message.hasOwnProperty("remote"))
10303
+ if (!$util.isInteger(message.remote) && !(message.remote && $util.isInteger(message.remote.low) && $util.isInteger(message.remote.high)))
10304
+ return "remote: integer|Long expected";
10305
+ if (message.synced != null && message.hasOwnProperty("synced"))
10306
+ if (!$util.isInteger(message.synced) && !(message.synced && $util.isInteger(message.synced.low) && $util.isInteger(message.synced.high)))
10307
+ return "synced: integer|Long expected";
10308
+ return null;
10309
+ };
10310
+
10311
+ /**
10312
+ * Creates a TimeStampsDiff message from a plain object. Also converts values to their respective internal types.
10313
+ * @function fromObject
10314
+ * @memberof file.TimeStampsDiff
10315
+ * @static
10316
+ * @param {Object.<string,*>} object Plain object
10317
+ * @returns {file.TimeStampsDiff} TimeStampsDiff
10318
+ */
10319
+ TimeStampsDiff.fromObject = function fromObject(object) {
10320
+ if (object instanceof $root.file.TimeStampsDiff)
10321
+ return object;
10322
+ var message = new $root.file.TimeStampsDiff();
10323
+ if (object.current != null)
10324
+ if ($util.Long)
10325
+ (message.current = $util.Long.fromValue(object.current)).unsigned = true;
10326
+ else if (typeof object.current === "string")
10327
+ message.current = parseInt(object.current, 10);
10328
+ else if (typeof object.current === "number")
10329
+ message.current = object.current;
10330
+ else if (typeof object.current === "object")
10331
+ message.current = new $util.LongBits(object.current.low >>> 0, object.current.high >>> 0).toNumber(true);
10332
+ if (object.remote != null)
10333
+ if ($util.Long)
10334
+ (message.remote = $util.Long.fromValue(object.remote)).unsigned = true;
10335
+ else if (typeof object.remote === "string")
10336
+ message.remote = parseInt(object.remote, 10);
10337
+ else if (typeof object.remote === "number")
10338
+ message.remote = object.remote;
10339
+ else if (typeof object.remote === "object")
10340
+ message.remote = new $util.LongBits(object.remote.low >>> 0, object.remote.high >>> 0).toNumber(true);
10341
+ if (object.synced != null)
10342
+ if ($util.Long)
10343
+ (message.synced = $util.Long.fromValue(object.synced)).unsigned = true;
10344
+ else if (typeof object.synced === "string")
10345
+ message.synced = parseInt(object.synced, 10);
10346
+ else if (typeof object.synced === "number")
10347
+ message.synced = object.synced;
10348
+ else if (typeof object.synced === "object")
10349
+ message.synced = new $util.LongBits(object.synced.low >>> 0, object.synced.high >>> 0).toNumber(true);
10350
+ return message;
10351
+ };
10352
+
10353
+ /**
10354
+ * Creates a plain object from a TimeStampsDiff message. Also converts values to other types if specified.
10355
+ * @function toObject
10356
+ * @memberof file.TimeStampsDiff
10357
+ * @static
10358
+ * @param {file.TimeStampsDiff} message TimeStampsDiff
10359
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10360
+ * @returns {Object.<string,*>} Plain object
10361
+ */
10362
+ TimeStampsDiff.toObject = function toObject(message, options) {
10363
+ if (!options)
10364
+ options = {};
10365
+ var object = {};
10366
+ if (options.defaults) {
10367
+ if ($util.Long) {
10368
+ var long = new $util.Long(0, 0, true);
10369
+ object.current = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10370
+ } else
10371
+ object.current = options.longs === String ? "0" : 0;
10372
+ if ($util.Long) {
10373
+ var long = new $util.Long(0, 0, true);
10374
+ object.remote = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10375
+ } else
10376
+ object.remote = options.longs === String ? "0" : 0;
10377
+ if ($util.Long) {
10378
+ var long = new $util.Long(0, 0, true);
10379
+ object.synced = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
10380
+ } else
10381
+ object.synced = options.longs === String ? "0" : 0;
10382
+ }
10383
+ if (message.current != null && message.hasOwnProperty("current"))
10384
+ if (typeof message.current === "number")
10385
+ object.current = options.longs === String ? String(message.current) : message.current;
10386
+ else
10387
+ object.current = options.longs === String ? $util.Long.prototype.toString.call(message.current) : options.longs === Number ? new $util.LongBits(message.current.low >>> 0, message.current.high >>> 0).toNumber(true) : message.current;
10388
+ if (message.remote != null && message.hasOwnProperty("remote"))
10389
+ if (typeof message.remote === "number")
10390
+ object.remote = options.longs === String ? String(message.remote) : message.remote;
10391
+ else
10392
+ object.remote = options.longs === String ? $util.Long.prototype.toString.call(message.remote) : options.longs === Number ? new $util.LongBits(message.remote.low >>> 0, message.remote.high >>> 0).toNumber(true) : message.remote;
10393
+ if (message.synced != null && message.hasOwnProperty("synced"))
10394
+ if (typeof message.synced === "number")
10395
+ object.synced = options.longs === String ? String(message.synced) : message.synced;
10396
+ else
10397
+ object.synced = options.longs === String ? $util.Long.prototype.toString.call(message.synced) : options.longs === Number ? new $util.LongBits(message.synced.low >>> 0, message.synced.high >>> 0).toNumber(true) : message.synced;
10398
+ return object;
10399
+ };
10400
+
10401
+ /**
10402
+ * Converts this TimeStampsDiff to JSON.
10403
+ * @function toJSON
10404
+ * @memberof file.TimeStampsDiff
10405
+ * @instance
10406
+ * @returns {Object.<string,*>} JSON object
10407
+ */
10408
+ TimeStampsDiff.prototype.toJSON = function toJSON() {
10409
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10410
+ };
10411
+
10412
+ /**
10413
+ * Gets the default type url for TimeStampsDiff
10414
+ * @function getTypeUrl
10415
+ * @memberof file.TimeStampsDiff
10416
+ * @static
10417
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10418
+ * @returns {string} The default type url
10419
+ */
10420
+ TimeStampsDiff.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10421
+ if (typeUrlPrefix === undefined) {
10422
+ typeUrlPrefix = "type.googleapis.com";
10423
+ }
10424
+ return typeUrlPrefix + "/file.TimeStampsDiff";
10425
+ };
10426
+
10427
+ return TimeStampsDiff;
10428
+ })();
10429
+
10430
+ file.XAttrDiff = (function() {
10431
+
10432
+ /**
10433
+ * Properties of a XAttrDiff.
10434
+ * @memberof file
10435
+ * @interface IXAttrDiff
10436
+ * @property {string|null} [name] XAttrDiff name
10437
+ * @property {common.IStringValue|null} [addedIn] XAttrDiff addedIn
10438
+ * @property {common.IStringValue|null} [removedIn] XAttrDiff removedIn
10439
+ * @property {common.IStringValue|null} [changedIn] XAttrDiff changedIn
10440
+ */
10441
+
10442
+ /**
10443
+ * Constructs a new XAttrDiff.
10444
+ * @memberof file
10445
+ * @classdesc Represents a XAttrDiff.
10446
+ * @implements IXAttrDiff
10447
+ * @constructor
10448
+ * @param {file.IXAttrDiff=} [properties] Properties to set
10449
+ */
10450
+ function XAttrDiff(properties) {
10451
+ if (properties)
10452
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10453
+ if (properties[keys[i]] != null)
10454
+ this[keys[i]] = properties[keys[i]];
10455
+ }
10456
+
10457
+ /**
10458
+ * XAttrDiff name.
10459
+ * @member {string} name
10460
+ * @memberof file.XAttrDiff
10461
+ * @instance
10462
+ */
10463
+ XAttrDiff.prototype.name = "";
10464
+
10465
+ /**
10466
+ * XAttrDiff addedIn.
10467
+ * @member {common.IStringValue|null|undefined} addedIn
10468
+ * @memberof file.XAttrDiff
10469
+ * @instance
10470
+ */
10471
+ XAttrDiff.prototype.addedIn = null;
10472
+
10473
+ /**
10474
+ * XAttrDiff removedIn.
10475
+ * @member {common.IStringValue|null|undefined} removedIn
10476
+ * @memberof file.XAttrDiff
10477
+ * @instance
10478
+ */
10479
+ XAttrDiff.prototype.removedIn = null;
10480
+
10481
+ /**
10482
+ * XAttrDiff changedIn.
10483
+ * @member {common.IStringValue|null|undefined} changedIn
10484
+ * @memberof file.XAttrDiff
10485
+ * @instance
10486
+ */
10487
+ XAttrDiff.prototype.changedIn = null;
10488
+
10489
+ /**
10490
+ * Creates a new XAttrDiff instance using the specified properties.
10491
+ * @function create
10492
+ * @memberof file.XAttrDiff
10493
+ * @static
10494
+ * @param {file.IXAttrDiff=} [properties] Properties to set
10495
+ * @returns {file.XAttrDiff} XAttrDiff instance
10496
+ */
10497
+ XAttrDiff.create = function create(properties) {
10498
+ return new XAttrDiff(properties);
10499
+ };
10500
+
10501
+ /**
10502
+ * Encodes the specified XAttrDiff message. Does not implicitly {@link file.XAttrDiff.verify|verify} messages.
10503
+ * @function encode
10504
+ * @memberof file.XAttrDiff
10505
+ * @static
10506
+ * @param {file.IXAttrDiff} message XAttrDiff message or plain object to encode
10507
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10508
+ * @returns {$protobuf.Writer} Writer
10509
+ */
10510
+ XAttrDiff.encode = function encode(message, writer) {
10511
+ if (!writer)
10512
+ writer = $Writer.create();
10513
+ if (message.name != null && Object.hasOwnProperty.call(message, "name"))
10514
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
10515
+ if (message.addedIn != null && Object.hasOwnProperty.call(message, "addedIn"))
10516
+ $root.common.StringValue.encode(message.addedIn, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
10517
+ if (message.removedIn != null && Object.hasOwnProperty.call(message, "removedIn"))
10518
+ $root.common.StringValue.encode(message.removedIn, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
10519
+ if (message.changedIn != null && Object.hasOwnProperty.call(message, "changedIn"))
10520
+ $root.common.StringValue.encode(message.changedIn, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
10521
+ return writer;
10522
+ };
10523
+
10524
+ /**
10525
+ * Encodes the specified XAttrDiff message, length delimited. Does not implicitly {@link file.XAttrDiff.verify|verify} messages.
10526
+ * @function encodeDelimited
10527
+ * @memberof file.XAttrDiff
10528
+ * @static
10529
+ * @param {file.IXAttrDiff} message XAttrDiff message or plain object to encode
10530
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10531
+ * @returns {$protobuf.Writer} Writer
10532
+ */
10533
+ XAttrDiff.encodeDelimited = function encodeDelimited(message, writer) {
10534
+ return this.encode(message, writer).ldelim();
10535
+ };
10536
+
10537
+ /**
10538
+ * Decodes a XAttrDiff message from the specified reader or buffer.
10539
+ * @function decode
10540
+ * @memberof file.XAttrDiff
10541
+ * @static
10542
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10543
+ * @param {number} [length] Message length if known beforehand
10544
+ * @returns {file.XAttrDiff} XAttrDiff
10545
+ * @throws {Error} If the payload is not a reader or valid buffer
10546
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10547
+ */
10548
+ XAttrDiff.decode = function decode(reader, length, error) {
10549
+ if (!(reader instanceof $Reader))
10550
+ reader = $Reader.create(reader);
10551
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.XAttrDiff();
10552
+ while (reader.pos < end) {
10553
+ var tag = reader.uint32();
10554
+ if (tag === error)
10555
+ break;
10556
+ switch (tag >>> 3) {
10557
+ case 1: {
10558
+ message.name = reader.string();
10559
+ break;
10560
+ }
10561
+ case 2: {
10562
+ message.addedIn = $root.common.StringValue.decode(reader, reader.uint32());
10563
+ break;
10564
+ }
10565
+ case 3: {
10566
+ message.removedIn = $root.common.StringValue.decode(reader, reader.uint32());
10567
+ break;
10568
+ }
10569
+ case 4: {
10570
+ message.changedIn = $root.common.StringValue.decode(reader, reader.uint32());
10571
+ break;
10572
+ }
10573
+ default:
10574
+ reader.skipType(tag & 7);
10575
+ break;
10576
+ }
10577
+ }
10578
+ return message;
10579
+ };
10580
+
10581
+ /**
10582
+ * Decodes a XAttrDiff message from the specified reader or buffer, length delimited.
10583
+ * @function decodeDelimited
10584
+ * @memberof file.XAttrDiff
10585
+ * @static
10586
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10587
+ * @returns {file.XAttrDiff} XAttrDiff
10588
+ * @throws {Error} If the payload is not a reader or valid buffer
10589
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10590
+ */
10591
+ XAttrDiff.decodeDelimited = function decodeDelimited(reader) {
10592
+ if (!(reader instanceof $Reader))
10593
+ reader = new $Reader(reader);
10594
+ return this.decode(reader, reader.uint32());
10595
+ };
10596
+
10597
+ /**
10598
+ * Verifies a XAttrDiff message.
10599
+ * @function verify
10600
+ * @memberof file.XAttrDiff
10601
+ * @static
10602
+ * @param {Object.<string,*>} message Plain object to verify
10603
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10604
+ */
10605
+ XAttrDiff.verify = function verify(message) {
10606
+ if (typeof message !== "object" || message === null)
10607
+ return "object expected";
10608
+ if (message.name != null && message.hasOwnProperty("name"))
10609
+ if (!$util.isString(message.name))
10610
+ return "name: string expected";
10611
+ if (message.addedIn != null && message.hasOwnProperty("addedIn")) {
10612
+ var error = $root.common.StringValue.verify(message.addedIn);
10613
+ if (error)
10614
+ return "addedIn." + error;
10615
+ }
10616
+ if (message.removedIn != null && message.hasOwnProperty("removedIn")) {
10617
+ var error = $root.common.StringValue.verify(message.removedIn);
10618
+ if (error)
10619
+ return "removedIn." + error;
10620
+ }
10621
+ if (message.changedIn != null && message.hasOwnProperty("changedIn")) {
10622
+ var error = $root.common.StringValue.verify(message.changedIn);
10623
+ if (error)
10624
+ return "changedIn." + error;
10625
+ }
10626
+ return null;
10627
+ };
10628
+
10629
+ /**
10630
+ * Creates a XAttrDiff message from a plain object. Also converts values to their respective internal types.
10631
+ * @function fromObject
10632
+ * @memberof file.XAttrDiff
10633
+ * @static
10634
+ * @param {Object.<string,*>} object Plain object
10635
+ * @returns {file.XAttrDiff} XAttrDiff
10636
+ */
10637
+ XAttrDiff.fromObject = function fromObject(object) {
10638
+ if (object instanceof $root.file.XAttrDiff)
10639
+ return object;
10640
+ var message = new $root.file.XAttrDiff();
10641
+ if (object.name != null)
10642
+ message.name = String(object.name);
10643
+ if (object.addedIn != null) {
10644
+ if (typeof object.addedIn !== "object")
10645
+ throw TypeError(".file.XAttrDiff.addedIn: object expected");
10646
+ message.addedIn = $root.common.StringValue.fromObject(object.addedIn);
10647
+ }
10648
+ if (object.removedIn != null) {
10649
+ if (typeof object.removedIn !== "object")
10650
+ throw TypeError(".file.XAttrDiff.removedIn: object expected");
10651
+ message.removedIn = $root.common.StringValue.fromObject(object.removedIn);
10652
+ }
10653
+ if (object.changedIn != null) {
10654
+ if (typeof object.changedIn !== "object")
10655
+ throw TypeError(".file.XAttrDiff.changedIn: object expected");
10656
+ message.changedIn = $root.common.StringValue.fromObject(object.changedIn);
10657
+ }
10658
+ return message;
10659
+ };
10660
+
10661
+ /**
10662
+ * Creates a plain object from a XAttrDiff message. Also converts values to other types if specified.
10663
+ * @function toObject
10664
+ * @memberof file.XAttrDiff
10665
+ * @static
10666
+ * @param {file.XAttrDiff} message XAttrDiff
10667
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
10668
+ * @returns {Object.<string,*>} Plain object
10669
+ */
10670
+ XAttrDiff.toObject = function toObject(message, options) {
10671
+ if (!options)
10672
+ options = {};
10673
+ var object = {};
10674
+ if (options.defaults) {
10675
+ object.name = "";
10676
+ object.addedIn = null;
10677
+ object.removedIn = null;
10678
+ object.changedIn = null;
10679
+ }
10680
+ if (message.name != null && message.hasOwnProperty("name"))
10681
+ object.name = message.name;
10682
+ if (message.addedIn != null && message.hasOwnProperty("addedIn"))
10683
+ object.addedIn = $root.common.StringValue.toObject(message.addedIn, options);
10684
+ if (message.removedIn != null && message.hasOwnProperty("removedIn"))
10685
+ object.removedIn = $root.common.StringValue.toObject(message.removedIn, options);
10686
+ if (message.changedIn != null && message.hasOwnProperty("changedIn"))
10687
+ object.changedIn = $root.common.StringValue.toObject(message.changedIn, options);
10688
+ return object;
10689
+ };
10690
+
10691
+ /**
10692
+ * Converts this XAttrDiff to JSON.
10693
+ * @function toJSON
10694
+ * @memberof file.XAttrDiff
10695
+ * @instance
10696
+ * @returns {Object.<string,*>} JSON object
10697
+ */
10698
+ XAttrDiff.prototype.toJSON = function toJSON() {
10699
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
10700
+ };
10701
+
10702
+ /**
10703
+ * Gets the default type url for XAttrDiff
10704
+ * @function getTypeUrl
10705
+ * @memberof file.XAttrDiff
10706
+ * @static
10707
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
10708
+ * @returns {string} The default type url
10709
+ */
10710
+ XAttrDiff.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
10711
+ if (typeUrlPrefix === undefined) {
10712
+ typeUrlPrefix = "type.googleapis.com";
10713
+ }
10714
+ return typeUrlPrefix + "/file.XAttrDiff";
10715
+ };
10716
+
10717
+ return XAttrDiff;
10718
+ })();
10719
+
10720
+ file.FileDiff = (function() {
10721
+
10722
+ /**
10723
+ * Properties of a FileDiff.
10724
+ * @memberof file
10725
+ * @interface IFileDiff
10726
+ * @property {number|Long|null} [currentVersion] FileDiff currentVersion
10727
+ * @property {boolean|null} [isCurrentLocal] FileDiff isCurrentLocal
10728
+ * @property {common.IUInt64Value|null} [remoteVersion] FileDiff remoteVersion
10729
+ * @property {common.IUInt64Value|null} [syncedVersion] FileDiff syncedVersion
10730
+ * @property {boolean|null} [isRemoteRemoved] FileDiff isRemoteRemoved
10731
+ * @property {file.ITimeStampsDiff|null} [ctime] FileDiff ctime
10732
+ * @property {file.ITimeStampsDiff|null} [mtime] FileDiff mtime
10733
+ * @property {Array.<file.IXAttrDiff>|null} [xattrs] FileDiff xattrs
10734
+ * @property {boolean|null} [areContentsSame] FileDiff areContentsSame
10735
+ * @property {file.FileDiff.ISize|null} [size] FileDiff size
10736
+ */
10737
+
10738
+ /**
10739
+ * Constructs a new FileDiff.
10740
+ * @memberof file
10741
+ * @classdesc Represents a FileDiff.
10742
+ * @implements IFileDiff
10743
+ * @constructor
10744
+ * @param {file.IFileDiff=} [properties] Properties to set
10745
+ */
10746
+ function FileDiff(properties) {
10747
+ this.xattrs = [];
10748
+ if (properties)
10749
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
10750
+ if (properties[keys[i]] != null)
10751
+ this[keys[i]] = properties[keys[i]];
10752
+ }
10753
+
10754
+ /**
10755
+ * FileDiff currentVersion.
10756
+ * @member {number|Long} currentVersion
10757
+ * @memberof file.FileDiff
10758
+ * @instance
10759
+ */
10760
+ FileDiff.prototype.currentVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
10761
+
10762
+ /**
10763
+ * FileDiff isCurrentLocal.
10764
+ * @member {boolean} isCurrentLocal
10765
+ * @memberof file.FileDiff
10766
+ * @instance
10767
+ */
10768
+ FileDiff.prototype.isCurrentLocal = false;
10769
+
10770
+ /**
10771
+ * FileDiff remoteVersion.
10772
+ * @member {common.IUInt64Value|null|undefined} remoteVersion
10773
+ * @memberof file.FileDiff
10774
+ * @instance
10775
+ */
10776
+ FileDiff.prototype.remoteVersion = null;
10777
+
10778
+ /**
10779
+ * FileDiff syncedVersion.
10780
+ * @member {common.IUInt64Value|null|undefined} syncedVersion
10781
+ * @memberof file.FileDiff
10782
+ * @instance
10783
+ */
10784
+ FileDiff.prototype.syncedVersion = null;
10785
+
10786
+ /**
10787
+ * FileDiff isRemoteRemoved.
10788
+ * @member {boolean} isRemoteRemoved
10789
+ * @memberof file.FileDiff
10790
+ * @instance
10791
+ */
10792
+ FileDiff.prototype.isRemoteRemoved = false;
10793
+
10794
+ /**
10795
+ * FileDiff ctime.
10796
+ * @member {file.ITimeStampsDiff|null|undefined} ctime
10797
+ * @memberof file.FileDiff
10798
+ * @instance
10799
+ */
10800
+ FileDiff.prototype.ctime = null;
10801
+
10802
+ /**
10803
+ * FileDiff mtime.
10804
+ * @member {file.ITimeStampsDiff|null|undefined} mtime
10805
+ * @memberof file.FileDiff
10806
+ * @instance
10807
+ */
10808
+ FileDiff.prototype.mtime = null;
10809
+
10810
+ /**
10811
+ * FileDiff xattrs.
10812
+ * @member {Array.<file.IXAttrDiff>} xattrs
10813
+ * @memberof file.FileDiff
10814
+ * @instance
10815
+ */
10816
+ FileDiff.prototype.xattrs = $util.emptyArray;
10817
+
10818
+ /**
10819
+ * FileDiff areContentsSame.
10820
+ * @member {boolean} areContentsSame
10821
+ * @memberof file.FileDiff
10822
+ * @instance
10823
+ */
10824
+ FileDiff.prototype.areContentsSame = false;
10825
+
10826
+ /**
10827
+ * FileDiff size.
10828
+ * @member {file.FileDiff.ISize|null|undefined} size
10829
+ * @memberof file.FileDiff
10830
+ * @instance
10831
+ */
10832
+ FileDiff.prototype.size = null;
10833
+
10834
+ /**
10835
+ * Creates a new FileDiff instance using the specified properties.
10836
+ * @function create
10837
+ * @memberof file.FileDiff
10838
+ * @static
10839
+ * @param {file.IFileDiff=} [properties] Properties to set
10840
+ * @returns {file.FileDiff} FileDiff instance
10841
+ */
10842
+ FileDiff.create = function create(properties) {
10843
+ return new FileDiff(properties);
10844
+ };
10845
+
10846
+ /**
10847
+ * Encodes the specified FileDiff message. Does not implicitly {@link file.FileDiff.verify|verify} messages.
10848
+ * @function encode
10849
+ * @memberof file.FileDiff
10850
+ * @static
10851
+ * @param {file.IFileDiff} message FileDiff message or plain object to encode
10852
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10853
+ * @returns {$protobuf.Writer} Writer
10854
+ */
10855
+ FileDiff.encode = function encode(message, writer) {
10856
+ if (!writer)
10857
+ writer = $Writer.create();
10858
+ if (message.currentVersion != null && Object.hasOwnProperty.call(message, "currentVersion"))
10859
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.currentVersion);
10860
+ if (message.isCurrentLocal != null && Object.hasOwnProperty.call(message, "isCurrentLocal"))
10861
+ writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isCurrentLocal);
10862
+ if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
10863
+ $root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
10864
+ if (message.syncedVersion != null && Object.hasOwnProperty.call(message, "syncedVersion"))
10865
+ $root.common.UInt64Value.encode(message.syncedVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
10866
+ if (message.isRemoteRemoved != null && Object.hasOwnProperty.call(message, "isRemoteRemoved"))
10867
+ writer.uint32(/* id 5, wireType 0 =*/40).bool(message.isRemoteRemoved);
10868
+ if (message.ctime != null && Object.hasOwnProperty.call(message, "ctime"))
10869
+ $root.file.TimeStampsDiff.encode(message.ctime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
10870
+ if (message.mtime != null && Object.hasOwnProperty.call(message, "mtime"))
10871
+ $root.file.TimeStampsDiff.encode(message.mtime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
10872
+ if (message.xattrs != null && message.xattrs.length)
10873
+ for (var i = 0; i < message.xattrs.length; ++i)
10874
+ $root.file.XAttrDiff.encode(message.xattrs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
10875
+ if (message.areContentsSame != null && Object.hasOwnProperty.call(message, "areContentsSame"))
10876
+ writer.uint32(/* id 11, wireType 0 =*/88).bool(message.areContentsSame);
10877
+ if (message.size != null && Object.hasOwnProperty.call(message, "size"))
10878
+ $root.file.FileDiff.Size.encode(message.size, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
10879
+ return writer;
10880
+ };
10881
+
10882
+ /**
10883
+ * Encodes the specified FileDiff message, length delimited. Does not implicitly {@link file.FileDiff.verify|verify} messages.
10884
+ * @function encodeDelimited
10885
+ * @memberof file.FileDiff
10886
+ * @static
10887
+ * @param {file.IFileDiff} message FileDiff message or plain object to encode
10888
+ * @param {$protobuf.Writer} [writer] Writer to encode to
10889
+ * @returns {$protobuf.Writer} Writer
10890
+ */
10891
+ FileDiff.encodeDelimited = function encodeDelimited(message, writer) {
10892
+ return this.encode(message, writer).ldelim();
10893
+ };
10894
+
10895
+ /**
10896
+ * Decodes a FileDiff message from the specified reader or buffer.
10897
+ * @function decode
10898
+ * @memberof file.FileDiff
10899
+ * @static
10900
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10901
+ * @param {number} [length] Message length if known beforehand
10902
+ * @returns {file.FileDiff} FileDiff
10903
+ * @throws {Error} If the payload is not a reader or valid buffer
10904
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10905
+ */
10906
+ FileDiff.decode = function decode(reader, length, error) {
10907
+ if (!(reader instanceof $Reader))
10908
+ reader = $Reader.create(reader);
10909
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileDiff();
10910
+ while (reader.pos < end) {
10911
+ var tag = reader.uint32();
10912
+ if (tag === error)
10913
+ break;
10914
+ switch (tag >>> 3) {
10915
+ case 1: {
10916
+ message.currentVersion = reader.uint64();
10917
+ break;
10918
+ }
10919
+ case 2: {
10920
+ message.isCurrentLocal = reader.bool();
10921
+ break;
10922
+ }
10923
+ case 3: {
10924
+ message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
10925
+ break;
10926
+ }
10927
+ case 4: {
10928
+ message.syncedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
10929
+ break;
10930
+ }
10931
+ case 5: {
10932
+ message.isRemoteRemoved = reader.bool();
10933
+ break;
10934
+ }
10935
+ case 6: {
10936
+ message.ctime = $root.file.TimeStampsDiff.decode(reader, reader.uint32());
10937
+ break;
10938
+ }
10939
+ case 7: {
10940
+ message.mtime = $root.file.TimeStampsDiff.decode(reader, reader.uint32());
10941
+ break;
10942
+ }
10943
+ case 8: {
10944
+ if (!(message.xattrs && message.xattrs.length))
10945
+ message.xattrs = [];
10946
+ message.xattrs.push($root.file.XAttrDiff.decode(reader, reader.uint32()));
10947
+ break;
10948
+ }
10949
+ case 11: {
10950
+ message.areContentsSame = reader.bool();
10951
+ break;
10952
+ }
10953
+ case 12: {
10954
+ message.size = $root.file.FileDiff.Size.decode(reader, reader.uint32());
10955
+ break;
10956
+ }
10957
+ default:
10958
+ reader.skipType(tag & 7);
10959
+ break;
10960
+ }
10961
+ }
10962
+ return message;
10963
+ };
10964
+
10965
+ /**
10966
+ * Decodes a FileDiff message from the specified reader or buffer, length delimited.
10967
+ * @function decodeDelimited
10968
+ * @memberof file.FileDiff
10969
+ * @static
10970
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
10971
+ * @returns {file.FileDiff} FileDiff
10972
+ * @throws {Error} If the payload is not a reader or valid buffer
10973
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
10974
+ */
10975
+ FileDiff.decodeDelimited = function decodeDelimited(reader) {
10976
+ if (!(reader instanceof $Reader))
10977
+ reader = new $Reader(reader);
10978
+ return this.decode(reader, reader.uint32());
10979
+ };
10980
+
10981
+ /**
10982
+ * Verifies a FileDiff message.
10983
+ * @function verify
10984
+ * @memberof file.FileDiff
10985
+ * @static
10986
+ * @param {Object.<string,*>} message Plain object to verify
10987
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
10988
+ */
10989
+ FileDiff.verify = function verify(message) {
10990
+ if (typeof message !== "object" || message === null)
10991
+ return "object expected";
10992
+ if (message.currentVersion != null && message.hasOwnProperty("currentVersion"))
10993
+ if (!$util.isInteger(message.currentVersion) && !(message.currentVersion && $util.isInteger(message.currentVersion.low) && $util.isInteger(message.currentVersion.high)))
10994
+ return "currentVersion: integer|Long expected";
10995
+ if (message.isCurrentLocal != null && message.hasOwnProperty("isCurrentLocal"))
10996
+ if (typeof message.isCurrentLocal !== "boolean")
10997
+ return "isCurrentLocal: boolean expected";
10998
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
10999
+ var error = $root.common.UInt64Value.verify(message.remoteVersion);
11000
+ if (error)
11001
+ return "remoteVersion." + error;
11002
+ }
11003
+ if (message.syncedVersion != null && message.hasOwnProperty("syncedVersion")) {
11004
+ var error = $root.common.UInt64Value.verify(message.syncedVersion);
11005
+ if (error)
11006
+ return "syncedVersion." + error;
11007
+ }
11008
+ if (message.isRemoteRemoved != null && message.hasOwnProperty("isRemoteRemoved"))
11009
+ if (typeof message.isRemoteRemoved !== "boolean")
11010
+ return "isRemoteRemoved: boolean expected";
11011
+ if (message.ctime != null && message.hasOwnProperty("ctime")) {
11012
+ var error = $root.file.TimeStampsDiff.verify(message.ctime);
11013
+ if (error)
11014
+ return "ctime." + error;
11015
+ }
11016
+ if (message.mtime != null && message.hasOwnProperty("mtime")) {
11017
+ var error = $root.file.TimeStampsDiff.verify(message.mtime);
11018
+ if (error)
11019
+ return "mtime." + error;
11020
+ }
11021
+ if (message.xattrs != null && message.hasOwnProperty("xattrs")) {
11022
+ if (!Array.isArray(message.xattrs))
11023
+ return "xattrs: array expected";
11024
+ for (var i = 0; i < message.xattrs.length; ++i) {
11025
+ var error = $root.file.XAttrDiff.verify(message.xattrs[i]);
11026
+ if (error)
11027
+ return "xattrs." + error;
11028
+ }
11029
+ }
11030
+ if (message.areContentsSame != null && message.hasOwnProperty("areContentsSame"))
11031
+ if (typeof message.areContentsSame !== "boolean")
11032
+ return "areContentsSame: boolean expected";
11033
+ if (message.size != null && message.hasOwnProperty("size")) {
11034
+ var error = $root.file.FileDiff.Size.verify(message.size);
11035
+ if (error)
11036
+ return "size." + error;
11037
+ }
11038
+ return null;
11039
+ };
11040
+
11041
+ /**
11042
+ * Creates a FileDiff message from a plain object. Also converts values to their respective internal types.
11043
+ * @function fromObject
11044
+ * @memberof file.FileDiff
11045
+ * @static
11046
+ * @param {Object.<string,*>} object Plain object
11047
+ * @returns {file.FileDiff} FileDiff
11048
+ */
11049
+ FileDiff.fromObject = function fromObject(object) {
11050
+ if (object instanceof $root.file.FileDiff)
11051
+ return object;
11052
+ var message = new $root.file.FileDiff();
11053
+ if (object.currentVersion != null)
11054
+ if ($util.Long)
11055
+ (message.currentVersion = $util.Long.fromValue(object.currentVersion)).unsigned = true;
11056
+ else if (typeof object.currentVersion === "string")
11057
+ message.currentVersion = parseInt(object.currentVersion, 10);
11058
+ else if (typeof object.currentVersion === "number")
11059
+ message.currentVersion = object.currentVersion;
11060
+ else if (typeof object.currentVersion === "object")
11061
+ message.currentVersion = new $util.LongBits(object.currentVersion.low >>> 0, object.currentVersion.high >>> 0).toNumber(true);
11062
+ if (object.isCurrentLocal != null)
11063
+ message.isCurrentLocal = Boolean(object.isCurrentLocal);
11064
+ if (object.remoteVersion != null) {
11065
+ if (typeof object.remoteVersion !== "object")
11066
+ throw TypeError(".file.FileDiff.remoteVersion: object expected");
11067
+ message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
11068
+ }
11069
+ if (object.syncedVersion != null) {
11070
+ if (typeof object.syncedVersion !== "object")
11071
+ throw TypeError(".file.FileDiff.syncedVersion: object expected");
11072
+ message.syncedVersion = $root.common.UInt64Value.fromObject(object.syncedVersion);
11073
+ }
11074
+ if (object.isRemoteRemoved != null)
11075
+ message.isRemoteRemoved = Boolean(object.isRemoteRemoved);
11076
+ if (object.ctime != null) {
11077
+ if (typeof object.ctime !== "object")
11078
+ throw TypeError(".file.FileDiff.ctime: object expected");
11079
+ message.ctime = $root.file.TimeStampsDiff.fromObject(object.ctime);
11080
+ }
11081
+ if (object.mtime != null) {
11082
+ if (typeof object.mtime !== "object")
11083
+ throw TypeError(".file.FileDiff.mtime: object expected");
11084
+ message.mtime = $root.file.TimeStampsDiff.fromObject(object.mtime);
11085
+ }
11086
+ if (object.xattrs) {
11087
+ if (!Array.isArray(object.xattrs))
11088
+ throw TypeError(".file.FileDiff.xattrs: array expected");
11089
+ message.xattrs = [];
11090
+ for (var i = 0; i < object.xattrs.length; ++i) {
11091
+ if (typeof object.xattrs[i] !== "object")
11092
+ throw TypeError(".file.FileDiff.xattrs: object expected");
11093
+ message.xattrs[i] = $root.file.XAttrDiff.fromObject(object.xattrs[i]);
11094
+ }
11095
+ }
11096
+ if (object.areContentsSame != null)
11097
+ message.areContentsSame = Boolean(object.areContentsSame);
11098
+ if (object.size != null) {
11099
+ if (typeof object.size !== "object")
11100
+ throw TypeError(".file.FileDiff.size: object expected");
11101
+ message.size = $root.file.FileDiff.Size.fromObject(object.size);
11102
+ }
11103
+ return message;
11104
+ };
11105
+
11106
+ /**
11107
+ * Creates a plain object from a FileDiff message. Also converts values to other types if specified.
11108
+ * @function toObject
11109
+ * @memberof file.FileDiff
11110
+ * @static
11111
+ * @param {file.FileDiff} message FileDiff
11112
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11113
+ * @returns {Object.<string,*>} Plain object
11114
+ */
11115
+ FileDiff.toObject = function toObject(message, options) {
11116
+ if (!options)
11117
+ options = {};
11118
+ var object = {};
11119
+ if (options.arrays || options.defaults)
11120
+ object.xattrs = [];
11121
+ if (options.defaults) {
11122
+ if ($util.Long) {
11123
+ var long = new $util.Long(0, 0, true);
11124
+ object.currentVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
11125
+ } else
11126
+ object.currentVersion = options.longs === String ? "0" : 0;
11127
+ object.isCurrentLocal = false;
11128
+ object.remoteVersion = null;
11129
+ object.syncedVersion = null;
11130
+ object.isRemoteRemoved = false;
11131
+ object.ctime = null;
11132
+ object.mtime = null;
11133
+ object.areContentsSame = false;
11134
+ object.size = null;
11135
+ }
11136
+ if (message.currentVersion != null && message.hasOwnProperty("currentVersion"))
11137
+ if (typeof message.currentVersion === "number")
11138
+ object.currentVersion = options.longs === String ? String(message.currentVersion) : message.currentVersion;
11139
+ else
11140
+ object.currentVersion = options.longs === String ? $util.Long.prototype.toString.call(message.currentVersion) : options.longs === Number ? new $util.LongBits(message.currentVersion.low >>> 0, message.currentVersion.high >>> 0).toNumber(true) : message.currentVersion;
11141
+ if (message.isCurrentLocal != null && message.hasOwnProperty("isCurrentLocal"))
11142
+ object.isCurrentLocal = message.isCurrentLocal;
11143
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
11144
+ object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
11145
+ if (message.syncedVersion != null && message.hasOwnProperty("syncedVersion"))
11146
+ object.syncedVersion = $root.common.UInt64Value.toObject(message.syncedVersion, options);
11147
+ if (message.isRemoteRemoved != null && message.hasOwnProperty("isRemoteRemoved"))
11148
+ object.isRemoteRemoved = message.isRemoteRemoved;
11149
+ if (message.ctime != null && message.hasOwnProperty("ctime"))
11150
+ object.ctime = $root.file.TimeStampsDiff.toObject(message.ctime, options);
11151
+ if (message.mtime != null && message.hasOwnProperty("mtime"))
11152
+ object.mtime = $root.file.TimeStampsDiff.toObject(message.mtime, options);
11153
+ if (message.xattrs && message.xattrs.length) {
11154
+ object.xattrs = [];
11155
+ for (var j = 0; j < message.xattrs.length; ++j)
11156
+ object.xattrs[j] = $root.file.XAttrDiff.toObject(message.xattrs[j], options);
11157
+ }
11158
+ if (message.areContentsSame != null && message.hasOwnProperty("areContentsSame"))
11159
+ object.areContentsSame = message.areContentsSame;
11160
+ if (message.size != null && message.hasOwnProperty("size"))
11161
+ object.size = $root.file.FileDiff.Size.toObject(message.size, options);
11162
+ return object;
11163
+ };
11164
+
11165
+ /**
11166
+ * Converts this FileDiff to JSON.
11167
+ * @function toJSON
11168
+ * @memberof file.FileDiff
11169
+ * @instance
11170
+ * @returns {Object.<string,*>} JSON object
11171
+ */
11172
+ FileDiff.prototype.toJSON = function toJSON() {
11173
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11174
+ };
11175
+
11176
+ /**
11177
+ * Gets the default type url for FileDiff
11178
+ * @function getTypeUrl
11179
+ * @memberof file.FileDiff
11180
+ * @static
11181
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11182
+ * @returns {string} The default type url
11183
+ */
11184
+ FileDiff.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11185
+ if (typeUrlPrefix === undefined) {
11186
+ typeUrlPrefix = "type.googleapis.com";
11187
+ }
11188
+ return typeUrlPrefix + "/file.FileDiff";
11189
+ };
11190
+
11191
+ FileDiff.Size = (function() {
11192
+
11193
+ /**
11194
+ * Properties of a Size.
11195
+ * @memberof file.FileDiff
11196
+ * @interface ISize
11197
+ * @property {number|Long|null} [current] Size current
11198
+ * @property {number|Long|null} [remote] Size remote
11199
+ */
11200
+
11201
+ /**
11202
+ * Constructs a new Size.
11203
+ * @memberof file.FileDiff
11204
+ * @classdesc Represents a Size.
11205
+ * @implements ISize
11206
+ * @constructor
11207
+ * @param {file.FileDiff.ISize=} [properties] Properties to set
11208
+ */
11209
+ function Size(properties) {
11210
+ if (properties)
11211
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
11212
+ if (properties[keys[i]] != null)
11213
+ this[keys[i]] = properties[keys[i]];
11214
+ }
11215
+
11216
+ /**
11217
+ * Size current.
11218
+ * @member {number|Long} current
11219
+ * @memberof file.FileDiff.Size
11220
+ * @instance
11221
+ */
11222
+ Size.prototype.current = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
11223
+
11224
+ /**
11225
+ * Size remote.
11226
+ * @member {number|Long} remote
11227
+ * @memberof file.FileDiff.Size
11228
+ * @instance
11229
+ */
11230
+ Size.prototype.remote = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
11231
+
11232
+ /**
11233
+ * Creates a new Size instance using the specified properties.
11234
+ * @function create
11235
+ * @memberof file.FileDiff.Size
11236
+ * @static
11237
+ * @param {file.FileDiff.ISize=} [properties] Properties to set
11238
+ * @returns {file.FileDiff.Size} Size instance
11239
+ */
11240
+ Size.create = function create(properties) {
11241
+ return new Size(properties);
11242
+ };
11243
+
11244
+ /**
11245
+ * Encodes the specified Size message. Does not implicitly {@link file.FileDiff.Size.verify|verify} messages.
11246
+ * @function encode
11247
+ * @memberof file.FileDiff.Size
11248
+ * @static
11249
+ * @param {file.FileDiff.ISize} message Size message or plain object to encode
11250
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11251
+ * @returns {$protobuf.Writer} Writer
11252
+ */
11253
+ Size.encode = function encode(message, writer) {
11254
+ if (!writer)
11255
+ writer = $Writer.create();
11256
+ if (message.current != null && Object.hasOwnProperty.call(message, "current"))
11257
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.current);
11258
+ if (message.remote != null && Object.hasOwnProperty.call(message, "remote"))
11259
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remote);
11260
+ return writer;
11261
+ };
11262
+
11263
+ /**
11264
+ * Encodes the specified Size message, length delimited. Does not implicitly {@link file.FileDiff.Size.verify|verify} messages.
11265
+ * @function encodeDelimited
11266
+ * @memberof file.FileDiff.Size
11267
+ * @static
11268
+ * @param {file.FileDiff.ISize} message Size message or plain object to encode
11269
+ * @param {$protobuf.Writer} [writer] Writer to encode to
11270
+ * @returns {$protobuf.Writer} Writer
11271
+ */
11272
+ Size.encodeDelimited = function encodeDelimited(message, writer) {
11273
+ return this.encode(message, writer).ldelim();
11274
+ };
11275
+
11276
+ /**
11277
+ * Decodes a Size message from the specified reader or buffer.
11278
+ * @function decode
11279
+ * @memberof file.FileDiff.Size
11280
+ * @static
11281
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11282
+ * @param {number} [length] Message length if known beforehand
11283
+ * @returns {file.FileDiff.Size} Size
11284
+ * @throws {Error} If the payload is not a reader or valid buffer
11285
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11286
+ */
11287
+ Size.decode = function decode(reader, length, error) {
11288
+ if (!(reader instanceof $Reader))
11289
+ reader = $Reader.create(reader);
11290
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileDiff.Size();
11291
+ while (reader.pos < end) {
11292
+ var tag = reader.uint32();
11293
+ if (tag === error)
11294
+ break;
11295
+ switch (tag >>> 3) {
11296
+ case 1: {
11297
+ message.current = reader.uint64();
11298
+ break;
11299
+ }
11300
+ case 2: {
11301
+ message.remote = reader.uint64();
11302
+ break;
11303
+ }
11304
+ default:
11305
+ reader.skipType(tag & 7);
11306
+ break;
11307
+ }
11308
+ }
11309
+ return message;
11310
+ };
11311
+
11312
+ /**
11313
+ * Decodes a Size message from the specified reader or buffer, length delimited.
11314
+ * @function decodeDelimited
11315
+ * @memberof file.FileDiff.Size
11316
+ * @static
11317
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
11318
+ * @returns {file.FileDiff.Size} Size
11319
+ * @throws {Error} If the payload is not a reader or valid buffer
11320
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
11321
+ */
11322
+ Size.decodeDelimited = function decodeDelimited(reader) {
11323
+ if (!(reader instanceof $Reader))
11324
+ reader = new $Reader(reader);
11325
+ return this.decode(reader, reader.uint32());
11326
+ };
11327
+
11328
+ /**
11329
+ * Verifies a Size message.
11330
+ * @function verify
11331
+ * @memberof file.FileDiff.Size
11332
+ * @static
11333
+ * @param {Object.<string,*>} message Plain object to verify
11334
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
11335
+ */
11336
+ Size.verify = function verify(message) {
11337
+ if (typeof message !== "object" || message === null)
11338
+ return "object expected";
11339
+ if (message.current != null && message.hasOwnProperty("current"))
11340
+ if (!$util.isInteger(message.current) && !(message.current && $util.isInteger(message.current.low) && $util.isInteger(message.current.high)))
11341
+ return "current: integer|Long expected";
11342
+ if (message.remote != null && message.hasOwnProperty("remote"))
11343
+ if (!$util.isInteger(message.remote) && !(message.remote && $util.isInteger(message.remote.low) && $util.isInteger(message.remote.high)))
11344
+ return "remote: integer|Long expected";
11345
+ return null;
11346
+ };
11347
+
11348
+ /**
11349
+ * Creates a Size message from a plain object. Also converts values to their respective internal types.
11350
+ * @function fromObject
11351
+ * @memberof file.FileDiff.Size
11352
+ * @static
11353
+ * @param {Object.<string,*>} object Plain object
11354
+ * @returns {file.FileDiff.Size} Size
11355
+ */
11356
+ Size.fromObject = function fromObject(object) {
11357
+ if (object instanceof $root.file.FileDiff.Size)
11358
+ return object;
11359
+ var message = new $root.file.FileDiff.Size();
11360
+ if (object.current != null)
11361
+ if ($util.Long)
11362
+ (message.current = $util.Long.fromValue(object.current)).unsigned = true;
11363
+ else if (typeof object.current === "string")
11364
+ message.current = parseInt(object.current, 10);
11365
+ else if (typeof object.current === "number")
11366
+ message.current = object.current;
11367
+ else if (typeof object.current === "object")
11368
+ message.current = new $util.LongBits(object.current.low >>> 0, object.current.high >>> 0).toNumber(true);
11369
+ if (object.remote != null)
11370
+ if ($util.Long)
11371
+ (message.remote = $util.Long.fromValue(object.remote)).unsigned = true;
11372
+ else if (typeof object.remote === "string")
11373
+ message.remote = parseInt(object.remote, 10);
11374
+ else if (typeof object.remote === "number")
11375
+ message.remote = object.remote;
11376
+ else if (typeof object.remote === "object")
11377
+ message.remote = new $util.LongBits(object.remote.low >>> 0, object.remote.high >>> 0).toNumber(true);
11378
+ return message;
11379
+ };
11380
+
11381
+ /**
11382
+ * Creates a plain object from a Size message. Also converts values to other types if specified.
11383
+ * @function toObject
11384
+ * @memberof file.FileDiff.Size
11385
+ * @static
11386
+ * @param {file.FileDiff.Size} message Size
11387
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
11388
+ * @returns {Object.<string,*>} Plain object
11389
+ */
11390
+ Size.toObject = function toObject(message, options) {
11391
+ if (!options)
11392
+ options = {};
11393
+ var object = {};
11394
+ if (options.defaults) {
11395
+ if ($util.Long) {
11396
+ var long = new $util.Long(0, 0, true);
11397
+ object.current = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
11398
+ } else
11399
+ object.current = options.longs === String ? "0" : 0;
11400
+ if ($util.Long) {
11401
+ var long = new $util.Long(0, 0, true);
11402
+ object.remote = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
11403
+ } else
11404
+ object.remote = options.longs === String ? "0" : 0;
11405
+ }
11406
+ if (message.current != null && message.hasOwnProperty("current"))
11407
+ if (typeof message.current === "number")
11408
+ object.current = options.longs === String ? String(message.current) : message.current;
11409
+ else
11410
+ object.current = options.longs === String ? $util.Long.prototype.toString.call(message.current) : options.longs === Number ? new $util.LongBits(message.current.low >>> 0, message.current.high >>> 0).toNumber(true) : message.current;
11411
+ if (message.remote != null && message.hasOwnProperty("remote"))
11412
+ if (typeof message.remote === "number")
11413
+ object.remote = options.longs === String ? String(message.remote) : message.remote;
11414
+ else
11415
+ object.remote = options.longs === String ? $util.Long.prototype.toString.call(message.remote) : options.longs === Number ? new $util.LongBits(message.remote.low >>> 0, message.remote.high >>> 0).toNumber(true) : message.remote;
11416
+ return object;
11417
+ };
11418
+
11419
+ /**
11420
+ * Converts this Size to JSON.
11421
+ * @function toJSON
11422
+ * @memberof file.FileDiff.Size
11423
+ * @instance
11424
+ * @returns {Object.<string,*>} JSON object
11425
+ */
11426
+ Size.prototype.toJSON = function toJSON() {
11427
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
11428
+ };
11429
+
11430
+ /**
11431
+ * Gets the default type url for Size
11432
+ * @function getTypeUrl
11433
+ * @memberof file.FileDiff.Size
11434
+ * @static
11435
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
11436
+ * @returns {string} The default type url
11437
+ */
11438
+ Size.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
11439
+ if (typeUrlPrefix === undefined) {
11440
+ typeUrlPrefix = "type.googleapis.com";
11441
+ }
11442
+ return typeUrlPrefix + "/file.FileDiff.Size";
11443
+ };
11444
+
11445
+ return Size;
11446
+ })();
11447
+
11448
+ return FileDiff;
11449
+ })();
11450
+
9477
11451
  file.FileSyncUploadRequestBody = (function() {
9478
11452
 
9479
11453
  /**