core-3nweb-client-lib 0.43.5 → 0.43.7

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.
@@ -355,6 +355,7 @@ $root.file = (function() {
355
355
  * @property {file.ISyncVersionsBranchMsg|null} [synced] SyncStatusMsg synced
356
356
  * @property {file.ISyncVersionsBranchMsg|null} [remote] SyncStatusMsg remote
357
357
  * @property {common.IBooleanValue|null} [existsInSyncedParent] SyncStatusMsg existsInSyncedParent
358
+ * @property {file.IUploadingStateMsg|null} [uploading] SyncStatusMsg uploading
358
359
  */
359
360
 
360
361
  /**
@@ -412,6 +413,14 @@ $root.file = (function() {
412
413
  */
413
414
  SyncStatusMsg.prototype.existsInSyncedParent = null;
414
415
 
416
+ /**
417
+ * SyncStatusMsg uploading.
418
+ * @member {file.IUploadingStateMsg|null|undefined} uploading
419
+ * @memberof file.SyncStatusMsg
420
+ * @instance
421
+ */
422
+ SyncStatusMsg.prototype.uploading = null;
423
+
415
424
  /**
416
425
  * Creates a new SyncStatusMsg instance using the specified properties.
417
426
  * @function create
@@ -446,6 +455,8 @@ $root.file = (function() {
446
455
  $root.file.SyncVersionsBranchMsg.encode(message.remote, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
447
456
  if (message.existsInSyncedParent != null && Object.hasOwnProperty.call(message, "existsInSyncedParent"))
448
457
  $root.common.BooleanValue.encode(message.existsInSyncedParent, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
458
+ if (message.uploading != null && Object.hasOwnProperty.call(message, "uploading"))
459
+ $root.file.UploadingStateMsg.encode(message.uploading, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
449
460
  return writer;
450
461
  };
451
462
 
@@ -502,6 +513,10 @@ $root.file = (function() {
502
513
  message.existsInSyncedParent = $root.common.BooleanValue.decode(reader, reader.uint32());
503
514
  break;
504
515
  }
516
+ case 6: {
517
+ message.uploading = $root.file.UploadingStateMsg.decode(reader, reader.uint32());
518
+ break;
519
+ }
505
520
  default:
506
521
  reader.skipType(tag & 7);
507
522
  break;
@@ -560,6 +575,11 @@ $root.file = (function() {
560
575
  if (error)
561
576
  return "existsInSyncedParent." + error;
562
577
  }
578
+ if (message.uploading != null && message.hasOwnProperty("uploading")) {
579
+ var error = $root.file.UploadingStateMsg.verify(message.uploading);
580
+ if (error)
581
+ return "uploading." + error;
582
+ }
563
583
  return null;
564
584
  };
565
585
 
@@ -597,6 +617,11 @@ $root.file = (function() {
597
617
  throw TypeError(".file.SyncStatusMsg.existsInSyncedParent: object expected");
598
618
  message.existsInSyncedParent = $root.common.BooleanValue.fromObject(object.existsInSyncedParent);
599
619
  }
620
+ if (object.uploading != null) {
621
+ if (typeof object.uploading !== "object")
622
+ throw TypeError(".file.SyncStatusMsg.uploading: object expected");
623
+ message.uploading = $root.file.UploadingStateMsg.fromObject(object.uploading);
624
+ }
600
625
  return message;
601
626
  };
602
627
 
@@ -619,6 +644,7 @@ $root.file = (function() {
619
644
  object.synced = null;
620
645
  object.remote = null;
621
646
  object.existsInSyncedParent = null;
647
+ object.uploading = null;
622
648
  }
623
649
  if (message.state != null && message.hasOwnProperty("state"))
624
650
  object.state = message.state;
@@ -630,6 +656,8 @@ $root.file = (function() {
630
656
  object.remote = $root.file.SyncVersionsBranchMsg.toObject(message.remote, options);
631
657
  if (message.existsInSyncedParent != null && message.hasOwnProperty("existsInSyncedParent"))
632
658
  object.existsInSyncedParent = $root.common.BooleanValue.toObject(message.existsInSyncedParent, options);
659
+ if (message.uploading != null && message.hasOwnProperty("uploading"))
660
+ object.uploading = $root.file.UploadingStateMsg.toObject(message.uploading, options);
633
661
  return object;
634
662
  };
635
663
 
@@ -959,6 +987,296 @@ $root.file = (function() {
959
987
  return SyncVersionsBranchMsg;
960
988
  })();
961
989
 
990
+ file.UploadingStateMsg = (function() {
991
+
992
+ /**
993
+ * Properties of an UploadingStateMsg.
994
+ * @memberof file
995
+ * @interface IUploadingStateMsg
996
+ * @property {common.IUInt64Value|null} [localVersion] UploadingStateMsg localVersion
997
+ * @property {common.IUInt64Value|null} [remoteVersion] UploadingStateMsg remoteVersion
998
+ * @property {common.IUInt64Value|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
999
+ * @property {boolean|null} [uploadStarted] UploadingStateMsg uploadStarted
1000
+ */
1001
+
1002
+ /**
1003
+ * Constructs a new UploadingStateMsg.
1004
+ * @memberof file
1005
+ * @classdesc Represents an UploadingStateMsg.
1006
+ * @implements IUploadingStateMsg
1007
+ * @constructor
1008
+ * @param {file.IUploadingStateMsg=} [properties] Properties to set
1009
+ */
1010
+ function UploadingStateMsg(properties) {
1011
+ if (properties)
1012
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1013
+ if (properties[keys[i]] != null)
1014
+ this[keys[i]] = properties[keys[i]];
1015
+ }
1016
+
1017
+ /**
1018
+ * UploadingStateMsg localVersion.
1019
+ * @member {common.IUInt64Value|null|undefined} localVersion
1020
+ * @memberof file.UploadingStateMsg
1021
+ * @instance
1022
+ */
1023
+ UploadingStateMsg.prototype.localVersion = null;
1024
+
1025
+ /**
1026
+ * UploadingStateMsg remoteVersion.
1027
+ * @member {common.IUInt64Value|null|undefined} remoteVersion
1028
+ * @memberof file.UploadingStateMsg
1029
+ * @instance
1030
+ */
1031
+ UploadingStateMsg.prototype.remoteVersion = null;
1032
+
1033
+ /**
1034
+ * UploadingStateMsg bytesLeftToUpload.
1035
+ * @member {common.IUInt64Value|null|undefined} bytesLeftToUpload
1036
+ * @memberof file.UploadingStateMsg
1037
+ * @instance
1038
+ */
1039
+ UploadingStateMsg.prototype.bytesLeftToUpload = null;
1040
+
1041
+ /**
1042
+ * UploadingStateMsg uploadStarted.
1043
+ * @member {boolean} uploadStarted
1044
+ * @memberof file.UploadingStateMsg
1045
+ * @instance
1046
+ */
1047
+ UploadingStateMsg.prototype.uploadStarted = false;
1048
+
1049
+ /**
1050
+ * Creates a new UploadingStateMsg instance using the specified properties.
1051
+ * @function create
1052
+ * @memberof file.UploadingStateMsg
1053
+ * @static
1054
+ * @param {file.IUploadingStateMsg=} [properties] Properties to set
1055
+ * @returns {file.UploadingStateMsg} UploadingStateMsg instance
1056
+ */
1057
+ UploadingStateMsg.create = function create(properties) {
1058
+ return new UploadingStateMsg(properties);
1059
+ };
1060
+
1061
+ /**
1062
+ * Encodes the specified UploadingStateMsg message. Does not implicitly {@link file.UploadingStateMsg.verify|verify} messages.
1063
+ * @function encode
1064
+ * @memberof file.UploadingStateMsg
1065
+ * @static
1066
+ * @param {file.IUploadingStateMsg} message UploadingStateMsg message or plain object to encode
1067
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1068
+ * @returns {$protobuf.Writer} Writer
1069
+ */
1070
+ UploadingStateMsg.encode = function encode(message, writer) {
1071
+ if (!writer)
1072
+ writer = $Writer.create();
1073
+ if (message.localVersion != null && Object.hasOwnProperty.call(message, "localVersion"))
1074
+ $root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
1075
+ if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
1076
+ $root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
1077
+ if (message.bytesLeftToUpload != null && Object.hasOwnProperty.call(message, "bytesLeftToUpload"))
1078
+ $root.common.UInt64Value.encode(message.bytesLeftToUpload, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
1079
+ if (message.uploadStarted != null && Object.hasOwnProperty.call(message, "uploadStarted"))
1080
+ writer.uint32(/* id 4, wireType 0 =*/32).bool(message.uploadStarted);
1081
+ return writer;
1082
+ };
1083
+
1084
+ /**
1085
+ * Encodes the specified UploadingStateMsg message, length delimited. Does not implicitly {@link file.UploadingStateMsg.verify|verify} messages.
1086
+ * @function encodeDelimited
1087
+ * @memberof file.UploadingStateMsg
1088
+ * @static
1089
+ * @param {file.IUploadingStateMsg} message UploadingStateMsg message or plain object to encode
1090
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1091
+ * @returns {$protobuf.Writer} Writer
1092
+ */
1093
+ UploadingStateMsg.encodeDelimited = function encodeDelimited(message, writer) {
1094
+ return this.encode(message, writer).ldelim();
1095
+ };
1096
+
1097
+ /**
1098
+ * Decodes an UploadingStateMsg message from the specified reader or buffer.
1099
+ * @function decode
1100
+ * @memberof file.UploadingStateMsg
1101
+ * @static
1102
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1103
+ * @param {number} [length] Message length if known beforehand
1104
+ * @returns {file.UploadingStateMsg} UploadingStateMsg
1105
+ * @throws {Error} If the payload is not a reader or valid buffer
1106
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1107
+ */
1108
+ UploadingStateMsg.decode = function decode(reader, length, error) {
1109
+ if (!(reader instanceof $Reader))
1110
+ reader = $Reader.create(reader);
1111
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.file.UploadingStateMsg();
1112
+ while (reader.pos < end) {
1113
+ var tag = reader.uint32();
1114
+ if (tag === error)
1115
+ break;
1116
+ switch (tag >>> 3) {
1117
+ case 1: {
1118
+ message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
1119
+ break;
1120
+ }
1121
+ case 2: {
1122
+ message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
1123
+ break;
1124
+ }
1125
+ case 3: {
1126
+ message.bytesLeftToUpload = $root.common.UInt64Value.decode(reader, reader.uint32());
1127
+ break;
1128
+ }
1129
+ case 4: {
1130
+ message.uploadStarted = reader.bool();
1131
+ break;
1132
+ }
1133
+ default:
1134
+ reader.skipType(tag & 7);
1135
+ break;
1136
+ }
1137
+ }
1138
+ return message;
1139
+ };
1140
+
1141
+ /**
1142
+ * Decodes an UploadingStateMsg message from the specified reader or buffer, length delimited.
1143
+ * @function decodeDelimited
1144
+ * @memberof file.UploadingStateMsg
1145
+ * @static
1146
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1147
+ * @returns {file.UploadingStateMsg} UploadingStateMsg
1148
+ * @throws {Error} If the payload is not a reader or valid buffer
1149
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1150
+ */
1151
+ UploadingStateMsg.decodeDelimited = function decodeDelimited(reader) {
1152
+ if (!(reader instanceof $Reader))
1153
+ reader = new $Reader(reader);
1154
+ return this.decode(reader, reader.uint32());
1155
+ };
1156
+
1157
+ /**
1158
+ * Verifies an UploadingStateMsg message.
1159
+ * @function verify
1160
+ * @memberof file.UploadingStateMsg
1161
+ * @static
1162
+ * @param {Object.<string,*>} message Plain object to verify
1163
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1164
+ */
1165
+ UploadingStateMsg.verify = function verify(message) {
1166
+ if (typeof message !== "object" || message === null)
1167
+ return "object expected";
1168
+ if (message.localVersion != null && message.hasOwnProperty("localVersion")) {
1169
+ var error = $root.common.UInt64Value.verify(message.localVersion);
1170
+ if (error)
1171
+ return "localVersion." + error;
1172
+ }
1173
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
1174
+ var error = $root.common.UInt64Value.verify(message.remoteVersion);
1175
+ if (error)
1176
+ return "remoteVersion." + error;
1177
+ }
1178
+ if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload")) {
1179
+ var error = $root.common.UInt64Value.verify(message.bytesLeftToUpload);
1180
+ if (error)
1181
+ return "bytesLeftToUpload." + error;
1182
+ }
1183
+ if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
1184
+ if (typeof message.uploadStarted !== "boolean")
1185
+ return "uploadStarted: boolean expected";
1186
+ return null;
1187
+ };
1188
+
1189
+ /**
1190
+ * Creates an UploadingStateMsg message from a plain object. Also converts values to their respective internal types.
1191
+ * @function fromObject
1192
+ * @memberof file.UploadingStateMsg
1193
+ * @static
1194
+ * @param {Object.<string,*>} object Plain object
1195
+ * @returns {file.UploadingStateMsg} UploadingStateMsg
1196
+ */
1197
+ UploadingStateMsg.fromObject = function fromObject(object) {
1198
+ if (object instanceof $root.file.UploadingStateMsg)
1199
+ return object;
1200
+ var message = new $root.file.UploadingStateMsg();
1201
+ if (object.localVersion != null) {
1202
+ if (typeof object.localVersion !== "object")
1203
+ throw TypeError(".file.UploadingStateMsg.localVersion: object expected");
1204
+ message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
1205
+ }
1206
+ if (object.remoteVersion != null) {
1207
+ if (typeof object.remoteVersion !== "object")
1208
+ throw TypeError(".file.UploadingStateMsg.remoteVersion: object expected");
1209
+ message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
1210
+ }
1211
+ if (object.bytesLeftToUpload != null) {
1212
+ if (typeof object.bytesLeftToUpload !== "object")
1213
+ throw TypeError(".file.UploadingStateMsg.bytesLeftToUpload: object expected");
1214
+ message.bytesLeftToUpload = $root.common.UInt64Value.fromObject(object.bytesLeftToUpload);
1215
+ }
1216
+ if (object.uploadStarted != null)
1217
+ message.uploadStarted = Boolean(object.uploadStarted);
1218
+ return message;
1219
+ };
1220
+
1221
+ /**
1222
+ * Creates a plain object from an UploadingStateMsg message. Also converts values to other types if specified.
1223
+ * @function toObject
1224
+ * @memberof file.UploadingStateMsg
1225
+ * @static
1226
+ * @param {file.UploadingStateMsg} message UploadingStateMsg
1227
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1228
+ * @returns {Object.<string,*>} Plain object
1229
+ */
1230
+ UploadingStateMsg.toObject = function toObject(message, options) {
1231
+ if (!options)
1232
+ options = {};
1233
+ var object = {};
1234
+ if (options.defaults) {
1235
+ object.localVersion = null;
1236
+ object.remoteVersion = null;
1237
+ object.bytesLeftToUpload = null;
1238
+ object.uploadStarted = false;
1239
+ }
1240
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
1241
+ object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
1242
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
1243
+ object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
1244
+ if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
1245
+ object.bytesLeftToUpload = $root.common.UInt64Value.toObject(message.bytesLeftToUpload, options);
1246
+ if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
1247
+ object.uploadStarted = message.uploadStarted;
1248
+ return object;
1249
+ };
1250
+
1251
+ /**
1252
+ * Converts this UploadingStateMsg to JSON.
1253
+ * @function toJSON
1254
+ * @memberof file.UploadingStateMsg
1255
+ * @instance
1256
+ * @returns {Object.<string,*>} JSON object
1257
+ */
1258
+ UploadingStateMsg.prototype.toJSON = function toJSON() {
1259
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1260
+ };
1261
+
1262
+ /**
1263
+ * Gets the default type url for UploadingStateMsg
1264
+ * @function getTypeUrl
1265
+ * @memberof file.UploadingStateMsg
1266
+ * @static
1267
+ * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
1268
+ * @returns {string} The default type url
1269
+ */
1270
+ UploadingStateMsg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
1271
+ if (typeUrlPrefix === undefined) {
1272
+ typeUrlPrefix = "type.googleapis.com";
1273
+ }
1274
+ return typeUrlPrefix + "/file.UploadingStateMsg";
1275
+ };
1276
+
1277
+ return UploadingStateMsg;
1278
+ })();
1279
+
962
1280
  file.StatsMsg = (function() {
963
1281
 
964
1282
  /**