core-3nweb-client-lib 0.43.7 → 0.43.9
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/build/api-defs/files.d.ts +82 -4
- package/build/core/storage/synced/obj-files.d.ts +1 -0
- package/build/core/storage/synced/obj-files.js +16 -0
- package/build/core/storage/synced/obj-status.d.ts +1 -0
- package/build/core/storage/synced/obj-status.js +18 -0
- package/build/core/storage/synced/storage.d.ts +6 -2
- package/build/core/storage/synced/storage.js +12 -17
- package/build/core/storage/synced/upsyncer.d.ts +10 -1
- package/build/core/storage/synced/upsyncer.js +72 -9
- package/build/core-ipc/file.d.ts +27 -4
- package/build/core-ipc/file.js +90 -94
- package/build/core-ipc/fs.js +68 -132
- package/build/lib-client/fs-utils/files.js +6 -0
- package/build/lib-client/objs-on-disk/obj-on-disk.d.ts +1 -0
- package/build/lib-client/objs-on-disk/obj-on-disk.js +8 -1
- package/build/lib-client/xsp-fs/common.d.ts +13 -21
- package/build/lib-client/xsp-fs/common.js +4 -16
- package/build/lib-client/xsp-fs/file-node.d.ts +3 -2
- package/build/lib-client/xsp-fs/file-node.js +17 -11
- package/build/lib-client/xsp-fs/file.d.ts +5 -0
- package/build/lib-client/xsp-fs/file.js +26 -13
- package/build/lib-client/xsp-fs/folder-node.d.ts +7 -1
- package/build/lib-client/xsp-fs/folder-node.js +18 -10
- package/build/lib-client/xsp-fs/fs.d.ts +5 -0
- package/build/lib-client/xsp-fs/fs.js +33 -26
- package/build/lib-client/xsp-fs/link-node.d.ts +3 -0
- package/build/lib-client/xsp-fs/link-node.js +5 -1
- package/build/lib-client/xsp-fs/node-in-fs.d.ts +20 -6
- package/build/lib-client/xsp-fs/node-in-fs.js +69 -14
- package/build/lib-client/xsp-fs/node-persistence.d.ts +1 -0
- package/build/lib-client/xsp-fs/node-persistence.js +4 -0
- package/build/lib-common/big-endian.js +2 -2
- package/build/lib-common/processes/labelled-exec-pools.js +1 -3
- package/build/protos/asmail.proto.js +1614 -1588
- package/build/protos/file.proto.js +1258 -541
- package/build/protos/fs.proto.js +1459 -1433
- package/package.json +4 -4
- package/protos/file.proto +31 -15
- package/protos/fs.proto +13 -22
|
@@ -8842,9 +8842,9 @@ $root.file = (function() {
|
|
|
8842
8842
|
* Properties of an UploadingStateMsg.
|
|
8843
8843
|
* @memberof file
|
|
8844
8844
|
* @interface IUploadingStateMsg
|
|
8845
|
-
* @property {
|
|
8846
|
-
* @property {
|
|
8847
|
-
* @property {
|
|
8845
|
+
* @property {number|Long|null} [localVersion] UploadingStateMsg localVersion
|
|
8846
|
+
* @property {number|Long|null} [remoteVersion] UploadingStateMsg remoteVersion
|
|
8847
|
+
* @property {number|Long|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
|
|
8848
8848
|
* @property {boolean|null} [uploadStarted] UploadingStateMsg uploadStarted
|
|
8849
8849
|
*/
|
|
8850
8850
|
|
|
@@ -8865,27 +8865,27 @@ $root.file = (function() {
|
|
|
8865
8865
|
|
|
8866
8866
|
/**
|
|
8867
8867
|
* UploadingStateMsg localVersion.
|
|
8868
|
-
* @member {
|
|
8868
|
+
* @member {number|Long} localVersion
|
|
8869
8869
|
* @memberof file.UploadingStateMsg
|
|
8870
8870
|
* @instance
|
|
8871
8871
|
*/
|
|
8872
|
-
UploadingStateMsg.prototype.localVersion =
|
|
8872
|
+
UploadingStateMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8873
8873
|
|
|
8874
8874
|
/**
|
|
8875
8875
|
* UploadingStateMsg remoteVersion.
|
|
8876
|
-
* @member {
|
|
8876
|
+
* @member {number|Long} remoteVersion
|
|
8877
8877
|
* @memberof file.UploadingStateMsg
|
|
8878
8878
|
* @instance
|
|
8879
8879
|
*/
|
|
8880
|
-
UploadingStateMsg.prototype.remoteVersion =
|
|
8880
|
+
UploadingStateMsg.prototype.remoteVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8881
8881
|
|
|
8882
8882
|
/**
|
|
8883
8883
|
* UploadingStateMsg bytesLeftToUpload.
|
|
8884
|
-
* @member {
|
|
8884
|
+
* @member {number|Long} bytesLeftToUpload
|
|
8885
8885
|
* @memberof file.UploadingStateMsg
|
|
8886
8886
|
* @instance
|
|
8887
8887
|
*/
|
|
8888
|
-
UploadingStateMsg.prototype.bytesLeftToUpload =
|
|
8888
|
+
UploadingStateMsg.prototype.bytesLeftToUpload = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
8889
8889
|
|
|
8890
8890
|
/**
|
|
8891
8891
|
* UploadingStateMsg uploadStarted.
|
|
@@ -8920,11 +8920,11 @@ $root.file = (function() {
|
|
|
8920
8920
|
if (!writer)
|
|
8921
8921
|
writer = $Writer.create();
|
|
8922
8922
|
if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
|
|
8923
|
-
|
|
8923
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.localVersion);
|
|
8924
8924
|
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
8925
|
-
|
|
8925
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remoteVersion);
|
|
8926
8926
|
if (message.bytesLeftToUpload != null && Object.hasOwnProperty.call(message, "bytesLeftToUpload"))
|
|
8927
|
-
|
|
8927
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.bytesLeftToUpload);
|
|
8928
8928
|
if (message.uploadStarted != null && Object.hasOwnProperty.call(message, "uploadStarted"))
|
|
8929
8929
|
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.uploadStarted);
|
|
8930
8930
|
return writer;
|
|
@@ -8964,15 +8964,15 @@ $root.file = (function() {
|
|
|
8964
8964
|
break;
|
|
8965
8965
|
switch (tag >>> 3) {
|
|
8966
8966
|
case 1: {
|
|
8967
|
-
message.localVersion =
|
|
8967
|
+
message.localVersion = reader.uint64();
|
|
8968
8968
|
break;
|
|
8969
8969
|
}
|
|
8970
8970
|
case 2: {
|
|
8971
|
-
message.remoteVersion =
|
|
8971
|
+
message.remoteVersion = reader.uint64();
|
|
8972
8972
|
break;
|
|
8973
8973
|
}
|
|
8974
8974
|
case 3: {
|
|
8975
|
-
message.bytesLeftToUpload =
|
|
8975
|
+
message.bytesLeftToUpload = reader.uint64();
|
|
8976
8976
|
break;
|
|
8977
8977
|
}
|
|
8978
8978
|
case 4: {
|
|
@@ -9014,21 +9014,15 @@ $root.file = (function() {
|
|
|
9014
9014
|
UploadingStateMsg.verify = function verify(message) {
|
|
9015
9015
|
if (typeof message !== "object" || message === null)
|
|
9016
9016
|
return "object expected";
|
|
9017
|
-
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
9018
|
-
|
|
9019
|
-
|
|
9020
|
-
|
|
9021
|
-
|
|
9022
|
-
|
|
9023
|
-
|
|
9024
|
-
if (
|
|
9025
|
-
return "
|
|
9026
|
-
}
|
|
9027
|
-
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload")) {
|
|
9028
|
-
var error = $root.common.UInt64Value.verify(message.bytesLeftToUpload);
|
|
9029
|
-
if (error)
|
|
9030
|
-
return "bytesLeftToUpload." + error;
|
|
9031
|
-
}
|
|
9017
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
9018
|
+
if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
|
|
9019
|
+
return "localVersion: integer|Long expected";
|
|
9020
|
+
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
9021
|
+
if (!$util.isInteger(message.remoteVersion) && !(message.remoteVersion && $util.isInteger(message.remoteVersion.low) && $util.isInteger(message.remoteVersion.high)))
|
|
9022
|
+
return "remoteVersion: integer|Long expected";
|
|
9023
|
+
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
|
|
9024
|
+
if (!$util.isInteger(message.bytesLeftToUpload) && !(message.bytesLeftToUpload && $util.isInteger(message.bytesLeftToUpload.low) && $util.isInteger(message.bytesLeftToUpload.high)))
|
|
9025
|
+
return "bytesLeftToUpload: integer|Long expected";
|
|
9032
9026
|
if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
|
|
9033
9027
|
if (typeof message.uploadStarted !== "boolean")
|
|
9034
9028
|
return "uploadStarted: boolean expected";
|
|
@@ -9047,21 +9041,33 @@ $root.file = (function() {
|
|
|
9047
9041
|
if (object instanceof $root.file.UploadingStateMsg)
|
|
9048
9042
|
return object;
|
|
9049
9043
|
var message = new $root.file.UploadingStateMsg();
|
|
9050
|
-
if (object.localVersion != null)
|
|
9051
|
-
if (
|
|
9052
|
-
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9044
|
+
if (object.localVersion != null)
|
|
9045
|
+
if ($util.Long)
|
|
9046
|
+
(message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
|
|
9047
|
+
else if (typeof object.localVersion === "string")
|
|
9048
|
+
message.localVersion = parseInt(object.localVersion, 10);
|
|
9049
|
+
else if (typeof object.localVersion === "number")
|
|
9050
|
+
message.localVersion = object.localVersion;
|
|
9051
|
+
else if (typeof object.localVersion === "object")
|
|
9052
|
+
message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
|
|
9053
|
+
if (object.remoteVersion != null)
|
|
9054
|
+
if ($util.Long)
|
|
9055
|
+
(message.remoteVersion = $util.Long.fromValue(object.remoteVersion)).unsigned = true;
|
|
9056
|
+
else if (typeof object.remoteVersion === "string")
|
|
9057
|
+
message.remoteVersion = parseInt(object.remoteVersion, 10);
|
|
9058
|
+
else if (typeof object.remoteVersion === "number")
|
|
9059
|
+
message.remoteVersion = object.remoteVersion;
|
|
9060
|
+
else if (typeof object.remoteVersion === "object")
|
|
9061
|
+
message.remoteVersion = new $util.LongBits(object.remoteVersion.low >>> 0, object.remoteVersion.high >>> 0).toNumber(true);
|
|
9062
|
+
if (object.bytesLeftToUpload != null)
|
|
9063
|
+
if ($util.Long)
|
|
9064
|
+
(message.bytesLeftToUpload = $util.Long.fromValue(object.bytesLeftToUpload)).unsigned = true;
|
|
9065
|
+
else if (typeof object.bytesLeftToUpload === "string")
|
|
9066
|
+
message.bytesLeftToUpload = parseInt(object.bytesLeftToUpload, 10);
|
|
9067
|
+
else if (typeof object.bytesLeftToUpload === "number")
|
|
9068
|
+
message.bytesLeftToUpload = object.bytesLeftToUpload;
|
|
9069
|
+
else if (typeof object.bytesLeftToUpload === "object")
|
|
9070
|
+
message.bytesLeftToUpload = new $util.LongBits(object.bytesLeftToUpload.low >>> 0, object.bytesLeftToUpload.high >>> 0).toNumber(true);
|
|
9065
9071
|
if (object.uploadStarted != null)
|
|
9066
9072
|
message.uploadStarted = Boolean(object.uploadStarted);
|
|
9067
9073
|
return message;
|
|
@@ -9081,17 +9087,38 @@ $root.file = (function() {
|
|
|
9081
9087
|
options = {};
|
|
9082
9088
|
var object = {};
|
|
9083
9089
|
if (options.defaults) {
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9090
|
+
if ($util.Long) {
|
|
9091
|
+
var long = new $util.Long(0, 0, true);
|
|
9092
|
+
object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9093
|
+
} else
|
|
9094
|
+
object.localVersion = options.longs === String ? "0" : 0;
|
|
9095
|
+
if ($util.Long) {
|
|
9096
|
+
var long = new $util.Long(0, 0, true);
|
|
9097
|
+
object.remoteVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9098
|
+
} else
|
|
9099
|
+
object.remoteVersion = options.longs === String ? "0" : 0;
|
|
9100
|
+
if ($util.Long) {
|
|
9101
|
+
var long = new $util.Long(0, 0, true);
|
|
9102
|
+
object.bytesLeftToUpload = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
9103
|
+
} else
|
|
9104
|
+
object.bytesLeftToUpload = options.longs === String ? "0" : 0;
|
|
9087
9105
|
object.uploadStarted = false;
|
|
9088
9106
|
}
|
|
9089
9107
|
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
9090
|
-
|
|
9108
|
+
if (typeof message.localVersion === "number")
|
|
9109
|
+
object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
|
|
9110
|
+
else
|
|
9111
|
+
object.localVersion = options.longs === String ? $util.Long.prototype.toString.call(message.localVersion) : options.longs === Number ? new $util.LongBits(message.localVersion.low >>> 0, message.localVersion.high >>> 0).toNumber(true) : message.localVersion;
|
|
9091
9112
|
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
9092
|
-
|
|
9113
|
+
if (typeof message.remoteVersion === "number")
|
|
9114
|
+
object.remoteVersion = options.longs === String ? String(message.remoteVersion) : message.remoteVersion;
|
|
9115
|
+
else
|
|
9116
|
+
object.remoteVersion = options.longs === String ? $util.Long.prototype.toString.call(message.remoteVersion) : options.longs === Number ? new $util.LongBits(message.remoteVersion.low >>> 0, message.remoteVersion.high >>> 0).toNumber(true) : message.remoteVersion;
|
|
9093
9117
|
if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
|
|
9094
|
-
|
|
9118
|
+
if (typeof message.bytesLeftToUpload === "number")
|
|
9119
|
+
object.bytesLeftToUpload = options.longs === String ? String(message.bytesLeftToUpload) : message.bytesLeftToUpload;
|
|
9120
|
+
else
|
|
9121
|
+
object.bytesLeftToUpload = options.longs === String ? $util.Long.prototype.toString.call(message.bytesLeftToUpload) : options.longs === Number ? new $util.LongBits(message.bytesLeftToUpload.low >>> 0, message.bytesLeftToUpload.high >>> 0).toNumber(true) : message.bytesLeftToUpload;
|
|
9095
9122
|
if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
|
|
9096
9123
|
object.uploadStarted = message.uploadStarted;
|
|
9097
9124
|
return object;
|
|
@@ -9140,7 +9167,8 @@ $root.file = (function() {
|
|
|
9140
9167
|
* @property {common.IUInt64Value|null} [mtime] StatsMsg mtime
|
|
9141
9168
|
* @property {common.IUInt64Value|null} [ctime] StatsMsg ctime
|
|
9142
9169
|
* @property {common.IUInt64Value|null} [version] StatsMsg version
|
|
9143
|
-
* @property {
|
|
9170
|
+
* @property {common.IUInt64Value|null} [bytesNeedDownload] StatsMsg bytesNeedDownload
|
|
9171
|
+
* @property {common.IStringValue|null} [versionSyncBranch] StatsMsg versionSyncBranch
|
|
9144
9172
|
*/
|
|
9145
9173
|
|
|
9146
9174
|
/**
|
|
@@ -9223,12 +9251,20 @@ $root.file = (function() {
|
|
|
9223
9251
|
StatsMsg.prototype.version = null;
|
|
9224
9252
|
|
|
9225
9253
|
/**
|
|
9226
|
-
* StatsMsg
|
|
9227
|
-
* @member {
|
|
9254
|
+
* StatsMsg bytesNeedDownload.
|
|
9255
|
+
* @member {common.IUInt64Value|null|undefined} bytesNeedDownload
|
|
9256
|
+
* @memberof file.StatsMsg
|
|
9257
|
+
* @instance
|
|
9258
|
+
*/
|
|
9259
|
+
StatsMsg.prototype.bytesNeedDownload = null;
|
|
9260
|
+
|
|
9261
|
+
/**
|
|
9262
|
+
* StatsMsg versionSyncBranch.
|
|
9263
|
+
* @member {common.IStringValue|null|undefined} versionSyncBranch
|
|
9228
9264
|
* @memberof file.StatsMsg
|
|
9229
9265
|
* @instance
|
|
9230
9266
|
*/
|
|
9231
|
-
StatsMsg.prototype.
|
|
9267
|
+
StatsMsg.prototype.versionSyncBranch = null;
|
|
9232
9268
|
|
|
9233
9269
|
/**
|
|
9234
9270
|
* Creates a new StatsMsg instance using the specified properties.
|
|
@@ -9270,8 +9306,10 @@ $root.file = (function() {
|
|
|
9270
9306
|
$root.common.UInt64Value.encode(message.ctime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
9271
9307
|
if (message.version != null && Object.hasOwnProperty.call(message, "version"))
|
|
9272
9308
|
$root.common.UInt64Value.encode(message.version, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
9273
|
-
if (message.
|
|
9274
|
-
$root.
|
|
9309
|
+
if (message.bytesNeedDownload != null && Object.hasOwnProperty.call(message, "bytesNeedDownload"))
|
|
9310
|
+
$root.common.UInt64Value.encode(message.bytesNeedDownload, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
9311
|
+
if (message.versionSyncBranch != null && Object.hasOwnProperty.call(message, "versionSyncBranch"))
|
|
9312
|
+
$root.common.StringValue.encode(message.versionSyncBranch, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
9275
9313
|
return writer;
|
|
9276
9314
|
};
|
|
9277
9315
|
|
|
@@ -9341,7 +9379,11 @@ $root.file = (function() {
|
|
|
9341
9379
|
break;
|
|
9342
9380
|
}
|
|
9343
9381
|
case 9: {
|
|
9344
|
-
message.
|
|
9382
|
+
message.bytesNeedDownload = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
9383
|
+
break;
|
|
9384
|
+
}
|
|
9385
|
+
case 10: {
|
|
9386
|
+
message.versionSyncBranch = $root.common.StringValue.decode(reader, reader.uint32());
|
|
9345
9387
|
break;
|
|
9346
9388
|
}
|
|
9347
9389
|
default:
|
|
@@ -9417,10 +9459,15 @@ $root.file = (function() {
|
|
|
9417
9459
|
if (error)
|
|
9418
9460
|
return "version." + error;
|
|
9419
9461
|
}
|
|
9420
|
-
if (message.
|
|
9421
|
-
var error = $root.
|
|
9462
|
+
if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload")) {
|
|
9463
|
+
var error = $root.common.UInt64Value.verify(message.bytesNeedDownload);
|
|
9464
|
+
if (error)
|
|
9465
|
+
return "bytesNeedDownload." + error;
|
|
9466
|
+
}
|
|
9467
|
+
if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch")) {
|
|
9468
|
+
var error = $root.common.StringValue.verify(message.versionSyncBranch);
|
|
9422
9469
|
if (error)
|
|
9423
|
-
return "
|
|
9470
|
+
return "versionSyncBranch." + error;
|
|
9424
9471
|
}
|
|
9425
9472
|
return null;
|
|
9426
9473
|
};
|
|
@@ -9474,10 +9521,15 @@ $root.file = (function() {
|
|
|
9474
9521
|
throw TypeError(".file.StatsMsg.version: object expected");
|
|
9475
9522
|
message.version = $root.common.UInt64Value.fromObject(object.version);
|
|
9476
9523
|
}
|
|
9477
|
-
if (object.
|
|
9478
|
-
if (typeof object.
|
|
9479
|
-
throw TypeError(".file.StatsMsg.
|
|
9480
|
-
message.
|
|
9524
|
+
if (object.bytesNeedDownload != null) {
|
|
9525
|
+
if (typeof object.bytesNeedDownload !== "object")
|
|
9526
|
+
throw TypeError(".file.StatsMsg.bytesNeedDownload: object expected");
|
|
9527
|
+
message.bytesNeedDownload = $root.common.UInt64Value.fromObject(object.bytesNeedDownload);
|
|
9528
|
+
}
|
|
9529
|
+
if (object.versionSyncBranch != null) {
|
|
9530
|
+
if (typeof object.versionSyncBranch !== "object")
|
|
9531
|
+
throw TypeError(".file.StatsMsg.versionSyncBranch: object expected");
|
|
9532
|
+
message.versionSyncBranch = $root.common.StringValue.fromObject(object.versionSyncBranch);
|
|
9481
9533
|
}
|
|
9482
9534
|
return message;
|
|
9483
9535
|
};
|
|
@@ -9504,7 +9556,8 @@ $root.file = (function() {
|
|
|
9504
9556
|
object.mtime = null;
|
|
9505
9557
|
object.ctime = null;
|
|
9506
9558
|
object.version = null;
|
|
9507
|
-
object.
|
|
9559
|
+
object.bytesNeedDownload = null;
|
|
9560
|
+
object.versionSyncBranch = null;
|
|
9508
9561
|
}
|
|
9509
9562
|
if (message.isFile != null && message.hasOwnProperty("isFile"))
|
|
9510
9563
|
object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
|
|
@@ -9522,8 +9575,10 @@ $root.file = (function() {
|
|
|
9522
9575
|
object.ctime = $root.common.UInt64Value.toObject(message.ctime, options);
|
|
9523
9576
|
if (message.version != null && message.hasOwnProperty("version"))
|
|
9524
9577
|
object.version = $root.common.UInt64Value.toObject(message.version, options);
|
|
9525
|
-
if (message.
|
|
9526
|
-
object.
|
|
9578
|
+
if (message.bytesNeedDownload != null && message.hasOwnProperty("bytesNeedDownload"))
|
|
9579
|
+
object.bytesNeedDownload = $root.common.UInt64Value.toObject(message.bytesNeedDownload, options);
|
|
9580
|
+
if (message.versionSyncBranch != null && message.hasOwnProperty("versionSyncBranch"))
|
|
9581
|
+
object.versionSyncBranch = $root.common.StringValue.toObject(message.versionSyncBranch, options);
|
|
9527
9582
|
return object;
|
|
9528
9583
|
};
|
|
9529
9584
|
|
|
@@ -10477,29 +10532,25 @@ $root.file = (function() {
|
|
|
10477
10532
|
return ReadBytesReplyBody;
|
|
10478
10533
|
})();
|
|
10479
10534
|
|
|
10480
|
-
file.
|
|
10535
|
+
file.VersionedReadFlags = (function() {
|
|
10481
10536
|
|
|
10482
10537
|
/**
|
|
10483
|
-
* Properties of a
|
|
10538
|
+
* Properties of a VersionedReadFlags.
|
|
10484
10539
|
* @memberof file
|
|
10485
|
-
* @interface
|
|
10486
|
-
* @property {
|
|
10487
|
-
* @property {
|
|
10488
|
-
* @property {common.IStringValue|null} [src] FileEventMsg src
|
|
10489
|
-
* @property {common.IUInt64Value|null} [newVersion] FileEventMsg newVersion
|
|
10490
|
-
* @property {common.IUInt64Value|null} [removedArchVer] FileEventMsg removedArchVer
|
|
10491
|
-
* @property {common.IUInt64Value|null} [archivedVersion] FileEventMsg archivedVersion
|
|
10540
|
+
* @interface IVersionedReadFlags
|
|
10541
|
+
* @property {common.IUInt64Value|null} [archivedVersion] VersionedReadFlags archivedVersion
|
|
10542
|
+
* @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
|
|
10492
10543
|
*/
|
|
10493
10544
|
|
|
10494
10545
|
/**
|
|
10495
|
-
* Constructs a new
|
|
10546
|
+
* Constructs a new VersionedReadFlags.
|
|
10496
10547
|
* @memberof file
|
|
10497
|
-
* @classdesc Represents a
|
|
10498
|
-
* @implements
|
|
10548
|
+
* @classdesc Represents a VersionedReadFlags.
|
|
10549
|
+
* @implements IVersionedReadFlags
|
|
10499
10550
|
* @constructor
|
|
10500
|
-
* @param {file.
|
|
10551
|
+
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
10501
10552
|
*/
|
|
10502
|
-
function
|
|
10553
|
+
function VersionedReadFlags(properties) {
|
|
10503
10554
|
if (properties)
|
|
10504
10555
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10505
10556
|
if (properties[keys[i]] != null)
|
|
@@ -10507,147 +10558,91 @@ $root.file = (function() {
|
|
|
10507
10558
|
}
|
|
10508
10559
|
|
|
10509
10560
|
/**
|
|
10510
|
-
*
|
|
10511
|
-
* @member {
|
|
10512
|
-
* @memberof file.
|
|
10513
|
-
* @instance
|
|
10514
|
-
*/
|
|
10515
|
-
FileEventMsg.prototype.type = "";
|
|
10516
|
-
|
|
10517
|
-
/**
|
|
10518
|
-
* FileEventMsg path.
|
|
10519
|
-
* @member {string} path
|
|
10520
|
-
* @memberof file.FileEventMsg
|
|
10521
|
-
* @instance
|
|
10522
|
-
*/
|
|
10523
|
-
FileEventMsg.prototype.path = "";
|
|
10524
|
-
|
|
10525
|
-
/**
|
|
10526
|
-
* FileEventMsg src.
|
|
10527
|
-
* @member {common.IStringValue|null|undefined} src
|
|
10528
|
-
* @memberof file.FileEventMsg
|
|
10529
|
-
* @instance
|
|
10530
|
-
*/
|
|
10531
|
-
FileEventMsg.prototype.src = null;
|
|
10532
|
-
|
|
10533
|
-
/**
|
|
10534
|
-
* FileEventMsg newVersion.
|
|
10535
|
-
* @member {common.IUInt64Value|null|undefined} newVersion
|
|
10536
|
-
* @memberof file.FileEventMsg
|
|
10537
|
-
* @instance
|
|
10538
|
-
*/
|
|
10539
|
-
FileEventMsg.prototype.newVersion = null;
|
|
10540
|
-
|
|
10541
|
-
/**
|
|
10542
|
-
* FileEventMsg removedArchVer.
|
|
10543
|
-
* @member {common.IUInt64Value|null|undefined} removedArchVer
|
|
10544
|
-
* @memberof file.FileEventMsg
|
|
10561
|
+
* VersionedReadFlags archivedVersion.
|
|
10562
|
+
* @member {common.IUInt64Value|null|undefined} archivedVersion
|
|
10563
|
+
* @memberof file.VersionedReadFlags
|
|
10545
10564
|
* @instance
|
|
10546
10565
|
*/
|
|
10547
|
-
|
|
10566
|
+
VersionedReadFlags.prototype.archivedVersion = null;
|
|
10548
10567
|
|
|
10549
10568
|
/**
|
|
10550
|
-
*
|
|
10551
|
-
* @member {common.IUInt64Value|null|undefined}
|
|
10552
|
-
* @memberof file.
|
|
10569
|
+
* VersionedReadFlags remoteVersion.
|
|
10570
|
+
* @member {common.IUInt64Value|null|undefined} remoteVersion
|
|
10571
|
+
* @memberof file.VersionedReadFlags
|
|
10553
10572
|
* @instance
|
|
10554
10573
|
*/
|
|
10555
|
-
|
|
10574
|
+
VersionedReadFlags.prototype.remoteVersion = null;
|
|
10556
10575
|
|
|
10557
10576
|
/**
|
|
10558
|
-
* Creates a new
|
|
10577
|
+
* Creates a new VersionedReadFlags instance using the specified properties.
|
|
10559
10578
|
* @function create
|
|
10560
|
-
* @memberof file.
|
|
10579
|
+
* @memberof file.VersionedReadFlags
|
|
10561
10580
|
* @static
|
|
10562
|
-
* @param {file.
|
|
10563
|
-
* @returns {file.
|
|
10581
|
+
* @param {file.IVersionedReadFlags=} [properties] Properties to set
|
|
10582
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags instance
|
|
10564
10583
|
*/
|
|
10565
|
-
|
|
10566
|
-
return new
|
|
10584
|
+
VersionedReadFlags.create = function create(properties) {
|
|
10585
|
+
return new VersionedReadFlags(properties);
|
|
10567
10586
|
};
|
|
10568
10587
|
|
|
10569
10588
|
/**
|
|
10570
|
-
* Encodes the specified
|
|
10589
|
+
* Encodes the specified VersionedReadFlags message. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
10571
10590
|
* @function encode
|
|
10572
|
-
* @memberof file.
|
|
10591
|
+
* @memberof file.VersionedReadFlags
|
|
10573
10592
|
* @static
|
|
10574
|
-
* @param {file.
|
|
10593
|
+
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
10575
10594
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10576
10595
|
* @returns {$protobuf.Writer} Writer
|
|
10577
10596
|
*/
|
|
10578
|
-
|
|
10597
|
+
VersionedReadFlags.encode = function encode(message, writer) {
|
|
10579
10598
|
if (!writer)
|
|
10580
10599
|
writer = $Writer.create();
|
|
10581
|
-
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
10582
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
10583
|
-
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
10584
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.path);
|
|
10585
|
-
if (message.src != null && Object.hasOwnProperty.call(message, "src"))
|
|
10586
|
-
$root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
10587
|
-
if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
|
|
10588
|
-
$root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
10589
|
-
if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
|
|
10590
|
-
$root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
10591
10600
|
if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
|
|
10592
|
-
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id
|
|
10601
|
+
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
10602
|
+
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
10603
|
+
$root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10593
10604
|
return writer;
|
|
10594
10605
|
};
|
|
10595
10606
|
|
|
10596
10607
|
/**
|
|
10597
|
-
* Encodes the specified
|
|
10608
|
+
* Encodes the specified VersionedReadFlags message, length delimited. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
10598
10609
|
* @function encodeDelimited
|
|
10599
|
-
* @memberof file.
|
|
10610
|
+
* @memberof file.VersionedReadFlags
|
|
10600
10611
|
* @static
|
|
10601
|
-
* @param {file.
|
|
10612
|
+
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
10602
10613
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10603
10614
|
* @returns {$protobuf.Writer} Writer
|
|
10604
10615
|
*/
|
|
10605
|
-
|
|
10616
|
+
VersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10606
10617
|
return this.encode(message, writer).ldelim();
|
|
10607
10618
|
};
|
|
10608
10619
|
|
|
10609
10620
|
/**
|
|
10610
|
-
* Decodes a
|
|
10621
|
+
* Decodes a VersionedReadFlags message from the specified reader or buffer.
|
|
10611
10622
|
* @function decode
|
|
10612
|
-
* @memberof file.
|
|
10623
|
+
* @memberof file.VersionedReadFlags
|
|
10613
10624
|
* @static
|
|
10614
10625
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10615
10626
|
* @param {number} [length] Message length if known beforehand
|
|
10616
|
-
* @returns {file.
|
|
10627
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
10617
10628
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10618
10629
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10619
10630
|
*/
|
|
10620
|
-
|
|
10631
|
+
VersionedReadFlags.decode = function decode(reader, length, error) {
|
|
10621
10632
|
if (!(reader instanceof $Reader))
|
|
10622
10633
|
reader = $Reader.create(reader);
|
|
10623
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.
|
|
10634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadFlags();
|
|
10624
10635
|
while (reader.pos < end) {
|
|
10625
10636
|
var tag = reader.uint32();
|
|
10626
10637
|
if (tag === error)
|
|
10627
10638
|
break;
|
|
10628
10639
|
switch (tag >>> 3) {
|
|
10629
10640
|
case 1: {
|
|
10630
|
-
message.
|
|
10641
|
+
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
10631
10642
|
break;
|
|
10632
10643
|
}
|
|
10633
10644
|
case 2: {
|
|
10634
|
-
message.
|
|
10635
|
-
break;
|
|
10636
|
-
}
|
|
10637
|
-
case 3: {
|
|
10638
|
-
message.src = $root.common.StringValue.decode(reader, reader.uint32());
|
|
10639
|
-
break;
|
|
10640
|
-
}
|
|
10641
|
-
case 4: {
|
|
10642
|
-
message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
10643
|
-
break;
|
|
10644
|
-
}
|
|
10645
|
-
case 5: {
|
|
10646
|
-
message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
10647
|
-
break;
|
|
10648
|
-
}
|
|
10649
|
-
case 6: {
|
|
10650
|
-
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
10645
|
+
message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
10651
10646
|
break;
|
|
10652
10647
|
}
|
|
10653
10648
|
default:
|
|
@@ -10659,184 +10654,141 @@ $root.file = (function() {
|
|
|
10659
10654
|
};
|
|
10660
10655
|
|
|
10661
10656
|
/**
|
|
10662
|
-
* Decodes a
|
|
10657
|
+
* Decodes a VersionedReadFlags message from the specified reader or buffer, length delimited.
|
|
10663
10658
|
* @function decodeDelimited
|
|
10664
|
-
* @memberof file.
|
|
10659
|
+
* @memberof file.VersionedReadFlags
|
|
10665
10660
|
* @static
|
|
10666
10661
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10667
|
-
* @returns {file.
|
|
10662
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
10668
10663
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10669
10664
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10670
10665
|
*/
|
|
10671
|
-
|
|
10666
|
+
VersionedReadFlags.decodeDelimited = function decodeDelimited(reader) {
|
|
10672
10667
|
if (!(reader instanceof $Reader))
|
|
10673
10668
|
reader = new $Reader(reader);
|
|
10674
10669
|
return this.decode(reader, reader.uint32());
|
|
10675
10670
|
};
|
|
10676
10671
|
|
|
10677
10672
|
/**
|
|
10678
|
-
* Verifies a
|
|
10673
|
+
* Verifies a VersionedReadFlags message.
|
|
10679
10674
|
* @function verify
|
|
10680
|
-
* @memberof file.
|
|
10675
|
+
* @memberof file.VersionedReadFlags
|
|
10681
10676
|
* @static
|
|
10682
10677
|
* @param {Object.<string,*>} message Plain object to verify
|
|
10683
10678
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10684
10679
|
*/
|
|
10685
|
-
|
|
10680
|
+
VersionedReadFlags.verify = function verify(message) {
|
|
10686
10681
|
if (typeof message !== "object" || message === null)
|
|
10687
10682
|
return "object expected";
|
|
10688
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
10689
|
-
if (!$util.isString(message.type))
|
|
10690
|
-
return "type: string expected";
|
|
10691
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
10692
|
-
if (!$util.isString(message.path))
|
|
10693
|
-
return "path: string expected";
|
|
10694
|
-
if (message.src != null && message.hasOwnProperty("src")) {
|
|
10695
|
-
var error = $root.common.StringValue.verify(message.src);
|
|
10696
|
-
if (error)
|
|
10697
|
-
return "src." + error;
|
|
10698
|
-
}
|
|
10699
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
|
|
10700
|
-
var error = $root.common.UInt64Value.verify(message.newVersion);
|
|
10701
|
-
if (error)
|
|
10702
|
-
return "newVersion." + error;
|
|
10703
|
-
}
|
|
10704
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
|
|
10705
|
-
var error = $root.common.UInt64Value.verify(message.removedArchVer);
|
|
10706
|
-
if (error)
|
|
10707
|
-
return "removedArchVer." + error;
|
|
10708
|
-
}
|
|
10709
10683
|
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
|
|
10710
10684
|
var error = $root.common.UInt64Value.verify(message.archivedVersion);
|
|
10711
10685
|
if (error)
|
|
10712
10686
|
return "archivedVersion." + error;
|
|
10713
10687
|
}
|
|
10688
|
+
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
|
|
10689
|
+
var error = $root.common.UInt64Value.verify(message.remoteVersion);
|
|
10690
|
+
if (error)
|
|
10691
|
+
return "remoteVersion." + error;
|
|
10692
|
+
}
|
|
10714
10693
|
return null;
|
|
10715
10694
|
};
|
|
10716
10695
|
|
|
10717
10696
|
/**
|
|
10718
|
-
* Creates a
|
|
10697
|
+
* Creates a VersionedReadFlags message from a plain object. Also converts values to their respective internal types.
|
|
10719
10698
|
* @function fromObject
|
|
10720
|
-
* @memberof file.
|
|
10699
|
+
* @memberof file.VersionedReadFlags
|
|
10721
10700
|
* @static
|
|
10722
10701
|
* @param {Object.<string,*>} object Plain object
|
|
10723
|
-
* @returns {file.
|
|
10702
|
+
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
10724
10703
|
*/
|
|
10725
|
-
|
|
10726
|
-
if (object instanceof $root.file.
|
|
10704
|
+
VersionedReadFlags.fromObject = function fromObject(object) {
|
|
10705
|
+
if (object instanceof $root.file.VersionedReadFlags)
|
|
10727
10706
|
return object;
|
|
10728
|
-
var message = new $root.file.
|
|
10729
|
-
if (object.type != null)
|
|
10730
|
-
message.type = String(object.type);
|
|
10731
|
-
if (object.path != null)
|
|
10732
|
-
message.path = String(object.path);
|
|
10733
|
-
if (object.src != null) {
|
|
10734
|
-
if (typeof object.src !== "object")
|
|
10735
|
-
throw TypeError(".file.FileEventMsg.src: object expected");
|
|
10736
|
-
message.src = $root.common.StringValue.fromObject(object.src);
|
|
10737
|
-
}
|
|
10738
|
-
if (object.newVersion != null) {
|
|
10739
|
-
if (typeof object.newVersion !== "object")
|
|
10740
|
-
throw TypeError(".file.FileEventMsg.newVersion: object expected");
|
|
10741
|
-
message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
|
|
10742
|
-
}
|
|
10743
|
-
if (object.removedArchVer != null) {
|
|
10744
|
-
if (typeof object.removedArchVer !== "object")
|
|
10745
|
-
throw TypeError(".file.FileEventMsg.removedArchVer: object expected");
|
|
10746
|
-
message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
|
|
10747
|
-
}
|
|
10707
|
+
var message = new $root.file.VersionedReadFlags();
|
|
10748
10708
|
if (object.archivedVersion != null) {
|
|
10749
10709
|
if (typeof object.archivedVersion !== "object")
|
|
10750
|
-
throw TypeError(".file.
|
|
10710
|
+
throw TypeError(".file.VersionedReadFlags.archivedVersion: object expected");
|
|
10751
10711
|
message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
|
|
10752
10712
|
}
|
|
10713
|
+
if (object.remoteVersion != null) {
|
|
10714
|
+
if (typeof object.remoteVersion !== "object")
|
|
10715
|
+
throw TypeError(".file.VersionedReadFlags.remoteVersion: object expected");
|
|
10716
|
+
message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
|
|
10717
|
+
}
|
|
10753
10718
|
return message;
|
|
10754
10719
|
};
|
|
10755
10720
|
|
|
10756
10721
|
/**
|
|
10757
|
-
* Creates a plain object from a
|
|
10722
|
+
* Creates a plain object from a VersionedReadFlags message. Also converts values to other types if specified.
|
|
10758
10723
|
* @function toObject
|
|
10759
|
-
* @memberof file.
|
|
10724
|
+
* @memberof file.VersionedReadFlags
|
|
10760
10725
|
* @static
|
|
10761
|
-
* @param {file.
|
|
10726
|
+
* @param {file.VersionedReadFlags} message VersionedReadFlags
|
|
10762
10727
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10763
10728
|
* @returns {Object.<string,*>} Plain object
|
|
10764
10729
|
*/
|
|
10765
|
-
|
|
10730
|
+
VersionedReadFlags.toObject = function toObject(message, options) {
|
|
10766
10731
|
if (!options)
|
|
10767
10732
|
options = {};
|
|
10768
10733
|
var object = {};
|
|
10769
10734
|
if (options.defaults) {
|
|
10770
|
-
object.type = "";
|
|
10771
|
-
object.path = "";
|
|
10772
|
-
object.src = null;
|
|
10773
|
-
object.newVersion = null;
|
|
10774
|
-
object.removedArchVer = null;
|
|
10775
10735
|
object.archivedVersion = null;
|
|
10736
|
+
object.remoteVersion = null;
|
|
10776
10737
|
}
|
|
10777
|
-
if (message.type != null && message.hasOwnProperty("type"))
|
|
10778
|
-
object.type = message.type;
|
|
10779
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
10780
|
-
object.path = message.path;
|
|
10781
|
-
if (message.src != null && message.hasOwnProperty("src"))
|
|
10782
|
-
object.src = $root.common.StringValue.toObject(message.src, options);
|
|
10783
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion"))
|
|
10784
|
-
object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
|
|
10785
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
|
|
10786
|
-
object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
|
|
10787
10738
|
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
|
|
10788
10739
|
object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
|
|
10740
|
+
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
10741
|
+
object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
|
|
10789
10742
|
return object;
|
|
10790
10743
|
};
|
|
10791
10744
|
|
|
10792
10745
|
/**
|
|
10793
|
-
* Converts this
|
|
10746
|
+
* Converts this VersionedReadFlags to JSON.
|
|
10794
10747
|
* @function toJSON
|
|
10795
|
-
* @memberof file.
|
|
10748
|
+
* @memberof file.VersionedReadFlags
|
|
10796
10749
|
* @instance
|
|
10797
10750
|
* @returns {Object.<string,*>} JSON object
|
|
10798
10751
|
*/
|
|
10799
|
-
|
|
10752
|
+
VersionedReadFlags.prototype.toJSON = function toJSON() {
|
|
10800
10753
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10801
10754
|
};
|
|
10802
10755
|
|
|
10803
10756
|
/**
|
|
10804
|
-
* Gets the default type url for
|
|
10757
|
+
* Gets the default type url for VersionedReadFlags
|
|
10805
10758
|
* @function getTypeUrl
|
|
10806
|
-
* @memberof file.
|
|
10759
|
+
* @memberof file.VersionedReadFlags
|
|
10807
10760
|
* @static
|
|
10808
10761
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
10809
10762
|
* @returns {string} The default type url
|
|
10810
10763
|
*/
|
|
10811
|
-
|
|
10764
|
+
VersionedReadFlags.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
10812
10765
|
if (typeUrlPrefix === undefined) {
|
|
10813
10766
|
typeUrlPrefix = "type.googleapis.com";
|
|
10814
10767
|
}
|
|
10815
|
-
return typeUrlPrefix + "/file.
|
|
10768
|
+
return typeUrlPrefix + "/file.VersionedReadFlags";
|
|
10816
10769
|
};
|
|
10817
10770
|
|
|
10818
|
-
return
|
|
10771
|
+
return VersionedReadFlags;
|
|
10819
10772
|
})();
|
|
10820
10773
|
|
|
10821
|
-
file.
|
|
10774
|
+
file.RequestWithVersionedReadFlags = (function() {
|
|
10822
10775
|
|
|
10823
10776
|
/**
|
|
10824
|
-
* Properties of a
|
|
10777
|
+
* Properties of a RequestWithVersionedReadFlags.
|
|
10825
10778
|
* @memberof file
|
|
10826
|
-
* @interface
|
|
10827
|
-
* @property {
|
|
10828
|
-
* @property {common.IUInt64Value|null} [remoteVersion] VersionedReadFlags remoteVersion
|
|
10779
|
+
* @interface IRequestWithVersionedReadFlags
|
|
10780
|
+
* @property {file.IVersionedReadFlags|null} [flags] RequestWithVersionedReadFlags flags
|
|
10829
10781
|
*/
|
|
10830
10782
|
|
|
10831
10783
|
/**
|
|
10832
|
-
* Constructs a new
|
|
10784
|
+
* Constructs a new RequestWithVersionedReadFlags.
|
|
10833
10785
|
* @memberof file
|
|
10834
|
-
* @classdesc Represents a
|
|
10835
|
-
* @implements
|
|
10786
|
+
* @classdesc Represents a RequestWithVersionedReadFlags.
|
|
10787
|
+
* @implements IRequestWithVersionedReadFlags
|
|
10836
10788
|
* @constructor
|
|
10837
|
-
* @param {file.
|
|
10789
|
+
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
10838
10790
|
*/
|
|
10839
|
-
function
|
|
10791
|
+
function RequestWithVersionedReadFlags(properties) {
|
|
10840
10792
|
if (properties)
|
|
10841
10793
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10842
10794
|
if (properties[keys[i]] != null)
|
|
@@ -10844,258 +10796,20 @@ $root.file = (function() {
|
|
|
10844
10796
|
}
|
|
10845
10797
|
|
|
10846
10798
|
/**
|
|
10847
|
-
*
|
|
10848
|
-
* @member {
|
|
10849
|
-
* @memberof file.
|
|
10850
|
-
* @instance
|
|
10851
|
-
*/
|
|
10852
|
-
VersionedReadFlags.prototype.archivedVersion = null;
|
|
10853
|
-
|
|
10854
|
-
/**
|
|
10855
|
-
* VersionedReadFlags remoteVersion.
|
|
10856
|
-
* @member {common.IUInt64Value|null|undefined} remoteVersion
|
|
10857
|
-
* @memberof file.VersionedReadFlags
|
|
10799
|
+
* RequestWithVersionedReadFlags flags.
|
|
10800
|
+
* @member {file.IVersionedReadFlags|null|undefined} flags
|
|
10801
|
+
* @memberof file.RequestWithVersionedReadFlags
|
|
10858
10802
|
* @instance
|
|
10859
10803
|
*/
|
|
10860
|
-
|
|
10804
|
+
RequestWithVersionedReadFlags.prototype.flags = null;
|
|
10861
10805
|
|
|
10862
10806
|
/**
|
|
10863
|
-
* Creates a new
|
|
10807
|
+
* Creates a new RequestWithVersionedReadFlags instance using the specified properties.
|
|
10864
10808
|
* @function create
|
|
10865
|
-
* @memberof file.
|
|
10809
|
+
* @memberof file.RequestWithVersionedReadFlags
|
|
10866
10810
|
* @static
|
|
10867
|
-
* @param {file.
|
|
10868
|
-
* @returns {file.
|
|
10869
|
-
*/
|
|
10870
|
-
VersionedReadFlags.create = function create(properties) {
|
|
10871
|
-
return new VersionedReadFlags(properties);
|
|
10872
|
-
};
|
|
10873
|
-
|
|
10874
|
-
/**
|
|
10875
|
-
* Encodes the specified VersionedReadFlags message. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
10876
|
-
* @function encode
|
|
10877
|
-
* @memberof file.VersionedReadFlags
|
|
10878
|
-
* @static
|
|
10879
|
-
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
10880
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10881
|
-
* @returns {$protobuf.Writer} Writer
|
|
10882
|
-
*/
|
|
10883
|
-
VersionedReadFlags.encode = function encode(message, writer) {
|
|
10884
|
-
if (!writer)
|
|
10885
|
-
writer = $Writer.create();
|
|
10886
|
-
if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
|
|
10887
|
-
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
10888
|
-
if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
|
|
10889
|
-
$root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10890
|
-
return writer;
|
|
10891
|
-
};
|
|
10892
|
-
|
|
10893
|
-
/**
|
|
10894
|
-
* Encodes the specified VersionedReadFlags message, length delimited. Does not implicitly {@link file.VersionedReadFlags.verify|verify} messages.
|
|
10895
|
-
* @function encodeDelimited
|
|
10896
|
-
* @memberof file.VersionedReadFlags
|
|
10897
|
-
* @static
|
|
10898
|
-
* @param {file.IVersionedReadFlags} message VersionedReadFlags message or plain object to encode
|
|
10899
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10900
|
-
* @returns {$protobuf.Writer} Writer
|
|
10901
|
-
*/
|
|
10902
|
-
VersionedReadFlags.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10903
|
-
return this.encode(message, writer).ldelim();
|
|
10904
|
-
};
|
|
10905
|
-
|
|
10906
|
-
/**
|
|
10907
|
-
* Decodes a VersionedReadFlags message from the specified reader or buffer.
|
|
10908
|
-
* @function decode
|
|
10909
|
-
* @memberof file.VersionedReadFlags
|
|
10910
|
-
* @static
|
|
10911
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10912
|
-
* @param {number} [length] Message length if known beforehand
|
|
10913
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
10914
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10915
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10916
|
-
*/
|
|
10917
|
-
VersionedReadFlags.decode = function decode(reader, length, error) {
|
|
10918
|
-
if (!(reader instanceof $Reader))
|
|
10919
|
-
reader = $Reader.create(reader);
|
|
10920
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.VersionedReadFlags();
|
|
10921
|
-
while (reader.pos < end) {
|
|
10922
|
-
var tag = reader.uint32();
|
|
10923
|
-
if (tag === error)
|
|
10924
|
-
break;
|
|
10925
|
-
switch (tag >>> 3) {
|
|
10926
|
-
case 1: {
|
|
10927
|
-
message.archivedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
10928
|
-
break;
|
|
10929
|
-
}
|
|
10930
|
-
case 2: {
|
|
10931
|
-
message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
10932
|
-
break;
|
|
10933
|
-
}
|
|
10934
|
-
default:
|
|
10935
|
-
reader.skipType(tag & 7);
|
|
10936
|
-
break;
|
|
10937
|
-
}
|
|
10938
|
-
}
|
|
10939
|
-
return message;
|
|
10940
|
-
};
|
|
10941
|
-
|
|
10942
|
-
/**
|
|
10943
|
-
* Decodes a VersionedReadFlags message from the specified reader or buffer, length delimited.
|
|
10944
|
-
* @function decodeDelimited
|
|
10945
|
-
* @memberof file.VersionedReadFlags
|
|
10946
|
-
* @static
|
|
10947
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10948
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
10949
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10950
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10951
|
-
*/
|
|
10952
|
-
VersionedReadFlags.decodeDelimited = function decodeDelimited(reader) {
|
|
10953
|
-
if (!(reader instanceof $Reader))
|
|
10954
|
-
reader = new $Reader(reader);
|
|
10955
|
-
return this.decode(reader, reader.uint32());
|
|
10956
|
-
};
|
|
10957
|
-
|
|
10958
|
-
/**
|
|
10959
|
-
* Verifies a VersionedReadFlags message.
|
|
10960
|
-
* @function verify
|
|
10961
|
-
* @memberof file.VersionedReadFlags
|
|
10962
|
-
* @static
|
|
10963
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
10964
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10965
|
-
*/
|
|
10966
|
-
VersionedReadFlags.verify = function verify(message) {
|
|
10967
|
-
if (typeof message !== "object" || message === null)
|
|
10968
|
-
return "object expected";
|
|
10969
|
-
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion")) {
|
|
10970
|
-
var error = $root.common.UInt64Value.verify(message.archivedVersion);
|
|
10971
|
-
if (error)
|
|
10972
|
-
return "archivedVersion." + error;
|
|
10973
|
-
}
|
|
10974
|
-
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
|
|
10975
|
-
var error = $root.common.UInt64Value.verify(message.remoteVersion);
|
|
10976
|
-
if (error)
|
|
10977
|
-
return "remoteVersion." + error;
|
|
10978
|
-
}
|
|
10979
|
-
return null;
|
|
10980
|
-
};
|
|
10981
|
-
|
|
10982
|
-
/**
|
|
10983
|
-
* Creates a VersionedReadFlags message from a plain object. Also converts values to their respective internal types.
|
|
10984
|
-
* @function fromObject
|
|
10985
|
-
* @memberof file.VersionedReadFlags
|
|
10986
|
-
* @static
|
|
10987
|
-
* @param {Object.<string,*>} object Plain object
|
|
10988
|
-
* @returns {file.VersionedReadFlags} VersionedReadFlags
|
|
10989
|
-
*/
|
|
10990
|
-
VersionedReadFlags.fromObject = function fromObject(object) {
|
|
10991
|
-
if (object instanceof $root.file.VersionedReadFlags)
|
|
10992
|
-
return object;
|
|
10993
|
-
var message = new $root.file.VersionedReadFlags();
|
|
10994
|
-
if (object.archivedVersion != null) {
|
|
10995
|
-
if (typeof object.archivedVersion !== "object")
|
|
10996
|
-
throw TypeError(".file.VersionedReadFlags.archivedVersion: object expected");
|
|
10997
|
-
message.archivedVersion = $root.common.UInt64Value.fromObject(object.archivedVersion);
|
|
10998
|
-
}
|
|
10999
|
-
if (object.remoteVersion != null) {
|
|
11000
|
-
if (typeof object.remoteVersion !== "object")
|
|
11001
|
-
throw TypeError(".file.VersionedReadFlags.remoteVersion: object expected");
|
|
11002
|
-
message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
|
|
11003
|
-
}
|
|
11004
|
-
return message;
|
|
11005
|
-
};
|
|
11006
|
-
|
|
11007
|
-
/**
|
|
11008
|
-
* Creates a plain object from a VersionedReadFlags message. Also converts values to other types if specified.
|
|
11009
|
-
* @function toObject
|
|
11010
|
-
* @memberof file.VersionedReadFlags
|
|
11011
|
-
* @static
|
|
11012
|
-
* @param {file.VersionedReadFlags} message VersionedReadFlags
|
|
11013
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11014
|
-
* @returns {Object.<string,*>} Plain object
|
|
11015
|
-
*/
|
|
11016
|
-
VersionedReadFlags.toObject = function toObject(message, options) {
|
|
11017
|
-
if (!options)
|
|
11018
|
-
options = {};
|
|
11019
|
-
var object = {};
|
|
11020
|
-
if (options.defaults) {
|
|
11021
|
-
object.archivedVersion = null;
|
|
11022
|
-
object.remoteVersion = null;
|
|
11023
|
-
}
|
|
11024
|
-
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
|
|
11025
|
-
object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
|
|
11026
|
-
if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
|
|
11027
|
-
object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
|
|
11028
|
-
return object;
|
|
11029
|
-
};
|
|
11030
|
-
|
|
11031
|
-
/**
|
|
11032
|
-
* Converts this VersionedReadFlags to JSON.
|
|
11033
|
-
* @function toJSON
|
|
11034
|
-
* @memberof file.VersionedReadFlags
|
|
11035
|
-
* @instance
|
|
11036
|
-
* @returns {Object.<string,*>} JSON object
|
|
11037
|
-
*/
|
|
11038
|
-
VersionedReadFlags.prototype.toJSON = function toJSON() {
|
|
11039
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11040
|
-
};
|
|
11041
|
-
|
|
11042
|
-
/**
|
|
11043
|
-
* Gets the default type url for VersionedReadFlags
|
|
11044
|
-
* @function getTypeUrl
|
|
11045
|
-
* @memberof file.VersionedReadFlags
|
|
11046
|
-
* @static
|
|
11047
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
11048
|
-
* @returns {string} The default type url
|
|
11049
|
-
*/
|
|
11050
|
-
VersionedReadFlags.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
11051
|
-
if (typeUrlPrefix === undefined) {
|
|
11052
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
11053
|
-
}
|
|
11054
|
-
return typeUrlPrefix + "/file.VersionedReadFlags";
|
|
11055
|
-
};
|
|
11056
|
-
|
|
11057
|
-
return VersionedReadFlags;
|
|
11058
|
-
})();
|
|
11059
|
-
|
|
11060
|
-
file.RequestWithVersionedReadFlags = (function() {
|
|
11061
|
-
|
|
11062
|
-
/**
|
|
11063
|
-
* Properties of a RequestWithVersionedReadFlags.
|
|
11064
|
-
* @memberof file
|
|
11065
|
-
* @interface IRequestWithVersionedReadFlags
|
|
11066
|
-
* @property {file.IVersionedReadFlags|null} [flags] RequestWithVersionedReadFlags flags
|
|
11067
|
-
*/
|
|
11068
|
-
|
|
11069
|
-
/**
|
|
11070
|
-
* Constructs a new RequestWithVersionedReadFlags.
|
|
11071
|
-
* @memberof file
|
|
11072
|
-
* @classdesc Represents a RequestWithVersionedReadFlags.
|
|
11073
|
-
* @implements IRequestWithVersionedReadFlags
|
|
11074
|
-
* @constructor
|
|
11075
|
-
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
11076
|
-
*/
|
|
11077
|
-
function RequestWithVersionedReadFlags(properties) {
|
|
11078
|
-
if (properties)
|
|
11079
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11080
|
-
if (properties[keys[i]] != null)
|
|
11081
|
-
this[keys[i]] = properties[keys[i]];
|
|
11082
|
-
}
|
|
11083
|
-
|
|
11084
|
-
/**
|
|
11085
|
-
* RequestWithVersionedReadFlags flags.
|
|
11086
|
-
* @member {file.IVersionedReadFlags|null|undefined} flags
|
|
11087
|
-
* @memberof file.RequestWithVersionedReadFlags
|
|
11088
|
-
* @instance
|
|
11089
|
-
*/
|
|
11090
|
-
RequestWithVersionedReadFlags.prototype.flags = null;
|
|
11091
|
-
|
|
11092
|
-
/**
|
|
11093
|
-
* Creates a new RequestWithVersionedReadFlags instance using the specified properties.
|
|
11094
|
-
* @function create
|
|
11095
|
-
* @memberof file.RequestWithVersionedReadFlags
|
|
11096
|
-
* @static
|
|
11097
|
-
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
11098
|
-
* @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags instance
|
|
10811
|
+
* @param {file.IRequestWithVersionedReadFlags=} [properties] Properties to set
|
|
10812
|
+
* @returns {file.RequestWithVersionedReadFlags} RequestWithVersionedReadFlags instance
|
|
11099
10813
|
*/
|
|
11100
10814
|
RequestWithVersionedReadFlags.create = function create(properties) {
|
|
11101
10815
|
return new RequestWithVersionedReadFlags(properties);
|
|
@@ -17600,25 +17314,24 @@ $root.file = (function() {
|
|
|
17600
17314
|
return FileSyncUploadReplyBody;
|
|
17601
17315
|
})();
|
|
17602
17316
|
|
|
17603
|
-
file.
|
|
17317
|
+
file.FileSyncStartUploadReplyBody = (function() {
|
|
17604
17318
|
|
|
17605
17319
|
/**
|
|
17606
|
-
* Properties of
|
|
17320
|
+
* Properties of a FileSyncStartUploadReplyBody.
|
|
17607
17321
|
* @memberof file
|
|
17608
|
-
* @interface
|
|
17609
|
-
* @property {
|
|
17610
|
-
* @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
|
|
17322
|
+
* @interface IFileSyncStartUploadReplyBody
|
|
17323
|
+
* @property {file.FileSyncStartUploadReplyBody.IUploadInfo|null} [startedUpload] FileSyncStartUploadReplyBody startedUpload
|
|
17611
17324
|
*/
|
|
17612
17325
|
|
|
17613
17326
|
/**
|
|
17614
|
-
* Constructs a new
|
|
17327
|
+
* Constructs a new FileSyncStartUploadReplyBody.
|
|
17615
17328
|
* @memberof file
|
|
17616
|
-
* @classdesc Represents
|
|
17617
|
-
* @implements
|
|
17329
|
+
* @classdesc Represents a FileSyncStartUploadReplyBody.
|
|
17330
|
+
* @implements IFileSyncStartUploadReplyBody
|
|
17618
17331
|
* @constructor
|
|
17619
|
-
* @param {file.
|
|
17332
|
+
* @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
|
|
17620
17333
|
*/
|
|
17621
|
-
function
|
|
17334
|
+
function FileSyncStartUploadReplyBody(properties) {
|
|
17622
17335
|
if (properties)
|
|
17623
17336
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17624
17337
|
if (properties[keys[i]] != null)
|
|
@@ -17626,91 +17339,1047 @@ $root.file = (function() {
|
|
|
17626
17339
|
}
|
|
17627
17340
|
|
|
17628
17341
|
/**
|
|
17629
|
-
*
|
|
17630
|
-
* @member {
|
|
17631
|
-
* @memberof file.
|
|
17632
|
-
* @instance
|
|
17633
|
-
*/
|
|
17634
|
-
OptionsToUploadLocal.prototype.localVersion = null;
|
|
17635
|
-
|
|
17636
|
-
/**
|
|
17637
|
-
* OptionsToUploadLocal uploadVersion.
|
|
17638
|
-
* @member {common.IUInt64Value|null|undefined} uploadVersion
|
|
17639
|
-
* @memberof file.OptionsToUploadLocal
|
|
17342
|
+
* FileSyncStartUploadReplyBody startedUpload.
|
|
17343
|
+
* @member {file.FileSyncStartUploadReplyBody.IUploadInfo|null|undefined} startedUpload
|
|
17344
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17640
17345
|
* @instance
|
|
17641
17346
|
*/
|
|
17642
|
-
|
|
17347
|
+
FileSyncStartUploadReplyBody.prototype.startedUpload = null;
|
|
17643
17348
|
|
|
17644
17349
|
/**
|
|
17645
|
-
* Creates a new
|
|
17350
|
+
* Creates a new FileSyncStartUploadReplyBody instance using the specified properties.
|
|
17646
17351
|
* @function create
|
|
17647
|
-
* @memberof file.
|
|
17352
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17648
17353
|
* @static
|
|
17649
|
-
* @param {file.
|
|
17650
|
-
* @returns {file.
|
|
17354
|
+
* @param {file.IFileSyncStartUploadReplyBody=} [properties] Properties to set
|
|
17355
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody instance
|
|
17651
17356
|
*/
|
|
17652
|
-
|
|
17653
|
-
return new
|
|
17357
|
+
FileSyncStartUploadReplyBody.create = function create(properties) {
|
|
17358
|
+
return new FileSyncStartUploadReplyBody(properties);
|
|
17654
17359
|
};
|
|
17655
17360
|
|
|
17656
17361
|
/**
|
|
17657
|
-
* Encodes the specified
|
|
17362
|
+
* Encodes the specified FileSyncStartUploadReplyBody message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
|
|
17658
17363
|
* @function encode
|
|
17364
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17365
|
+
* @static
|
|
17366
|
+
* @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
|
|
17367
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17368
|
+
* @returns {$protobuf.Writer} Writer
|
|
17369
|
+
*/
|
|
17370
|
+
FileSyncStartUploadReplyBody.encode = function encode(message, writer) {
|
|
17371
|
+
if (!writer)
|
|
17372
|
+
writer = $Writer.create();
|
|
17373
|
+
if (message.startedUpload != null && Object.hasOwnProperty.call(message, "startedUpload"))
|
|
17374
|
+
$root.file.FileSyncStartUploadReplyBody.UploadInfo.encode(message.startedUpload, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17375
|
+
return writer;
|
|
17376
|
+
};
|
|
17377
|
+
|
|
17378
|
+
/**
|
|
17379
|
+
* Encodes the specified FileSyncStartUploadReplyBody message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.verify|verify} messages.
|
|
17380
|
+
* @function encodeDelimited
|
|
17381
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17382
|
+
* @static
|
|
17383
|
+
* @param {file.IFileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody message or plain object to encode
|
|
17384
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17385
|
+
* @returns {$protobuf.Writer} Writer
|
|
17386
|
+
*/
|
|
17387
|
+
FileSyncStartUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17388
|
+
return this.encode(message, writer).ldelim();
|
|
17389
|
+
};
|
|
17390
|
+
|
|
17391
|
+
/**
|
|
17392
|
+
* Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer.
|
|
17393
|
+
* @function decode
|
|
17394
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17395
|
+
* @static
|
|
17396
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17397
|
+
* @param {number} [length] Message length if known beforehand
|
|
17398
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
|
|
17399
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17400
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17401
|
+
*/
|
|
17402
|
+
FileSyncStartUploadReplyBody.decode = function decode(reader, length, error) {
|
|
17403
|
+
if (!(reader instanceof $Reader))
|
|
17404
|
+
reader = $Reader.create(reader);
|
|
17405
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody();
|
|
17406
|
+
while (reader.pos < end) {
|
|
17407
|
+
var tag = reader.uint32();
|
|
17408
|
+
if (tag === error)
|
|
17409
|
+
break;
|
|
17410
|
+
switch (tag >>> 3) {
|
|
17411
|
+
case 1: {
|
|
17412
|
+
message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.decode(reader, reader.uint32());
|
|
17413
|
+
break;
|
|
17414
|
+
}
|
|
17415
|
+
default:
|
|
17416
|
+
reader.skipType(tag & 7);
|
|
17417
|
+
break;
|
|
17418
|
+
}
|
|
17419
|
+
}
|
|
17420
|
+
return message;
|
|
17421
|
+
};
|
|
17422
|
+
|
|
17423
|
+
/**
|
|
17424
|
+
* Decodes a FileSyncStartUploadReplyBody message from the specified reader or buffer, length delimited.
|
|
17425
|
+
* @function decodeDelimited
|
|
17426
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17427
|
+
* @static
|
|
17428
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17429
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
|
|
17430
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17431
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17432
|
+
*/
|
|
17433
|
+
FileSyncStartUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
|
|
17434
|
+
if (!(reader instanceof $Reader))
|
|
17435
|
+
reader = new $Reader(reader);
|
|
17436
|
+
return this.decode(reader, reader.uint32());
|
|
17437
|
+
};
|
|
17438
|
+
|
|
17439
|
+
/**
|
|
17440
|
+
* Verifies a FileSyncStartUploadReplyBody message.
|
|
17441
|
+
* @function verify
|
|
17442
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17443
|
+
* @static
|
|
17444
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17445
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17446
|
+
*/
|
|
17447
|
+
FileSyncStartUploadReplyBody.verify = function verify(message) {
|
|
17448
|
+
if (typeof message !== "object" || message === null)
|
|
17449
|
+
return "object expected";
|
|
17450
|
+
if (message.startedUpload != null && message.hasOwnProperty("startedUpload")) {
|
|
17451
|
+
var error = $root.file.FileSyncStartUploadReplyBody.UploadInfo.verify(message.startedUpload);
|
|
17452
|
+
if (error)
|
|
17453
|
+
return "startedUpload." + error;
|
|
17454
|
+
}
|
|
17455
|
+
return null;
|
|
17456
|
+
};
|
|
17457
|
+
|
|
17458
|
+
/**
|
|
17459
|
+
* Creates a FileSyncStartUploadReplyBody message from a plain object. Also converts values to their respective internal types.
|
|
17460
|
+
* @function fromObject
|
|
17461
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17462
|
+
* @static
|
|
17463
|
+
* @param {Object.<string,*>} object Plain object
|
|
17464
|
+
* @returns {file.FileSyncStartUploadReplyBody} FileSyncStartUploadReplyBody
|
|
17465
|
+
*/
|
|
17466
|
+
FileSyncStartUploadReplyBody.fromObject = function fromObject(object) {
|
|
17467
|
+
if (object instanceof $root.file.FileSyncStartUploadReplyBody)
|
|
17468
|
+
return object;
|
|
17469
|
+
var message = new $root.file.FileSyncStartUploadReplyBody();
|
|
17470
|
+
if (object.startedUpload != null) {
|
|
17471
|
+
if (typeof object.startedUpload !== "object")
|
|
17472
|
+
throw TypeError(".file.FileSyncStartUploadReplyBody.startedUpload: object expected");
|
|
17473
|
+
message.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.fromObject(object.startedUpload);
|
|
17474
|
+
}
|
|
17475
|
+
return message;
|
|
17476
|
+
};
|
|
17477
|
+
|
|
17478
|
+
/**
|
|
17479
|
+
* Creates a plain object from a FileSyncStartUploadReplyBody message. Also converts values to other types if specified.
|
|
17480
|
+
* @function toObject
|
|
17481
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17482
|
+
* @static
|
|
17483
|
+
* @param {file.FileSyncStartUploadReplyBody} message FileSyncStartUploadReplyBody
|
|
17484
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17485
|
+
* @returns {Object.<string,*>} Plain object
|
|
17486
|
+
*/
|
|
17487
|
+
FileSyncStartUploadReplyBody.toObject = function toObject(message, options) {
|
|
17488
|
+
if (!options)
|
|
17489
|
+
options = {};
|
|
17490
|
+
var object = {};
|
|
17491
|
+
if (options.defaults)
|
|
17492
|
+
object.startedUpload = null;
|
|
17493
|
+
if (message.startedUpload != null && message.hasOwnProperty("startedUpload"))
|
|
17494
|
+
object.startedUpload = $root.file.FileSyncStartUploadReplyBody.UploadInfo.toObject(message.startedUpload, options);
|
|
17495
|
+
return object;
|
|
17496
|
+
};
|
|
17497
|
+
|
|
17498
|
+
/**
|
|
17499
|
+
* Converts this FileSyncStartUploadReplyBody to JSON.
|
|
17500
|
+
* @function toJSON
|
|
17501
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17502
|
+
* @instance
|
|
17503
|
+
* @returns {Object.<string,*>} JSON object
|
|
17504
|
+
*/
|
|
17505
|
+
FileSyncStartUploadReplyBody.prototype.toJSON = function toJSON() {
|
|
17506
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17507
|
+
};
|
|
17508
|
+
|
|
17509
|
+
/**
|
|
17510
|
+
* Gets the default type url for FileSyncStartUploadReplyBody
|
|
17511
|
+
* @function getTypeUrl
|
|
17512
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17513
|
+
* @static
|
|
17514
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17515
|
+
* @returns {string} The default type url
|
|
17516
|
+
*/
|
|
17517
|
+
FileSyncStartUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17518
|
+
if (typeUrlPrefix === undefined) {
|
|
17519
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17520
|
+
}
|
|
17521
|
+
return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody";
|
|
17522
|
+
};
|
|
17523
|
+
|
|
17524
|
+
FileSyncStartUploadReplyBody.UploadInfo = (function() {
|
|
17525
|
+
|
|
17526
|
+
/**
|
|
17527
|
+
* Properties of an UploadInfo.
|
|
17528
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17529
|
+
* @interface IUploadInfo
|
|
17530
|
+
* @property {number|Long|null} [uploadVersion] UploadInfo uploadVersion
|
|
17531
|
+
* @property {number|Long|null} [uploadTaskId] UploadInfo uploadTaskId
|
|
17532
|
+
*/
|
|
17533
|
+
|
|
17534
|
+
/**
|
|
17535
|
+
* Constructs a new UploadInfo.
|
|
17536
|
+
* @memberof file.FileSyncStartUploadReplyBody
|
|
17537
|
+
* @classdesc Represents an UploadInfo.
|
|
17538
|
+
* @implements IUploadInfo
|
|
17539
|
+
* @constructor
|
|
17540
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
|
|
17541
|
+
*/
|
|
17542
|
+
function UploadInfo(properties) {
|
|
17543
|
+
if (properties)
|
|
17544
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17545
|
+
if (properties[keys[i]] != null)
|
|
17546
|
+
this[keys[i]] = properties[keys[i]];
|
|
17547
|
+
}
|
|
17548
|
+
|
|
17549
|
+
/**
|
|
17550
|
+
* UploadInfo uploadVersion.
|
|
17551
|
+
* @member {number|Long} uploadVersion
|
|
17552
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17553
|
+
* @instance
|
|
17554
|
+
*/
|
|
17555
|
+
UploadInfo.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17556
|
+
|
|
17557
|
+
/**
|
|
17558
|
+
* UploadInfo uploadTaskId.
|
|
17559
|
+
* @member {number|Long} uploadTaskId
|
|
17560
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17561
|
+
* @instance
|
|
17562
|
+
*/
|
|
17563
|
+
UploadInfo.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17564
|
+
|
|
17565
|
+
/**
|
|
17566
|
+
* Creates a new UploadInfo instance using the specified properties.
|
|
17567
|
+
* @function create
|
|
17568
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17569
|
+
* @static
|
|
17570
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo=} [properties] Properties to set
|
|
17571
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo instance
|
|
17572
|
+
*/
|
|
17573
|
+
UploadInfo.create = function create(properties) {
|
|
17574
|
+
return new UploadInfo(properties);
|
|
17575
|
+
};
|
|
17576
|
+
|
|
17577
|
+
/**
|
|
17578
|
+
* Encodes the specified UploadInfo message. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
|
|
17579
|
+
* @function encode
|
|
17580
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17581
|
+
* @static
|
|
17582
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
|
|
17583
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17584
|
+
* @returns {$protobuf.Writer} Writer
|
|
17585
|
+
*/
|
|
17586
|
+
UploadInfo.encode = function encode(message, writer) {
|
|
17587
|
+
if (!writer)
|
|
17588
|
+
writer = $Writer.create();
|
|
17589
|
+
if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
|
|
17590
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadVersion);
|
|
17591
|
+
if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
|
|
17592
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
|
|
17593
|
+
return writer;
|
|
17594
|
+
};
|
|
17595
|
+
|
|
17596
|
+
/**
|
|
17597
|
+
* Encodes the specified UploadInfo message, length delimited. Does not implicitly {@link file.FileSyncStartUploadReplyBody.UploadInfo.verify|verify} messages.
|
|
17598
|
+
* @function encodeDelimited
|
|
17599
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17600
|
+
* @static
|
|
17601
|
+
* @param {file.FileSyncStartUploadReplyBody.IUploadInfo} message UploadInfo message or plain object to encode
|
|
17602
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17603
|
+
* @returns {$protobuf.Writer} Writer
|
|
17604
|
+
*/
|
|
17605
|
+
UploadInfo.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17606
|
+
return this.encode(message, writer).ldelim();
|
|
17607
|
+
};
|
|
17608
|
+
|
|
17609
|
+
/**
|
|
17610
|
+
* Decodes an UploadInfo message from the specified reader or buffer.
|
|
17611
|
+
* @function decode
|
|
17612
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17613
|
+
* @static
|
|
17614
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17615
|
+
* @param {number} [length] Message length if known beforehand
|
|
17616
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
|
|
17617
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17618
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17619
|
+
*/
|
|
17620
|
+
UploadInfo.decode = function decode(reader, length, error) {
|
|
17621
|
+
if (!(reader instanceof $Reader))
|
|
17622
|
+
reader = $Reader.create(reader);
|
|
17623
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
|
|
17624
|
+
while (reader.pos < end) {
|
|
17625
|
+
var tag = reader.uint32();
|
|
17626
|
+
if (tag === error)
|
|
17627
|
+
break;
|
|
17628
|
+
switch (tag >>> 3) {
|
|
17629
|
+
case 1: {
|
|
17630
|
+
message.uploadVersion = reader.uint64();
|
|
17631
|
+
break;
|
|
17632
|
+
}
|
|
17633
|
+
case 2: {
|
|
17634
|
+
message.uploadTaskId = reader.uint64();
|
|
17635
|
+
break;
|
|
17636
|
+
}
|
|
17637
|
+
default:
|
|
17638
|
+
reader.skipType(tag & 7);
|
|
17639
|
+
break;
|
|
17640
|
+
}
|
|
17641
|
+
}
|
|
17642
|
+
return message;
|
|
17643
|
+
};
|
|
17644
|
+
|
|
17645
|
+
/**
|
|
17646
|
+
* Decodes an UploadInfo message from the specified reader or buffer, length delimited.
|
|
17647
|
+
* @function decodeDelimited
|
|
17648
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17649
|
+
* @static
|
|
17650
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17651
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
|
|
17652
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17653
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17654
|
+
*/
|
|
17655
|
+
UploadInfo.decodeDelimited = function decodeDelimited(reader) {
|
|
17656
|
+
if (!(reader instanceof $Reader))
|
|
17657
|
+
reader = new $Reader(reader);
|
|
17658
|
+
return this.decode(reader, reader.uint32());
|
|
17659
|
+
};
|
|
17660
|
+
|
|
17661
|
+
/**
|
|
17662
|
+
* Verifies an UploadInfo message.
|
|
17663
|
+
* @function verify
|
|
17664
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17665
|
+
* @static
|
|
17666
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17667
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17668
|
+
*/
|
|
17669
|
+
UploadInfo.verify = function verify(message) {
|
|
17670
|
+
if (typeof message !== "object" || message === null)
|
|
17671
|
+
return "object expected";
|
|
17672
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
17673
|
+
if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
|
|
17674
|
+
return "uploadVersion: integer|Long expected";
|
|
17675
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
17676
|
+
if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
|
|
17677
|
+
return "uploadTaskId: integer|Long expected";
|
|
17678
|
+
return null;
|
|
17679
|
+
};
|
|
17680
|
+
|
|
17681
|
+
/**
|
|
17682
|
+
* Creates an UploadInfo message from a plain object. Also converts values to their respective internal types.
|
|
17683
|
+
* @function fromObject
|
|
17684
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17685
|
+
* @static
|
|
17686
|
+
* @param {Object.<string,*>} object Plain object
|
|
17687
|
+
* @returns {file.FileSyncStartUploadReplyBody.UploadInfo} UploadInfo
|
|
17688
|
+
*/
|
|
17689
|
+
UploadInfo.fromObject = function fromObject(object) {
|
|
17690
|
+
if (object instanceof $root.file.FileSyncStartUploadReplyBody.UploadInfo)
|
|
17691
|
+
return object;
|
|
17692
|
+
var message = new $root.file.FileSyncStartUploadReplyBody.UploadInfo();
|
|
17693
|
+
if (object.uploadVersion != null)
|
|
17694
|
+
if ($util.Long)
|
|
17695
|
+
(message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
|
|
17696
|
+
else if (typeof object.uploadVersion === "string")
|
|
17697
|
+
message.uploadVersion = parseInt(object.uploadVersion, 10);
|
|
17698
|
+
else if (typeof object.uploadVersion === "number")
|
|
17699
|
+
message.uploadVersion = object.uploadVersion;
|
|
17700
|
+
else if (typeof object.uploadVersion === "object")
|
|
17701
|
+
message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
|
|
17702
|
+
if (object.uploadTaskId != null)
|
|
17703
|
+
if ($util.Long)
|
|
17704
|
+
(message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
|
|
17705
|
+
else if (typeof object.uploadTaskId === "string")
|
|
17706
|
+
message.uploadTaskId = parseInt(object.uploadTaskId, 10);
|
|
17707
|
+
else if (typeof object.uploadTaskId === "number")
|
|
17708
|
+
message.uploadTaskId = object.uploadTaskId;
|
|
17709
|
+
else if (typeof object.uploadTaskId === "object")
|
|
17710
|
+
message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
|
|
17711
|
+
return message;
|
|
17712
|
+
};
|
|
17713
|
+
|
|
17714
|
+
/**
|
|
17715
|
+
* Creates a plain object from an UploadInfo message. Also converts values to other types if specified.
|
|
17716
|
+
* @function toObject
|
|
17717
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17718
|
+
* @static
|
|
17719
|
+
* @param {file.FileSyncStartUploadReplyBody.UploadInfo} message UploadInfo
|
|
17720
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17721
|
+
* @returns {Object.<string,*>} Plain object
|
|
17722
|
+
*/
|
|
17723
|
+
UploadInfo.toObject = function toObject(message, options) {
|
|
17724
|
+
if (!options)
|
|
17725
|
+
options = {};
|
|
17726
|
+
var object = {};
|
|
17727
|
+
if (options.defaults) {
|
|
17728
|
+
if ($util.Long) {
|
|
17729
|
+
var long = new $util.Long(0, 0, true);
|
|
17730
|
+
object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17731
|
+
} else
|
|
17732
|
+
object.uploadVersion = options.longs === String ? "0" : 0;
|
|
17733
|
+
if ($util.Long) {
|
|
17734
|
+
var long = new $util.Long(0, 0, true);
|
|
17735
|
+
object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17736
|
+
} else
|
|
17737
|
+
object.uploadTaskId = options.longs === String ? "0" : 0;
|
|
17738
|
+
}
|
|
17739
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
17740
|
+
if (typeof message.uploadVersion === "number")
|
|
17741
|
+
object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
|
|
17742
|
+
else
|
|
17743
|
+
object.uploadVersion = options.longs === String ? $util.Long.prototype.toString.call(message.uploadVersion) : options.longs === Number ? new $util.LongBits(message.uploadVersion.low >>> 0, message.uploadVersion.high >>> 0).toNumber(true) : message.uploadVersion;
|
|
17744
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
17745
|
+
if (typeof message.uploadTaskId === "number")
|
|
17746
|
+
object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
|
|
17747
|
+
else
|
|
17748
|
+
object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
|
|
17749
|
+
return object;
|
|
17750
|
+
};
|
|
17751
|
+
|
|
17752
|
+
/**
|
|
17753
|
+
* Converts this UploadInfo to JSON.
|
|
17754
|
+
* @function toJSON
|
|
17755
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17756
|
+
* @instance
|
|
17757
|
+
* @returns {Object.<string,*>} JSON object
|
|
17758
|
+
*/
|
|
17759
|
+
UploadInfo.prototype.toJSON = function toJSON() {
|
|
17760
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17761
|
+
};
|
|
17762
|
+
|
|
17763
|
+
/**
|
|
17764
|
+
* Gets the default type url for UploadInfo
|
|
17765
|
+
* @function getTypeUrl
|
|
17766
|
+
* @memberof file.FileSyncStartUploadReplyBody.UploadInfo
|
|
17767
|
+
* @static
|
|
17768
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17769
|
+
* @returns {string} The default type url
|
|
17770
|
+
*/
|
|
17771
|
+
UploadInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17772
|
+
if (typeUrlPrefix === undefined) {
|
|
17773
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
17774
|
+
}
|
|
17775
|
+
return typeUrlPrefix + "/file.FileSyncStartUploadReplyBody.UploadInfo";
|
|
17776
|
+
};
|
|
17777
|
+
|
|
17778
|
+
return UploadInfo;
|
|
17779
|
+
})();
|
|
17780
|
+
|
|
17781
|
+
return FileSyncStartUploadReplyBody;
|
|
17782
|
+
})();
|
|
17783
|
+
|
|
17784
|
+
file.OptionsToUploadLocal = (function() {
|
|
17785
|
+
|
|
17786
|
+
/**
|
|
17787
|
+
* Properties of an OptionsToUploadLocal.
|
|
17788
|
+
* @memberof file
|
|
17789
|
+
* @interface IOptionsToUploadLocal
|
|
17790
|
+
* @property {common.IUInt64Value|null} [localVersion] OptionsToUploadLocal localVersion
|
|
17791
|
+
* @property {common.IUInt64Value|null} [uploadVersion] OptionsToUploadLocal uploadVersion
|
|
17792
|
+
*/
|
|
17793
|
+
|
|
17794
|
+
/**
|
|
17795
|
+
* Constructs a new OptionsToUploadLocal.
|
|
17796
|
+
* @memberof file
|
|
17797
|
+
* @classdesc Represents an OptionsToUploadLocal.
|
|
17798
|
+
* @implements IOptionsToUploadLocal
|
|
17799
|
+
* @constructor
|
|
17800
|
+
* @param {file.IOptionsToUploadLocal=} [properties] Properties to set
|
|
17801
|
+
*/
|
|
17802
|
+
function OptionsToUploadLocal(properties) {
|
|
17803
|
+
if (properties)
|
|
17804
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17805
|
+
if (properties[keys[i]] != null)
|
|
17806
|
+
this[keys[i]] = properties[keys[i]];
|
|
17807
|
+
}
|
|
17808
|
+
|
|
17809
|
+
/**
|
|
17810
|
+
* OptionsToUploadLocal localVersion.
|
|
17811
|
+
* @member {common.IUInt64Value|null|undefined} localVersion
|
|
17812
|
+
* @memberof file.OptionsToUploadLocal
|
|
17813
|
+
* @instance
|
|
17814
|
+
*/
|
|
17815
|
+
OptionsToUploadLocal.prototype.localVersion = null;
|
|
17816
|
+
|
|
17817
|
+
/**
|
|
17818
|
+
* OptionsToUploadLocal uploadVersion.
|
|
17819
|
+
* @member {common.IUInt64Value|null|undefined} uploadVersion
|
|
17820
|
+
* @memberof file.OptionsToUploadLocal
|
|
17821
|
+
* @instance
|
|
17822
|
+
*/
|
|
17823
|
+
OptionsToUploadLocal.prototype.uploadVersion = null;
|
|
17824
|
+
|
|
17825
|
+
/**
|
|
17826
|
+
* Creates a new OptionsToUploadLocal instance using the specified properties.
|
|
17827
|
+
* @function create
|
|
17828
|
+
* @memberof file.OptionsToUploadLocal
|
|
17829
|
+
* @static
|
|
17830
|
+
* @param {file.IOptionsToUploadLocal=} [properties] Properties to set
|
|
17831
|
+
* @returns {file.OptionsToUploadLocal} OptionsToUploadLocal instance
|
|
17832
|
+
*/
|
|
17833
|
+
OptionsToUploadLocal.create = function create(properties) {
|
|
17834
|
+
return new OptionsToUploadLocal(properties);
|
|
17835
|
+
};
|
|
17836
|
+
|
|
17837
|
+
/**
|
|
17838
|
+
* Encodes the specified OptionsToUploadLocal message. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
|
|
17839
|
+
* @function encode
|
|
17840
|
+
* @memberof file.OptionsToUploadLocal
|
|
17841
|
+
* @static
|
|
17842
|
+
* @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
|
|
17843
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17844
|
+
* @returns {$protobuf.Writer} Writer
|
|
17845
|
+
*/
|
|
17846
|
+
OptionsToUploadLocal.encode = function encode(message, writer) {
|
|
17847
|
+
if (!writer)
|
|
17848
|
+
writer = $Writer.create();
|
|
17849
|
+
if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
|
|
17850
|
+
$root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
17851
|
+
if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
|
|
17852
|
+
$root.common.UInt64Value.encode(message.uploadVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
17853
|
+
return writer;
|
|
17854
|
+
};
|
|
17855
|
+
|
|
17856
|
+
/**
|
|
17857
|
+
* Encodes the specified OptionsToUploadLocal message, length delimited. Does not implicitly {@link file.OptionsToUploadLocal.verify|verify} messages.
|
|
17858
|
+
* @function encodeDelimited
|
|
17859
|
+
* @memberof file.OptionsToUploadLocal
|
|
17860
|
+
* @static
|
|
17861
|
+
* @param {file.IOptionsToUploadLocal} message OptionsToUploadLocal message or plain object to encode
|
|
17862
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17863
|
+
* @returns {$protobuf.Writer} Writer
|
|
17864
|
+
*/
|
|
17865
|
+
OptionsToUploadLocal.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17866
|
+
return this.encode(message, writer).ldelim();
|
|
17867
|
+
};
|
|
17868
|
+
|
|
17869
|
+
/**
|
|
17870
|
+
* Decodes an OptionsToUploadLocal message from the specified reader or buffer.
|
|
17871
|
+
* @function decode
|
|
17872
|
+
* @memberof file.OptionsToUploadLocal
|
|
17873
|
+
* @static
|
|
17874
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17875
|
+
* @param {number} [length] Message length if known beforehand
|
|
17876
|
+
* @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
|
|
17877
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17878
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17879
|
+
*/
|
|
17880
|
+
OptionsToUploadLocal.decode = function decode(reader, length, error) {
|
|
17881
|
+
if (!(reader instanceof $Reader))
|
|
17882
|
+
reader = $Reader.create(reader);
|
|
17883
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.OptionsToUploadLocal();
|
|
17884
|
+
while (reader.pos < end) {
|
|
17885
|
+
var tag = reader.uint32();
|
|
17886
|
+
if (tag === error)
|
|
17887
|
+
break;
|
|
17888
|
+
switch (tag >>> 3) {
|
|
17889
|
+
case 1: {
|
|
17890
|
+
message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
17891
|
+
break;
|
|
17892
|
+
}
|
|
17893
|
+
case 2: {
|
|
17894
|
+
message.uploadVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
17895
|
+
break;
|
|
17896
|
+
}
|
|
17897
|
+
default:
|
|
17898
|
+
reader.skipType(tag & 7);
|
|
17899
|
+
break;
|
|
17900
|
+
}
|
|
17901
|
+
}
|
|
17902
|
+
return message;
|
|
17903
|
+
};
|
|
17904
|
+
|
|
17905
|
+
/**
|
|
17906
|
+
* Decodes an OptionsToUploadLocal message from the specified reader or buffer, length delimited.
|
|
17907
|
+
* @function decodeDelimited
|
|
17908
|
+
* @memberof file.OptionsToUploadLocal
|
|
17909
|
+
* @static
|
|
17910
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17911
|
+
* @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
|
|
17912
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17913
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17914
|
+
*/
|
|
17915
|
+
OptionsToUploadLocal.decodeDelimited = function decodeDelimited(reader) {
|
|
17916
|
+
if (!(reader instanceof $Reader))
|
|
17917
|
+
reader = new $Reader(reader);
|
|
17918
|
+
return this.decode(reader, reader.uint32());
|
|
17919
|
+
};
|
|
17920
|
+
|
|
17921
|
+
/**
|
|
17922
|
+
* Verifies an OptionsToUploadLocal message.
|
|
17923
|
+
* @function verify
|
|
17924
|
+
* @memberof file.OptionsToUploadLocal
|
|
17925
|
+
* @static
|
|
17926
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17927
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17928
|
+
*/
|
|
17929
|
+
OptionsToUploadLocal.verify = function verify(message) {
|
|
17930
|
+
if (typeof message !== "object" || message === null)
|
|
17931
|
+
return "object expected";
|
|
17932
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion")) {
|
|
17933
|
+
var error = $root.common.UInt64Value.verify(message.localVersion);
|
|
17934
|
+
if (error)
|
|
17935
|
+
return "localVersion." + error;
|
|
17936
|
+
}
|
|
17937
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion")) {
|
|
17938
|
+
var error = $root.common.UInt64Value.verify(message.uploadVersion);
|
|
17939
|
+
if (error)
|
|
17940
|
+
return "uploadVersion." + error;
|
|
17941
|
+
}
|
|
17942
|
+
return null;
|
|
17943
|
+
};
|
|
17944
|
+
|
|
17945
|
+
/**
|
|
17946
|
+
* Creates an OptionsToUploadLocal message from a plain object. Also converts values to their respective internal types.
|
|
17947
|
+
* @function fromObject
|
|
17948
|
+
* @memberof file.OptionsToUploadLocal
|
|
17949
|
+
* @static
|
|
17950
|
+
* @param {Object.<string,*>} object Plain object
|
|
17951
|
+
* @returns {file.OptionsToUploadLocal} OptionsToUploadLocal
|
|
17952
|
+
*/
|
|
17953
|
+
OptionsToUploadLocal.fromObject = function fromObject(object) {
|
|
17954
|
+
if (object instanceof $root.file.OptionsToUploadLocal)
|
|
17955
|
+
return object;
|
|
17956
|
+
var message = new $root.file.OptionsToUploadLocal();
|
|
17957
|
+
if (object.localVersion != null) {
|
|
17958
|
+
if (typeof object.localVersion !== "object")
|
|
17959
|
+
throw TypeError(".file.OptionsToUploadLocal.localVersion: object expected");
|
|
17960
|
+
message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
|
|
17961
|
+
}
|
|
17962
|
+
if (object.uploadVersion != null) {
|
|
17963
|
+
if (typeof object.uploadVersion !== "object")
|
|
17964
|
+
throw TypeError(".file.OptionsToUploadLocal.uploadVersion: object expected");
|
|
17965
|
+
message.uploadVersion = $root.common.UInt64Value.fromObject(object.uploadVersion);
|
|
17966
|
+
}
|
|
17967
|
+
return message;
|
|
17968
|
+
};
|
|
17969
|
+
|
|
17970
|
+
/**
|
|
17971
|
+
* Creates a plain object from an OptionsToUploadLocal message. Also converts values to other types if specified.
|
|
17972
|
+
* @function toObject
|
|
17973
|
+
* @memberof file.OptionsToUploadLocal
|
|
17974
|
+
* @static
|
|
17975
|
+
* @param {file.OptionsToUploadLocal} message OptionsToUploadLocal
|
|
17976
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17977
|
+
* @returns {Object.<string,*>} Plain object
|
|
17978
|
+
*/
|
|
17979
|
+
OptionsToUploadLocal.toObject = function toObject(message, options) {
|
|
17980
|
+
if (!options)
|
|
17981
|
+
options = {};
|
|
17982
|
+
var object = {};
|
|
17983
|
+
if (options.defaults) {
|
|
17984
|
+
object.localVersion = null;
|
|
17985
|
+
object.uploadVersion = null;
|
|
17986
|
+
}
|
|
17987
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
17988
|
+
object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
|
|
17989
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
17990
|
+
object.uploadVersion = $root.common.UInt64Value.toObject(message.uploadVersion, options);
|
|
17991
|
+
return object;
|
|
17992
|
+
};
|
|
17993
|
+
|
|
17994
|
+
/**
|
|
17995
|
+
* Converts this OptionsToUploadLocal to JSON.
|
|
17996
|
+
* @function toJSON
|
|
17997
|
+
* @memberof file.OptionsToUploadLocal
|
|
17998
|
+
* @instance
|
|
17999
|
+
* @returns {Object.<string,*>} JSON object
|
|
18000
|
+
*/
|
|
18001
|
+
OptionsToUploadLocal.prototype.toJSON = function toJSON() {
|
|
18002
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18003
|
+
};
|
|
18004
|
+
|
|
18005
|
+
/**
|
|
18006
|
+
* Gets the default type url for OptionsToUploadLocal
|
|
18007
|
+
* @function getTypeUrl
|
|
17659
18008
|
* @memberof file.OptionsToUploadLocal
|
|
17660
18009
|
* @static
|
|
17661
|
-
* @param {
|
|
18010
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18011
|
+
* @returns {string} The default type url
|
|
18012
|
+
*/
|
|
18013
|
+
OptionsToUploadLocal.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18014
|
+
if (typeUrlPrefix === undefined) {
|
|
18015
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
18016
|
+
}
|
|
18017
|
+
return typeUrlPrefix + "/file.OptionsToUploadLocal";
|
|
18018
|
+
};
|
|
18019
|
+
|
|
18020
|
+
return OptionsToUploadLocal;
|
|
18021
|
+
})();
|
|
18022
|
+
|
|
18023
|
+
file.WatchUploadRequestBody = (function() {
|
|
18024
|
+
|
|
18025
|
+
/**
|
|
18026
|
+
* Properties of a WatchUploadRequestBody.
|
|
18027
|
+
* @memberof file
|
|
18028
|
+
* @interface IWatchUploadRequestBody
|
|
18029
|
+
* @property {number|Long|null} [uploadTaskId] WatchUploadRequestBody uploadTaskId
|
|
18030
|
+
*/
|
|
18031
|
+
|
|
18032
|
+
/**
|
|
18033
|
+
* Constructs a new WatchUploadRequestBody.
|
|
18034
|
+
* @memberof file
|
|
18035
|
+
* @classdesc Represents a WatchUploadRequestBody.
|
|
18036
|
+
* @implements IWatchUploadRequestBody
|
|
18037
|
+
* @constructor
|
|
18038
|
+
* @param {file.IWatchUploadRequestBody=} [properties] Properties to set
|
|
18039
|
+
*/
|
|
18040
|
+
function WatchUploadRequestBody(properties) {
|
|
18041
|
+
if (properties)
|
|
18042
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18043
|
+
if (properties[keys[i]] != null)
|
|
18044
|
+
this[keys[i]] = properties[keys[i]];
|
|
18045
|
+
}
|
|
18046
|
+
|
|
18047
|
+
/**
|
|
18048
|
+
* WatchUploadRequestBody uploadTaskId.
|
|
18049
|
+
* @member {number|Long} uploadTaskId
|
|
18050
|
+
* @memberof file.WatchUploadRequestBody
|
|
18051
|
+
* @instance
|
|
18052
|
+
*/
|
|
18053
|
+
WatchUploadRequestBody.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18054
|
+
|
|
18055
|
+
/**
|
|
18056
|
+
* Creates a new WatchUploadRequestBody instance using the specified properties.
|
|
18057
|
+
* @function create
|
|
18058
|
+
* @memberof file.WatchUploadRequestBody
|
|
18059
|
+
* @static
|
|
18060
|
+
* @param {file.IWatchUploadRequestBody=} [properties] Properties to set
|
|
18061
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody instance
|
|
18062
|
+
*/
|
|
18063
|
+
WatchUploadRequestBody.create = function create(properties) {
|
|
18064
|
+
return new WatchUploadRequestBody(properties);
|
|
18065
|
+
};
|
|
18066
|
+
|
|
18067
|
+
/**
|
|
18068
|
+
* Encodes the specified WatchUploadRequestBody message. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
|
|
18069
|
+
* @function encode
|
|
18070
|
+
* @memberof file.WatchUploadRequestBody
|
|
18071
|
+
* @static
|
|
18072
|
+
* @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
|
|
17662
18073
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17663
18074
|
* @returns {$protobuf.Writer} Writer
|
|
17664
18075
|
*/
|
|
17665
|
-
|
|
18076
|
+
WatchUploadRequestBody.encode = function encode(message, writer) {
|
|
18077
|
+
if (!writer)
|
|
18078
|
+
writer = $Writer.create();
|
|
18079
|
+
if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
|
|
18080
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.uploadTaskId);
|
|
18081
|
+
return writer;
|
|
18082
|
+
};
|
|
18083
|
+
|
|
18084
|
+
/**
|
|
18085
|
+
* Encodes the specified WatchUploadRequestBody message, length delimited. Does not implicitly {@link file.WatchUploadRequestBody.verify|verify} messages.
|
|
18086
|
+
* @function encodeDelimited
|
|
18087
|
+
* @memberof file.WatchUploadRequestBody
|
|
18088
|
+
* @static
|
|
18089
|
+
* @param {file.IWatchUploadRequestBody} message WatchUploadRequestBody message or plain object to encode
|
|
18090
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18091
|
+
* @returns {$protobuf.Writer} Writer
|
|
18092
|
+
*/
|
|
18093
|
+
WatchUploadRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18094
|
+
return this.encode(message, writer).ldelim();
|
|
18095
|
+
};
|
|
18096
|
+
|
|
18097
|
+
/**
|
|
18098
|
+
* Decodes a WatchUploadRequestBody message from the specified reader or buffer.
|
|
18099
|
+
* @function decode
|
|
18100
|
+
* @memberof file.WatchUploadRequestBody
|
|
18101
|
+
* @static
|
|
18102
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18103
|
+
* @param {number} [length] Message length if known beforehand
|
|
18104
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
18105
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18106
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18107
|
+
*/
|
|
18108
|
+
WatchUploadRequestBody.decode = function decode(reader, length, error) {
|
|
18109
|
+
if (!(reader instanceof $Reader))
|
|
18110
|
+
reader = $Reader.create(reader);
|
|
18111
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.WatchUploadRequestBody();
|
|
18112
|
+
while (reader.pos < end) {
|
|
18113
|
+
var tag = reader.uint32();
|
|
18114
|
+
if (tag === error)
|
|
18115
|
+
break;
|
|
18116
|
+
switch (tag >>> 3) {
|
|
18117
|
+
case 1: {
|
|
18118
|
+
message.uploadTaskId = reader.uint64();
|
|
18119
|
+
break;
|
|
18120
|
+
}
|
|
18121
|
+
default:
|
|
18122
|
+
reader.skipType(tag & 7);
|
|
18123
|
+
break;
|
|
18124
|
+
}
|
|
18125
|
+
}
|
|
18126
|
+
return message;
|
|
18127
|
+
};
|
|
18128
|
+
|
|
18129
|
+
/**
|
|
18130
|
+
* Decodes a WatchUploadRequestBody message from the specified reader or buffer, length delimited.
|
|
18131
|
+
* @function decodeDelimited
|
|
18132
|
+
* @memberof file.WatchUploadRequestBody
|
|
18133
|
+
* @static
|
|
18134
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18135
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
18136
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18137
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18138
|
+
*/
|
|
18139
|
+
WatchUploadRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
18140
|
+
if (!(reader instanceof $Reader))
|
|
18141
|
+
reader = new $Reader(reader);
|
|
18142
|
+
return this.decode(reader, reader.uint32());
|
|
18143
|
+
};
|
|
18144
|
+
|
|
18145
|
+
/**
|
|
18146
|
+
* Verifies a WatchUploadRequestBody message.
|
|
18147
|
+
* @function verify
|
|
18148
|
+
* @memberof file.WatchUploadRequestBody
|
|
18149
|
+
* @static
|
|
18150
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18151
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18152
|
+
*/
|
|
18153
|
+
WatchUploadRequestBody.verify = function verify(message) {
|
|
18154
|
+
if (typeof message !== "object" || message === null)
|
|
18155
|
+
return "object expected";
|
|
18156
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
18157
|
+
if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
|
|
18158
|
+
return "uploadTaskId: integer|Long expected";
|
|
18159
|
+
return null;
|
|
18160
|
+
};
|
|
18161
|
+
|
|
18162
|
+
/**
|
|
18163
|
+
* Creates a WatchUploadRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
18164
|
+
* @function fromObject
|
|
18165
|
+
* @memberof file.WatchUploadRequestBody
|
|
18166
|
+
* @static
|
|
18167
|
+
* @param {Object.<string,*>} object Plain object
|
|
18168
|
+
* @returns {file.WatchUploadRequestBody} WatchUploadRequestBody
|
|
18169
|
+
*/
|
|
18170
|
+
WatchUploadRequestBody.fromObject = function fromObject(object) {
|
|
18171
|
+
if (object instanceof $root.file.WatchUploadRequestBody)
|
|
18172
|
+
return object;
|
|
18173
|
+
var message = new $root.file.WatchUploadRequestBody();
|
|
18174
|
+
if (object.uploadTaskId != null)
|
|
18175
|
+
if ($util.Long)
|
|
18176
|
+
(message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
|
|
18177
|
+
else if (typeof object.uploadTaskId === "string")
|
|
18178
|
+
message.uploadTaskId = parseInt(object.uploadTaskId, 10);
|
|
18179
|
+
else if (typeof object.uploadTaskId === "number")
|
|
18180
|
+
message.uploadTaskId = object.uploadTaskId;
|
|
18181
|
+
else if (typeof object.uploadTaskId === "object")
|
|
18182
|
+
message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
|
|
18183
|
+
return message;
|
|
18184
|
+
};
|
|
18185
|
+
|
|
18186
|
+
/**
|
|
18187
|
+
* Creates a plain object from a WatchUploadRequestBody message. Also converts values to other types if specified.
|
|
18188
|
+
* @function toObject
|
|
18189
|
+
* @memberof file.WatchUploadRequestBody
|
|
18190
|
+
* @static
|
|
18191
|
+
* @param {file.WatchUploadRequestBody} message WatchUploadRequestBody
|
|
18192
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18193
|
+
* @returns {Object.<string,*>} Plain object
|
|
18194
|
+
*/
|
|
18195
|
+
WatchUploadRequestBody.toObject = function toObject(message, options) {
|
|
18196
|
+
if (!options)
|
|
18197
|
+
options = {};
|
|
18198
|
+
var object = {};
|
|
18199
|
+
if (options.defaults)
|
|
18200
|
+
if ($util.Long) {
|
|
18201
|
+
var long = new $util.Long(0, 0, true);
|
|
18202
|
+
object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18203
|
+
} else
|
|
18204
|
+
object.uploadTaskId = options.longs === String ? "0" : 0;
|
|
18205
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
18206
|
+
if (typeof message.uploadTaskId === "number")
|
|
18207
|
+
object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
|
|
18208
|
+
else
|
|
18209
|
+
object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
|
|
18210
|
+
return object;
|
|
18211
|
+
};
|
|
18212
|
+
|
|
18213
|
+
/**
|
|
18214
|
+
* Converts this WatchUploadRequestBody to JSON.
|
|
18215
|
+
* @function toJSON
|
|
18216
|
+
* @memberof file.WatchUploadRequestBody
|
|
18217
|
+
* @instance
|
|
18218
|
+
* @returns {Object.<string,*>} JSON object
|
|
18219
|
+
*/
|
|
18220
|
+
WatchUploadRequestBody.prototype.toJSON = function toJSON() {
|
|
18221
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18222
|
+
};
|
|
18223
|
+
|
|
18224
|
+
/**
|
|
18225
|
+
* Gets the default type url for WatchUploadRequestBody
|
|
18226
|
+
* @function getTypeUrl
|
|
18227
|
+
* @memberof file.WatchUploadRequestBody
|
|
18228
|
+
* @static
|
|
18229
|
+
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18230
|
+
* @returns {string} The default type url
|
|
18231
|
+
*/
|
|
18232
|
+
WatchUploadRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18233
|
+
if (typeUrlPrefix === undefined) {
|
|
18234
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
18235
|
+
}
|
|
18236
|
+
return typeUrlPrefix + "/file.WatchUploadRequestBody";
|
|
18237
|
+
};
|
|
18238
|
+
|
|
18239
|
+
return WatchUploadRequestBody;
|
|
18240
|
+
})();
|
|
18241
|
+
|
|
18242
|
+
file.UploadEventMsg = (function() {
|
|
18243
|
+
|
|
18244
|
+
/**
|
|
18245
|
+
* Properties of an UploadEventMsg.
|
|
18246
|
+
* @memberof file
|
|
18247
|
+
* @interface IUploadEventMsg
|
|
18248
|
+
* @property {string|null} [type] UploadEventMsg type
|
|
18249
|
+
* @property {number|Long|null} [uploadTaskId] UploadEventMsg uploadTaskId
|
|
18250
|
+
* @property {number|Long|null} [localVersion] UploadEventMsg localVersion
|
|
18251
|
+
* @property {number|Long|null} [uploadVersion] UploadEventMsg uploadVersion
|
|
18252
|
+
*/
|
|
18253
|
+
|
|
18254
|
+
/**
|
|
18255
|
+
* Constructs a new UploadEventMsg.
|
|
18256
|
+
* @memberof file
|
|
18257
|
+
* @classdesc Represents an UploadEventMsg.
|
|
18258
|
+
* @implements IUploadEventMsg
|
|
18259
|
+
* @constructor
|
|
18260
|
+
* @param {file.IUploadEventMsg=} [properties] Properties to set
|
|
18261
|
+
*/
|
|
18262
|
+
function UploadEventMsg(properties) {
|
|
18263
|
+
if (properties)
|
|
18264
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18265
|
+
if (properties[keys[i]] != null)
|
|
18266
|
+
this[keys[i]] = properties[keys[i]];
|
|
18267
|
+
}
|
|
18268
|
+
|
|
18269
|
+
/**
|
|
18270
|
+
* UploadEventMsg type.
|
|
18271
|
+
* @member {string} type
|
|
18272
|
+
* @memberof file.UploadEventMsg
|
|
18273
|
+
* @instance
|
|
18274
|
+
*/
|
|
18275
|
+
UploadEventMsg.prototype.type = "";
|
|
18276
|
+
|
|
18277
|
+
/**
|
|
18278
|
+
* UploadEventMsg uploadTaskId.
|
|
18279
|
+
* @member {number|Long} uploadTaskId
|
|
18280
|
+
* @memberof file.UploadEventMsg
|
|
18281
|
+
* @instance
|
|
18282
|
+
*/
|
|
18283
|
+
UploadEventMsg.prototype.uploadTaskId = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18284
|
+
|
|
18285
|
+
/**
|
|
18286
|
+
* UploadEventMsg localVersion.
|
|
18287
|
+
* @member {number|Long} localVersion
|
|
18288
|
+
* @memberof file.UploadEventMsg
|
|
18289
|
+
* @instance
|
|
18290
|
+
*/
|
|
18291
|
+
UploadEventMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18292
|
+
|
|
18293
|
+
/**
|
|
18294
|
+
* UploadEventMsg uploadVersion.
|
|
18295
|
+
* @member {number|Long} uploadVersion
|
|
18296
|
+
* @memberof file.UploadEventMsg
|
|
18297
|
+
* @instance
|
|
18298
|
+
*/
|
|
18299
|
+
UploadEventMsg.prototype.uploadVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18300
|
+
|
|
18301
|
+
/**
|
|
18302
|
+
* Creates a new UploadEventMsg instance using the specified properties.
|
|
18303
|
+
* @function create
|
|
18304
|
+
* @memberof file.UploadEventMsg
|
|
18305
|
+
* @static
|
|
18306
|
+
* @param {file.IUploadEventMsg=} [properties] Properties to set
|
|
18307
|
+
* @returns {file.UploadEventMsg} UploadEventMsg instance
|
|
18308
|
+
*/
|
|
18309
|
+
UploadEventMsg.create = function create(properties) {
|
|
18310
|
+
return new UploadEventMsg(properties);
|
|
18311
|
+
};
|
|
18312
|
+
|
|
18313
|
+
/**
|
|
18314
|
+
* Encodes the specified UploadEventMsg message. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
|
|
18315
|
+
* @function encode
|
|
18316
|
+
* @memberof file.UploadEventMsg
|
|
18317
|
+
* @static
|
|
18318
|
+
* @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
|
|
18319
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18320
|
+
* @returns {$protobuf.Writer} Writer
|
|
18321
|
+
*/
|
|
18322
|
+
UploadEventMsg.encode = function encode(message, writer) {
|
|
17666
18323
|
if (!writer)
|
|
17667
18324
|
writer = $Writer.create();
|
|
18325
|
+
if (message.type != null && Object.hasOwnProperty.call(message, "type"))
|
|
18326
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
18327
|
+
if (message.uploadTaskId != null && Object.hasOwnProperty.call(message, "uploadTaskId"))
|
|
18328
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.uploadTaskId);
|
|
17668
18329
|
if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
|
|
17669
|
-
|
|
18330
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.localVersion);
|
|
17670
18331
|
if (message.uploadVersion != null && Object.hasOwnProperty.call(message, "uploadVersion"))
|
|
17671
|
-
|
|
18332
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.uploadVersion);
|
|
17672
18333
|
return writer;
|
|
17673
18334
|
};
|
|
17674
18335
|
|
|
17675
18336
|
/**
|
|
17676
|
-
* Encodes the specified
|
|
18337
|
+
* Encodes the specified UploadEventMsg message, length delimited. Does not implicitly {@link file.UploadEventMsg.verify|verify} messages.
|
|
17677
18338
|
* @function encodeDelimited
|
|
17678
|
-
* @memberof file.
|
|
18339
|
+
* @memberof file.UploadEventMsg
|
|
17679
18340
|
* @static
|
|
17680
|
-
* @param {file.
|
|
18341
|
+
* @param {file.IUploadEventMsg} message UploadEventMsg message or plain object to encode
|
|
17681
18342
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17682
18343
|
* @returns {$protobuf.Writer} Writer
|
|
17683
18344
|
*/
|
|
17684
|
-
|
|
18345
|
+
UploadEventMsg.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17685
18346
|
return this.encode(message, writer).ldelim();
|
|
17686
18347
|
};
|
|
17687
18348
|
|
|
17688
18349
|
/**
|
|
17689
|
-
* Decodes an
|
|
18350
|
+
* Decodes an UploadEventMsg message from the specified reader or buffer.
|
|
17690
18351
|
* @function decode
|
|
17691
|
-
* @memberof file.
|
|
18352
|
+
* @memberof file.UploadEventMsg
|
|
17692
18353
|
* @static
|
|
17693
18354
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17694
18355
|
* @param {number} [length] Message length if known beforehand
|
|
17695
|
-
* @returns {file.
|
|
18356
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
17696
18357
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17697
18358
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17698
18359
|
*/
|
|
17699
|
-
|
|
18360
|
+
UploadEventMsg.decode = function decode(reader, length, error) {
|
|
17700
18361
|
if (!(reader instanceof $Reader))
|
|
17701
18362
|
reader = $Reader.create(reader);
|
|
17702
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.
|
|
18363
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.UploadEventMsg();
|
|
17703
18364
|
while (reader.pos < end) {
|
|
17704
18365
|
var tag = reader.uint32();
|
|
17705
18366
|
if (tag === error)
|
|
17706
18367
|
break;
|
|
17707
18368
|
switch (tag >>> 3) {
|
|
17708
18369
|
case 1: {
|
|
17709
|
-
message.
|
|
18370
|
+
message.type = reader.string();
|
|
17710
18371
|
break;
|
|
17711
18372
|
}
|
|
17712
18373
|
case 2: {
|
|
17713
|
-
message.
|
|
18374
|
+
message.uploadTaskId = reader.uint64();
|
|
18375
|
+
break;
|
|
18376
|
+
}
|
|
18377
|
+
case 3: {
|
|
18378
|
+
message.localVersion = reader.uint64();
|
|
18379
|
+
break;
|
|
18380
|
+
}
|
|
18381
|
+
case 4: {
|
|
18382
|
+
message.uploadVersion = reader.uint64();
|
|
17714
18383
|
break;
|
|
17715
18384
|
}
|
|
17716
18385
|
default:
|
|
@@ -17722,121 +18391,169 @@ $root.file = (function() {
|
|
|
17722
18391
|
};
|
|
17723
18392
|
|
|
17724
18393
|
/**
|
|
17725
|
-
* Decodes an
|
|
18394
|
+
* Decodes an UploadEventMsg message from the specified reader or buffer, length delimited.
|
|
17726
18395
|
* @function decodeDelimited
|
|
17727
|
-
* @memberof file.
|
|
18396
|
+
* @memberof file.UploadEventMsg
|
|
17728
18397
|
* @static
|
|
17729
18398
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17730
|
-
* @returns {file.
|
|
18399
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
17731
18400
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17732
18401
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17733
18402
|
*/
|
|
17734
|
-
|
|
18403
|
+
UploadEventMsg.decodeDelimited = function decodeDelimited(reader) {
|
|
17735
18404
|
if (!(reader instanceof $Reader))
|
|
17736
18405
|
reader = new $Reader(reader);
|
|
17737
18406
|
return this.decode(reader, reader.uint32());
|
|
17738
18407
|
};
|
|
17739
18408
|
|
|
17740
18409
|
/**
|
|
17741
|
-
* Verifies an
|
|
18410
|
+
* Verifies an UploadEventMsg message.
|
|
17742
18411
|
* @function verify
|
|
17743
|
-
* @memberof file.
|
|
18412
|
+
* @memberof file.UploadEventMsg
|
|
17744
18413
|
* @static
|
|
17745
18414
|
* @param {Object.<string,*>} message Plain object to verify
|
|
17746
18415
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17747
18416
|
*/
|
|
17748
|
-
|
|
18417
|
+
UploadEventMsg.verify = function verify(message) {
|
|
17749
18418
|
if (typeof message !== "object" || message === null)
|
|
17750
18419
|
return "object expected";
|
|
17751
|
-
if (message.
|
|
17752
|
-
|
|
17753
|
-
|
|
17754
|
-
|
|
17755
|
-
|
|
17756
|
-
|
|
17757
|
-
|
|
17758
|
-
if (
|
|
17759
|
-
return "
|
|
17760
|
-
|
|
18420
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18421
|
+
if (!$util.isString(message.type))
|
|
18422
|
+
return "type: string expected";
|
|
18423
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
18424
|
+
if (!$util.isInteger(message.uploadTaskId) && !(message.uploadTaskId && $util.isInteger(message.uploadTaskId.low) && $util.isInteger(message.uploadTaskId.high)))
|
|
18425
|
+
return "uploadTaskId: integer|Long expected";
|
|
18426
|
+
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
18427
|
+
if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
|
|
18428
|
+
return "localVersion: integer|Long expected";
|
|
18429
|
+
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
18430
|
+
if (!$util.isInteger(message.uploadVersion) && !(message.uploadVersion && $util.isInteger(message.uploadVersion.low) && $util.isInteger(message.uploadVersion.high)))
|
|
18431
|
+
return "uploadVersion: integer|Long expected";
|
|
17761
18432
|
return null;
|
|
17762
18433
|
};
|
|
17763
18434
|
|
|
17764
18435
|
/**
|
|
17765
|
-
* Creates an
|
|
18436
|
+
* Creates an UploadEventMsg message from a plain object. Also converts values to their respective internal types.
|
|
17766
18437
|
* @function fromObject
|
|
17767
|
-
* @memberof file.
|
|
18438
|
+
* @memberof file.UploadEventMsg
|
|
17768
18439
|
* @static
|
|
17769
18440
|
* @param {Object.<string,*>} object Plain object
|
|
17770
|
-
* @returns {file.
|
|
18441
|
+
* @returns {file.UploadEventMsg} UploadEventMsg
|
|
17771
18442
|
*/
|
|
17772
|
-
|
|
17773
|
-
if (object instanceof $root.file.
|
|
18443
|
+
UploadEventMsg.fromObject = function fromObject(object) {
|
|
18444
|
+
if (object instanceof $root.file.UploadEventMsg)
|
|
17774
18445
|
return object;
|
|
17775
|
-
var message = new $root.file.
|
|
17776
|
-
if (object.
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
|
|
17782
|
-
|
|
17783
|
-
|
|
17784
|
-
|
|
17785
|
-
|
|
18446
|
+
var message = new $root.file.UploadEventMsg();
|
|
18447
|
+
if (object.type != null)
|
|
18448
|
+
message.type = String(object.type);
|
|
18449
|
+
if (object.uploadTaskId != null)
|
|
18450
|
+
if ($util.Long)
|
|
18451
|
+
(message.uploadTaskId = $util.Long.fromValue(object.uploadTaskId)).unsigned = true;
|
|
18452
|
+
else if (typeof object.uploadTaskId === "string")
|
|
18453
|
+
message.uploadTaskId = parseInt(object.uploadTaskId, 10);
|
|
18454
|
+
else if (typeof object.uploadTaskId === "number")
|
|
18455
|
+
message.uploadTaskId = object.uploadTaskId;
|
|
18456
|
+
else if (typeof object.uploadTaskId === "object")
|
|
18457
|
+
message.uploadTaskId = new $util.LongBits(object.uploadTaskId.low >>> 0, object.uploadTaskId.high >>> 0).toNumber(true);
|
|
18458
|
+
if (object.localVersion != null)
|
|
18459
|
+
if ($util.Long)
|
|
18460
|
+
(message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
|
|
18461
|
+
else if (typeof object.localVersion === "string")
|
|
18462
|
+
message.localVersion = parseInt(object.localVersion, 10);
|
|
18463
|
+
else if (typeof object.localVersion === "number")
|
|
18464
|
+
message.localVersion = object.localVersion;
|
|
18465
|
+
else if (typeof object.localVersion === "object")
|
|
18466
|
+
message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
|
|
18467
|
+
if (object.uploadVersion != null)
|
|
18468
|
+
if ($util.Long)
|
|
18469
|
+
(message.uploadVersion = $util.Long.fromValue(object.uploadVersion)).unsigned = true;
|
|
18470
|
+
else if (typeof object.uploadVersion === "string")
|
|
18471
|
+
message.uploadVersion = parseInt(object.uploadVersion, 10);
|
|
18472
|
+
else if (typeof object.uploadVersion === "number")
|
|
18473
|
+
message.uploadVersion = object.uploadVersion;
|
|
18474
|
+
else if (typeof object.uploadVersion === "object")
|
|
18475
|
+
message.uploadVersion = new $util.LongBits(object.uploadVersion.low >>> 0, object.uploadVersion.high >>> 0).toNumber(true);
|
|
17786
18476
|
return message;
|
|
17787
18477
|
};
|
|
17788
18478
|
|
|
17789
18479
|
/**
|
|
17790
|
-
* Creates a plain object from an
|
|
18480
|
+
* Creates a plain object from an UploadEventMsg message. Also converts values to other types if specified.
|
|
17791
18481
|
* @function toObject
|
|
17792
|
-
* @memberof file.
|
|
18482
|
+
* @memberof file.UploadEventMsg
|
|
17793
18483
|
* @static
|
|
17794
|
-
* @param {file.
|
|
18484
|
+
* @param {file.UploadEventMsg} message UploadEventMsg
|
|
17795
18485
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17796
18486
|
* @returns {Object.<string,*>} Plain object
|
|
17797
18487
|
*/
|
|
17798
|
-
|
|
18488
|
+
UploadEventMsg.toObject = function toObject(message, options) {
|
|
17799
18489
|
if (!options)
|
|
17800
18490
|
options = {};
|
|
17801
18491
|
var object = {};
|
|
17802
18492
|
if (options.defaults) {
|
|
17803
|
-
object.
|
|
17804
|
-
|
|
18493
|
+
object.type = "";
|
|
18494
|
+
if ($util.Long) {
|
|
18495
|
+
var long = new $util.Long(0, 0, true);
|
|
18496
|
+
object.uploadTaskId = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18497
|
+
} else
|
|
18498
|
+
object.uploadTaskId = options.longs === String ? "0" : 0;
|
|
18499
|
+
if ($util.Long) {
|
|
18500
|
+
var long = new $util.Long(0, 0, true);
|
|
18501
|
+
object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18502
|
+
} else
|
|
18503
|
+
object.localVersion = options.longs === String ? "0" : 0;
|
|
18504
|
+
if ($util.Long) {
|
|
18505
|
+
var long = new $util.Long(0, 0, true);
|
|
18506
|
+
object.uploadVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18507
|
+
} else
|
|
18508
|
+
object.uploadVersion = options.longs === String ? "0" : 0;
|
|
17805
18509
|
}
|
|
18510
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
18511
|
+
object.type = message.type;
|
|
18512
|
+
if (message.uploadTaskId != null && message.hasOwnProperty("uploadTaskId"))
|
|
18513
|
+
if (typeof message.uploadTaskId === "number")
|
|
18514
|
+
object.uploadTaskId = options.longs === String ? String(message.uploadTaskId) : message.uploadTaskId;
|
|
18515
|
+
else
|
|
18516
|
+
object.uploadTaskId = options.longs === String ? $util.Long.prototype.toString.call(message.uploadTaskId) : options.longs === Number ? new $util.LongBits(message.uploadTaskId.low >>> 0, message.uploadTaskId.high >>> 0).toNumber(true) : message.uploadTaskId;
|
|
17806
18517
|
if (message.localVersion != null && message.hasOwnProperty("localVersion"))
|
|
17807
|
-
|
|
18518
|
+
if (typeof message.localVersion === "number")
|
|
18519
|
+
object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
|
|
18520
|
+
else
|
|
18521
|
+
object.localVersion = options.longs === String ? $util.Long.prototype.toString.call(message.localVersion) : options.longs === Number ? new $util.LongBits(message.localVersion.low >>> 0, message.localVersion.high >>> 0).toNumber(true) : message.localVersion;
|
|
17808
18522
|
if (message.uploadVersion != null && message.hasOwnProperty("uploadVersion"))
|
|
17809
|
-
|
|
18523
|
+
if (typeof message.uploadVersion === "number")
|
|
18524
|
+
object.uploadVersion = options.longs === String ? String(message.uploadVersion) : message.uploadVersion;
|
|
18525
|
+
else
|
|
18526
|
+
object.uploadVersion = options.longs === String ? $util.Long.prototype.toString.call(message.uploadVersion) : options.longs === Number ? new $util.LongBits(message.uploadVersion.low >>> 0, message.uploadVersion.high >>> 0).toNumber(true) : message.uploadVersion;
|
|
17810
18527
|
return object;
|
|
17811
18528
|
};
|
|
17812
18529
|
|
|
17813
18530
|
/**
|
|
17814
|
-
* Converts this
|
|
18531
|
+
* Converts this UploadEventMsg to JSON.
|
|
17815
18532
|
* @function toJSON
|
|
17816
|
-
* @memberof file.
|
|
18533
|
+
* @memberof file.UploadEventMsg
|
|
17817
18534
|
* @instance
|
|
17818
18535
|
* @returns {Object.<string,*>} JSON object
|
|
17819
18536
|
*/
|
|
17820
|
-
|
|
18537
|
+
UploadEventMsg.prototype.toJSON = function toJSON() {
|
|
17821
18538
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17822
18539
|
};
|
|
17823
18540
|
|
|
17824
18541
|
/**
|
|
17825
|
-
* Gets the default type url for
|
|
18542
|
+
* Gets the default type url for UploadEventMsg
|
|
17826
18543
|
* @function getTypeUrl
|
|
17827
|
-
* @memberof file.
|
|
18544
|
+
* @memberof file.UploadEventMsg
|
|
17828
18545
|
* @static
|
|
17829
18546
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
17830
18547
|
* @returns {string} The default type url
|
|
17831
18548
|
*/
|
|
17832
|
-
|
|
18549
|
+
UploadEventMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
17833
18550
|
if (typeUrlPrefix === undefined) {
|
|
17834
18551
|
typeUrlPrefix = "type.googleapis.com";
|
|
17835
18552
|
}
|
|
17836
|
-
return typeUrlPrefix + "/file.
|
|
18553
|
+
return typeUrlPrefix + "/file.UploadEventMsg";
|
|
17837
18554
|
};
|
|
17838
18555
|
|
|
17839
|
-
return
|
|
18556
|
+
return UploadEventMsg;
|
|
17840
18557
|
})();
|
|
17841
18558
|
|
|
17842
18559
|
return file;
|
|
@@ -18670,322 +19387,63 @@ $root.fs = (function() {
|
|
|
18670
19387
|
};
|
|
18671
19388
|
|
|
18672
19389
|
/**
|
|
18673
|
-
* Encodes the specified GetXAttrRequestBody message. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
|
|
18674
|
-
* @function encode
|
|
18675
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18676
|
-
* @static
|
|
18677
|
-
* @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
|
|
18678
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18679
|
-
* @returns {$protobuf.Writer} Writer
|
|
18680
|
-
*/
|
|
18681
|
-
GetXAttrRequestBody.encode = function encode(message, writer) {
|
|
18682
|
-
if (!writer)
|
|
18683
|
-
writer = $Writer.create();
|
|
18684
|
-
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
18685
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
|
|
18686
|
-
if (message.xaName != null && Object.hasOwnProperty.call(message, "xaName"))
|
|
18687
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.xaName);
|
|
18688
|
-
return writer;
|
|
18689
|
-
};
|
|
18690
|
-
|
|
18691
|
-
/**
|
|
18692
|
-
* Encodes the specified GetXAttrRequestBody message, length delimited. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
|
|
18693
|
-
* @function encodeDelimited
|
|
18694
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18695
|
-
* @static
|
|
18696
|
-
* @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
|
|
18697
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18698
|
-
* @returns {$protobuf.Writer} Writer
|
|
18699
|
-
*/
|
|
18700
|
-
GetXAttrRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18701
|
-
return this.encode(message, writer).ldelim();
|
|
18702
|
-
};
|
|
18703
|
-
|
|
18704
|
-
/**
|
|
18705
|
-
* Decodes a GetXAttrRequestBody message from the specified reader or buffer.
|
|
18706
|
-
* @function decode
|
|
18707
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18708
|
-
* @static
|
|
18709
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18710
|
-
* @param {number} [length] Message length if known beforehand
|
|
18711
|
-
* @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
|
|
18712
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18713
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18714
|
-
*/
|
|
18715
|
-
GetXAttrRequestBody.decode = function decode(reader, length, error) {
|
|
18716
|
-
if (!(reader instanceof $Reader))
|
|
18717
|
-
reader = $Reader.create(reader);
|
|
18718
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.GetXAttrRequestBody();
|
|
18719
|
-
while (reader.pos < end) {
|
|
18720
|
-
var tag = reader.uint32();
|
|
18721
|
-
if (tag === error)
|
|
18722
|
-
break;
|
|
18723
|
-
switch (tag >>> 3) {
|
|
18724
|
-
case 1: {
|
|
18725
|
-
message.path = reader.string();
|
|
18726
|
-
break;
|
|
18727
|
-
}
|
|
18728
|
-
case 2: {
|
|
18729
|
-
message.xaName = reader.string();
|
|
18730
|
-
break;
|
|
18731
|
-
}
|
|
18732
|
-
default:
|
|
18733
|
-
reader.skipType(tag & 7);
|
|
18734
|
-
break;
|
|
18735
|
-
}
|
|
18736
|
-
}
|
|
18737
|
-
return message;
|
|
18738
|
-
};
|
|
18739
|
-
|
|
18740
|
-
/**
|
|
18741
|
-
* Decodes a GetXAttrRequestBody message from the specified reader or buffer, length delimited.
|
|
18742
|
-
* @function decodeDelimited
|
|
18743
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18744
|
-
* @static
|
|
18745
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18746
|
-
* @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
|
|
18747
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18748
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18749
|
-
*/
|
|
18750
|
-
GetXAttrRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
18751
|
-
if (!(reader instanceof $Reader))
|
|
18752
|
-
reader = new $Reader(reader);
|
|
18753
|
-
return this.decode(reader, reader.uint32());
|
|
18754
|
-
};
|
|
18755
|
-
|
|
18756
|
-
/**
|
|
18757
|
-
* Verifies a GetXAttrRequestBody message.
|
|
18758
|
-
* @function verify
|
|
18759
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18760
|
-
* @static
|
|
18761
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
18762
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18763
|
-
*/
|
|
18764
|
-
GetXAttrRequestBody.verify = function verify(message) {
|
|
18765
|
-
if (typeof message !== "object" || message === null)
|
|
18766
|
-
return "object expected";
|
|
18767
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
18768
|
-
if (!$util.isString(message.path))
|
|
18769
|
-
return "path: string expected";
|
|
18770
|
-
if (message.xaName != null && message.hasOwnProperty("xaName"))
|
|
18771
|
-
if (!$util.isString(message.xaName))
|
|
18772
|
-
return "xaName: string expected";
|
|
18773
|
-
return null;
|
|
18774
|
-
};
|
|
18775
|
-
|
|
18776
|
-
/**
|
|
18777
|
-
* Creates a GetXAttrRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
18778
|
-
* @function fromObject
|
|
18779
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18780
|
-
* @static
|
|
18781
|
-
* @param {Object.<string,*>} object Plain object
|
|
18782
|
-
* @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
|
|
18783
|
-
*/
|
|
18784
|
-
GetXAttrRequestBody.fromObject = function fromObject(object) {
|
|
18785
|
-
if (object instanceof $root.fs.GetXAttrRequestBody)
|
|
18786
|
-
return object;
|
|
18787
|
-
var message = new $root.fs.GetXAttrRequestBody();
|
|
18788
|
-
if (object.path != null)
|
|
18789
|
-
message.path = String(object.path);
|
|
18790
|
-
if (object.xaName != null)
|
|
18791
|
-
message.xaName = String(object.xaName);
|
|
18792
|
-
return message;
|
|
18793
|
-
};
|
|
18794
|
-
|
|
18795
|
-
/**
|
|
18796
|
-
* Creates a plain object from a GetXAttrRequestBody message. Also converts values to other types if specified.
|
|
18797
|
-
* @function toObject
|
|
18798
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18799
|
-
* @static
|
|
18800
|
-
* @param {fs.GetXAttrRequestBody} message GetXAttrRequestBody
|
|
18801
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18802
|
-
* @returns {Object.<string,*>} Plain object
|
|
18803
|
-
*/
|
|
18804
|
-
GetXAttrRequestBody.toObject = function toObject(message, options) {
|
|
18805
|
-
if (!options)
|
|
18806
|
-
options = {};
|
|
18807
|
-
var object = {};
|
|
18808
|
-
if (options.defaults) {
|
|
18809
|
-
object.path = "";
|
|
18810
|
-
object.xaName = "";
|
|
18811
|
-
}
|
|
18812
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
18813
|
-
object.path = message.path;
|
|
18814
|
-
if (message.xaName != null && message.hasOwnProperty("xaName"))
|
|
18815
|
-
object.xaName = message.xaName;
|
|
18816
|
-
return object;
|
|
18817
|
-
};
|
|
18818
|
-
|
|
18819
|
-
/**
|
|
18820
|
-
* Converts this GetXAttrRequestBody to JSON.
|
|
18821
|
-
* @function toJSON
|
|
18822
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18823
|
-
* @instance
|
|
18824
|
-
* @returns {Object.<string,*>} JSON object
|
|
18825
|
-
*/
|
|
18826
|
-
GetXAttrRequestBody.prototype.toJSON = function toJSON() {
|
|
18827
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18828
|
-
};
|
|
18829
|
-
|
|
18830
|
-
/**
|
|
18831
|
-
* Gets the default type url for GetXAttrRequestBody
|
|
18832
|
-
* @function getTypeUrl
|
|
18833
|
-
* @memberof fs.GetXAttrRequestBody
|
|
18834
|
-
* @static
|
|
18835
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
18836
|
-
* @returns {string} The default type url
|
|
18837
|
-
*/
|
|
18838
|
-
GetXAttrRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
18839
|
-
if (typeUrlPrefix === undefined) {
|
|
18840
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
18841
|
-
}
|
|
18842
|
-
return typeUrlPrefix + "/fs.GetXAttrRequestBody";
|
|
18843
|
-
};
|
|
18844
|
-
|
|
18845
|
-
return GetXAttrRequestBody;
|
|
18846
|
-
})();
|
|
18847
|
-
|
|
18848
|
-
fs.SymLink = (function() {
|
|
18849
|
-
|
|
18850
|
-
/**
|
|
18851
|
-
* Properties of a SymLink.
|
|
18852
|
-
* @memberof fs
|
|
18853
|
-
* @interface ISymLink
|
|
18854
|
-
* @property {boolean|null} [readonly] SymLink readonly
|
|
18855
|
-
* @property {common.IBooleanValue|null} [isFile] SymLink isFile
|
|
18856
|
-
* @property {common.IBooleanValue|null} [isFolder] SymLink isFolder
|
|
18857
|
-
* @property {common.IObjectReference|null} [impl] SymLink impl
|
|
18858
|
-
*/
|
|
18859
|
-
|
|
18860
|
-
/**
|
|
18861
|
-
* Constructs a new SymLink.
|
|
18862
|
-
* @memberof fs
|
|
18863
|
-
* @classdesc Represents a SymLink.
|
|
18864
|
-
* @implements ISymLink
|
|
18865
|
-
* @constructor
|
|
18866
|
-
* @param {fs.ISymLink=} [properties] Properties to set
|
|
18867
|
-
*/
|
|
18868
|
-
function SymLink(properties) {
|
|
18869
|
-
if (properties)
|
|
18870
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18871
|
-
if (properties[keys[i]] != null)
|
|
18872
|
-
this[keys[i]] = properties[keys[i]];
|
|
18873
|
-
}
|
|
18874
|
-
|
|
18875
|
-
/**
|
|
18876
|
-
* SymLink readonly.
|
|
18877
|
-
* @member {boolean} readonly
|
|
18878
|
-
* @memberof fs.SymLink
|
|
18879
|
-
* @instance
|
|
18880
|
-
*/
|
|
18881
|
-
SymLink.prototype.readonly = false;
|
|
18882
|
-
|
|
18883
|
-
/**
|
|
18884
|
-
* SymLink isFile.
|
|
18885
|
-
* @member {common.IBooleanValue|null|undefined} isFile
|
|
18886
|
-
* @memberof fs.SymLink
|
|
18887
|
-
* @instance
|
|
18888
|
-
*/
|
|
18889
|
-
SymLink.prototype.isFile = null;
|
|
18890
|
-
|
|
18891
|
-
/**
|
|
18892
|
-
* SymLink isFolder.
|
|
18893
|
-
* @member {common.IBooleanValue|null|undefined} isFolder
|
|
18894
|
-
* @memberof fs.SymLink
|
|
18895
|
-
* @instance
|
|
18896
|
-
*/
|
|
18897
|
-
SymLink.prototype.isFolder = null;
|
|
18898
|
-
|
|
18899
|
-
/**
|
|
18900
|
-
* SymLink impl.
|
|
18901
|
-
* @member {common.IObjectReference|null|undefined} impl
|
|
18902
|
-
* @memberof fs.SymLink
|
|
18903
|
-
* @instance
|
|
18904
|
-
*/
|
|
18905
|
-
SymLink.prototype.impl = null;
|
|
18906
|
-
|
|
18907
|
-
/**
|
|
18908
|
-
* Creates a new SymLink instance using the specified properties.
|
|
18909
|
-
* @function create
|
|
18910
|
-
* @memberof fs.SymLink
|
|
18911
|
-
* @static
|
|
18912
|
-
* @param {fs.ISymLink=} [properties] Properties to set
|
|
18913
|
-
* @returns {fs.SymLink} SymLink instance
|
|
18914
|
-
*/
|
|
18915
|
-
SymLink.create = function create(properties) {
|
|
18916
|
-
return new SymLink(properties);
|
|
18917
|
-
};
|
|
18918
|
-
|
|
18919
|
-
/**
|
|
18920
|
-
* Encodes the specified SymLink message. Does not implicitly {@link fs.SymLink.verify|verify} messages.
|
|
19390
|
+
* Encodes the specified GetXAttrRequestBody message. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
|
|
18921
19391
|
* @function encode
|
|
18922
|
-
* @memberof fs.
|
|
19392
|
+
* @memberof fs.GetXAttrRequestBody
|
|
18923
19393
|
* @static
|
|
18924
|
-
* @param {fs.
|
|
19394
|
+
* @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
|
|
18925
19395
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18926
19396
|
* @returns {$protobuf.Writer} Writer
|
|
18927
19397
|
*/
|
|
18928
|
-
|
|
19398
|
+
GetXAttrRequestBody.encode = function encode(message, writer) {
|
|
18929
19399
|
if (!writer)
|
|
18930
19400
|
writer = $Writer.create();
|
|
18931
|
-
if (message.
|
|
18932
|
-
writer.uint32(/* id 1, wireType
|
|
18933
|
-
if (message.
|
|
18934
|
-
|
|
18935
|
-
if (message.isFolder != null && Object.hasOwnProperty.call(message, "isFolder"))
|
|
18936
|
-
$root.common.BooleanValue.encode(message.isFolder, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
18937
|
-
if (message.impl != null && Object.hasOwnProperty.call(message, "impl"))
|
|
18938
|
-
$root.common.ObjectReference.encode(message.impl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
19401
|
+
if (message.path != null && Object.hasOwnProperty.call(message, "path"))
|
|
19402
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.path);
|
|
19403
|
+
if (message.xaName != null && Object.hasOwnProperty.call(message, "xaName"))
|
|
19404
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.xaName);
|
|
18939
19405
|
return writer;
|
|
18940
19406
|
};
|
|
18941
19407
|
|
|
18942
19408
|
/**
|
|
18943
|
-
* Encodes the specified
|
|
19409
|
+
* Encodes the specified GetXAttrRequestBody message, length delimited. Does not implicitly {@link fs.GetXAttrRequestBody.verify|verify} messages.
|
|
18944
19410
|
* @function encodeDelimited
|
|
18945
|
-
* @memberof fs.
|
|
19411
|
+
* @memberof fs.GetXAttrRequestBody
|
|
18946
19412
|
* @static
|
|
18947
|
-
* @param {fs.
|
|
19413
|
+
* @param {fs.IGetXAttrRequestBody} message GetXAttrRequestBody message or plain object to encode
|
|
18948
19414
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18949
19415
|
* @returns {$protobuf.Writer} Writer
|
|
18950
19416
|
*/
|
|
18951
|
-
|
|
19417
|
+
GetXAttrRequestBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18952
19418
|
return this.encode(message, writer).ldelim();
|
|
18953
19419
|
};
|
|
18954
19420
|
|
|
18955
19421
|
/**
|
|
18956
|
-
* Decodes a
|
|
19422
|
+
* Decodes a GetXAttrRequestBody message from the specified reader or buffer.
|
|
18957
19423
|
* @function decode
|
|
18958
|
-
* @memberof fs.
|
|
19424
|
+
* @memberof fs.GetXAttrRequestBody
|
|
18959
19425
|
* @static
|
|
18960
19426
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18961
19427
|
* @param {number} [length] Message length if known beforehand
|
|
18962
|
-
* @returns {fs.
|
|
19428
|
+
* @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
|
|
18963
19429
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18964
19430
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18965
19431
|
*/
|
|
18966
|
-
|
|
19432
|
+
GetXAttrRequestBody.decode = function decode(reader, length, error) {
|
|
18967
19433
|
if (!(reader instanceof $Reader))
|
|
18968
19434
|
reader = $Reader.create(reader);
|
|
18969
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.
|
|
19435
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.GetXAttrRequestBody();
|
|
18970
19436
|
while (reader.pos < end) {
|
|
18971
19437
|
var tag = reader.uint32();
|
|
18972
19438
|
if (tag === error)
|
|
18973
19439
|
break;
|
|
18974
19440
|
switch (tag >>> 3) {
|
|
18975
19441
|
case 1: {
|
|
18976
|
-
message.
|
|
19442
|
+
message.path = reader.string();
|
|
18977
19443
|
break;
|
|
18978
19444
|
}
|
|
18979
19445
|
case 2: {
|
|
18980
|
-
message.
|
|
18981
|
-
break;
|
|
18982
|
-
}
|
|
18983
|
-
case 3: {
|
|
18984
|
-
message.isFolder = $root.common.BooleanValue.decode(reader, reader.uint32());
|
|
18985
|
-
break;
|
|
18986
|
-
}
|
|
18987
|
-
case 4: {
|
|
18988
|
-
message.impl = $root.common.ObjectReference.decode(reader, reader.uint32());
|
|
19446
|
+
message.xaName = reader.string();
|
|
18989
19447
|
break;
|
|
18990
19448
|
}
|
|
18991
19449
|
default:
|
|
@@ -18997,163 +19455,134 @@ $root.fs = (function() {
|
|
|
18997
19455
|
};
|
|
18998
19456
|
|
|
18999
19457
|
/**
|
|
19000
|
-
* Decodes a
|
|
19458
|
+
* Decodes a GetXAttrRequestBody message from the specified reader or buffer, length delimited.
|
|
19001
19459
|
* @function decodeDelimited
|
|
19002
|
-
* @memberof fs.
|
|
19460
|
+
* @memberof fs.GetXAttrRequestBody
|
|
19003
19461
|
* @static
|
|
19004
19462
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19005
|
-
* @returns {fs.
|
|
19463
|
+
* @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
|
|
19006
19464
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19007
19465
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19008
19466
|
*/
|
|
19009
|
-
|
|
19467
|
+
GetXAttrRequestBody.decodeDelimited = function decodeDelimited(reader) {
|
|
19010
19468
|
if (!(reader instanceof $Reader))
|
|
19011
19469
|
reader = new $Reader(reader);
|
|
19012
19470
|
return this.decode(reader, reader.uint32());
|
|
19013
19471
|
};
|
|
19014
19472
|
|
|
19015
19473
|
/**
|
|
19016
|
-
* Verifies a
|
|
19474
|
+
* Verifies a GetXAttrRequestBody message.
|
|
19017
19475
|
* @function verify
|
|
19018
|
-
* @memberof fs.
|
|
19476
|
+
* @memberof fs.GetXAttrRequestBody
|
|
19019
19477
|
* @static
|
|
19020
19478
|
* @param {Object.<string,*>} message Plain object to verify
|
|
19021
19479
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19022
19480
|
*/
|
|
19023
|
-
|
|
19481
|
+
GetXAttrRequestBody.verify = function verify(message) {
|
|
19024
19482
|
if (typeof message !== "object" || message === null)
|
|
19025
19483
|
return "object expected";
|
|
19026
|
-
if (message.
|
|
19027
|
-
if (
|
|
19028
|
-
return "
|
|
19029
|
-
if (message.
|
|
19030
|
-
|
|
19031
|
-
|
|
19032
|
-
return "isFile." + error;
|
|
19033
|
-
}
|
|
19034
|
-
if (message.isFolder != null && message.hasOwnProperty("isFolder")) {
|
|
19035
|
-
var error = $root.common.BooleanValue.verify(message.isFolder);
|
|
19036
|
-
if (error)
|
|
19037
|
-
return "isFolder." + error;
|
|
19038
|
-
}
|
|
19039
|
-
if (message.impl != null && message.hasOwnProperty("impl")) {
|
|
19040
|
-
var error = $root.common.ObjectReference.verify(message.impl);
|
|
19041
|
-
if (error)
|
|
19042
|
-
return "impl." + error;
|
|
19043
|
-
}
|
|
19484
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
19485
|
+
if (!$util.isString(message.path))
|
|
19486
|
+
return "path: string expected";
|
|
19487
|
+
if (message.xaName != null && message.hasOwnProperty("xaName"))
|
|
19488
|
+
if (!$util.isString(message.xaName))
|
|
19489
|
+
return "xaName: string expected";
|
|
19044
19490
|
return null;
|
|
19045
19491
|
};
|
|
19046
19492
|
|
|
19047
19493
|
/**
|
|
19048
|
-
* Creates a
|
|
19494
|
+
* Creates a GetXAttrRequestBody message from a plain object. Also converts values to their respective internal types.
|
|
19049
19495
|
* @function fromObject
|
|
19050
|
-
* @memberof fs.
|
|
19496
|
+
* @memberof fs.GetXAttrRequestBody
|
|
19051
19497
|
* @static
|
|
19052
19498
|
* @param {Object.<string,*>} object Plain object
|
|
19053
|
-
* @returns {fs.
|
|
19499
|
+
* @returns {fs.GetXAttrRequestBody} GetXAttrRequestBody
|
|
19054
19500
|
*/
|
|
19055
|
-
|
|
19056
|
-
if (object instanceof $root.fs.
|
|
19501
|
+
GetXAttrRequestBody.fromObject = function fromObject(object) {
|
|
19502
|
+
if (object instanceof $root.fs.GetXAttrRequestBody)
|
|
19057
19503
|
return object;
|
|
19058
|
-
var message = new $root.fs.
|
|
19059
|
-
if (object.
|
|
19060
|
-
message.
|
|
19061
|
-
if (object.
|
|
19062
|
-
|
|
19063
|
-
throw TypeError(".fs.SymLink.isFile: object expected");
|
|
19064
|
-
message.isFile = $root.common.BooleanValue.fromObject(object.isFile);
|
|
19065
|
-
}
|
|
19066
|
-
if (object.isFolder != null) {
|
|
19067
|
-
if (typeof object.isFolder !== "object")
|
|
19068
|
-
throw TypeError(".fs.SymLink.isFolder: object expected");
|
|
19069
|
-
message.isFolder = $root.common.BooleanValue.fromObject(object.isFolder);
|
|
19070
|
-
}
|
|
19071
|
-
if (object.impl != null) {
|
|
19072
|
-
if (typeof object.impl !== "object")
|
|
19073
|
-
throw TypeError(".fs.SymLink.impl: object expected");
|
|
19074
|
-
message.impl = $root.common.ObjectReference.fromObject(object.impl);
|
|
19075
|
-
}
|
|
19504
|
+
var message = new $root.fs.GetXAttrRequestBody();
|
|
19505
|
+
if (object.path != null)
|
|
19506
|
+
message.path = String(object.path);
|
|
19507
|
+
if (object.xaName != null)
|
|
19508
|
+
message.xaName = String(object.xaName);
|
|
19076
19509
|
return message;
|
|
19077
19510
|
};
|
|
19078
19511
|
|
|
19079
19512
|
/**
|
|
19080
|
-
* Creates a plain object from a
|
|
19513
|
+
* Creates a plain object from a GetXAttrRequestBody message. Also converts values to other types if specified.
|
|
19081
19514
|
* @function toObject
|
|
19082
|
-
* @memberof fs.
|
|
19515
|
+
* @memberof fs.GetXAttrRequestBody
|
|
19083
19516
|
* @static
|
|
19084
|
-
* @param {fs.
|
|
19517
|
+
* @param {fs.GetXAttrRequestBody} message GetXAttrRequestBody
|
|
19085
19518
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19086
19519
|
* @returns {Object.<string,*>} Plain object
|
|
19087
19520
|
*/
|
|
19088
|
-
|
|
19521
|
+
GetXAttrRequestBody.toObject = function toObject(message, options) {
|
|
19089
19522
|
if (!options)
|
|
19090
19523
|
options = {};
|
|
19091
19524
|
var object = {};
|
|
19092
19525
|
if (options.defaults) {
|
|
19093
|
-
object.
|
|
19094
|
-
object.
|
|
19095
|
-
object.isFolder = null;
|
|
19096
|
-
object.impl = null;
|
|
19526
|
+
object.path = "";
|
|
19527
|
+
object.xaName = "";
|
|
19097
19528
|
}
|
|
19098
|
-
if (message.
|
|
19099
|
-
object.
|
|
19100
|
-
if (message.
|
|
19101
|
-
object.
|
|
19102
|
-
if (message.isFolder != null && message.hasOwnProperty("isFolder"))
|
|
19103
|
-
object.isFolder = $root.common.BooleanValue.toObject(message.isFolder, options);
|
|
19104
|
-
if (message.impl != null && message.hasOwnProperty("impl"))
|
|
19105
|
-
object.impl = $root.common.ObjectReference.toObject(message.impl, options);
|
|
19529
|
+
if (message.path != null && message.hasOwnProperty("path"))
|
|
19530
|
+
object.path = message.path;
|
|
19531
|
+
if (message.xaName != null && message.hasOwnProperty("xaName"))
|
|
19532
|
+
object.xaName = message.xaName;
|
|
19106
19533
|
return object;
|
|
19107
19534
|
};
|
|
19108
19535
|
|
|
19109
19536
|
/**
|
|
19110
|
-
* Converts this
|
|
19537
|
+
* Converts this GetXAttrRequestBody to JSON.
|
|
19111
19538
|
* @function toJSON
|
|
19112
|
-
* @memberof fs.
|
|
19539
|
+
* @memberof fs.GetXAttrRequestBody
|
|
19113
19540
|
* @instance
|
|
19114
19541
|
* @returns {Object.<string,*>} JSON object
|
|
19115
19542
|
*/
|
|
19116
|
-
|
|
19543
|
+
GetXAttrRequestBody.prototype.toJSON = function toJSON() {
|
|
19117
19544
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19118
19545
|
};
|
|
19119
19546
|
|
|
19120
19547
|
/**
|
|
19121
|
-
* Gets the default type url for
|
|
19548
|
+
* Gets the default type url for GetXAttrRequestBody
|
|
19122
19549
|
* @function getTypeUrl
|
|
19123
|
-
* @memberof fs.
|
|
19550
|
+
* @memberof fs.GetXAttrRequestBody
|
|
19124
19551
|
* @static
|
|
19125
19552
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19126
19553
|
* @returns {string} The default type url
|
|
19127
19554
|
*/
|
|
19128
|
-
|
|
19555
|
+
GetXAttrRequestBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19129
19556
|
if (typeUrlPrefix === undefined) {
|
|
19130
19557
|
typeUrlPrefix = "type.googleapis.com";
|
|
19131
19558
|
}
|
|
19132
|
-
return typeUrlPrefix + "/fs.
|
|
19559
|
+
return typeUrlPrefix + "/fs.GetXAttrRequestBody";
|
|
19133
19560
|
};
|
|
19134
19561
|
|
|
19135
|
-
return
|
|
19562
|
+
return GetXAttrRequestBody;
|
|
19136
19563
|
})();
|
|
19137
19564
|
|
|
19138
|
-
fs.
|
|
19565
|
+
fs.SymLink = (function() {
|
|
19139
19566
|
|
|
19140
19567
|
/**
|
|
19141
|
-
* Properties of a
|
|
19568
|
+
* Properties of a SymLink.
|
|
19142
19569
|
* @memberof fs
|
|
19143
|
-
* @interface
|
|
19144
|
-
* @property {
|
|
19145
|
-
* @property {
|
|
19570
|
+
* @interface ISymLink
|
|
19571
|
+
* @property {boolean|null} [readonly] SymLink readonly
|
|
19572
|
+
* @property {common.IBooleanValue|null} [isFile] SymLink isFile
|
|
19573
|
+
* @property {common.IBooleanValue|null} [isFolder] SymLink isFolder
|
|
19574
|
+
* @property {common.IObjectReference|null} [impl] SymLink impl
|
|
19146
19575
|
*/
|
|
19147
19576
|
|
|
19148
19577
|
/**
|
|
19149
|
-
* Constructs a new
|
|
19578
|
+
* Constructs a new SymLink.
|
|
19150
19579
|
* @memberof fs
|
|
19151
|
-
* @classdesc Represents a
|
|
19152
|
-
* @implements
|
|
19580
|
+
* @classdesc Represents a SymLink.
|
|
19581
|
+
* @implements ISymLink
|
|
19153
19582
|
* @constructor
|
|
19154
|
-
* @param {fs.
|
|
19583
|
+
* @param {fs.ISymLink=} [properties] Properties to set
|
|
19155
19584
|
*/
|
|
19156
|
-
function
|
|
19585
|
+
function SymLink(properties) {
|
|
19157
19586
|
if (properties)
|
|
19158
19587
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19159
19588
|
if (properties[keys[i]] != null)
|
|
@@ -19161,91 +19590,119 @@ $root.fs = (function() {
|
|
|
19161
19590
|
}
|
|
19162
19591
|
|
|
19163
19592
|
/**
|
|
19164
|
-
*
|
|
19165
|
-
* @member {
|
|
19166
|
-
* @memberof fs.
|
|
19593
|
+
* SymLink readonly.
|
|
19594
|
+
* @member {boolean} readonly
|
|
19595
|
+
* @memberof fs.SymLink
|
|
19167
19596
|
* @instance
|
|
19168
19597
|
*/
|
|
19169
|
-
|
|
19598
|
+
SymLink.prototype.readonly = false;
|
|
19170
19599
|
|
|
19171
19600
|
/**
|
|
19172
|
-
*
|
|
19173
|
-
* @member {
|
|
19174
|
-
* @memberof fs.
|
|
19601
|
+
* SymLink isFile.
|
|
19602
|
+
* @member {common.IBooleanValue|null|undefined} isFile
|
|
19603
|
+
* @memberof fs.SymLink
|
|
19175
19604
|
* @instance
|
|
19176
19605
|
*/
|
|
19177
|
-
|
|
19606
|
+
SymLink.prototype.isFile = null;
|
|
19178
19607
|
|
|
19179
19608
|
/**
|
|
19180
|
-
*
|
|
19609
|
+
* SymLink isFolder.
|
|
19610
|
+
* @member {common.IBooleanValue|null|undefined} isFolder
|
|
19611
|
+
* @memberof fs.SymLink
|
|
19612
|
+
* @instance
|
|
19613
|
+
*/
|
|
19614
|
+
SymLink.prototype.isFolder = null;
|
|
19615
|
+
|
|
19616
|
+
/**
|
|
19617
|
+
* SymLink impl.
|
|
19618
|
+
* @member {common.IObjectReference|null|undefined} impl
|
|
19619
|
+
* @memberof fs.SymLink
|
|
19620
|
+
* @instance
|
|
19621
|
+
*/
|
|
19622
|
+
SymLink.prototype.impl = null;
|
|
19623
|
+
|
|
19624
|
+
/**
|
|
19625
|
+
* Creates a new SymLink instance using the specified properties.
|
|
19181
19626
|
* @function create
|
|
19182
|
-
* @memberof fs.
|
|
19627
|
+
* @memberof fs.SymLink
|
|
19183
19628
|
* @static
|
|
19184
|
-
* @param {fs.
|
|
19185
|
-
* @returns {fs.
|
|
19629
|
+
* @param {fs.ISymLink=} [properties] Properties to set
|
|
19630
|
+
* @returns {fs.SymLink} SymLink instance
|
|
19186
19631
|
*/
|
|
19187
|
-
|
|
19188
|
-
return new
|
|
19632
|
+
SymLink.create = function create(properties) {
|
|
19633
|
+
return new SymLink(properties);
|
|
19189
19634
|
};
|
|
19190
19635
|
|
|
19191
19636
|
/**
|
|
19192
|
-
* Encodes the specified
|
|
19637
|
+
* Encodes the specified SymLink message. Does not implicitly {@link fs.SymLink.verify|verify} messages.
|
|
19193
19638
|
* @function encode
|
|
19194
|
-
* @memberof fs.
|
|
19639
|
+
* @memberof fs.SymLink
|
|
19195
19640
|
* @static
|
|
19196
|
-
* @param {fs.
|
|
19641
|
+
* @param {fs.ISymLink} message SymLink message or plain object to encode
|
|
19197
19642
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19198
19643
|
* @returns {$protobuf.Writer} Writer
|
|
19199
19644
|
*/
|
|
19200
|
-
|
|
19645
|
+
SymLink.encode = function encode(message, writer) {
|
|
19201
19646
|
if (!writer)
|
|
19202
19647
|
writer = $Writer.create();
|
|
19203
|
-
if (message.
|
|
19204
|
-
|
|
19205
|
-
if (message.
|
|
19206
|
-
$root.
|
|
19648
|
+
if (message.readonly != null && Object.hasOwnProperty.call(message, "readonly"))
|
|
19649
|
+
writer.uint32(/* id 1, wireType 0 =*/8).bool(message.readonly);
|
|
19650
|
+
if (message.isFile != null && Object.hasOwnProperty.call(message, "isFile"))
|
|
19651
|
+
$root.common.BooleanValue.encode(message.isFile, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
19652
|
+
if (message.isFolder != null && Object.hasOwnProperty.call(message, "isFolder"))
|
|
19653
|
+
$root.common.BooleanValue.encode(message.isFolder, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
19654
|
+
if (message.impl != null && Object.hasOwnProperty.call(message, "impl"))
|
|
19655
|
+
$root.common.ObjectReference.encode(message.impl, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
19207
19656
|
return writer;
|
|
19208
19657
|
};
|
|
19209
19658
|
|
|
19210
19659
|
/**
|
|
19211
|
-
* Encodes the specified
|
|
19660
|
+
* Encodes the specified SymLink message, length delimited. Does not implicitly {@link fs.SymLink.verify|verify} messages.
|
|
19212
19661
|
* @function encodeDelimited
|
|
19213
|
-
* @memberof fs.
|
|
19662
|
+
* @memberof fs.SymLink
|
|
19214
19663
|
* @static
|
|
19215
|
-
* @param {fs.
|
|
19664
|
+
* @param {fs.ISymLink} message SymLink message or plain object to encode
|
|
19216
19665
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19217
19666
|
* @returns {$protobuf.Writer} Writer
|
|
19218
19667
|
*/
|
|
19219
|
-
|
|
19668
|
+
SymLink.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19220
19669
|
return this.encode(message, writer).ldelim();
|
|
19221
19670
|
};
|
|
19222
19671
|
|
|
19223
19672
|
/**
|
|
19224
|
-
* Decodes a
|
|
19673
|
+
* Decodes a SymLink message from the specified reader or buffer.
|
|
19225
19674
|
* @function decode
|
|
19226
|
-
* @memberof fs.
|
|
19675
|
+
* @memberof fs.SymLink
|
|
19227
19676
|
* @static
|
|
19228
19677
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19229
19678
|
* @param {number} [length] Message length if known beforehand
|
|
19230
|
-
* @returns {fs.
|
|
19679
|
+
* @returns {fs.SymLink} SymLink
|
|
19231
19680
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19232
19681
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19233
19682
|
*/
|
|
19234
|
-
|
|
19683
|
+
SymLink.decode = function decode(reader, length, error) {
|
|
19235
19684
|
if (!(reader instanceof $Reader))
|
|
19236
19685
|
reader = $Reader.create(reader);
|
|
19237
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.
|
|
19686
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.SymLink();
|
|
19238
19687
|
while (reader.pos < end) {
|
|
19239
19688
|
var tag = reader.uint32();
|
|
19240
19689
|
if (tag === error)
|
|
19241
19690
|
break;
|
|
19242
19691
|
switch (tag >>> 3) {
|
|
19243
19692
|
case 1: {
|
|
19244
|
-
message.
|
|
19693
|
+
message.readonly = reader.bool();
|
|
19245
19694
|
break;
|
|
19246
19695
|
}
|
|
19247
19696
|
case 2: {
|
|
19248
|
-
message.
|
|
19697
|
+
message.isFile = $root.common.BooleanValue.decode(reader, reader.uint32());
|
|
19698
|
+
break;
|
|
19699
|
+
}
|
|
19700
|
+
case 3: {
|
|
19701
|
+
message.isFolder = $root.common.BooleanValue.decode(reader, reader.uint32());
|
|
19702
|
+
break;
|
|
19703
|
+
}
|
|
19704
|
+
case 4: {
|
|
19705
|
+
message.impl = $root.common.ObjectReference.decode(reader, reader.uint32());
|
|
19249
19706
|
break;
|
|
19250
19707
|
}
|
|
19251
19708
|
default:
|
|
@@ -19257,151 +19714,163 @@ $root.fs = (function() {
|
|
|
19257
19714
|
};
|
|
19258
19715
|
|
|
19259
19716
|
/**
|
|
19260
|
-
* Decodes a
|
|
19717
|
+
* Decodes a SymLink message from the specified reader or buffer, length delimited.
|
|
19261
19718
|
* @function decodeDelimited
|
|
19262
|
-
* @memberof fs.
|
|
19719
|
+
* @memberof fs.SymLink
|
|
19263
19720
|
* @static
|
|
19264
19721
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19265
|
-
* @returns {fs.
|
|
19722
|
+
* @returns {fs.SymLink} SymLink
|
|
19266
19723
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19267
19724
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19268
19725
|
*/
|
|
19269
|
-
|
|
19726
|
+
SymLink.decodeDelimited = function decodeDelimited(reader) {
|
|
19270
19727
|
if (!(reader instanceof $Reader))
|
|
19271
19728
|
reader = new $Reader(reader);
|
|
19272
19729
|
return this.decode(reader, reader.uint32());
|
|
19273
19730
|
};
|
|
19274
19731
|
|
|
19275
19732
|
/**
|
|
19276
|
-
* Verifies a
|
|
19733
|
+
* Verifies a SymLink message.
|
|
19277
19734
|
* @function verify
|
|
19278
|
-
* @memberof fs.
|
|
19735
|
+
* @memberof fs.SymLink
|
|
19279
19736
|
* @static
|
|
19280
19737
|
* @param {Object.<string,*>} message Plain object to verify
|
|
19281
19738
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19282
19739
|
*/
|
|
19283
|
-
|
|
19740
|
+
SymLink.verify = function verify(message) {
|
|
19284
19741
|
if (typeof message !== "object" || message === null)
|
|
19285
19742
|
return "object expected";
|
|
19286
|
-
if (message.
|
|
19287
|
-
|
|
19743
|
+
if (message.readonly != null && message.hasOwnProperty("readonly"))
|
|
19744
|
+
if (typeof message.readonly !== "boolean")
|
|
19745
|
+
return "readonly: boolean expected";
|
|
19746
|
+
if (message.isFile != null && message.hasOwnProperty("isFile")) {
|
|
19747
|
+
var error = $root.common.BooleanValue.verify(message.isFile);
|
|
19288
19748
|
if (error)
|
|
19289
|
-
return "
|
|
19749
|
+
return "isFile." + error;
|
|
19290
19750
|
}
|
|
19291
|
-
if (message.
|
|
19292
|
-
var error = $root.
|
|
19751
|
+
if (message.isFolder != null && message.hasOwnProperty("isFolder")) {
|
|
19752
|
+
var error = $root.common.BooleanValue.verify(message.isFolder);
|
|
19293
19753
|
if (error)
|
|
19294
|
-
return "
|
|
19754
|
+
return "isFolder." + error;
|
|
19755
|
+
}
|
|
19756
|
+
if (message.impl != null && message.hasOwnProperty("impl")) {
|
|
19757
|
+
var error = $root.common.ObjectReference.verify(message.impl);
|
|
19758
|
+
if (error)
|
|
19759
|
+
return "impl." + error;
|
|
19295
19760
|
}
|
|
19296
19761
|
return null;
|
|
19297
19762
|
};
|
|
19298
19763
|
|
|
19299
19764
|
/**
|
|
19300
|
-
* Creates a
|
|
19765
|
+
* Creates a SymLink message from a plain object. Also converts values to their respective internal types.
|
|
19301
19766
|
* @function fromObject
|
|
19302
|
-
* @memberof fs.
|
|
19767
|
+
* @memberof fs.SymLink
|
|
19303
19768
|
* @static
|
|
19304
19769
|
* @param {Object.<string,*>} object Plain object
|
|
19305
|
-
* @returns {fs.
|
|
19770
|
+
* @returns {fs.SymLink} SymLink
|
|
19306
19771
|
*/
|
|
19307
|
-
|
|
19308
|
-
if (object instanceof $root.fs.
|
|
19772
|
+
SymLink.fromObject = function fromObject(object) {
|
|
19773
|
+
if (object instanceof $root.fs.SymLink)
|
|
19309
19774
|
return object;
|
|
19310
|
-
var message = new $root.fs.
|
|
19311
|
-
if (object.
|
|
19312
|
-
|
|
19313
|
-
|
|
19314
|
-
|
|
19775
|
+
var message = new $root.fs.SymLink();
|
|
19776
|
+
if (object.readonly != null)
|
|
19777
|
+
message.readonly = Boolean(object.readonly);
|
|
19778
|
+
if (object.isFile != null) {
|
|
19779
|
+
if (typeof object.isFile !== "object")
|
|
19780
|
+
throw TypeError(".fs.SymLink.isFile: object expected");
|
|
19781
|
+
message.isFile = $root.common.BooleanValue.fromObject(object.isFile);
|
|
19315
19782
|
}
|
|
19316
|
-
if (object.
|
|
19317
|
-
if (typeof object.
|
|
19318
|
-
throw TypeError(".fs.
|
|
19319
|
-
message.
|
|
19783
|
+
if (object.isFolder != null) {
|
|
19784
|
+
if (typeof object.isFolder !== "object")
|
|
19785
|
+
throw TypeError(".fs.SymLink.isFolder: object expected");
|
|
19786
|
+
message.isFolder = $root.common.BooleanValue.fromObject(object.isFolder);
|
|
19787
|
+
}
|
|
19788
|
+
if (object.impl != null) {
|
|
19789
|
+
if (typeof object.impl !== "object")
|
|
19790
|
+
throw TypeError(".fs.SymLink.impl: object expected");
|
|
19791
|
+
message.impl = $root.common.ObjectReference.fromObject(object.impl);
|
|
19320
19792
|
}
|
|
19321
19793
|
return message;
|
|
19322
19794
|
};
|
|
19323
19795
|
|
|
19324
19796
|
/**
|
|
19325
|
-
* Creates a plain object from a
|
|
19797
|
+
* Creates a plain object from a SymLink message. Also converts values to other types if specified.
|
|
19326
19798
|
* @function toObject
|
|
19327
|
-
* @memberof fs.
|
|
19799
|
+
* @memberof fs.SymLink
|
|
19328
19800
|
* @static
|
|
19329
|
-
* @param {fs.
|
|
19801
|
+
* @param {fs.SymLink} message SymLink
|
|
19330
19802
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19331
19803
|
* @returns {Object.<string,*>} Plain object
|
|
19332
19804
|
*/
|
|
19333
|
-
|
|
19805
|
+
SymLink.toObject = function toObject(message, options) {
|
|
19334
19806
|
if (!options)
|
|
19335
19807
|
options = {};
|
|
19336
19808
|
var object = {};
|
|
19337
19809
|
if (options.defaults) {
|
|
19338
|
-
object.
|
|
19339
|
-
object.
|
|
19810
|
+
object.readonly = false;
|
|
19811
|
+
object.isFile = null;
|
|
19812
|
+
object.isFolder = null;
|
|
19813
|
+
object.impl = null;
|
|
19340
19814
|
}
|
|
19341
|
-
if (message.
|
|
19342
|
-
object.
|
|
19343
|
-
if (message.
|
|
19344
|
-
object.
|
|
19815
|
+
if (message.readonly != null && message.hasOwnProperty("readonly"))
|
|
19816
|
+
object.readonly = message.readonly;
|
|
19817
|
+
if (message.isFile != null && message.hasOwnProperty("isFile"))
|
|
19818
|
+
object.isFile = $root.common.BooleanValue.toObject(message.isFile, options);
|
|
19819
|
+
if (message.isFolder != null && message.hasOwnProperty("isFolder"))
|
|
19820
|
+
object.isFolder = $root.common.BooleanValue.toObject(message.isFolder, options);
|
|
19821
|
+
if (message.impl != null && message.hasOwnProperty("impl"))
|
|
19822
|
+
object.impl = $root.common.ObjectReference.toObject(message.impl, options);
|
|
19345
19823
|
return object;
|
|
19346
19824
|
};
|
|
19347
19825
|
|
|
19348
19826
|
/**
|
|
19349
|
-
* Converts this
|
|
19827
|
+
* Converts this SymLink to JSON.
|
|
19350
19828
|
* @function toJSON
|
|
19351
|
-
* @memberof fs.
|
|
19829
|
+
* @memberof fs.SymLink
|
|
19352
19830
|
* @instance
|
|
19353
19831
|
* @returns {Object.<string,*>} JSON object
|
|
19354
19832
|
*/
|
|
19355
|
-
|
|
19833
|
+
SymLink.prototype.toJSON = function toJSON() {
|
|
19356
19834
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19357
19835
|
};
|
|
19358
19836
|
|
|
19359
19837
|
/**
|
|
19360
|
-
* Gets the default type url for
|
|
19838
|
+
* Gets the default type url for SymLink
|
|
19361
19839
|
* @function getTypeUrl
|
|
19362
|
-
* @memberof fs.
|
|
19840
|
+
* @memberof fs.SymLink
|
|
19363
19841
|
* @static
|
|
19364
19842
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19365
19843
|
* @returns {string} The default type url
|
|
19366
19844
|
*/
|
|
19367
|
-
|
|
19845
|
+
SymLink.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19368
19846
|
if (typeUrlPrefix === undefined) {
|
|
19369
19847
|
typeUrlPrefix = "type.googleapis.com";
|
|
19370
19848
|
}
|
|
19371
|
-
return typeUrlPrefix + "/fs.
|
|
19849
|
+
return typeUrlPrefix + "/fs.SymLink";
|
|
19372
19850
|
};
|
|
19373
19851
|
|
|
19374
|
-
return
|
|
19852
|
+
return SymLink;
|
|
19375
19853
|
})();
|
|
19376
19854
|
|
|
19377
|
-
fs.
|
|
19855
|
+
fs.SymLinkTargetReplyBody = (function() {
|
|
19378
19856
|
|
|
19379
19857
|
/**
|
|
19380
|
-
* Properties of a
|
|
19858
|
+
* Properties of a SymLinkTargetReplyBody.
|
|
19381
19859
|
* @memberof fs
|
|
19382
|
-
* @interface
|
|
19383
|
-
* @property {
|
|
19384
|
-
* @property {
|
|
19385
|
-
|
|
19386
|
-
|
|
19387
|
-
|
|
19388
|
-
*
|
|
19389
|
-
* @property {common.IStringValue|null} [newName] FSEventMsg newName
|
|
19390
|
-
* @property {fs.IListingEntryMsg|null} [entry] FSEventMsg entry
|
|
19391
|
-
* @property {common.IUInt64Value|null} [moveLabel] FSEventMsg moveLabel
|
|
19392
|
-
* @property {common.IUInt64Value|null} [removedArchVer] FSEventMsg removedArchVer
|
|
19393
|
-
* @property {common.IUInt64Value|null} [archivedVersion] FSEventMsg archivedVersion
|
|
19394
|
-
*/
|
|
19395
|
-
|
|
19396
|
-
/**
|
|
19397
|
-
* Constructs a new FSEventMsg.
|
|
19860
|
+
* @interface ISymLinkTargetReplyBody
|
|
19861
|
+
* @property {fs.IFS|null} [fs] SymLinkTargetReplyBody fs
|
|
19862
|
+
* @property {file.IFile|null} [file] SymLinkTargetReplyBody file
|
|
19863
|
+
*/
|
|
19864
|
+
|
|
19865
|
+
/**
|
|
19866
|
+
* Constructs a new SymLinkTargetReplyBody.
|
|
19398
19867
|
* @memberof fs
|
|
19399
|
-
* @classdesc Represents a
|
|
19400
|
-
* @implements
|
|
19868
|
+
* @classdesc Represents a SymLinkTargetReplyBody.
|
|
19869
|
+
* @implements ISymLinkTargetReplyBody
|
|
19401
19870
|
* @constructor
|
|
19402
|
-
* @param {fs.
|
|
19871
|
+
* @param {fs.ISymLinkTargetReplyBody=} [properties] Properties to set
|
|
19403
19872
|
*/
|
|
19404
|
-
function
|
|
19873
|
+
function SymLinkTargetReplyBody(properties) {
|
|
19405
19874
|
if (properties)
|
|
19406
19875
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19407
19876
|
if (properties[keys[i]] != null)
|
|
@@ -19409,217 +19878,91 @@ $root.fs = (function() {
|
|
|
19409
19878
|
}
|
|
19410
19879
|
|
|
19411
19880
|
/**
|
|
19412
|
-
*
|
|
19413
|
-
* @member {
|
|
19414
|
-
* @memberof fs.
|
|
19415
|
-
* @instance
|
|
19416
|
-
*/
|
|
19417
|
-
FSEventMsg.prototype.type = "";
|
|
19418
|
-
|
|
19419
|
-
/**
|
|
19420
|
-
* FSEventMsg path.
|
|
19421
|
-
* @member {string} path
|
|
19422
|
-
* @memberof fs.FSEventMsg
|
|
19423
|
-
* @instance
|
|
19424
|
-
*/
|
|
19425
|
-
FSEventMsg.prototype.path = "";
|
|
19426
|
-
|
|
19427
|
-
/**
|
|
19428
|
-
* FSEventMsg src.
|
|
19429
|
-
* @member {common.IStringValue|null|undefined} src
|
|
19430
|
-
* @memberof fs.FSEventMsg
|
|
19431
|
-
* @instance
|
|
19432
|
-
*/
|
|
19433
|
-
FSEventMsg.prototype.src = null;
|
|
19434
|
-
|
|
19435
|
-
/**
|
|
19436
|
-
* FSEventMsg newVersion.
|
|
19437
|
-
* @member {common.IUInt64Value|null|undefined} newVersion
|
|
19438
|
-
* @memberof fs.FSEventMsg
|
|
19439
|
-
* @instance
|
|
19440
|
-
*/
|
|
19441
|
-
FSEventMsg.prototype.newVersion = null;
|
|
19442
|
-
|
|
19443
|
-
/**
|
|
19444
|
-
* FSEventMsg name.
|
|
19445
|
-
* @member {common.IStringValue|null|undefined} name
|
|
19446
|
-
* @memberof fs.FSEventMsg
|
|
19447
|
-
* @instance
|
|
19448
|
-
*/
|
|
19449
|
-
FSEventMsg.prototype.name = null;
|
|
19450
|
-
|
|
19451
|
-
/**
|
|
19452
|
-
* FSEventMsg oldName.
|
|
19453
|
-
* @member {common.IStringValue|null|undefined} oldName
|
|
19454
|
-
* @memberof fs.FSEventMsg
|
|
19455
|
-
* @instance
|
|
19456
|
-
*/
|
|
19457
|
-
FSEventMsg.prototype.oldName = null;
|
|
19458
|
-
|
|
19459
|
-
/**
|
|
19460
|
-
* FSEventMsg newName.
|
|
19461
|
-
* @member {common.IStringValue|null|undefined} newName
|
|
19462
|
-
* @memberof fs.FSEventMsg
|
|
19463
|
-
* @instance
|
|
19464
|
-
*/
|
|
19465
|
-
FSEventMsg.prototype.newName = null;
|
|
19466
|
-
|
|
19467
|
-
/**
|
|
19468
|
-
* FSEventMsg entry.
|
|
19469
|
-
* @member {fs.IListingEntryMsg|null|undefined} entry
|
|
19470
|
-
* @memberof fs.FSEventMsg
|
|
19471
|
-
* @instance
|
|
19472
|
-
*/
|
|
19473
|
-
FSEventMsg.prototype.entry = null;
|
|
19474
|
-
|
|
19475
|
-
/**
|
|
19476
|
-
* FSEventMsg moveLabel.
|
|
19477
|
-
* @member {common.IUInt64Value|null|undefined} moveLabel
|
|
19478
|
-
* @memberof fs.FSEventMsg
|
|
19479
|
-
* @instance
|
|
19480
|
-
*/
|
|
19481
|
-
FSEventMsg.prototype.moveLabel = null;
|
|
19482
|
-
|
|
19483
|
-
/**
|
|
19484
|
-
* FSEventMsg removedArchVer.
|
|
19485
|
-
* @member {common.IUInt64Value|null|undefined} removedArchVer
|
|
19486
|
-
* @memberof fs.FSEventMsg
|
|
19881
|
+
* SymLinkTargetReplyBody fs.
|
|
19882
|
+
* @member {fs.IFS|null|undefined} fs
|
|
19883
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19487
19884
|
* @instance
|
|
19488
19885
|
*/
|
|
19489
|
-
|
|
19886
|
+
SymLinkTargetReplyBody.prototype.fs = null;
|
|
19490
19887
|
|
|
19491
19888
|
/**
|
|
19492
|
-
*
|
|
19493
|
-
* @member {
|
|
19494
|
-
* @memberof fs.
|
|
19889
|
+
* SymLinkTargetReplyBody file.
|
|
19890
|
+
* @member {file.IFile|null|undefined} file
|
|
19891
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19495
19892
|
* @instance
|
|
19496
19893
|
*/
|
|
19497
|
-
|
|
19894
|
+
SymLinkTargetReplyBody.prototype.file = null;
|
|
19498
19895
|
|
|
19499
19896
|
/**
|
|
19500
|
-
* Creates a new
|
|
19897
|
+
* Creates a new SymLinkTargetReplyBody instance using the specified properties.
|
|
19501
19898
|
* @function create
|
|
19502
|
-
* @memberof fs.
|
|
19899
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19503
19900
|
* @static
|
|
19504
|
-
* @param {fs.
|
|
19505
|
-
* @returns {fs.
|
|
19901
|
+
* @param {fs.ISymLinkTargetReplyBody=} [properties] Properties to set
|
|
19902
|
+
* @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody instance
|
|
19506
19903
|
*/
|
|
19507
|
-
|
|
19508
|
-
return new
|
|
19904
|
+
SymLinkTargetReplyBody.create = function create(properties) {
|
|
19905
|
+
return new SymLinkTargetReplyBody(properties);
|
|
19509
19906
|
};
|
|
19510
19907
|
|
|
19511
19908
|
/**
|
|
19512
|
-
* Encodes the specified
|
|
19909
|
+
* Encodes the specified SymLinkTargetReplyBody message. Does not implicitly {@link fs.SymLinkTargetReplyBody.verify|verify} messages.
|
|
19513
19910
|
* @function encode
|
|
19514
|
-
* @memberof fs.
|
|
19911
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19515
19912
|
* @static
|
|
19516
|
-
* @param {fs.
|
|
19913
|
+
* @param {fs.ISymLinkTargetReplyBody} message SymLinkTargetReplyBody message or plain object to encode
|
|
19517
19914
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19518
19915
|
* @returns {$protobuf.Writer} Writer
|
|
19519
19916
|
*/
|
|
19520
|
-
|
|
19917
|
+
SymLinkTargetReplyBody.encode = function encode(message, writer) {
|
|
19521
19918
|
if (!writer)
|
|
19522
19919
|
writer = $Writer.create();
|
|
19523
|
-
if (message.
|
|
19524
|
-
writer.uint32(/* id 1, wireType 2 =*/10).
|
|
19525
|
-
if (message.
|
|
19526
|
-
writer.uint32(/* id 2, wireType 2 =*/18).
|
|
19527
|
-
if (message.src != null && Object.hasOwnProperty.call(message, "src"))
|
|
19528
|
-
$root.common.StringValue.encode(message.src, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
19529
|
-
if (message.newVersion != null && Object.hasOwnProperty.call(message, "newVersion"))
|
|
19530
|
-
$root.common.UInt64Value.encode(message.newVersion, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
19531
|
-
if (message.name != null && Object.hasOwnProperty.call(message, "name"))
|
|
19532
|
-
$root.common.StringValue.encode(message.name, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
19533
|
-
if (message.oldName != null && Object.hasOwnProperty.call(message, "oldName"))
|
|
19534
|
-
$root.common.StringValue.encode(message.oldName, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
19535
|
-
if (message.newName != null && Object.hasOwnProperty.call(message, "newName"))
|
|
19536
|
-
$root.common.StringValue.encode(message.newName, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
19537
|
-
if (message.entry != null && Object.hasOwnProperty.call(message, "entry"))
|
|
19538
|
-
$root.fs.ListingEntryMsg.encode(message.entry, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
19539
|
-
if (message.moveLabel != null && Object.hasOwnProperty.call(message, "moveLabel"))
|
|
19540
|
-
$root.common.UInt64Value.encode(message.moveLabel, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
19541
|
-
if (message.removedArchVer != null && Object.hasOwnProperty.call(message, "removedArchVer"))
|
|
19542
|
-
$root.common.UInt64Value.encode(message.removedArchVer, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
19543
|
-
if (message.archivedVersion != null && Object.hasOwnProperty.call(message, "archivedVersion"))
|
|
19544
|
-
$root.common.UInt64Value.encode(message.archivedVersion, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
19920
|
+
if (message.fs != null && Object.hasOwnProperty.call(message, "fs"))
|
|
19921
|
+
$root.fs.FS.encode(message.fs, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
19922
|
+
if (message.file != null && Object.hasOwnProperty.call(message, "file"))
|
|
19923
|
+
$root.file.File.encode(message.file, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
19545
19924
|
return writer;
|
|
19546
19925
|
};
|
|
19547
19926
|
|
|
19548
19927
|
/**
|
|
19549
|
-
* Encodes the specified
|
|
19928
|
+
* Encodes the specified SymLinkTargetReplyBody message, length delimited. Does not implicitly {@link fs.SymLinkTargetReplyBody.verify|verify} messages.
|
|
19550
19929
|
* @function encodeDelimited
|
|
19551
|
-
* @memberof fs.
|
|
19930
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19552
19931
|
* @static
|
|
19553
|
-
* @param {fs.
|
|
19932
|
+
* @param {fs.ISymLinkTargetReplyBody} message SymLinkTargetReplyBody message or plain object to encode
|
|
19554
19933
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19555
19934
|
* @returns {$protobuf.Writer} Writer
|
|
19556
19935
|
*/
|
|
19557
|
-
|
|
19936
|
+
SymLinkTargetReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19558
19937
|
return this.encode(message, writer).ldelim();
|
|
19559
19938
|
};
|
|
19560
19939
|
|
|
19561
19940
|
/**
|
|
19562
|
-
* Decodes a
|
|
19941
|
+
* Decodes a SymLinkTargetReplyBody message from the specified reader or buffer.
|
|
19563
19942
|
* @function decode
|
|
19564
|
-
* @memberof fs.
|
|
19943
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19565
19944
|
* @static
|
|
19566
19945
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19567
19946
|
* @param {number} [length] Message length if known beforehand
|
|
19568
|
-
* @returns {fs.
|
|
19947
|
+
* @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
|
|
19569
19948
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19570
19949
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19571
19950
|
*/
|
|
19572
|
-
|
|
19951
|
+
SymLinkTargetReplyBody.decode = function decode(reader, length, error) {
|
|
19573
19952
|
if (!(reader instanceof $Reader))
|
|
19574
19953
|
reader = $Reader.create(reader);
|
|
19575
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.
|
|
19576
|
-
while (reader.pos < end) {
|
|
19577
|
-
var tag = reader.uint32();
|
|
19578
|
-
if (tag === error)
|
|
19579
|
-
break;
|
|
19580
|
-
switch (tag >>> 3) {
|
|
19581
|
-
case 1: {
|
|
19582
|
-
message.
|
|
19583
|
-
break;
|
|
19584
|
-
}
|
|
19585
|
-
case 2: {
|
|
19586
|
-
message.path = reader.string();
|
|
19587
|
-
break;
|
|
19588
|
-
}
|
|
19589
|
-
case 3: {
|
|
19590
|
-
message.src = $root.common.StringValue.decode(reader, reader.uint32());
|
|
19591
|
-
break;
|
|
19592
|
-
}
|
|
19593
|
-
case 4: {
|
|
19594
|
-
message.newVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
19595
|
-
break;
|
|
19596
|
-
}
|
|
19597
|
-
case 5: {
|
|
19598
|
-
message.name = $root.common.StringValue.decode(reader, reader.uint32());
|
|
19599
|
-
break;
|
|
19600
|
-
}
|
|
19601
|
-
case 6: {
|
|
19602
|
-
message.oldName = $root.common.StringValue.decode(reader, reader.uint32());
|
|
19603
|
-
break;
|
|
19604
|
-
}
|
|
19605
|
-
case 7: {
|
|
19606
|
-
message.newName = $root.common.StringValue.decode(reader, reader.uint32());
|
|
19607
|
-
break;
|
|
19608
|
-
}
|
|
19609
|
-
case 8: {
|
|
19610
|
-
message.entry = $root.fs.ListingEntryMsg.decode(reader, reader.uint32());
|
|
19611
|
-
break;
|
|
19612
|
-
}
|
|
19613
|
-
case 9: {
|
|
19614
|
-
message.moveLabel = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
19615
|
-
break;
|
|
19616
|
-
}
|
|
19617
|
-
case 10: {
|
|
19618
|
-
message.removedArchVer = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
19954
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.SymLinkTargetReplyBody();
|
|
19955
|
+
while (reader.pos < end) {
|
|
19956
|
+
var tag = reader.uint32();
|
|
19957
|
+
if (tag === error)
|
|
19958
|
+
break;
|
|
19959
|
+
switch (tag >>> 3) {
|
|
19960
|
+
case 1: {
|
|
19961
|
+
message.fs = $root.fs.FS.decode(reader, reader.uint32());
|
|
19619
19962
|
break;
|
|
19620
19963
|
}
|
|
19621
|
-
case
|
|
19622
|
-
message.
|
|
19964
|
+
case 2: {
|
|
19965
|
+
message.file = $root.file.File.decode(reader, reader.uint32());
|
|
19623
19966
|
break;
|
|
19624
19967
|
}
|
|
19625
19968
|
default:
|
|
@@ -19631,228 +19974,121 @@ $root.fs = (function() {
|
|
|
19631
19974
|
};
|
|
19632
19975
|
|
|
19633
19976
|
/**
|
|
19634
|
-
* Decodes a
|
|
19977
|
+
* Decodes a SymLinkTargetReplyBody message from the specified reader or buffer, length delimited.
|
|
19635
19978
|
* @function decodeDelimited
|
|
19636
|
-
* @memberof fs.
|
|
19979
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19637
19980
|
* @static
|
|
19638
19981
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19639
|
-
* @returns {fs.
|
|
19982
|
+
* @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
|
|
19640
19983
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19641
19984
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19642
19985
|
*/
|
|
19643
|
-
|
|
19986
|
+
SymLinkTargetReplyBody.decodeDelimited = function decodeDelimited(reader) {
|
|
19644
19987
|
if (!(reader instanceof $Reader))
|
|
19645
19988
|
reader = new $Reader(reader);
|
|
19646
19989
|
return this.decode(reader, reader.uint32());
|
|
19647
19990
|
};
|
|
19648
19991
|
|
|
19649
19992
|
/**
|
|
19650
|
-
* Verifies a
|
|
19993
|
+
* Verifies a SymLinkTargetReplyBody message.
|
|
19651
19994
|
* @function verify
|
|
19652
|
-
* @memberof fs.
|
|
19995
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19653
19996
|
* @static
|
|
19654
19997
|
* @param {Object.<string,*>} message Plain object to verify
|
|
19655
19998
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19656
19999
|
*/
|
|
19657
|
-
|
|
20000
|
+
SymLinkTargetReplyBody.verify = function verify(message) {
|
|
19658
20001
|
if (typeof message !== "object" || message === null)
|
|
19659
20002
|
return "object expected";
|
|
19660
|
-
if (message.
|
|
19661
|
-
|
|
19662
|
-
return "type: string expected";
|
|
19663
|
-
if (message.path != null && message.hasOwnProperty("path"))
|
|
19664
|
-
if (!$util.isString(message.path))
|
|
19665
|
-
return "path: string expected";
|
|
19666
|
-
if (message.src != null && message.hasOwnProperty("src")) {
|
|
19667
|
-
var error = $root.common.StringValue.verify(message.src);
|
|
19668
|
-
if (error)
|
|
19669
|
-
return "src." + error;
|
|
19670
|
-
}
|
|
19671
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion")) {
|
|
19672
|
-
var error = $root.common.UInt64Value.verify(message.newVersion);
|
|
19673
|
-
if (error)
|
|
19674
|
-
return "newVersion." + error;
|
|
19675
|
-
}
|
|
19676
|
-
if (message.name != null && message.hasOwnProperty("name")) {
|
|
19677
|
-
var error = $root.common.StringValue.verify(message.name);
|
|
19678
|
-
if (error)
|
|
19679
|
-
return "name." + error;
|
|
19680
|
-
}
|
|
19681
|
-
if (message.oldName != null && message.hasOwnProperty("oldName")) {
|
|
19682
|
-
var error = $root.common.StringValue.verify(message.oldName);
|
|
19683
|
-
if (error)
|
|
19684
|
-
return "oldName." + error;
|
|
19685
|
-
}
|
|
19686
|
-
if (message.newName != null && message.hasOwnProperty("newName")) {
|
|
19687
|
-
var error = $root.common.StringValue.verify(message.newName);
|
|
19688
|
-
if (error)
|
|
19689
|
-
return "newName." + error;
|
|
19690
|
-
}
|
|
19691
|
-
if (message.entry != null && message.hasOwnProperty("entry")) {
|
|
19692
|
-
var error = $root.fs.ListingEntryMsg.verify(message.entry);
|
|
19693
|
-
if (error)
|
|
19694
|
-
return "entry." + error;
|
|
19695
|
-
}
|
|
19696
|
-
if (message.moveLabel != null && message.hasOwnProperty("moveLabel")) {
|
|
19697
|
-
var error = $root.common.UInt64Value.verify(message.moveLabel);
|
|
19698
|
-
if (error)
|
|
19699
|
-
return "moveLabel." + error;
|
|
19700
|
-
}
|
|
19701
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer")) {
|
|
19702
|
-
var error = $root.common.UInt64Value.verify(message.removedArchVer);
|
|
20003
|
+
if (message.fs != null && message.hasOwnProperty("fs")) {
|
|
20004
|
+
var error = $root.fs.FS.verify(message.fs);
|
|
19703
20005
|
if (error)
|
|
19704
|
-
return "
|
|
20006
|
+
return "fs." + error;
|
|
19705
20007
|
}
|
|
19706
|
-
if (message.
|
|
19707
|
-
var error = $root.
|
|
20008
|
+
if (message.file != null && message.hasOwnProperty("file")) {
|
|
20009
|
+
var error = $root.file.File.verify(message.file);
|
|
19708
20010
|
if (error)
|
|
19709
|
-
return "
|
|
20011
|
+
return "file." + error;
|
|
19710
20012
|
}
|
|
19711
20013
|
return null;
|
|
19712
20014
|
};
|
|
19713
20015
|
|
|
19714
20016
|
/**
|
|
19715
|
-
* Creates a
|
|
20017
|
+
* Creates a SymLinkTargetReplyBody message from a plain object. Also converts values to their respective internal types.
|
|
19716
20018
|
* @function fromObject
|
|
19717
|
-
* @memberof fs.
|
|
20019
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19718
20020
|
* @static
|
|
19719
20021
|
* @param {Object.<string,*>} object Plain object
|
|
19720
|
-
* @returns {fs.
|
|
20022
|
+
* @returns {fs.SymLinkTargetReplyBody} SymLinkTargetReplyBody
|
|
19721
20023
|
*/
|
|
19722
|
-
|
|
19723
|
-
if (object instanceof $root.fs.
|
|
20024
|
+
SymLinkTargetReplyBody.fromObject = function fromObject(object) {
|
|
20025
|
+
if (object instanceof $root.fs.SymLinkTargetReplyBody)
|
|
19724
20026
|
return object;
|
|
19725
|
-
var message = new $root.fs.
|
|
19726
|
-
if (object.
|
|
19727
|
-
|
|
19728
|
-
|
|
19729
|
-
message.
|
|
19730
|
-
if (object.src != null) {
|
|
19731
|
-
if (typeof object.src !== "object")
|
|
19732
|
-
throw TypeError(".fs.FSEventMsg.src: object expected");
|
|
19733
|
-
message.src = $root.common.StringValue.fromObject(object.src);
|
|
19734
|
-
}
|
|
19735
|
-
if (object.newVersion != null) {
|
|
19736
|
-
if (typeof object.newVersion !== "object")
|
|
19737
|
-
throw TypeError(".fs.FSEventMsg.newVersion: object expected");
|
|
19738
|
-
message.newVersion = $root.common.UInt64Value.fromObject(object.newVersion);
|
|
19739
|
-
}
|
|
19740
|
-
if (object.name != null) {
|
|
19741
|
-
if (typeof object.name !== "object")
|
|
19742
|
-
throw TypeError(".fs.FSEventMsg.name: object expected");
|
|
19743
|
-
message.name = $root.common.StringValue.fromObject(object.name);
|
|
19744
|
-
}
|
|
19745
|
-
if (object.oldName != null) {
|
|
19746
|
-
if (typeof object.oldName !== "object")
|
|
19747
|
-
throw TypeError(".fs.FSEventMsg.oldName: object expected");
|
|
19748
|
-
message.oldName = $root.common.StringValue.fromObject(object.oldName);
|
|
19749
|
-
}
|
|
19750
|
-
if (object.newName != null) {
|
|
19751
|
-
if (typeof object.newName !== "object")
|
|
19752
|
-
throw TypeError(".fs.FSEventMsg.newName: object expected");
|
|
19753
|
-
message.newName = $root.common.StringValue.fromObject(object.newName);
|
|
19754
|
-
}
|
|
19755
|
-
if (object.entry != null) {
|
|
19756
|
-
if (typeof object.entry !== "object")
|
|
19757
|
-
throw TypeError(".fs.FSEventMsg.entry: object expected");
|
|
19758
|
-
message.entry = $root.fs.ListingEntryMsg.fromObject(object.entry);
|
|
19759
|
-
}
|
|
19760
|
-
if (object.moveLabel != null) {
|
|
19761
|
-
if (typeof object.moveLabel !== "object")
|
|
19762
|
-
throw TypeError(".fs.FSEventMsg.moveLabel: object expected");
|
|
19763
|
-
message.moveLabel = $root.common.UInt64Value.fromObject(object.moveLabel);
|
|
19764
|
-
}
|
|
19765
|
-
if (object.removedArchVer != null) {
|
|
19766
|
-
if (typeof object.removedArchVer !== "object")
|
|
19767
|
-
throw TypeError(".fs.FSEventMsg.removedArchVer: object expected");
|
|
19768
|
-
message.removedArchVer = $root.common.UInt64Value.fromObject(object.removedArchVer);
|
|
20027
|
+
var message = new $root.fs.SymLinkTargetReplyBody();
|
|
20028
|
+
if (object.fs != null) {
|
|
20029
|
+
if (typeof object.fs !== "object")
|
|
20030
|
+
throw TypeError(".fs.SymLinkTargetReplyBody.fs: object expected");
|
|
20031
|
+
message.fs = $root.fs.FS.fromObject(object.fs);
|
|
19769
20032
|
}
|
|
19770
|
-
if (object.
|
|
19771
|
-
if (typeof object.
|
|
19772
|
-
throw TypeError(".fs.
|
|
19773
|
-
message.
|
|
20033
|
+
if (object.file != null) {
|
|
20034
|
+
if (typeof object.file !== "object")
|
|
20035
|
+
throw TypeError(".fs.SymLinkTargetReplyBody.file: object expected");
|
|
20036
|
+
message.file = $root.file.File.fromObject(object.file);
|
|
19774
20037
|
}
|
|
19775
20038
|
return message;
|
|
19776
20039
|
};
|
|
19777
20040
|
|
|
19778
20041
|
/**
|
|
19779
|
-
* Creates a plain object from a
|
|
20042
|
+
* Creates a plain object from a SymLinkTargetReplyBody message. Also converts values to other types if specified.
|
|
19780
20043
|
* @function toObject
|
|
19781
|
-
* @memberof fs.
|
|
20044
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19782
20045
|
* @static
|
|
19783
|
-
* @param {fs.
|
|
20046
|
+
* @param {fs.SymLinkTargetReplyBody} message SymLinkTargetReplyBody
|
|
19784
20047
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19785
20048
|
* @returns {Object.<string,*>} Plain object
|
|
19786
20049
|
*/
|
|
19787
|
-
|
|
20050
|
+
SymLinkTargetReplyBody.toObject = function toObject(message, options) {
|
|
19788
20051
|
if (!options)
|
|
19789
20052
|
options = {};
|
|
19790
20053
|
var object = {};
|
|
19791
20054
|
if (options.defaults) {
|
|
19792
|
-
object.
|
|
19793
|
-
object.
|
|
19794
|
-
object.src = null;
|
|
19795
|
-
object.newVersion = null;
|
|
19796
|
-
object.name = null;
|
|
19797
|
-
object.oldName = null;
|
|
19798
|
-
object.newName = null;
|
|
19799
|
-
object.entry = null;
|
|
19800
|
-
object.moveLabel = null;
|
|
19801
|
-
object.removedArchVer = null;
|
|
19802
|
-
object.archivedVersion = null;
|
|
20055
|
+
object.fs = null;
|
|
20056
|
+
object.file = null;
|
|
19803
20057
|
}
|
|
19804
|
-
if (message.
|
|
19805
|
-
object.
|
|
19806
|
-
if (message.
|
|
19807
|
-
object.
|
|
19808
|
-
if (message.src != null && message.hasOwnProperty("src"))
|
|
19809
|
-
object.src = $root.common.StringValue.toObject(message.src, options);
|
|
19810
|
-
if (message.newVersion != null && message.hasOwnProperty("newVersion"))
|
|
19811
|
-
object.newVersion = $root.common.UInt64Value.toObject(message.newVersion, options);
|
|
19812
|
-
if (message.name != null && message.hasOwnProperty("name"))
|
|
19813
|
-
object.name = $root.common.StringValue.toObject(message.name, options);
|
|
19814
|
-
if (message.oldName != null && message.hasOwnProperty("oldName"))
|
|
19815
|
-
object.oldName = $root.common.StringValue.toObject(message.oldName, options);
|
|
19816
|
-
if (message.newName != null && message.hasOwnProperty("newName"))
|
|
19817
|
-
object.newName = $root.common.StringValue.toObject(message.newName, options);
|
|
19818
|
-
if (message.entry != null && message.hasOwnProperty("entry"))
|
|
19819
|
-
object.entry = $root.fs.ListingEntryMsg.toObject(message.entry, options);
|
|
19820
|
-
if (message.moveLabel != null && message.hasOwnProperty("moveLabel"))
|
|
19821
|
-
object.moveLabel = $root.common.UInt64Value.toObject(message.moveLabel, options);
|
|
19822
|
-
if (message.removedArchVer != null && message.hasOwnProperty("removedArchVer"))
|
|
19823
|
-
object.removedArchVer = $root.common.UInt64Value.toObject(message.removedArchVer, options);
|
|
19824
|
-
if (message.archivedVersion != null && message.hasOwnProperty("archivedVersion"))
|
|
19825
|
-
object.archivedVersion = $root.common.UInt64Value.toObject(message.archivedVersion, options);
|
|
20058
|
+
if (message.fs != null && message.hasOwnProperty("fs"))
|
|
20059
|
+
object.fs = $root.fs.FS.toObject(message.fs, options);
|
|
20060
|
+
if (message.file != null && message.hasOwnProperty("file"))
|
|
20061
|
+
object.file = $root.file.File.toObject(message.file, options);
|
|
19826
20062
|
return object;
|
|
19827
20063
|
};
|
|
19828
20064
|
|
|
19829
20065
|
/**
|
|
19830
|
-
* Converts this
|
|
20066
|
+
* Converts this SymLinkTargetReplyBody to JSON.
|
|
19831
20067
|
* @function toJSON
|
|
19832
|
-
* @memberof fs.
|
|
20068
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19833
20069
|
* @instance
|
|
19834
20070
|
* @returns {Object.<string,*>} JSON object
|
|
19835
20071
|
*/
|
|
19836
|
-
|
|
20072
|
+
SymLinkTargetReplyBody.prototype.toJSON = function toJSON() {
|
|
19837
20073
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19838
20074
|
};
|
|
19839
20075
|
|
|
19840
20076
|
/**
|
|
19841
|
-
* Gets the default type url for
|
|
20077
|
+
* Gets the default type url for SymLinkTargetReplyBody
|
|
19842
20078
|
* @function getTypeUrl
|
|
19843
|
-
* @memberof fs.
|
|
20079
|
+
* @memberof fs.SymLinkTargetReplyBody
|
|
19844
20080
|
* @static
|
|
19845
20081
|
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
19846
20082
|
* @returns {string} The default type url
|
|
19847
20083
|
*/
|
|
19848
|
-
|
|
20084
|
+
SymLinkTargetReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
19849
20085
|
if (typeUrlPrefix === undefined) {
|
|
19850
20086
|
typeUrlPrefix = "type.googleapis.com";
|
|
19851
20087
|
}
|
|
19852
|
-
return typeUrlPrefix + "/fs.
|
|
20088
|
+
return typeUrlPrefix + "/fs.SymLinkTargetReplyBody";
|
|
19853
20089
|
};
|
|
19854
20090
|
|
|
19855
|
-
return
|
|
20091
|
+
return SymLinkTargetReplyBody;
|
|
19856
20092
|
})();
|
|
19857
20093
|
|
|
19858
20094
|
fs.WatchTreeRequestBody = (function() {
|
|
@@ -32656,216 +32892,6 @@ $root.fs = (function() {
|
|
|
32656
32892
|
return FSSyncUploadRequestBody;
|
|
32657
32893
|
})();
|
|
32658
32894
|
|
|
32659
|
-
fs.FSSyncUploadReplyBody = (function() {
|
|
32660
|
-
|
|
32661
|
-
/**
|
|
32662
|
-
* Properties of a FSSyncUploadReplyBody.
|
|
32663
|
-
* @memberof fs
|
|
32664
|
-
* @interface IFSSyncUploadReplyBody
|
|
32665
|
-
* @property {common.IUInt64Value|null} [uploadedVersion] FSSyncUploadReplyBody uploadedVersion
|
|
32666
|
-
*/
|
|
32667
|
-
|
|
32668
|
-
/**
|
|
32669
|
-
* Constructs a new FSSyncUploadReplyBody.
|
|
32670
|
-
* @memberof fs
|
|
32671
|
-
* @classdesc Represents a FSSyncUploadReplyBody.
|
|
32672
|
-
* @implements IFSSyncUploadReplyBody
|
|
32673
|
-
* @constructor
|
|
32674
|
-
* @param {fs.IFSSyncUploadReplyBody=} [properties] Properties to set
|
|
32675
|
-
*/
|
|
32676
|
-
function FSSyncUploadReplyBody(properties) {
|
|
32677
|
-
if (properties)
|
|
32678
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32679
|
-
if (properties[keys[i]] != null)
|
|
32680
|
-
this[keys[i]] = properties[keys[i]];
|
|
32681
|
-
}
|
|
32682
|
-
|
|
32683
|
-
/**
|
|
32684
|
-
* FSSyncUploadReplyBody uploadedVersion.
|
|
32685
|
-
* @member {common.IUInt64Value|null|undefined} uploadedVersion
|
|
32686
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32687
|
-
* @instance
|
|
32688
|
-
*/
|
|
32689
|
-
FSSyncUploadReplyBody.prototype.uploadedVersion = null;
|
|
32690
|
-
|
|
32691
|
-
/**
|
|
32692
|
-
* Creates a new FSSyncUploadReplyBody instance using the specified properties.
|
|
32693
|
-
* @function create
|
|
32694
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32695
|
-
* @static
|
|
32696
|
-
* @param {fs.IFSSyncUploadReplyBody=} [properties] Properties to set
|
|
32697
|
-
* @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody instance
|
|
32698
|
-
*/
|
|
32699
|
-
FSSyncUploadReplyBody.create = function create(properties) {
|
|
32700
|
-
return new FSSyncUploadReplyBody(properties);
|
|
32701
|
-
};
|
|
32702
|
-
|
|
32703
|
-
/**
|
|
32704
|
-
* Encodes the specified FSSyncUploadReplyBody message. Does not implicitly {@link fs.FSSyncUploadReplyBody.verify|verify} messages.
|
|
32705
|
-
* @function encode
|
|
32706
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32707
|
-
* @static
|
|
32708
|
-
* @param {fs.IFSSyncUploadReplyBody} message FSSyncUploadReplyBody message or plain object to encode
|
|
32709
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32710
|
-
* @returns {$protobuf.Writer} Writer
|
|
32711
|
-
*/
|
|
32712
|
-
FSSyncUploadReplyBody.encode = function encode(message, writer) {
|
|
32713
|
-
if (!writer)
|
|
32714
|
-
writer = $Writer.create();
|
|
32715
|
-
if (message.uploadedVersion != null && Object.hasOwnProperty.call(message, "uploadedVersion"))
|
|
32716
|
-
$root.common.UInt64Value.encode(message.uploadedVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
32717
|
-
return writer;
|
|
32718
|
-
};
|
|
32719
|
-
|
|
32720
|
-
/**
|
|
32721
|
-
* Encodes the specified FSSyncUploadReplyBody message, length delimited. Does not implicitly {@link fs.FSSyncUploadReplyBody.verify|verify} messages.
|
|
32722
|
-
* @function encodeDelimited
|
|
32723
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32724
|
-
* @static
|
|
32725
|
-
* @param {fs.IFSSyncUploadReplyBody} message FSSyncUploadReplyBody message or plain object to encode
|
|
32726
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32727
|
-
* @returns {$protobuf.Writer} Writer
|
|
32728
|
-
*/
|
|
32729
|
-
FSSyncUploadReplyBody.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32730
|
-
return this.encode(message, writer).ldelim();
|
|
32731
|
-
};
|
|
32732
|
-
|
|
32733
|
-
/**
|
|
32734
|
-
* Decodes a FSSyncUploadReplyBody message from the specified reader or buffer.
|
|
32735
|
-
* @function decode
|
|
32736
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32737
|
-
* @static
|
|
32738
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32739
|
-
* @param {number} [length] Message length if known beforehand
|
|
32740
|
-
* @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
|
|
32741
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32742
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32743
|
-
*/
|
|
32744
|
-
FSSyncUploadReplyBody.decode = function decode(reader, length, error) {
|
|
32745
|
-
if (!(reader instanceof $Reader))
|
|
32746
|
-
reader = $Reader.create(reader);
|
|
32747
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.fs.FSSyncUploadReplyBody();
|
|
32748
|
-
while (reader.pos < end) {
|
|
32749
|
-
var tag = reader.uint32();
|
|
32750
|
-
if (tag === error)
|
|
32751
|
-
break;
|
|
32752
|
-
switch (tag >>> 3) {
|
|
32753
|
-
case 1: {
|
|
32754
|
-
message.uploadedVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
|
|
32755
|
-
break;
|
|
32756
|
-
}
|
|
32757
|
-
default:
|
|
32758
|
-
reader.skipType(tag & 7);
|
|
32759
|
-
break;
|
|
32760
|
-
}
|
|
32761
|
-
}
|
|
32762
|
-
return message;
|
|
32763
|
-
};
|
|
32764
|
-
|
|
32765
|
-
/**
|
|
32766
|
-
* Decodes a FSSyncUploadReplyBody message from the specified reader or buffer, length delimited.
|
|
32767
|
-
* @function decodeDelimited
|
|
32768
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32769
|
-
* @static
|
|
32770
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32771
|
-
* @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
|
|
32772
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32773
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32774
|
-
*/
|
|
32775
|
-
FSSyncUploadReplyBody.decodeDelimited = function decodeDelimited(reader) {
|
|
32776
|
-
if (!(reader instanceof $Reader))
|
|
32777
|
-
reader = new $Reader(reader);
|
|
32778
|
-
return this.decode(reader, reader.uint32());
|
|
32779
|
-
};
|
|
32780
|
-
|
|
32781
|
-
/**
|
|
32782
|
-
* Verifies a FSSyncUploadReplyBody message.
|
|
32783
|
-
* @function verify
|
|
32784
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32785
|
-
* @static
|
|
32786
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
32787
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32788
|
-
*/
|
|
32789
|
-
FSSyncUploadReplyBody.verify = function verify(message) {
|
|
32790
|
-
if (typeof message !== "object" || message === null)
|
|
32791
|
-
return "object expected";
|
|
32792
|
-
if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion")) {
|
|
32793
|
-
var error = $root.common.UInt64Value.verify(message.uploadedVersion);
|
|
32794
|
-
if (error)
|
|
32795
|
-
return "uploadedVersion." + error;
|
|
32796
|
-
}
|
|
32797
|
-
return null;
|
|
32798
|
-
};
|
|
32799
|
-
|
|
32800
|
-
/**
|
|
32801
|
-
* Creates a FSSyncUploadReplyBody message from a plain object. Also converts values to their respective internal types.
|
|
32802
|
-
* @function fromObject
|
|
32803
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32804
|
-
* @static
|
|
32805
|
-
* @param {Object.<string,*>} object Plain object
|
|
32806
|
-
* @returns {fs.FSSyncUploadReplyBody} FSSyncUploadReplyBody
|
|
32807
|
-
*/
|
|
32808
|
-
FSSyncUploadReplyBody.fromObject = function fromObject(object) {
|
|
32809
|
-
if (object instanceof $root.fs.FSSyncUploadReplyBody)
|
|
32810
|
-
return object;
|
|
32811
|
-
var message = new $root.fs.FSSyncUploadReplyBody();
|
|
32812
|
-
if (object.uploadedVersion != null) {
|
|
32813
|
-
if (typeof object.uploadedVersion !== "object")
|
|
32814
|
-
throw TypeError(".fs.FSSyncUploadReplyBody.uploadedVersion: object expected");
|
|
32815
|
-
message.uploadedVersion = $root.common.UInt64Value.fromObject(object.uploadedVersion);
|
|
32816
|
-
}
|
|
32817
|
-
return message;
|
|
32818
|
-
};
|
|
32819
|
-
|
|
32820
|
-
/**
|
|
32821
|
-
* Creates a plain object from a FSSyncUploadReplyBody message. Also converts values to other types if specified.
|
|
32822
|
-
* @function toObject
|
|
32823
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32824
|
-
* @static
|
|
32825
|
-
* @param {fs.FSSyncUploadReplyBody} message FSSyncUploadReplyBody
|
|
32826
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32827
|
-
* @returns {Object.<string,*>} Plain object
|
|
32828
|
-
*/
|
|
32829
|
-
FSSyncUploadReplyBody.toObject = function toObject(message, options) {
|
|
32830
|
-
if (!options)
|
|
32831
|
-
options = {};
|
|
32832
|
-
var object = {};
|
|
32833
|
-
if (options.defaults)
|
|
32834
|
-
object.uploadedVersion = null;
|
|
32835
|
-
if (message.uploadedVersion != null && message.hasOwnProperty("uploadedVersion"))
|
|
32836
|
-
object.uploadedVersion = $root.common.UInt64Value.toObject(message.uploadedVersion, options);
|
|
32837
|
-
return object;
|
|
32838
|
-
};
|
|
32839
|
-
|
|
32840
|
-
/**
|
|
32841
|
-
* Converts this FSSyncUploadReplyBody to JSON.
|
|
32842
|
-
* @function toJSON
|
|
32843
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32844
|
-
* @instance
|
|
32845
|
-
* @returns {Object.<string,*>} JSON object
|
|
32846
|
-
*/
|
|
32847
|
-
FSSyncUploadReplyBody.prototype.toJSON = function toJSON() {
|
|
32848
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32849
|
-
};
|
|
32850
|
-
|
|
32851
|
-
/**
|
|
32852
|
-
* Gets the default type url for FSSyncUploadReplyBody
|
|
32853
|
-
* @function getTypeUrl
|
|
32854
|
-
* @memberof fs.FSSyncUploadReplyBody
|
|
32855
|
-
* @static
|
|
32856
|
-
* @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
32857
|
-
* @returns {string} The default type url
|
|
32858
|
-
*/
|
|
32859
|
-
FSSyncUploadReplyBody.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
32860
|
-
if (typeUrlPrefix === undefined) {
|
|
32861
|
-
typeUrlPrefix = "type.googleapis.com";
|
|
32862
|
-
}
|
|
32863
|
-
return typeUrlPrefix + "/fs.FSSyncUploadReplyBody";
|
|
32864
|
-
};
|
|
32865
|
-
|
|
32866
|
-
return FSSyncUploadReplyBody;
|
|
32867
|
-
})();
|
|
32868
|
-
|
|
32869
32895
|
fs.AdoptRemoteFolderItemRequestBody = (function() {
|
|
32870
32896
|
|
|
32871
32897
|
/**
|