@poucode/baileys 1.0.0 → 1.0.2

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
@@ -9,6 +9,53 @@ const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.
9
9
  // Exported root namespace
10
10
  const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
11
11
 
12
+ // Safe Long helpers.
13
+ // protobufjs' generated toObject() calls `$util.Long.prototype.toString.call(value)`, which
14
+ // throws "this.isZero is not a function" when `value` is a string / bigint / plain {low, high}
15
+ // object instead of a real Long instance (very common for fields set by hand, e.g. fileLength).
16
+ function longToString(value, unsigned) {
17
+ if (typeof value === "string") {
18
+ return value;
19
+ }
20
+ if (typeof value === "number" || typeof value === "bigint") {
21
+ return String(value);
22
+ }
23
+ if (value && typeof value.isZero === "function") {
24
+ return value.toString();
25
+ }
26
+ if (value && typeof value.low === "number" && typeof value.high === "number") {
27
+ const lo = BigInt(value.low >>> 0);
28
+ const hi = BigInt(value.high >>> 0);
29
+ const combined = (hi << 32n) | lo;
30
+ const isUnsigned = unsigned === undefined ? value.unsigned === true : unsigned;
31
+ if (!isUnsigned && value.high < 0) {
32
+ return (combined - (1n << 64n)).toString();
33
+ }
34
+ return combined.toString();
35
+ }
36
+ return String(value);
37
+ }
38
+
39
+ function longToNumber(value, unsigned) {
40
+ if (typeof value === "number") {
41
+ return value;
42
+ }
43
+ if (typeof value === "string" || typeof value === "bigint") {
44
+ return Number(value);
45
+ }
46
+ if (value && typeof value.low === "number" && typeof value.high === "number") {
47
+ const lo = BigInt(value.low >>> 0);
48
+ const hi = BigInt(value.high >>> 0);
49
+ const combined = (hi << 32n) | lo;
50
+ const isUnsigned = unsigned === undefined ? value.unsigned === true : unsigned;
51
+ if (!isUnsigned && value.high < 0) {
52
+ return Number(combined - (1n << 64n));
53
+ }
54
+ return Number(combined);
55
+ }
56
+ return Number(value);
57
+ }
58
+
12
59
  export const proto = $root.proto = (() => {
13
60
 
14
61
  /**
@@ -375,7 +422,7 @@ export const proto = $root.proto = (() => {
375
422
  if (typeof message.timestamp === "number")
376
423
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
377
424
  else
378
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
425
+ object.timestamp = options.longs === String ? longToString(message.timestamp, true) : options.longs === Number ? longToNumber(message.timestamp, true) : message.timestamp;
379
426
  if (options.oneofs)
380
427
  object._timestamp = "timestamp";
381
428
  }
@@ -790,7 +837,7 @@ export const proto = $root.proto = (() => {
790
837
  if (typeof message.timestamp === "number")
791
838
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
792
839
  else
793
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
840
+ object.timestamp = options.longs === String ? longToString(message.timestamp, true) : options.longs === Number ? longToNumber(message.timestamp, true) : message.timestamp;
794
841
  if (options.oneofs)
795
842
  object._timestamp = "timestamp";
796
843
  }
@@ -2049,7 +2096,7 @@ export const proto = $root.proto = (() => {
2049
2096
  if (typeof message.lastFetchTime === "number")
2050
2097
  object.lastFetchTime = options.longs === String ? String(message.lastFetchTime) : message.lastFetchTime;
2051
2098
  else
2052
- object.lastFetchTime = options.longs === String ? $util.Long.prototype.toString.call(message.lastFetchTime) : options.longs === Number ? new $util.LongBits(message.lastFetchTime.low >>> 0, message.lastFetchTime.high >>> 0).toNumber() : message.lastFetchTime;
2099
+ object.lastFetchTime = options.longs === String ? longToString(message.lastFetchTime) : options.longs === Number ? longToNumber(message.lastFetchTime) : message.lastFetchTime;
2053
2100
  if (options.oneofs)
2054
2101
  object._lastFetchTime = "lastFetchTime";
2055
2102
  }
@@ -3634,7 +3681,7 @@ export const proto = $root.proto = (() => {
3634
3681
  if (typeof message.timestamp === "number")
3635
3682
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
3636
3683
  else
3637
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
3684
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
3638
3685
  if (options.oneofs)
3639
3686
  object._timestamp = "timestamp";
3640
3687
  }
@@ -3901,7 +3948,7 @@ export const proto = $root.proto = (() => {
3901
3948
  if (typeof message.responseTimestampMs === "number")
3902
3949
  object.responseTimestampMs = options.longs === String ? String(message.responseTimestampMs) : message.responseTimestampMs;
3903
3950
  else
3904
- object.responseTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.responseTimestampMs) : options.longs === Number ? new $util.LongBits(message.responseTimestampMs.low >>> 0, message.responseTimestampMs.high >>> 0).toNumber() : message.responseTimestampMs;
3951
+ object.responseTimestampMs = options.longs === String ? longToString(message.responseTimestampMs) : options.longs === Number ? longToNumber(message.responseTimestampMs) : message.responseTimestampMs;
3905
3952
  if (options.oneofs)
3906
3953
  object._responseTimestampMs = "responseTimestampMs";
3907
3954
  }
@@ -5659,7 +5706,7 @@ export const proto = $root.proto = (() => {
5659
5706
  if (typeof message.version === "number")
5660
5707
  object.version = options.longs === String ? String(message.version) : message.version;
5661
5708
  else
5662
- object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
5709
+ object.version = options.longs === String ? longToString(message.version, true) : options.longs === Number ? longToNumber(message.version, true) : message.version;
5663
5710
  if (options.oneofs)
5664
5711
  object._version = "version";
5665
5712
  }
@@ -12736,7 +12783,7 @@ export const proto = $root.proto = (() => {
12736
12783
  if (typeof message.whatsappBizAcctFbid === "number")
12737
12784
  object.whatsappBizAcctFbid = options.longs === String ? String(message.whatsappBizAcctFbid) : message.whatsappBizAcctFbid;
12738
12785
  else
12739
- object.whatsappBizAcctFbid = options.longs === String ? $util.Long.prototype.toString.call(message.whatsappBizAcctFbid) : options.longs === Number ? new $util.LongBits(message.whatsappBizAcctFbid.low >>> 0, message.whatsappBizAcctFbid.high >>> 0).toNumber(true) : message.whatsappBizAcctFbid;
12786
+ object.whatsappBizAcctFbid = options.longs === String ? longToString(message.whatsappBizAcctFbid, true) : options.longs === Number ? longToNumber(message.whatsappBizAcctFbid, true) : message.whatsappBizAcctFbid;
12740
12787
  if (options.oneofs)
12741
12788
  object._whatsappBizAcctFbid = "whatsappBizAcctFbid";
12742
12789
  }
@@ -12749,7 +12796,7 @@ export const proto = $root.proto = (() => {
12749
12796
  if (typeof message.issueTime === "number")
12750
12797
  object.issueTime = options.longs === String ? String(message.issueTime) : message.issueTime;
12751
12798
  else
12752
- object.issueTime = options.longs === String ? $util.Long.prototype.toString.call(message.issueTime) : options.longs === Number ? new $util.LongBits(message.issueTime.low >>> 0, message.issueTime.high >>> 0).toNumber(true) : message.issueTime;
12799
+ object.issueTime = options.longs === String ? longToString(message.issueTime, true) : options.longs === Number ? longToNumber(message.issueTime, true) : message.issueTime;
12753
12800
  if (options.oneofs)
12754
12801
  object._issueTime = "issueTime";
12755
12802
  }
@@ -13574,7 +13621,7 @@ export const proto = $root.proto = (() => {
13574
13621
  if (typeof message.privacyModeTs === "number")
13575
13622
  object.privacyModeTs = options.longs === String ? String(message.privacyModeTs) : message.privacyModeTs;
13576
13623
  else
13577
- object.privacyModeTs = options.longs === String ? $util.Long.prototype.toString.call(message.privacyModeTs) : options.longs === Number ? new $util.LongBits(message.privacyModeTs.low >>> 0, message.privacyModeTs.high >>> 0).toNumber(true) : message.privacyModeTs;
13624
+ object.privacyModeTs = options.longs === String ? longToString(message.privacyModeTs, true) : options.longs === Number ? longToNumber(message.privacyModeTs, true) : message.privacyModeTs;
13578
13625
  if (options.oneofs)
13579
13626
  object._privacyModeTs = "privacyModeTs";
13580
13627
  }
@@ -13582,7 +13629,7 @@ export const proto = $root.proto = (() => {
13582
13629
  if (typeof message.featureControls === "number")
13583
13630
  object.featureControls = options.longs === String ? String(message.featureControls) : message.featureControls;
13584
13631
  else
13585
- object.featureControls = options.longs === String ? $util.Long.prototype.toString.call(message.featureControls) : options.longs === Number ? new $util.LongBits(message.featureControls.low >>> 0, message.featureControls.high >>> 0).toNumber(true) : message.featureControls;
13632
+ object.featureControls = options.longs === String ? longToString(message.featureControls, true) : options.longs === Number ? longToNumber(message.featureControls, true) : message.featureControls;
13586
13633
  if (options.oneofs)
13587
13634
  object._featureControls = "featureControls";
13588
13635
  }
@@ -16163,7 +16210,7 @@ export const proto = $root.proto = (() => {
16163
16210
  if (typeof message.kindNegative === "number")
16164
16211
  object.kindNegative = options.longs === String ? String(message.kindNegative) : message.kindNegative;
16165
16212
  else
16166
- object.kindNegative = options.longs === String ? $util.Long.prototype.toString.call(message.kindNegative) : options.longs === Number ? new $util.LongBits(message.kindNegative.low >>> 0, message.kindNegative.high >>> 0).toNumber(true) : message.kindNegative;
16213
+ object.kindNegative = options.longs === String ? longToString(message.kindNegative, true) : options.longs === Number ? longToNumber(message.kindNegative, true) : message.kindNegative;
16167
16214
  if (options.oneofs)
16168
16215
  object._kindNegative = "kindNegative";
16169
16216
  }
@@ -16171,7 +16218,7 @@ export const proto = $root.proto = (() => {
16171
16218
  if (typeof message.kindPositive === "number")
16172
16219
  object.kindPositive = options.longs === String ? String(message.kindPositive) : message.kindPositive;
16173
16220
  else
16174
- object.kindPositive = options.longs === String ? $util.Long.prototype.toString.call(message.kindPositive) : options.longs === Number ? new $util.LongBits(message.kindPositive.low >>> 0, message.kindPositive.high >>> 0).toNumber(true) : message.kindPositive;
16221
+ object.kindPositive = options.longs === String ? longToString(message.kindPositive, true) : options.longs === Number ? longToNumber(message.kindPositive, true) : message.kindPositive;
16175
16222
  if (options.oneofs)
16176
16223
  object._kindPositive = "kindPositive";
16177
16224
  }
@@ -20736,7 +20783,7 @@ export const proto = $root.proto = (() => {
20736
20783
  if (typeof message.mediaKeyTimestamp === "number")
20737
20784
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
20738
20785
  else
20739
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
20786
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
20740
20787
  if (options.oneofs)
20741
20788
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
20742
20789
  }
@@ -26693,7 +26740,7 @@ export const proto = $root.proto = (() => {
26693
26740
  if (typeof message.estimatedCompletionTime === "number")
26694
26741
  object.estimatedCompletionTime = options.longs === String ? String(message.estimatedCompletionTime) : message.estimatedCompletionTime;
26695
26742
  else
26696
- object.estimatedCompletionTime = options.longs === String ? $util.Long.prototype.toString.call(message.estimatedCompletionTime) : options.longs === Number ? new $util.LongBits(message.estimatedCompletionTime.low >>> 0, message.estimatedCompletionTime.high >>> 0).toNumber() : message.estimatedCompletionTime;
26743
+ object.estimatedCompletionTime = options.longs === String ? longToString(message.estimatedCompletionTime) : options.longs === Number ? longToNumber(message.estimatedCompletionTime) : message.estimatedCompletionTime;
26697
26744
  if (options.oneofs)
26698
26745
  object._estimatedCompletionTime = "estimatedCompletionTime";
26699
26746
  }
@@ -29693,7 +29740,7 @@ export const proto = $root.proto = (() => {
29693
29740
  if (typeof message.expirationTimestamp === "number")
29694
29741
  object.expirationTimestamp = options.longs === String ? String(message.expirationTimestamp) : message.expirationTimestamp;
29695
29742
  else
29696
- object.expirationTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.expirationTimestamp) : options.longs === Number ? new $util.LongBits(message.expirationTimestamp.low >>> 0, message.expirationTimestamp.high >>> 0).toNumber(true) : message.expirationTimestamp;
29743
+ object.expirationTimestamp = options.longs === String ? longToString(message.expirationTimestamp, true) : options.longs === Number ? longToNumber(message.expirationTimestamp, true) : message.expirationTimestamp;
29697
29744
  if (options.oneofs)
29698
29745
  object._expirationTimestamp = "expirationTimestamp";
29699
29746
  }
@@ -30134,7 +30181,7 @@ export const proto = $root.proto = (() => {
30134
30181
  if (typeof message.nextTriggerTimestamp === "number")
30135
30182
  object.nextTriggerTimestamp = options.longs === String ? String(message.nextTriggerTimestamp) : message.nextTriggerTimestamp;
30136
30183
  else
30137
- object.nextTriggerTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.nextTriggerTimestamp) : options.longs === Number ? new $util.LongBits(message.nextTriggerTimestamp.low >>> 0, message.nextTriggerTimestamp.high >>> 0).toNumber(true) : message.nextTriggerTimestamp;
30184
+ object.nextTriggerTimestamp = options.longs === String ? longToString(message.nextTriggerTimestamp, true) : options.longs === Number ? longToNumber(message.nextTriggerTimestamp, true) : message.nextTriggerTimestamp;
30138
30185
  if (options.oneofs)
30139
30186
  object._nextTriggerTimestamp = "nextTriggerTimestamp";
30140
30187
  }
@@ -34775,7 +34822,7 @@ export const proto = $root.proto = (() => {
34775
34822
  if (typeof message.duration === "number")
34776
34823
  object.duration = options.longs === String ? String(message.duration) : message.duration;
34777
34824
  else
34778
- object.duration = options.longs === String ? $util.Long.prototype.toString.call(message.duration) : options.longs === Number ? new $util.LongBits(message.duration.low >>> 0, message.duration.high >>> 0).toNumber() : message.duration;
34825
+ object.duration = options.longs === String ? longToString(message.duration) : options.longs === Number ? longToNumber(message.duration) : message.duration;
34779
34826
  if (options.oneofs)
34780
34827
  object._duration = "duration";
34781
34828
  }
@@ -34783,7 +34830,7 @@ export const proto = $root.proto = (() => {
34783
34830
  if (typeof message.startTime === "number")
34784
34831
  object.startTime = options.longs === String ? String(message.startTime) : message.startTime;
34785
34832
  else
34786
- object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime;
34833
+ object.startTime = options.longs === String ? longToString(message.startTime) : options.longs === Number ? longToNumber(message.startTime) : message.startTime;
34787
34834
  if (options.oneofs)
34788
34835
  object._startTime = "startTime";
34789
34836
  }
@@ -36093,7 +36140,7 @@ export const proto = $root.proto = (() => {
36093
36140
  if (typeof message.notBefore === "number")
36094
36141
  object.notBefore = options.longs === String ? String(message.notBefore) : message.notBefore;
36095
36142
  else
36096
- object.notBefore = options.longs === String ? $util.Long.prototype.toString.call(message.notBefore) : options.longs === Number ? new $util.LongBits(message.notBefore.low >>> 0, message.notBefore.high >>> 0).toNumber(true) : message.notBefore;
36143
+ object.notBefore = options.longs === String ? longToString(message.notBefore, true) : options.longs === Number ? longToNumber(message.notBefore, true) : message.notBefore;
36097
36144
  if (options.oneofs)
36098
36145
  object._notBefore = "notBefore";
36099
36146
  }
@@ -36101,7 +36148,7 @@ export const proto = $root.proto = (() => {
36101
36148
  if (typeof message.notAfter === "number")
36102
36149
  object.notAfter = options.longs === String ? String(message.notAfter) : message.notAfter;
36103
36150
  else
36104
- object.notAfter = options.longs === String ? $util.Long.prototype.toString.call(message.notAfter) : options.longs === Number ? new $util.LongBits(message.notAfter.low >>> 0, message.notAfter.high >>> 0).toNumber(true) : message.notAfter;
36151
+ object.notAfter = options.longs === String ? longToString(message.notAfter, true) : options.longs === Number ? longToNumber(message.notAfter, true) : message.notAfter;
36105
36152
  if (options.oneofs)
36106
36153
  object._notAfter = "notAfter";
36107
36154
  }
@@ -36957,7 +37004,7 @@ export const proto = $root.proto = (() => {
36957
37004
  if (typeof message.timestamp === "number")
36958
37005
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
36959
37006
  else
36960
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
37007
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
36961
37008
  if (options.oneofs)
36962
37009
  object._timestamp = "timestamp";
36963
37010
  }
@@ -40077,7 +40124,7 @@ export const proto = $root.proto = (() => {
40077
40124
  if (typeof message.username === "number")
40078
40125
  object.username = options.longs === String ? String(message.username) : message.username;
40079
40126
  else
40080
- object.username = options.longs === String ? $util.Long.prototype.toString.call(message.username) : options.longs === Number ? new $util.LongBits(message.username.low >>> 0, message.username.high >>> 0).toNumber(true) : message.username;
40127
+ object.username = options.longs === String ? longToString(message.username, true) : options.longs === Number ? longToNumber(message.username, true) : message.username;
40081
40128
  if (options.oneofs)
40082
40129
  object._username = "username";
40083
40130
  }
@@ -40180,7 +40227,7 @@ export const proto = $root.proto = (() => {
40180
40227
  if (typeof message.fbAppId === "number")
40181
40228
  object.fbAppId = options.longs === String ? String(message.fbAppId) : message.fbAppId;
40182
40229
  else
40183
- object.fbAppId = options.longs === String ? $util.Long.prototype.toString.call(message.fbAppId) : options.longs === Number ? new $util.LongBits(message.fbAppId.low >>> 0, message.fbAppId.high >>> 0).toNumber(true) : message.fbAppId;
40230
+ object.fbAppId = options.longs === String ? longToString(message.fbAppId, true) : options.longs === Number ? longToNumber(message.fbAppId, true) : message.fbAppId;
40184
40231
  if (options.oneofs)
40185
40232
  object._fbAppId = "fbAppId";
40186
40233
  }
@@ -41432,7 +41479,7 @@ export const proto = $root.proto = (() => {
41432
41479
  if (typeof message.accountId === "number")
41433
41480
  object.accountId = options.longs === String ? String(message.accountId) : message.accountId;
41434
41481
  else
41435
- object.accountId = options.longs === String ? $util.Long.prototype.toString.call(message.accountId) : options.longs === Number ? new $util.LongBits(message.accountId.low >>> 0, message.accountId.high >>> 0).toNumber(true) : message.accountId;
41482
+ object.accountId = options.longs === String ? longToString(message.accountId, true) : options.longs === Number ? longToNumber(message.accountId, true) : message.accountId;
41436
41483
  if (options.oneofs)
41437
41484
  object._accountId = "accountId";
41438
41485
  }
@@ -48486,7 +48533,7 @@ export const proto = $root.proto = (() => {
48486
48533
  if (typeof message.timestampMs === "number")
48487
48534
  object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
48488
48535
  else
48489
- object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber() : message.timestampMs;
48536
+ object.timestampMs = options.longs === String ? longToString(message.timestampMs) : options.longs === Number ? longToNumber(message.timestampMs) : message.timestampMs;
48490
48537
  if (options.oneofs)
48491
48538
  object._timestampMs = "timestampMs";
48492
48539
  }
@@ -49320,7 +49367,7 @@ export const proto = $root.proto = (() => {
49320
49367
  if (typeof message.inviteExpiration === "number")
49321
49368
  object.inviteExpiration = options.longs === String ? String(message.inviteExpiration) : message.inviteExpiration;
49322
49369
  else
49323
- object.inviteExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.inviteExpiration) : options.longs === Number ? new $util.LongBits(message.inviteExpiration.low >>> 0, message.inviteExpiration.high >>> 0).toNumber() : message.inviteExpiration;
49370
+ object.inviteExpiration = options.longs === String ? longToString(message.inviteExpiration) : options.longs === Number ? longToNumber(message.inviteExpiration) : message.inviteExpiration;
49324
49371
  if (options.oneofs)
49325
49372
  object._inviteExpiration = "inviteExpiration";
49326
49373
  }
@@ -50305,7 +50352,7 @@ export const proto = $root.proto = (() => {
50305
50352
  if (typeof message.sequenceNumber === "number")
50306
50353
  object.sequenceNumber = options.longs === String ? String(message.sequenceNumber) : message.sequenceNumber;
50307
50354
  else
50308
- object.sequenceNumber = options.longs === String ? $util.Long.prototype.toString.call(message.sequenceNumber) : options.longs === Number ? new $util.LongBits(message.sequenceNumber.low >>> 0, message.sequenceNumber.high >>> 0).toNumber() : message.sequenceNumber;
50355
+ object.sequenceNumber = options.longs === String ? longToString(message.sequenceNumber) : options.longs === Number ? longToNumber(message.sequenceNumber) : message.sequenceNumber;
50309
50356
  if (options.oneofs)
50310
50357
  object._sequenceNumber = "sequenceNumber";
50311
50358
  }
@@ -53508,7 +53555,7 @@ export const proto = $root.proto = (() => {
53508
53555
  if (typeof message.senderTimestampMs === "number")
53509
53556
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
53510
53557
  else
53511
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
53558
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
53512
53559
  if (options.oneofs)
53513
53560
  object._senderTimestampMs = "senderTimestampMs";
53514
53561
  }
@@ -53897,7 +53944,7 @@ export const proto = $root.proto = (() => {
53897
53944
  if (typeof message.senderTimestampMs === "number")
53898
53945
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
53899
53946
  else
53900
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
53947
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
53901
53948
  if (options.oneofs)
53902
53949
  object._senderTimestampMs = "senderTimestampMs";
53903
53950
  }
@@ -58035,7 +58082,7 @@ export const proto = $root.proto = (() => {
58035
58082
  if (typeof message.ephemeralSettingTimestamp === "number")
58036
58083
  object.ephemeralSettingTimestamp = options.longs === String ? String(message.ephemeralSettingTimestamp) : message.ephemeralSettingTimestamp;
58037
58084
  else
58038
- object.ephemeralSettingTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.ephemeralSettingTimestamp) : options.longs === Number ? new $util.LongBits(message.ephemeralSettingTimestamp.low >>> 0, message.ephemeralSettingTimestamp.high >>> 0).toNumber() : message.ephemeralSettingTimestamp;
58085
+ object.ephemeralSettingTimestamp = options.longs === String ? longToString(message.ephemeralSettingTimestamp) : options.longs === Number ? longToNumber(message.ephemeralSettingTimestamp) : message.ephemeralSettingTimestamp;
58039
58086
  if (options.oneofs)
58040
58087
  object._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
58041
58088
  }
@@ -60618,7 +60665,7 @@ export const proto = $root.proto = (() => {
60618
60665
  if (typeof message.intData === "number")
60619
60666
  object.intData = options.longs === String ? String(message.intData) : message.intData;
60620
60667
  else
60621
- object.intData = options.longs === String ? $util.Long.prototype.toString.call(message.intData) : options.longs === Number ? new $util.LongBits(message.intData.low >>> 0, message.intData.high >>> 0).toNumber() : message.intData;
60668
+ object.intData = options.longs === String ? longToString(message.intData) : options.longs === Number ? longToNumber(message.intData) : message.intData;
60622
60669
  if (options.oneofs)
60623
60670
  object._intData = "intData";
60624
60671
  }
@@ -66101,7 +66148,7 @@ export const proto = $root.proto = (() => {
66101
66148
  if (typeof message.lastMsgTimestamp === "number")
66102
66149
  object.lastMsgTimestamp = options.longs === String ? String(message.lastMsgTimestamp) : message.lastMsgTimestamp;
66103
66150
  else
66104
- object.lastMsgTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.lastMsgTimestamp) : options.longs === Number ? new $util.LongBits(message.lastMsgTimestamp.low >>> 0, message.lastMsgTimestamp.high >>> 0).toNumber(true) : message.lastMsgTimestamp;
66151
+ object.lastMsgTimestamp = options.longs === String ? longToString(message.lastMsgTimestamp, true) : options.longs === Number ? longToNumber(message.lastMsgTimestamp, true) : message.lastMsgTimestamp;
66105
66152
  if (options.oneofs)
66106
66153
  object._lastMsgTimestamp = "lastMsgTimestamp";
66107
66154
  }
@@ -66129,7 +66176,7 @@ export const proto = $root.proto = (() => {
66129
66176
  if (typeof message.ephemeralSettingTimestamp === "number")
66130
66177
  object.ephemeralSettingTimestamp = options.longs === String ? String(message.ephemeralSettingTimestamp) : message.ephemeralSettingTimestamp;
66131
66178
  else
66132
- object.ephemeralSettingTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.ephemeralSettingTimestamp) : options.longs === Number ? new $util.LongBits(message.ephemeralSettingTimestamp.low >>> 0, message.ephemeralSettingTimestamp.high >>> 0).toNumber() : message.ephemeralSettingTimestamp;
66179
+ object.ephemeralSettingTimestamp = options.longs === String ? longToString(message.ephemeralSettingTimestamp) : options.longs === Number ? longToNumber(message.ephemeralSettingTimestamp) : message.ephemeralSettingTimestamp;
66133
66180
  if (options.oneofs)
66134
66181
  object._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
66135
66182
  }
@@ -66142,7 +66189,7 @@ export const proto = $root.proto = (() => {
66142
66189
  if (typeof message.conversationTimestamp === "number")
66143
66190
  object.conversationTimestamp = options.longs === String ? String(message.conversationTimestamp) : message.conversationTimestamp;
66144
66191
  else
66145
- object.conversationTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.conversationTimestamp) : options.longs === Number ? new $util.LongBits(message.conversationTimestamp.low >>> 0, message.conversationTimestamp.high >>> 0).toNumber(true) : message.conversationTimestamp;
66192
+ object.conversationTimestamp = options.longs === String ? longToString(message.conversationTimestamp, true) : options.longs === Number ? longToNumber(message.conversationTimestamp, true) : message.conversationTimestamp;
66146
66193
  if (options.oneofs)
66147
66194
  object._conversationTimestamp = "conversationTimestamp";
66148
66195
  }
@@ -66195,7 +66242,7 @@ export const proto = $root.proto = (() => {
66195
66242
  if (typeof message.tcTokenTimestamp === "number")
66196
66243
  object.tcTokenTimestamp = options.longs === String ? String(message.tcTokenTimestamp) : message.tcTokenTimestamp;
66197
66244
  else
66198
- object.tcTokenTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.tcTokenTimestamp) : options.longs === Number ? new $util.LongBits(message.tcTokenTimestamp.low >>> 0, message.tcTokenTimestamp.high >>> 0).toNumber(true) : message.tcTokenTimestamp;
66245
+ object.tcTokenTimestamp = options.longs === String ? longToString(message.tcTokenTimestamp, true) : options.longs === Number ? longToNumber(message.tcTokenTimestamp, true) : message.tcTokenTimestamp;
66199
66246
  if (options.oneofs)
66200
66247
  object._tcTokenTimestamp = "tcTokenTimestamp";
66201
66248
  }
@@ -66213,7 +66260,7 @@ export const proto = $root.proto = (() => {
66213
66260
  if (typeof message.muteEndTime === "number")
66214
66261
  object.muteEndTime = options.longs === String ? String(message.muteEndTime) : message.muteEndTime;
66215
66262
  else
66216
- object.muteEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.muteEndTime) : options.longs === Number ? new $util.LongBits(message.muteEndTime.low >>> 0, message.muteEndTime.high >>> 0).toNumber(true) : message.muteEndTime;
66263
+ object.muteEndTime = options.longs === String ? longToString(message.muteEndTime, true) : options.longs === Number ? longToNumber(message.muteEndTime, true) : message.muteEndTime;
66217
66264
  if (options.oneofs)
66218
66265
  object._muteEndTime = "muteEndTime";
66219
66266
  }
@@ -66231,7 +66278,7 @@ export const proto = $root.proto = (() => {
66231
66278
  if (typeof message.tcTokenSenderTimestamp === "number")
66232
66279
  object.tcTokenSenderTimestamp = options.longs === String ? String(message.tcTokenSenderTimestamp) : message.tcTokenSenderTimestamp;
66233
66280
  else
66234
- object.tcTokenSenderTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.tcTokenSenderTimestamp) : options.longs === Number ? new $util.LongBits(message.tcTokenSenderTimestamp.low >>> 0, message.tcTokenSenderTimestamp.high >>> 0).toNumber(true) : message.tcTokenSenderTimestamp;
66281
+ object.tcTokenSenderTimestamp = options.longs === String ? longToString(message.tcTokenSenderTimestamp, true) : options.longs === Number ? longToNumber(message.tcTokenSenderTimestamp, true) : message.tcTokenSenderTimestamp;
66235
66282
  if (options.oneofs)
66236
66283
  object._tcTokenSenderTimestamp = "tcTokenSenderTimestamp";
66237
66284
  }
@@ -66249,7 +66296,7 @@ export const proto = $root.proto = (() => {
66249
66296
  if (typeof message.createdAt === "number")
66250
66297
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
66251
66298
  else
66252
- object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
66299
+ object.createdAt = options.longs === String ? longToString(message.createdAt, true) : options.longs === Number ? longToNumber(message.createdAt, true) : message.createdAt;
66253
66300
  if (options.oneofs)
66254
66301
  object._createdAt = "createdAt";
66255
66302
  }
@@ -66352,7 +66399,7 @@ export const proto = $root.proto = (() => {
66352
66399
  if (typeof message.limitSharingSettingTimestamp === "number")
66353
66400
  object.limitSharingSettingTimestamp = options.longs === String ? String(message.limitSharingSettingTimestamp) : message.limitSharingSettingTimestamp;
66354
66401
  else
66355
- object.limitSharingSettingTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.limitSharingSettingTimestamp) : options.longs === Number ? new $util.LongBits(message.limitSharingSettingTimestamp.low >>> 0, message.limitSharingSettingTimestamp.high >>> 0).toNumber() : message.limitSharingSettingTimestamp;
66402
+ object.limitSharingSettingTimestamp = options.longs === String ? longToString(message.limitSharingSettingTimestamp) : options.longs === Number ? longToNumber(message.limitSharingSettingTimestamp) : message.limitSharingSettingTimestamp;
66356
66403
  if (options.oneofs)
66357
66404
  object._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
66358
66405
  }
@@ -66400,7 +66447,7 @@ export const proto = $root.proto = (() => {
66400
66447
  if (typeof message.appealUpdateTime === "number")
66401
66448
  object.appealUpdateTime = options.longs === String ? String(message.appealUpdateTime) : message.appealUpdateTime;
66402
66449
  else
66403
- object.appealUpdateTime = options.longs === String ? $util.Long.prototype.toString.call(message.appealUpdateTime) : options.longs === Number ? new $util.LongBits(message.appealUpdateTime.low >>> 0, message.appealUpdateTime.high >>> 0).toNumber(true) : message.appealUpdateTime;
66450
+ object.appealUpdateTime = options.longs === String ? longToString(message.appealUpdateTime, true) : options.longs === Number ? longToNumber(message.appealUpdateTime, true) : message.appealUpdateTime;
66404
66451
  if (options.oneofs)
66405
66452
  object._appealUpdateTime = "appealUpdateTime";
66406
66453
  }
@@ -67750,7 +67797,7 @@ export const proto = $root.proto = (() => {
67750
67797
  if (typeof message.chatDbMigrationTimestamp === "number")
67751
67798
  object.chatDbMigrationTimestamp = options.longs === String ? String(message.chatDbMigrationTimestamp) : message.chatDbMigrationTimestamp;
67752
67799
  else
67753
- object.chatDbMigrationTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.chatDbMigrationTimestamp) : options.longs === Number ? new $util.LongBits(message.chatDbMigrationTimestamp.low >>> 0, message.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : message.chatDbMigrationTimestamp;
67800
+ object.chatDbMigrationTimestamp = options.longs === String ? longToString(message.chatDbMigrationTimestamp, true) : options.longs === Number ? longToNumber(message.chatDbMigrationTimestamp, true) : message.chatDbMigrationTimestamp;
67754
67801
  if (options.oneofs)
67755
67802
  object._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
67756
67803
  }
@@ -68761,7 +68808,7 @@ export const proto = $root.proto = (() => {
68761
68808
  if (typeof message.senderTimestamp === "number")
68762
68809
  object.senderTimestamp = options.longs === String ? String(message.senderTimestamp) : message.senderTimestamp;
68763
68810
  else
68764
- object.senderTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestamp) : options.longs === Number ? new $util.LongBits(message.senderTimestamp.low >>> 0, message.senderTimestamp.high >>> 0).toNumber(true) : message.senderTimestamp;
68811
+ object.senderTimestamp = options.longs === String ? longToString(message.senderTimestamp, true) : options.longs === Number ? longToNumber(message.senderTimestamp, true) : message.senderTimestamp;
68765
68812
  if (options.oneofs)
68766
68813
  object._senderTimestamp = "senderTimestamp";
68767
68814
  }
@@ -68789,7 +68836,7 @@ export const proto = $root.proto = (() => {
68789
68836
  if (typeof message.recipientTimestamp === "number")
68790
68837
  object.recipientTimestamp = options.longs === String ? String(message.recipientTimestamp) : message.recipientTimestamp;
68791
68838
  else
68792
- object.recipientTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.recipientTimestamp) : options.longs === Number ? new $util.LongBits(message.recipientTimestamp.low >>> 0, message.recipientTimestamp.high >>> 0).toNumber(true) : message.recipientTimestamp;
68839
+ object.recipientTimestamp = options.longs === String ? longToString(message.recipientTimestamp, true) : options.longs === Number ? longToNumber(message.recipientTimestamp, true) : message.recipientTimestamp;
68793
68840
  if (options.oneofs)
68794
68841
  object._recipientTimestamp = "recipientTimestamp";
68795
68842
  }
@@ -72303,7 +72350,7 @@ export const proto = $root.proto = (() => {
72303
72350
  if (typeof message.musicSongStartTimeInMs === "number")
72304
72351
  object.musicSongStartTimeInMs = options.longs === String ? String(message.musicSongStartTimeInMs) : message.musicSongStartTimeInMs;
72305
72352
  else
72306
- object.musicSongStartTimeInMs = options.longs === String ? $util.Long.prototype.toString.call(message.musicSongStartTimeInMs) : options.longs === Number ? new $util.LongBits(message.musicSongStartTimeInMs.low >>> 0, message.musicSongStartTimeInMs.high >>> 0).toNumber() : message.musicSongStartTimeInMs;
72353
+ object.musicSongStartTimeInMs = options.longs === String ? longToString(message.musicSongStartTimeInMs) : options.longs === Number ? longToNumber(message.musicSongStartTimeInMs) : message.musicSongStartTimeInMs;
72307
72354
  if (options.oneofs)
72308
72355
  object._musicSongStartTimeInMs = "musicSongStartTimeInMs";
72309
72356
  }
@@ -72311,7 +72358,7 @@ export const proto = $root.proto = (() => {
72311
72358
  if (typeof message.derivedContentStartTimeInMs === "number")
72312
72359
  object.derivedContentStartTimeInMs = options.longs === String ? String(message.derivedContentStartTimeInMs) : message.derivedContentStartTimeInMs;
72313
72360
  else
72314
- object.derivedContentStartTimeInMs = options.longs === String ? $util.Long.prototype.toString.call(message.derivedContentStartTimeInMs) : options.longs === Number ? new $util.LongBits(message.derivedContentStartTimeInMs.low >>> 0, message.derivedContentStartTimeInMs.high >>> 0).toNumber() : message.derivedContentStartTimeInMs;
72361
+ object.derivedContentStartTimeInMs = options.longs === String ? longToString(message.derivedContentStartTimeInMs) : options.longs === Number ? longToNumber(message.derivedContentStartTimeInMs) : message.derivedContentStartTimeInMs;
72315
72362
  if (options.oneofs)
72316
72363
  object._derivedContentStartTimeInMs = "derivedContentStartTimeInMs";
72317
72364
  }
@@ -72319,7 +72366,7 @@ export const proto = $root.proto = (() => {
72319
72366
  if (typeof message.overlapDurationInMs === "number")
72320
72367
  object.overlapDurationInMs = options.longs === String ? String(message.overlapDurationInMs) : message.overlapDurationInMs;
72321
72368
  else
72322
- object.overlapDurationInMs = options.longs === String ? $util.Long.prototype.toString.call(message.overlapDurationInMs) : options.longs === Number ? new $util.LongBits(message.overlapDurationInMs.low >>> 0, message.overlapDurationInMs.high >>> 0).toNumber() : message.overlapDurationInMs;
72369
+ object.overlapDurationInMs = options.longs === String ? longToString(message.overlapDurationInMs) : options.longs === Number ? longToNumber(message.overlapDurationInMs) : message.overlapDurationInMs;
72323
72370
  if (options.oneofs)
72324
72371
  object._overlapDurationInMs = "overlapDurationInMs";
72325
72372
  }
@@ -72837,7 +72884,7 @@ export const proto = $root.proto = (() => {
72837
72884
  if (typeof message.timestamp === "number")
72838
72885
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
72839
72886
  else
72840
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
72887
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
72841
72888
  if (options.oneofs)
72842
72889
  object._timestamp = "timestamp";
72843
72890
  }
@@ -73384,7 +73431,7 @@ export const proto = $root.proto = (() => {
73384
73431
  if (typeof message.timestampMs === "number")
73385
73432
  object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
73386
73433
  else
73387
- object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber() : message.timestampMs;
73434
+ object.timestampMs = options.longs === String ? longToString(message.timestampMs) : options.longs === Number ? longToNumber(message.timestampMs) : message.timestampMs;
73388
73435
  if (options.oneofs)
73389
73436
  object._timestampMs = "timestampMs";
73390
73437
  }
@@ -73650,7 +73697,7 @@ export const proto = $root.proto = (() => {
73650
73697
  if (typeof message.code === "number")
73651
73698
  object.code = options.longs === String ? String(message.code) : message.code;
73652
73699
  else
73653
- object.code = options.longs === String ? $util.Long.prototype.toString.call(message.code) : options.longs === Number ? new $util.LongBits(message.code.low >>> 0, message.code.high >>> 0).toNumber(true) : message.code;
73700
+ object.code = options.longs === String ? longToString(message.code, true) : options.longs === Number ? longToNumber(message.code, true) : message.code;
73654
73701
  if (options.oneofs)
73655
73702
  object._code = "code";
73656
73703
  }
@@ -74047,7 +74094,7 @@ export const proto = $root.proto = (() => {
74047
74094
  if (typeof message.fileSizeBytes === "number")
74048
74095
  object.fileSizeBytes = options.longs === String ? String(message.fileSizeBytes) : message.fileSizeBytes;
74049
74096
  else
74050
- object.fileSizeBytes = options.longs === String ? $util.Long.prototype.toString.call(message.fileSizeBytes) : options.longs === Number ? new $util.LongBits(message.fileSizeBytes.low >>> 0, message.fileSizeBytes.high >>> 0).toNumber(true) : message.fileSizeBytes;
74097
+ object.fileSizeBytes = options.longs === String ? longToString(message.fileSizeBytes, true) : options.longs === Number ? longToNumber(message.fileSizeBytes, true) : message.fileSizeBytes;
74051
74098
  if (options.oneofs)
74052
74099
  object._fileSizeBytes = "fileSizeBytes";
74053
74100
  }
@@ -76051,7 +76098,7 @@ export const proto = $root.proto = (() => {
76051
76098
  if (typeof message.disappearingModeTimestamp === "number")
76052
76099
  object.disappearingModeTimestamp = options.longs === String ? String(message.disappearingModeTimestamp) : message.disappearingModeTimestamp;
76053
76100
  else
76054
- object.disappearingModeTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.disappearingModeTimestamp) : options.longs === Number ? new $util.LongBits(message.disappearingModeTimestamp.low >>> 0, message.disappearingModeTimestamp.high >>> 0).toNumber() : message.disappearingModeTimestamp;
76101
+ object.disappearingModeTimestamp = options.longs === String ? longToString(message.disappearingModeTimestamp) : options.longs === Number ? longToNumber(message.disappearingModeTimestamp) : message.disappearingModeTimestamp;
76055
76102
  if (options.oneofs)
76056
76103
  object._disappearingModeTimestamp = "disappearingModeTimestamp";
76057
76104
  }
@@ -76104,7 +76151,7 @@ export const proto = $root.proto = (() => {
76104
76151
  if (typeof message.chatDbLidMigrationTimestamp === "number")
76105
76152
  object.chatDbLidMigrationTimestamp = options.longs === String ? String(message.chatDbLidMigrationTimestamp) : message.chatDbLidMigrationTimestamp;
76106
76153
  else
76107
- object.chatDbLidMigrationTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.chatDbLidMigrationTimestamp) : options.longs === Number ? new $util.LongBits(message.chatDbLidMigrationTimestamp.low >>> 0, message.chatDbLidMigrationTimestamp.high >>> 0).toNumber() : message.chatDbLidMigrationTimestamp;
76154
+ object.chatDbLidMigrationTimestamp = options.longs === String ? longToString(message.chatDbLidMigrationTimestamp) : options.longs === Number ? longToNumber(message.chatDbLidMigrationTimestamp) : message.chatDbLidMigrationTimestamp;
76108
76155
  if (options.oneofs)
76109
76156
  object._chatDbLidMigrationTimestamp = "chatDbLidMigrationTimestamp";
76110
76157
  }
@@ -78536,7 +78583,7 @@ export const proto = $root.proto = (() => {
78536
78583
  if (typeof message.expiryTimestampMs === "number")
78537
78584
  object.expiryTimestampMs = options.longs === String ? String(message.expiryTimestampMs) : message.expiryTimestampMs;
78538
78585
  else
78539
- object.expiryTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.expiryTimestampMs) : options.longs === Number ? new $util.LongBits(message.expiryTimestampMs.low >>> 0, message.expiryTimestampMs.high >>> 0).toNumber() : message.expiryTimestampMs;
78586
+ object.expiryTimestampMs = options.longs === String ? longToString(message.expiryTimestampMs) : options.longs === Number ? longToNumber(message.expiryTimestampMs) : message.expiryTimestampMs;
78540
78587
  if (options.oneofs)
78541
78588
  object._expiryTimestampMs = "expiryTimestampMs";
78542
78589
  }
@@ -78544,7 +78591,7 @@ export const proto = $root.proto = (() => {
78544
78591
  if (typeof message.createdTimestampMs === "number")
78545
78592
  object.createdTimestampMs = options.longs === String ? String(message.createdTimestampMs) : message.createdTimestampMs;
78546
78593
  else
78547
- object.createdTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.createdTimestampMs) : options.longs === Number ? new $util.LongBits(message.createdTimestampMs.low >>> 0, message.createdTimestampMs.high >>> 0).toNumber() : message.createdTimestampMs;
78594
+ object.createdTimestampMs = options.longs === String ? longToString(message.createdTimestampMs) : options.longs === Number ? longToNumber(message.createdTimestampMs) : message.createdTimestampMs;
78548
78595
  if (options.oneofs)
78549
78596
  object._createdTimestampMs = "createdTimestampMs";
78550
78597
  }
@@ -80516,7 +80563,7 @@ export const proto = $root.proto = (() => {
80516
80563
  if (typeof message.timestampMs === "number")
80517
80564
  object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
80518
80565
  else
80519
- object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber() : message.timestampMs;
80566
+ object.timestampMs = options.longs === String ? longToString(message.timestampMs) : options.longs === Number ? longToNumber(message.timestampMs) : message.timestampMs;
80520
80567
  if (options.oneofs)
80521
80568
  object._timestampMs = "timestampMs";
80522
80569
  }
@@ -81850,7 +81897,7 @@ export const proto = $root.proto = (() => {
81850
81897
  if (typeof message.msgOrderId === "number")
81851
81898
  object.msgOrderId = options.longs === String ? String(message.msgOrderId) : message.msgOrderId;
81852
81899
  else
81853
- object.msgOrderId = options.longs === String ? $util.Long.prototype.toString.call(message.msgOrderId) : options.longs === Number ? new $util.LongBits(message.msgOrderId.low >>> 0, message.msgOrderId.high >>> 0).toNumber(true) : message.msgOrderId;
81900
+ object.msgOrderId = options.longs === String ? longToString(message.msgOrderId, true) : options.longs === Number ? longToNumber(message.msgOrderId, true) : message.msgOrderId;
81854
81901
  if (options.oneofs)
81855
81902
  object._msgOrderId = "msgOrderId";
81856
81903
  }
@@ -86449,7 +86496,7 @@ export const proto = $root.proto = (() => {
86449
86496
  if (typeof message.serverTimestamp === "number")
86450
86497
  object.serverTimestamp = options.longs === String ? String(message.serverTimestamp) : message.serverTimestamp;
86451
86498
  else
86452
- object.serverTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.serverTimestamp) : options.longs === Number ? new $util.LongBits(message.serverTimestamp.low >>> 0, message.serverTimestamp.high >>> 0).toNumber() : message.serverTimestamp;
86499
+ object.serverTimestamp = options.longs === String ? longToString(message.serverTimestamp) : options.longs === Number ? longToNumber(message.serverTimestamp) : message.serverTimestamp;
86453
86500
  if (options.oneofs)
86454
86501
  object._serverTimestamp = "serverTimestamp";
86455
86502
  }
@@ -86467,7 +86514,7 @@ export const proto = $root.proto = (() => {
86467
86514
  if (typeof message.clientTimestampMs === "number")
86468
86515
  object.clientTimestampMs = options.longs === String ? String(message.clientTimestampMs) : message.clientTimestampMs;
86469
86516
  else
86470
- object.clientTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.clientTimestampMs) : options.longs === Number ? new $util.LongBits(message.clientTimestampMs.low >>> 0, message.clientTimestampMs.high >>> 0).toNumber() : message.clientTimestampMs;
86517
+ object.clientTimestampMs = options.longs === String ? longToString(message.clientTimestampMs) : options.longs === Number ? longToNumber(message.clientTimestampMs) : message.clientTimestampMs;
86471
86518
  if (options.oneofs)
86472
86519
  object._clientTimestampMs = "clientTimestampMs";
86473
86520
  }
@@ -86475,7 +86522,7 @@ export const proto = $root.proto = (() => {
86475
86522
  if (typeof message.serverTimestampMs === "number")
86476
86523
  object.serverTimestampMs = options.longs === String ? String(message.serverTimestampMs) : message.serverTimestampMs;
86477
86524
  else
86478
- object.serverTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.serverTimestampMs) : options.longs === Number ? new $util.LongBits(message.serverTimestampMs.low >>> 0, message.serverTimestampMs.high >>> 0).toNumber() : message.serverTimestampMs;
86525
+ object.serverTimestampMs = options.longs === String ? longToString(message.serverTimestampMs) : options.longs === Number ? longToNumber(message.serverTimestampMs) : message.serverTimestampMs;
86479
86526
  if (options.oneofs)
86480
86527
  object._serverTimestampMs = "serverTimestampMs";
86481
86528
  }
@@ -87372,7 +87419,7 @@ export const proto = $root.proto = (() => {
87372
87419
  if (typeof message.pn === "number")
87373
87420
  object.pn = options.longs === String ? String(message.pn) : message.pn;
87374
87421
  else
87375
- object.pn = options.longs === String ? $util.Long.prototype.toString.call(message.pn) : options.longs === Number ? new $util.LongBits(message.pn.low >>> 0, message.pn.high >>> 0).toNumber(true) : message.pn;
87422
+ object.pn = options.longs === String ? longToString(message.pn, true) : options.longs === Number ? longToNumber(message.pn, true) : message.pn;
87376
87423
  if (options.oneofs)
87377
87424
  object._pn = "pn";
87378
87425
  }
@@ -87380,7 +87427,7 @@ export const proto = $root.proto = (() => {
87380
87427
  if (typeof message.assignedLid === "number")
87381
87428
  object.assignedLid = options.longs === String ? String(message.assignedLid) : message.assignedLid;
87382
87429
  else
87383
- object.assignedLid = options.longs === String ? $util.Long.prototype.toString.call(message.assignedLid) : options.longs === Number ? new $util.LongBits(message.assignedLid.low >>> 0, message.assignedLid.high >>> 0).toNumber(true) : message.assignedLid;
87430
+ object.assignedLid = options.longs === String ? longToString(message.assignedLid, true) : options.longs === Number ? longToNumber(message.assignedLid, true) : message.assignedLid;
87384
87431
  if (options.oneofs)
87385
87432
  object._assignedLid = "assignedLid";
87386
87433
  }
@@ -87388,7 +87435,7 @@ export const proto = $root.proto = (() => {
87388
87435
  if (typeof message.latestLid === "number")
87389
87436
  object.latestLid = options.longs === String ? String(message.latestLid) : message.latestLid;
87390
87437
  else
87391
- object.latestLid = options.longs === String ? $util.Long.prototype.toString.call(message.latestLid) : options.longs === Number ? new $util.LongBits(message.latestLid.low >>> 0, message.latestLid.high >>> 0).toNumber(true) : message.latestLid;
87438
+ object.latestLid = options.longs === String ? longToString(message.latestLid, true) : options.longs === Number ? longToNumber(message.latestLid, true) : message.latestLid;
87392
87439
  if (options.oneofs)
87393
87440
  object._latestLid = "latestLid";
87394
87441
  }
@@ -87882,7 +87929,7 @@ export const proto = $root.proto = (() => {
87882
87929
  if (typeof message.chatDbMigrationTimestamp === "number")
87883
87930
  object.chatDbMigrationTimestamp = options.longs === String ? String(message.chatDbMigrationTimestamp) : message.chatDbMigrationTimestamp;
87884
87931
  else
87885
- object.chatDbMigrationTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.chatDbMigrationTimestamp) : options.longs === Number ? new $util.LongBits(message.chatDbMigrationTimestamp.low >>> 0, message.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : message.chatDbMigrationTimestamp;
87932
+ object.chatDbMigrationTimestamp = options.longs === String ? longToString(message.chatDbMigrationTimestamp, true) : options.longs === Number ? longToNumber(message.chatDbMigrationTimestamp, true) : message.chatDbMigrationTimestamp;
87886
87933
  if (options.oneofs)
87887
87934
  object._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
87888
87935
  }
@@ -88496,7 +88543,7 @@ export const proto = $root.proto = (() => {
88496
88543
  if (typeof message.limitSharingSettingTimestamp === "number")
88497
88544
  object.limitSharingSettingTimestamp = options.longs === String ? String(message.limitSharingSettingTimestamp) : message.limitSharingSettingTimestamp;
88498
88545
  else
88499
- object.limitSharingSettingTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.limitSharingSettingTimestamp) : options.longs === Number ? new $util.LongBits(message.limitSharingSettingTimestamp.low >>> 0, message.limitSharingSettingTimestamp.high >>> 0).toNumber() : message.limitSharingSettingTimestamp;
88546
+ object.limitSharingSettingTimestamp = options.longs === String ? longToString(message.limitSharingSettingTimestamp) : options.longs === Number ? longToNumber(message.limitSharingSettingTimestamp) : message.limitSharingSettingTimestamp;
88500
88547
  if (options.oneofs)
88501
88548
  object._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
88502
88549
  }
@@ -90335,7 +90382,7 @@ export const proto = $root.proto = (() => {
90335
90382
  if (typeof message.mediaKeyTimestamp === "number")
90336
90383
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
90337
90384
  else
90338
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
90385
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
90339
90386
  if (options.oneofs)
90340
90387
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
90341
90388
  }
@@ -90393,7 +90440,7 @@ export const proto = $root.proto = (() => {
90393
90440
  if (typeof message.size === "number")
90394
90441
  object.size = options.longs === String ? String(message.size) : message.size;
90395
90442
  else
90396
- object.size = options.longs === String ? $util.Long.prototype.toString.call(message.size) : options.longs === Number ? new $util.LongBits(message.size.low >>> 0, message.size.high >>> 0).toNumber() : message.size;
90443
+ object.size = options.longs === String ? longToString(message.size) : options.longs === Number ? longToNumber(message.size) : message.size;
90397
90444
  if (options.oneofs)
90398
90445
  object._size = "size";
90399
90446
  }
@@ -90401,7 +90448,7 @@ export const proto = $root.proto = (() => {
90401
90448
  if (typeof message.lastDownloadAttemptTimestamp === "number")
90402
90449
  object.lastDownloadAttemptTimestamp = options.longs === String ? String(message.lastDownloadAttemptTimestamp) : message.lastDownloadAttemptTimestamp;
90403
90450
  else
90404
- object.lastDownloadAttemptTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.lastDownloadAttemptTimestamp) : options.longs === Number ? new $util.LongBits(message.lastDownloadAttemptTimestamp.low >>> 0, message.lastDownloadAttemptTimestamp.high >>> 0).toNumber() : message.lastDownloadAttemptTimestamp;
90451
+ object.lastDownloadAttemptTimestamp = options.longs === String ? longToString(message.lastDownloadAttemptTimestamp) : options.longs === Number ? longToNumber(message.lastDownloadAttemptTimestamp) : message.lastDownloadAttemptTimestamp;
90405
90452
  if (options.oneofs)
90406
90453
  object._lastDownloadAttemptTimestamp = "lastDownloadAttemptTimestamp";
90407
90454
  }
@@ -90795,7 +90842,7 @@ export const proto = $root.proto = (() => {
90795
90842
  if (typeof message.mediaKeyTimestamp === "number")
90796
90843
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
90797
90844
  else
90798
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
90845
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
90799
90846
  if (options.oneofs)
90800
90847
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
90801
90848
  }
@@ -91385,7 +91432,7 @@ export const proto = $root.proto = (() => {
91385
91432
  if (typeof message.fileLength === "number")
91386
91433
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
91387
91434
  else
91388
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
91435
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
91389
91436
  if (options.oneofs)
91390
91437
  object._fileLength = "fileLength";
91391
91438
  }
@@ -92029,7 +92076,7 @@ export const proto = $root.proto = (() => {
92029
92076
  if (typeof message.labelTimestamp === "number")
92030
92077
  object.labelTimestamp = options.longs === String ? String(message.labelTimestamp) : message.labelTimestamp;
92031
92078
  else
92032
- object.labelTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.labelTimestamp) : options.longs === Number ? new $util.LongBits(message.labelTimestamp.low >>> 0, message.labelTimestamp.high >>> 0).toNumber() : message.labelTimestamp;
92079
+ object.labelTimestamp = options.longs === String ? longToString(message.labelTimestamp) : options.longs === Number ? longToNumber(message.labelTimestamp) : message.labelTimestamp;
92033
92080
  if (options.oneofs)
92034
92081
  object._labelTimestamp = "labelTimestamp";
92035
92082
  }
@@ -97267,7 +97314,7 @@ export const proto = $root.proto = (() => {
97267
97314
  if (typeof message.timestamp === "number")
97268
97315
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
97269
97316
  else
97270
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
97317
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
97271
97318
  if (options.oneofs)
97272
97319
  object._timestamp = "timestamp";
97273
97320
  }
@@ -97833,7 +97880,7 @@ export const proto = $root.proto = (() => {
97833
97880
  if (typeof message.timestamp === "number")
97834
97881
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
97835
97882
  else
97836
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
97883
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
97837
97884
  if (options.oneofs)
97838
97885
  object._timestamp = "timestamp";
97839
97886
  }
@@ -99496,7 +99543,7 @@ export const proto = $root.proto = (() => {
99496
99543
  if (typeof message.fileLength === "number")
99497
99544
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
99498
99545
  else
99499
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
99546
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
99500
99547
  if (options.oneofs)
99501
99548
  object._fileLength = "fileLength";
99502
99549
  }
@@ -99529,7 +99576,7 @@ export const proto = $root.proto = (() => {
99529
99576
  if (typeof message.mediaKeyTimestamp === "number")
99530
99577
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
99531
99578
  else
99532
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
99579
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
99533
99580
  if (options.oneofs)
99534
99581
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
99535
99582
  }
@@ -102736,7 +102783,7 @@ export const proto = $root.proto = (() => {
102736
102783
  if (typeof message.durationSecs === "number")
102737
102784
  object.durationSecs = options.longs === String ? String(message.durationSecs) : message.durationSecs;
102738
102785
  else
102739
- object.durationSecs = options.longs === String ? $util.Long.prototype.toString.call(message.durationSecs) : options.longs === Number ? new $util.LongBits(message.durationSecs.low >>> 0, message.durationSecs.high >>> 0).toNumber() : message.durationSecs;
102786
+ object.durationSecs = options.longs === String ? longToString(message.durationSecs) : options.longs === Number ? longToNumber(message.durationSecs) : message.durationSecs;
102740
102787
  if (options.oneofs)
102741
102788
  object._durationSecs = "durationSecs";
102742
102789
  }
@@ -105088,7 +105135,7 @@ export const proto = $root.proto = (() => {
105088
105135
  if (typeof message.settingTimestampMs === "number")
105089
105136
  object.settingTimestampMs = options.longs === String ? String(message.settingTimestampMs) : message.settingTimestampMs;
105090
105137
  else
105091
- object.settingTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.settingTimestampMs) : options.longs === Number ? new $util.LongBits(message.settingTimestampMs.low >>> 0, message.settingTimestampMs.high >>> 0).toNumber() : message.settingTimestampMs;
105138
+ object.settingTimestampMs = options.longs === String ? longToString(message.settingTimestampMs) : options.longs === Number ? longToNumber(message.settingTimestampMs) : message.settingTimestampMs;
105092
105139
  if (options.oneofs)
105093
105140
  object._settingTimestampMs = "settingTimestampMs";
105094
105141
  }
@@ -105526,7 +105573,7 @@ export const proto = $root.proto = (() => {
105526
105573
  if (typeof message.senderNotificationTimestampMs === "number")
105527
105574
  object.senderNotificationTimestampMs = options.longs === String ? String(message.senderNotificationTimestampMs) : message.senderNotificationTimestampMs;
105528
105575
  else
105529
- object.senderNotificationTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderNotificationTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderNotificationTimestampMs.low >>> 0, message.senderNotificationTimestampMs.high >>> 0).toNumber() : message.senderNotificationTimestampMs;
105576
+ object.senderNotificationTimestampMs = options.longs === String ? longToString(message.senderNotificationTimestampMs) : options.longs === Number ? longToNumber(message.senderNotificationTimestampMs) : message.senderNotificationTimestampMs;
105530
105577
  if (options.oneofs)
105531
105578
  object._senderNotificationTimestampMs = "senderNotificationTimestampMs";
105532
105579
  }
@@ -108412,7 +108459,7 @@ export const proto = $root.proto = (() => {
108412
108459
  if (typeof message.fileLength === "number")
108413
108460
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
108414
108461
  else
108415
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
108462
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
108416
108463
  if (options.oneofs)
108417
108464
  object._fileLength = "fileLength";
108418
108465
  }
@@ -108445,7 +108492,7 @@ export const proto = $root.proto = (() => {
108445
108492
  if (typeof message.mediaKeyTimestamp === "number")
108446
108493
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
108447
108494
  else
108448
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
108495
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
108449
108496
  if (options.oneofs)
108450
108497
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
108451
108498
  }
@@ -109871,7 +109918,7 @@ export const proto = $root.proto = (() => {
109871
109918
  if (typeof message.startTime === "number")
109872
109919
  object.startTime = options.longs === String ? String(message.startTime) : message.startTime;
109873
109920
  else
109874
- object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime;
109921
+ object.startTime = options.longs === String ? longToString(message.startTime) : options.longs === Number ? longToNumber(message.startTime) : message.startTime;
109875
109922
  if (options.oneofs)
109876
109923
  object._startTime = "startTime";
109877
109924
  }
@@ -109889,7 +109936,7 @@ export const proto = $root.proto = (() => {
109889
109936
  if (typeof message.endTime === "number")
109890
109937
  object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
109891
109938
  else
109892
- object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime;
109939
+ object.endTime = options.longs === String ? longToString(message.endTime) : options.longs === Number ? longToNumber(message.endTime) : message.endTime;
109893
109940
  if (options.oneofs)
109894
109941
  object._endTime = "endTime";
109895
109942
  }
@@ -110486,7 +110533,7 @@ export const proto = $root.proto = (() => {
110486
110533
  if (typeof message.startTime === "number")
110487
110534
  object.startTime = options.longs === String ? String(message.startTime) : message.startTime;
110488
110535
  else
110489
- object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime;
110536
+ object.startTime = options.longs === String ? longToString(message.startTime) : options.longs === Number ? longToNumber(message.startTime) : message.startTime;
110490
110537
  if (options.oneofs)
110491
110538
  object._startTime = "startTime";
110492
110539
  }
@@ -110494,7 +110541,7 @@ export const proto = $root.proto = (() => {
110494
110541
  if (typeof message.endTime === "number")
110495
110542
  object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
110496
110543
  else
110497
- object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime;
110544
+ object.endTime = options.longs === String ? longToString(message.endTime) : options.longs === Number ? longToNumber(message.endTime) : message.endTime;
110498
110545
  if (options.oneofs)
110499
110546
  object._endTime = "endTime";
110500
110547
  }
@@ -110517,7 +110564,7 @@ export const proto = $root.proto = (() => {
110517
110564
  if (typeof message.reminderOffsetSec === "number")
110518
110565
  object.reminderOffsetSec = options.longs === String ? String(message.reminderOffsetSec) : message.reminderOffsetSec;
110519
110566
  else
110520
- object.reminderOffsetSec = options.longs === String ? $util.Long.prototype.toString.call(message.reminderOffsetSec) : options.longs === Number ? new $util.LongBits(message.reminderOffsetSec.low >>> 0, message.reminderOffsetSec.high >>> 0).toNumber() : message.reminderOffsetSec;
110567
+ object.reminderOffsetSec = options.longs === String ? longToString(message.reminderOffsetSec) : options.longs === Number ? longToNumber(message.reminderOffsetSec) : message.reminderOffsetSec;
110521
110568
  if (options.oneofs)
110522
110569
  object._reminderOffsetSec = "reminderOffsetSec";
110523
110570
  }
@@ -110835,7 +110882,7 @@ export const proto = $root.proto = (() => {
110835
110882
  if (typeof message.timestampMs === "number")
110836
110883
  object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
110837
110884
  else
110838
- object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber() : message.timestampMs;
110885
+ object.timestampMs = options.longs === String ? longToString(message.timestampMs) : options.longs === Number ? longToNumber(message.timestampMs) : message.timestampMs;
110839
110886
  if (options.oneofs)
110840
110887
  object._timestampMs = "timestampMs";
110841
110888
  }
@@ -112238,7 +112285,7 @@ export const proto = $root.proto = (() => {
112238
112285
  if (typeof message.mediaKeyTimestamp === "number")
112239
112286
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
112240
112287
  else
112241
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
112288
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
112242
112289
  if (options.oneofs)
112243
112290
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
112244
112291
  }
@@ -112640,7 +112687,7 @@ export const proto = $root.proto = (() => {
112640
112687
  if (typeof message.historyFromTimestamp === "number")
112641
112688
  object.historyFromTimestamp = options.longs === String ? String(message.historyFromTimestamp) : message.historyFromTimestamp;
112642
112689
  else
112643
- object.historyFromTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.historyFromTimestamp) : options.longs === Number ? new $util.LongBits(message.historyFromTimestamp.low >>> 0, message.historyFromTimestamp.high >>> 0).toNumber(true) : message.historyFromTimestamp;
112690
+ object.historyFromTimestamp = options.longs === String ? longToString(message.historyFromTimestamp, true) : options.longs === Number ? longToNumber(message.historyFromTimestamp, true) : message.historyFromTimestamp;
112644
112691
  if (options.oneofs)
112645
112692
  object._historyFromTimestamp = "historyFromTimestamp";
112646
112693
  }
@@ -113618,7 +113665,7 @@ export const proto = $root.proto = (() => {
113618
113665
  if (typeof message.inviteExpiration === "number")
113619
113666
  object.inviteExpiration = options.longs === String ? String(message.inviteExpiration) : message.inviteExpiration;
113620
113667
  else
113621
- object.inviteExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.inviteExpiration) : options.longs === Number ? new $util.LongBits(message.inviteExpiration.low >>> 0, message.inviteExpiration.high >>> 0).toNumber() : message.inviteExpiration;
113668
+ object.inviteExpiration = options.longs === String ? longToString(message.inviteExpiration) : options.longs === Number ? longToNumber(message.inviteExpiration) : message.inviteExpiration;
113622
113669
  if (options.oneofs)
113623
113670
  object._inviteExpiration = "inviteExpiration";
113624
113671
  }
@@ -114716,7 +114763,7 @@ export const proto = $root.proto = (() => {
114716
114763
  if (typeof message.amount1000 === "number")
114717
114764
  object.amount1000 = options.longs === String ? String(message.amount1000) : message.amount1000;
114718
114765
  else
114719
- object.amount1000 = options.longs === String ? $util.Long.prototype.toString.call(message.amount1000) : options.longs === Number ? new $util.LongBits(message.amount1000.low >>> 0, message.amount1000.high >>> 0).toNumber() : message.amount1000;
114766
+ object.amount1000 = options.longs === String ? longToString(message.amount1000) : options.longs === Number ? longToNumber(message.amount1000) : message.amount1000;
114720
114767
  if (options.oneofs)
114721
114768
  object._amount1000 = "amount1000";
114722
114769
  }
@@ -115722,7 +115769,7 @@ export const proto = $root.proto = (() => {
115722
115769
  if (typeof message.timestamp === "number")
115723
115770
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
115724
115771
  else
115725
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
115772
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
115726
115773
  if (options.oneofs)
115727
115774
  object._timestamp = "timestamp";
115728
115775
  }
@@ -116659,7 +116706,7 @@ export const proto = $root.proto = (() => {
116659
116706
  if (typeof message.fileLength === "number")
116660
116707
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
116661
116708
  else
116662
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
116709
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
116663
116710
  if (options.oneofs)
116664
116711
  object._fileLength = "fileLength";
116665
116712
  }
@@ -116702,7 +116749,7 @@ export const proto = $root.proto = (() => {
116702
116749
  if (typeof message.oldestMsgInChunkTimestampSec === "number")
116703
116750
  object.oldestMsgInChunkTimestampSec = options.longs === String ? String(message.oldestMsgInChunkTimestampSec) : message.oldestMsgInChunkTimestampSec;
116704
116751
  else
116705
- object.oldestMsgInChunkTimestampSec = options.longs === String ? $util.Long.prototype.toString.call(message.oldestMsgInChunkTimestampSec) : options.longs === Number ? new $util.LongBits(message.oldestMsgInChunkTimestampSec.low >>> 0, message.oldestMsgInChunkTimestampSec.high >>> 0).toNumber() : message.oldestMsgInChunkTimestampSec;
116752
+ object.oldestMsgInChunkTimestampSec = options.longs === String ? longToString(message.oldestMsgInChunkTimestampSec) : options.longs === Number ? longToNumber(message.oldestMsgInChunkTimestampSec) : message.oldestMsgInChunkTimestampSec;
116706
116753
  if (options.oneofs)
116707
116754
  object._oldestMsgInChunkTimestampSec = "oldestMsgInChunkTimestampSec";
116708
116755
  }
@@ -117925,7 +117972,7 @@ export const proto = $root.proto = (() => {
117925
117972
  if (typeof message.fileLength === "number")
117926
117973
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
117927
117974
  else
117928
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
117975
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
117929
117976
  if (options.oneofs)
117930
117977
  object._fileLength = "fileLength";
117931
117978
  }
@@ -117963,7 +118010,7 @@ export const proto = $root.proto = (() => {
117963
118010
  if (typeof message.mediaKeyTimestamp === "number")
117964
118011
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
117965
118012
  else
117966
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
118013
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
117967
118014
  if (options.oneofs)
117968
118015
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
117969
118016
  }
@@ -123155,7 +123202,7 @@ export const proto = $root.proto = (() => {
123155
123202
  if (typeof message.attachmentMediaKeyTimestamp === "number")
123156
123203
  object.attachmentMediaKeyTimestamp = options.longs === String ? String(message.attachmentMediaKeyTimestamp) : message.attachmentMediaKeyTimestamp;
123157
123204
  else
123158
- object.attachmentMediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.attachmentMediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.attachmentMediaKeyTimestamp.low >>> 0, message.attachmentMediaKeyTimestamp.high >>> 0).toNumber() : message.attachmentMediaKeyTimestamp;
123205
+ object.attachmentMediaKeyTimestamp = options.longs === String ? longToString(message.attachmentMediaKeyTimestamp) : options.longs === Number ? longToNumber(message.attachmentMediaKeyTimestamp) : message.attachmentMediaKeyTimestamp;
123159
123206
  if (options.oneofs)
123160
123207
  object._attachmentMediaKeyTimestamp = "attachmentMediaKeyTimestamp";
123161
123208
  }
@@ -123513,7 +123560,7 @@ export const proto = $root.proto = (() => {
123513
123560
  if (typeof message.timestampMs === "number")
123514
123561
  object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
123515
123562
  else
123516
- object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber() : message.timestampMs;
123563
+ object.timestampMs = options.longs === String ? longToString(message.timestampMs) : options.longs === Number ? longToNumber(message.timestampMs) : message.timestampMs;
123517
123564
  if (options.oneofs)
123518
123565
  object._timestampMs = "timestampMs";
123519
123566
  }
@@ -127303,7 +127350,7 @@ export const proto = $root.proto = (() => {
127303
127350
  if (typeof message.sequenceNumber === "number")
127304
127351
  object.sequenceNumber = options.longs === String ? String(message.sequenceNumber) : message.sequenceNumber;
127305
127352
  else
127306
- object.sequenceNumber = options.longs === String ? $util.Long.prototype.toString.call(message.sequenceNumber) : options.longs === Number ? new $util.LongBits(message.sequenceNumber.low >>> 0, message.sequenceNumber.high >>> 0).toNumber() : message.sequenceNumber;
127353
+ object.sequenceNumber = options.longs === String ? longToString(message.sequenceNumber) : options.longs === Number ? longToNumber(message.sequenceNumber) : message.sequenceNumber;
127307
127354
  if (options.oneofs)
127308
127355
  object._sequenceNumber = "sequenceNumber";
127309
127356
  }
@@ -128333,7 +128380,7 @@ export const proto = $root.proto = (() => {
128333
128380
  if (typeof message.mediaKeyTimestamp === "number")
128334
128381
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
128335
128382
  else
128336
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
128383
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
128337
128384
  if (options.oneofs)
128338
128385
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
128339
128386
  }
@@ -128813,7 +128860,7 @@ export const proto = $root.proto = (() => {
128813
128860
  if (typeof message.mediaKeyTimestamp === "number")
128814
128861
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
128815
128862
  else
128816
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
128863
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
128817
128864
  if (options.oneofs)
128818
128865
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
128819
128866
  }
@@ -129196,7 +129243,7 @@ export const proto = $root.proto = (() => {
129196
129243
  if (typeof message.oldestMessageTimestampInWindow === "number")
129197
129244
  object.oldestMessageTimestampInWindow = options.longs === String ? String(message.oldestMessageTimestampInWindow) : message.oldestMessageTimestampInWindow;
129198
129245
  else
129199
- object.oldestMessageTimestampInWindow = options.longs === String ? $util.Long.prototype.toString.call(message.oldestMessageTimestampInWindow) : options.longs === Number ? new $util.LongBits(message.oldestMessageTimestampInWindow.low >>> 0, message.oldestMessageTimestampInWindow.high >>> 0).toNumber() : message.oldestMessageTimestampInWindow;
129246
+ object.oldestMessageTimestampInWindow = options.longs === String ? longToString(message.oldestMessageTimestampInWindow) : options.longs === Number ? longToNumber(message.oldestMessageTimestampInWindow) : message.oldestMessageTimestampInWindow;
129200
129247
  if (options.oneofs)
129201
129248
  object._oldestMessageTimestampInWindow = "oldestMessageTimestampInWindow";
129202
129249
  }
@@ -129204,7 +129251,7 @@ export const proto = $root.proto = (() => {
129204
129251
  if (typeof message.messageCount === "number")
129205
129252
  object.messageCount = options.longs === String ? String(message.messageCount) : message.messageCount;
129206
129253
  else
129207
- object.messageCount = options.longs === String ? $util.Long.prototype.toString.call(message.messageCount) : options.longs === Number ? new $util.LongBits(message.messageCount.low >>> 0, message.messageCount.high >>> 0).toNumber() : message.messageCount;
129254
+ object.messageCount = options.longs === String ? longToString(message.messageCount) : options.longs === Number ? longToNumber(message.messageCount) : message.messageCount;
129208
129255
  if (options.oneofs)
129209
129256
  object._messageCount = "messageCount";
129210
129257
  }
@@ -129217,7 +129264,7 @@ export const proto = $root.proto = (() => {
129217
129264
  if (typeof message.oldestMessageTimestampInBundle === "number")
129218
129265
  object.oldestMessageTimestampInBundle = options.longs === String ? String(message.oldestMessageTimestampInBundle) : message.oldestMessageTimestampInBundle;
129219
129266
  else
129220
- object.oldestMessageTimestampInBundle = options.longs === String ? $util.Long.prototype.toString.call(message.oldestMessageTimestampInBundle) : options.longs === Number ? new $util.LongBits(message.oldestMessageTimestampInBundle.low >>> 0, message.oldestMessageTimestampInBundle.high >>> 0).toNumber() : message.oldestMessageTimestampInBundle;
129267
+ object.oldestMessageTimestampInBundle = options.longs === String ? longToString(message.oldestMessageTimestampInBundle) : options.longs === Number ? longToNumber(message.oldestMessageTimestampInBundle) : message.oldestMessageTimestampInBundle;
129221
129268
  if (options.oneofs)
129222
129269
  object._oldestMessageTimestampInBundle = "oldestMessageTimestampInBundle";
129223
129270
  }
@@ -129877,7 +129924,7 @@ export const proto = $root.proto = (() => {
129877
129924
  if (typeof message.inviteExpiration === "number")
129878
129925
  object.inviteExpiration = options.longs === String ? String(message.inviteExpiration) : message.inviteExpiration;
129879
129926
  else
129880
- object.inviteExpiration = options.longs === String ? $util.Long.prototype.toString.call(message.inviteExpiration) : options.longs === Number ? new $util.LongBits(message.inviteExpiration.low >>> 0, message.inviteExpiration.high >>> 0).toNumber() : message.inviteExpiration;
129927
+ object.inviteExpiration = options.longs === String ? longToString(message.inviteExpiration) : options.longs === Number ? longToNumber(message.inviteExpiration) : message.inviteExpiration;
129881
129928
  if (options.oneofs)
129882
129929
  object._inviteExpiration = "inviteExpiration";
129883
129930
  }
@@ -130959,7 +131006,7 @@ export const proto = $root.proto = (() => {
130959
131006
  if (typeof message.totalAmount1000 === "number")
130960
131007
  object.totalAmount1000 = options.longs === String ? String(message.totalAmount1000) : message.totalAmount1000;
130961
131008
  else
130962
- object.totalAmount1000 = options.longs === String ? $util.Long.prototype.toString.call(message.totalAmount1000) : options.longs === Number ? new $util.LongBits(message.totalAmount1000.low >>> 0, message.totalAmount1000.high >>> 0).toNumber() : message.totalAmount1000;
131009
+ object.totalAmount1000 = options.longs === String ? longToString(message.totalAmount1000) : options.longs === Number ? longToNumber(message.totalAmount1000) : message.totalAmount1000;
130963
131010
  if (options.oneofs)
130964
131011
  object._totalAmount1000 = "totalAmount1000";
130965
131012
  }
@@ -131656,7 +131703,7 @@ export const proto = $root.proto = (() => {
131656
131703
  if (typeof message.expiryTimestamp === "number")
131657
131704
  object.expiryTimestamp = options.longs === String ? String(message.expiryTimestamp) : message.expiryTimestamp;
131658
131705
  else
131659
- object.expiryTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.expiryTimestamp) : options.longs === Number ? new $util.LongBits(message.expiryTimestamp.low >>> 0, message.expiryTimestamp.high >>> 0).toNumber() : message.expiryTimestamp;
131706
+ object.expiryTimestamp = options.longs === String ? longToString(message.expiryTimestamp) : options.longs === Number ? longToNumber(message.expiryTimestamp) : message.expiryTimestamp;
131660
131707
  if (options.oneofs)
131661
131708
  object._expiryTimestamp = "expiryTimestamp";
131662
131709
  }
@@ -136161,7 +136208,7 @@ export const proto = $root.proto = (() => {
136161
136208
  if (typeof message.oldestMsgTimestampMs === "number")
136162
136209
  object.oldestMsgTimestampMs = options.longs === String ? String(message.oldestMsgTimestampMs) : message.oldestMsgTimestampMs;
136163
136210
  else
136164
- object.oldestMsgTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.oldestMsgTimestampMs) : options.longs === Number ? new $util.LongBits(message.oldestMsgTimestampMs.low >>> 0, message.oldestMsgTimestampMs.high >>> 0).toNumber() : message.oldestMsgTimestampMs;
136211
+ object.oldestMsgTimestampMs = options.longs === String ? longToString(message.oldestMsgTimestampMs) : options.longs === Number ? longToNumber(message.oldestMsgTimestampMs) : message.oldestMsgTimestampMs;
136165
136212
  if (options.oneofs)
136166
136213
  object._oldestMsgTimestampMs = "oldestMsgTimestampMs";
136167
136214
  }
@@ -137125,7 +137172,7 @@ export const proto = $root.proto = (() => {
137125
137172
  if (typeof message.timestamp === "number")
137126
137173
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
137127
137174
  else
137128
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
137175
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
137129
137176
  if (options.oneofs)
137130
137177
  object._timestamp = "timestamp";
137131
137178
  }
@@ -138474,7 +138521,7 @@ export const proto = $root.proto = (() => {
138474
138521
  if (typeof message.timestampMs === "number")
138475
138522
  object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
138476
138523
  else
138477
- object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber() : message.timestampMs;
138524
+ object.timestampMs = options.longs === String ? longToString(message.timestampMs) : options.longs === Number ? longToNumber(message.timestampMs) : message.timestampMs;
138478
138525
  if (options.oneofs)
138479
138526
  object._timestampMs = "timestampMs";
138480
138527
  }
@@ -139802,7 +139849,7 @@ export const proto = $root.proto = (() => {
139802
139849
  if (typeof message.mediaKeyTimestamp === "number")
139803
139850
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
139804
139851
  else
139805
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
139852
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
139806
139853
  if (options.oneofs)
139807
139854
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
139808
139855
  }
@@ -139810,7 +139857,7 @@ export const proto = $root.proto = (() => {
139810
139857
  if (typeof message.fileLength === "number")
139811
139858
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
139812
139859
  else
139813
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
139860
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
139814
139861
  if (options.oneofs)
139815
139862
  object._fileLength = "fileLength";
139816
139863
  }
@@ -141487,7 +141534,7 @@ export const proto = $root.proto = (() => {
141487
141534
  if (typeof message.mediaKeyTimestampMs === "number")
141488
141535
  object.mediaKeyTimestampMs = options.longs === String ? String(message.mediaKeyTimestampMs) : message.mediaKeyTimestampMs;
141489
141536
  else
141490
- object.mediaKeyTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestampMs) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestampMs.low >>> 0, message.mediaKeyTimestampMs.high >>> 0).toNumber() : message.mediaKeyTimestampMs;
141537
+ object.mediaKeyTimestampMs = options.longs === String ? longToString(message.mediaKeyTimestampMs) : options.longs === Number ? longToNumber(message.mediaKeyTimestampMs) : message.mediaKeyTimestampMs;
141491
141538
  if (options.oneofs)
141492
141539
  object._mediaKeyTimestampMs = "mediaKeyTimestampMs";
141493
141540
  }
@@ -142944,7 +142991,7 @@ export const proto = $root.proto = (() => {
142944
142991
  if (typeof message.senderTimestampMs === "number")
142945
142992
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
142946
142993
  else
142947
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
142994
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
142948
142995
  if (options.oneofs)
142949
142996
  object._senderTimestampMs = "senderTimestampMs";
142950
142997
  }
@@ -144140,7 +144187,7 @@ export const proto = $root.proto = (() => {
144140
144187
  if (typeof message.endTime === "number")
144141
144188
  object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
144142
144189
  else
144143
- object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime;
144190
+ object.endTime = options.longs === String ? longToString(message.endTime) : options.longs === Number ? longToNumber(message.endTime) : message.endTime;
144144
144191
  if (options.oneofs)
144145
144192
  object._endTime = "endTime";
144146
144193
  }
@@ -145270,7 +145317,7 @@ export const proto = $root.proto = (() => {
145270
145317
  if (typeof message.optionVoteCount === "number")
145271
145318
  object.optionVoteCount = options.longs === String ? String(message.optionVoteCount) : message.optionVoteCount;
145272
145319
  else
145273
- object.optionVoteCount = options.longs === String ? $util.Long.prototype.toString.call(message.optionVoteCount) : options.longs === Number ? new $util.LongBits(message.optionVoteCount.low >>> 0, message.optionVoteCount.high >>> 0).toNumber() : message.optionVoteCount;
145320
+ object.optionVoteCount = options.longs === String ? longToString(message.optionVoteCount) : options.longs === Number ? longToNumber(message.optionVoteCount) : message.optionVoteCount;
145274
145321
  if (options.oneofs)
145275
145322
  object._optionVoteCount = "optionVoteCount";
145276
145323
  }
@@ -145632,7 +145679,7 @@ export const proto = $root.proto = (() => {
145632
145679
  if (typeof message.senderTimestampMs === "number")
145633
145680
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
145634
145681
  else
145635
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
145682
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
145636
145683
  if (options.oneofs)
145637
145684
  object._senderTimestampMs = "senderTimestampMs";
145638
145685
  }
@@ -147372,7 +147419,7 @@ export const proto = $root.proto = (() => {
147372
147419
  if (typeof message.priceAmount1000 === "number")
147373
147420
  object.priceAmount1000 = options.longs === String ? String(message.priceAmount1000) : message.priceAmount1000;
147374
147421
  else
147375
- object.priceAmount1000 = options.longs === String ? $util.Long.prototype.toString.call(message.priceAmount1000) : options.longs === Number ? new $util.LongBits(message.priceAmount1000.low >>> 0, message.priceAmount1000.high >>> 0).toNumber() : message.priceAmount1000;
147422
+ object.priceAmount1000 = options.longs === String ? longToString(message.priceAmount1000) : options.longs === Number ? longToNumber(message.priceAmount1000) : message.priceAmount1000;
147376
147423
  if (options.oneofs)
147377
147424
  object._priceAmount1000 = "priceAmount1000";
147378
147425
  }
@@ -147400,7 +147447,7 @@ export const proto = $root.proto = (() => {
147400
147447
  if (typeof message.salePriceAmount1000 === "number")
147401
147448
  object.salePriceAmount1000 = options.longs === String ? String(message.salePriceAmount1000) : message.salePriceAmount1000;
147402
147449
  else
147403
- object.salePriceAmount1000 = options.longs === String ? $util.Long.prototype.toString.call(message.salePriceAmount1000) : options.longs === Number ? new $util.LongBits(message.salePriceAmount1000.low >>> 0, message.salePriceAmount1000.high >>> 0).toNumber() : message.salePriceAmount1000;
147450
+ object.salePriceAmount1000 = options.longs === String ? longToString(message.salePriceAmount1000) : options.longs === Number ? longToNumber(message.salePriceAmount1000) : message.salePriceAmount1000;
147404
147451
  if (options.oneofs)
147405
147452
  object._salePriceAmount1000 = "salePriceAmount1000";
147406
147453
  }
@@ -148702,7 +148749,7 @@ export const proto = $root.proto = (() => {
148702
148749
  if (typeof message.ephemeralSettingTimestamp === "number")
148703
148750
  object.ephemeralSettingTimestamp = options.longs === String ? String(message.ephemeralSettingTimestamp) : message.ephemeralSettingTimestamp;
148704
148751
  else
148705
- object.ephemeralSettingTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.ephemeralSettingTimestamp) : options.longs === Number ? new $util.LongBits(message.ephemeralSettingTimestamp.low >>> 0, message.ephemeralSettingTimestamp.high >>> 0).toNumber() : message.ephemeralSettingTimestamp;
148752
+ object.ephemeralSettingTimestamp = options.longs === String ? longToString(message.ephemeralSettingTimestamp) : options.longs === Number ? longToNumber(message.ephemeralSettingTimestamp) : message.ephemeralSettingTimestamp;
148706
148753
  if (options.oneofs)
148707
148754
  object._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
148708
148755
  }
@@ -148745,7 +148792,7 @@ export const proto = $root.proto = (() => {
148745
148792
  if (typeof message.timestampMs === "number")
148746
148793
  object.timestampMs = options.longs === String ? String(message.timestampMs) : message.timestampMs;
148747
148794
  else
148748
- object.timestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMs) : options.longs === Number ? new $util.LongBits(message.timestampMs.low >>> 0, message.timestampMs.high >>> 0).toNumber() : message.timestampMs;
148795
+ object.timestampMs = options.longs === String ? longToString(message.timestampMs) : options.longs === Number ? longToNumber(message.timestampMs) : message.timestampMs;
148749
148796
  if (options.oneofs)
148750
148797
  object._timestampMs = "timestampMs";
148751
148798
  }
@@ -149485,7 +149532,7 @@ export const proto = $root.proto = (() => {
149485
149532
  if (typeof message.senderTimestampMs === "number")
149486
149533
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
149487
149534
  else
149488
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
149535
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
149489
149536
  if (options.oneofs)
149490
149537
  object._senderTimestampMs = "senderTimestampMs";
149491
149538
  }
@@ -149911,7 +149958,7 @@ export const proto = $root.proto = (() => {
149911
149958
  if (typeof message.amount1000 === "number")
149912
149959
  object.amount1000 = options.longs === String ? String(message.amount1000) : message.amount1000;
149913
149960
  else
149914
- object.amount1000 = options.longs === String ? $util.Long.prototype.toString.call(message.amount1000) : options.longs === Number ? new $util.LongBits(message.amount1000.low >>> 0, message.amount1000.high >>> 0).toNumber(true) : message.amount1000;
149961
+ object.amount1000 = options.longs === String ? longToString(message.amount1000, true) : options.longs === Number ? longToNumber(message.amount1000, true) : message.amount1000;
149915
149962
  if (options.oneofs)
149916
149963
  object._amount1000 = "amount1000";
149917
149964
  }
@@ -149929,7 +149976,7 @@ export const proto = $root.proto = (() => {
149929
149976
  if (typeof message.expiryTimestamp === "number")
149930
149977
  object.expiryTimestamp = options.longs === String ? String(message.expiryTimestamp) : message.expiryTimestamp;
149931
149978
  else
149932
- object.expiryTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.expiryTimestamp) : options.longs === Number ? new $util.LongBits(message.expiryTimestamp.low >>> 0, message.expiryTimestamp.high >>> 0).toNumber() : message.expiryTimestamp;
149979
+ object.expiryTimestamp = options.longs === String ? longToString(message.expiryTimestamp) : options.longs === Number ? longToNumber(message.expiryTimestamp) : message.expiryTimestamp;
149933
149980
  if (options.oneofs)
149934
149981
  object._expiryTimestamp = "expiryTimestamp";
149935
149982
  }
@@ -151045,7 +151092,7 @@ export const proto = $root.proto = (() => {
151045
151092
  if (typeof message.scheduledTimestampMs === "number")
151046
151093
  object.scheduledTimestampMs = options.longs === String ? String(message.scheduledTimestampMs) : message.scheduledTimestampMs;
151047
151094
  else
151048
- object.scheduledTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.scheduledTimestampMs) : options.longs === Number ? new $util.LongBits(message.scheduledTimestampMs.low >>> 0, message.scheduledTimestampMs.high >>> 0).toNumber() : message.scheduledTimestampMs;
151095
+ object.scheduledTimestampMs = options.longs === String ? longToString(message.scheduledTimestampMs) : options.longs === Number ? longToNumber(message.scheduledTimestampMs) : message.scheduledTimestampMs;
151049
151096
  if (options.oneofs)
151050
151097
  object._scheduledTimestampMs = "scheduledTimestampMs";
151051
151098
  }
@@ -152818,7 +152865,7 @@ export const proto = $root.proto = (() => {
152818
152865
  if (typeof message.createdAtMs === "number")
152819
152866
  object.createdAtMs = options.longs === String ? String(message.createdAtMs) : message.createdAtMs;
152820
152867
  else
152821
- object.createdAtMs = options.longs === String ? $util.Long.prototype.toString.call(message.createdAtMs) : options.longs === Number ? new $util.LongBits(message.createdAtMs.low >>> 0, message.createdAtMs.high >>> 0).toNumber() : message.createdAtMs;
152868
+ object.createdAtMs = options.longs === String ? longToString(message.createdAtMs) : options.longs === Number ? longToNumber(message.createdAtMs) : message.createdAtMs;
152822
152869
  if (options.oneofs)
152823
152870
  object._createdAtMs = "createdAtMs";
152824
152871
  }
@@ -155312,7 +155359,7 @@ export const proto = $root.proto = (() => {
155312
155359
  if (typeof message.fileLength === "number")
155313
155360
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
155314
155361
  else
155315
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
155362
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
155316
155363
  if (options.oneofs)
155317
155364
  object._fileLength = "fileLength";
155318
155365
  }
@@ -155320,7 +155367,7 @@ export const proto = $root.proto = (() => {
155320
155367
  if (typeof message.mediaKeyTimestamp === "number")
155321
155368
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
155322
155369
  else
155323
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
155370
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
155324
155371
  if (options.oneofs)
155325
155372
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
155326
155373
  }
@@ -155353,7 +155400,7 @@ export const proto = $root.proto = (() => {
155353
155400
  if (typeof message.stickerSentTs === "number")
155354
155401
  object.stickerSentTs = options.longs === String ? String(message.stickerSentTs) : message.stickerSentTs;
155355
155402
  else
155356
- object.stickerSentTs = options.longs === String ? $util.Long.prototype.toString.call(message.stickerSentTs) : options.longs === Number ? new $util.LongBits(message.stickerSentTs.low >>> 0, message.stickerSentTs.high >>> 0).toNumber() : message.stickerSentTs;
155403
+ object.stickerSentTs = options.longs === String ? longToString(message.stickerSentTs) : options.longs === Number ? longToNumber(message.stickerSentTs) : message.stickerSentTs;
155357
155404
  if (options.oneofs)
155358
155405
  object._stickerSentTs = "stickerSentTs";
155359
155406
  }
@@ -156290,7 +156337,7 @@ export const proto = $root.proto = (() => {
156290
156337
  if (typeof message.fileLength === "number")
156291
156338
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
156292
156339
  else
156293
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
156340
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
156294
156341
  if (options.oneofs)
156295
156342
  object._fileLength = "fileLength";
156296
156343
  }
@@ -156333,7 +156380,7 @@ export const proto = $root.proto = (() => {
156333
156380
  if (typeof message.mediaKeyTimestamp === "number")
156334
156381
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
156335
156382
  else
156336
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
156383
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
156337
156384
  if (options.oneofs)
156338
156385
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
156339
156386
  }
@@ -156376,7 +156423,7 @@ export const proto = $root.proto = (() => {
156376
156423
  if (typeof message.stickerPackSize === "number")
156377
156424
  object.stickerPackSize = options.longs === String ? String(message.stickerPackSize) : message.stickerPackSize;
156378
156425
  else
156379
- object.stickerPackSize = options.longs === String ? $util.Long.prototype.toString.call(message.stickerPackSize) : options.longs === Number ? new $util.LongBits(message.stickerPackSize.low >>> 0, message.stickerPackSize.high >>> 0).toNumber(true) : message.stickerPackSize;
156426
+ object.stickerPackSize = options.longs === String ? longToString(message.stickerPackSize, true) : options.longs === Number ? longToNumber(message.stickerPackSize, true) : message.stickerPackSize;
156380
156427
  if (options.oneofs)
156381
156428
  object._stickerPackSize = "stickerPackSize";
156382
156429
  }
@@ -157121,7 +157168,7 @@ export const proto = $root.proto = (() => {
157121
157168
  if (typeof message.requestTimestamp === "number")
157122
157169
  object.requestTimestamp = options.longs === String ? String(message.requestTimestamp) : message.requestTimestamp;
157123
157170
  else
157124
- object.requestTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.requestTimestamp) : options.longs === Number ? new $util.LongBits(message.requestTimestamp.low >>> 0, message.requestTimestamp.high >>> 0).toNumber() : message.requestTimestamp;
157171
+ object.requestTimestamp = options.longs === String ? longToString(message.requestTimestamp) : options.longs === Number ? longToNumber(message.requestTimestamp) : message.requestTimestamp;
157125
157172
  if (options.oneofs)
157126
157173
  object._requestTimestamp = "requestTimestamp";
157127
157174
  }
@@ -160633,7 +160680,7 @@ export const proto = $root.proto = (() => {
160633
160680
  if (typeof message.fileLength === "number")
160634
160681
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
160635
160682
  else
160636
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
160683
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
160637
160684
  if (options.oneofs)
160638
160685
  object._fileLength = "fileLength";
160639
160686
  }
@@ -160686,7 +160733,7 @@ export const proto = $root.proto = (() => {
160686
160733
  if (typeof message.mediaKeyTimestamp === "number")
160687
160734
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
160688
160735
  else
160689
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
160736
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
160690
160737
  if (options.oneofs)
160691
160738
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
160692
160739
  }
@@ -160759,7 +160806,7 @@ export const proto = $root.proto = (() => {
160759
160806
  if (typeof message.motionPhotoPresentationOffsetMs === "number")
160760
160807
  object.motionPhotoPresentationOffsetMs = options.longs === String ? String(message.motionPhotoPresentationOffsetMs) : message.motionPhotoPresentationOffsetMs;
160761
160808
  else
160762
- object.motionPhotoPresentationOffsetMs = options.longs === String ? $util.Long.prototype.toString.call(message.motionPhotoPresentationOffsetMs) : options.longs === Number ? new $util.LongBits(message.motionPhotoPresentationOffsetMs.low >>> 0, message.motionPhotoPresentationOffsetMs.high >>> 0).toNumber(true) : message.motionPhotoPresentationOffsetMs;
160809
+ object.motionPhotoPresentationOffsetMs = options.longs === String ? longToString(message.motionPhotoPresentationOffsetMs, true) : options.longs === Number ? longToNumber(message.motionPhotoPresentationOffsetMs, true) : message.motionPhotoPresentationOffsetMs;
160763
160810
  if (options.oneofs)
160764
160811
  object._motionPhotoPresentationOffsetMs = "motionPhotoPresentationOffsetMs";
160765
160812
  }
@@ -161342,7 +161389,7 @@ export const proto = $root.proto = (() => {
161342
161389
  if (typeof message.senderTimestampMs === "number")
161343
161390
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
161344
161391
  else
161345
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
161392
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
161346
161393
  if (options.oneofs)
161347
161394
  object._senderTimestampMs = "senderTimestampMs";
161348
161395
  }
@@ -161350,7 +161397,7 @@ export const proto = $root.proto = (() => {
161350
161397
  if (typeof message.serverTimestampMs === "number")
161351
161398
  object.serverTimestampMs = options.longs === String ? String(message.serverTimestampMs) : message.serverTimestampMs;
161352
161399
  else
161353
- object.serverTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.serverTimestampMs) : options.longs === Number ? new $util.LongBits(message.serverTimestampMs.low >>> 0, message.serverTimestampMs.high >>> 0).toNumber() : message.serverTimestampMs;
161400
+ object.serverTimestampMs = options.longs === String ? longToString(message.serverTimestampMs) : options.longs === Number ? longToNumber(message.serverTimestampMs) : message.serverTimestampMs;
161354
161401
  if (options.oneofs)
161355
161402
  object._serverTimestampMs = "serverTimestampMs";
161356
161403
  }
@@ -164206,7 +164253,7 @@ export const proto = $root.proto = (() => {
164206
164253
  if (typeof message.value === "number")
164207
164254
  object.value = options.longs === String ? String(message.value) : message.value;
164208
164255
  else
164209
- object.value = options.longs === String ? $util.Long.prototype.toString.call(message.value) : options.longs === Number ? new $util.LongBits(message.value.low >>> 0, message.value.high >>> 0).toNumber() : message.value;
164256
+ object.value = options.longs === String ? longToString(message.value) : options.longs === Number ? longToNumber(message.value) : message.value;
164210
164257
  if (options.oneofs)
164211
164258
  object._value = "value";
164212
164259
  }
@@ -166176,7 +166223,7 @@ export const proto = $root.proto = (() => {
166176
166223
  if (typeof message.senderTimestampMs === "number")
166177
166224
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
166178
166225
  else
166179
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
166226
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
166180
166227
  if (options.oneofs)
166181
166228
  object._senderTimestampMs = "senderTimestampMs";
166182
166229
  }
@@ -166254,7 +166301,7 @@ export const proto = $root.proto = (() => {
166254
166301
  if (typeof message.eventStartTime === "number")
166255
166302
  object.eventStartTime = options.longs === String ? String(message.eventStartTime) : message.eventStartTime;
166256
166303
  else
166257
- object.eventStartTime = options.longs === String ? $util.Long.prototype.toString.call(message.eventStartTime) : options.longs === Number ? new $util.LongBits(message.eventStartTime.low >>> 0, message.eventStartTime.high >>> 0).toNumber() : message.eventStartTime;
166304
+ object.eventStartTime = options.longs === String ? longToString(message.eventStartTime) : options.longs === Number ? longToNumber(message.eventStartTime) : message.eventStartTime;
166258
166305
  if (options.oneofs)
166259
166306
  object._eventStartTime = "eventStartTime";
166260
166307
  }
@@ -166267,7 +166314,7 @@ export const proto = $root.proto = (() => {
166267
166314
  if (typeof message.eventEndTime === "number")
166268
166315
  object.eventEndTime = options.longs === String ? String(message.eventEndTime) : message.eventEndTime;
166269
166316
  else
166270
- object.eventEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.eventEndTime) : options.longs === Number ? new $util.LongBits(message.eventEndTime.low >>> 0, message.eventEndTime.high >>> 0).toNumber() : message.eventEndTime;
166317
+ object.eventEndTime = options.longs === String ? longToString(message.eventEndTime) : options.longs === Number ? longToNumber(message.eventEndTime) : message.eventEndTime;
166271
166318
  if (options.oneofs)
166272
166319
  object._eventEndTime = "eventEndTime";
166273
166320
  }
@@ -166315,7 +166362,7 @@ export const proto = $root.proto = (() => {
166315
166362
  if (typeof message.pollEndTime === "number")
166316
166363
  object.pollEndTime = options.longs === String ? String(message.pollEndTime) : message.pollEndTime;
166317
166364
  else
166318
- object.pollEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.pollEndTime) : options.longs === Number ? new $util.LongBits(message.pollEndTime.low >>> 0, message.pollEndTime.high >>> 0).toNumber() : message.pollEndTime;
166365
+ object.pollEndTime = options.longs === String ? longToString(message.pollEndTime) : options.longs === Number ? longToNumber(message.pollEndTime) : message.pollEndTime;
166319
166366
  if (options.oneofs)
166320
166367
  object._pollEndTime = "pollEndTime";
166321
166368
  }
@@ -166348,7 +166395,7 @@ export const proto = $root.proto = (() => {
166348
166395
  if (typeof message.sharableEventInviteStartTime === "number")
166349
166396
  object.sharableEventInviteStartTime = options.longs === String ? String(message.sharableEventInviteStartTime) : message.sharableEventInviteStartTime;
166350
166397
  else
166351
- object.sharableEventInviteStartTime = options.longs === String ? $util.Long.prototype.toString.call(message.sharableEventInviteStartTime) : options.longs === Number ? new $util.LongBits(message.sharableEventInviteStartTime.low >>> 0, message.sharableEventInviteStartTime.high >>> 0).toNumber() : message.sharableEventInviteStartTime;
166398
+ object.sharableEventInviteStartTime = options.longs === String ? longToString(message.sharableEventInviteStartTime) : options.longs === Number ? longToNumber(message.sharableEventInviteStartTime) : message.sharableEventInviteStartTime;
166352
166399
  if (options.oneofs)
166353
166400
  object._sharableEventInviteStartTime = "sharableEventInviteStartTime";
166354
166401
  }
@@ -166356,7 +166403,7 @@ export const proto = $root.proto = (() => {
166356
166403
  if (typeof message.sharableEventInviteEndTime === "number")
166357
166404
  object.sharableEventInviteEndTime = options.longs === String ? String(message.sharableEventInviteEndTime) : message.sharableEventInviteEndTime;
166358
166405
  else
166359
- object.sharableEventInviteEndTime = options.longs === String ? $util.Long.prototype.toString.call(message.sharableEventInviteEndTime) : options.longs === Number ? new $util.LongBits(message.sharableEventInviteEndTime.low >>> 0, message.sharableEventInviteEndTime.high >>> 0).toNumber() : message.sharableEventInviteEndTime;
166406
+ object.sharableEventInviteEndTime = options.longs === String ? longToString(message.sharableEventInviteEndTime) : options.longs === Number ? longToNumber(message.sharableEventInviteEndTime) : message.sharableEventInviteEndTime;
166360
166407
  if (options.oneofs)
166361
166408
  object._sharableEventInviteEndTime = "sharableEventInviteEndTime";
166362
166409
  }
@@ -168574,7 +168621,7 @@ export const proto = $root.proto = (() => {
168574
168621
  if (typeof message.expires === "number")
168575
168622
  object.expires = options.longs === String ? String(message.expires) : message.expires;
168576
168623
  else
168577
- object.expires = options.longs === String ? $util.Long.prototype.toString.call(message.expires) : options.longs === Number ? new $util.LongBits(message.expires.low >>> 0, message.expires.high >>> 0).toNumber(true) : message.expires;
168624
+ object.expires = options.longs === String ? longToString(message.expires, true) : options.longs === Number ? longToNumber(message.expires, true) : message.expires;
168578
168625
  if (options.oneofs)
168579
168626
  object._expires = "expires";
168580
168627
  }
@@ -168921,7 +168968,7 @@ export const proto = $root.proto = (() => {
168921
168968
  if (typeof message.messageTimestamp === "number")
168922
168969
  object.messageTimestamp = options.longs === String ? String(message.messageTimestamp) : message.messageTimestamp;
168923
168970
  else
168924
- object.messageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.messageTimestamp) : options.longs === Number ? new $util.LongBits(message.messageTimestamp.low >>> 0, message.messageTimestamp.high >>> 0).toNumber(true) : message.messageTimestamp;
168971
+ object.messageTimestamp = options.longs === String ? longToString(message.messageTimestamp, true) : options.longs === Number ? longToNumber(message.messageTimestamp, true) : message.messageTimestamp;
168925
168972
  if (options.oneofs)
168926
168973
  object._messageTimestamp = "messageTimestamp";
168927
168974
  }
@@ -169915,7 +169962,7 @@ export const proto = $root.proto = (() => {
169915
169962
  if (typeof message.leaveTs === "number")
169916
169963
  object.leaveTs = options.longs === String ? String(message.leaveTs) : message.leaveTs;
169917
169964
  else
169918
- object.leaveTs = options.longs === String ? $util.Long.prototype.toString.call(message.leaveTs) : options.longs === Number ? new $util.LongBits(message.leaveTs.low >>> 0, message.leaveTs.high >>> 0).toNumber(true) : message.leaveTs;
169965
+ object.leaveTs = options.longs === String ? longToString(message.leaveTs, true) : options.longs === Number ? longToNumber(message.leaveTs, true) : message.leaveTs;
169919
169966
  if (options.oneofs)
169920
169967
  object._leaveTs = "leaveTs";
169921
169968
  }
@@ -171371,7 +171418,7 @@ export const proto = $root.proto = (() => {
171371
171418
  if (typeof message.fileLength === "number")
171372
171419
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
171373
171420
  else
171374
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
171421
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
171375
171422
  if (options.oneofs)
171376
171423
  object._fileLength = "fileLength";
171377
171424
  }
@@ -171762,7 +171809,7 @@ export const proto = $root.proto = (() => {
171762
171809
  if (typeof message.mediaKeyTimestamp === "number")
171763
171810
  object.mediaKeyTimestamp = options.longs === String ? String(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
171764
171811
  else
171765
- object.mediaKeyTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.mediaKeyTimestamp) : options.longs === Number ? new $util.LongBits(message.mediaKeyTimestamp.low >>> 0, message.mediaKeyTimestamp.high >>> 0).toNumber() : message.mediaKeyTimestamp;
171812
+ object.mediaKeyTimestamp = options.longs === String ? longToString(message.mediaKeyTimestamp) : options.longs === Number ? longToNumber(message.mediaKeyTimestamp) : message.mediaKeyTimestamp;
171766
171813
  if (options.oneofs)
171767
171814
  object._mediaKeyTimestamp = "mediaKeyTimestamp";
171768
171815
  }
@@ -172652,7 +172699,7 @@ export const proto = $root.proto = (() => {
172652
172699
  if (typeof message.amount1000 === "number")
172653
172700
  object.amount1000 = options.longs === String ? String(message.amount1000) : message.amount1000;
172654
172701
  else
172655
- object.amount1000 = options.longs === String ? $util.Long.prototype.toString.call(message.amount1000) : options.longs === Number ? new $util.LongBits(message.amount1000.low >>> 0, message.amount1000.high >>> 0).toNumber(true) : message.amount1000;
172702
+ object.amount1000 = options.longs === String ? longToString(message.amount1000, true) : options.longs === Number ? longToNumber(message.amount1000, true) : message.amount1000;
172656
172703
  if (options.oneofs)
172657
172704
  object._amount1000 = "amount1000";
172658
172705
  }
@@ -172670,7 +172717,7 @@ export const proto = $root.proto = (() => {
172670
172717
  if (typeof message.transactionTimestamp === "number")
172671
172718
  object.transactionTimestamp = options.longs === String ? String(message.transactionTimestamp) : message.transactionTimestamp;
172672
172719
  else
172673
- object.transactionTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.transactionTimestamp) : options.longs === Number ? new $util.LongBits(message.transactionTimestamp.low >>> 0, message.transactionTimestamp.high >>> 0).toNumber(true) : message.transactionTimestamp;
172720
+ object.transactionTimestamp = options.longs === String ? longToString(message.transactionTimestamp, true) : options.longs === Number ? longToNumber(message.transactionTimestamp, true) : message.transactionTimestamp;
172674
172721
  if (options.oneofs)
172675
172722
  object._transactionTimestamp = "transactionTimestamp";
172676
172723
  }
@@ -172683,7 +172730,7 @@ export const proto = $root.proto = (() => {
172683
172730
  if (typeof message.expiryTimestamp === "number")
172684
172731
  object.expiryTimestamp = options.longs === String ? String(message.expiryTimestamp) : message.expiryTimestamp;
172685
172732
  else
172686
- object.expiryTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.expiryTimestamp) : options.longs === Number ? new $util.LongBits(message.expiryTimestamp.low >>> 0, message.expiryTimestamp.high >>> 0).toNumber(true) : message.expiryTimestamp;
172733
+ object.expiryTimestamp = options.longs === String ? longToString(message.expiryTimestamp, true) : options.longs === Number ? longToNumber(message.expiryTimestamp, true) : message.expiryTimestamp;
172687
172734
  if (options.oneofs)
172688
172735
  object._expiryTimestamp = "expiryTimestamp";
172689
172736
  }
@@ -173769,7 +173816,7 @@ export const proto = $root.proto = (() => {
173769
173816
  if (typeof message.senderTimestampMs === "number")
173770
173817
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
173771
173818
  else
173772
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
173819
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
173773
173820
  if (options.oneofs)
173774
173821
  object._senderTimestampMs = "senderTimestampMs";
173775
173822
  }
@@ -173777,7 +173824,7 @@ export const proto = $root.proto = (() => {
173777
173824
  if (typeof message.serverTimestampMs === "number")
173778
173825
  object.serverTimestampMs = options.longs === String ? String(message.serverTimestampMs) : message.serverTimestampMs;
173779
173826
  else
173780
- object.serverTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.serverTimestampMs) : options.longs === Number ? new $util.LongBits(message.serverTimestampMs.low >>> 0, message.serverTimestampMs.high >>> 0).toNumber() : message.serverTimestampMs;
173827
+ object.serverTimestampMs = options.longs === String ? longToString(message.serverTimestampMs) : options.longs === Number ? longToNumber(message.serverTimestampMs) : message.serverTimestampMs;
173781
173828
  if (options.oneofs)
173782
173829
  object._serverTimestampMs = "serverTimestampMs";
173783
173830
  }
@@ -175292,7 +175339,7 @@ export const proto = $root.proto = (() => {
175292
175339
  if (typeof message.senderTimestampMs === "number")
175293
175340
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
175294
175341
  else
175295
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
175342
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
175296
175343
  if (options.oneofs)
175297
175344
  object._senderTimestampMs = "senderTimestampMs";
175298
175345
  }
@@ -175300,7 +175347,7 @@ export const proto = $root.proto = (() => {
175300
175347
  if (typeof message.serverTimestampMs === "number")
175301
175348
  object.serverTimestampMs = options.longs === String ? String(message.serverTimestampMs) : message.serverTimestampMs;
175302
175349
  else
175303
- object.serverTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.serverTimestampMs) : options.longs === Number ? new $util.LongBits(message.serverTimestampMs.low >>> 0, message.serverTimestampMs.high >>> 0).toNumber() : message.serverTimestampMs;
175350
+ object.serverTimestampMs = options.longs === String ? longToString(message.serverTimestampMs) : options.longs === Number ? longToNumber(message.serverTimestampMs) : message.serverTimestampMs;
175304
175351
  if (options.oneofs)
175305
175352
  object._serverTimestampMs = "serverTimestampMs";
175306
175353
  }
@@ -176966,7 +177013,7 @@ export const proto = $root.proto = (() => {
176966
177013
  if (typeof message.fileLength === "number")
176967
177014
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
176968
177015
  else
176969
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
177016
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
176970
177017
  if (options.oneofs)
176971
177018
  object._fileLength = "fileLength";
176972
177019
  }
@@ -179303,7 +179350,7 @@ export const proto = $root.proto = (() => {
179303
179350
  if (typeof message.senderTimestampMs === "number")
179304
179351
  object.senderTimestampMs = options.longs === String ? String(message.senderTimestampMs) : message.senderTimestampMs;
179305
179352
  else
179306
- object.senderTimestampMs = options.longs === String ? $util.Long.prototype.toString.call(message.senderTimestampMs) : options.longs === Number ? new $util.LongBits(message.senderTimestampMs.low >>> 0, message.senderTimestampMs.high >>> 0).toNumber() : message.senderTimestampMs;
179353
+ object.senderTimestampMs = options.longs === String ? longToString(message.senderTimestampMs) : options.longs === Number ? longToNumber(message.senderTimestampMs) : message.senderTimestampMs;
179307
179354
  if (options.oneofs)
179308
179355
  object._senderTimestampMs = "senderTimestampMs";
179309
179356
  }
@@ -181076,7 +181123,7 @@ export const proto = $root.proto = (() => {
181076
181123
  if (typeof message.scheduledTime === "number")
181077
181124
  object.scheduledTime = options.longs === String ? String(message.scheduledTime) : message.scheduledTime;
181078
181125
  else
181079
- object.scheduledTime = options.longs === String ? $util.Long.prototype.toString.call(message.scheduledTime) : options.longs === Number ? new $util.LongBits(message.scheduledTime.low >>> 0, message.scheduledTime.high >>> 0).toNumber(true) : message.scheduledTime;
181126
+ object.scheduledTime = options.longs === String ? longToString(message.scheduledTime, true) : options.longs === Number ? longToNumber(message.scheduledTime, true) : message.scheduledTime;
181080
181127
  if (options.oneofs)
181081
181128
  object._scheduledTime = "scheduledTime";
181082
181129
  }
@@ -186543,7 +186590,7 @@ export const proto = $root.proto = (() => {
186543
186590
  if (typeof message.timestamp === "number")
186544
186591
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
186545
186592
  else
186546
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
186593
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
186547
186594
  if (options.oneofs)
186548
186595
  object._timestamp = "timestamp";
186549
186596
  }
@@ -189775,7 +189822,7 @@ export const proto = $root.proto = (() => {
189775
189822
  if (typeof message.campaignId === "number")
189776
189823
  object.campaignId = options.longs === String ? String(message.campaignId) : message.campaignId;
189777
189824
  else
189778
- object.campaignId = options.longs === String ? $util.Long.prototype.toString.call(message.campaignId) : options.longs === Number ? new $util.LongBits(message.campaignId.low >>> 0, message.campaignId.high >>> 0).toNumber(true) : message.campaignId;
189825
+ object.campaignId = options.longs === String ? longToString(message.campaignId, true) : options.longs === Number ? longToNumber(message.campaignId, true) : message.campaignId;
189779
189826
  if (options.oneofs)
189780
189827
  object._campaignId = "campaignId";
189781
189828
  }
@@ -189783,7 +189830,7 @@ export const proto = $root.proto = (() => {
189783
189830
  if (typeof message.campaignExpirationTimestamp === "number")
189784
189831
  object.campaignExpirationTimestamp = options.longs === String ? String(message.campaignExpirationTimestamp) : message.campaignExpirationTimestamp;
189785
189832
  else
189786
- object.campaignExpirationTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.campaignExpirationTimestamp) : options.longs === Number ? new $util.LongBits(message.campaignExpirationTimestamp.low >>> 0, message.campaignExpirationTimestamp.high >>> 0).toNumber(true) : message.campaignExpirationTimestamp;
189833
+ object.campaignExpirationTimestamp = options.longs === String ? longToString(message.campaignExpirationTimestamp, true) : options.longs === Number ? longToNumber(message.campaignExpirationTimestamp, true) : message.campaignExpirationTimestamp;
189787
189834
  if (options.oneofs)
189788
189835
  object._campaignExpirationTimestamp = "campaignExpirationTimestamp";
189789
189836
  }
@@ -190431,7 +190478,7 @@ export const proto = $root.proto = (() => {
190431
190478
  if (typeof message.fileLength === "number")
190432
190479
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
190433
190480
  else
190434
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
190481
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
190435
190482
  if (options.oneofs)
190436
190483
  object._fileLength = "fileLength";
190437
190484
  }
@@ -190444,7 +190491,7 @@ export const proto = $root.proto = (() => {
190444
190491
  if (typeof message.lastStickerSentTs === "number")
190445
190492
  object.lastStickerSentTs = options.longs === String ? String(message.lastStickerSentTs) : message.lastStickerSentTs;
190446
190493
  else
190447
- object.lastStickerSentTs = options.longs === String ? $util.Long.prototype.toString.call(message.lastStickerSentTs) : options.longs === Number ? new $util.LongBits(message.lastStickerSentTs.low >>> 0, message.lastStickerSentTs.high >>> 0).toNumber() : message.lastStickerSentTs;
190494
+ object.lastStickerSentTs = options.longs === String ? longToString(message.lastStickerSentTs) : options.longs === Number ? longToNumber(message.lastStickerSentTs) : message.lastStickerSentTs;
190448
190495
  if (options.oneofs)
190449
190496
  object._lastStickerSentTs = "lastStickerSentTs";
190450
190497
  }
@@ -193888,7 +193935,7 @@ export const proto = $root.proto = (() => {
193888
193935
  if (typeof message.timestamp === "number")
193889
193936
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
193890
193937
  else
193891
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
193938
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
193892
193939
  if (options.oneofs)
193893
193940
  object._timestamp = "timestamp";
193894
193941
  }
@@ -196103,7 +196150,7 @@ export const proto = $root.proto = (() => {
196103
196150
  if (typeof message.version === "number")
196104
196151
  object.version = options.longs === String ? String(message.version) : message.version;
196105
196152
  else
196106
- object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber() : message.version;
196153
+ object.version = options.longs === String ? longToString(message.version) : options.longs === Number ? longToNumber(message.version) : message.version;
196107
196154
  if (options.oneofs)
196108
196155
  object._version = "version";
196109
196156
  }
@@ -196111,7 +196158,7 @@ export const proto = $root.proto = (() => {
196111
196158
  if (typeof message.updatedAtMs === "number")
196112
196159
  object.updatedAtMs = options.longs === String ? String(message.updatedAtMs) : message.updatedAtMs;
196113
196160
  else
196114
- object.updatedAtMs = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAtMs) : options.longs === Number ? new $util.LongBits(message.updatedAtMs.low >>> 0, message.updatedAtMs.high >>> 0).toNumber() : message.updatedAtMs;
196161
+ object.updatedAtMs = options.longs === String ? longToString(message.updatedAtMs) : options.longs === Number ? longToNumber(message.updatedAtMs) : message.updatedAtMs;
196115
196162
  if (options.oneofs)
196116
196163
  object._updatedAtMs = "updatedAtMs";
196117
196164
  }
@@ -197343,7 +197390,7 @@ export const proto = $root.proto = (() => {
197343
197390
  if (typeof message.scheduledTimestamp === "number")
197344
197391
  object.scheduledTimestamp = options.longs === String ? String(message.scheduledTimestamp) : message.scheduledTimestamp;
197345
197392
  else
197346
- object.scheduledTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.scheduledTimestamp) : options.longs === Number ? new $util.LongBits(message.scheduledTimestamp.low >>> 0, message.scheduledTimestamp.high >>> 0).toNumber() : message.scheduledTimestamp;
197393
+ object.scheduledTimestamp = options.longs === String ? longToString(message.scheduledTimestamp) : options.longs === Number ? longToNumber(message.scheduledTimestamp) : message.scheduledTimestamp;
197347
197394
  if (options.oneofs)
197348
197395
  object._scheduledTimestamp = "scheduledTimestamp";
197349
197396
  }
@@ -197351,7 +197398,7 @@ export const proto = $root.proto = (() => {
197351
197398
  if (typeof message.createTimestamp === "number")
197352
197399
  object.createTimestamp = options.longs === String ? String(message.createTimestamp) : message.createTimestamp;
197353
197400
  else
197354
- object.createTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.createTimestamp) : options.longs === Number ? new $util.LongBits(message.createTimestamp.low >>> 0, message.createTimestamp.high >>> 0).toNumber() : message.createTimestamp;
197401
+ object.createTimestamp = options.longs === String ? longToString(message.createTimestamp) : options.longs === Number ? longToNumber(message.createTimestamp) : message.createTimestamp;
197355
197402
  if (options.oneofs)
197356
197403
  object._createTimestamp = "createTimestamp";
197357
197404
  }
@@ -200935,7 +200982,7 @@ export const proto = $root.proto = (() => {
200935
200982
  if (typeof message.birthday === "number")
200936
200983
  object.birthday = options.longs === String ? String(message.birthday) : message.birthday;
200937
200984
  else
200938
- object.birthday = options.longs === String ? $util.Long.prototype.toString.call(message.birthday) : options.longs === Number ? new $util.LongBits(message.birthday.low >>> 0, message.birthday.high >>> 0).toNumber() : message.birthday;
200985
+ object.birthday = options.longs === String ? longToString(message.birthday) : options.longs === Number ? longToNumber(message.birthday) : message.birthday;
200939
200986
  if (options.oneofs)
200940
200987
  object._birthday = "birthday";
200941
200988
  }
@@ -200958,7 +201005,7 @@ export const proto = $root.proto = (() => {
200958
201005
  if (typeof message.lastOrder === "number")
200959
201006
  object.lastOrder = options.longs === String ? String(message.lastOrder) : message.lastOrder;
200960
201007
  else
200961
- object.lastOrder = options.longs === String ? $util.Long.prototype.toString.call(message.lastOrder) : options.longs === Number ? new $util.LongBits(message.lastOrder.low >>> 0, message.lastOrder.high >>> 0).toNumber() : message.lastOrder;
201008
+ object.lastOrder = options.longs === String ? longToString(message.lastOrder) : options.longs === Number ? longToNumber(message.lastOrder) : message.lastOrder;
200962
201009
  if (options.oneofs)
200963
201010
  object._lastOrder = "lastOrder";
200964
201011
  }
@@ -200966,7 +201013,7 @@ export const proto = $root.proto = (() => {
200966
201013
  if (typeof message.createdAt === "number")
200967
201014
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
200968
201015
  else
200969
- object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber() : message.createdAt;
201016
+ object.createdAt = options.longs === String ? longToString(message.createdAt) : options.longs === Number ? longToNumber(message.createdAt) : message.createdAt;
200970
201017
  if (options.oneofs)
200971
201018
  object._createdAt = "createdAt";
200972
201019
  }
@@ -200974,7 +201021,7 @@ export const proto = $root.proto = (() => {
200974
201021
  if (typeof message.modifiedAt === "number")
200975
201022
  object.modifiedAt = options.longs === String ? String(message.modifiedAt) : message.modifiedAt;
200976
201023
  else
200977
- object.modifiedAt = options.longs === String ? $util.Long.prototype.toString.call(message.modifiedAt) : options.longs === Number ? new $util.LongBits(message.modifiedAt.low >>> 0, message.modifiedAt.high >>> 0).toNumber() : message.modifiedAt;
201024
+ object.modifiedAt = options.longs === String ? longToString(message.modifiedAt) : options.longs === Number ? longToNumber(message.modifiedAt) : message.modifiedAt;
200978
201025
  if (options.oneofs)
200979
201026
  object._modifiedAt = "modifiedAt";
200980
201027
  }
@@ -201710,7 +201757,7 @@ export const proto = $root.proto = (() => {
201710
201757
  if (typeof message.messageTimestamp === "number")
201711
201758
  object.messageTimestamp = options.longs === String ? String(message.messageTimestamp) : message.messageTimestamp;
201712
201759
  else
201713
- object.messageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.messageTimestamp) : options.longs === Number ? new $util.LongBits(message.messageTimestamp.low >>> 0, message.messageTimestamp.high >>> 0).toNumber() : message.messageTimestamp;
201760
+ object.messageTimestamp = options.longs === String ? longToString(message.messageTimestamp) : options.longs === Number ? longToNumber(message.messageTimestamp) : message.messageTimestamp;
201714
201761
  if (options.oneofs)
201715
201762
  object._messageTimestamp = "messageTimestamp";
201716
201763
  }
@@ -203917,7 +203964,7 @@ export const proto = $root.proto = (() => {
203917
203964
  if (typeof message.muteEndTimeMs === "number")
203918
203965
  object.muteEndTimeMs = options.longs === String ? String(message.muteEndTimeMs) : message.muteEndTimeMs;
203919
203966
  else
203920
- object.muteEndTimeMs = options.longs === String ? $util.Long.prototype.toString.call(message.muteEndTimeMs) : options.longs === Number ? new $util.LongBits(message.muteEndTimeMs.low >>> 0, message.muteEndTimeMs.high >>> 0).toNumber() : message.muteEndTimeMs;
203967
+ object.muteEndTimeMs = options.longs === String ? longToString(message.muteEndTimeMs) : options.longs === Number ? longToNumber(message.muteEndTimeMs) : message.muteEndTimeMs;
203921
203968
  if (options.oneofs)
203922
203969
  object._muteEndTimeMs = "muteEndTimeMs";
203923
203970
  }
@@ -205928,7 +205975,7 @@ export const proto = $root.proto = (() => {
205928
205975
  if (typeof message.createdAt === "number")
205929
205976
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
205930
205977
  else
205931
- object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber() : message.createdAt;
205978
+ object.createdAt = options.longs === String ? longToString(message.createdAt) : options.longs === Number ? longToNumber(message.createdAt) : message.createdAt;
205932
205979
  if (options.oneofs)
205933
205980
  object._createdAt = "createdAt";
205934
205981
  }
@@ -205936,7 +205983,7 @@ export const proto = $root.proto = (() => {
205936
205983
  if (typeof message.lastSentAt === "number")
205937
205984
  object.lastSentAt = options.longs === String ? String(message.lastSentAt) : message.lastSentAt;
205938
205985
  else
205939
- object.lastSentAt = options.longs === String ? $util.Long.prototype.toString.call(message.lastSentAt) : options.longs === Number ? new $util.LongBits(message.lastSentAt.low >>> 0, message.lastSentAt.high >>> 0).toNumber() : message.lastSentAt;
205986
+ object.lastSentAt = options.longs === String ? longToString(message.lastSentAt) : options.longs === Number ? longToNumber(message.lastSentAt) : message.lastSentAt;
205940
205987
  if (options.oneofs)
205941
205988
  object._lastSentAt = "lastSentAt";
205942
205989
  }
@@ -207127,7 +207174,7 @@ export const proto = $root.proto = (() => {
207127
207174
  if (typeof message.muteEndTimestamp === "number")
207128
207175
  object.muteEndTimestamp = options.longs === String ? String(message.muteEndTimestamp) : message.muteEndTimestamp;
207129
207176
  else
207130
- object.muteEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.muteEndTimestamp) : options.longs === Number ? new $util.LongBits(message.muteEndTimestamp.low >>> 0, message.muteEndTimestamp.high >>> 0).toNumber() : message.muteEndTimestamp;
207177
+ object.muteEndTimestamp = options.longs === String ? longToString(message.muteEndTimestamp) : options.longs === Number ? longToNumber(message.muteEndTimestamp) : message.muteEndTimestamp;
207131
207178
  if (options.oneofs)
207132
207179
  object._muteEndTimestamp = "muteEndTimestamp";
207133
207180
  }
@@ -207140,7 +207187,7 @@ export const proto = $root.proto = (() => {
207140
207187
  if (typeof message.muteEveryoneMentionEndTimestamp === "number")
207141
207188
  object.muteEveryoneMentionEndTimestamp = options.longs === String ? String(message.muteEveryoneMentionEndTimestamp) : message.muteEveryoneMentionEndTimestamp;
207142
207189
  else
207143
- object.muteEveryoneMentionEndTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.muteEveryoneMentionEndTimestamp) : options.longs === Number ? new $util.LongBits(message.muteEveryoneMentionEndTimestamp.low >>> 0, message.muteEveryoneMentionEndTimestamp.high >>> 0).toNumber() : message.muteEveryoneMentionEndTimestamp;
207190
+ object.muteEveryoneMentionEndTimestamp = options.longs === String ? longToString(message.muteEveryoneMentionEndTimestamp) : options.longs === Number ? longToNumber(message.muteEveryoneMentionEndTimestamp) : message.muteEveryoneMentionEndTimestamp;
207144
207191
  if (options.oneofs)
207145
207192
  object._muteEveryoneMentionEndTimestamp = "muteEveryoneMentionEndTimestamp";
207146
207193
  }
@@ -207948,7 +207995,7 @@ export const proto = $root.proto = (() => {
207948
207995
  if (typeof message.createdAt === "number")
207949
207996
  object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
207950
207997
  else
207951
- object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber() : message.createdAt;
207998
+ object.createdAt = options.longs === String ? longToString(message.createdAt) : options.longs === Number ? longToNumber(message.createdAt) : message.createdAt;
207952
207999
  if (options.oneofs)
207953
208000
  object._createdAt = "createdAt";
207954
208001
  }
@@ -212057,7 +212104,7 @@ export const proto = $root.proto = (() => {
212057
212104
  if (typeof message.lastStickerSentTs === "number")
212058
212105
  object.lastStickerSentTs = options.longs === String ? String(message.lastStickerSentTs) : message.lastStickerSentTs;
212059
212106
  else
212060
- object.lastStickerSentTs = options.longs === String ? $util.Long.prototype.toString.call(message.lastStickerSentTs) : options.longs === Number ? new $util.LongBits(message.lastStickerSentTs.low >>> 0, message.lastStickerSentTs.high >>> 0).toNumber() : message.lastStickerSentTs;
212107
+ object.lastStickerSentTs = options.longs === String ? longToString(message.lastStickerSentTs) : options.longs === Number ? longToNumber(message.lastStickerSentTs) : message.lastStickerSentTs;
212061
212108
  if (options.oneofs)
212062
212109
  object._lastStickerSentTs = "lastStickerSentTs";
212063
212110
  }
@@ -215447,7 +215494,7 @@ export const proto = $root.proto = (() => {
215447
215494
  if (typeof message.fileLength === "number")
215448
215495
  object.fileLength = options.longs === String ? String(message.fileLength) : message.fileLength;
215449
215496
  else
215450
- object.fileLength = options.longs === String ? $util.Long.prototype.toString.call(message.fileLength) : options.longs === Number ? new $util.LongBits(message.fileLength.low >>> 0, message.fileLength.high >>> 0).toNumber(true) : message.fileLength;
215497
+ object.fileLength = options.longs === String ? longToString(message.fileLength, true) : options.longs === Number ? longToNumber(message.fileLength, true) : message.fileLength;
215451
215498
  if (options.oneofs)
215452
215499
  object._fileLength = "fileLength";
215453
215500
  }
@@ -215766,7 +215813,7 @@ export const proto = $root.proto = (() => {
215766
215813
  if (typeof message.expirationDate === "number")
215767
215814
  object.expirationDate = options.longs === String ? String(message.expirationDate) : message.expirationDate;
215768
215815
  else
215769
- object.expirationDate = options.longs === String ? $util.Long.prototype.toString.call(message.expirationDate) : options.longs === Number ? new $util.LongBits(message.expirationDate.low >>> 0, message.expirationDate.high >>> 0).toNumber() : message.expirationDate;
215816
+ object.expirationDate = options.longs === String ? longToString(message.expirationDate) : options.longs === Number ? longToNumber(message.expirationDate) : message.expirationDate;
215770
215817
  if (options.oneofs)
215771
215818
  object._expirationDate = "expirationDate";
215772
215819
  }
@@ -216361,7 +216408,7 @@ export const proto = $root.proto = (() => {
216361
216408
  if (typeof message.expirationTime === "number")
216362
216409
  object.expirationTime = options.longs === String ? String(message.expirationTime) : message.expirationTime;
216363
216410
  else
216364
- object.expirationTime = options.longs === String ? $util.Long.prototype.toString.call(message.expirationTime) : options.longs === Number ? new $util.LongBits(message.expirationTime.low >>> 0, message.expirationTime.high >>> 0).toNumber() : message.expirationTime;
216411
+ object.expirationTime = options.longs === String ? longToString(message.expirationTime) : options.longs === Number ? longToNumber(message.expirationTime) : message.expirationTime;
216365
216412
  if (options.oneofs)
216366
216413
  object._expirationTime = "expirationTime";
216367
216414
  }
@@ -216814,7 +216861,7 @@ export const proto = $root.proto = (() => {
216814
216861
  if (typeof message.startTime === "number")
216815
216862
  object.startTime = options.longs === String ? String(message.startTime) : message.startTime;
216816
216863
  else
216817
- object.startTime = options.longs === String ? $util.Long.prototype.toString.call(message.startTime) : options.longs === Number ? new $util.LongBits(message.startTime.low >>> 0, message.startTime.high >>> 0).toNumber() : message.startTime;
216864
+ object.startTime = options.longs === String ? longToString(message.startTime) : options.longs === Number ? longToNumber(message.startTime) : message.startTime;
216818
216865
  if (options.oneofs)
216819
216866
  object._startTime = "startTime";
216820
216867
  }
@@ -216822,7 +216869,7 @@ export const proto = $root.proto = (() => {
216822
216869
  if (typeof message.endTime === "number")
216823
216870
  object.endTime = options.longs === String ? String(message.endTime) : message.endTime;
216824
216871
  else
216825
- object.endTime = options.longs === String ? $util.Long.prototype.toString.call(message.endTime) : options.longs === Number ? new $util.LongBits(message.endTime.low >>> 0, message.endTime.high >>> 0).toNumber() : message.endTime;
216872
+ object.endTime = options.longs === String ? longToString(message.endTime) : options.longs === Number ? longToNumber(message.endTime) : message.endTime;
216826
216873
  if (options.oneofs)
216827
216874
  object._endTime = "endTime";
216828
216875
  }
@@ -216840,7 +216887,7 @@ export const proto = $root.proto = (() => {
216840
216887
  if (typeof message.creationTime === "number")
216841
216888
  object.creationTime = options.longs === String ? String(message.creationTime) : message.creationTime;
216842
216889
  else
216843
- object.creationTime = options.longs === String ? $util.Long.prototype.toString.call(message.creationTime) : options.longs === Number ? new $util.LongBits(message.creationTime.low >>> 0, message.creationTime.high >>> 0).toNumber() : message.creationTime;
216890
+ object.creationTime = options.longs === String ? longToString(message.creationTime) : options.longs === Number ? longToNumber(message.creationTime) : message.creationTime;
216844
216891
  if (options.oneofs)
216845
216892
  object._creationTime = "creationTime";
216846
216893
  }
@@ -217110,7 +217157,7 @@ export const proto = $root.proto = (() => {
217110
217157
  if (typeof message.timestamp === "number")
217111
217158
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
217112
217159
  else
217113
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber() : message.timestamp;
217160
+ object.timestamp = options.longs === String ? longToString(message.timestamp) : options.longs === Number ? longToNumber(message.timestamp) : message.timestamp;
217114
217161
  if (options.oneofs)
217115
217162
  object._timestamp = "timestamp";
217116
217163
  }
@@ -217413,7 +217460,7 @@ export const proto = $root.proto = (() => {
217413
217460
  if (typeof message.lastMessageTimestamp === "number")
217414
217461
  object.lastMessageTimestamp = options.longs === String ? String(message.lastMessageTimestamp) : message.lastMessageTimestamp;
217415
217462
  else
217416
- object.lastMessageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.lastMessageTimestamp) : options.longs === Number ? new $util.LongBits(message.lastMessageTimestamp.low >>> 0, message.lastMessageTimestamp.high >>> 0).toNumber() : message.lastMessageTimestamp;
217463
+ object.lastMessageTimestamp = options.longs === String ? longToString(message.lastMessageTimestamp) : options.longs === Number ? longToNumber(message.lastMessageTimestamp) : message.lastMessageTimestamp;
217417
217464
  if (options.oneofs)
217418
217465
  object._lastMessageTimestamp = "lastMessageTimestamp";
217419
217466
  }
@@ -217421,7 +217468,7 @@ export const proto = $root.proto = (() => {
217421
217468
  if (typeof message.lastSystemMessageTimestamp === "number")
217422
217469
  object.lastSystemMessageTimestamp = options.longs === String ? String(message.lastSystemMessageTimestamp) : message.lastSystemMessageTimestamp;
217423
217470
  else
217424
- object.lastSystemMessageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.lastSystemMessageTimestamp) : options.longs === Number ? new $util.LongBits(message.lastSystemMessageTimestamp.low >>> 0, message.lastSystemMessageTimestamp.high >>> 0).toNumber() : message.lastSystemMessageTimestamp;
217471
+ object.lastSystemMessageTimestamp = options.longs === String ? longToString(message.lastSystemMessageTimestamp) : options.longs === Number ? longToNumber(message.lastSystemMessageTimestamp) : message.lastSystemMessageTimestamp;
217425
217472
  if (options.oneofs)
217426
217473
  object._lastSystemMessageTimestamp = "lastSystemMessageTimestamp";
217427
217474
  }
@@ -222242,7 +222289,7 @@ export const proto = $root.proto = (() => {
222242
222289
  if (typeof message.version === "number")
222243
222290
  object.version = options.longs === String ? String(message.version) : message.version;
222244
222291
  else
222245
- object.version = options.longs === String ? $util.Long.prototype.toString.call(message.version) : options.longs === Number ? new $util.LongBits(message.version.low >>> 0, message.version.high >>> 0).toNumber(true) : message.version;
222292
+ object.version = options.longs === String ? longToString(message.version, true) : options.longs === Number ? longToNumber(message.version, true) : message.version;
222246
222293
  if (options.oneofs)
222247
222294
  object._version = "version";
222248
222295
  }
@@ -226451,7 +226498,7 @@ export const proto = $root.proto = (() => {
226451
226498
  if (typeof message.receiptTimestamp === "number")
226452
226499
  object.receiptTimestamp = options.longs === String ? String(message.receiptTimestamp) : message.receiptTimestamp;
226453
226500
  else
226454
- object.receiptTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.receiptTimestamp) : options.longs === Number ? new $util.LongBits(message.receiptTimestamp.low >>> 0, message.receiptTimestamp.high >>> 0).toNumber() : message.receiptTimestamp;
226501
+ object.receiptTimestamp = options.longs === String ? longToString(message.receiptTimestamp) : options.longs === Number ? longToNumber(message.receiptTimestamp) : message.receiptTimestamp;
226455
226502
  if (options.oneofs)
226456
226503
  object._receiptTimestamp = "receiptTimestamp";
226457
226504
  }
@@ -226459,7 +226506,7 @@ export const proto = $root.proto = (() => {
226459
226506
  if (typeof message.readTimestamp === "number")
226460
226507
  object.readTimestamp = options.longs === String ? String(message.readTimestamp) : message.readTimestamp;
226461
226508
  else
226462
- object.readTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.readTimestamp) : options.longs === Number ? new $util.LongBits(message.readTimestamp.low >>> 0, message.readTimestamp.high >>> 0).toNumber() : message.readTimestamp;
226509
+ object.readTimestamp = options.longs === String ? longToString(message.readTimestamp) : options.longs === Number ? longToNumber(message.readTimestamp) : message.readTimestamp;
226463
226510
  if (options.oneofs)
226464
226511
  object._readTimestamp = "readTimestamp";
226465
226512
  }
@@ -226467,7 +226514,7 @@ export const proto = $root.proto = (() => {
226467
226514
  if (typeof message.playedTimestamp === "number")
226468
226515
  object.playedTimestamp = options.longs === String ? String(message.playedTimestamp) : message.playedTimestamp;
226469
226516
  else
226470
- object.playedTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.playedTimestamp) : options.longs === Number ? new $util.LongBits(message.playedTimestamp.low >>> 0, message.playedTimestamp.high >>> 0).toNumber() : message.playedTimestamp;
226517
+ object.playedTimestamp = options.longs === String ? longToString(message.playedTimestamp) : options.longs === Number ? longToNumber(message.playedTimestamp) : message.playedTimestamp;
226471
226518
  if (options.oneofs)
226472
226519
  object._playedTimestamp = "playedTimestamp";
226473
226520
  }
@@ -227126,7 +227173,7 @@ export const proto = $root.proto = (() => {
227126
227173
  if (typeof message.serial === "number")
227127
227174
  object.serial = options.longs === String ? String(message.serial) : message.serial;
227128
227175
  else
227129
- object.serial = options.longs === String ? $util.Long.prototype.toString.call(message.serial) : options.longs === Number ? new $util.LongBits(message.serial.low >>> 0, message.serial.high >>> 0).toNumber(true) : message.serial;
227176
+ object.serial = options.longs === String ? longToString(message.serial, true) : options.longs === Number ? longToNumber(message.serial, true) : message.serial;
227130
227177
  if (options.oneofs)
227131
227178
  object._serial = "serial";
227132
227179
  }
@@ -227149,7 +227196,7 @@ export const proto = $root.proto = (() => {
227149
227196
  if (typeof message.issueTime === "number")
227150
227197
  object.issueTime = options.longs === String ? String(message.issueTime) : message.issueTime;
227151
227198
  else
227152
- object.issueTime = options.longs === String ? $util.Long.prototype.toString.call(message.issueTime) : options.longs === Number ? new $util.LongBits(message.issueTime.low >>> 0, message.issueTime.high >>> 0).toNumber(true) : message.issueTime;
227199
+ object.issueTime = options.longs === String ? longToString(message.issueTime, true) : options.longs === Number ? longToNumber(message.issueTime, true) : message.issueTime;
227153
227200
  if (options.oneofs)
227154
227201
  object._issueTime = "issueTime";
227155
227202
  }
@@ -234156,7 +234203,7 @@ export const proto = $root.proto = (() => {
234156
234203
  if (typeof message.messageTimestamp === "number")
234157
234204
  object.messageTimestamp = options.longs === String ? String(message.messageTimestamp) : message.messageTimestamp;
234158
234205
  else
234159
- object.messageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.messageTimestamp) : options.longs === Number ? new $util.LongBits(message.messageTimestamp.low >>> 0, message.messageTimestamp.high >>> 0).toNumber(true) : message.messageTimestamp;
234206
+ object.messageTimestamp = options.longs === String ? longToString(message.messageTimestamp, true) : options.longs === Number ? longToNumber(message.messageTimestamp, true) : message.messageTimestamp;
234160
234207
  if (options.oneofs)
234161
234208
  object._messageTimestamp = "messageTimestamp";
234162
234209
  }
@@ -234174,7 +234221,7 @@ export const proto = $root.proto = (() => {
234174
234221
  if (typeof message.messageC2STimestamp === "number")
234175
234222
  object.messageC2STimestamp = options.longs === String ? String(message.messageC2STimestamp) : message.messageC2STimestamp;
234176
234223
  else
234177
- object.messageC2STimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.messageC2STimestamp) : options.longs === Number ? new $util.LongBits(message.messageC2STimestamp.low >>> 0, message.messageC2STimestamp.high >>> 0).toNumber(true) : message.messageC2STimestamp;
234224
+ object.messageC2STimestamp = options.longs === String ? longToString(message.messageC2STimestamp, true) : options.longs === Number ? longToNumber(message.messageC2STimestamp, true) : message.messageC2STimestamp;
234178
234225
  if (options.oneofs)
234179
234226
  object._messageC2STimestamp = "messageC2STimestamp";
234180
234227
  }
@@ -234262,7 +234309,7 @@ export const proto = $root.proto = (() => {
234262
234309
  if (typeof message.ephemeralStartTimestamp === "number")
234263
234310
  object.ephemeralStartTimestamp = options.longs === String ? String(message.ephemeralStartTimestamp) : message.ephemeralStartTimestamp;
234264
234311
  else
234265
- object.ephemeralStartTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.ephemeralStartTimestamp) : options.longs === Number ? new $util.LongBits(message.ephemeralStartTimestamp.low >>> 0, message.ephemeralStartTimestamp.high >>> 0).toNumber(true) : message.ephemeralStartTimestamp;
234312
+ object.ephemeralStartTimestamp = options.longs === String ? longToString(message.ephemeralStartTimestamp, true) : options.longs === Number ? longToNumber(message.ephemeralStartTimestamp, true) : message.ephemeralStartTimestamp;
234266
234313
  if (options.oneofs)
234267
234314
  object._ephemeralStartTimestamp = "ephemeralStartTimestamp";
234268
234315
  }
@@ -234365,7 +234412,7 @@ export const proto = $root.proto = (() => {
234365
234412
  if (typeof message.revokeMessageTimestamp === "number")
234366
234413
  object.revokeMessageTimestamp = options.longs === String ? String(message.revokeMessageTimestamp) : message.revokeMessageTimestamp;
234367
234414
  else
234368
- object.revokeMessageTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.revokeMessageTimestamp) : options.longs === Number ? new $util.LongBits(message.revokeMessageTimestamp.low >>> 0, message.revokeMessageTimestamp.high >>> 0).toNumber(true) : message.revokeMessageTimestamp;
234415
+ object.revokeMessageTimestamp = options.longs === String ? longToString(message.revokeMessageTimestamp, true) : options.longs === Number ? longToNumber(message.revokeMessageTimestamp, true) : message.revokeMessageTimestamp;
234369
234416
  if (options.oneofs)
234370
234417
  object._revokeMessageTimestamp = "revokeMessageTimestamp";
234371
234418
  }
@@ -234413,7 +234460,7 @@ export const proto = $root.proto = (() => {
234413
234460
  if (typeof message.newsletterServerId === "number")
234414
234461
  object.newsletterServerId = options.longs === String ? String(message.newsletterServerId) : message.newsletterServerId;
234415
234462
  else
234416
- object.newsletterServerId = options.longs === String ? $util.Long.prototype.toString.call(message.newsletterServerId) : options.longs === Number ? new $util.LongBits(message.newsletterServerId.low >>> 0, message.newsletterServerId.high >>> 0).toNumber(true) : message.newsletterServerId;
234463
+ object.newsletterServerId = options.longs === String ? longToString(message.newsletterServerId, true) : options.longs === Number ? longToNumber(message.newsletterServerId, true) : message.newsletterServerId;
234417
234464
  if (options.oneofs)
234418
234465
  object._newsletterServerId = "newsletterServerId";
234419
234466
  }
@@ -234501,7 +234548,7 @@ export const proto = $root.proto = (() => {
234501
234548
  if (typeof message.ephemeralExpirationTimestamp === "number")
234502
234549
  object.ephemeralExpirationTimestamp = options.longs === String ? String(message.ephemeralExpirationTimestamp) : message.ephemeralExpirationTimestamp;
234503
234550
  else
234504
- object.ephemeralExpirationTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.ephemeralExpirationTimestamp) : options.longs === Number ? new $util.LongBits(message.ephemeralExpirationTimestamp.low >>> 0, message.ephemeralExpirationTimestamp.high >>> 0).toNumber(true) : message.ephemeralExpirationTimestamp;
234551
+ object.ephemeralExpirationTimestamp = options.longs === String ? longToString(message.ephemeralExpirationTimestamp, true) : options.longs === Number ? longToNumber(message.ephemeralExpirationTimestamp, true) : message.ephemeralExpirationTimestamp;
234505
234552
  if (options.oneofs)
234506
234553
  object._ephemeralExpirationTimestamp = "ephemeralExpirationTimestamp";
234507
234554
  }
@@ -235602,7 +235649,7 @@ export const proto = $root.proto = (() => {
235602
235649
  if (typeof message.timestamp === "number")
235603
235650
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
235604
235651
  else
235605
- object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
235652
+ object.timestamp = options.longs === String ? longToString(message.timestamp, true) : options.longs === Number ? longToNumber(message.timestamp, true) : message.timestamp;
235606
235653
  if (options.oneofs)
235607
235654
  object._timestamp = "timestamp";
235608
235655
  }
@@ -236833,7 +236880,7 @@ export const proto = $root.proto = (() => {
236833
236880
  if (typeof message.connId === "number")
236834
236881
  object.connId = options.longs === String ? String(message.connId) : message.connId;
236835
236882
  else
236836
- object.connId = options.longs === String ? $util.Long.prototype.toString.call(message.connId) : options.longs === Number ? new $util.LongBits(message.connId.low >>> 0, message.connId.high >>> 0).toNumber(true) : message.connId;
236883
+ object.connId = options.longs === String ? longToString(message.connId, true) : options.longs === Number ? longToNumber(message.connId, true) : message.connId;
236837
236884
  if (message.isXpopRelay != null && message.hasOwnProperty("isXpopRelay"))
236838
236885
  object.isXpopRelay = message.isXpopRelay;
236839
236886
  if (message.isFavored != null && message.hasOwnProperty("isFavored"))
@@ -237803,12 +237850,12 @@ export const proto = $root.proto = (() => {
237803
237850
  if (typeof message.subscribedPidsBitmap_0_63 === "number")
237804
237851
  object.subscribedPidsBitmap_0_63 = options.longs === String ? String(message.subscribedPidsBitmap_0_63) : message.subscribedPidsBitmap_0_63;
237805
237852
  else
237806
- object.subscribedPidsBitmap_0_63 = options.longs === String ? $util.Long.prototype.toString.call(message.subscribedPidsBitmap_0_63) : options.longs === Number ? new $util.LongBits(message.subscribedPidsBitmap_0_63.low >>> 0, message.subscribedPidsBitmap_0_63.high >>> 0).toNumber(true) : message.subscribedPidsBitmap_0_63;
237853
+ object.subscribedPidsBitmap_0_63 = options.longs === String ? longToString(message.subscribedPidsBitmap_0_63, true) : options.longs === Number ? longToNumber(message.subscribedPidsBitmap_0_63, true) : message.subscribedPidsBitmap_0_63;
237807
237854
  if (message.subscribedPidsBitmap_64_127 != null && message.hasOwnProperty("subscribedPidsBitmap_64_127"))
237808
237855
  if (typeof message.subscribedPidsBitmap_64_127 === "number")
237809
237856
  object.subscribedPidsBitmap_64_127 = options.longs === String ? String(message.subscribedPidsBitmap_64_127) : message.subscribedPidsBitmap_64_127;
237810
237857
  else
237811
- object.subscribedPidsBitmap_64_127 = options.longs === String ? $util.Long.prototype.toString.call(message.subscribedPidsBitmap_64_127) : options.longs === Number ? new $util.LongBits(message.subscribedPidsBitmap_64_127.low >>> 0, message.subscribedPidsBitmap_64_127.high >>> 0).toNumber(true) : message.subscribedPidsBitmap_64_127;
237858
+ object.subscribedPidsBitmap_64_127 = options.longs === String ? longToString(message.subscribedPidsBitmap_64_127, true) : options.longs === Number ? longToNumber(message.subscribedPidsBitmap_64_127, true) : message.subscribedPidsBitmap_64_127;
237812
237859
  return object;
237813
237860
  };
237814
237861
 
@@ -238296,7 +238343,7 @@ export const proto = $root.proto = (() => {
238296
238343
  if (typeof message.transcriptId === "number")
238297
238344
  object.transcriptId = options.longs === String ? String(message.transcriptId) : message.transcriptId;
238298
238345
  else
238299
- object.transcriptId = options.longs === String ? $util.Long.prototype.toString.call(message.transcriptId) : options.longs === Number ? new $util.LongBits(message.transcriptId.low >>> 0, message.transcriptId.high >>> 0).toNumber(true) : message.transcriptId;
238346
+ object.transcriptId = options.longs === String ? longToString(message.transcriptId, true) : options.longs === Number ? longToNumber(message.transcriptId, true) : message.transcriptId;
238300
238347
  if (message.caption != null && message.hasOwnProperty("caption"))
238301
238348
  object.caption = message.caption;
238302
238349
  if (message.language != null && message.hasOwnProperty("language"))
@@ -238876,7 +238923,7 @@ export const proto = $root.proto = (() => {
238876
238923
  if (typeof message.transactionId === "number")
238877
238924
  object.transactionId = options.longs === String ? String(message.transactionId) : message.transactionId;
238878
238925
  else
238879
- object.transactionId = options.longs === String ? $util.Long.prototype.toString.call(message.transactionId) : options.longs === Number ? new $util.LongBits(message.transactionId.low >>> 0, message.transactionId.high >>> 0).toNumber(true) : message.transactionId;
238926
+ object.transactionId = options.longs === String ? longToString(message.transactionId, true) : options.longs === Number ? longToNumber(message.transactionId, true) : message.transactionId;
238880
238927
  if (message.reaction != null && message.hasOwnProperty("reaction"))
238881
238928
  object.reaction = message.reaction;
238882
238929
  return object;
@@ -241651,7 +241698,7 @@ export const proto = $root.proto = (() => {
241651
241698
  if (typeof message.rtpIndex === "number")
241652
241699
  object.rtpIndex = options.longs === String ? String(message.rtpIndex) : message.rtpIndex;
241653
241700
  else
241654
- object.rtpIndex = options.longs === String ? $util.Long.prototype.toString.call(message.rtpIndex) : options.longs === Number ? new $util.LongBits(message.rtpIndex.low >>> 0, message.rtpIndex.high >>> 0).toNumber(true) : message.rtpIndex;
241701
+ object.rtpIndex = options.longs === String ? longToString(message.rtpIndex, true) : options.longs === Number ? longToNumber(message.rtpIndex, true) : message.rtpIndex;
241655
241702
  return object;
241656
241703
  };
241657
241704