@alannxd/baileys 6.0.5 → 6.0.6

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.
Files changed (234) hide show
  1. package/WAProto/fix-import.js +29 -0
  2. package/WAProto/index.js +160 -201
  3. package/engine-requirements.js +1 -1
  4. package/lib/Defaults/baileys-version.json +3 -0
  5. package/lib/Defaults/index.d.ts +15 -37
  6. package/lib/Defaults/index.js +136 -119
  7. package/lib/Defaults/phonenumber-mcc.json +223 -0
  8. package/lib/Signal/Group/ciphertext-message.d.ts +0 -1
  9. package/lib/Signal/Group/ciphertext-message.js +5 -2
  10. package/lib/Signal/Group/group-session-builder.d.ts +3 -4
  11. package/lib/Signal/Group/group-session-builder.js +41 -7
  12. package/lib/Signal/Group/group_cipher.d.ts +4 -4
  13. package/lib/Signal/Group/group_cipher.js +51 -37
  14. package/lib/Signal/Group/index.d.ts +11 -12
  15. package/lib/Signal/Group/index.js +57 -12
  16. package/lib/Signal/Group/keyhelper.d.ts +1 -2
  17. package/lib/Signal/Group/keyhelper.js +44 -7
  18. package/lib/Signal/Group/queue-job.d.ts +1 -0
  19. package/lib/Signal/Group/queue-job.js +57 -0
  20. package/lib/Signal/Group/sender-chain-key.d.ts +2 -3
  21. package/lib/Signal/Group/sender-chain-key.js +15 -7
  22. package/lib/Signal/Group/sender-key-distribution-message.d.ts +1 -2
  23. package/lib/Signal/Group/sender-key-distribution-message.js +11 -8
  24. package/lib/Signal/Group/sender-key-message.d.ts +1 -2
  25. package/lib/Signal/Group/sender-key-message.js +12 -9
  26. package/lib/Signal/Group/sender-key-name.d.ts +0 -1
  27. package/lib/Signal/Group/sender-key-name.js +5 -2
  28. package/lib/Signal/Group/sender-key-record.d.ts +2 -3
  29. package/lib/Signal/Group/sender-key-record.js +21 -9
  30. package/lib/Signal/Group/sender-key-state.d.ts +6 -7
  31. package/lib/Signal/Group/sender-key-state.js +42 -27
  32. package/lib/Signal/Group/sender-message-key.d.ts +0 -1
  33. package/lib/Signal/Group/sender-message-key.js +7 -4
  34. package/lib/Signal/libsignal.d.ts +3 -5
  35. package/lib/Signal/libsignal.js +90 -347
  36. package/lib/Socket/Client/{types.d.ts → abstract-socket-client.d.ts} +5 -4
  37. package/lib/Socket/Client/abstract-socket-client.js +13 -0
  38. package/lib/Socket/Client/index.d.ts +3 -3
  39. package/lib/Socket/Client/index.js +19 -3
  40. package/lib/Socket/Client/mobile-socket-client.d.ts +13 -0
  41. package/lib/Socket/Client/mobile-socket-client.js +65 -0
  42. package/lib/Socket/Client/{websocket.d.ts → web-socket-client.d.ts} +2 -3
  43. package/lib/Socket/Client/web-socket-client.js +62 -0
  44. package/lib/Socket/business.d.ts +108 -154
  45. package/lib/Socket/business.js +43 -162
  46. package/lib/Socket/chats.d.ts +239 -96
  47. package/lib/Socket/chats.js +427 -627
  48. package/lib/Socket/communities.d.ts +146 -239
  49. package/lib/Socket/communities.js +80 -90
  50. package/lib/Socket/groups.d.ts +57 -104
  51. package/lib/Socket/groups.js +161 -154
  52. package/lib/Socket/index.d.ts +115 -202
  53. package/lib/Socket/index.js +10 -11
  54. package/lib/Socket/luxu.d.ts +266 -22
  55. package/lib/Socket/luxu.js +465 -422
  56. package/lib/Socket/messages-recv.d.ts +84 -136
  57. package/lib/Socket/messages-recv.js +615 -1421
  58. package/lib/Socket/messages-send.d.ts +126 -142
  59. package/lib/Socket/messages-send.js +671 -878
  60. package/lib/Socket/newsletter.d.ts +85 -121
  61. package/lib/Socket/newsletter.js +272 -147
  62. package/lib/Socket/registration.d.ts +267 -0
  63. package/lib/Socket/registration.js +166 -0
  64. package/lib/Socket/socket.d.ts +19 -34
  65. package/lib/Socket/socket.js +313 -544
  66. package/lib/Socket/usync.d.ts +36 -0
  67. package/lib/Socket/usync.js +70 -0
  68. package/lib/Store/index.d.ts +3 -10
  69. package/lib/Store/index.js +10 -10
  70. package/lib/Store/make-cache-manager-store.d.ts +11 -17
  71. package/lib/Store/make-cache-manager-store.js +41 -43
  72. package/lib/Store/make-in-memory-store.d.ts +118 -39
  73. package/lib/Store/make-in-memory-store.js +341 -112
  74. package/lib/Store/make-ordered-dictionary.d.ts +10 -11
  75. package/lib/Store/make-ordered-dictionary.js +20 -14
  76. package/lib/Store/object-repository.d.ts +9 -10
  77. package/lib/Store/object-repository.js +6 -11
  78. package/lib/Types/Auth.d.ts +12 -19
  79. package/lib/Types/Auth.js +2 -2
  80. package/lib/Types/Call.d.ts +1 -3
  81. package/lib/Types/Call.js +2 -2
  82. package/lib/Types/Chat.d.ts +13 -35
  83. package/lib/Types/Chat.js +4 -8
  84. package/lib/Types/Contact.d.ts +1 -8
  85. package/lib/Types/Contact.js +2 -2
  86. package/lib/Types/Events.d.ts +17 -116
  87. package/lib/Types/Events.js +2 -2
  88. package/lib/Types/GroupMetadata.d.ts +5 -21
  89. package/lib/Types/GroupMetadata.js +2 -2
  90. package/lib/Types/Label.d.ts +0 -12
  91. package/lib/Types/Label.js +5 -3
  92. package/lib/Types/LabelAssociation.d.ts +0 -1
  93. package/lib/Types/LabelAssociation.js +5 -3
  94. package/lib/Types/Message.d.ts +58 -105
  95. package/lib/Types/Message.js +9 -11
  96. package/lib/Types/Newsletter.d.ts +103 -0
  97. package/lib/Types/Newsletter.js +38 -0
  98. package/lib/Types/Product.d.ts +1 -2
  99. package/lib/Types/Product.js +2 -2
  100. package/lib/Types/Signal.d.ts +2 -32
  101. package/lib/Types/Signal.js +2 -2
  102. package/lib/Types/Socket.d.ts +25 -50
  103. package/lib/Types/Socket.js +2 -3
  104. package/lib/Types/State.d.ts +2 -72
  105. package/lib/Types/State.js +2 -56
  106. package/lib/Types/USync.d.ts +2 -3
  107. package/lib/Types/USync.js +2 -2
  108. package/lib/Types/index.d.ts +14 -22
  109. package/lib/Types/index.js +31 -15
  110. package/lib/Utils/auth-utils.d.ts +6 -12
  111. package/lib/Utils/auth-utils.js +143 -239
  112. package/lib/Utils/baileys-event-stream.d.ts +16 -0
  113. package/lib/Utils/baileys-event-stream.js +63 -0
  114. package/lib/Utils/business.d.ts +2 -3
  115. package/lib/Utils/business.js +69 -66
  116. package/lib/Utils/chat-utils.d.ts +23 -52
  117. package/lib/Utils/chat-utils.js +253 -396
  118. package/lib/Utils/crypto.d.ts +22 -18
  119. package/lib/Utils/crypto.js +90 -57
  120. package/lib/Utils/decode-wa-message.d.ts +8 -55
  121. package/lib/Utils/decode-wa-message.js +84 -203
  122. package/lib/Utils/event-buffer.d.ts +8 -9
  123. package/lib/Utils/event-buffer.js +77 -185
  124. package/lib/Utils/generics.d.ts +29 -28
  125. package/lib/Utils/generics.js +210 -180
  126. package/lib/Utils/history.d.ts +9 -18
  127. package/lib/Utils/history.js +55 -93
  128. package/lib/Utils/index.d.ts +17 -22
  129. package/lib/Utils/index.js +33 -22
  130. package/lib/Utils/link-preview.d.ts +5 -5
  131. package/lib/Utils/link-preview.js +24 -16
  132. package/lib/Utils/logger.d.ts +3 -11
  133. package/lib/Utils/logger.js +7 -3
  134. package/lib/Utils/lt-hash.d.ts +12 -8
  135. package/lib/Utils/lt-hash.js +46 -3
  136. package/lib/Utils/make-mutex.d.ts +2 -4
  137. package/lib/Utils/make-mutex.js +34 -24
  138. package/lib/Utils/messages-media.d.ts +44 -61
  139. package/lib/Utils/messages-media.js +482 -451
  140. package/lib/Utils/messages.d.ts +18 -32
  141. package/lib/Utils/messages.js +369 -458
  142. package/lib/Utils/noise-handler.d.ts +14 -13
  143. package/lib/Utils/noise-handler.js +99 -145
  144. package/lib/Utils/process-message.d.ts +12 -31
  145. package/lib/Utils/process-message.js +150 -459
  146. package/lib/Utils/signal.d.ts +5 -20
  147. package/lib/Utils/signal.js +72 -120
  148. package/lib/Utils/use-multi-file-auth-state.d.ts +2 -2
  149. package/lib/Utils/use-multi-file-auth-state.js +27 -29
  150. package/lib/Utils/validate-connection.d.ts +7 -7
  151. package/lib/Utils/validate-connection.js +99 -73
  152. package/lib/WABinary/constants.d.ts +27 -25
  153. package/lib/WABinary/constants.js +20 -1281
  154. package/lib/WABinary/decode.d.ts +5 -5
  155. package/lib/WABinary/decode.js +42 -52
  156. package/lib/WABinary/encode.d.ts +3 -3
  157. package/lib/WABinary/encode.js +155 -110
  158. package/lib/WABinary/generic-utils.d.ts +7 -8
  159. package/lib/WABinary/generic-utils.js +49 -48
  160. package/lib/WABinary/index.d.ts +5 -6
  161. package/lib/WABinary/index.js +21 -6
  162. package/lib/WABinary/jid-utils.d.ts +8 -25
  163. package/lib/WABinary/jid-utils.js +40 -74
  164. package/lib/WABinary/types.d.ts +1 -2
  165. package/lib/WABinary/types.js +2 -2
  166. package/lib/WAM/BinaryInfo.d.ts +11 -3
  167. package/lib/WAM/BinaryInfo.js +5 -2
  168. package/lib/WAM/constants.d.ts +3 -5
  169. package/lib/WAM/constants.js +11958 -19461
  170. package/lib/WAM/encode.d.ts +3 -3
  171. package/lib/WAM/encode.js +22 -17
  172. package/lib/WAM/index.d.ts +3 -4
  173. package/lib/WAM/index.js +19 -4
  174. package/lib/WAUSync/Protocols/USyncContactProtocol.d.ts +3 -4
  175. package/lib/WAUSync/Protocols/USyncContactProtocol.js +13 -33
  176. package/lib/WAUSync/Protocols/USyncDeviceProtocol.d.ts +2 -3
  177. package/lib/WAUSync/Protocols/USyncDeviceProtocol.js +14 -11
  178. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.d.ts +2 -3
  179. package/lib/WAUSync/Protocols/USyncDisappearingModeProtocol.js +12 -9
  180. package/lib/WAUSync/Protocols/USyncStatusProtocol.d.ts +2 -3
  181. package/lib/WAUSync/Protocols/USyncStatusProtocol.js +13 -9
  182. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.d.ts +3 -4
  183. package/lib/WAUSync/Protocols/UsyncBotProfileProtocol.js +22 -20
  184. package/lib/WAUSync/Protocols/UsyncLIDProtocol.d.ts +3 -5
  185. package/lib/WAUSync/Protocols/UsyncLIDProtocol.js +8 -13
  186. package/lib/WAUSync/Protocols/index.d.ts +4 -6
  187. package/lib/WAUSync/Protocols/index.js +20 -6
  188. package/lib/WAUSync/USyncQuery.d.ts +4 -6
  189. package/lib/WAUSync/USyncQuery.js +35 -44
  190. package/lib/WAUSync/USyncUser.d.ts +5 -10
  191. package/lib/WAUSync/USyncUser.js +5 -10
  192. package/lib/WAUSync/index.js +19 -4
  193. package/lib/index.d.ts +9 -10
  194. package/lib/index.js +34 -12
  195. package/package.json +50 -83
  196. package/WAProto/GenerateStatics.sh +0 -3
  197. package/WAProto/WAProto.proto +0 -5479
  198. package/WAProto/fix-imports.js +0 -85
  199. package/WAProto/index.d.ts +0 -14017
  200. package/lib/Signal/lid-mapping.d.ts +0 -23
  201. package/lib/Signal/lid-mapping.js +0 -277
  202. package/lib/Socket/Client/types.js +0 -11
  203. package/lib/Socket/Client/websocket.js +0 -54
  204. package/lib/Socket/mex.d.ts +0 -3
  205. package/lib/Socket/mex.js +0 -42
  206. package/lib/Store/keyed-db.d.ts +0 -22
  207. package/lib/Store/keyed-db.js +0 -108
  208. package/lib/Types/Bussines.d.ts +0 -25
  209. package/lib/Types/Bussines.js +0 -2
  210. package/lib/Types/Mex.d.ts +0 -141
  211. package/lib/Types/Mex.js +0 -37
  212. package/lib/Utils/browser-utils.d.ts +0 -4
  213. package/lib/Utils/browser-utils.js +0 -28
  214. package/lib/Utils/companion-reg-client-utils.d.ts +0 -17
  215. package/lib/Utils/companion-reg-client-utils.js +0 -35
  216. package/lib/Utils/identity-change-handler.d.ts +0 -44
  217. package/lib/Utils/identity-change-handler.js +0 -50
  218. package/lib/Utils/message-retry-manager.d.ts +0 -115
  219. package/lib/Utils/message-retry-manager.js +0 -265
  220. package/lib/Utils/offline-node-processor.d.ts +0 -17
  221. package/lib/Utils/offline-node-processor.js +0 -40
  222. package/lib/Utils/pre-key-manager.d.ts +0 -28
  223. package/lib/Utils/pre-key-manager.js +0 -106
  224. package/lib/Utils/reporting-utils.d.ts +0 -11
  225. package/lib/Utils/reporting-utils.js +0 -258
  226. package/lib/Utils/stanza-ack.d.ts +0 -11
  227. package/lib/Utils/stanza-ack.js +0 -38
  228. package/lib/Utils/sync-action-utils.d.ts +0 -19
  229. package/lib/Utils/sync-action-utils.js +0 -49
  230. package/lib/Utils/tc-token-utils.d.ts +0 -37
  231. package/lib/Utils/tc-token-utils.js +0 -163
  232. package/lib/WAUSync/Protocols/USyncUsernameProtocol.d.ts +0 -10
  233. package/lib/WAUSync/Protocols/USyncUsernameProtocol.js +0 -25
  234. package/lib/WAUSync/index.d.ts +0 -4
package/WAProto/index.js CHANGED
@@ -5,47 +5,6 @@ const $Reader = $protobuf.Reader, $Writer = $protobuf.Writer, $util = $protobuf.
5
5
 
