@ryuu-reinzz/baileys 3.0.0-beta.2 → 3.0.0-beta.21

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/WAProto/index.js CHANGED
@@ -5,6 +5,43 @@ const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.
5
5
 
6
6
  const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
7
7
 
8
+ function longToString(value, unsigned) {
9
+ if (typeof value === "string") {
10
+ return value;
11
+ }
12
+ if (typeof value === "number") {
13
+ return String(value);
14
+ }
15
+ if (!$util.Long) {
16
+ return String(value);
17
+ }
18
+ const normalized = $util.Long.fromValue(value);
19
+ const prepared = unsigned && normalized && typeof normalized.toUnsigned === "function"
20
+ ? normalized.toUnsigned()
21
+ : normalized;
22
+ return prepared.toString();
23
+ }
24
+
25
+ function longToNumber(value, unsigned) {
26
+ if (typeof value === "number") {
27
+ return value;
28
+ }
29
+ if (typeof value === "string") {
30
+ const numeric = Number(value);
31
+ return numeric;
32
+ }
33
+ if (!$util.Long) {
34
+ return Number(value);
35
+ }
36
+ const normalized = $util.Long.fromValue(value);
37
+ const prepared = unsigned && normalized && typeof normalized.toUnsigned === "function"
38
+ ? normalized.toUnsigned()
39
+ : typeof normalized.toSigned === "function"
40
+ ? normalized.toSigned()
41
+ : normalized;
42
+ return prepared.toNumber();
43
+ }
44
+
8
45
  export const proto = $root.proto = (() => {
9
46
 
10
47
  const proto = {};
@@ -181,7 +218,7 @@ export const proto = $root.proto = (() => {
181
218
  if (typeof m.timestamp === "number")
182
219
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
183
220
  else
184
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
221
+ d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
185
222
  if (o.oneofs)
186
223
  d._timestamp = "timestamp";
187
224
  }
@@ -397,7 +434,7 @@ export const proto = $root.proto = (() => {
397
434
  if (typeof m.timestamp === "number")
398
435
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
399
436
  else
400
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
437
+ d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
401
438
  if (o.oneofs)
402
439
  d._timestamp = "timestamp";
403
440
  }
@@ -1010,7 +1047,7 @@ export const proto = $root.proto = (() => {
1010
1047
  if (typeof m.lastFetchTime === "number")
1011
1048
  d.lastFetchTime = o.longs === String ? String(m.lastFetchTime) : m.lastFetchTime;
1012
1049
  else
1013
- d.lastFetchTime = o.longs === String ? $util.Long.prototype.toString.call(m.lastFetchTime) : o.longs === Number ? new $util.LongBits(m.lastFetchTime.low >>> 0, m.lastFetchTime.high >>> 0).toNumber() : m.lastFetchTime;
1050
+ d.lastFetchTime = o.longs === String ? longToString(m.lastFetchTime) : o.longs === Number ? longToNumber(m.lastFetchTime) : m.lastFetchTime;
1014
1051
  if (o.oneofs)
1015
1052
  d._lastFetchTime = "lastFetchTime";
1016
1053
  }
@@ -1410,7 +1447,7 @@ export const proto = $root.proto = (() => {
1410
1447
  if (typeof m.timestamp === "number")
1411
1448
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
1412
1449
  else
1413
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
1450
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
1414
1451
  if (o.oneofs)
1415
1452
  d._timestamp = "timestamp";
1416
1453
  }
@@ -1531,7 +1568,7 @@ export const proto = $root.proto = (() => {
1531
1568
  if (typeof m.responseTimestampMs === "number")
1532
1569
  d.responseTimestampMs = o.longs === String ? String(m.responseTimestampMs) : m.responseTimestampMs;
1533
1570
  else
1534
- d.responseTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.responseTimestampMs) : o.longs === Number ? new $util.LongBits(m.responseTimestampMs.low >>> 0, m.responseTimestampMs.high >>> 0).toNumber() : m.responseTimestampMs;
1571
+ d.responseTimestampMs = o.longs === String ? longToString(m.responseTimestampMs) : o.longs === Number ? longToNumber(m.responseTimestampMs) : m.responseTimestampMs;
1535
1572
  if (o.oneofs)
1536
1573
  d._responseTimestampMs = "responseTimestampMs";
1537
1574
  }
@@ -2346,7 +2383,7 @@ export const proto = $root.proto = (() => {
2346
2383
  if (typeof m.version === "number")
2347
2384
  d.version = o.longs === String ? String(m.version) : m.version;
2348
2385
  else
2349
- d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version;
2386
+ d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
2350
2387
  if (o.oneofs)
2351
2388
  d._version = "version";
2352
2389
  }
@@ -5433,7 +5470,7 @@ export const proto = $root.proto = (() => {
5433
5470
  if (typeof m.whatsappBizAcctFbid === "number")
5434
5471
  d.whatsappBizAcctFbid = o.longs === String ? String(m.whatsappBizAcctFbid) : m.whatsappBizAcctFbid;
5435
5472
  else
5436
- d.whatsappBizAcctFbid = o.longs === String ? $util.Long.prototype.toString.call(m.whatsappBizAcctFbid) : o.longs === Number ? new $util.LongBits(m.whatsappBizAcctFbid.low >>> 0, m.whatsappBizAcctFbid.high >>> 0).toNumber(true) : m.whatsappBizAcctFbid;
5473
+ d.whatsappBizAcctFbid = o.longs === String ? longToString(m.whatsappBizAcctFbid, true) : o.longs === Number ? longToNumber(m.whatsappBizAcctFbid, true) : m.whatsappBizAcctFbid;
5437
5474
  if (o.oneofs)
5438
5475
  d._whatsappBizAcctFbid = "whatsappBizAcctFbid";
5439
5476
  }
@@ -5446,7 +5483,7 @@ export const proto = $root.proto = (() => {
5446
5483
  if (typeof m.issueTime === "number")
5447
5484
  d.issueTime = o.longs === String ? String(m.issueTime) : m.issueTime;
5448
5485
  else
5449
- d.issueTime = o.longs === String ? $util.Long.prototype.toString.call(m.issueTime) : o.longs === Number ? new $util.LongBits(m.issueTime.low >>> 0, m.issueTime.high >>> 0).toNumber(true) : m.issueTime;
5486
+ d.issueTime = o.longs === String ? longToString(m.issueTime, true) : o.longs === Number ? longToNumber(m.issueTime, true) : m.issueTime;
5450
5487
  if (o.oneofs)
5451
5488
  d._issueTime = "issueTime";
5452
5489
  }
@@ -5875,7 +5912,7 @@ export const proto = $root.proto = (() => {
5875
5912
  if (typeof m.privacyModeTs === "number")
5876
5913
  d.privacyModeTs = o.longs === String ? String(m.privacyModeTs) : m.privacyModeTs;
5877
5914
  else
5878
- d.privacyModeTs = o.longs === String ? $util.Long.prototype.toString.call(m.privacyModeTs) : o.longs === Number ? new $util.LongBits(m.privacyModeTs.low >>> 0, m.privacyModeTs.high >>> 0).toNumber(true) : m.privacyModeTs;
5915
+ d.privacyModeTs = o.longs === String ? longToString(m.privacyModeTs, true) : o.longs === Number ? longToNumber(m.privacyModeTs, true) : m.privacyModeTs;
5879
5916
  if (o.oneofs)
5880
5917
  d._privacyModeTs = "privacyModeTs";
5881
5918
  }
@@ -5883,7 +5920,7 @@ export const proto = $root.proto = (() => {
5883
5920
  if (typeof m.featureControls === "number")
5884
5921
  d.featureControls = o.longs === String ? String(m.featureControls) : m.featureControls;
5885
5922
  else
5886
- d.featureControls = o.longs === String ? $util.Long.prototype.toString.call(m.featureControls) : o.longs === Number ? new $util.LongBits(m.featureControls.low >>> 0, m.featureControls.high >>> 0).toNumber(true) : m.featureControls;
5923
+ d.featureControls = o.longs === String ? longToString(m.featureControls, true) : o.longs === Number ? longToNumber(m.featureControls, true) : m.featureControls;
5887
5924
  if (o.oneofs)
5888
5925
  d._featureControls = "featureControls";
5889
5926
  }
@@ -6887,7 +6924,7 @@ export const proto = $root.proto = (() => {
6887
6924
  if (typeof m.kindNegative === "number")
6888
6925
  d.kindNegative = o.longs === String ? String(m.kindNegative) : m.kindNegative;
6889
6926
  else
6890
- d.kindNegative = o.longs === String ? $util.Long.prototype.toString.call(m.kindNegative) : o.longs === Number ? new $util.LongBits(m.kindNegative.low >>> 0, m.kindNegative.high >>> 0).toNumber(true) : m.kindNegative;
6927
+ d.kindNegative = o.longs === String ? longToString(m.kindNegative, true) : o.longs === Number ? longToNumber(m.kindNegative, true) : m.kindNegative;
6891
6928
  if (o.oneofs)
6892
6929
  d._kindNegative = "kindNegative";
6893
6930
  }
@@ -6895,7 +6932,7 @@ export const proto = $root.proto = (() => {
6895
6932
  if (typeof m.kindPositive === "number")
6896
6933
  d.kindPositive = o.longs === String ? String(m.kindPositive) : m.kindPositive;
6897
6934
  else
6898
- d.kindPositive = o.longs === String ? $util.Long.prototype.toString.call(m.kindPositive) : o.longs === Number ? new $util.LongBits(m.kindPositive.low >>> 0, m.kindPositive.high >>> 0).toNumber(true) : m.kindPositive;
6935
+ d.kindPositive = o.longs === String ? longToString(m.kindPositive, true) : o.longs === Number ? longToNumber(m.kindPositive, true) : m.kindPositive;
6899
6936
  if (o.oneofs)
6900
6937
  d._kindPositive = "kindPositive";
6901
6938
  }
@@ -8662,7 +8699,7 @@ export const proto = $root.proto = (() => {
8662
8699
  if (typeof m.mediaKeyTimestamp === "number")
8663
8700
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
8664
8701
  else
8665
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
8702
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
8666
8703
  if (o.oneofs)
8667
8704
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
8668
8705
  }
@@ -12870,7 +12907,7 @@ export const proto = $root.proto = (() => {
12870
12907
  if (typeof m.expirationTimestamp === "number")
12871
12908
  d.expirationTimestamp = o.longs === String ? String(m.expirationTimestamp) : m.expirationTimestamp;
12872
12909
  else
12873
- d.expirationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expirationTimestamp) : o.longs === Number ? new $util.LongBits(m.expirationTimestamp.low >>> 0, m.expirationTimestamp.high >>> 0).toNumber(true) : m.expirationTimestamp;
12910
+ d.expirationTimestamp = o.longs === String ? longToString(m.expirationTimestamp, true) : o.longs === Number ? longToNumber(m.expirationTimestamp, true) : m.expirationTimestamp;
12874
12911
  if (o.oneofs)
12875
12912
  d._expirationTimestamp = "expirationTimestamp";
12876
12913
  }
@@ -13105,7 +13142,7 @@ export const proto = $root.proto = (() => {
13105
13142
  if (typeof m.nextTriggerTimestamp === "number")
13106
13143
  d.nextTriggerTimestamp = o.longs === String ? String(m.nextTriggerTimestamp) : m.nextTriggerTimestamp;
13107
13144
  else
13108
- d.nextTriggerTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.nextTriggerTimestamp) : o.longs === Number ? new $util.LongBits(m.nextTriggerTimestamp.low >>> 0, m.nextTriggerTimestamp.high >>> 0).toNumber(true) : m.nextTriggerTimestamp;
13145
+ d.nextTriggerTimestamp = o.longs === String ? longToString(m.nextTriggerTimestamp, true) : o.longs === Number ? longToNumber(m.nextTriggerTimestamp, true) : m.nextTriggerTimestamp;
13109
13146
  if (o.oneofs)
13110
13147
  d._nextTriggerTimestamp = "nextTriggerTimestamp";
13111
13148
  }
@@ -15087,7 +15124,7 @@ export const proto = $root.proto = (() => {
15087
15124
  if (typeof m.duration === "number")
15088
15125
  d.duration = o.longs === String ? String(m.duration) : m.duration;
15089
15126
  else
15090
- d.duration = o.longs === String ? $util.Long.prototype.toString.call(m.duration) : o.longs === Number ? new $util.LongBits(m.duration.low >>> 0, m.duration.high >>> 0).toNumber() : m.duration;
15127
+ d.duration = o.longs === String ? longToString(m.duration) : o.longs === Number ? longToNumber(m.duration) : m.duration;
15091
15128
  if (o.oneofs)
15092
15129
  d._duration = "duration";
15093
15130
  }
@@ -15095,7 +15132,7 @@ export const proto = $root.proto = (() => {
15095
15132
  if (typeof m.startTime === "number")
15096
15133
  d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
15097
15134
  else
15098
- d.startTime = o.longs === String ? $util.Long.prototype.toString.call(m.startTime) : o.longs === Number ? new $util.LongBits(m.startTime.low >>> 0, m.startTime.high >>> 0).toNumber() : m.startTime;
15135
+ d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
15099
15136
  if (o.oneofs)
15100
15137
  d._startTime = "startTime";
15101
15138
  }
@@ -15746,7 +15783,7 @@ export const proto = $root.proto = (() => {
15746
15783
  if (typeof m.notBefore === "number")
15747
15784
  d.notBefore = o.longs === String ? String(m.notBefore) : m.notBefore;
15748
15785
  else
15749
- d.notBefore = o.longs === String ? $util.Long.prototype.toString.call(m.notBefore) : o.longs === Number ? new $util.LongBits(m.notBefore.low >>> 0, m.notBefore.high >>> 0).toNumber(true) : m.notBefore;
15786
+ d.notBefore = o.longs === String ? longToString(m.notBefore, true) : o.longs === Number ? longToNumber(m.notBefore, true) : m.notBefore;
15750
15787
  if (o.oneofs)
15751
15788
  d._notBefore = "notBefore";
15752
15789
  }
@@ -15754,7 +15791,7 @@ export const proto = $root.proto = (() => {
15754
15791
  if (typeof m.notAfter === "number")
15755
15792
  d.notAfter = o.longs === String ? String(m.notAfter) : m.notAfter;
15756
15793
  else
15757
- d.notAfter = o.longs === String ? $util.Long.prototype.toString.call(m.notAfter) : o.longs === Number ? new $util.LongBits(m.notAfter.low >>> 0, m.notAfter.high >>> 0).toNumber(true) : m.notAfter;
15794
+ d.notAfter = o.longs === String ? longToString(m.notAfter, true) : o.longs === Number ? longToNumber(m.notAfter, true) : m.notAfter;
15758
15795
  if (o.oneofs)
15759
15796
  d._notAfter = "notAfter";
15760
15797
  }
@@ -16144,7 +16181,7 @@ export const proto = $root.proto = (() => {
16144
16181
  if (typeof m.timestamp === "number")
16145
16182
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
16146
16183
  else
16147
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
16184
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
16148
16185
  if (o.oneofs)
16149
16186
  d._timestamp = "timestamp";
16150
16187
  }
@@ -17733,7 +17770,7 @@ export const proto = $root.proto = (() => {
17733
17770
  if (typeof m.username === "number")
17734
17771
  d.username = o.longs === String ? String(m.username) : m.username;
17735
17772
  else
17736
- d.username = o.longs === String ? $util.Long.prototype.toString.call(m.username) : o.longs === Number ? new $util.LongBits(m.username.low >>> 0, m.username.high >>> 0).toNumber(true) : m.username;
17773
+ d.username = o.longs === String ? longToString(m.username, true) : o.longs === Number ? longToNumber(m.username, true) : m.username;
17737
17774
  if (o.oneofs)
17738
17775
  d._username = "username";
17739
17776
  }
@@ -17837,7 +17874,7 @@ export const proto = $root.proto = (() => {
17837
17874
  if (typeof m.fbAppId === "number")
17838
17875
  d.fbAppId = o.longs === String ? String(m.fbAppId) : m.fbAppId;
17839
17876
  else
17840
- d.fbAppId = o.longs === String ? $util.Long.prototype.toString.call(m.fbAppId) : o.longs === Number ? new $util.LongBits(m.fbAppId.low >>> 0, m.fbAppId.high >>> 0).toNumber(true) : m.fbAppId;
17877
+ d.fbAppId = o.longs === String ? longToString(m.fbAppId, true) : o.longs === Number ? longToNumber(m.fbAppId, true) : m.fbAppId;
17841
17878
  if (o.oneofs)
17842
17879
  d._fbAppId = "fbAppId";
17843
17880
  }
@@ -18487,7 +18524,7 @@ export const proto = $root.proto = (() => {
18487
18524
  if (typeof m.accountId === "number")
18488
18525
  d.accountId = o.longs === String ? String(m.accountId) : m.accountId;
18489
18526
  else
18490
- d.accountId = o.longs === String ? $util.Long.prototype.toString.call(m.accountId) : o.longs === Number ? new $util.LongBits(m.accountId.low >>> 0, m.accountId.high >>> 0).toNumber(true) : m.accountId;
18527
+ d.accountId = o.longs === String ? longToString(m.accountId, true) : o.longs === Number ? longToNumber(m.accountId, true) : m.accountId;
18491
18528
  if (o.oneofs)
18492
18529
  d._accountId = "accountId";
18493
18530
  }
@@ -21672,7 +21709,7 @@ export const proto = $root.proto = (() => {
21672
21709
  if (typeof m.ephemeralSettingTimestamp === "number")
21673
21710
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
21674
21711
  else
21675
- d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
21712
+ d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
21676
21713
  if (o.oneofs)
21677
21714
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
21678
21715
  }
@@ -22482,7 +22519,7 @@ export const proto = $root.proto = (() => {
22482
22519
  if (typeof m.intData === "number")
22483
22520
  d.intData = o.longs === String ? String(m.intData) : m.intData;
22484
22521
  else
22485
- d.intData = o.longs === String ? $util.Long.prototype.toString.call(m.intData) : o.longs === Number ? new $util.LongBits(m.intData.low >>> 0, m.intData.high >>> 0).toNumber() : m.intData;
22522
+ d.intData = o.longs === String ? longToString(m.intData) : o.longs === Number ? longToNumber(m.intData) : m.intData;
22486
22523
  if (o.oneofs)
22487
22524
  d._intData = "intData";
22488
22525
  }
@@ -25062,7 +25099,7 @@ export const proto = $root.proto = (() => {
25062
25099
  if (typeof m.lastMsgTimestamp === "number")
25063
25100
  d.lastMsgTimestamp = o.longs === String ? String(m.lastMsgTimestamp) : m.lastMsgTimestamp;
25064
25101
  else
25065
- d.lastMsgTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastMsgTimestamp) : o.longs === Number ? new $util.LongBits(m.lastMsgTimestamp.low >>> 0, m.lastMsgTimestamp.high >>> 0).toNumber(true) : m.lastMsgTimestamp;
25102
+ d.lastMsgTimestamp = o.longs === String ? longToString(m.lastMsgTimestamp, true) : o.longs === Number ? longToNumber(m.lastMsgTimestamp, true) : m.lastMsgTimestamp;
25066
25103
  if (o.oneofs)
25067
25104
  d._lastMsgTimestamp = "lastMsgTimestamp";
25068
25105
  }
@@ -25090,7 +25127,7 @@ export const proto = $root.proto = (() => {
25090
25127
  if (typeof m.ephemeralSettingTimestamp === "number")
25091
25128
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
25092
25129
  else
25093
- d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
25130
+ d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
25094
25131
  if (o.oneofs)
25095
25132
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
25096
25133
  }
@@ -25103,7 +25140,7 @@ export const proto = $root.proto = (() => {
25103
25140
  if (typeof m.conversationTimestamp === "number")
25104
25141
  d.conversationTimestamp = o.longs === String ? String(m.conversationTimestamp) : m.conversationTimestamp;
25105
25142
  else
25106
- d.conversationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.conversationTimestamp) : o.longs === Number ? new $util.LongBits(m.conversationTimestamp.low >>> 0, m.conversationTimestamp.high >>> 0).toNumber(true) : m.conversationTimestamp;
25143
+ d.conversationTimestamp = o.longs === String ? longToString(m.conversationTimestamp, true) : o.longs === Number ? longToNumber(m.conversationTimestamp, true) : m.conversationTimestamp;
25107
25144
  if (o.oneofs)
25108
25145
  d._conversationTimestamp = "conversationTimestamp";
25109
25146
  }
@@ -25157,7 +25194,7 @@ export const proto = $root.proto = (() => {
25157
25194
  if (typeof m.tcTokenTimestamp === "number")
25158
25195
  d.tcTokenTimestamp = o.longs === String ? String(m.tcTokenTimestamp) : m.tcTokenTimestamp;
25159
25196
  else
25160
- d.tcTokenTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.tcTokenTimestamp) : o.longs === Number ? new $util.LongBits(m.tcTokenTimestamp.low >>> 0, m.tcTokenTimestamp.high >>> 0).toNumber(true) : m.tcTokenTimestamp;
25197
+ d.tcTokenTimestamp = o.longs === String ? longToString(m.tcTokenTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenTimestamp, true) : m.tcTokenTimestamp;
25161
25198
  if (o.oneofs)
25162
25199
  d._tcTokenTimestamp = "tcTokenTimestamp";
25163
25200
  }
@@ -25175,7 +25212,7 @@ export const proto = $root.proto = (() => {
25175
25212
  if (typeof m.muteEndTime === "number")
25176
25213
  d.muteEndTime = o.longs === String ? String(m.muteEndTime) : m.muteEndTime;
25177
25214
  else
25178
- d.muteEndTime = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTime) : o.longs === Number ? new $util.LongBits(m.muteEndTime.low >>> 0, m.muteEndTime.high >>> 0).toNumber(true) : m.muteEndTime;
25215
+ d.muteEndTime = o.longs === String ? longToString(m.muteEndTime, true) : o.longs === Number ? longToNumber(m.muteEndTime, true) : m.muteEndTime;
25179
25216
  if (o.oneofs)
25180
25217
  d._muteEndTime = "muteEndTime";
25181
25218
  }
@@ -25193,7 +25230,7 @@ export const proto = $root.proto = (() => {
25193
25230
  if (typeof m.tcTokenSenderTimestamp === "number")
25194
25231
  d.tcTokenSenderTimestamp = o.longs === String ? String(m.tcTokenSenderTimestamp) : m.tcTokenSenderTimestamp;
25195
25232
  else
25196
- d.tcTokenSenderTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.tcTokenSenderTimestamp) : o.longs === Number ? new $util.LongBits(m.tcTokenSenderTimestamp.low >>> 0, m.tcTokenSenderTimestamp.high >>> 0).toNumber(true) : m.tcTokenSenderTimestamp;
25233
+ d.tcTokenSenderTimestamp = o.longs === String ? longToString(m.tcTokenSenderTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenSenderTimestamp, true) : m.tcTokenSenderTimestamp;
25197
25234
  if (o.oneofs)
25198
25235
  d._tcTokenSenderTimestamp = "tcTokenSenderTimestamp";
25199
25236
  }
@@ -25211,7 +25248,7 @@ export const proto = $root.proto = (() => {
25211
25248
  if (typeof m.createdAt === "number")
25212
25249
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
25213
25250
  else
25214
- d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber(true) : m.createdAt;
25251
+ d.createdAt = o.longs === String ? longToString(m.createdAt, true) : o.longs === Number ? longToNumber(m.createdAt, true) : m.createdAt;
25215
25252
  if (o.oneofs)
25216
25253
  d._createdAt = "createdAt";
25217
25254
  }
@@ -25314,7 +25351,7 @@ export const proto = $root.proto = (() => {
25314
25351
  if (typeof m.limitSharingSettingTimestamp === "number")
25315
25352
  d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
25316
25353
  else
25317
- d.limitSharingSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.limitSharingSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.limitSharingSettingTimestamp.low >>> 0, m.limitSharingSettingTimestamp.high >>> 0).toNumber() : m.limitSharingSettingTimestamp;
25354
+ d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
25318
25355
  if (o.oneofs)
25319
25356
  d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
25320
25357
  }
@@ -25740,7 +25777,7 @@ export const proto = $root.proto = (() => {
25740
25777
  if (typeof m.chatDbMigrationTimestamp === "number")
25741
25778
  d.chatDbMigrationTimestamp = o.longs === String ? String(m.chatDbMigrationTimestamp) : m.chatDbMigrationTimestamp;
25742
25779
  else
25743
- d.chatDbMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbMigrationTimestamp.low >>> 0, m.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : m.chatDbMigrationTimestamp;
25780
+ d.chatDbMigrationTimestamp = o.longs === String ? longToString(m.chatDbMigrationTimestamp, true) : o.longs === Number ? longToNumber(m.chatDbMigrationTimestamp, true) : m.chatDbMigrationTimestamp;
25744
25781
  if (o.oneofs)
25745
25782
  d._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
25746
25783
  }
@@ -26231,7 +26268,7 @@ export const proto = $root.proto = (() => {
26231
26268
  if (typeof m.senderTimestamp === "number")
26232
26269
  d.senderTimestamp = o.longs === String ? String(m.senderTimestamp) : m.senderTimestamp;
26233
26270
  else
26234
- d.senderTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestamp) : o.longs === Number ? new $util.LongBits(m.senderTimestamp.low >>> 0, m.senderTimestamp.high >>> 0).toNumber(true) : m.senderTimestamp;
26271
+ d.senderTimestamp = o.longs === String ? longToString(m.senderTimestamp, true) : o.longs === Number ? longToNumber(m.senderTimestamp, true) : m.senderTimestamp;
26235
26272
  if (o.oneofs)
26236
26273
  d._senderTimestamp = "senderTimestamp";
26237
26274
  }
@@ -26260,7 +26297,7 @@ export const proto = $root.proto = (() => {
26260
26297
  if (typeof m.recipientTimestamp === "number")
26261
26298
  d.recipientTimestamp = o.longs === String ? String(m.recipientTimestamp) : m.recipientTimestamp;
26262
26299
  else
26263
- d.recipientTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.recipientTimestamp) : o.longs === Number ? new $util.LongBits(m.recipientTimestamp.low >>> 0, m.recipientTimestamp.high >>> 0).toNumber(true) : m.recipientTimestamp;
26300
+ d.recipientTimestamp = o.longs === String ? longToString(m.recipientTimestamp, true) : o.longs === Number ? longToNumber(m.recipientTimestamp, true) : m.recipientTimestamp;
26264
26301
  if (o.oneofs)
26265
26302
  d._recipientTimestamp = "recipientTimestamp";
26266
26303
  }
@@ -28040,7 +28077,7 @@ export const proto = $root.proto = (() => {
28040
28077
  if (typeof m.musicSongStartTimeInMs === "number")
28041
28078
  d.musicSongStartTimeInMs = o.longs === String ? String(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
28042
28079
  else
28043
- d.musicSongStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.musicSongStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.musicSongStartTimeInMs.low >>> 0, m.musicSongStartTimeInMs.high >>> 0).toNumber() : m.musicSongStartTimeInMs;
28080
+ d.musicSongStartTimeInMs = o.longs === String ? longToString(m.musicSongStartTimeInMs) : o.longs === Number ? longToNumber(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
28044
28081
  if (o.oneofs)
28045
28082
  d._musicSongStartTimeInMs = "musicSongStartTimeInMs";
28046
28083
  }
@@ -28048,7 +28085,7 @@ export const proto = $root.proto = (() => {
28048
28085
  if (typeof m.derivedContentStartTimeInMs === "number")
28049
28086
  d.derivedContentStartTimeInMs = o.longs === String ? String(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
28050
28087
  else
28051
- d.derivedContentStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.derivedContentStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.derivedContentStartTimeInMs.low >>> 0, m.derivedContentStartTimeInMs.high >>> 0).toNumber() : m.derivedContentStartTimeInMs;
28088
+ d.derivedContentStartTimeInMs = o.longs === String ? longToString(m.derivedContentStartTimeInMs) : o.longs === Number ? longToNumber(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
28052
28089
  if (o.oneofs)
28053
28090
  d._derivedContentStartTimeInMs = "derivedContentStartTimeInMs";
28054
28091
  }
@@ -28056,7 +28093,7 @@ export const proto = $root.proto = (() => {
28056
28093
  if (typeof m.overlapDurationInMs === "number")
28057
28094
  d.overlapDurationInMs = o.longs === String ? String(m.overlapDurationInMs) : m.overlapDurationInMs;
28058
28095
  else
28059
- d.overlapDurationInMs = o.longs === String ? $util.Long.prototype.toString.call(m.overlapDurationInMs) : o.longs === Number ? new $util.LongBits(m.overlapDurationInMs.low >>> 0, m.overlapDurationInMs.high >>> 0).toNumber() : m.overlapDurationInMs;
28096
+ d.overlapDurationInMs = o.longs === String ? longToString(m.overlapDurationInMs) : o.longs === Number ? longToNumber(m.overlapDurationInMs) : m.overlapDurationInMs;
28060
28097
  if (o.oneofs)
28061
28098
  d._overlapDurationInMs = "overlapDurationInMs";
28062
28099
  }
@@ -28290,7 +28327,7 @@ export const proto = $root.proto = (() => {
28290
28327
  if (typeof m.timestamp === "number")
28291
28328
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
28292
28329
  else
28293
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
28330
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
28294
28331
  if (o.oneofs)
28295
28332
  d._timestamp = "timestamp";
28296
28333
  }
@@ -28533,7 +28570,7 @@ export const proto = $root.proto = (() => {
28533
28570
  if (typeof m.timestampMs === "number")
28534
28571
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
28535
28572
  else
28536
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
28573
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
28537
28574
  if (o.oneofs)
28538
28575
  d._timestampMs = "timestampMs";
28539
28576
  }
@@ -28657,7 +28694,7 @@ export const proto = $root.proto = (() => {
28657
28694
  if (typeof m.code === "number")
28658
28695
  d.code = o.longs === String ? String(m.code) : m.code;
28659
28696
  else
28660
- d.code = o.longs === String ? $util.Long.prototype.toString.call(m.code) : o.longs === Number ? new $util.LongBits(m.code.low >>> 0, m.code.high >>> 0).toNumber(true) : m.code;
28697
+ d.code = o.longs === String ? longToString(m.code, true) : o.longs === Number ? longToNumber(m.code, true) : m.code;
28661
28698
  if (o.oneofs)
28662
28699
  d._code = "code";
28663
28700
  }
@@ -28864,7 +28901,7 @@ export const proto = $root.proto = (() => {
28864
28901
  if (typeof m.fileSizeBytes === "number")
28865
28902
  d.fileSizeBytes = o.longs === String ? String(m.fileSizeBytes) : m.fileSizeBytes;
28866
28903
  else
28867
- d.fileSizeBytes = o.longs === String ? $util.Long.prototype.toString.call(m.fileSizeBytes) : o.longs === Number ? new $util.LongBits(m.fileSizeBytes.low >>> 0, m.fileSizeBytes.high >>> 0).toNumber(true) : m.fileSizeBytes;
28904
+ d.fileSizeBytes = o.longs === String ? longToString(m.fileSizeBytes, true) : o.longs === Number ? longToNumber(m.fileSizeBytes, true) : m.fileSizeBytes;
28868
28905
  if (o.oneofs)
28869
28906
  d._fileSizeBytes = "fileSizeBytes";
28870
28907
  }
@@ -29695,7 +29732,7 @@ export const proto = $root.proto = (() => {
29695
29732
  if (typeof m.disappearingModeTimestamp === "number")
29696
29733
  d.disappearingModeTimestamp = o.longs === String ? String(m.disappearingModeTimestamp) : m.disappearingModeTimestamp;
29697
29734
  else
29698
- d.disappearingModeTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.disappearingModeTimestamp) : o.longs === Number ? new $util.LongBits(m.disappearingModeTimestamp.low >>> 0, m.disappearingModeTimestamp.high >>> 0).toNumber() : m.disappearingModeTimestamp;
29735
+ d.disappearingModeTimestamp = o.longs === String ? longToString(m.disappearingModeTimestamp) : o.longs === Number ? longToNumber(m.disappearingModeTimestamp) : m.disappearingModeTimestamp;
29699
29736
  if (o.oneofs)
29700
29737
  d._disappearingModeTimestamp = "disappearingModeTimestamp";
29701
29738
  }
@@ -29748,7 +29785,7 @@ export const proto = $root.proto = (() => {
29748
29785
  if (typeof m.chatDbLidMigrationTimestamp === "number")
29749
29786
  d.chatDbLidMigrationTimestamp = o.longs === String ? String(m.chatDbLidMigrationTimestamp) : m.chatDbLidMigrationTimestamp;
29750
29787
  else
29751
- d.chatDbLidMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbLidMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbLidMigrationTimestamp.low >>> 0, m.chatDbLidMigrationTimestamp.high >>> 0).toNumber() : m.chatDbLidMigrationTimestamp;
29788
+ d.chatDbLidMigrationTimestamp = o.longs === String ? longToString(m.chatDbLidMigrationTimestamp) : o.longs === Number ? longToNumber(m.chatDbLidMigrationTimestamp) : m.chatDbLidMigrationTimestamp;
29752
29789
  if (o.oneofs)
29753
29790
  d._chatDbLidMigrationTimestamp = "chatDbLidMigrationTimestamp";
29754
29791
  }
@@ -31567,7 +31604,7 @@ export const proto = $root.proto = (() => {
31567
31604
  if (typeof m.msgOrderId === "number")
31568
31605
  d.msgOrderId = o.longs === String ? String(m.msgOrderId) : m.msgOrderId;
31569
31606
  else
31570
- d.msgOrderId = o.longs === String ? $util.Long.prototype.toString.call(m.msgOrderId) : o.longs === Number ? new $util.LongBits(m.msgOrderId.low >>> 0, m.msgOrderId.high >>> 0).toNumber(true) : m.msgOrderId;
31607
+ d.msgOrderId = o.longs === String ? longToString(m.msgOrderId, true) : o.longs === Number ? longToNumber(m.msgOrderId, true) : m.msgOrderId;
31571
31608
  if (o.oneofs)
31572
31609
  d._msgOrderId = "msgOrderId";
31573
31610
  }
@@ -33604,7 +33641,7 @@ export const proto = $root.proto = (() => {
33604
33641
  if (typeof m.serverTimestamp === "number")
33605
33642
  d.serverTimestamp = o.longs === String ? String(m.serverTimestamp) : m.serverTimestamp;
33606
33643
  else
33607
- d.serverTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestamp) : o.longs === Number ? new $util.LongBits(m.serverTimestamp.low >>> 0, m.serverTimestamp.high >>> 0).toNumber() : m.serverTimestamp;
33644
+ d.serverTimestamp = o.longs === String ? longToString(m.serverTimestamp) : o.longs === Number ? longToNumber(m.serverTimestamp) : m.serverTimestamp;
33608
33645
  if (o.oneofs)
33609
33646
  d._serverTimestamp = "serverTimestamp";
33610
33647
  }
@@ -33622,7 +33659,7 @@ export const proto = $root.proto = (() => {
33622
33659
  if (typeof m.clientTimestampMs === "number")
33623
33660
  d.clientTimestampMs = o.longs === String ? String(m.clientTimestampMs) : m.clientTimestampMs;
33624
33661
  else
33625
- d.clientTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.clientTimestampMs) : o.longs === Number ? new $util.LongBits(m.clientTimestampMs.low >>> 0, m.clientTimestampMs.high >>> 0).toNumber() : m.clientTimestampMs;
33662
+ d.clientTimestampMs = o.longs === String ? longToString(m.clientTimestampMs) : o.longs === Number ? longToNumber(m.clientTimestampMs) : m.clientTimestampMs;
33626
33663
  if (o.oneofs)
33627
33664
  d._clientTimestampMs = "clientTimestampMs";
33628
33665
  }
@@ -33630,7 +33667,7 @@ export const proto = $root.proto = (() => {
33630
33667
  if (typeof m.serverTimestampMs === "number")
33631
33668
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
33632
33669
  else
33633
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
33670
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
33634
33671
  if (o.oneofs)
33635
33672
  d._serverTimestampMs = "serverTimestampMs";
33636
33673
  }
@@ -34057,19 +34094,19 @@ export const proto = $root.proto = (() => {
34057
34094
  if (typeof m.pn === "number")
34058
34095
  d.pn = o.longs === String ? String(m.pn) : m.pn;
34059
34096
  else
34060
- d.pn = o.longs === String ? $util.Long.prototype.toString.call(m.pn) : o.longs === Number ? new $util.LongBits(m.pn.low >>> 0, m.pn.high >>> 0).toNumber(true) : m.pn;
34097
+ d.pn = o.longs === String ? longToString(m.pn, true) : o.longs === Number ? longToNumber(m.pn, true) : m.pn;
34061
34098
  }
34062
34099
  if (m.assignedLid != null && m.hasOwnProperty("assignedLid")) {
34063
34100
  if (typeof m.assignedLid === "number")
34064
34101
  d.assignedLid = o.longs === String ? String(m.assignedLid) : m.assignedLid;
34065
34102
  else
34066
- d.assignedLid = o.longs === String ? $util.Long.prototype.toString.call(m.assignedLid) : o.longs === Number ? new $util.LongBits(m.assignedLid.low >>> 0, m.assignedLid.high >>> 0).toNumber(true) : m.assignedLid;
34103
+ d.assignedLid = o.longs === String ? longToString(m.assignedLid, true) : o.longs === Number ? longToNumber(m.assignedLid, true) : m.assignedLid;
34067
34104
  }
34068
34105
  if (m.latestLid != null && m.hasOwnProperty("latestLid")) {
34069
34106
  if (typeof m.latestLid === "number")
34070
34107
  d.latestLid = o.longs === String ? String(m.latestLid) : m.latestLid;
34071
34108
  else
34072
- d.latestLid = o.longs === String ? $util.Long.prototype.toString.call(m.latestLid) : o.longs === Number ? new $util.LongBits(m.latestLid.low >>> 0, m.latestLid.high >>> 0).toNumber(true) : m.latestLid;
34109
+ d.latestLid = o.longs === String ? longToString(m.latestLid, true) : o.longs === Number ? longToNumber(m.latestLid, true) : m.latestLid;
34073
34110
  if (o.oneofs)
34074
34111
  d._latestLid = "latestLid";
34075
34112
  }
@@ -34289,7 +34326,7 @@ export const proto = $root.proto = (() => {
34289
34326
  if (typeof m.chatDbMigrationTimestamp === "number")
34290
34327
  d.chatDbMigrationTimestamp = o.longs === String ? String(m.chatDbMigrationTimestamp) : m.chatDbMigrationTimestamp;
34291
34328
  else
34292
- d.chatDbMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbMigrationTimestamp.low >>> 0, m.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : m.chatDbMigrationTimestamp;
34329
+ d.chatDbMigrationTimestamp = o.longs === String ? longToString(m.chatDbMigrationTimestamp, true) : o.longs === Number ? longToNumber(m.chatDbMigrationTimestamp, true) : m.chatDbMigrationTimestamp;
34293
34330
  if (o.oneofs)
34294
34331
  d._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
34295
34332
  }
@@ -34579,7 +34616,7 @@ export const proto = $root.proto = (() => {
34579
34616
  if (typeof m.limitSharingSettingTimestamp === "number")
34580
34617
  d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
34581
34618
  else
34582
- d.limitSharingSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.limitSharingSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.limitSharingSettingTimestamp.low >>> 0, m.limitSharingSettingTimestamp.high >>> 0).toNumber() : m.limitSharingSettingTimestamp;
34619
+ d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
34583
34620
  if (o.oneofs)
34584
34621
  d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
34585
34622
  }
@@ -35084,7 +35121,7 @@ export const proto = $root.proto = (() => {
35084
35121
  if (typeof m.fileLength === "number")
35085
35122
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
35086
35123
  else
35087
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
35124
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
35088
35125
  if (o.oneofs)
35089
35126
  d._fileLength = "fileLength";
35090
35127
  }
@@ -35395,7 +35432,7 @@ export const proto = $root.proto = (() => {
35395
35432
  if (typeof m.labelTimestamp === "number")
35396
35433
  d.labelTimestamp = o.longs === String ? String(m.labelTimestamp) : m.labelTimestamp;
35397
35434
  else
35398
- d.labelTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.labelTimestamp) : o.longs === Number ? new $util.LongBits(m.labelTimestamp.low >>> 0, m.labelTimestamp.high >>> 0).toNumber() : m.labelTimestamp;
35435
+ d.labelTimestamp = o.longs === String ? longToString(m.labelTimestamp) : o.longs === Number ? longToNumber(m.labelTimestamp) : m.labelTimestamp;
35399
35436
  if (o.oneofs)
35400
35437
  d._labelTimestamp = "labelTimestamp";
35401
35438
  }
@@ -37901,7 +37938,7 @@ export const proto = $root.proto = (() => {
37901
37938
  if (typeof m.timestamp === "number")
37902
37939
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
37903
37940
  else
37904
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
37941
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
37905
37942
  if (o.oneofs)
37906
37943
  d._timestamp = "timestamp";
37907
37944
  }
@@ -38159,7 +38196,7 @@ export const proto = $root.proto = (() => {
38159
38196
  if (typeof m.timestamp === "number")
38160
38197
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
38161
38198
  else
38162
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
38199
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
38163
38200
  if (o.oneofs)
38164
38201
  d._timestamp = "timestamp";
38165
38202
  }
@@ -39005,7 +39042,7 @@ export const proto = $root.proto = (() => {
39005
39042
  if (typeof m.fileLength === "number")
39006
39043
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
39007
39044
  else
39008
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
39045
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
39009
39046
  if (o.oneofs)
39010
39047
  d._fileLength = "fileLength";
39011
39048
  }
@@ -39038,7 +39075,7 @@ export const proto = $root.proto = (() => {
39038
39075
  if (typeof m.mediaKeyTimestamp === "number")
39039
39076
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
39040
39077
  else
39041
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
39078
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
39042
39079
  if (o.oneofs)
39043
39080
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
39044
39081
  }
@@ -40620,7 +40657,7 @@ export const proto = $root.proto = (() => {
40620
40657
  if (typeof m.durationSecs === "number")
40621
40658
  d.durationSecs = o.longs === String ? String(m.durationSecs) : m.durationSecs;
40622
40659
  else
40623
- d.durationSecs = o.longs === String ? $util.Long.prototype.toString.call(m.durationSecs) : o.longs === Number ? new $util.LongBits(m.durationSecs.low >>> 0, m.durationSecs.high >>> 0).toNumber() : m.durationSecs;
40660
+ d.durationSecs = o.longs === String ? longToString(m.durationSecs) : o.longs === Number ? longToNumber(m.durationSecs) : m.durationSecs;
40624
40661
  if (o.oneofs)
40625
40662
  d._durationSecs = "durationSecs";
40626
40663
  }
@@ -41199,7 +41236,7 @@ export const proto = $root.proto = (() => {
41199
41236
  if (typeof m.senderNotificationTimestampMs === "number")
41200
41237
  d.senderNotificationTimestampMs = o.longs === String ? String(m.senderNotificationTimestampMs) : m.senderNotificationTimestampMs;
41201
41238
  else
41202
- d.senderNotificationTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderNotificationTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderNotificationTimestampMs.low >>> 0, m.senderNotificationTimestampMs.high >>> 0).toNumber() : m.senderNotificationTimestampMs;
41239
+ d.senderNotificationTimestampMs = o.longs === String ? longToString(m.senderNotificationTimestampMs) : o.longs === Number ? longToNumber(m.senderNotificationTimestampMs) : m.senderNotificationTimestampMs;
41203
41240
  if (o.oneofs)
41204
41241
  d._senderNotificationTimestampMs = "senderNotificationTimestampMs";
41205
41242
  }
@@ -42451,7 +42488,7 @@ export const proto = $root.proto = (() => {
42451
42488
  if (typeof m.fileLength === "number")
42452
42489
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
42453
42490
  else
42454
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
42491
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
42455
42492
  if (o.oneofs)
42456
42493
  d._fileLength = "fileLength";
42457
42494
  }
@@ -42484,7 +42521,7 @@ export const proto = $root.proto = (() => {
42484
42521
  if (typeof m.mediaKeyTimestamp === "number")
42485
42522
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
42486
42523
  else
42487
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
42524
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
42488
42525
  if (o.oneofs)
42489
42526
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
42490
42527
  }
@@ -43275,7 +43312,7 @@ export const proto = $root.proto = (() => {
43275
43312
  if (typeof m.startTime === "number")
43276
43313
  d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
43277
43314
  else
43278
- d.startTime = o.longs === String ? $util.Long.prototype.toString.call(m.startTime) : o.longs === Number ? new $util.LongBits(m.startTime.low >>> 0, m.startTime.high >>> 0).toNumber() : m.startTime;
43315
+ d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
43279
43316
  if (o.oneofs)
43280
43317
  d._startTime = "startTime";
43281
43318
  }
@@ -43283,7 +43320,7 @@ export const proto = $root.proto = (() => {
43283
43320
  if (typeof m.endTime === "number")
43284
43321
  d.endTime = o.longs === String ? String(m.endTime) : m.endTime;
43285
43322
  else
43286
- d.endTime = o.longs === String ? $util.Long.prototype.toString.call(m.endTime) : o.longs === Number ? new $util.LongBits(m.endTime.low >>> 0, m.endTime.high >>> 0).toNumber() : m.endTime;
43323
+ d.endTime = o.longs === String ? longToString(m.endTime) : o.longs === Number ? longToNumber(m.endTime) : m.endTime;
43287
43324
  if (o.oneofs)
43288
43325
  d._endTime = "endTime";
43289
43326
  }
@@ -43306,7 +43343,7 @@ export const proto = $root.proto = (() => {
43306
43343
  if (typeof m.reminderOffsetSec === "number")
43307
43344
  d.reminderOffsetSec = o.longs === String ? String(m.reminderOffsetSec) : m.reminderOffsetSec;
43308
43345
  else
43309
- d.reminderOffsetSec = o.longs === String ? $util.Long.prototype.toString.call(m.reminderOffsetSec) : o.longs === Number ? new $util.LongBits(m.reminderOffsetSec.low >>> 0, m.reminderOffsetSec.high >>> 0).toNumber() : m.reminderOffsetSec;
43346
+ d.reminderOffsetSec = o.longs === String ? longToString(m.reminderOffsetSec) : o.longs === Number ? longToNumber(m.reminderOffsetSec) : m.reminderOffsetSec;
43310
43347
  if (o.oneofs)
43311
43348
  d._reminderOffsetSec = "reminderOffsetSec";
43312
43349
  }
@@ -43462,7 +43499,7 @@ export const proto = $root.proto = (() => {
43462
43499
  if (typeof m.timestampMs === "number")
43463
43500
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
43464
43501
  else
43465
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
43502
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
43466
43503
  if (o.oneofs)
43467
43504
  d._timestampMs = "timestampMs";
43468
43505
  }
@@ -44289,7 +44326,7 @@ export const proto = $root.proto = (() => {
44289
44326
  if (typeof m.mediaKeyTimestamp === "number")
44290
44327
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
44291
44328
  else
44292
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
44329
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
44293
44330
  if (o.oneofs)
44294
44331
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
44295
44332
  }
@@ -44819,7 +44856,7 @@ export const proto = $root.proto = (() => {
44819
44856
  if (typeof m.inviteExpiration === "number")
44820
44857
  d.inviteExpiration = o.longs === String ? String(m.inviteExpiration) : m.inviteExpiration;
44821
44858
  else
44822
- d.inviteExpiration = o.longs === String ? $util.Long.prototype.toString.call(m.inviteExpiration) : o.longs === Number ? new $util.LongBits(m.inviteExpiration.low >>> 0, m.inviteExpiration.high >>> 0).toNumber() : m.inviteExpiration;
44859
+ d.inviteExpiration = o.longs === String ? longToString(m.inviteExpiration) : o.longs === Number ? longToNumber(m.inviteExpiration) : m.inviteExpiration;
44823
44860
  if (o.oneofs)
44824
44861
  d._inviteExpiration = "inviteExpiration";
44825
44862
  }
@@ -45365,7 +45402,7 @@ export const proto = $root.proto = (() => {
45365
45402
  if (typeof m.amount1000 === "number")
45366
45403
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
45367
45404
  else
45368
- d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber() : m.amount1000;
45405
+ d.amount1000 = o.longs === String ? longToString(m.amount1000) : o.longs === Number ? longToNumber(m.amount1000) : m.amount1000;
45369
45406
  if (o.oneofs)
45370
45407
  d._amount1000 = "amount1000";
45371
45408
  }
@@ -45845,7 +45882,7 @@ export const proto = $root.proto = (() => {
45845
45882
  if (typeof m.timestamp === "number")
45846
45883
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
45847
45884
  else
45848
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
45885
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
45849
45886
  if (o.oneofs)
45850
45887
  d._timestamp = "timestamp";
45851
45888
  }
@@ -46333,7 +46370,7 @@ export const proto = $root.proto = (() => {
46333
46370
  if (typeof m.fileLength === "number")
46334
46371
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
46335
46372
  else
46336
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
46373
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
46337
46374
  if (o.oneofs)
46338
46375
  d._fileLength = "fileLength";
46339
46376
  }
@@ -46376,7 +46413,7 @@ export const proto = $root.proto = (() => {
46376
46413
  if (typeof m.oldestMsgInChunkTimestampSec === "number")
46377
46414
  d.oldestMsgInChunkTimestampSec = o.longs === String ? String(m.oldestMsgInChunkTimestampSec) : m.oldestMsgInChunkTimestampSec;
46378
46415
  else
46379
- d.oldestMsgInChunkTimestampSec = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMsgInChunkTimestampSec) : o.longs === Number ? new $util.LongBits(m.oldestMsgInChunkTimestampSec.low >>> 0, m.oldestMsgInChunkTimestampSec.high >>> 0).toNumber() : m.oldestMsgInChunkTimestampSec;
46416
+ d.oldestMsgInChunkTimestampSec = o.longs === String ? longToString(m.oldestMsgInChunkTimestampSec) : o.longs === Number ? longToNumber(m.oldestMsgInChunkTimestampSec) : m.oldestMsgInChunkTimestampSec;
46380
46417
  if (o.oneofs)
46381
46418
  d._oldestMsgInChunkTimestampSec = "oldestMsgInChunkTimestampSec";
46382
46419
  }
@@ -47126,7 +47163,7 @@ export const proto = $root.proto = (() => {
47126
47163
  if (typeof m.fileLength === "number")
47127
47164
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
47128
47165
  else
47129
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
47166
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
47130
47167
  if (o.oneofs)
47131
47168
  d._fileLength = "fileLength";
47132
47169
  }
@@ -47165,7 +47202,7 @@ export const proto = $root.proto = (() => {
47165
47202
  if (typeof m.mediaKeyTimestamp === "number")
47166
47203
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
47167
47204
  else
47168
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
47205
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
47169
47206
  if (o.oneofs)
47170
47207
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
47171
47208
  }
@@ -49461,7 +49498,7 @@ export const proto = $root.proto = (() => {
49461
49498
  if (typeof m.attachmentMediaKeyTimestamp === "number")
49462
49499
  d.attachmentMediaKeyTimestamp = o.longs === String ? String(m.attachmentMediaKeyTimestamp) : m.attachmentMediaKeyTimestamp;
49463
49500
  else
49464
- d.attachmentMediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.attachmentMediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.attachmentMediaKeyTimestamp.low >>> 0, m.attachmentMediaKeyTimestamp.high >>> 0).toNumber() : m.attachmentMediaKeyTimestamp;
49501
+ d.attachmentMediaKeyTimestamp = o.longs === String ? longToString(m.attachmentMediaKeyTimestamp) : o.longs === Number ? longToNumber(m.attachmentMediaKeyTimestamp) : m.attachmentMediaKeyTimestamp;
49465
49502
  if (o.oneofs)
49466
49503
  d._attachmentMediaKeyTimestamp = "attachmentMediaKeyTimestamp";
49467
49504
  }
@@ -49647,7 +49684,7 @@ export const proto = $root.proto = (() => {
49647
49684
  if (typeof m.timestampMs === "number")
49648
49685
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
49649
49686
  else
49650
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
49687
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
49651
49688
  if (o.oneofs)
49652
49689
  d._timestampMs = "timestampMs";
49653
49690
  }
@@ -51494,7 +51531,7 @@ export const proto = $root.proto = (() => {
51494
51531
  if (typeof m.sequenceNumber === "number")
51495
51532
  d.sequenceNumber = o.longs === String ? String(m.sequenceNumber) : m.sequenceNumber;
51496
51533
  else
51497
- d.sequenceNumber = o.longs === String ? $util.Long.prototype.toString.call(m.sequenceNumber) : o.longs === Number ? new $util.LongBits(m.sequenceNumber.low >>> 0, m.sequenceNumber.high >>> 0).toNumber() : m.sequenceNumber;
51534
+ d.sequenceNumber = o.longs === String ? longToString(m.sequenceNumber) : o.longs === Number ? longToNumber(m.sequenceNumber) : m.sequenceNumber;
51498
51535
  if (o.oneofs)
51499
51536
  d._sequenceNumber = "sequenceNumber";
51500
51537
  }
@@ -52097,7 +52134,7 @@ export const proto = $root.proto = (() => {
52097
52134
  if (typeof m.mediaKeyTimestamp === "number")
52098
52135
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52099
52136
  else
52100
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
52137
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52101
52138
  if (o.oneofs)
52102
52139
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
52103
52140
  }
@@ -52370,7 +52407,7 @@ export const proto = $root.proto = (() => {
52370
52407
  if (typeof m.mediaKeyTimestamp === "number")
52371
52408
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52372
52409
  else
52373
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
52410
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52374
52411
  if (o.oneofs)
52375
52412
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
52376
52413
  }
@@ -52530,7 +52567,7 @@ export const proto = $root.proto = (() => {
52530
52567
  if (typeof m.oldestMessageTimestamp === "number")
52531
52568
  d.oldestMessageTimestamp = o.longs === String ? String(m.oldestMessageTimestamp) : m.oldestMessageTimestamp;
52532
52569
  else
52533
- d.oldestMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.oldestMessageTimestamp.low >>> 0, m.oldestMessageTimestamp.high >>> 0).toNumber() : m.oldestMessageTimestamp;
52570
+ d.oldestMessageTimestamp = o.longs === String ? longToString(m.oldestMessageTimestamp) : o.longs === Number ? longToNumber(m.oldestMessageTimestamp) : m.oldestMessageTimestamp;
52534
52571
  if (o.oneofs)
52535
52572
  d._oldestMessageTimestamp = "oldestMessageTimestamp";
52536
52573
  }
@@ -52538,7 +52575,7 @@ export const proto = $root.proto = (() => {
52538
52575
  if (typeof m.messageCount === "number")
52539
52576
  d.messageCount = o.longs === String ? String(m.messageCount) : m.messageCount;
52540
52577
  else
52541
- d.messageCount = o.longs === String ? $util.Long.prototype.toString.call(m.messageCount) : o.longs === Number ? new $util.LongBits(m.messageCount.low >>> 0, m.messageCount.high >>> 0).toNumber() : m.messageCount;
52578
+ d.messageCount = o.longs === String ? longToString(m.messageCount) : o.longs === Number ? longToNumber(m.messageCount) : m.messageCount;
52542
52579
  if (o.oneofs)
52543
52580
  d._messageCount = "messageCount";
52544
52581
  }
@@ -52854,7 +52891,7 @@ export const proto = $root.proto = (() => {
52854
52891
  if (typeof m.inviteExpiration === "number")
52855
52892
  d.inviteExpiration = o.longs === String ? String(m.inviteExpiration) : m.inviteExpiration;
52856
52893
  else
52857
- d.inviteExpiration = o.longs === String ? $util.Long.prototype.toString.call(m.inviteExpiration) : o.longs === Number ? new $util.LongBits(m.inviteExpiration.low >>> 0, m.inviteExpiration.high >>> 0).toNumber() : m.inviteExpiration;
52894
+ d.inviteExpiration = o.longs === String ? longToString(m.inviteExpiration) : o.longs === Number ? longToNumber(m.inviteExpiration) : m.inviteExpiration;
52858
52895
  if (o.oneofs)
52859
52896
  d._inviteExpiration = "inviteExpiration";
52860
52897
  }
@@ -53436,7 +53473,7 @@ export const proto = $root.proto = (() => {
53436
53473
  if (typeof m.totalAmount1000 === "number")
53437
53474
  d.totalAmount1000 = o.longs === String ? String(m.totalAmount1000) : m.totalAmount1000;
53438
53475
  else
53439
- d.totalAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.totalAmount1000) : o.longs === Number ? new $util.LongBits(m.totalAmount1000.low >>> 0, m.totalAmount1000.high >>> 0).toNumber() : m.totalAmount1000;
53476
+ d.totalAmount1000 = o.longs === String ? longToString(m.totalAmount1000) : o.longs === Number ? longToNumber(m.totalAmount1000) : m.totalAmount1000;
53440
53477
  if (o.oneofs)
53441
53478
  d._totalAmount1000 = "totalAmount1000";
53442
53479
  }
@@ -53745,7 +53782,7 @@ export const proto = $root.proto = (() => {
53745
53782
  if (typeof m.expiryTimestamp === "number")
53746
53783
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
53747
53784
  else
53748
- d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber() : m.expiryTimestamp;
53785
+ d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp) : o.longs === Number ? longToNumber(m.expiryTimestamp) : m.expiryTimestamp;
53749
53786
  if (o.oneofs)
53750
53787
  d._expiryTimestamp = "expiryTimestamp";
53751
53788
  }
@@ -55164,7 +55201,7 @@ export const proto = $root.proto = (() => {
55164
55201
  if (typeof m.oldestMsgTimestampMs === "number")
55165
55202
  d.oldestMsgTimestampMs = o.longs === String ? String(m.oldestMsgTimestampMs) : m.oldestMsgTimestampMs;
55166
55203
  else
55167
- d.oldestMsgTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMsgTimestampMs) : o.longs === Number ? new $util.LongBits(m.oldestMsgTimestampMs.low >>> 0, m.oldestMsgTimestampMs.high >>> 0).toNumber() : m.oldestMsgTimestampMs;
55204
+ d.oldestMsgTimestampMs = o.longs === String ? longToString(m.oldestMsgTimestampMs) : o.longs === Number ? longToNumber(m.oldestMsgTimestampMs) : m.oldestMsgTimestampMs;
55168
55205
  if (o.oneofs)
55169
55206
  d._oldestMsgTimestampMs = "oldestMsgTimestampMs";
55170
55207
  }
@@ -55575,7 +55612,7 @@ export const proto = $root.proto = (() => {
55575
55612
  if (typeof m.timestamp === "number")
55576
55613
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
55577
55614
  else
55578
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
55615
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
55579
55616
  if (o.oneofs)
55580
55617
  d._timestamp = "timestamp";
55581
55618
  }
@@ -57164,7 +57201,7 @@ export const proto = $root.proto = (() => {
57164
57201
  if (typeof m.mediaKeyTimestampMs === "number")
57165
57202
  d.mediaKeyTimestampMs = o.longs === String ? String(m.mediaKeyTimestampMs) : m.mediaKeyTimestampMs;
57166
57203
  else
57167
- d.mediaKeyTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestampMs) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestampMs.low >>> 0, m.mediaKeyTimestampMs.high >>> 0).toNumber() : m.mediaKeyTimestampMs;
57204
+ d.mediaKeyTimestampMs = o.longs === String ? longToString(m.mediaKeyTimestampMs) : o.longs === Number ? longToNumber(m.mediaKeyTimestampMs) : m.mediaKeyTimestampMs;
57168
57205
  if (o.oneofs)
57169
57206
  d._mediaKeyTimestampMs = "mediaKeyTimestampMs";
57170
57207
  }
@@ -57780,7 +57817,7 @@ export const proto = $root.proto = (() => {
57780
57817
  if (typeof m.senderTimestampMs === "number")
57781
57818
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
57782
57819
  else
57783
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
57820
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
57784
57821
  if (o.oneofs)
57785
57822
  d._senderTimestampMs = "senderTimestampMs";
57786
57823
  }
@@ -58697,7 +58734,7 @@ export const proto = $root.proto = (() => {
58697
58734
  if (typeof m.optionVoteCount === "number")
58698
58735
  d.optionVoteCount = o.longs === String ? String(m.optionVoteCount) : m.optionVoteCount;
58699
58736
  else
58700
- d.optionVoteCount = o.longs === String ? $util.Long.prototype.toString.call(m.optionVoteCount) : o.longs === Number ? new $util.LongBits(m.optionVoteCount.low >>> 0, m.optionVoteCount.high >>> 0).toNumber() : m.optionVoteCount;
58737
+ d.optionVoteCount = o.longs === String ? longToString(m.optionVoteCount) : o.longs === Number ? longToNumber(m.optionVoteCount) : m.optionVoteCount;
58701
58738
  if (o.oneofs)
58702
58739
  d._optionVoteCount = "optionVoteCount";
58703
58740
  }
@@ -58874,7 +58911,7 @@ export const proto = $root.proto = (() => {
58874
58911
  if (typeof m.senderTimestampMs === "number")
58875
58912
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
58876
58913
  else
58877
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
58914
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
58878
58915
  if (o.oneofs)
58879
58916
  d._senderTimestampMs = "senderTimestampMs";
58880
58917
  }
@@ -59667,7 +59704,7 @@ export const proto = $root.proto = (() => {
59667
59704
  if (typeof m.priceAmount1000 === "number")
59668
59705
  d.priceAmount1000 = o.longs === String ? String(m.priceAmount1000) : m.priceAmount1000;
59669
59706
  else
59670
- d.priceAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.priceAmount1000) : o.longs === Number ? new $util.LongBits(m.priceAmount1000.low >>> 0, m.priceAmount1000.high >>> 0).toNumber() : m.priceAmount1000;
59707
+ d.priceAmount1000 = o.longs === String ? longToString(m.priceAmount1000) : o.longs === Number ? longToNumber(m.priceAmount1000) : m.priceAmount1000;
59671
59708
  if (o.oneofs)
59672
59709
  d._priceAmount1000 = "priceAmount1000";
59673
59710
  }
@@ -59695,7 +59732,7 @@ export const proto = $root.proto = (() => {
59695
59732
  if (typeof m.salePriceAmount1000 === "number")
59696
59733
  d.salePriceAmount1000 = o.longs === String ? String(m.salePriceAmount1000) : m.salePriceAmount1000;
59697
59734
  else
59698
- d.salePriceAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.salePriceAmount1000) : o.longs === Number ? new $util.LongBits(m.salePriceAmount1000.low >>> 0, m.salePriceAmount1000.high >>> 0).toNumber() : m.salePriceAmount1000;
59735
+ d.salePriceAmount1000 = o.longs === String ? longToString(m.salePriceAmount1000) : o.longs === Number ? longToNumber(m.salePriceAmount1000) : m.salePriceAmount1000;
59699
59736
  if (o.oneofs)
59700
59737
  d._salePriceAmount1000 = "salePriceAmount1000";
59701
59738
  }
@@ -60339,7 +60376,7 @@ export const proto = $root.proto = (() => {
60339
60376
  if (typeof m.ephemeralSettingTimestamp === "number")
60340
60377
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
60341
60378
  else
60342
- d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
60379
+ d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
60343
60380
  if (o.oneofs)
60344
60381
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
60345
60382
  }
@@ -60382,7 +60419,7 @@ export const proto = $root.proto = (() => {
60382
60419
  if (typeof m.timestampMs === "number")
60383
60420
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
60384
60421
  else
60385
- d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
60422
+ d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
60386
60423
  if (o.oneofs)
60387
60424
  d._timestampMs = "timestampMs";
60388
60425
  }
@@ -60747,7 +60784,7 @@ export const proto = $root.proto = (() => {
60747
60784
  if (typeof m.senderTimestampMs === "number")
60748
60785
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
60749
60786
  else
60750
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
60787
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
60751
60788
  if (o.oneofs)
60752
60789
  d._senderTimestampMs = "senderTimestampMs";
60753
60790
  }
@@ -60959,7 +60996,7 @@ export const proto = $root.proto = (() => {
60959
60996
  if (typeof m.amount1000 === "number")
60960
60997
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
60961
60998
  else
60962
- d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber(true) : m.amount1000;
60999
+ d.amount1000 = o.longs === String ? longToString(m.amount1000, true) : o.longs === Number ? longToNumber(m.amount1000, true) : m.amount1000;
60963
61000
  if (o.oneofs)
60964
61001
  d._amount1000 = "amount1000";
60965
61002
  }
@@ -60977,7 +61014,7 @@ export const proto = $root.proto = (() => {
60977
61014
  if (typeof m.expiryTimestamp === "number")
60978
61015
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
60979
61016
  else
60980
- d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber() : m.expiryTimestamp;
61017
+ d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp) : o.longs === Number ? longToNumber(m.expiryTimestamp) : m.expiryTimestamp;
60981
61018
  if (o.oneofs)
60982
61019
  d._expiryTimestamp = "expiryTimestamp";
60983
61020
  }
@@ -61332,7 +61369,7 @@ export const proto = $root.proto = (() => {
61332
61369
  if (typeof m.scheduledTimestampMs === "number")
61333
61370
  d.scheduledTimestampMs = o.longs === String ? String(m.scheduledTimestampMs) : m.scheduledTimestampMs;
61334
61371
  else
61335
- d.scheduledTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.scheduledTimestampMs) : o.longs === Number ? new $util.LongBits(m.scheduledTimestampMs.low >>> 0, m.scheduledTimestampMs.high >>> 0).toNumber() : m.scheduledTimestampMs;
61372
+ d.scheduledTimestampMs = o.longs === String ? longToString(m.scheduledTimestampMs) : o.longs === Number ? longToNumber(m.scheduledTimestampMs) : m.scheduledTimestampMs;
61336
61373
  if (o.oneofs)
61337
61374
  d._scheduledTimestampMs = "scheduledTimestampMs";
61338
61375
  }
@@ -63046,7 +63083,7 @@ export const proto = $root.proto = (() => {
63046
63083
  if (typeof m.fileLength === "number")
63047
63084
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
63048
63085
  else
63049
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
63086
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
63050
63087
  if (o.oneofs)
63051
63088
  d._fileLength = "fileLength";
63052
63089
  }
@@ -63054,7 +63091,7 @@ export const proto = $root.proto = (() => {
63054
63091
  if (typeof m.mediaKeyTimestamp === "number")
63055
63092
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63056
63093
  else
63057
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
63094
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63058
63095
  if (o.oneofs)
63059
63096
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
63060
63097
  }
@@ -63087,7 +63124,7 @@ export const proto = $root.proto = (() => {
63087
63124
  if (typeof m.stickerSentTs === "number")
63088
63125
  d.stickerSentTs = o.longs === String ? String(m.stickerSentTs) : m.stickerSentTs;
63089
63126
  else
63090
- d.stickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.stickerSentTs) : o.longs === Number ? new $util.LongBits(m.stickerSentTs.low >>> 0, m.stickerSentTs.high >>> 0).toNumber() : m.stickerSentTs;
63127
+ d.stickerSentTs = o.longs === String ? longToString(m.stickerSentTs) : o.longs === Number ? longToNumber(m.stickerSentTs) : m.stickerSentTs;
63091
63128
  if (o.oneofs)
63092
63129
  d._stickerSentTs = "stickerSentTs";
63093
63130
  }
@@ -63624,7 +63661,7 @@ export const proto = $root.proto = (() => {
63624
63661
  if (typeof m.fileLength === "number")
63625
63662
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
63626
63663
  else
63627
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
63664
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
63628
63665
  if (o.oneofs)
63629
63666
  d._fileLength = "fileLength";
63630
63667
  }
@@ -63667,7 +63704,7 @@ export const proto = $root.proto = (() => {
63667
63704
  if (typeof m.mediaKeyTimestamp === "number")
63668
63705
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63669
63706
  else
63670
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
63707
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63671
63708
  if (o.oneofs)
63672
63709
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
63673
63710
  }
@@ -63710,7 +63747,7 @@ export const proto = $root.proto = (() => {
63710
63747
  if (typeof m.stickerPackSize === "number")
63711
63748
  d.stickerPackSize = o.longs === String ? String(m.stickerPackSize) : m.stickerPackSize;
63712
63749
  else
63713
- d.stickerPackSize = o.longs === String ? $util.Long.prototype.toString.call(m.stickerPackSize) : o.longs === Number ? new $util.LongBits(m.stickerPackSize.low >>> 0, m.stickerPackSize.high >>> 0).toNumber(true) : m.stickerPackSize;
63750
+ d.stickerPackSize = o.longs === String ? longToString(m.stickerPackSize, true) : o.longs === Number ? longToNumber(m.stickerPackSize, true) : m.stickerPackSize;
63714
63751
  if (o.oneofs)
63715
63752
  d._stickerPackSize = "stickerPackSize";
63716
63753
  }
@@ -64072,7 +64109,7 @@ export const proto = $root.proto = (() => {
64072
64109
  if (typeof m.requestTimestamp === "number")
64073
64110
  d.requestTimestamp = o.longs === String ? String(m.requestTimestamp) : m.requestTimestamp;
64074
64111
  else
64075
- d.requestTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.requestTimestamp) : o.longs === Number ? new $util.LongBits(m.requestTimestamp.low >>> 0, m.requestTimestamp.high >>> 0).toNumber() : m.requestTimestamp;
64112
+ d.requestTimestamp = o.longs === String ? longToString(m.requestTimestamp) : o.longs === Number ? longToNumber(m.requestTimestamp) : m.requestTimestamp;
64076
64113
  if (o.oneofs)
64077
64114
  d._requestTimestamp = "requestTimestamp";
64078
64115
  }
@@ -65863,7 +65900,7 @@ export const proto = $root.proto = (() => {
65863
65900
  if (typeof m.fileLength === "number")
65864
65901
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
65865
65902
  else
65866
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
65903
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
65867
65904
  if (o.oneofs)
65868
65905
  d._fileLength = "fileLength";
65869
65906
  }
@@ -65917,7 +65954,7 @@ export const proto = $root.proto = (() => {
65917
65954
  if (typeof m.mediaKeyTimestamp === "number")
65918
65955
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
65919
65956
  else
65920
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
65957
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
65921
65958
  if (o.oneofs)
65922
65959
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
65923
65960
  }
@@ -65992,7 +66029,7 @@ export const proto = $root.proto = (() => {
65992
66029
  if (typeof m.motionPhotoPresentationOffsetMs === "number")
65993
66030
  d.motionPhotoPresentationOffsetMs = o.longs === String ? String(m.motionPhotoPresentationOffsetMs) : m.motionPhotoPresentationOffsetMs;
65994
66031
  else
65995
- d.motionPhotoPresentationOffsetMs = o.longs === String ? $util.Long.prototype.toString.call(m.motionPhotoPresentationOffsetMs) : o.longs === Number ? new $util.LongBits(m.motionPhotoPresentationOffsetMs.low >>> 0, m.motionPhotoPresentationOffsetMs.high >>> 0).toNumber(true) : m.motionPhotoPresentationOffsetMs;
66032
+ d.motionPhotoPresentationOffsetMs = o.longs === String ? longToString(m.motionPhotoPresentationOffsetMs, true) : o.longs === Number ? longToNumber(m.motionPhotoPresentationOffsetMs, true) : m.motionPhotoPresentationOffsetMs;
65996
66033
  if (o.oneofs)
65997
66034
  d._motionPhotoPresentationOffsetMs = "motionPhotoPresentationOffsetMs";
65998
66035
  }
@@ -66315,7 +66352,7 @@ export const proto = $root.proto = (() => {
66315
66352
  if (typeof m.senderTimestampMs === "number")
66316
66353
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
66317
66354
  else
66318
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
66355
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
66319
66356
  if (o.oneofs)
66320
66357
  d._senderTimestampMs = "senderTimestampMs";
66321
66358
  }
@@ -66323,7 +66360,7 @@ export const proto = $root.proto = (() => {
66323
66360
  if (typeof m.serverTimestampMs === "number")
66324
66361
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
66325
66362
  else
66326
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
66363
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
66327
66364
  if (o.oneofs)
66328
66365
  d._serverTimestampMs = "serverTimestampMs";
66329
66366
  }
@@ -67599,7 +67636,7 @@ export const proto = $root.proto = (() => {
67599
67636
  if (typeof m.value === "number")
67600
67637
  d.value = o.longs === String ? String(m.value) : m.value;
67601
67638
  else
67602
- d.value = o.longs === String ? $util.Long.prototype.toString.call(m.value) : o.longs === Number ? new $util.LongBits(m.value.low >>> 0, m.value.high >>> 0).toNumber() : m.value;
67639
+ d.value = o.longs === String ? longToString(m.value) : o.longs === Number ? longToNumber(m.value) : m.value;
67603
67640
  if (o.oneofs)
67604
67641
  d._value = "value";
67605
67642
  }
@@ -68548,7 +68585,7 @@ export const proto = $root.proto = (() => {
68548
68585
  if (typeof m.senderTimestampMs === "number")
68549
68586
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
68550
68587
  else
68551
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
68588
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
68552
68589
  if (o.oneofs)
68553
68590
  d._senderTimestampMs = "senderTimestampMs";
68554
68591
  }
@@ -68626,7 +68663,7 @@ export const proto = $root.proto = (() => {
68626
68663
  if (typeof m.eventStartTime === "number")
68627
68664
  d.eventStartTime = o.longs === String ? String(m.eventStartTime) : m.eventStartTime;
68628
68665
  else
68629
- d.eventStartTime = o.longs === String ? $util.Long.prototype.toString.call(m.eventStartTime) : o.longs === Number ? new $util.LongBits(m.eventStartTime.low >>> 0, m.eventStartTime.high >>> 0).toNumber() : m.eventStartTime;
68666
+ d.eventStartTime = o.longs === String ? longToString(m.eventStartTime) : o.longs === Number ? longToNumber(m.eventStartTime) : m.eventStartTime;
68630
68667
  if (o.oneofs)
68631
68668
  d._eventStartTime = "eventStartTime";
68632
68669
  }
@@ -68639,7 +68676,7 @@ export const proto = $root.proto = (() => {
68639
68676
  if (typeof m.eventEndTime === "number")
68640
68677
  d.eventEndTime = o.longs === String ? String(m.eventEndTime) : m.eventEndTime;
68641
68678
  else
68642
- d.eventEndTime = o.longs === String ? $util.Long.prototype.toString.call(m.eventEndTime) : o.longs === Number ? new $util.LongBits(m.eventEndTime.low >>> 0, m.eventEndTime.high >>> 0).toNumber() : m.eventEndTime;
68679
+ d.eventEndTime = o.longs === String ? longToString(m.eventEndTime) : o.longs === Number ? longToNumber(m.eventEndTime) : m.eventEndTime;
68643
68680
  if (o.oneofs)
68644
68681
  d._eventEndTime = "eventEndTime";
68645
68682
  }
@@ -69684,7 +69721,7 @@ export const proto = $root.proto = (() => {
69684
69721
  if (typeof m.expires === "number")
69685
69722
  d.expires = o.longs === String ? String(m.expires) : m.expires;
69686
69723
  else
69687
- d.expires = o.longs === String ? $util.Long.prototype.toString.call(m.expires) : o.longs === Number ? new $util.LongBits(m.expires.low >>> 0, m.expires.high >>> 0).toNumber(true) : m.expires;
69724
+ d.expires = o.longs === String ? longToString(m.expires, true) : o.longs === Number ? longToNumber(m.expires, true) : m.expires;
69688
69725
  if (o.oneofs)
69689
69726
  d._expires = "expires";
69690
69727
  }
@@ -69857,7 +69894,7 @@ export const proto = $root.proto = (() => {
69857
69894
  if (typeof m.messageTimestamp === "number")
69858
69895
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
69859
69896
  else
69860
- d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber(true) : m.messageTimestamp;
69897
+ d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp, true) : o.longs === Number ? longToNumber(m.messageTimestamp, true) : m.messageTimestamp;
69861
69898
  if (o.oneofs)
69862
69899
  d._messageTimestamp = "messageTimestamp";
69863
69900
  }
@@ -70347,7 +70384,7 @@ export const proto = $root.proto = (() => {
70347
70384
  if (typeof m.leaveTs === "number")
70348
70385
  d.leaveTs = o.longs === String ? String(m.leaveTs) : m.leaveTs;
70349
70386
  else
70350
- d.leaveTs = o.longs === String ? $util.Long.prototype.toString.call(m.leaveTs) : o.longs === Number ? new $util.LongBits(m.leaveTs.low >>> 0, m.leaveTs.high >>> 0).toNumber(true) : m.leaveTs;
70387
+ d.leaveTs = o.longs === String ? longToString(m.leaveTs, true) : o.longs === Number ? longToNumber(m.leaveTs, true) : m.leaveTs;
70351
70388
  if (o.oneofs)
70352
70389
  d._leaveTs = "leaveTs";
70353
70390
  }
@@ -71121,7 +71158,7 @@ export const proto = $root.proto = (() => {
71121
71158
  if (typeof m.fileLength === "number")
71122
71159
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
71123
71160
  else
71124
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
71161
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
71125
71162
  if (o.oneofs)
71126
71163
  d._fileLength = "fileLength";
71127
71164
  }
@@ -71334,7 +71371,7 @@ export const proto = $root.proto = (() => {
71334
71371
  if (typeof m.mediaKeyTimestamp === "number")
71335
71372
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
71336
71373
  else
71337
- d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
71374
+ d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
71338
71375
  if (o.oneofs)
71339
71376
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
71340
71377
  }
@@ -71873,7 +71910,7 @@ export const proto = $root.proto = (() => {
71873
71910
  if (typeof m.amount1000 === "number")
71874
71911
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
71875
71912
  else
71876
- d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber(true) : m.amount1000;
71913
+ d.amount1000 = o.longs === String ? longToString(m.amount1000, true) : o.longs === Number ? longToNumber(m.amount1000, true) : m.amount1000;
71877
71914
  if (o.oneofs)
71878
71915
  d._amount1000 = "amount1000";
71879
71916
  }
@@ -71891,7 +71928,7 @@ export const proto = $root.proto = (() => {
71891
71928
  if (typeof m.transactionTimestamp === "number")
71892
71929
  d.transactionTimestamp = o.longs === String ? String(m.transactionTimestamp) : m.transactionTimestamp;
71893
71930
  else
71894
- d.transactionTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.transactionTimestamp) : o.longs === Number ? new $util.LongBits(m.transactionTimestamp.low >>> 0, m.transactionTimestamp.high >>> 0).toNumber(true) : m.transactionTimestamp;
71931
+ d.transactionTimestamp = o.longs === String ? longToString(m.transactionTimestamp, true) : o.longs === Number ? longToNumber(m.transactionTimestamp, true) : m.transactionTimestamp;
71895
71932
  if (o.oneofs)
71896
71933
  d._transactionTimestamp = "transactionTimestamp";
71897
71934
  }
@@ -71904,7 +71941,7 @@ export const proto = $root.proto = (() => {
71904
71941
  if (typeof m.expiryTimestamp === "number")
71905
71942
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
71906
71943
  else
71907
- d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber(true) : m.expiryTimestamp;
71944
+ d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp, true) : o.longs === Number ? longToNumber(m.expiryTimestamp, true) : m.expiryTimestamp;
71908
71945
  if (o.oneofs)
71909
71946
  d._expiryTimestamp = "expiryTimestamp";
71910
71947
  }
@@ -72440,7 +72477,7 @@ export const proto = $root.proto = (() => {
72440
72477
  if (typeof m.senderTimestampMs === "number")
72441
72478
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
72442
72479
  else
72443
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
72480
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
72444
72481
  if (o.oneofs)
72445
72482
  d._senderTimestampMs = "senderTimestampMs";
72446
72483
  }
@@ -72448,7 +72485,7 @@ export const proto = $root.proto = (() => {
72448
72485
  if (typeof m.serverTimestampMs === "number")
72449
72486
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
72450
72487
  else
72451
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
72488
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
72452
72489
  if (o.oneofs)
72453
72490
  d._serverTimestampMs = "serverTimestampMs";
72454
72491
  }
@@ -72998,7 +73035,7 @@ export const proto = $root.proto = (() => {
72998
73035
  if (typeof m.senderTimestampMs === "number")
72999
73036
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
73000
73037
  else
73001
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
73038
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
73002
73039
  if (o.oneofs)
73003
73040
  d._senderTimestampMs = "senderTimestampMs";
73004
73041
  }
@@ -73006,7 +73043,7 @@ export const proto = $root.proto = (() => {
73006
73043
  if (typeof m.serverTimestampMs === "number")
73007
73044
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
73008
73045
  else
73009
- d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
73046
+ d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
73010
73047
  if (o.oneofs)
73011
73048
  d._serverTimestampMs = "serverTimestampMs";
73012
73049
  }
@@ -73821,7 +73858,7 @@ export const proto = $root.proto = (() => {
73821
73858
  if (typeof m.fileLength === "number")
73822
73859
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
73823
73860
  else
73824
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
73861
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
73825
73862
  if (o.oneofs)
73826
73863
  d._fileLength = "fileLength";
73827
73864
  }
@@ -74360,7 +74397,7 @@ export const proto = $root.proto = (() => {
74360
74397
  if (typeof m.senderTimestampMs === "number")
74361
74398
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
74362
74399
  else
74363
- d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
74400
+ d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
74364
74401
  if (o.oneofs)
74365
74402
  d._senderTimestampMs = "senderTimestampMs";
74366
74403
  }
@@ -77487,7 +77524,7 @@ export const proto = $root.proto = (() => {
77487
77524
  if (typeof m.timestamp === "number")
77488
77525
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
77489
77526
  else
77490
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
77527
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
77491
77528
  if (o.oneofs)
77492
77529
  d._timestamp = "timestamp";
77493
77530
  }
@@ -78990,13 +79027,13 @@ export const proto = $root.proto = (() => {
78990
79027
  if (typeof m.campaignId === "number")
78991
79028
  d.campaignId = o.longs === String ? String(m.campaignId) : m.campaignId;
78992
79029
  else
78993
- d.campaignId = o.longs === String ? $util.Long.prototype.toString.call(m.campaignId) : o.longs === Number ? new $util.LongBits(m.campaignId.low >>> 0, m.campaignId.high >>> 0).toNumber(true) : m.campaignId;
79030
+ d.campaignId = o.longs === String ? longToString(m.campaignId, true) : o.longs === Number ? longToNumber(m.campaignId, true) : m.campaignId;
78994
79031
  }
78995
79032
  if (m.campaignExpirationTimestamp != null && m.hasOwnProperty("campaignExpirationTimestamp")) {
78996
79033
  if (typeof m.campaignExpirationTimestamp === "number")
78997
79034
  d.campaignExpirationTimestamp = o.longs === String ? String(m.campaignExpirationTimestamp) : m.campaignExpirationTimestamp;
78998
79035
  else
78999
- d.campaignExpirationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.campaignExpirationTimestamp) : o.longs === Number ? new $util.LongBits(m.campaignExpirationTimestamp.low >>> 0, m.campaignExpirationTimestamp.high >>> 0).toNumber(true) : m.campaignExpirationTimestamp;
79036
+ d.campaignExpirationTimestamp = o.longs === String ? longToString(m.campaignExpirationTimestamp, true) : o.longs === Number ? longToNumber(m.campaignExpirationTimestamp, true) : m.campaignExpirationTimestamp;
79000
79037
  if (o.oneofs)
79001
79038
  d._campaignExpirationTimestamp = "campaignExpirationTimestamp";
79002
79039
  }
@@ -79358,7 +79395,7 @@ export const proto = $root.proto = (() => {
79358
79395
  if (typeof m.fileLength === "number")
79359
79396
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
79360
79397
  else
79361
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
79398
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
79362
79399
  if (o.oneofs)
79363
79400
  d._fileLength = "fileLength";
79364
79401
  }
@@ -79371,7 +79408,7 @@ export const proto = $root.proto = (() => {
79371
79408
  if (typeof m.lastStickerSentTs === "number")
79372
79409
  d.lastStickerSentTs = o.longs === String ? String(m.lastStickerSentTs) : m.lastStickerSentTs;
79373
79410
  else
79374
- d.lastStickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.lastStickerSentTs) : o.longs === Number ? new $util.LongBits(m.lastStickerSentTs.low >>> 0, m.lastStickerSentTs.high >>> 0).toNumber() : m.lastStickerSentTs;
79411
+ d.lastStickerSentTs = o.longs === String ? longToString(m.lastStickerSentTs) : o.longs === Number ? longToNumber(m.lastStickerSentTs) : m.lastStickerSentTs;
79375
79412
  if (o.oneofs)
79376
79413
  d._lastStickerSentTs = "lastStickerSentTs";
79377
79414
  }
@@ -80867,7 +80904,7 @@ export const proto = $root.proto = (() => {
80867
80904
  if (typeof m.timestamp === "number")
80868
80905
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
80869
80906
  else
80870
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
80907
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
80871
80908
  if (o.oneofs)
80872
80909
  d._timestamp = "timestamp";
80873
80910
  }
@@ -83471,7 +83508,7 @@ export const proto = $root.proto = (() => {
83471
83508
  if (typeof m.messageTimestamp === "number")
83472
83509
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
83473
83510
  else
83474
- d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber() : m.messageTimestamp;
83511
+ d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp) : o.longs === Number ? longToNumber(m.messageTimestamp) : m.messageTimestamp;
83475
83512
  if (o.oneofs)
83476
83513
  d._messageTimestamp = "messageTimestamp";
83477
83514
  }
@@ -84414,7 +84451,7 @@ export const proto = $root.proto = (() => {
84414
84451
  if (typeof m.muteEndTimeMs === "number")
84415
84452
  d.muteEndTimeMs = o.longs === String ? String(m.muteEndTimeMs) : m.muteEndTimeMs;
84416
84453
  else
84417
- d.muteEndTimeMs = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTimeMs) : o.longs === Number ? new $util.LongBits(m.muteEndTimeMs.low >>> 0, m.muteEndTimeMs.high >>> 0).toNumber() : m.muteEndTimeMs;
84454
+ d.muteEndTimeMs = o.longs === String ? longToString(m.muteEndTimeMs) : o.longs === Number ? longToNumber(m.muteEndTimeMs) : m.muteEndTimeMs;
84418
84455
  if (o.oneofs)
84419
84456
  d._muteEndTimeMs = "muteEndTimeMs";
84420
84457
  }
@@ -85285,7 +85322,7 @@ export const proto = $root.proto = (() => {
85285
85322
  if (typeof m.createdAt === "number")
85286
85323
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
85287
85324
  else
85288
- d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber() : m.createdAt;
85325
+ d.createdAt = o.longs === String ? longToString(m.createdAt) : o.longs === Number ? longToNumber(m.createdAt) : m.createdAt;
85289
85326
  if (o.oneofs)
85290
85327
  d._createdAt = "createdAt";
85291
85328
  }
@@ -85293,7 +85330,7 @@ export const proto = $root.proto = (() => {
85293
85330
  if (typeof m.lastSentAt === "number")
85294
85331
  d.lastSentAt = o.longs === String ? String(m.lastSentAt) : m.lastSentAt;
85295
85332
  else
85296
- d.lastSentAt = o.longs === String ? $util.Long.prototype.toString.call(m.lastSentAt) : o.longs === Number ? new $util.LongBits(m.lastSentAt.low >>> 0, m.lastSentAt.high >>> 0).toNumber() : m.lastSentAt;
85333
+ d.lastSentAt = o.longs === String ? longToString(m.lastSentAt) : o.longs === Number ? longToNumber(m.lastSentAt) : m.lastSentAt;
85297
85334
  if (o.oneofs)
85298
85335
  d._lastSentAt = "lastSentAt";
85299
85336
  }
@@ -85827,7 +85864,7 @@ export const proto = $root.proto = (() => {
85827
85864
  if (typeof m.muteEndTimestamp === "number")
85828
85865
  d.muteEndTimestamp = o.longs === String ? String(m.muteEndTimestamp) : m.muteEndTimestamp;
85829
85866
  else
85830
- d.muteEndTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTimestamp) : o.longs === Number ? new $util.LongBits(m.muteEndTimestamp.low >>> 0, m.muteEndTimestamp.high >>> 0).toNumber() : m.muteEndTimestamp;
85867
+ d.muteEndTimestamp = o.longs === String ? longToString(m.muteEndTimestamp) : o.longs === Number ? longToNumber(m.muteEndTimestamp) : m.muteEndTimestamp;
85831
85868
  if (o.oneofs)
85832
85869
  d._muteEndTimestamp = "muteEndTimestamp";
85833
85870
  }
@@ -86105,7 +86142,7 @@ export const proto = $root.proto = (() => {
86105
86142
  if (typeof m.createdAt === "number")
86106
86143
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
86107
86144
  else
86108
- d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber() : m.createdAt;
86145
+ d.createdAt = o.longs === String ? longToString(m.createdAt) : o.longs === Number ? longToNumber(m.createdAt) : m.createdAt;
86109
86146
  if (o.oneofs)
86110
86147
  d._createdAt = "createdAt";
86111
86148
  }
@@ -87723,7 +87760,7 @@ export const proto = $root.proto = (() => {
87723
87760
  if (typeof m.lastStickerSentTs === "number")
87724
87761
  d.lastStickerSentTs = o.longs === String ? String(m.lastStickerSentTs) : m.lastStickerSentTs;
87725
87762
  else
87726
- d.lastStickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.lastStickerSentTs) : o.longs === Number ? new $util.LongBits(m.lastStickerSentTs.low >>> 0, m.lastStickerSentTs.high >>> 0).toNumber() : m.lastStickerSentTs;
87763
+ d.lastStickerSentTs = o.longs === String ? longToString(m.lastStickerSentTs) : o.longs === Number ? longToNumber(m.lastStickerSentTs) : m.lastStickerSentTs;
87727
87764
  if (o.oneofs)
87728
87765
  d._lastStickerSentTs = "lastStickerSentTs";
87729
87766
  }
@@ -88377,7 +88414,7 @@ export const proto = $root.proto = (() => {
88377
88414
  if (typeof m.fileLength === "number")
88378
88415
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
88379
88416
  else
88380
- d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
88417
+ d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
88381
88418
  if (o.oneofs)
88382
88419
  d._fileLength = "fileLength";
88383
88420
  }
@@ -88542,7 +88579,7 @@ export const proto = $root.proto = (() => {
88542
88579
  if (typeof m.expirationDate === "number")
88543
88580
  d.expirationDate = o.longs === String ? String(m.expirationDate) : m.expirationDate;
88544
88581
  else
88545
- d.expirationDate = o.longs === String ? $util.Long.prototype.toString.call(m.expirationDate) : o.longs === Number ? new $util.LongBits(m.expirationDate.low >>> 0, m.expirationDate.high >>> 0).toNumber() : m.expirationDate;
88582
+ d.expirationDate = o.longs === String ? longToString(m.expirationDate) : o.longs === Number ? longToNumber(m.expirationDate) : m.expirationDate;
88546
88583
  if (o.oneofs)
88547
88584
  d._expirationDate = "expirationDate";
88548
88585
  }
@@ -88663,7 +88700,7 @@ export const proto = $root.proto = (() => {
88663
88700
  if (typeof m.timestamp === "number")
88664
88701
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
88665
88702
  else
88666
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
88703
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
88667
88704
  if (o.oneofs)
88668
88705
  d._timestamp = "timestamp";
88669
88706
  }
@@ -88809,7 +88846,7 @@ export const proto = $root.proto = (() => {
88809
88846
  if (typeof m.lastMessageTimestamp === "number")
88810
88847
  d.lastMessageTimestamp = o.longs === String ? String(m.lastMessageTimestamp) : m.lastMessageTimestamp;
88811
88848
  else
88812
- d.lastMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.lastMessageTimestamp.low >>> 0, m.lastMessageTimestamp.high >>> 0).toNumber() : m.lastMessageTimestamp;
88849
+ d.lastMessageTimestamp = o.longs === String ? longToString(m.lastMessageTimestamp) : o.longs === Number ? longToNumber(m.lastMessageTimestamp) : m.lastMessageTimestamp;
88813
88850
  if (o.oneofs)
88814
88851
  d._lastMessageTimestamp = "lastMessageTimestamp";
88815
88852
  }
@@ -88817,7 +88854,7 @@ export const proto = $root.proto = (() => {
88817
88854
  if (typeof m.lastSystemMessageTimestamp === "number")
88818
88855
  d.lastSystemMessageTimestamp = o.longs === String ? String(m.lastSystemMessageTimestamp) : m.lastSystemMessageTimestamp;
88819
88856
  else
88820
- d.lastSystemMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastSystemMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.lastSystemMessageTimestamp.low >>> 0, m.lastSystemMessageTimestamp.high >>> 0).toNumber() : m.lastSystemMessageTimestamp;
88857
+ d.lastSystemMessageTimestamp = o.longs === String ? longToString(m.lastSystemMessageTimestamp) : o.longs === Number ? longToNumber(m.lastSystemMessageTimestamp) : m.lastSystemMessageTimestamp;
88821
88858
  if (o.oneofs)
88822
88859
  d._lastSystemMessageTimestamp = "lastSystemMessageTimestamp";
88823
88860
  }
@@ -90584,7 +90621,7 @@ export const proto = $root.proto = (() => {
90584
90621
  if (typeof m.version === "number")
90585
90622
  d.version = o.longs === String ? String(m.version) : m.version;
90586
90623
  else
90587
- d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version;
90624
+ d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
90588
90625
  if (o.oneofs)
90589
90626
  d._version = "version";
90590
90627
  }
@@ -92186,7 +92223,7 @@ export const proto = $root.proto = (() => {
92186
92223
  if (typeof m.receiptTimestamp === "number")
92187
92224
  d.receiptTimestamp = o.longs === String ? String(m.receiptTimestamp) : m.receiptTimestamp;
92188
92225
  else
92189
- d.receiptTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.receiptTimestamp) : o.longs === Number ? new $util.LongBits(m.receiptTimestamp.low >>> 0, m.receiptTimestamp.high >>> 0).toNumber() : m.receiptTimestamp;
92226
+ d.receiptTimestamp = o.longs === String ? longToString(m.receiptTimestamp) : o.longs === Number ? longToNumber(m.receiptTimestamp) : m.receiptTimestamp;
92190
92227
  if (o.oneofs)
92191
92228
  d._receiptTimestamp = "receiptTimestamp";
92192
92229
  }
@@ -92194,7 +92231,7 @@ export const proto = $root.proto = (() => {
92194
92231
  if (typeof m.readTimestamp === "number")
92195
92232
  d.readTimestamp = o.longs === String ? String(m.readTimestamp) : m.readTimestamp;
92196
92233
  else
92197
- d.readTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.readTimestamp) : o.longs === Number ? new $util.LongBits(m.readTimestamp.low >>> 0, m.readTimestamp.high >>> 0).toNumber() : m.readTimestamp;
92234
+ d.readTimestamp = o.longs === String ? longToString(m.readTimestamp) : o.longs === Number ? longToNumber(m.readTimestamp) : m.readTimestamp;
92198
92235
  if (o.oneofs)
92199
92236
  d._readTimestamp = "readTimestamp";
92200
92237
  }
@@ -92202,7 +92239,7 @@ export const proto = $root.proto = (() => {
92202
92239
  if (typeof m.playedTimestamp === "number")
92203
92240
  d.playedTimestamp = o.longs === String ? String(m.playedTimestamp) : m.playedTimestamp;
92204
92241
  else
92205
- d.playedTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.playedTimestamp) : o.longs === Number ? new $util.LongBits(m.playedTimestamp.low >>> 0, m.playedTimestamp.high >>> 0).toNumber() : m.playedTimestamp;
92242
+ d.playedTimestamp = o.longs === String ? longToString(m.playedTimestamp) : o.longs === Number ? longToNumber(m.playedTimestamp) : m.playedTimestamp;
92206
92243
  if (o.oneofs)
92207
92244
  d._playedTimestamp = "playedTimestamp";
92208
92245
  }
@@ -92528,7 +92565,7 @@ export const proto = $root.proto = (() => {
92528
92565
  if (typeof m.serial === "number")
92529
92566
  d.serial = o.longs === String ? String(m.serial) : m.serial;
92530
92567
  else
92531
- d.serial = o.longs === String ? $util.Long.prototype.toString.call(m.serial) : o.longs === Number ? new $util.LongBits(m.serial.low >>> 0, m.serial.high >>> 0).toNumber(true) : m.serial;
92568
+ d.serial = o.longs === String ? longToString(m.serial, true) : o.longs === Number ? longToNumber(m.serial, true) : m.serial;
92532
92569
  if (o.oneofs)
92533
92570
  d._serial = "serial";
92534
92571
  }
@@ -92552,7 +92589,7 @@ export const proto = $root.proto = (() => {
92552
92589
  if (typeof m.issueTime === "number")
92553
92590
  d.issueTime = o.longs === String ? String(m.issueTime) : m.issueTime;
92554
92591
  else
92555
- d.issueTime = o.longs === String ? $util.Long.prototype.toString.call(m.issueTime) : o.longs === Number ? new $util.LongBits(m.issueTime.low >>> 0, m.issueTime.high >>> 0).toNumber(true) : m.issueTime;
92592
+ d.issueTime = o.longs === String ? longToString(m.issueTime, true) : o.longs === Number ? longToNumber(m.issueTime, true) : m.issueTime;
92556
92593
  if (o.oneofs)
92557
92594
  d._issueTime = "issueTime";
92558
92595
  }
@@ -96868,7 +96905,7 @@ export const proto = $root.proto = (() => {
96868
96905
  if (typeof m.messageTimestamp === "number")
96869
96906
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
96870
96907
  else
96871
- d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber(true) : m.messageTimestamp;
96908
+ d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp, true) : o.longs === Number ? longToNumber(m.messageTimestamp, true) : m.messageTimestamp;
96872
96909
  if (o.oneofs)
96873
96910
  d._messageTimestamp = "messageTimestamp";
96874
96911
  }
@@ -96886,7 +96923,7 @@ export const proto = $root.proto = (() => {
96886
96923
  if (typeof m.messageC2STimestamp === "number")
96887
96924
  d.messageC2STimestamp = o.longs === String ? String(m.messageC2STimestamp) : m.messageC2STimestamp;
96888
96925
  else
96889
- d.messageC2STimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageC2STimestamp) : o.longs === Number ? new $util.LongBits(m.messageC2STimestamp.low >>> 0, m.messageC2STimestamp.high >>> 0).toNumber(true) : m.messageC2STimestamp;
96926
+ d.messageC2STimestamp = o.longs === String ? longToString(m.messageC2STimestamp, true) : o.longs === Number ? longToNumber(m.messageC2STimestamp, true) : m.messageC2STimestamp;
96890
96927
  if (o.oneofs)
96891
96928
  d._messageC2STimestamp = "messageC2STimestamp";
96892
96929
  }
@@ -96976,7 +97013,7 @@ export const proto = $root.proto = (() => {
96976
97013
  if (typeof m.ephemeralStartTimestamp === "number")
96977
97014
  d.ephemeralStartTimestamp = o.longs === String ? String(m.ephemeralStartTimestamp) : m.ephemeralStartTimestamp;
96978
97015
  else
96979
- d.ephemeralStartTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralStartTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralStartTimestamp.low >>> 0, m.ephemeralStartTimestamp.high >>> 0).toNumber(true) : m.ephemeralStartTimestamp;
97016
+ d.ephemeralStartTimestamp = o.longs === String ? longToString(m.ephemeralStartTimestamp, true) : o.longs === Number ? longToNumber(m.ephemeralStartTimestamp, true) : m.ephemeralStartTimestamp;
96980
97017
  if (o.oneofs)
96981
97018
  d._ephemeralStartTimestamp = "ephemeralStartTimestamp";
96982
97019
  }
@@ -97082,7 +97119,7 @@ export const proto = $root.proto = (() => {
97082
97119
  if (typeof m.revokeMessageTimestamp === "number")
97083
97120
  d.revokeMessageTimestamp = o.longs === String ? String(m.revokeMessageTimestamp) : m.revokeMessageTimestamp;
97084
97121
  else
97085
- d.revokeMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.revokeMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.revokeMessageTimestamp.low >>> 0, m.revokeMessageTimestamp.high >>> 0).toNumber(true) : m.revokeMessageTimestamp;
97122
+ d.revokeMessageTimestamp = o.longs === String ? longToString(m.revokeMessageTimestamp, true) : o.longs === Number ? longToNumber(m.revokeMessageTimestamp, true) : m.revokeMessageTimestamp;
97086
97123
  if (o.oneofs)
97087
97124
  d._revokeMessageTimestamp = "revokeMessageTimestamp";
97088
97125
  }
@@ -97131,7 +97168,7 @@ export const proto = $root.proto = (() => {
97131
97168
  if (typeof m.newsletterServerId === "number")
97132
97169
  d.newsletterServerId = o.longs === String ? String(m.newsletterServerId) : m.newsletterServerId;
97133
97170
  else
97134
- d.newsletterServerId = o.longs === String ? $util.Long.prototype.toString.call(m.newsletterServerId) : o.longs === Number ? new $util.LongBits(m.newsletterServerId.low >>> 0, m.newsletterServerId.high >>> 0).toNumber(true) : m.newsletterServerId;
97171
+ d.newsletterServerId = o.longs === String ? longToString(m.newsletterServerId, true) : o.longs === Number ? longToNumber(m.newsletterServerId, true) : m.newsletterServerId;
97135
97172
  if (o.oneofs)
97136
97173
  d._newsletterServerId = "newsletterServerId";
97137
97174
  }
@@ -97607,7 +97644,7 @@ export const proto = $root.proto = (() => {
97607
97644
  if (typeof m.timestamp === "number")
97608
97645
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
97609
97646
  else
97610
- d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
97647
+ d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
97611
97648
  if (o.oneofs)
97612
97649
  d._timestamp = "timestamp";
97613
97650
  }