core-3nweb-client-lib 0.43.7 → 0.43.8

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.
@@ -8842,9 +8842,9 @@ $root.file = (function() {
8842
8842
  * Properties of an UploadingStateMsg.
8843
8843
  * @memberof file
8844
8844
  * @interface IUploadingStateMsg
8845
- * @property {common.IUInt64Value|null} [localVersion] UploadingStateMsg localVersion
8846
- * @property {common.IUInt64Value|null} [remoteVersion] UploadingStateMsg remoteVersion
8847
- * @property {common.IUInt64Value|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
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 {common.IUInt64Value|null|undefined} localVersion
8868
+ * @member {number|Long} localVersion
8869
8869
  * @memberof file.UploadingStateMsg
8870
8870
  * @instance
8871
8871
  */
8872
- UploadingStateMsg.prototype.localVersion = null;
8872
+ UploadingStateMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
8873
8873
 
8874
8874
  /**
8875
8875
  * UploadingStateMsg remoteVersion.
8876
- * @member {common.IUInt64Value|null|undefined} remoteVersion
8876
+ * @member {number|Long} remoteVersion
8877
8877
  * @memberof file.UploadingStateMsg
8878
8878
  * @instance
8879
8879
  */
8880
- UploadingStateMsg.prototype.remoteVersion = null;
8880
+ UploadingStateMsg.prototype.remoteVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
8881
8881
 
8882
8882
  /**
8883
8883
  * UploadingStateMsg bytesLeftToUpload.
8884
- * @member {common.IUInt64Value|null|undefined} bytesLeftToUpload
8884
+ * @member {number|Long} bytesLeftToUpload
8885
8885
  * @memberof file.UploadingStateMsg
8886
8886
  * @instance
8887
8887
  */
8888
- UploadingStateMsg.prototype.bytesLeftToUpload = null;
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
- $root.common.UInt64Value.encode(message.localVersion, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
8923
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.localVersion);
8924
8924
  if (message.remoteVersion != null && Object.hasOwnProperty.call(message, "remoteVersion"))
8925
- $root.common.UInt64Value.encode(message.remoteVersion, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
8925
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remoteVersion);
8926
8926
  if (message.bytesLeftToUpload != null && Object.hasOwnProperty.call(message, "bytesLeftToUpload"))
8927
- $root.common.UInt64Value.encode(message.bytesLeftToUpload, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
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 = $root.common.UInt64Value.decode(reader, reader.uint32());
8967
+ message.localVersion = reader.uint64();
8968
8968
  break;
8969
8969
  }
8970
8970
  case 2: {
8971
- message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
8971
+ message.remoteVersion = reader.uint64();
8972
8972
  break;
8973
8973
  }
8974
8974
  case 3: {
8975
- message.bytesLeftToUpload = $root.common.UInt64Value.decode(reader, reader.uint32());
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
- var error = $root.common.UInt64Value.verify(message.localVersion);
9019
- if (error)
9020
- return "localVersion." + error;
9021
- }
9022
- if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion")) {
9023
- var error = $root.common.UInt64Value.verify(message.remoteVersion);
9024
- if (error)
9025
- return "remoteVersion." + error;
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 (typeof object.localVersion !== "object")
9052
- throw TypeError(".file.UploadingStateMsg.localVersion: object expected");
9053
- message.localVersion = $root.common.UInt64Value.fromObject(object.localVersion);
9054
- }
9055
- if (object.remoteVersion != null) {
9056
- if (typeof object.remoteVersion !== "object")
9057
- throw TypeError(".file.UploadingStateMsg.remoteVersion: object expected");
9058
- message.remoteVersion = $root.common.UInt64Value.fromObject(object.remoteVersion);
9059
- }
9060
- if (object.bytesLeftToUpload != null) {
9061
- if (typeof object.bytesLeftToUpload !== "object")
9062
- throw TypeError(".file.UploadingStateMsg.bytesLeftToUpload: object expected");
9063
- message.bytesLeftToUpload = $root.common.UInt64Value.fromObject(object.bytesLeftToUpload);
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
- object.localVersion = null;
9085
- object.remoteVersion = null;
9086
- object.bytesLeftToUpload = null;
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
- object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
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
- object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
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
- object.bytesLeftToUpload = $root.common.UInt64Value.toObject(message.bytesLeftToUpload, options);
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;
@@ -993,9 +993,9 @@ $root.file = (function() {
993
993
  * Properties of an UploadingStateMsg.
994
994
  * @memberof file
995
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
996
+ * @property {number|Long|null} [localVersion] UploadingStateMsg localVersion
997
+ * @property {number|Long|null} [remoteVersion] UploadingStateMsg remoteVersion
998
+ * @property {number|Long|null} [bytesLeftToUpload] UploadingStateMsg bytesLeftToUpload
999
999
  * @property {boolean|null} [uploadStarted] UploadingStateMsg uploadStarted
1000
1000
  */
1001
1001
 
@@ -1016,27 +1016,27 @@ $root.file = (function() {
1016
1016
 
1017
1017
  /**
1018
1018
  * UploadingStateMsg localVersion.
1019
- * @member {common.IUInt64Value|null|undefined} localVersion
1019
+ * @member {number|Long} localVersion
1020
1020
  * @memberof file.UploadingStateMsg
1021
1021
  * @instance
1022
1022
  */
1023
- UploadingStateMsg.prototype.localVersion = null;
1023
+ UploadingStateMsg.prototype.localVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1024
1024
 
1025
1025
  /**
1026
1026
  * UploadingStateMsg remoteVersion.
1027
- * @member {common.IUInt64Value|null|undefined} remoteVersion
1027
+ * @member {number|Long} remoteVersion
1028
1028
  * @memberof file.UploadingStateMsg
1029
1029
  * @instance
1030
1030
  */
1031
- UploadingStateMsg.prototype.remoteVersion = null;
1031
+ UploadingStateMsg.prototype.remoteVersion = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1032
1032
 
1033
1033
  /**
1034
1034
  * UploadingStateMsg bytesLeftToUpload.
1035
- * @member {common.IUInt64Value|null|undefined} bytesLeftToUpload
1035
+ * @member {number|Long} bytesLeftToUpload
1036
1036
  * @memberof file.UploadingStateMsg
1037
1037
  * @instance
1038
1038
  */
1039
- UploadingStateMsg.prototype.bytesLeftToUpload = null;
1039
+ UploadingStateMsg.prototype.bytesLeftToUpload = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1040
1040
 
1041
1041
  /**
1042
1042
  * UploadingStateMsg uploadStarted.
@@ -1071,11 +1071,11 @@ $root.file = (function() {
1071
1071
  if (!writer)
1072
1072
  writer = $Writer.create();
1073
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();
1074
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.localVersion);
1075
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();
1076
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.remoteVersion);
1077
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();
1078
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.bytesLeftToUpload);
1079
1079
  if (message.uploadStarted != null && Object.hasOwnProperty.call(message, "uploadStarted"))
1080
1080
  writer.uint32(/* id 4, wireType 0 =*/32).bool(message.uploadStarted);
1081
1081
  return writer;
@@ -1115,15 +1115,15 @@ $root.file = (function() {
1115
1115
  break;
1116
1116
  switch (tag >>> 3) {
1117
1117
  case 1: {
1118
- message.localVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
1118
+ message.localVersion = reader.uint64();
1119
1119
  break;
1120
1120
  }
1121
1121
  case 2: {
1122
- message.remoteVersion = $root.common.UInt64Value.decode(reader, reader.uint32());
1122
+ message.remoteVersion = reader.uint64();
1123
1123
  break;
1124
1124
  }
1125
1125
  case 3: {
1126
- message.bytesLeftToUpload = $root.common.UInt64Value.decode(reader, reader.uint32());
1126
+ message.bytesLeftToUpload = reader.uint64();
1127
1127
  break;
1128
1128
  }
1129
1129
  case 4: {
@@ -1165,21 +1165,15 @@ $root.file = (function() {
1165
1165
  UploadingStateMsg.verify = function verify(message) {
1166
1166
  if (typeof message !== "object" || message === null)
1167
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
- }
1168
+ if (message.localVersion != null && message.hasOwnProperty("localVersion"))
1169
+ if (!$util.isInteger(message.localVersion) && !(message.localVersion && $util.isInteger(message.localVersion.low) && $util.isInteger(message.localVersion.high)))
1170
+ return "localVersion: integer|Long expected";
1171
+ if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
1172
+ if (!$util.isInteger(message.remoteVersion) && !(message.remoteVersion && $util.isInteger(message.remoteVersion.low) && $util.isInteger(message.remoteVersion.high)))
1173
+ return "remoteVersion: integer|Long expected";
1174
+ if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
1175
+ if (!$util.isInteger(message.bytesLeftToUpload) && !(message.bytesLeftToUpload && $util.isInteger(message.bytesLeftToUpload.low) && $util.isInteger(message.bytesLeftToUpload.high)))
1176
+ return "bytesLeftToUpload: integer|Long expected";
1183
1177
  if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
1184
1178
  if (typeof message.uploadStarted !== "boolean")
1185
1179
  return "uploadStarted: boolean expected";
@@ -1198,21 +1192,33 @@ $root.file = (function() {
1198
1192
  if (object instanceof $root.file.UploadingStateMsg)
1199
1193
  return object;
1200
1194
  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
- }
1195
+ if (object.localVersion != null)
1196
+ if ($util.Long)
1197
+ (message.localVersion = $util.Long.fromValue(object.localVersion)).unsigned = true;
1198
+ else if (typeof object.localVersion === "string")
1199
+ message.localVersion = parseInt(object.localVersion, 10);
1200
+ else if (typeof object.localVersion === "number")
1201
+ message.localVersion = object.localVersion;
1202
+ else if (typeof object.localVersion === "object")
1203
+ message.localVersion = new $util.LongBits(object.localVersion.low >>> 0, object.localVersion.high >>> 0).toNumber(true);
1204
+ if (object.remoteVersion != null)
1205
+ if ($util.Long)
1206
+ (message.remoteVersion = $util.Long.fromValue(object.remoteVersion)).unsigned = true;
1207
+ else if (typeof object.remoteVersion === "string")
1208
+ message.remoteVersion = parseInt(object.remoteVersion, 10);
1209
+ else if (typeof object.remoteVersion === "number")
1210
+ message.remoteVersion = object.remoteVersion;
1211
+ else if (typeof object.remoteVersion === "object")
1212
+ message.remoteVersion = new $util.LongBits(object.remoteVersion.low >>> 0, object.remoteVersion.high >>> 0).toNumber(true);
1213
+ if (object.bytesLeftToUpload != null)
1214
+ if ($util.Long)
1215
+ (message.bytesLeftToUpload = $util.Long.fromValue(object.bytesLeftToUpload)).unsigned = true;
1216
+ else if (typeof object.bytesLeftToUpload === "string")
1217
+ message.bytesLeftToUpload = parseInt(object.bytesLeftToUpload, 10);
1218
+ else if (typeof object.bytesLeftToUpload === "number")
1219
+ message.bytesLeftToUpload = object.bytesLeftToUpload;
1220
+ else if (typeof object.bytesLeftToUpload === "object")
1221
+ message.bytesLeftToUpload = new $util.LongBits(object.bytesLeftToUpload.low >>> 0, object.bytesLeftToUpload.high >>> 0).toNumber(true);
1216
1222
  if (object.uploadStarted != null)
1217
1223
  message.uploadStarted = Boolean(object.uploadStarted);
1218
1224
  return message;
@@ -1232,17 +1238,38 @@ $root.file = (function() {
1232
1238
  options = {};
1233
1239
  var object = {};
1234
1240
  if (options.defaults) {
1235
- object.localVersion = null;
1236
- object.remoteVersion = null;
1237
- object.bytesLeftToUpload = null;
1241
+ if ($util.Long) {
1242
+ var long = new $util.Long(0, 0, true);
1243
+ object.localVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1244
+ } else
1245
+ object.localVersion = options.longs === String ? "0" : 0;
1246
+ if ($util.Long) {
1247
+ var long = new $util.Long(0, 0, true);
1248
+ object.remoteVersion = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1249
+ } else
1250
+ object.remoteVersion = options.longs === String ? "0" : 0;
1251
+ if ($util.Long) {
1252
+ var long = new $util.Long(0, 0, true);
1253
+ object.bytesLeftToUpload = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1254
+ } else
1255
+ object.bytesLeftToUpload = options.longs === String ? "0" : 0;
1238
1256
  object.uploadStarted = false;
1239
1257
  }
1240
1258
  if (message.localVersion != null && message.hasOwnProperty("localVersion"))
1241
- object.localVersion = $root.common.UInt64Value.toObject(message.localVersion, options);
1259
+ if (typeof message.localVersion === "number")
1260
+ object.localVersion = options.longs === String ? String(message.localVersion) : message.localVersion;
1261
+ else
1262
+ 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;
1242
1263
  if (message.remoteVersion != null && message.hasOwnProperty("remoteVersion"))
1243
- object.remoteVersion = $root.common.UInt64Value.toObject(message.remoteVersion, options);
1264
+ if (typeof message.remoteVersion === "number")
1265
+ object.remoteVersion = options.longs === String ? String(message.remoteVersion) : message.remoteVersion;
1266
+ else
1267
+ 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;
1244
1268
  if (message.bytesLeftToUpload != null && message.hasOwnProperty("bytesLeftToUpload"))
1245
- object.bytesLeftToUpload = $root.common.UInt64Value.toObject(message.bytesLeftToUpload, options);
1269
+ if (typeof message.bytesLeftToUpload === "number")
1270
+ object.bytesLeftToUpload = options.longs === String ? String(message.bytesLeftToUpload) : message.bytesLeftToUpload;
1271
+ else
1272
+ 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;
1246
1273
  if (message.uploadStarted != null && message.hasOwnProperty("uploadStarted"))
1247
1274
  object.uploadStarted = message.uploadStarted;
1248
1275
  return object;