6
6
  const $root = $protobuf.roots["default"] || ($protobuf.roots["default"] = {});
7
7
 
8
- function longToString(value, unsigned) {
9
- if (typeof value === "string") {
10
- return value;
11
- }
12
- if (typeof value === "number") {
13
- return String(value);
14
- }
15
- // Fast path: convert Long {low, high} directly via native BigInt
16
- // BigInt.toString() is a native C++ operation, much faster than Long's pure JS division loops
17
- if (value && typeof value.low === "number" && typeof value.high === "number") {
18
- const lo = BigInt(value.low >>> 0);
19
- const hi = BigInt(value.high >>> 0);
20
- const combined = (hi << 32n) | lo;
21
- if (!unsigned && value.high < 0) {
22
- return (combined - (1n << 64n)).toString();
23
- }
24
- return combined.toString();
25
- }
26
- return String(value);
27
- }
28
-
29
- function longToNumber(value, unsigned) {
30
- if (typeof value === "number") {
31
- return value;
32
- }
33
- if (typeof value === "string") {
34
- return Number(value);
35
- }
36
- // Fast path: convert Long {low, high} directly via native BigInt
37
- if (value && typeof value.low === "number" && typeof value.high === "number") {
38
- const lo = BigInt(value.low >>> 0);
39
- const hi = BigInt(value.high >>> 0);
40
- const combined = (hi << 32n) | lo;
41
- if (!unsigned && value.high < 0) {
42
- return Number(combined - (1n << 64n));
43
- }
44
- return Number(combined);
45
- }
46
- return Number(value);
47
- }
48
-
49
8
  export const proto = $root.proto = (() => {
50
9
 
51
10
  const proto = {};
@@ -222,7 +181,7 @@ export const proto = $root.proto = (() => {
222
181
  if (typeof m.timestamp === "number")
223
182
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
224
183
  else
225
- d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
184
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
226
185
  if (o.oneofs)
227
186
  d._timestamp = "timestamp";
228
187
  }
@@ -438,7 +397,7 @@ export const proto = $root.proto = (() => {
438
397
  if (typeof m.timestamp === "number")
439
398
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
440
399
  else
441
- d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
400
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
442
401
  if (o.oneofs)
443
402
  d._timestamp = "timestamp";
444
403
  }
@@ -1051,7 +1010,7 @@ export const proto = $root.proto = (() => {
1051
1010
  if (typeof m.lastFetchTime === "number")
1052
1011
  d.lastFetchTime = o.longs === String ? String(m.lastFetchTime) : m.lastFetchTime;
1053
1012
  else
1054
- d.lastFetchTime = o.longs === String ? longToString(m.lastFetchTime) : o.longs === Number ? longToNumber(m.lastFetchTime) : m.lastFetchTime;
1013
+ d.lastFetchTime = o.longs === String ? $util.Long.prototype.toString.call(m.lastFetchTime) : o.longs === Number ? new $util.LongBits(m.lastFetchTime.low >>> 0, m.lastFetchTime.high >>> 0).toNumber() : m.lastFetchTime;
1055
1014
  if (o.oneofs)
1056
1015
  d._lastFetchTime = "lastFetchTime";
1057
1016
  }
@@ -1451,7 +1410,7 @@ export const proto = $root.proto = (() => {
1451
1410
  if (typeof m.timestamp === "number")
1452
1411
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
1453
1412
  else
1454
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
1413
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
1455
1414
  if (o.oneofs)
1456
1415
  d._timestamp = "timestamp";
1457
1416
  }
@@ -1572,7 +1531,7 @@ export const proto = $root.proto = (() => {
1572
1531
  if (typeof m.responseTimestampMs === "number")
1573
1532
  d.responseTimestampMs = o.longs === String ? String(m.responseTimestampMs) : m.responseTimestampMs;
1574
1533
  else
1575
- d.responseTimestampMs = o.longs === String ? longToString(m.responseTimestampMs) : o.longs === Number ? longToNumber(m.responseTimestampMs) : m.responseTimestampMs;
1534
+ d.responseTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.responseTimestampMs) : o.longs === Number ? new $util.LongBits(m.responseTimestampMs.low >>> 0, m.responseTimestampMs.high >>> 0).toNumber() : m.responseTimestampMs;
1576
1535
  if (o.oneofs)
1577
1536
  d._responseTimestampMs = "responseTimestampMs";
1578
1537
  }
@@ -2387,7 +2346,7 @@ export const proto = $root.proto = (() => {
2387
2346
  if (typeof m.version === "number")
2388
2347
  d.version = o.longs === String ? String(m.version) : m.version;
2389
2348
  else
2390
- d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
2349
+ d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version;
2391
2350
  if (o.oneofs)
2392
2351
  d._version = "version";
2393
2352
  }
@@ -5474,7 +5433,7 @@ export const proto = $root.proto = (() => {
5474
5433
  if (typeof m.whatsappBizAcctFbid === "number")
5475
5434
  d.whatsappBizAcctFbid = o.longs === String ? String(m.whatsappBizAcctFbid) : m.whatsappBizAcctFbid;
5476
5435
  else
5477
- d.whatsappBizAcctFbid = o.longs === String ? longToString(m.whatsappBizAcctFbid, true) : o.longs === Number ? longToNumber(m.whatsappBizAcctFbid, true) : m.whatsappBizAcctFbid;
5436
+ d.whatsappBizAcctFbid = o.longs === String ? $util.Long.prototype.toString.call(m.whatsappBizAcctFbid) : o.longs === Number ? new $util.LongBits(m.whatsappBizAcctFbid.low >>> 0, m.whatsappBizAcctFbid.high >>> 0).toNumber(true) : m.whatsappBizAcctFbid;
5478
5437
  if (o.oneofs)
5479
5438
  d._whatsappBizAcctFbid = "whatsappBizAcctFbid";
5480
5439
  }
@@ -5487,7 +5446,7 @@ export const proto = $root.proto = (() => {
5487
5446
  if (typeof m.issueTime === "number")
5488
5447
  d.issueTime = o.longs === String ? String(m.issueTime) : m.issueTime;
5489
5448
  else
5490
- d.issueTime = o.longs === String ? longToString(m.issueTime, true) : o.longs === Number ? longToNumber(m.issueTime, true) : m.issueTime;
5449
+ d.issueTime = o.longs === String ? $util.Long.prototype.toString.call(m.issueTime) : o.longs === Number ? new $util.LongBits(m.issueTime.low >>> 0, m.issueTime.high >>> 0).toNumber(true) : m.issueTime;
5491
5450
  if (o.oneofs)
5492
5451
  d._issueTime = "issueTime";
5493
5452
  }
@@ -5916,7 +5875,7 @@ export const proto = $root.proto = (() => {
5916
5875
  if (typeof m.privacyModeTs === "number")
5917
5876
  d.privacyModeTs = o.longs === String ? String(m.privacyModeTs) : m.privacyModeTs;
5918
5877
  else
5919
- d.privacyModeTs = o.longs === String ? longToString(m.privacyModeTs, true) : o.longs === Number ? longToNumber(m.privacyModeTs, true) : m.privacyModeTs;
5878
+ d.privacyModeTs = o.longs === String ? $util.Long.prototype.toString.call(m.privacyModeTs) : o.longs === Number ? new $util.LongBits(m.privacyModeTs.low >>> 0, m.privacyModeTs.high >>> 0).toNumber(true) : m.privacyModeTs;
5920
5879
  if (o.oneofs)
5921
5880
  d._privacyModeTs = "privacyModeTs";
5922
5881
  }
@@ -5924,7 +5883,7 @@ export const proto = $root.proto = (() => {
5924
5883
  if (typeof m.featureControls === "number")
5925
5884
  d.featureControls = o.longs === String ? String(m.featureControls) : m.featureControls;
5926
5885
  else
5927
- d.featureControls = o.longs === String ? longToString(m.featureControls, true) : o.longs === Number ? longToNumber(m.featureControls, true) : m.featureControls;
5886
+ d.featureControls = o.longs === String ? $util.Long.prototype.toString.call(m.featureControls) : o.longs === Number ? new $util.LongBits(m.featureControls.low >>> 0, m.featureControls.high >>> 0).toNumber(true) : m.featureControls;
5928
5887
  if (o.oneofs)
5929
5888
  d._featureControls = "featureControls";
5930
5889
  }
@@ -6928,7 +6887,7 @@ export const proto = $root.proto = (() => {
6928
6887
  if (typeof m.kindNegative === "number")
6929
6888
  d.kindNegative = o.longs === String ? String(m.kindNegative) : m.kindNegative;
6930
6889
  else
6931
- d.kindNegative = o.longs === String ? longToString(m.kindNegative, true) : o.longs === Number ? longToNumber(m.kindNegative, true) : m.kindNegative;
6890
+ d.kindNegative = o.longs === String ? $util.Long.prototype.toString.call(m.kindNegative) : o.longs === Number ? new $util.LongBits(m.kindNegative.low >>> 0, m.kindNegative.high >>> 0).toNumber(true) : m.kindNegative;
6932
6891
  if (o.oneofs)
6933
6892
  d._kindNegative = "kindNegative";
6934
6893
  }
@@ -6936,7 +6895,7 @@ export const proto = $root.proto = (() => {
6936
6895
  if (typeof m.kindPositive === "number")
6937
6896
  d.kindPositive = o.longs === String ? String(m.kindPositive) : m.kindPositive;
6938
6897
  else
6939
- d.kindPositive = o.longs === String ? longToString(m.kindPositive, true) : o.longs === Number ? longToNumber(m.kindPositive, true) : m.kindPositive;
6898
+ d.kindPositive = o.longs === String ? $util.Long.prototype.toString.call(m.kindPositive) : o.longs === Number ? new $util.LongBits(m.kindPositive.low >>> 0, m.kindPositive.high >>> 0).toNumber(true) : m.kindPositive;
6940
6899
  if (o.oneofs)
6941
6900
  d._kindPositive = "kindPositive";
6942
6901
  }
@@ -8703,7 +8662,7 @@ export const proto = $root.proto = (() => {
8703
8662
  if (typeof m.mediaKeyTimestamp === "number")
8704
8663
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
8705
8664
  else
8706
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
8665
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
8707
8666
  if (o.oneofs)
8708
8667
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
8709
8668
  }
@@ -12911,7 +12870,7 @@ export const proto = $root.proto = (() => {
12911
12870
  if (typeof m.expirationTimestamp === "number")
12912
12871
  d.expirationTimestamp = o.longs === String ? String(m.expirationTimestamp) : m.expirationTimestamp;
12913
12872
  else
12914
- d.expirationTimestamp = o.longs === String ? longToString(m.expirationTimestamp, true) : o.longs === Number ? longToNumber(m.expirationTimestamp, true) : m.expirationTimestamp;
12873
+ d.expirationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expirationTimestamp) : o.longs === Number ? new $util.LongBits(m.expirationTimestamp.low >>> 0, m.expirationTimestamp.high >>> 0).toNumber(true) : m.expirationTimestamp;
12915
12874
  if (o.oneofs)
12916
12875
  d._expirationTimestamp = "expirationTimestamp";
12917
12876
  }
@@ -13146,7 +13105,7 @@ export const proto = $root.proto = (() => {
13146
13105
  if (typeof m.nextTriggerTimestamp === "number")
13147
13106
  d.nextTriggerTimestamp = o.longs === String ? String(m.nextTriggerTimestamp) : m.nextTriggerTimestamp;
13148
13107
  else
13149
- d.nextTriggerTimestamp = o.longs === String ? longToString(m.nextTriggerTimestamp, true) : o.longs === Number ? longToNumber(m.nextTriggerTimestamp, true) : m.nextTriggerTimestamp;
13108
+ d.nextTriggerTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.nextTriggerTimestamp) : o.longs === Number ? new $util.LongBits(m.nextTriggerTimestamp.low >>> 0, m.nextTriggerTimestamp.high >>> 0).toNumber(true) : m.nextTriggerTimestamp;
13150
13109
  if (o.oneofs)
13151
13110
  d._nextTriggerTimestamp = "nextTriggerTimestamp";
13152
13111
  }
@@ -15128,7 +15087,7 @@ export const proto = $root.proto = (() => {
15128
15087
  if (typeof m.duration === "number")
15129
15088
  d.duration = o.longs === String ? String(m.duration) : m.duration;
15130
15089
  else
15131
- d.duration = o.longs === String ? longToString(m.duration) : o.longs === Number ? longToNumber(m.duration) : m.duration;
15090
+ d.duration = o.longs === String ? $util.Long.prototype.toString.call(m.duration) : o.longs === Number ? new $util.LongBits(m.duration.low >>> 0, m.duration.high >>> 0).toNumber() : m.duration;
15132
15091
  if (o.oneofs)
15133
15092
  d._duration = "duration";
15134
15093
  }
@@ -15136,7 +15095,7 @@ export const proto = $root.proto = (() => {
15136
15095
  if (typeof m.startTime === "number")
15137
15096
  d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
15138
15097
  else
15139
- d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
15098
+ d.startTime = o.longs === String ? $util.Long.prototype.toString.call(m.startTime) : o.longs === Number ? new $util.LongBits(m.startTime.low >>> 0, m.startTime.high >>> 0).toNumber() : m.startTime;
15140
15099
  if (o.oneofs)
15141
15100
  d._startTime = "startTime";
15142
15101
  }
@@ -15787,7 +15746,7 @@ export const proto = $root.proto = (() => {
15787
15746
  if (typeof m.notBefore === "number")
15788
15747
  d.notBefore = o.longs === String ? String(m.notBefore) : m.notBefore;
15789
15748
  else
15790
- d.notBefore = o.longs === String ? longToString(m.notBefore, true) : o.longs === Number ? longToNumber(m.notBefore, true) : m.notBefore;
15749
+ d.notBefore = o.longs === String ? $util.Long.prototype.toString.call(m.notBefore) : o.longs === Number ? new $util.LongBits(m.notBefore.low >>> 0, m.notBefore.high >>> 0).toNumber(true) : m.notBefore;
15791
15750
  if (o.oneofs)
15792
15751
  d._notBefore = "notBefore";
15793
15752
  }
@@ -15795,7 +15754,7 @@ export const proto = $root.proto = (() => {
15795
15754
  if (typeof m.notAfter === "number")
15796
15755
  d.notAfter = o.longs === String ? String(m.notAfter) : m.notAfter;
15797
15756
  else
15798
- d.notAfter = o.longs === String ? longToString(m.notAfter, true) : o.longs === Number ? longToNumber(m.notAfter, true) : m.notAfter;
15757
+ d.notAfter = o.longs === String ? $util.Long.prototype.toString.call(m.notAfter) : o.longs === Number ? new $util.LongBits(m.notAfter.low >>> 0, m.notAfter.high >>> 0).toNumber(true) : m.notAfter;
15799
15758
  if (o.oneofs)
15800
15759
  d._notAfter = "notAfter";
15801
15760
  }
@@ -16185,7 +16144,7 @@ export const proto = $root.proto = (() => {
16185
16144
  if (typeof m.timestamp === "number")
16186
16145
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
16187
16146
  else
16188
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
16147
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
16189
16148
  if (o.oneofs)
16190
16149
  d._timestamp = "timestamp";
16191
16150
  }
@@ -17774,7 +17733,7 @@ export const proto = $root.proto = (() => {
17774
17733
  if (typeof m.username === "number")
17775
17734
  d.username = o.longs === String ? String(m.username) : m.username;
17776
17735
  else
17777
- d.username = o.longs === String ? longToString(m.username, true) : o.longs === Number ? longToNumber(m.username, true) : m.username;
17736
+ d.username = o.longs === String ? $util.Long.prototype.toString.call(m.username) : o.longs === Number ? new $util.LongBits(m.username.low >>> 0, m.username.high >>> 0).toNumber(true) : m.username;
17778
17737
  if (o.oneofs)
17779
17738
  d._username = "username";
17780
17739
  }
@@ -17878,7 +17837,7 @@ export const proto = $root.proto = (() => {
17878
17837
  if (typeof m.fbAppId === "number")
17879
17838
  d.fbAppId = o.longs === String ? String(m.fbAppId) : m.fbAppId;
17880
17839
  else
17881
- d.fbAppId = o.longs === String ? longToString(m.fbAppId, true) : o.longs === Number ? longToNumber(m.fbAppId, true) : m.fbAppId;
17840
+ d.fbAppId = o.longs === String ? $util.Long.prototype.toString.call(m.fbAppId) : o.longs === Number ? new $util.LongBits(m.fbAppId.low >>> 0, m.fbAppId.high >>> 0).toNumber(true) : m.fbAppId;
17882
17841
  if (o.oneofs)
17883
17842
  d._fbAppId = "fbAppId";
17884
17843
  }
@@ -18528,7 +18487,7 @@ export const proto = $root.proto = (() => {
18528
18487
  if (typeof m.accountId === "number")
18529
18488
  d.accountId = o.longs === String ? String(m.accountId) : m.accountId;
18530
18489
  else
18531
- d.accountId = o.longs === String ? longToString(m.accountId, true) : o.longs === Number ? longToNumber(m.accountId, true) : m.accountId;
18490
+ d.accountId = o.longs === String ? $util.Long.prototype.toString.call(m.accountId) : o.longs === Number ? new $util.LongBits(m.accountId.low >>> 0, m.accountId.high >>> 0).toNumber(true) : m.accountId;
18532
18491
  if (o.oneofs)
18533
18492
  d._accountId = "accountId";
18534
18493
  }
@@ -21713,7 +21672,7 @@ export const proto = $root.proto = (() => {
21713
21672
  if (typeof m.ephemeralSettingTimestamp === "number")
21714
21673
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
21715
21674
  else
21716
- d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
21675
+ d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
21717
21676
  if (o.oneofs)
21718
21677
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
21719
21678
  }
@@ -22523,7 +22482,7 @@ export const proto = $root.proto = (() => {
22523
22482
  if (typeof m.intData === "number")
22524
22483
  d.intData = o.longs === String ? String(m.intData) : m.intData;
22525
22484
  else
22526
- d.intData = o.longs === String ? longToString(m.intData) : o.longs === Number ? longToNumber(m.intData) : m.intData;
22485
+ d.intData = o.longs === String ? $util.Long.prototype.toString.call(m.intData) : o.longs === Number ? new $util.LongBits(m.intData.low >>> 0, m.intData.high >>> 0).toNumber() : m.intData;
22527
22486
  if (o.oneofs)
22528
22487
  d._intData = "intData";
22529
22488
  }
@@ -25103,7 +25062,7 @@ export const proto = $root.proto = (() => {
25103
25062
  if (typeof m.lastMsgTimestamp === "number")
25104
25063
  d.lastMsgTimestamp = o.longs === String ? String(m.lastMsgTimestamp) : m.lastMsgTimestamp;
25105
25064
  else
25106
- d.lastMsgTimestamp = o.longs === String ? longToString(m.lastMsgTimestamp, true) : o.longs === Number ? longToNumber(m.lastMsgTimestamp, true) : m.lastMsgTimestamp;
25065
+ d.lastMsgTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastMsgTimestamp) : o.longs === Number ? new $util.LongBits(m.lastMsgTimestamp.low >>> 0, m.lastMsgTimestamp.high >>> 0).toNumber(true) : m.lastMsgTimestamp;
25107
25066
  if (o.oneofs)
25108
25067
  d._lastMsgTimestamp = "lastMsgTimestamp";
25109
25068
  }
@@ -25131,7 +25090,7 @@ export const proto = $root.proto = (() => {
25131
25090
  if (typeof m.ephemeralSettingTimestamp === "number")
25132
25091
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
25133
25092
  else
25134
- d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
25093
+ d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
25135
25094
  if (o.oneofs)
25136
25095
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
25137
25096
  }
@@ -25144,7 +25103,7 @@ export const proto = $root.proto = (() => {
25144
25103
  if (typeof m.conversationTimestamp === "number")
25145
25104
  d.conversationTimestamp = o.longs === String ? String(m.conversationTimestamp) : m.conversationTimestamp;
25146
25105
  else
25147
- d.conversationTimestamp = o.longs === String ? longToString(m.conversationTimestamp, true) : o.longs === Number ? longToNumber(m.conversationTimestamp, true) : m.conversationTimestamp;
25106
+ d.conversationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.conversationTimestamp) : o.longs === Number ? new $util.LongBits(m.conversationTimestamp.low >>> 0, m.conversationTimestamp.high >>> 0).toNumber(true) : m.conversationTimestamp;
25148
25107
  if (o.oneofs)
25149
25108
  d._conversationTimestamp = "conversationTimestamp";
25150
25109
  }
@@ -25198,7 +25157,7 @@ export const proto = $root.proto = (() => {
25198
25157
  if (typeof m.tcTokenTimestamp === "number")
25199
25158
  d.tcTokenTimestamp = o.longs === String ? String(m.tcTokenTimestamp) : m.tcTokenTimestamp;
25200
25159
  else
25201
- d.tcTokenTimestamp = o.longs === String ? longToString(m.tcTokenTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenTimestamp, true) : m.tcTokenTimestamp;
25160
+ d.tcTokenTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.tcTokenTimestamp) : o.longs === Number ? new $util.LongBits(m.tcTokenTimestamp.low >>> 0, m.tcTokenTimestamp.high >>> 0).toNumber(true) : m.tcTokenTimestamp;
25202
25161
  if (o.oneofs)
25203
25162
  d._tcTokenTimestamp = "tcTokenTimestamp";
25204
25163
  }
@@ -25216,7 +25175,7 @@ export const proto = $root.proto = (() => {
25216
25175
  if (typeof m.muteEndTime === "number")
25217
25176
  d.muteEndTime = o.longs === String ? String(m.muteEndTime) : m.muteEndTime;
25218
25177
  else
25219
- d.muteEndTime = o.longs === String ? longToString(m.muteEndTime, true) : o.longs === Number ? longToNumber(m.muteEndTime, true) : m.muteEndTime;
25178
+ d.muteEndTime = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTime) : o.longs === Number ? new $util.LongBits(m.muteEndTime.low >>> 0, m.muteEndTime.high >>> 0).toNumber(true) : m.muteEndTime;
25220
25179
  if (o.oneofs)
25221
25180
  d._muteEndTime = "muteEndTime";
25222
25181
  }
@@ -25234,7 +25193,7 @@ export const proto = $root.proto = (() => {
25234
25193
  if (typeof m.tcTokenSenderTimestamp === "number")
25235
25194
  d.tcTokenSenderTimestamp = o.longs === String ? String(m.tcTokenSenderTimestamp) : m.tcTokenSenderTimestamp;
25236
25195
  else
25237
- d.tcTokenSenderTimestamp = o.longs === String ? longToString(m.tcTokenSenderTimestamp, true) : o.longs === Number ? longToNumber(m.tcTokenSenderTimestamp, true) : m.tcTokenSenderTimestamp;
25196
+ d.tcTokenSenderTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.tcTokenSenderTimestamp) : o.longs === Number ? new $util.LongBits(m.tcTokenSenderTimestamp.low >>> 0, m.tcTokenSenderTimestamp.high >>> 0).toNumber(true) : m.tcTokenSenderTimestamp;
25238
25197
  if (o.oneofs)
25239
25198
  d._tcTokenSenderTimestamp = "tcTokenSenderTimestamp";
25240
25199
  }
@@ -25252,7 +25211,7 @@ export const proto = $root.proto = (() => {
25252
25211
  if (typeof m.createdAt === "number")
25253
25212
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
25254
25213
  else
25255
- d.createdAt = o.longs === String ? longToString(m.createdAt, true) : o.longs === Number ? longToNumber(m.createdAt, true) : m.createdAt;
25214
+ d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber(true) : m.createdAt;
25256
25215
  if (o.oneofs)
25257
25216
  d._createdAt = "createdAt";
25258
25217
  }
@@ -25355,7 +25314,7 @@ export const proto = $root.proto = (() => {
25355
25314
  if (typeof m.limitSharingSettingTimestamp === "number")
25356
25315
  d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
25357
25316
  else
25358
- d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
25317
+ d.limitSharingSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.limitSharingSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.limitSharingSettingTimestamp.low >>> 0, m.limitSharingSettingTimestamp.high >>> 0).toNumber() : m.limitSharingSettingTimestamp;
25359
25318
  if (o.oneofs)
25360
25319
  d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
25361
25320
  }
@@ -25781,7 +25740,7 @@ export const proto = $root.proto = (() => {
25781
25740
  if (typeof m.chatDbMigrationTimestamp === "number")
25782
25741
  d.chatDbMigrationTimestamp = o.longs === String ? String(m.chatDbMigrationTimestamp) : m.chatDbMigrationTimestamp;
25783
25742
  else
25784
- d.chatDbMigrationTimestamp = o.longs === String ? longToString(m.chatDbMigrationTimestamp, true) : o.longs === Number ? longToNumber(m.chatDbMigrationTimestamp, true) : m.chatDbMigrationTimestamp;
25743
+ d.chatDbMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbMigrationTimestamp.low >>> 0, m.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : m.chatDbMigrationTimestamp;
25785
25744
  if (o.oneofs)
25786
25745
  d._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
25787
25746
  }
@@ -26272,7 +26231,7 @@ export const proto = $root.proto = (() => {
26272
26231
  if (typeof m.senderTimestamp === "number")
26273
26232
  d.senderTimestamp = o.longs === String ? String(m.senderTimestamp) : m.senderTimestamp;
26274
26233
  else
26275
- d.senderTimestamp = o.longs === String ? longToString(m.senderTimestamp, true) : o.longs === Number ? longToNumber(m.senderTimestamp, true) : m.senderTimestamp;
26234
+ d.senderTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestamp) : o.longs === Number ? new $util.LongBits(m.senderTimestamp.low >>> 0, m.senderTimestamp.high >>> 0).toNumber(true) : m.senderTimestamp;
26276
26235
  if (o.oneofs)
26277
26236
  d._senderTimestamp = "senderTimestamp";
26278
26237
  }
@@ -26301,7 +26260,7 @@ export const proto = $root.proto = (() => {
26301
26260
  if (typeof m.recipientTimestamp === "number")
26302
26261
  d.recipientTimestamp = o.longs === String ? String(m.recipientTimestamp) : m.recipientTimestamp;
26303
26262
  else
26304
- d.recipientTimestamp = o.longs === String ? longToString(m.recipientTimestamp, true) : o.longs === Number ? longToNumber(m.recipientTimestamp, true) : m.recipientTimestamp;
26263
+ d.recipientTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.recipientTimestamp) : o.longs === Number ? new $util.LongBits(m.recipientTimestamp.low >>> 0, m.recipientTimestamp.high >>> 0).toNumber(true) : m.recipientTimestamp;
26305
26264
  if (o.oneofs)
26306
26265
  d._recipientTimestamp = "recipientTimestamp";
26307
26266
  }
@@ -28081,7 +28040,7 @@ export const proto = $root.proto = (() => {
28081
28040
  if (typeof m.musicSongStartTimeInMs === "number")
28082
28041
  d.musicSongStartTimeInMs = o.longs === String ? String(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
28083
28042
  else
28084
- d.musicSongStartTimeInMs = o.longs === String ? longToString(m.musicSongStartTimeInMs) : o.longs === Number ? longToNumber(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
28043
+ d.musicSongStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.musicSongStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.musicSongStartTimeInMs.low >>> 0, m.musicSongStartTimeInMs.high >>> 0).toNumber() : m.musicSongStartTimeInMs;
28085
28044
  if (o.oneofs)
28086
28045
  d._musicSongStartTimeInMs = "musicSongStartTimeInMs";
28087
28046
  }
@@ -28089,7 +28048,7 @@ export const proto = $root.proto = (() => {
28089
28048
  if (typeof m.derivedContentStartTimeInMs === "number")
28090
28049
  d.derivedContentStartTimeInMs = o.longs === String ? String(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
28091
28050
  else
28092
- d.derivedContentStartTimeInMs = o.longs === String ? longToString(m.derivedContentStartTimeInMs) : o.longs === Number ? longToNumber(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
28051
+ d.derivedContentStartTimeInMs = o.longs === String ? $util.Long.prototype.toString.call(m.derivedContentStartTimeInMs) : o.longs === Number ? new $util.LongBits(m.derivedContentStartTimeInMs.low >>> 0, m.derivedContentStartTimeInMs.high >>> 0).toNumber() : m.derivedContentStartTimeInMs;
28093
28052
  if (o.oneofs)
28094
28053
  d._derivedContentStartTimeInMs = "derivedContentStartTimeInMs";
28095
28054
  }
@@ -28097,7 +28056,7 @@ export const proto = $root.proto = (() => {
28097
28056
  if (typeof m.overlapDurationInMs === "number")
28098
28057
  d.overlapDurationInMs = o.longs === String ? String(m.overlapDurationInMs) : m.overlapDurationInMs;
28099
28058
  else
28100
- d.overlapDurationInMs = o.longs === String ? longToString(m.overlapDurationInMs) : o.longs === Number ? longToNumber(m.overlapDurationInMs) : m.overlapDurationInMs;
28059
+ d.overlapDurationInMs = o.longs === String ? $util.Long.prototype.toString.call(m.overlapDurationInMs) : o.longs === Number ? new $util.LongBits(m.overlapDurationInMs.low >>> 0, m.overlapDurationInMs.high >>> 0).toNumber() : m.overlapDurationInMs;
28101
28060
  if (o.oneofs)
28102
28061
  d._overlapDurationInMs = "overlapDurationInMs";
28103
28062
  }
@@ -28331,7 +28290,7 @@ export const proto = $root.proto = (() => {
28331
28290
  if (typeof m.timestamp === "number")
28332
28291
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
28333
28292
  else
28334
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
28293
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
28335
28294
  if (o.oneofs)
28336
28295
  d._timestamp = "timestamp";
28337
28296
  }
@@ -28574,7 +28533,7 @@ export const proto = $root.proto = (() => {
28574
28533
  if (typeof m.timestampMs === "number")
28575
28534
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
28576
28535
  else
28577
- d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
28536
+ d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
28578
28537
  if (o.oneofs)
28579
28538
  d._timestampMs = "timestampMs";
28580
28539
  }
@@ -28698,7 +28657,7 @@ export const proto = $root.proto = (() => {
28698
28657
  if (typeof m.code === "number")
28699
28658
  d.code = o.longs === String ? String(m.code) : m.code;
28700
28659
  else
28701
- d.code = o.longs === String ? longToString(m.code, true) : o.longs === Number ? longToNumber(m.code, true) : m.code;
28660
+ d.code = o.longs === String ? $util.Long.prototype.toString.call(m.code) : o.longs === Number ? new $util.LongBits(m.code.low >>> 0, m.code.high >>> 0).toNumber(true) : m.code;
28702
28661
  if (o.oneofs)
28703
28662
  d._code = "code";
28704
28663
  }
@@ -28905,7 +28864,7 @@ export const proto = $root.proto = (() => {
28905
28864
  if (typeof m.fileSizeBytes === "number")
28906
28865
  d.fileSizeBytes = o.longs === String ? String(m.fileSizeBytes) : m.fileSizeBytes;
28907
28866
  else
28908
- d.fileSizeBytes = o.longs === String ? longToString(m.fileSizeBytes, true) : o.longs === Number ? longToNumber(m.fileSizeBytes, true) : m.fileSizeBytes;
28867
+ d.fileSizeBytes = o.longs === String ? $util.Long.prototype.toString.call(m.fileSizeBytes) : o.longs === Number ? new $util.LongBits(m.fileSizeBytes.low >>> 0, m.fileSizeBytes.high >>> 0).toNumber(true) : m.fileSizeBytes;
28909
28868
  if (o.oneofs)
28910
28869
  d._fileSizeBytes = "fileSizeBytes";
28911
28870
  }
@@ -29736,7 +29695,7 @@ export const proto = $root.proto = (() => {
29736
29695
  if (typeof m.disappearingModeTimestamp === "number")
29737
29696
  d.disappearingModeTimestamp = o.longs === String ? String(m.disappearingModeTimestamp) : m.disappearingModeTimestamp;
29738
29697
  else
29739
- d.disappearingModeTimestamp = o.longs === String ? longToString(m.disappearingModeTimestamp) : o.longs === Number ? longToNumber(m.disappearingModeTimestamp) : m.disappearingModeTimestamp;
29698
+ d.disappearingModeTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.disappearingModeTimestamp) : o.longs === Number ? new $util.LongBits(m.disappearingModeTimestamp.low >>> 0, m.disappearingModeTimestamp.high >>> 0).toNumber() : m.disappearingModeTimestamp;
29740
29699
  if (o.oneofs)
29741
29700
  d._disappearingModeTimestamp = "disappearingModeTimestamp";
29742
29701
  }
@@ -29789,7 +29748,7 @@ export const proto = $root.proto = (() => {
29789
29748
  if (typeof m.chatDbLidMigrationTimestamp === "number")
29790
29749
  d.chatDbLidMigrationTimestamp = o.longs === String ? String(m.chatDbLidMigrationTimestamp) : m.chatDbLidMigrationTimestamp;
29791
29750
  else
29792
- d.chatDbLidMigrationTimestamp = o.longs === String ? longToString(m.chatDbLidMigrationTimestamp) : o.longs === Number ? longToNumber(m.chatDbLidMigrationTimestamp) : m.chatDbLidMigrationTimestamp;
29751
+ d.chatDbLidMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbLidMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbLidMigrationTimestamp.low >>> 0, m.chatDbLidMigrationTimestamp.high >>> 0).toNumber() : m.chatDbLidMigrationTimestamp;
29793
29752
  if (o.oneofs)
29794
29753
  d._chatDbLidMigrationTimestamp = "chatDbLidMigrationTimestamp";
29795
29754
  }
@@ -31608,7 +31567,7 @@ export const proto = $root.proto = (() => {
31608
31567
  if (typeof m.msgOrderId === "number")
31609
31568
  d.msgOrderId = o.longs === String ? String(m.msgOrderId) : m.msgOrderId;
31610
31569
  else
31611
- d.msgOrderId = o.longs === String ? longToString(m.msgOrderId, true) : o.longs === Number ? longToNumber(m.msgOrderId, true) : m.msgOrderId;
31570
+ d.msgOrderId = o.longs === String ? $util.Long.prototype.toString.call(m.msgOrderId) : o.longs === Number ? new $util.LongBits(m.msgOrderId.low >>> 0, m.msgOrderId.high >>> 0).toNumber(true) : m.msgOrderId;
31612
31571
  if (o.oneofs)
31613
31572
  d._msgOrderId = "msgOrderId";
31614
31573
  }
@@ -33645,7 +33604,7 @@ export const proto = $root.proto = (() => {
33645
33604
  if (typeof m.serverTimestamp === "number")
33646
33605
  d.serverTimestamp = o.longs === String ? String(m.serverTimestamp) : m.serverTimestamp;
33647
33606
  else
33648
- d.serverTimestamp = o.longs === String ? longToString(m.serverTimestamp) : o.longs === Number ? longToNumber(m.serverTimestamp) : m.serverTimestamp;
33607
+ d.serverTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestamp) : o.longs === Number ? new $util.LongBits(m.serverTimestamp.low >>> 0, m.serverTimestamp.high >>> 0).toNumber() : m.serverTimestamp;
33649
33608
  if (o.oneofs)
33650
33609
  d._serverTimestamp = "serverTimestamp";
33651
33610
  }
@@ -33663,7 +33622,7 @@ export const proto = $root.proto = (() => {
33663
33622
  if (typeof m.clientTimestampMs === "number")
33664
33623
  d.clientTimestampMs = o.longs === String ? String(m.clientTimestampMs) : m.clientTimestampMs;
33665
33624
  else
33666
- d.clientTimestampMs = o.longs === String ? longToString(m.clientTimestampMs) : o.longs === Number ? longToNumber(m.clientTimestampMs) : m.clientTimestampMs;
33625
+ d.clientTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.clientTimestampMs) : o.longs === Number ? new $util.LongBits(m.clientTimestampMs.low >>> 0, m.clientTimestampMs.high >>> 0).toNumber() : m.clientTimestampMs;
33667
33626
  if (o.oneofs)
33668
33627
  d._clientTimestampMs = "clientTimestampMs";
33669
33628
  }
@@ -33671,7 +33630,7 @@ export const proto = $root.proto = (() => {
33671
33630
  if (typeof m.serverTimestampMs === "number")
33672
33631
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
33673
33632
  else
33674
- d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
33633
+ d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
33675
33634
  if (o.oneofs)
33676
33635
  d._serverTimestampMs = "serverTimestampMs";
33677
33636
  }
@@ -34098,19 +34057,19 @@ export const proto = $root.proto = (() => {
34098
34057
  if (typeof m.pn === "number")
34099
34058
  d.pn = o.longs === String ? String(m.pn) : m.pn;
34100
34059
  else
34101
- d.pn = o.longs === String ? longToString(m.pn, true) : o.longs === Number ? longToNumber(m.pn, true) : m.pn;
34060
+ d.pn = o.longs === String ? $util.Long.prototype.toString.call(m.pn) : o.longs === Number ? new $util.LongBits(m.pn.low >>> 0, m.pn.high >>> 0).toNumber(true) : m.pn;
34102
34061
  }
34103
34062
  if (m.assignedLid != null && m.hasOwnProperty("assignedLid")) {
34104
34063
  if (typeof m.assignedLid === "number")
34105
34064
  d.assignedLid = o.longs === String ? String(m.assignedLid) : m.assignedLid;
34106
34065
  else
34107
- d.assignedLid = o.longs === String ? longToString(m.assignedLid, true) : o.longs === Number ? longToNumber(m.assignedLid, true) : m.assignedLid;
34066
+ d.assignedLid = o.longs === String ? $util.Long.prototype.toString.call(m.assignedLid) : o.longs === Number ? new $util.LongBits(m.assignedLid.low >>> 0, m.assignedLid.high >>> 0).toNumber(true) : m.assignedLid;
34108
34067
  }
34109
34068
  if (m.latestLid != null && m.hasOwnProperty("latestLid")) {
34110
34069
  if (typeof m.latestLid === "number")
34111
34070
  d.latestLid = o.longs === String ? String(m.latestLid) : m.latestLid;
34112
34071
  else
34113
- d.latestLid = o.longs === String ? longToString(m.latestLid, true) : o.longs === Number ? longToNumber(m.latestLid, true) : m.latestLid;
34072
+ d.latestLid = o.longs === String ? $util.Long.prototype.toString.call(m.latestLid) : o.longs === Number ? new $util.LongBits(m.latestLid.low >>> 0, m.latestLid.high >>> 0).toNumber(true) : m.latestLid;
34114
34073
  if (o.oneofs)
34115
34074
  d._latestLid = "latestLid";
34116
34075
  }
@@ -34330,7 +34289,7 @@ export const proto = $root.proto = (() => {
34330
34289
  if (typeof m.chatDbMigrationTimestamp === "number")
34331
34290
  d.chatDbMigrationTimestamp = o.longs === String ? String(m.chatDbMigrationTimestamp) : m.chatDbMigrationTimestamp;
34332
34291
  else
34333
- d.chatDbMigrationTimestamp = o.longs === String ? longToString(m.chatDbMigrationTimestamp, true) : o.longs === Number ? longToNumber(m.chatDbMigrationTimestamp, true) : m.chatDbMigrationTimestamp;
34292
+ d.chatDbMigrationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.chatDbMigrationTimestamp) : o.longs === Number ? new $util.LongBits(m.chatDbMigrationTimestamp.low >>> 0, m.chatDbMigrationTimestamp.high >>> 0).toNumber(true) : m.chatDbMigrationTimestamp;
34334
34293
  if (o.oneofs)
34335
34294
  d._chatDbMigrationTimestamp = "chatDbMigrationTimestamp";
34336
34295
  }
@@ -34620,7 +34579,7 @@ export const proto = $root.proto = (() => {
34620
34579
  if (typeof m.limitSharingSettingTimestamp === "number")
34621
34580
  d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
34622
34581
  else
34623
- d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
34582
+ d.limitSharingSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.limitSharingSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.limitSharingSettingTimestamp.low >>> 0, m.limitSharingSettingTimestamp.high >>> 0).toNumber() : m.limitSharingSettingTimestamp;
34624
34583
  if (o.oneofs)
34625
34584
  d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
34626
34585
  }
@@ -35125,7 +35084,7 @@ export const proto = $root.proto = (() => {
35125
35084
  if (typeof m.fileLength === "number")
35126
35085
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
35127
35086
  else
35128
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
35087
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
35129
35088
  if (o.oneofs)
35130
35089
  d._fileLength = "fileLength";
35131
35090
  }
@@ -35436,7 +35395,7 @@ export const proto = $root.proto = (() => {
35436
35395
  if (typeof m.labelTimestamp === "number")
35437
35396
  d.labelTimestamp = o.longs === String ? String(m.labelTimestamp) : m.labelTimestamp;
35438
35397
  else
35439
- d.labelTimestamp = o.longs === String ? longToString(m.labelTimestamp) : o.longs === Number ? longToNumber(m.labelTimestamp) : m.labelTimestamp;
35398
+ d.labelTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.labelTimestamp) : o.longs === Number ? new $util.LongBits(m.labelTimestamp.low >>> 0, m.labelTimestamp.high >>> 0).toNumber() : m.labelTimestamp;
35440
35399
  if (o.oneofs)
35441
35400
  d._labelTimestamp = "labelTimestamp";
35442
35401
  }
@@ -37942,7 +37901,7 @@ export const proto = $root.proto = (() => {
37942
37901
  if (typeof m.timestamp === "number")
37943
37902
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
37944
37903
  else
37945
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
37904
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
37946
37905
  if (o.oneofs)
37947
37906
  d._timestamp = "timestamp";
37948
37907
  }
@@ -38200,7 +38159,7 @@ export const proto = $root.proto = (() => {
38200
38159
  if (typeof m.timestamp === "number")
38201
38160
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
38202
38161
  else
38203
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
38162
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
38204
38163
  if (o.oneofs)
38205
38164
  d._timestamp = "timestamp";
38206
38165
  }
@@ -39046,7 +39005,7 @@ export const proto = $root.proto = (() => {
39046
39005
  if (typeof m.fileLength === "number")
39047
39006
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
39048
39007
  else
39049
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
39008
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
39050
39009
  if (o.oneofs)
39051
39010
  d._fileLength = "fileLength";
39052
39011
  }
@@ -39079,7 +39038,7 @@ export const proto = $root.proto = (() => {
39079
39038
  if (typeof m.mediaKeyTimestamp === "number")
39080
39039
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
39081
39040
  else
39082
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
39041
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
39083
39042
  if (o.oneofs)
39084
39043
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
39085
39044
  }
@@ -40661,7 +40620,7 @@ export const proto = $root.proto = (() => {
40661
40620
  if (typeof m.durationSecs === "number")
40662
40621
  d.durationSecs = o.longs === String ? String(m.durationSecs) : m.durationSecs;
40663
40622
  else
40664
- d.durationSecs = o.longs === String ? longToString(m.durationSecs) : o.longs === Number ? longToNumber(m.durationSecs) : m.durationSecs;
40623
+ d.durationSecs = o.longs === String ? $util.Long.prototype.toString.call(m.durationSecs) : o.longs === Number ? new $util.LongBits(m.durationSecs.low >>> 0, m.durationSecs.high >>> 0).toNumber() : m.durationSecs;
40665
40624
  if (o.oneofs)
40666
40625
  d._durationSecs = "durationSecs";
40667
40626
  }
@@ -41240,7 +41199,7 @@ export const proto = $root.proto = (() => {
41240
41199
  if (typeof m.senderNotificationTimestampMs === "number")
41241
41200
  d.senderNotificationTimestampMs = o.longs === String ? String(m.senderNotificationTimestampMs) : m.senderNotificationTimestampMs;
41242
41201
  else
41243
- d.senderNotificationTimestampMs = o.longs === String ? longToString(m.senderNotificationTimestampMs) : o.longs === Number ? longToNumber(m.senderNotificationTimestampMs) : m.senderNotificationTimestampMs;
41202
+ d.senderNotificationTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderNotificationTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderNotificationTimestampMs.low >>> 0, m.senderNotificationTimestampMs.high >>> 0).toNumber() : m.senderNotificationTimestampMs;
41244
41203
  if (o.oneofs)
41245
41204
  d._senderNotificationTimestampMs = "senderNotificationTimestampMs";
41246
41205
  }
@@ -42492,7 +42451,7 @@ export const proto = $root.proto = (() => {
42492
42451
  if (typeof m.fileLength === "number")
42493
42452
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
42494
42453
  else
42495
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
42454
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
42496
42455
  if (o.oneofs)
42497
42456
  d._fileLength = "fileLength";
42498
42457
  }
@@ -42525,7 +42484,7 @@ export const proto = $root.proto = (() => {
42525
42484
  if (typeof m.mediaKeyTimestamp === "number")
42526
42485
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
42527
42486
  else
42528
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
42487
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
42529
42488
  if (o.oneofs)
42530
42489
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
42531
42490
  }
@@ -43316,7 +43275,7 @@ export const proto = $root.proto = (() => {
43316
43275
  if (typeof m.startTime === "number")
43317
43276
  d.startTime = o.longs === String ? String(m.startTime) : m.startTime;
43318
43277
  else
43319
- d.startTime = o.longs === String ? longToString(m.startTime) : o.longs === Number ? longToNumber(m.startTime) : m.startTime;
43278
+ d.startTime = o.longs === String ? $util.Long.prototype.toString.call(m.startTime) : o.longs === Number ? new $util.LongBits(m.startTime.low >>> 0, m.startTime.high >>> 0).toNumber() : m.startTime;
43320
43279
  if (o.oneofs)
43321
43280
  d._startTime = "startTime";
43322
43281
  }
@@ -43324,7 +43283,7 @@ export const proto = $root.proto = (() => {
43324
43283
  if (typeof m.endTime === "number")
43325
43284
  d.endTime = o.longs === String ? String(m.endTime) : m.endTime;
43326
43285
  else
43327
- d.endTime = o.longs === String ? longToString(m.endTime) : o.longs === Number ? longToNumber(m.endTime) : m.endTime;
43286
+ d.endTime = o.longs === String ? $util.Long.prototype.toString.call(m.endTime) : o.longs === Number ? new $util.LongBits(m.endTime.low >>> 0, m.endTime.high >>> 0).toNumber() : m.endTime;
43328
43287
  if (o.oneofs)
43329
43288
  d._endTime = "endTime";
43330
43289
  }
@@ -43347,7 +43306,7 @@ export const proto = $root.proto = (() => {
43347
43306
  if (typeof m.reminderOffsetSec === "number")
43348
43307
  d.reminderOffsetSec = o.longs === String ? String(m.reminderOffsetSec) : m.reminderOffsetSec;
43349
43308
  else
43350
- d.reminderOffsetSec = o.longs === String ? longToString(m.reminderOffsetSec) : o.longs === Number ? longToNumber(m.reminderOffsetSec) : m.reminderOffsetSec;
43309
+ d.reminderOffsetSec = o.longs === String ? $util.Long.prototype.toString.call(m.reminderOffsetSec) : o.longs === Number ? new $util.LongBits(m.reminderOffsetSec.low >>> 0, m.reminderOffsetSec.high >>> 0).toNumber() : m.reminderOffsetSec;
43351
43310
  if (o.oneofs)
43352
43311
  d._reminderOffsetSec = "reminderOffsetSec";
43353
43312
  }
@@ -43503,7 +43462,7 @@ export const proto = $root.proto = (() => {
43503
43462
  if (typeof m.timestampMs === "number")
43504
43463
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
43505
43464
  else
43506
- d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
43465
+ d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
43507
43466
  if (o.oneofs)
43508
43467
  d._timestampMs = "timestampMs";
43509
43468
  }
@@ -44330,7 +44289,7 @@ export const proto = $root.proto = (() => {
44330
44289
  if (typeof m.mediaKeyTimestamp === "number")
44331
44290
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
44332
44291
  else
44333
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
44292
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
44334
44293
  if (o.oneofs)
44335
44294
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
44336
44295
  }
@@ -44860,7 +44819,7 @@ export const proto = $root.proto = (() => {
44860
44819
  if (typeof m.inviteExpiration === "number")
44861
44820
  d.inviteExpiration = o.longs === String ? String(m.inviteExpiration) : m.inviteExpiration;
44862
44821
  else
44863
- d.inviteExpiration = o.longs === String ? longToString(m.inviteExpiration) : o.longs === Number ? longToNumber(m.inviteExpiration) : m.inviteExpiration;
44822
+ d.inviteExpiration = o.longs === String ? $util.Long.prototype.toString.call(m.inviteExpiration) : o.longs === Number ? new $util.LongBits(m.inviteExpiration.low >>> 0, m.inviteExpiration.high >>> 0).toNumber() : m.inviteExpiration;
44864
44823
  if (o.oneofs)
44865
44824
  d._inviteExpiration = "inviteExpiration";
44866
44825
  }
@@ -45406,7 +45365,7 @@ export const proto = $root.proto = (() => {
45406
45365
  if (typeof m.amount1000 === "number")
45407
45366
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
45408
45367
  else
45409
- d.amount1000 = o.longs === String ? longToString(m.amount1000) : o.longs === Number ? longToNumber(m.amount1000) : m.amount1000;
45368
+ d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber() : m.amount1000;
45410
45369
  if (o.oneofs)
45411
45370
  d._amount1000 = "amount1000";
45412
45371
  }
@@ -45886,7 +45845,7 @@ export const proto = $root.proto = (() => {
45886
45845
  if (typeof m.timestamp === "number")
45887
45846
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
45888
45847
  else
45889
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
45848
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
45890
45849
  if (o.oneofs)
45891
45850
  d._timestamp = "timestamp";
45892
45851
  }
@@ -46374,7 +46333,7 @@ export const proto = $root.proto = (() => {
46374
46333
  if (typeof m.fileLength === "number")
46375
46334
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
46376
46335
  else
46377
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
46336
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
46378
46337
  if (o.oneofs)
46379
46338
  d._fileLength = "fileLength";
46380
46339
  }
@@ -46417,7 +46376,7 @@ export const proto = $root.proto = (() => {
46417
46376
  if (typeof m.oldestMsgInChunkTimestampSec === "number")
46418
46377
  d.oldestMsgInChunkTimestampSec = o.longs === String ? String(m.oldestMsgInChunkTimestampSec) : m.oldestMsgInChunkTimestampSec;
46419
46378
  else
46420
- d.oldestMsgInChunkTimestampSec = o.longs === String ? longToString(m.oldestMsgInChunkTimestampSec) : o.longs === Number ? longToNumber(m.oldestMsgInChunkTimestampSec) : m.oldestMsgInChunkTimestampSec;
46379
+ d.oldestMsgInChunkTimestampSec = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMsgInChunkTimestampSec) : o.longs === Number ? new $util.LongBits(m.oldestMsgInChunkTimestampSec.low >>> 0, m.oldestMsgInChunkTimestampSec.high >>> 0).toNumber() : m.oldestMsgInChunkTimestampSec;
46421
46380
  if (o.oneofs)
46422
46381
  d._oldestMsgInChunkTimestampSec = "oldestMsgInChunkTimestampSec";
46423
46382
  }
@@ -47167,7 +47126,7 @@ export const proto = $root.proto = (() => {
47167
47126
  if (typeof m.fileLength === "number")
47168
47127
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
47169
47128
  else
47170
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
47129
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
47171
47130
  if (o.oneofs)
47172
47131
  d._fileLength = "fileLength";
47173
47132
  }
@@ -47206,7 +47165,7 @@ export const proto = $root.proto = (() => {
47206
47165
  if (typeof m.mediaKeyTimestamp === "number")
47207
47166
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
47208
47167
  else
47209
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
47168
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
47210
47169
  if (o.oneofs)
47211
47170
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
47212
47171
  }
@@ -49502,7 +49461,7 @@ export const proto = $root.proto = (() => {
49502
49461
  if (typeof m.attachmentMediaKeyTimestamp === "number")
49503
49462
  d.attachmentMediaKeyTimestamp = o.longs === String ? String(m.attachmentMediaKeyTimestamp) : m.attachmentMediaKeyTimestamp;
49504
49463
  else
49505
- d.attachmentMediaKeyTimestamp = o.longs === String ? longToString(m.attachmentMediaKeyTimestamp) : o.longs === Number ? longToNumber(m.attachmentMediaKeyTimestamp) : m.attachmentMediaKeyTimestamp;
49464
+ d.attachmentMediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.attachmentMediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.attachmentMediaKeyTimestamp.low >>> 0, m.attachmentMediaKeyTimestamp.high >>> 0).toNumber() : m.attachmentMediaKeyTimestamp;
49506
49465
  if (o.oneofs)
49507
49466
  d._attachmentMediaKeyTimestamp = "attachmentMediaKeyTimestamp";
49508
49467
  }
@@ -49688,7 +49647,7 @@ export const proto = $root.proto = (() => {
49688
49647
  if (typeof m.timestampMs === "number")
49689
49648
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
49690
49649
  else
49691
- d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
49650
+ d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
49692
49651
  if (o.oneofs)
49693
49652
  d._timestampMs = "timestampMs";
49694
49653
  }
@@ -51535,7 +51494,7 @@ export const proto = $root.proto = (() => {
51535
51494
  if (typeof m.sequenceNumber === "number")
51536
51495
  d.sequenceNumber = o.longs === String ? String(m.sequenceNumber) : m.sequenceNumber;
51537
51496
  else
51538
- d.sequenceNumber = o.longs === String ? longToString(m.sequenceNumber) : o.longs === Number ? longToNumber(m.sequenceNumber) : m.sequenceNumber;
51497
+ d.sequenceNumber = o.longs === String ? $util.Long.prototype.toString.call(m.sequenceNumber) : o.longs === Number ? new $util.LongBits(m.sequenceNumber.low >>> 0, m.sequenceNumber.high >>> 0).toNumber() : m.sequenceNumber;
51539
51498
  if (o.oneofs)
51540
51499
  d._sequenceNumber = "sequenceNumber";
51541
51500
  }
@@ -52138,7 +52097,7 @@ export const proto = $root.proto = (() => {
52138
52097
  if (typeof m.mediaKeyTimestamp === "number")
52139
52098
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52140
52099
  else
52141
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52100
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
52142
52101
  if (o.oneofs)
52143
52102
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
52144
52103
  }
@@ -52411,7 +52370,7 @@ export const proto = $root.proto = (() => {
52411
52370
  if (typeof m.mediaKeyTimestamp === "number")
52412
52371
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52413
52372
  else
52414
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
52373
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
52415
52374
  if (o.oneofs)
52416
52375
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
52417
52376
  }
@@ -52571,7 +52530,7 @@ export const proto = $root.proto = (() => {
52571
52530
  if (typeof m.oldestMessageTimestamp === "number")
52572
52531
  d.oldestMessageTimestamp = o.longs === String ? String(m.oldestMessageTimestamp) : m.oldestMessageTimestamp;
52573
52532
  else
52574
- d.oldestMessageTimestamp = o.longs === String ? longToString(m.oldestMessageTimestamp) : o.longs === Number ? longToNumber(m.oldestMessageTimestamp) : m.oldestMessageTimestamp;
52533
+ d.oldestMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.oldestMessageTimestamp.low >>> 0, m.oldestMessageTimestamp.high >>> 0).toNumber() : m.oldestMessageTimestamp;
52575
52534
  if (o.oneofs)
52576
52535
  d._oldestMessageTimestamp = "oldestMessageTimestamp";
52577
52536
  }
@@ -52579,7 +52538,7 @@ export const proto = $root.proto = (() => {
52579
52538
  if (typeof m.messageCount === "number")
52580
52539
  d.messageCount = o.longs === String ? String(m.messageCount) : m.messageCount;
52581
52540
  else
52582
- d.messageCount = o.longs === String ? longToString(m.messageCount) : o.longs === Number ? longToNumber(m.messageCount) : m.messageCount;
52541
+ d.messageCount = o.longs === String ? $util.Long.prototype.toString.call(m.messageCount) : o.longs === Number ? new $util.LongBits(m.messageCount.low >>> 0, m.messageCount.high >>> 0).toNumber() : m.messageCount;
52583
52542
  if (o.oneofs)
52584
52543
  d._messageCount = "messageCount";
52585
52544
  }
@@ -52895,7 +52854,7 @@ export const proto = $root.proto = (() => {
52895
52854
  if (typeof m.inviteExpiration === "number")
52896
52855
  d.inviteExpiration = o.longs === String ? String(m.inviteExpiration) : m.inviteExpiration;
52897
52856
  else
52898
- d.inviteExpiration = o.longs === String ? longToString(m.inviteExpiration) : o.longs === Number ? longToNumber(m.inviteExpiration) : m.inviteExpiration;
52857
+ d.inviteExpiration = o.longs === String ? $util.Long.prototype.toString.call(m.inviteExpiration) : o.longs === Number ? new $util.LongBits(m.inviteExpiration.low >>> 0, m.inviteExpiration.high >>> 0).toNumber() : m.inviteExpiration;
52899
52858
  if (o.oneofs)
52900
52859
  d._inviteExpiration = "inviteExpiration";
52901
52860
  }
@@ -53477,7 +53436,7 @@ export const proto = $root.proto = (() => {
53477
53436
  if (typeof m.totalAmount1000 === "number")
53478
53437
  d.totalAmount1000 = o.longs === String ? String(m.totalAmount1000) : m.totalAmount1000;
53479
53438
  else
53480
- d.totalAmount1000 = o.longs === String ? longToString(m.totalAmount1000) : o.longs === Number ? longToNumber(m.totalAmount1000) : m.totalAmount1000;
53439
+ d.totalAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.totalAmount1000) : o.longs === Number ? new $util.LongBits(m.totalAmount1000.low >>> 0, m.totalAmount1000.high >>> 0).toNumber() : m.totalAmount1000;
53481
53440
  if (o.oneofs)
53482
53441
  d._totalAmount1000 = "totalAmount1000";
53483
53442
  }
@@ -53786,7 +53745,7 @@ export const proto = $root.proto = (() => {
53786
53745
  if (typeof m.expiryTimestamp === "number")
53787
53746
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
53788
53747
  else
53789
- d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp) : o.longs === Number ? longToNumber(m.expiryTimestamp) : m.expiryTimestamp;
53748
+ d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber() : m.expiryTimestamp;
53790
53749
  if (o.oneofs)
53791
53750
  d._expiryTimestamp = "expiryTimestamp";
53792
53751
  }
@@ -55205,7 +55164,7 @@ export const proto = $root.proto = (() => {
55205
55164
  if (typeof m.oldestMsgTimestampMs === "number")
55206
55165
  d.oldestMsgTimestampMs = o.longs === String ? String(m.oldestMsgTimestampMs) : m.oldestMsgTimestampMs;
55207
55166
  else
55208
- d.oldestMsgTimestampMs = o.longs === String ? longToString(m.oldestMsgTimestampMs) : o.longs === Number ? longToNumber(m.oldestMsgTimestampMs) : m.oldestMsgTimestampMs;
55167
+ d.oldestMsgTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.oldestMsgTimestampMs) : o.longs === Number ? new $util.LongBits(m.oldestMsgTimestampMs.low >>> 0, m.oldestMsgTimestampMs.high >>> 0).toNumber() : m.oldestMsgTimestampMs;
55209
55168
  if (o.oneofs)
55210
55169
  d._oldestMsgTimestampMs = "oldestMsgTimestampMs";
55211
55170
  }
@@ -55616,7 +55575,7 @@ export const proto = $root.proto = (() => {
55616
55575
  if (typeof m.timestamp === "number")
55617
55576
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
55618
55577
  else
55619
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
55578
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
55620
55579
  if (o.oneofs)
55621
55580
  d._timestamp = "timestamp";
55622
55581
  }
@@ -57205,7 +57164,7 @@ export const proto = $root.proto = (() => {
57205
57164
  if (typeof m.mediaKeyTimestampMs === "number")
57206
57165
  d.mediaKeyTimestampMs = o.longs === String ? String(m.mediaKeyTimestampMs) : m.mediaKeyTimestampMs;
57207
57166
  else
57208
- d.mediaKeyTimestampMs = o.longs === String ? longToString(m.mediaKeyTimestampMs) : o.longs === Number ? longToNumber(m.mediaKeyTimestampMs) : m.mediaKeyTimestampMs;
57167
+ d.mediaKeyTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestampMs) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestampMs.low >>> 0, m.mediaKeyTimestampMs.high >>> 0).toNumber() : m.mediaKeyTimestampMs;
57209
57168
  if (o.oneofs)
57210
57169
  d._mediaKeyTimestampMs = "mediaKeyTimestampMs";
57211
57170
  }
@@ -57821,7 +57780,7 @@ export const proto = $root.proto = (() => {
57821
57780
  if (typeof m.senderTimestampMs === "number")
57822
57781
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
57823
57782
  else
57824
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
57783
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
57825
57784
  if (o.oneofs)
57826
57785
  d._senderTimestampMs = "senderTimestampMs";
57827
57786
  }
@@ -58738,7 +58697,7 @@ export const proto = $root.proto = (() => {
58738
58697
  if (typeof m.optionVoteCount === "number")
58739
58698
  d.optionVoteCount = o.longs === String ? String(m.optionVoteCount) : m.optionVoteCount;
58740
58699
  else
58741
- d.optionVoteCount = o.longs === String ? longToString(m.optionVoteCount) : o.longs === Number ? longToNumber(m.optionVoteCount) : m.optionVoteCount;
58700
+ d.optionVoteCount = o.longs === String ? $util.Long.prototype.toString.call(m.optionVoteCount) : o.longs === Number ? new $util.LongBits(m.optionVoteCount.low >>> 0, m.optionVoteCount.high >>> 0).toNumber() : m.optionVoteCount;
58742
58701
  if (o.oneofs)
58743
58702
  d._optionVoteCount = "optionVoteCount";
58744
58703
  }
@@ -58915,7 +58874,7 @@ export const proto = $root.proto = (() => {
58915
58874
  if (typeof m.senderTimestampMs === "number")
58916
58875
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
58917
58876
  else
58918
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
58877
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
58919
58878
  if (o.oneofs)
58920
58879
  d._senderTimestampMs = "senderTimestampMs";
58921
58880
  }
@@ -59708,7 +59667,7 @@ export const proto = $root.proto = (() => {
59708
59667
  if (typeof m.priceAmount1000 === "number")
59709
59668
  d.priceAmount1000 = o.longs === String ? String(m.priceAmount1000) : m.priceAmount1000;
59710
59669
  else
59711
- d.priceAmount1000 = o.longs === String ? longToString(m.priceAmount1000) : o.longs === Number ? longToNumber(m.priceAmount1000) : m.priceAmount1000;
59670
+ d.priceAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.priceAmount1000) : o.longs === Number ? new $util.LongBits(m.priceAmount1000.low >>> 0, m.priceAmount1000.high >>> 0).toNumber() : m.priceAmount1000;
59712
59671
  if (o.oneofs)
59713
59672
  d._priceAmount1000 = "priceAmount1000";
59714
59673
  }
@@ -59736,7 +59695,7 @@ export const proto = $root.proto = (() => {
59736
59695
  if (typeof m.salePriceAmount1000 === "number")
59737
59696
  d.salePriceAmount1000 = o.longs === String ? String(m.salePriceAmount1000) : m.salePriceAmount1000;
59738
59697
  else
59739
- d.salePriceAmount1000 = o.longs === String ? longToString(m.salePriceAmount1000) : o.longs === Number ? longToNumber(m.salePriceAmount1000) : m.salePriceAmount1000;
59698
+ d.salePriceAmount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.salePriceAmount1000) : o.longs === Number ? new $util.LongBits(m.salePriceAmount1000.low >>> 0, m.salePriceAmount1000.high >>> 0).toNumber() : m.salePriceAmount1000;
59740
59699
  if (o.oneofs)
59741
59700
  d._salePriceAmount1000 = "salePriceAmount1000";
59742
59701
  }
@@ -60380,7 +60339,7 @@ export const proto = $root.proto = (() => {
60380
60339
  if (typeof m.ephemeralSettingTimestamp === "number")
60381
60340
  d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
60382
60341
  else
60383
- d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
60342
+ d.ephemeralSettingTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralSettingTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralSettingTimestamp.low >>> 0, m.ephemeralSettingTimestamp.high >>> 0).toNumber() : m.ephemeralSettingTimestamp;
60384
60343
  if (o.oneofs)
60385
60344
  d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
60386
60345
  }
@@ -60423,7 +60382,7 @@ export const proto = $root.proto = (() => {
60423
60382
  if (typeof m.timestampMs === "number")
60424
60383
  d.timestampMs = o.longs === String ? String(m.timestampMs) : m.timestampMs;
60425
60384
  else
60426
- d.timestampMs = o.longs === String ? longToString(m.timestampMs) : o.longs === Number ? longToNumber(m.timestampMs) : m.timestampMs;
60385
+ d.timestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.timestampMs) : o.longs === Number ? new $util.LongBits(m.timestampMs.low >>> 0, m.timestampMs.high >>> 0).toNumber() : m.timestampMs;
60427
60386
  if (o.oneofs)
60428
60387
  d._timestampMs = "timestampMs";
60429
60388
  }
@@ -60788,7 +60747,7 @@ export const proto = $root.proto = (() => {
60788
60747
  if (typeof m.senderTimestampMs === "number")
60789
60748
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
60790
60749
  else
60791
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
60750
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
60792
60751
  if (o.oneofs)
60793
60752
  d._senderTimestampMs = "senderTimestampMs";
60794
60753
  }
@@ -61000,7 +60959,7 @@ export const proto = $root.proto = (() => {
61000
60959
  if (typeof m.amount1000 === "number")
61001
60960
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
61002
60961
  else
61003
- d.amount1000 = o.longs === String ? longToString(m.amount1000, true) : o.longs === Number ? longToNumber(m.amount1000, true) : m.amount1000;
60962
+ d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber(true) : m.amount1000;
61004
60963
  if (o.oneofs)
61005
60964
  d._amount1000 = "amount1000";
61006
60965
  }
@@ -61018,7 +60977,7 @@ export const proto = $root.proto = (() => {
61018
60977
  if (typeof m.expiryTimestamp === "number")
61019
60978
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
61020
60979
  else
61021
- d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp) : o.longs === Number ? longToNumber(m.expiryTimestamp) : m.expiryTimestamp;
60980
+ d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber() : m.expiryTimestamp;
61022
60981
  if (o.oneofs)
61023
60982
  d._expiryTimestamp = "expiryTimestamp";
61024
60983
  }
@@ -61373,7 +61332,7 @@ export const proto = $root.proto = (() => {
61373
61332
  if (typeof m.scheduledTimestampMs === "number")
61374
61333
  d.scheduledTimestampMs = o.longs === String ? String(m.scheduledTimestampMs) : m.scheduledTimestampMs;
61375
61334
  else
61376
- d.scheduledTimestampMs = o.longs === String ? longToString(m.scheduledTimestampMs) : o.longs === Number ? longToNumber(m.scheduledTimestampMs) : m.scheduledTimestampMs;
61335
+ d.scheduledTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.scheduledTimestampMs) : o.longs === Number ? new $util.LongBits(m.scheduledTimestampMs.low >>> 0, m.scheduledTimestampMs.high >>> 0).toNumber() : m.scheduledTimestampMs;
61377
61336
  if (o.oneofs)
61378
61337
  d._scheduledTimestampMs = "scheduledTimestampMs";
61379
61338
  }
@@ -63087,7 +63046,7 @@ export const proto = $root.proto = (() => {
63087
63046
  if (typeof m.fileLength === "number")
63088
63047
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
63089
63048
  else
63090
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
63049
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
63091
63050
  if (o.oneofs)
63092
63051
  d._fileLength = "fileLength";
63093
63052
  }
@@ -63095,7 +63054,7 @@ export const proto = $root.proto = (() => {
63095
63054
  if (typeof m.mediaKeyTimestamp === "number")
63096
63055
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63097
63056
  else
63098
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63057
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
63099
63058
  if (o.oneofs)
63100
63059
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
63101
63060
  }
@@ -63128,7 +63087,7 @@ export const proto = $root.proto = (() => {
63128
63087
  if (typeof m.stickerSentTs === "number")
63129
63088
  d.stickerSentTs = o.longs === String ? String(m.stickerSentTs) : m.stickerSentTs;
63130
63089
  else
63131
- d.stickerSentTs = o.longs === String ? longToString(m.stickerSentTs) : o.longs === Number ? longToNumber(m.stickerSentTs) : m.stickerSentTs;
63090
+ d.stickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.stickerSentTs) : o.longs === Number ? new $util.LongBits(m.stickerSentTs.low >>> 0, m.stickerSentTs.high >>> 0).toNumber() : m.stickerSentTs;
63132
63091
  if (o.oneofs)
63133
63092
  d._stickerSentTs = "stickerSentTs";
63134
63093
  }
@@ -63665,7 +63624,7 @@ export const proto = $root.proto = (() => {
63665
63624
  if (typeof m.fileLength === "number")
63666
63625
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
63667
63626
  else
63668
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
63627
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
63669
63628
  if (o.oneofs)
63670
63629
  d._fileLength = "fileLength";
63671
63630
  }
@@ -63708,7 +63667,7 @@ export const proto = $root.proto = (() => {
63708
63667
  if (typeof m.mediaKeyTimestamp === "number")
63709
63668
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63710
63669
  else
63711
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
63670
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
63712
63671
  if (o.oneofs)
63713
63672
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
63714
63673
  }
@@ -63751,7 +63710,7 @@ export const proto = $root.proto = (() => {
63751
63710
  if (typeof m.stickerPackSize === "number")
63752
63711
  d.stickerPackSize = o.longs === String ? String(m.stickerPackSize) : m.stickerPackSize;
63753
63712
  else
63754
- d.stickerPackSize = o.longs === String ? longToString(m.stickerPackSize, true) : o.longs === Number ? longToNumber(m.stickerPackSize, true) : m.stickerPackSize;
63713
+ d.stickerPackSize = o.longs === String ? $util.Long.prototype.toString.call(m.stickerPackSize) : o.longs === Number ? new $util.LongBits(m.stickerPackSize.low >>> 0, m.stickerPackSize.high >>> 0).toNumber(true) : m.stickerPackSize;
63755
63714
  if (o.oneofs)
63756
63715
  d._stickerPackSize = "stickerPackSize";
63757
63716
  }
@@ -64113,7 +64072,7 @@ export const proto = $root.proto = (() => {
64113
64072
  if (typeof m.requestTimestamp === "number")
64114
64073
  d.requestTimestamp = o.longs === String ? String(m.requestTimestamp) : m.requestTimestamp;
64115
64074
  else
64116
- d.requestTimestamp = o.longs === String ? longToString(m.requestTimestamp) : o.longs === Number ? longToNumber(m.requestTimestamp) : m.requestTimestamp;
64075
+ d.requestTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.requestTimestamp) : o.longs === Number ? new $util.LongBits(m.requestTimestamp.low >>> 0, m.requestTimestamp.high >>> 0).toNumber() : m.requestTimestamp;
64117
64076
  if (o.oneofs)
64118
64077
  d._requestTimestamp = "requestTimestamp";
64119
64078
  }
@@ -65904,7 +65863,7 @@ export const proto = $root.proto = (() => {
65904
65863
  if (typeof m.fileLength === "number")
65905
65864
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
65906
65865
  else
65907
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
65866
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
65908
65867
  if (o.oneofs)
65909
65868
  d._fileLength = "fileLength";
65910
65869
  }
@@ -65958,7 +65917,7 @@ export const proto = $root.proto = (() => {
65958
65917
  if (typeof m.mediaKeyTimestamp === "number")
65959
65918
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
65960
65919
  else
65961
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
65920
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
65962
65921
  if (o.oneofs)
65963
65922
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
65964
65923
  }
@@ -66033,7 +65992,7 @@ export const proto = $root.proto = (() => {
66033
65992
  if (typeof m.motionPhotoPresentationOffsetMs === "number")
66034
65993
  d.motionPhotoPresentationOffsetMs = o.longs === String ? String(m.motionPhotoPresentationOffsetMs) : m.motionPhotoPresentationOffsetMs;
66035
65994
  else
66036
- d.motionPhotoPresentationOffsetMs = o.longs === String ? longToString(m.motionPhotoPresentationOffsetMs, true) : o.longs === Number ? longToNumber(m.motionPhotoPresentationOffsetMs, true) : m.motionPhotoPresentationOffsetMs;
65995
+ d.motionPhotoPresentationOffsetMs = o.longs === String ? $util.Long.prototype.toString.call(m.motionPhotoPresentationOffsetMs) : o.longs === Number ? new $util.LongBits(m.motionPhotoPresentationOffsetMs.low >>> 0, m.motionPhotoPresentationOffsetMs.high >>> 0).toNumber(true) : m.motionPhotoPresentationOffsetMs;
66037
65996
  if (o.oneofs)
66038
65997
  d._motionPhotoPresentationOffsetMs = "motionPhotoPresentationOffsetMs";
66039
65998
  }
@@ -66356,7 +66315,7 @@ export const proto = $root.proto = (() => {
66356
66315
  if (typeof m.senderTimestampMs === "number")
66357
66316
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
66358
66317
  else
66359
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
66318
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
66360
66319
  if (o.oneofs)
66361
66320
  d._senderTimestampMs = "senderTimestampMs";
66362
66321
  }
@@ -66364,7 +66323,7 @@ export const proto = $root.proto = (() => {
66364
66323
  if (typeof m.serverTimestampMs === "number")
66365
66324
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
66366
66325
  else
66367
- d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
66326
+ d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
66368
66327
  if (o.oneofs)
66369
66328
  d._serverTimestampMs = "serverTimestampMs";
66370
66329
  }
@@ -67640,7 +67599,7 @@ export const proto = $root.proto = (() => {
67640
67599
  if (typeof m.value === "number")
67641
67600
  d.value = o.longs === String ? String(m.value) : m.value;
67642
67601
  else
67643
- d.value = o.longs === String ? longToString(m.value) : o.longs === Number ? longToNumber(m.value) : m.value;
67602
+ d.value = o.longs === String ? $util.Long.prototype.toString.call(m.value) : o.longs === Number ? new $util.LongBits(m.value.low >>> 0, m.value.high >>> 0).toNumber() : m.value;
67644
67603
  if (o.oneofs)
67645
67604
  d._value = "value";
67646
67605
  }
@@ -68589,7 +68548,7 @@ export const proto = $root.proto = (() => {
68589
68548
  if (typeof m.senderTimestampMs === "number")
68590
68549
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
68591
68550
  else
68592
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
68551
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
68593
68552
  if (o.oneofs)
68594
68553
  d._senderTimestampMs = "senderTimestampMs";
68595
68554
  }
@@ -68667,7 +68626,7 @@ export const proto = $root.proto = (() => {
68667
68626
  if (typeof m.eventStartTime === "number")
68668
68627
  d.eventStartTime = o.longs === String ? String(m.eventStartTime) : m.eventStartTime;
68669
68628
  else
68670
- d.eventStartTime = o.longs === String ? longToString(m.eventStartTime) : o.longs === Number ? longToNumber(m.eventStartTime) : m.eventStartTime;
68629
+ d.eventStartTime = o.longs === String ? $util.Long.prototype.toString.call(m.eventStartTime) : o.longs === Number ? new $util.LongBits(m.eventStartTime.low >>> 0, m.eventStartTime.high >>> 0).toNumber() : m.eventStartTime;
68671
68630
  if (o.oneofs)
68672
68631
  d._eventStartTime = "eventStartTime";
68673
68632
  }
@@ -68680,7 +68639,7 @@ export const proto = $root.proto = (() => {
68680
68639
  if (typeof m.eventEndTime === "number")
68681
68640
  d.eventEndTime = o.longs === String ? String(m.eventEndTime) : m.eventEndTime;
68682
68641
  else
68683
- d.eventEndTime = o.longs === String ? longToString(m.eventEndTime) : o.longs === Number ? longToNumber(m.eventEndTime) : m.eventEndTime;
68642
+ d.eventEndTime = o.longs === String ? $util.Long.prototype.toString.call(m.eventEndTime) : o.longs === Number ? new $util.LongBits(m.eventEndTime.low >>> 0, m.eventEndTime.high >>> 0).toNumber() : m.eventEndTime;
68684
68643
  if (o.oneofs)
68685
68644
  d._eventEndTime = "eventEndTime";
68686
68645
  }
@@ -69725,7 +69684,7 @@ export const proto = $root.proto = (() => {
69725
69684
  if (typeof m.expires === "number")
69726
69685
  d.expires = o.longs === String ? String(m.expires) : m.expires;
69727
69686
  else
69728
- d.expires = o.longs === String ? longToString(m.expires, true) : o.longs === Number ? longToNumber(m.expires, true) : m.expires;
69687
+ d.expires = o.longs === String ? $util.Long.prototype.toString.call(m.expires) : o.longs === Number ? new $util.LongBits(m.expires.low >>> 0, m.expires.high >>> 0).toNumber(true) : m.expires;
69729
69688
  if (o.oneofs)
69730
69689
  d._expires = "expires";
69731
69690
  }
@@ -69898,7 +69857,7 @@ export const proto = $root.proto = (() => {
69898
69857
  if (typeof m.messageTimestamp === "number")
69899
69858
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
69900
69859
  else
69901
- d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp, true) : o.longs === Number ? longToNumber(m.messageTimestamp, true) : m.messageTimestamp;
69860
+ d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber(true) : m.messageTimestamp;
69902
69861
  if (o.oneofs)
69903
69862
  d._messageTimestamp = "messageTimestamp";
69904
69863
  }
@@ -70388,7 +70347,7 @@ export const proto = $root.proto = (() => {
70388
70347
  if (typeof m.leaveTs === "number")
70389
70348
  d.leaveTs = o.longs === String ? String(m.leaveTs) : m.leaveTs;
70390
70349
  else
70391
- d.leaveTs = o.longs === String ? longToString(m.leaveTs, true) : o.longs === Number ? longToNumber(m.leaveTs, true) : m.leaveTs;
70350
+ d.leaveTs = o.longs === String ? $util.Long.prototype.toString.call(m.leaveTs) : o.longs === Number ? new $util.LongBits(m.leaveTs.low >>> 0, m.leaveTs.high >>> 0).toNumber(true) : m.leaveTs;
70392
70351
  if (o.oneofs)
70393
70352
  d._leaveTs = "leaveTs";
70394
70353
  }
@@ -71162,7 +71121,7 @@ export const proto = $root.proto = (() => {
71162
71121
  if (typeof m.fileLength === "number")
71163
71122
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
71164
71123
  else
71165
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
71124
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
71166
71125
  if (o.oneofs)
71167
71126
  d._fileLength = "fileLength";
71168
71127
  }
@@ -71375,7 +71334,7 @@ export const proto = $root.proto = (() => {
71375
71334
  if (typeof m.mediaKeyTimestamp === "number")
71376
71335
  d.mediaKeyTimestamp = o.longs === String ? String(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
71377
71336
  else
71378
- d.mediaKeyTimestamp = o.longs === String ? longToString(m.mediaKeyTimestamp) : o.longs === Number ? longToNumber(m.mediaKeyTimestamp) : m.mediaKeyTimestamp;
71337
+ d.mediaKeyTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.mediaKeyTimestamp) : o.longs === Number ? new $util.LongBits(m.mediaKeyTimestamp.low >>> 0, m.mediaKeyTimestamp.high >>> 0).toNumber() : m.mediaKeyTimestamp;
71379
71338
  if (o.oneofs)
71380
71339
  d._mediaKeyTimestamp = "mediaKeyTimestamp";
71381
71340
  }
@@ -71914,7 +71873,7 @@ export const proto = $root.proto = (() => {
71914
71873
  if (typeof m.amount1000 === "number")
71915
71874
  d.amount1000 = o.longs === String ? String(m.amount1000) : m.amount1000;
71916
71875
  else
71917
- d.amount1000 = o.longs === String ? longToString(m.amount1000, true) : o.longs === Number ? longToNumber(m.amount1000, true) : m.amount1000;
71876
+ d.amount1000 = o.longs === String ? $util.Long.prototype.toString.call(m.amount1000) : o.longs === Number ? new $util.LongBits(m.amount1000.low >>> 0, m.amount1000.high >>> 0).toNumber(true) : m.amount1000;
71918
71877
  if (o.oneofs)
71919
71878
  d._amount1000 = "amount1000";
71920
71879
  }
@@ -71932,7 +71891,7 @@ export const proto = $root.proto = (() => {
71932
71891
  if (typeof m.transactionTimestamp === "number")
71933
71892
  d.transactionTimestamp = o.longs === String ? String(m.transactionTimestamp) : m.transactionTimestamp;
71934
71893
  else
71935
- d.transactionTimestamp = o.longs === String ? longToString(m.transactionTimestamp, true) : o.longs === Number ? longToNumber(m.transactionTimestamp, true) : m.transactionTimestamp;
71894
+ d.transactionTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.transactionTimestamp) : o.longs === Number ? new $util.LongBits(m.transactionTimestamp.low >>> 0, m.transactionTimestamp.high >>> 0).toNumber(true) : m.transactionTimestamp;
71936
71895
  if (o.oneofs)
71937
71896
  d._transactionTimestamp = "transactionTimestamp";
71938
71897
  }
@@ -71945,7 +71904,7 @@ export const proto = $root.proto = (() => {
71945
71904
  if (typeof m.expiryTimestamp === "number")
71946
71905
  d.expiryTimestamp = o.longs === String ? String(m.expiryTimestamp) : m.expiryTimestamp;
71947
71906
  else
71948
- d.expiryTimestamp = o.longs === String ? longToString(m.expiryTimestamp, true) : o.longs === Number ? longToNumber(m.expiryTimestamp, true) : m.expiryTimestamp;
71907
+ d.expiryTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.expiryTimestamp) : o.longs === Number ? new $util.LongBits(m.expiryTimestamp.low >>> 0, m.expiryTimestamp.high >>> 0).toNumber(true) : m.expiryTimestamp;
71949
71908
  if (o.oneofs)
71950
71909
  d._expiryTimestamp = "expiryTimestamp";
71951
71910
  }
@@ -72481,7 +72440,7 @@ export const proto = $root.proto = (() => {
72481
72440
  if (typeof m.senderTimestampMs === "number")
72482
72441
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
72483
72442
  else
72484
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
72443
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
72485
72444
  if (o.oneofs)
72486
72445
  d._senderTimestampMs = "senderTimestampMs";
72487
72446
  }
@@ -72489,7 +72448,7 @@ export const proto = $root.proto = (() => {
72489
72448
  if (typeof m.serverTimestampMs === "number")
72490
72449
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
72491
72450
  else
72492
- d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
72451
+ d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
72493
72452
  if (o.oneofs)
72494
72453
  d._serverTimestampMs = "serverTimestampMs";
72495
72454
  }
@@ -73039,7 +72998,7 @@ export const proto = $root.proto = (() => {
73039
72998
  if (typeof m.senderTimestampMs === "number")
73040
72999
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
73041
73000
  else
73042
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
73001
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
73043
73002
  if (o.oneofs)
73044
73003
  d._senderTimestampMs = "senderTimestampMs";
73045
73004
  }
@@ -73047,7 +73006,7 @@ export const proto = $root.proto = (() => {
73047
73006
  if (typeof m.serverTimestampMs === "number")
73048
73007
  d.serverTimestampMs = o.longs === String ? String(m.serverTimestampMs) : m.serverTimestampMs;
73049
73008
  else
73050
- d.serverTimestampMs = o.longs === String ? longToString(m.serverTimestampMs) : o.longs === Number ? longToNumber(m.serverTimestampMs) : m.serverTimestampMs;
73009
+ d.serverTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.serverTimestampMs) : o.longs === Number ? new $util.LongBits(m.serverTimestampMs.low >>> 0, m.serverTimestampMs.high >>> 0).toNumber() : m.serverTimestampMs;
73051
73010
  if (o.oneofs)
73052
73011
  d._serverTimestampMs = "serverTimestampMs";
73053
73012
  }
@@ -73862,7 +73821,7 @@ export const proto = $root.proto = (() => {
73862
73821
  if (typeof m.fileLength === "number")
73863
73822
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
73864
73823
  else
73865
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
73824
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
73866
73825
  if (o.oneofs)
73867
73826
  d._fileLength = "fileLength";
73868
73827
  }
@@ -74401,7 +74360,7 @@ export const proto = $root.proto = (() => {
74401
74360
  if (typeof m.senderTimestampMs === "number")
74402
74361
  d.senderTimestampMs = o.longs === String ? String(m.senderTimestampMs) : m.senderTimestampMs;
74403
74362
  else
74404
- d.senderTimestampMs = o.longs === String ? longToString(m.senderTimestampMs) : o.longs === Number ? longToNumber(m.senderTimestampMs) : m.senderTimestampMs;
74363
+ d.senderTimestampMs = o.longs === String ? $util.Long.prototype.toString.call(m.senderTimestampMs) : o.longs === Number ? new $util.LongBits(m.senderTimestampMs.low >>> 0, m.senderTimestampMs.high >>> 0).toNumber() : m.senderTimestampMs;
74405
74364
  if (o.oneofs)
74406
74365
  d._senderTimestampMs = "senderTimestampMs";
74407
74366
  }
@@ -77528,7 +77487,7 @@ export const proto = $root.proto = (() => {
77528
77487
  if (typeof m.timestamp === "number")
77529
77488
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
77530
77489
  else
77531
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
77490
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
77532
77491
  if (o.oneofs)
77533
77492
  d._timestamp = "timestamp";
77534
77493
  }
@@ -79031,13 +78990,13 @@ export const proto = $root.proto = (() => {
79031
78990
  if (typeof m.campaignId === "number")
79032
78991
  d.campaignId = o.longs === String ? String(m.campaignId) : m.campaignId;
79033
78992
  else
79034
- d.campaignId = o.longs === String ? longToString(m.campaignId, true) : o.longs === Number ? longToNumber(m.campaignId, true) : m.campaignId;
78993
+ d.campaignId = o.longs === String ? $util.Long.prototype.toString.call(m.campaignId) : o.longs === Number ? new $util.LongBits(m.campaignId.low >>> 0, m.campaignId.high >>> 0).toNumber(true) : m.campaignId;
79035
78994
  }
79036
78995
  if (m.campaignExpirationTimestamp != null && m.hasOwnProperty("campaignExpirationTimestamp")) {
79037
78996
  if (typeof m.campaignExpirationTimestamp === "number")
79038
78997
  d.campaignExpirationTimestamp = o.longs === String ? String(m.campaignExpirationTimestamp) : m.campaignExpirationTimestamp;
79039
78998
  else
79040
- d.campaignExpirationTimestamp = o.longs === String ? longToString(m.campaignExpirationTimestamp, true) : o.longs === Number ? longToNumber(m.campaignExpirationTimestamp, true) : m.campaignExpirationTimestamp;
78999
+ d.campaignExpirationTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.campaignExpirationTimestamp) : o.longs === Number ? new $util.LongBits(m.campaignExpirationTimestamp.low >>> 0, m.campaignExpirationTimestamp.high >>> 0).toNumber(true) : m.campaignExpirationTimestamp;
79041
79000
  if (o.oneofs)
79042
79001
  d._campaignExpirationTimestamp = "campaignExpirationTimestamp";
79043
79002
  }
@@ -79399,7 +79358,7 @@ export const proto = $root.proto = (() => {
79399
79358
  if (typeof m.fileLength === "number")
79400
79359
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
79401
79360
  else
79402
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
79361
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
79403
79362
  if (o.oneofs)
79404
79363
  d._fileLength = "fileLength";
79405
79364
  }
@@ -79412,7 +79371,7 @@ export const proto = $root.proto = (() => {
79412
79371
  if (typeof m.lastStickerSentTs === "number")
79413
79372
  d.lastStickerSentTs = o.longs === String ? String(m.lastStickerSentTs) : m.lastStickerSentTs;
79414
79373
  else
79415
- d.lastStickerSentTs = o.longs === String ? longToString(m.lastStickerSentTs) : o.longs === Number ? longToNumber(m.lastStickerSentTs) : m.lastStickerSentTs;
79374
+ d.lastStickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.lastStickerSentTs) : o.longs === Number ? new $util.LongBits(m.lastStickerSentTs.low >>> 0, m.lastStickerSentTs.high >>> 0).toNumber() : m.lastStickerSentTs;
79416
79375
  if (o.oneofs)
79417
79376
  d._lastStickerSentTs = "lastStickerSentTs";
79418
79377
  }
@@ -80908,7 +80867,7 @@ export const proto = $root.proto = (() => {
80908
80867
  if (typeof m.timestamp === "number")
80909
80868
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
80910
80869
  else
80911
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
80870
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
80912
80871
  if (o.oneofs)
80913
80872
  d._timestamp = "timestamp";
80914
80873
  }
@@ -83512,7 +83471,7 @@ export const proto = $root.proto = (() => {
83512
83471
  if (typeof m.messageTimestamp === "number")
83513
83472
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
83514
83473
  else
83515
- d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp) : o.longs === Number ? longToNumber(m.messageTimestamp) : m.messageTimestamp;
83474
+ d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber() : m.messageTimestamp;
83516
83475
  if (o.oneofs)
83517
83476
  d._messageTimestamp = "messageTimestamp";
83518
83477
  }
@@ -84455,7 +84414,7 @@ export const proto = $root.proto = (() => {
84455
84414
  if (typeof m.muteEndTimeMs === "number")
84456
84415
  d.muteEndTimeMs = o.longs === String ? String(m.muteEndTimeMs) : m.muteEndTimeMs;
84457
84416
  else
84458
- d.muteEndTimeMs = o.longs === String ? longToString(m.muteEndTimeMs) : o.longs === Number ? longToNumber(m.muteEndTimeMs) : m.muteEndTimeMs;
84417
+ d.muteEndTimeMs = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTimeMs) : o.longs === Number ? new $util.LongBits(m.muteEndTimeMs.low >>> 0, m.muteEndTimeMs.high >>> 0).toNumber() : m.muteEndTimeMs;
84459
84418
  if (o.oneofs)
84460
84419
  d._muteEndTimeMs = "muteEndTimeMs";
84461
84420
  }
@@ -85326,7 +85285,7 @@ export const proto = $root.proto = (() => {
85326
85285
  if (typeof m.createdAt === "number")
85327
85286
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
85328
85287
  else
85329
- d.createdAt = o.longs === String ? longToString(m.createdAt) : o.longs === Number ? longToNumber(m.createdAt) : m.createdAt;
85288
+ d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber() : m.createdAt;
85330
85289
  if (o.oneofs)
85331
85290
  d._createdAt = "createdAt";
85332
85291
  }
@@ -85334,7 +85293,7 @@ export const proto = $root.proto = (() => {
85334
85293
  if (typeof m.lastSentAt === "number")
85335
85294
  d.lastSentAt = o.longs === String ? String(m.lastSentAt) : m.lastSentAt;
85336
85295
  else
85337
- d.lastSentAt = o.longs === String ? longToString(m.lastSentAt) : o.longs === Number ? longToNumber(m.lastSentAt) : m.lastSentAt;
85296
+ d.lastSentAt = o.longs === String ? $util.Long.prototype.toString.call(m.lastSentAt) : o.longs === Number ? new $util.LongBits(m.lastSentAt.low >>> 0, m.lastSentAt.high >>> 0).toNumber() : m.lastSentAt;
85338
85297
  if (o.oneofs)
85339
85298
  d._lastSentAt = "lastSentAt";
85340
85299
  }
@@ -85868,7 +85827,7 @@ export const proto = $root.proto = (() => {
85868
85827
  if (typeof m.muteEndTimestamp === "number")
85869
85828
  d.muteEndTimestamp = o.longs === String ? String(m.muteEndTimestamp) : m.muteEndTimestamp;
85870
85829
  else
85871
- d.muteEndTimestamp = o.longs === String ? longToString(m.muteEndTimestamp) : o.longs === Number ? longToNumber(m.muteEndTimestamp) : m.muteEndTimestamp;
85830
+ d.muteEndTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.muteEndTimestamp) : o.longs === Number ? new $util.LongBits(m.muteEndTimestamp.low >>> 0, m.muteEndTimestamp.high >>> 0).toNumber() : m.muteEndTimestamp;
85872
85831
  if (o.oneofs)
85873
85832
  d._muteEndTimestamp = "muteEndTimestamp";
85874
85833
  }
@@ -86146,7 +86105,7 @@ export const proto = $root.proto = (() => {
86146
86105
  if (typeof m.createdAt === "number")
86147
86106
  d.createdAt = o.longs === String ? String(m.createdAt) : m.createdAt;
86148
86107
  else
86149
- d.createdAt = o.longs === String ? longToString(m.createdAt) : o.longs === Number ? longToNumber(m.createdAt) : m.createdAt;
86108
+ d.createdAt = o.longs === String ? $util.Long.prototype.toString.call(m.createdAt) : o.longs === Number ? new $util.LongBits(m.createdAt.low >>> 0, m.createdAt.high >>> 0).toNumber() : m.createdAt;
86150
86109
  if (o.oneofs)
86151
86110
  d._createdAt = "createdAt";
86152
86111
  }
@@ -87764,7 +87723,7 @@ export const proto = $root.proto = (() => {
87764
87723
  if (typeof m.lastStickerSentTs === "number")
87765
87724
  d.lastStickerSentTs = o.longs === String ? String(m.lastStickerSentTs) : m.lastStickerSentTs;
87766
87725
  else
87767
- d.lastStickerSentTs = o.longs === String ? longToString(m.lastStickerSentTs) : o.longs === Number ? longToNumber(m.lastStickerSentTs) : m.lastStickerSentTs;
87726
+ d.lastStickerSentTs = o.longs === String ? $util.Long.prototype.toString.call(m.lastStickerSentTs) : o.longs === Number ? new $util.LongBits(m.lastStickerSentTs.low >>> 0, m.lastStickerSentTs.high >>> 0).toNumber() : m.lastStickerSentTs;
87768
87727
  if (o.oneofs)
87769
87728
  d._lastStickerSentTs = "lastStickerSentTs";
87770
87729
  }
@@ -88418,7 +88377,7 @@ export const proto = $root.proto = (() => {
88418
88377
  if (typeof m.fileLength === "number")
88419
88378
  d.fileLength = o.longs === String ? String(m.fileLength) : m.fileLength;
88420
88379
  else
88421
- d.fileLength = o.longs === String ? longToString(m.fileLength, true) : o.longs === Number ? longToNumber(m.fileLength, true) : m.fileLength;
88380
+ d.fileLength = o.longs === String ? $util.Long.prototype.toString.call(m.fileLength) : o.longs === Number ? new $util.LongBits(m.fileLength.low >>> 0, m.fileLength.high >>> 0).toNumber(true) : m.fileLength;
88422
88381
  if (o.oneofs)
88423
88382
  d._fileLength = "fileLength";
88424
88383
  }
@@ -88583,7 +88542,7 @@ export const proto = $root.proto = (() => {
88583
88542
  if (typeof m.expirationDate === "number")
88584
88543
  d.expirationDate = o.longs === String ? String(m.expirationDate) : m.expirationDate;
88585
88544
  else
88586
- d.expirationDate = o.longs === String ? longToString(m.expirationDate) : o.longs === Number ? longToNumber(m.expirationDate) : m.expirationDate;
88545
+ d.expirationDate = o.longs === String ? $util.Long.prototype.toString.call(m.expirationDate) : o.longs === Number ? new $util.LongBits(m.expirationDate.low >>> 0, m.expirationDate.high >>> 0).toNumber() : m.expirationDate;
88587
88546
  if (o.oneofs)
88588
88547
  d._expirationDate = "expirationDate";
88589
88548
  }
@@ -88704,7 +88663,7 @@ export const proto = $root.proto = (() => {
88704
88663
  if (typeof m.timestamp === "number")
88705
88664
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
88706
88665
  else
88707
- d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
88666
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber() : m.timestamp;
88708
88667
  if (o.oneofs)
88709
88668
  d._timestamp = "timestamp";
88710
88669
  }
@@ -88850,7 +88809,7 @@ export const proto = $root.proto = (() => {
88850
88809
  if (typeof m.lastMessageTimestamp === "number")
88851
88810
  d.lastMessageTimestamp = o.longs === String ? String(m.lastMessageTimestamp) : m.lastMessageTimestamp;
88852
88811
  else
88853
- d.lastMessageTimestamp = o.longs === String ? longToString(m.lastMessageTimestamp) : o.longs === Number ? longToNumber(m.lastMessageTimestamp) : m.lastMessageTimestamp;
88812
+ d.lastMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.lastMessageTimestamp.low >>> 0, m.lastMessageTimestamp.high >>> 0).toNumber() : m.lastMessageTimestamp;
88854
88813
  if (o.oneofs)
88855
88814
  d._lastMessageTimestamp = "lastMessageTimestamp";
88856
88815
  }
@@ -88858,7 +88817,7 @@ export const proto = $root.proto = (() => {
88858
88817
  if (typeof m.lastSystemMessageTimestamp === "number")
88859
88818
  d.lastSystemMessageTimestamp = o.longs === String ? String(m.lastSystemMessageTimestamp) : m.lastSystemMessageTimestamp;
88860
88819
  else
88861
- d.lastSystemMessageTimestamp = o.longs === String ? longToString(m.lastSystemMessageTimestamp) : o.longs === Number ? longToNumber(m.lastSystemMessageTimestamp) : m.lastSystemMessageTimestamp;
88820
+ d.lastSystemMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.lastSystemMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.lastSystemMessageTimestamp.low >>> 0, m.lastSystemMessageTimestamp.high >>> 0).toNumber() : m.lastSystemMessageTimestamp;
88862
88821
  if (o.oneofs)
88863
88822
  d._lastSystemMessageTimestamp = "lastSystemMessageTimestamp";
88864
88823
  }
@@ -90625,7 +90584,7 @@ export const proto = $root.proto = (() => {
90625
90584
  if (typeof m.version === "number")
90626
90585
  d.version = o.longs === String ? String(m.version) : m.version;
90627
90586
  else
90628
- d.version = o.longs === String ? longToString(m.version, true) : o.longs === Number ? longToNumber(m.version, true) : m.version;
90587
+ d.version = o.longs === String ? $util.Long.prototype.toString.call(m.version) : o.longs === Number ? new $util.LongBits(m.version.low >>> 0, m.version.high >>> 0).toNumber(true) : m.version;
90629
90588
  if (o.oneofs)
90630
90589
  d._version = "version";
90631
90590
  }
@@ -92227,7 +92186,7 @@ export const proto = $root.proto = (() => {
92227
92186
  if (typeof m.receiptTimestamp === "number")
92228
92187
  d.receiptTimestamp = o.longs === String ? String(m.receiptTimestamp) : m.receiptTimestamp;
92229
92188
  else
92230
- d.receiptTimestamp = o.longs === String ? longToString(m.receiptTimestamp) : o.longs === Number ? longToNumber(m.receiptTimestamp) : m.receiptTimestamp;
92189
+ d.receiptTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.receiptTimestamp) : o.longs === Number ? new $util.LongBits(m.receiptTimestamp.low >>> 0, m.receiptTimestamp.high >>> 0).toNumber() : m.receiptTimestamp;
92231
92190
  if (o.oneofs)
92232
92191
  d._receiptTimestamp = "receiptTimestamp";
92233
92192
  }
@@ -92235,7 +92194,7 @@ export const proto = $root.proto = (() => {
92235
92194
  if (typeof m.readTimestamp === "number")
92236
92195
  d.readTimestamp = o.longs === String ? String(m.readTimestamp) : m.readTimestamp;
92237
92196
  else
92238
- d.readTimestamp = o.longs === String ? longToString(m.readTimestamp) : o.longs === Number ? longToNumber(m.readTimestamp) : m.readTimestamp;
92197
+ d.readTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.readTimestamp) : o.longs === Number ? new $util.LongBits(m.readTimestamp.low >>> 0, m.readTimestamp.high >>> 0).toNumber() : m.readTimestamp;
92239
92198
  if (o.oneofs)
92240
92199
  d._readTimestamp = "readTimestamp";
92241
92200
  }
@@ -92243,7 +92202,7 @@ export const proto = $root.proto = (() => {
92243
92202
  if (typeof m.playedTimestamp === "number")
92244
92203
  d.playedTimestamp = o.longs === String ? String(m.playedTimestamp) : m.playedTimestamp;
92245
92204
  else
92246
- d.playedTimestamp = o.longs === String ? longToString(m.playedTimestamp) : o.longs === Number ? longToNumber(m.playedTimestamp) : m.playedTimestamp;
92205
+ d.playedTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.playedTimestamp) : o.longs === Number ? new $util.LongBits(m.playedTimestamp.low >>> 0, m.playedTimestamp.high >>> 0).toNumber() : m.playedTimestamp;
92247
92206
  if (o.oneofs)
92248
92207
  d._playedTimestamp = "playedTimestamp";
92249
92208
  }
@@ -92569,7 +92528,7 @@ export const proto = $root.proto = (() => {
92569
92528
  if (typeof m.serial === "number")
92570
92529
  d.serial = o.longs === String ? String(m.serial) : m.serial;
92571
92530
  else
92572
- d.serial = o.longs === String ? longToString(m.serial, true) : o.longs === Number ? longToNumber(m.serial, true) : m.serial;
92531
+ d.serial = o.longs === String ? $util.Long.prototype.toString.call(m.serial) : o.longs === Number ? new $util.LongBits(m.serial.low >>> 0, m.serial.high >>> 0).toNumber(true) : m.serial;
92573
92532
  if (o.oneofs)
92574
92533
  d._serial = "serial";
92575
92534
  }
@@ -92593,7 +92552,7 @@ export const proto = $root.proto = (() => {
92593
92552
  if (typeof m.issueTime === "number")
92594
92553
  d.issueTime = o.longs === String ? String(m.issueTime) : m.issueTime;
92595
92554
  else
92596
- d.issueTime = o.longs === String ? longToString(m.issueTime, true) : o.longs === Number ? longToNumber(m.issueTime, true) : m.issueTime;
92555
+ d.issueTime = o.longs === String ? $util.Long.prototype.toString.call(m.issueTime) : o.longs === Number ? new $util.LongBits(m.issueTime.low >>> 0, m.issueTime.high >>> 0).toNumber(true) : m.issueTime;
92597
92556
  if (o.oneofs)
92598
92557
  d._issueTime = "issueTime";
92599
92558
  }
@@ -96909,7 +96868,7 @@ export const proto = $root.proto = (() => {
96909
96868
  if (typeof m.messageTimestamp === "number")
96910
96869
  d.messageTimestamp = o.longs === String ? String(m.messageTimestamp) : m.messageTimestamp;
96911
96870
  else
96912
- d.messageTimestamp = o.longs === String ? longToString(m.messageTimestamp, true) : o.longs === Number ? longToNumber(m.messageTimestamp, true) : m.messageTimestamp;
96871
+ d.messageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageTimestamp) : o.longs === Number ? new $util.LongBits(m.messageTimestamp.low >>> 0, m.messageTimestamp.high >>> 0).toNumber(true) : m.messageTimestamp;
96913
96872
  if (o.oneofs)
96914
96873
  d._messageTimestamp = "messageTimestamp";
96915
96874
  }
@@ -96927,7 +96886,7 @@ export const proto = $root.proto = (() => {
96927
96886
  if (typeof m.messageC2STimestamp === "number")
96928
96887
  d.messageC2STimestamp = o.longs === String ? String(m.messageC2STimestamp) : m.messageC2STimestamp;
96929
96888
  else
96930
- d.messageC2STimestamp = o.longs === String ? longToString(m.messageC2STimestamp, true) : o.longs === Number ? longToNumber(m.messageC2STimestamp, true) : m.messageC2STimestamp;
96889
+ d.messageC2STimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.messageC2STimestamp) : o.longs === Number ? new $util.LongBits(m.messageC2STimestamp.low >>> 0, m.messageC2STimestamp.high >>> 0).toNumber(true) : m.messageC2STimestamp;
96931
96890
  if (o.oneofs)
96932
96891
  d._messageC2STimestamp = "messageC2STimestamp";
96933
96892
  }
@@ -97017,7 +96976,7 @@ export const proto = $root.proto = (() => {
97017
96976
  if (typeof m.ephemeralStartTimestamp === "number")
97018
96977
  d.ephemeralStartTimestamp = o.longs === String ? String(m.ephemeralStartTimestamp) : m.ephemeralStartTimestamp;
97019
96978
  else
97020
- d.ephemeralStartTimestamp = o.longs === String ? longToString(m.ephemeralStartTimestamp, true) : o.longs === Number ? longToNumber(m.ephemeralStartTimestamp, true) : m.ephemeralStartTimestamp;
96979
+ d.ephemeralStartTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.ephemeralStartTimestamp) : o.longs === Number ? new $util.LongBits(m.ephemeralStartTimestamp.low >>> 0, m.ephemeralStartTimestamp.high >>> 0).toNumber(true) : m.ephemeralStartTimestamp;
97021
96980
  if (o.oneofs)
97022
96981
  d._ephemeralStartTimestamp = "ephemeralStartTimestamp";
97023
96982
  }
@@ -97123,7 +97082,7 @@ export const proto = $root.proto = (() => {
97123
97082
  if (typeof m.revokeMessageTimestamp === "number")
97124
97083
  d.revokeMessageTimestamp = o.longs === String ? String(m.revokeMessageTimestamp) : m.revokeMessageTimestamp;
97125
97084
  else
97126
- d.revokeMessageTimestamp = o.longs === String ? longToString(m.revokeMessageTimestamp, true) : o.longs === Number ? longToNumber(m.revokeMessageTimestamp, true) : m.revokeMessageTimestamp;
97085
+ d.revokeMessageTimestamp = o.longs === String ? $util.Long.prototype.toString.call(m.revokeMessageTimestamp) : o.longs === Number ? new $util.LongBits(m.revokeMessageTimestamp.low >>> 0, m.revokeMessageTimestamp.high >>> 0).toNumber(true) : m.revokeMessageTimestamp;
97127
97086
  if (o.oneofs)
97128
97087
  d._revokeMessageTimestamp = "revokeMessageTimestamp";
97129
97088
  }
@@ -97172,7 +97131,7 @@ export const proto = $root.proto = (() => {
97172
97131
  if (typeof m.newsletterServerId === "number")
97173
97132
  d.newsletterServerId = o.longs === String ? String(m.newsletterServerId) : m.newsletterServerId;
97174
97133
  else
97175
- d.newsletterServerId = o.longs === String ? longToString(m.newsletterServerId, true) : o.longs === Number ? longToNumber(m.newsletterServerId, true) : m.newsletterServerId;
97134
+ d.newsletterServerId = o.longs === String ? $util.Long.prototype.toString.call(m.newsletterServerId) : o.longs === Number ? new $util.LongBits(m.newsletterServerId.low >>> 0, m.newsletterServerId.high >>> 0).toNumber(true) : m.newsletterServerId;
97176
97135
  if (o.oneofs)
97177
97136
  d._newsletterServerId = "newsletterServerId";
97178
97137
  }
@@ -97648,7 +97607,7 @@ export const proto = $root.proto = (() => {
97648
97607
  if (typeof m.timestamp === "number")
97649
97608
  d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
97650
97609
  else
97651
- d.timestamp = o.longs === String ? longToString(m.timestamp, true) : o.longs === Number ? longToNumber(m.timestamp, true) : m.timestamp;
97610
+ d.timestamp = o.longs === String ? $util.Long.prototype.toString.call(m.timestamp) : o.longs === Number ? new $util.LongBits(m.timestamp.low >>> 0, m.timestamp.high >>> 0).toNumber(true) : m.timestamp;
97652
97611
  if (o.oneofs)
97653
97612
  d._timestamp = "timestamp";
97654
97613
  }