@hiroosy/baileys-lite 0.3.4 → 0.3.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 (229) hide show
  1. package/WAProto/index.js +231 -113252
  2. package/WAProto/parts/ADVDeviceIdentity.part +201 -0
  3. package/WAProto/parts/ADVEncryptionType.part +6 -0
  4. package/WAProto/parts/ADVKeyIndexList.part +201 -0
  5. package/WAProto/parts/ADVSignedDeviceIdentity.part +150 -0
  6. package/WAProto/parts/ADVSignedDeviceIdentityHMAC.part +142 -0
  7. package/WAProto/parts/ADVSignedKeyIndexList.part +128 -0
  8. package/WAProto/parts/AIHomeState.part +405 -0
  9. package/WAProto/parts/AIMediaCollectionMessage.part +119 -0
  10. package/WAProto/parts/AIMediaCollectionMetadata.part +100 -0
  11. package/WAProto/parts/AIMetadataOperation.part +83 -0
  12. package/WAProto/parts/AIQueryFanout.part +133 -0
  13. package/WAProto/parts/AIRegenerateMetadata.part +112 -0
  14. package/WAProto/parts/AIRichResponseCodeMetadata.part +252 -0
  15. package/WAProto/parts/AIRichResponseContentItemsMetadata.part +354 -0
  16. package/WAProto/parts/AIRichResponseDynamicMetadata.part +172 -0
  17. package/WAProto/parts/AIRichResponseGridImageMetadata.part +114 -0
  18. package/WAProto/parts/AIRichResponseImageURL.part +119 -0
  19. package/WAProto/parts/AIRichResponseInlineImageMetadata.part +164 -0
  20. package/WAProto/parts/AIRichResponseLatexMetadata.part +346 -0
  21. package/WAProto/parts/AIRichResponseMapMetadata.part +346 -0
  22. package/WAProto/parts/AIRichResponseMessage.part +167 -0
  23. package/WAProto/parts/AIRichResponseMessageType.part +5 -0
  24. package/WAProto/parts/AIRichResponseSubMessage.part +313 -0
  25. package/WAProto/parts/AIRichResponseSubMessageType.part +13 -0
  26. package/WAProto/parts/AIRichResponseTableMetadata.part +223 -0
  27. package/WAProto/parts/AIRichResponseUnifiedResponse.part +84 -0
  28. package/WAProto/parts/AISubscriptionRequestType.part +7 -0
  29. package/WAProto/parts/AISubscriptionUpsellMetadata.part +102 -0
  30. package/WAProto/parts/AIThreadInfo.part +316 -0
  31. package/WAProto/parts/Account.part +138 -0
  32. package/WAProto/parts/ActionLink.part +100 -0
  33. package/WAProto/parts/AutoDownloadSettings.part +138 -0
  34. package/WAProto/parts/AvatarUserSettings.part +100 -0
  35. package/WAProto/parts/BizAccountLinkInfo.part +210 -0
  36. package/WAProto/parts/BizAccountPayload.part +105 -0
  37. package/WAProto/parts/BizIdentityInfo.part +298 -0
  38. package/WAProto/parts/BotAgeCollectionMetadata.part +138 -0
  39. package/WAProto/parts/BotAgentDeepLinkMetadata.part +81 -0
  40. package/WAProto/parts/BotAgentMetadata.part +83 -0
  41. package/WAProto/parts/BotCapabilityMetadata.part +437 -0
  42. package/WAProto/parts/BotCommandMetadata.part +119 -0
  43. package/WAProto/parts/BotDocumentMessageMetadata.part +100 -0
  44. package/WAProto/parts/BotFeedbackMessage.part +1366 -0
  45. package/WAProto/parts/BotGroupMetadata.part +92 -0
  46. package/WAProto/parts/BotGroupParticipantMetadata.part +81 -0
  47. package/WAProto/parts/BotImagineMetadata.part +134 -0
  48. package/WAProto/parts/BotInfrastructureDiagnostics.part +148 -0
  49. package/WAProto/parts/BotLinkedAccount.part +95 -0
  50. package/WAProto/parts/BotLinkedAccountsMetadata.part +134 -0
  51. package/WAProto/parts/BotMediaMetadata.part +229 -0
  52. package/WAProto/parts/BotMemoryFact.part +100 -0
  53. package/WAProto/parts/BotMemoryMetadata.part +141 -0
  54. package/WAProto/parts/BotMemuMetadata.part +92 -0
  55. package/WAProto/parts/BotMessageOrigin.part +95 -0
  56. package/WAProto/parts/BotMessageOriginMetadata.part +92 -0
  57. package/WAProto/parts/BotMessageSharingInfo.part +297 -0
  58. package/WAProto/parts/BotMetadata.part +934 -0
  59. package/WAProto/parts/BotMetricsEntryPoint.part +51 -0
  60. package/WAProto/parts/BotMetricsMetadata.part +341 -0
  61. package/WAProto/parts/BotMetricsThreadEntryPoint.part +8 -0
  62. package/WAProto/parts/BotModeSelectionMetadata.part +151 -0
  63. package/WAProto/parts/BotModelMetadata.part +167 -0
  64. package/WAProto/parts/BotPluginMetadata.part +379 -0
  65. package/WAProto/parts/BotProgressIndicatorMetadata.part +837 -0
  66. package/WAProto/parts/BotPromotionMessageMetadata.part +124 -0
  67. package/WAProto/parts/BotPromptSuggestion.part +100 -0
  68. package/WAProto/parts/BotPromptSuggestions.part +92 -0
  69. package/WAProto/parts/BotPttPromptMetadata.part +81 -0
  70. package/WAProto/parts/BotQuotaMetadata.part +241 -0
  71. package/WAProto/parts/BotReminderMetadata.part +232 -0
  72. package/WAProto/parts/BotRenderingConfigMetadata.part +100 -0
  73. package/WAProto/parts/BotRenderingMetadata.part +203 -0
  74. package/WAProto/parts/BotResolvedToolCallMetadata.part +100 -0
  75. package/WAProto/parts/BotSessionMetadata.part +137 -0
  76. package/WAProto/parts/BotSessionSource.part +11 -0
  77. package/WAProto/parts/BotSignatureVerificationMetadata.part +92 -0
  78. package/WAProto/parts/BotSignatureVerificationUseCaseProof.part +183 -0
  79. package/WAProto/parts/BotSourcesMetadata.part +322 -0
  80. package/WAProto/parts/BotSuggestedPromptMetadata.part +150 -0
  81. package/WAProto/parts/BotUnifiedResponseMutation.part +339 -0
  82. package/WAProto/parts/CallLogRecord.part +646 -0
  83. package/WAProto/parts/CertChain.part +392 -0
  84. package/WAProto/parts/ChatLockSettings.part +102 -0
  85. package/WAProto/parts/ChatRowOpaqueData.part +712 -0
  86. package/WAProto/parts/Citation.part +119 -0
  87. package/WAProto/parts/ClientPairingProps.part +160 -0
  88. package/WAProto/parts/ClientPayload.part +2892 -0
  89. package/WAProto/parts/CollectionName.part +9 -0
  90. package/WAProto/parts/CommentMetadata.part +102 -0
  91. package/WAProto/parts/CompanionCommitment.part +84 -0
  92. package/WAProto/parts/CompanionEphemeralIdentity.part +227 -0
  93. package/WAProto/parts/Config.part +136 -0
  94. package/WAProto/parts/ContextInfo.part +4137 -0
  95. package/WAProto/parts/Conversation.part +1472 -0
  96. package/WAProto/parts/DeviceCapabilities.part +670 -0
  97. package/WAProto/parts/DeviceConsistencyCodeMessage.part +103 -0
  98. package/WAProto/parts/DeviceListMetadata.part +306 -0
  99. package/WAProto/parts/DeviceProps.part +982 -0
  100. package/WAProto/parts/DisappearingMode.part +206 -0
  101. package/WAProto/parts/EmbeddedContent.part +100 -0
  102. package/WAProto/parts/EmbeddedMessage.part +102 -0
  103. package/WAProto/parts/EmbeddedMusic.part +370 -0
  104. package/WAProto/parts/EncryptedPairingRequest.part +106 -0
  105. package/WAProto/parts/EphemeralSetting.part +110 -0
  106. package/WAProto/parts/EventAdditionalMetadata.part +81 -0
  107. package/WAProto/parts/EventResponse.part +152 -0
  108. package/WAProto/parts/ExitCode.part +110 -0
  109. package/WAProto/parts/ExternalBlobReference.part +195 -0
  110. package/WAProto/parts/Field.part +193 -0
  111. package/WAProto/parts/ForwardedAIBotMessageInfo.part +119 -0
  112. package/WAProto/parts/GlobalSettings.part +497 -0
  113. package/WAProto/parts/GroupHistoryBundleInfo.part +141 -0
  114. package/WAProto/parts/GroupHistoryIndividualMessageInfo.part +102 -0
  115. package/WAProto/parts/GroupMention.part +100 -0
  116. package/WAProto/parts/GroupParticipant.part +142 -0
  117. package/WAProto/parts/GroupRootKeyShare.part +92 -0
  118. package/WAProto/parts/GroupRootKeyShareEntry.part +161 -0
  119. package/WAProto/parts/HandshakeMessage.part +815 -0
  120. package/WAProto/parts/HatchMetadataSync.part +132 -0
  121. package/WAProto/parts/HistorySync.part +605 -0
  122. package/WAProto/parts/HistorySyncMsg.part +112 -0
  123. package/WAProto/parts/HydratedTemplateButton.part +501 -0
  124. package/WAProto/parts/IdentityKeyPairStructure.part +106 -0
  125. package/WAProto/parts/InThreadSurveyMetadata.part +779 -0
  126. package/WAProto/parts/InlineContact.part +157 -0
  127. package/WAProto/parts/InteractiveAnnotation.part +246 -0
  128. package/WAProto/parts/InteractiveMessageAdditionalMetadata.part +81 -0
  129. package/WAProto/parts/KeepInChat.part +225 -0
  130. package/WAProto/parts/KeepType.part +6 -0
  131. package/WAProto/parts/KeyExchangeMessage.part +169 -0
  132. package/WAProto/parts/KeyId.part +84 -0
  133. package/WAProto/parts/LIDMigrationMapping.part +149 -0
  134. package/WAProto/parts/LIDMigrationMappingSyncMessage.part +84 -0
  135. package/WAProto/parts/LIDMigrationMappingSyncPayload.part +122 -0
  136. package/WAProto/parts/LegacyMessage.part +104 -0
  137. package/WAProto/parts/LimitSharing.part +177 -0
  138. package/WAProto/parts/LocalizedName.part +119 -0
  139. package/WAProto/parts/Location.part +119 -0
  140. package/WAProto/parts/MediaData.part +81 -0
  141. package/WAProto/parts/MediaDomainInfo.part +120 -0
  142. package/WAProto/parts/MediaKeyDomain.part +6 -0
  143. package/WAProto/parts/MediaNotifyMessage.part +132 -0
  144. package/WAProto/parts/MediaRetryNotification.part +170 -0
  145. package/WAProto/parts/MediaVisibility.part +6 -0
  146. package/WAProto/parts/MemberLabel.part +110 -0
  147. package/WAProto/parts/Message.part +32376 -0
  148. package/WAProto/parts/MessageAddOn.part +305 -0
  149. package/WAProto/parts/MessageAddOnContextInfo.part +113 -0
  150. package/WAProto/parts/MessageAssociation.part +235 -0
  151. package/WAProto/parts/MessageContextInfo.part +451 -0
  152. package/WAProto/parts/MessageKey.part +138 -0
  153. package/WAProto/parts/MessageSecretMessage.part +125 -0
  154. package/WAProto/parts/Money.part +129 -0
  155. package/WAProto/parts/MsgOpaqueData.part +1732 -0
  156. package/WAProto/parts/MsgRowOpaqueData.part +104 -0
  157. package/WAProto/parts/MutationProps.part +89 -0
  158. package/WAProto/parts/NoiseCertificate.part +277 -0
  159. package/WAProto/parts/NotificationMessageInfo.part +152 -0
  160. package/WAProto/parts/NotificationSettings.part +176 -0
  161. package/WAProto/parts/PairingRequest.part +128 -0
  162. package/WAProto/parts/PastParticipant.part +148 -0
  163. package/WAProto/parts/PastParticipants.part +112 -0
  164. package/WAProto/parts/PatchDebugData.part +358 -0
  165. package/WAProto/parts/PaymentBackground.part +460 -0
  166. package/WAProto/parts/PaymentInfo.part +602 -0
  167. package/WAProto/parts/PhoneNumberToLIDMapping.part +100 -0
  168. package/WAProto/parts/PhotoChange.part +125 -0
  169. package/WAProto/parts/PinInChat.part +205 -0
  170. package/WAProto/parts/Point.part +138 -0
  171. package/WAProto/parts/PollAdditionalMetadata.part +216 -0
  172. package/WAProto/parts/PollEncValue.part +106 -0
  173. package/WAProto/parts/PollUpdate.part +202 -0
  174. package/WAProto/parts/PreKeyRecordStructure.part +125 -0
  175. package/WAProto/parts/PreKeySignalMessage.part +185 -0
  176. package/WAProto/parts/PremiumMessageInfo.part +81 -0
  177. package/WAProto/parts/PrimaryEphemeralIdentity.part +106 -0
  178. package/WAProto/parts/PrivacySystemMessage.part +6 -0
  179. package/WAProto/parts/ProcessedVideo.part +266 -0
  180. package/WAProto/parts/ProloguePayload.part +105 -0
  181. package/WAProto/parts/Pushname.part +100 -0
  182. package/WAProto/parts/QuarantinedMessage.part +103 -0
  183. package/WAProto/parts/Reaction.part +169 -0
  184. package/WAProto/parts/RecentEmojiWeight.part +100 -0
  185. package/WAProto/parts/RecordStructure.part +114 -0
  186. package/WAProto/parts/Reportable.part +138 -0
  187. package/WAProto/parts/ReportingTokenInfo.part +84 -0
  188. package/WAProto/parts/ScheduledMessageMetadata.part +132 -0
  189. package/WAProto/parts/SenderKeyDistributionMessage.part +144 -0
  190. package/WAProto/parts/SenderKeyMessage.part +122 -0
  191. package/WAProto/parts/SenderKeyRecordStructure.part +92 -0
  192. package/WAProto/parts/SenderKeyStateStructure.part +469 -0
  193. package/WAProto/parts/ServerErrorReceipt.part +81 -0
  194. package/WAProto/parts/SessionStructure.part +1087 -0
  195. package/WAProto/parts/SessionTransparencyMetadata.part +132 -0
  196. package/WAProto/parts/SessionTransparencyType.part +5 -0
  197. package/WAProto/parts/SignalMessage.part +144 -0
  198. package/WAProto/parts/SignedPreKeyRecordStructure.part +176 -0
  199. package/WAProto/parts/StatusAttribution.part +1235 -0
  200. package/WAProto/parts/StatusMentionMessage.part +83 -0
  201. package/WAProto/parts/StatusPSA.part +121 -0
  202. package/WAProto/parts/StickerMetadata.part +357 -0
  203. package/WAProto/parts/SyncActionData.part +146 -0
  204. package/WAProto/parts/SyncActionValue.part +12959 -0
  205. package/WAProto/parts/SyncdIndex.part +84 -0
  206. package/WAProto/parts/SyncdMutation.part +121 -0
  207. package/WAProto/parts/SyncdMutations.part +92 -0
  208. package/WAProto/parts/SyncdPatch.part +262 -0
  209. package/WAProto/parts/SyncdRecord.part +125 -0
  210. package/WAProto/parts/SyncdSnapshot.part +157 -0
  211. package/WAProto/parts/SyncdValue.part +84 -0
  212. package/WAProto/parts/SyncdVersion.part +91 -0
  213. package/WAProto/parts/TapLinkAction.part +100 -0
  214. package/WAProto/parts/TemplateButton.part +449 -0
  215. package/WAProto/parts/ThreadID.part +126 -0
  216. package/WAProto/parts/UrlTrackingMap.part +231 -0
  217. package/WAProto/parts/UserPassword.part +399 -0
  218. package/WAProto/parts/UserReceipt.part +221 -0
  219. package/WAProto/parts/VerifiedNameCertificate.part +318 -0
  220. package/WAProto/parts/WallpaperSettings.part +119 -0
  221. package/WAProto/parts/WebFeatures.part +1870 -0
  222. package/WAProto/parts/WebLinkRenderConfig.part +5 -0
  223. package/WAProto/parts/WebMessageInfo.part +2851 -0
  224. package/WAProto/parts/WebNotificationsInfo.part +160 -0
  225. package/package.json +1 -1
  226. package/src/socket/messages-recv.js +3 -1
  227. package/src/socket/messages-send.js +25 -10
  228. package/src/socket/socket-core.js +53 -57
  229. package/src/utils/wa-protocol-core.js +3 -9
@@ -0,0 +1,370 @@
1
+ "use strict";
2
+ function EmbeddedMusic(p) {
3
+ if (p)
4
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
5
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
6
+ this[ks[i]] = p[ks[i]];
7
+ }
8
+ EmbeddedMusic.prototype.musicContentMediaId = null;
9
+ EmbeddedMusic.prototype.songId = null;
10
+ EmbeddedMusic.prototype.author = null;
11
+ EmbeddedMusic.prototype.title = null;
12
+ EmbeddedMusic.prototype.artworkDirectPath = null;
13
+ EmbeddedMusic.prototype.artworkSha256 = null;
14
+ EmbeddedMusic.prototype.artworkEncSha256 = null;
15
+ EmbeddedMusic.prototype.artistAttribution = null;
16
+ EmbeddedMusic.prototype.countryBlocklist = null;
17
+ EmbeddedMusic.prototype.isExplicit = null;
18
+ EmbeddedMusic.prototype.artworkMediaKey = null;
19
+ EmbeddedMusic.prototype.musicSongStartTimeInMs = null;
20
+ EmbeddedMusic.prototype.derivedContentStartTimeInMs = null;
21
+ EmbeddedMusic.prototype.overlapDurationInMs = null;
22
+ let $oneOfFields;
23
+ Object.defineProperty(EmbeddedMusic.prototype, "_musicContentMediaId", {
24
+ get: $util.oneOfGetter($oneOfFields = ["musicContentMediaId"]),
25
+ set: $util.oneOfSetter($oneOfFields)
26
+ });
27
+ Object.defineProperty(EmbeddedMusic.prototype, "_songId", {
28
+ get: $util.oneOfGetter($oneOfFields = ["songId"]),
29
+ set: $util.oneOfSetter($oneOfFields)
30
+ });
31
+ Object.defineProperty(EmbeddedMusic.prototype, "_author", {
32
+ get: $util.oneOfGetter($oneOfFields = ["author"]),
33
+ set: $util.oneOfSetter($oneOfFields)
34
+ });
35
+ Object.defineProperty(EmbeddedMusic.prototype, "_title", {
36
+ get: $util.oneOfGetter($oneOfFields = ["title"]),
37
+ set: $util.oneOfSetter($oneOfFields)
38
+ });
39
+ Object.defineProperty(EmbeddedMusic.prototype, "_artworkDirectPath", {
40
+ get: $util.oneOfGetter($oneOfFields = ["artworkDirectPath"]),
41
+ set: $util.oneOfSetter($oneOfFields)
42
+ });
43
+ Object.defineProperty(EmbeddedMusic.prototype, "_artworkSha256", {
44
+ get: $util.oneOfGetter($oneOfFields = ["artworkSha256"]),
45
+ set: $util.oneOfSetter($oneOfFields)
46
+ });
47
+ Object.defineProperty(EmbeddedMusic.prototype, "_artworkEncSha256", {
48
+ get: $util.oneOfGetter($oneOfFields = ["artworkEncSha256"]),
49
+ set: $util.oneOfSetter($oneOfFields)
50
+ });
51
+ Object.defineProperty(EmbeddedMusic.prototype, "_artistAttribution", {
52
+ get: $util.oneOfGetter($oneOfFields = ["artistAttribution"]),
53
+ set: $util.oneOfSetter($oneOfFields)
54
+ });
55
+ Object.defineProperty(EmbeddedMusic.prototype, "_countryBlocklist", {
56
+ get: $util.oneOfGetter($oneOfFields = ["countryBlocklist"]),
57
+ set: $util.oneOfSetter($oneOfFields)
58
+ });
59
+ Object.defineProperty(EmbeddedMusic.prototype, "_isExplicit", {
60
+ get: $util.oneOfGetter($oneOfFields = ["isExplicit"]),
61
+ set: $util.oneOfSetter($oneOfFields)
62
+ });
63
+ Object.defineProperty(EmbeddedMusic.prototype, "_artworkMediaKey", {
64
+ get: $util.oneOfGetter($oneOfFields = ["artworkMediaKey"]),
65
+ set: $util.oneOfSetter($oneOfFields)
66
+ });
67
+ Object.defineProperty(EmbeddedMusic.prototype, "_musicSongStartTimeInMs", {
68
+ get: $util.oneOfGetter($oneOfFields = ["musicSongStartTimeInMs"]),
69
+ set: $util.oneOfSetter($oneOfFields)
70
+ });
71
+ Object.defineProperty(EmbeddedMusic.prototype, "_derivedContentStartTimeInMs", {
72
+ get: $util.oneOfGetter($oneOfFields = ["derivedContentStartTimeInMs"]),
73
+ set: $util.oneOfSetter($oneOfFields)
74
+ });
75
+ Object.defineProperty(EmbeddedMusic.prototype, "_overlapDurationInMs", {
76
+ get: $util.oneOfGetter($oneOfFields = ["overlapDurationInMs"]),
77
+ set: $util.oneOfSetter($oneOfFields)
78
+ });
79
+ EmbeddedMusic.create = function create(properties) {
80
+ return new EmbeddedMusic(properties);
81
+ };
82
+ EmbeddedMusic.encode = function encode(m, w) {
83
+ if (!w)
84
+ w = $Writer.create();
85
+ if (m.musicContentMediaId != null && Object.hasOwnProperty.call(m, "musicContentMediaId"))
86
+ w.uint32(10).string(m.musicContentMediaId);
87
+ if (m.songId != null && Object.hasOwnProperty.call(m, "songId"))
88
+ w.uint32(18).string(m.songId);
89
+ if (m.author != null && Object.hasOwnProperty.call(m, "author"))
90
+ w.uint32(26).string(m.author);
91
+ if (m.title != null && Object.hasOwnProperty.call(m, "title"))
92
+ w.uint32(34).string(m.title);
93
+ if (m.artworkDirectPath != null && Object.hasOwnProperty.call(m, "artworkDirectPath"))
94
+ w.uint32(42).string(m.artworkDirectPath);
95
+ if (m.artworkSha256 != null && Object.hasOwnProperty.call(m, "artworkSha256"))
96
+ w.uint32(50).bytes(m.artworkSha256);
97
+ if (m.artworkEncSha256 != null && Object.hasOwnProperty.call(m, "artworkEncSha256"))
98
+ w.uint32(58).bytes(m.artworkEncSha256);
99
+ if (m.artistAttribution != null && Object.hasOwnProperty.call(m, "artistAttribution"))
100
+ w.uint32(66).string(m.artistAttribution);
101
+ if (m.countryBlocklist != null && Object.hasOwnProperty.call(m, "countryBlocklist"))
102
+ w.uint32(74).bytes(m.countryBlocklist);
103
+ if (m.isExplicit != null && Object.hasOwnProperty.call(m, "isExplicit"))
104
+ w.uint32(80).bool(m.isExplicit);
105
+ if (m.artworkMediaKey != null && Object.hasOwnProperty.call(m, "artworkMediaKey"))
106
+ w.uint32(90).bytes(m.artworkMediaKey);
107
+ if (m.musicSongStartTimeInMs != null && Object.hasOwnProperty.call(m, "musicSongStartTimeInMs"))
108
+ w.uint32(96).int64(m.musicSongStartTimeInMs);
109
+ if (m.derivedContentStartTimeInMs != null && Object.hasOwnProperty.call(m, "derivedContentStartTimeInMs"))
110
+ w.uint32(104).int64(m.derivedContentStartTimeInMs);
111
+ if (m.overlapDurationInMs != null && Object.hasOwnProperty.call(m, "overlapDurationInMs"))
112
+ w.uint32(112).int64(m.overlapDurationInMs);
113
+ return w;
114
+ };
115
+ EmbeddedMusic.decode = function decode(r, l, e, n) {
116
+ if (!(r instanceof $Reader))
117
+ r = $Reader.create(r);
118
+ if (n === undefined)
119
+ n = 0;
120
+ if (n > $Reader.recursionLimit)
121
+ throw Error("maximum nesting depth exceeded");
122
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.EmbeddedMusic();
123
+ while (r.pos < c) {
124
+ var t = r.uint32();
125
+ if (t === e)
126
+ break;
127
+ switch (t >>> 3) {
128
+ case 1: {
129
+ m.musicContentMediaId = r.string();
130
+ break;
131
+ }
132
+ case 2: {
133
+ m.songId = r.string();
134
+ break;
135
+ }
136
+ case 3: {
137
+ m.author = r.string();
138
+ break;
139
+ }
140
+ case 4: {
141
+ m.title = r.string();
142
+ break;
143
+ }
144
+ case 5: {
145
+ m.artworkDirectPath = r.string();
146
+ break;
147
+ }
148
+ case 6: {
149
+ m.artworkSha256 = r.bytes();
150
+ break;
151
+ }
152
+ case 7: {
153
+ m.artworkEncSha256 = r.bytes();
154
+ break;
155
+ }
156
+ case 8: {
157
+ m.artistAttribution = r.string();
158
+ break;
159
+ }
160
+ case 9: {
161
+ m.countryBlocklist = r.bytes();
162
+ break;
163
+ }
164
+ case 10: {
165
+ m.isExplicit = r.bool();
166
+ break;
167
+ }
168
+ case 11: {
169
+ m.artworkMediaKey = r.bytes();
170
+ break;
171
+ }
172
+ case 12: {
173
+ m.musicSongStartTimeInMs = r.int64();
174
+ break;
175
+ }
176
+ case 13: {
177
+ m.derivedContentStartTimeInMs = r.int64();
178
+ break;
179
+ }
180
+ case 14: {
181
+ m.overlapDurationInMs = r.int64();
182
+ break;
183
+ }
184
+ default:
185
+ r.skipType(t & 7, n);
186
+ break;
187
+ }
188
+ }
189
+ return m;
190
+ };
191
+ EmbeddedMusic.fromObject = function fromObject(d, n) {
192
+ if (d instanceof $root.proto.EmbeddedMusic)
193
+ return d;
194
+ if (n === undefined)
195
+ n = 0;
196
+ if (n > $util.recursionLimit)
197
+ throw Error("maximum nesting depth exceeded");
198
+ var m = new $root.proto.EmbeddedMusic();
199
+ if (d.musicContentMediaId != null) {
200
+ m.musicContentMediaId = String(d.musicContentMediaId);
201
+ }
202
+ if (d.songId != null) {
203
+ m.songId = String(d.songId);
204
+ }
205
+ if (d.author != null) {
206
+ m.author = String(d.author);
207
+ }
208
+ if (d.title != null) {
209
+ m.title = String(d.title);
210
+ }
211
+ if (d.artworkDirectPath != null) {
212
+ m.artworkDirectPath = String(d.artworkDirectPath);
213
+ }
214
+ if (d.artworkSha256 != null) {
215
+ if (typeof d.artworkSha256 === "string")
216
+ $util.base64.decode(d.artworkSha256, m.artworkSha256 = $util.newBuffer($util.base64.length(d.artworkSha256)), 0);
217
+ else if (d.artworkSha256.length >= 0)
218
+ m.artworkSha256 = d.artworkSha256;
219
+ }
220
+ if (d.artworkEncSha256 != null) {
221
+ if (typeof d.artworkEncSha256 === "string")
222
+ $util.base64.decode(d.artworkEncSha256, m.artworkEncSha256 = $util.newBuffer($util.base64.length(d.artworkEncSha256)), 0);
223
+ else if (d.artworkEncSha256.length >= 0)
224
+ m.artworkEncSha256 = d.artworkEncSha256;
225
+ }
226
+ if (d.artistAttribution != null) {
227
+ m.artistAttribution = String(d.artistAttribution);
228
+ }
229
+ if (d.countryBlocklist != null) {
230
+ if (typeof d.countryBlocklist === "string")
231
+ $util.base64.decode(d.countryBlocklist, m.countryBlocklist = $util.newBuffer($util.base64.length(d.countryBlocklist)), 0);
232
+ else if (d.countryBlocklist.length >= 0)
233
+ m.countryBlocklist = d.countryBlocklist;
234
+ }
235
+ if (d.isExplicit != null) {
236
+ m.isExplicit = Boolean(d.isExplicit);
237
+ }
238
+ if (d.artworkMediaKey != null) {
239
+ if (typeof d.artworkMediaKey === "string")
240
+ $util.base64.decode(d.artworkMediaKey, m.artworkMediaKey = $util.newBuffer($util.base64.length(d.artworkMediaKey)), 0);
241
+ else if (d.artworkMediaKey.length >= 0)
242
+ m.artworkMediaKey = d.artworkMediaKey;
243
+ }
244
+ if (d.musicSongStartTimeInMs != null) {
245
+ if ($util.Long)
246
+ (m.musicSongStartTimeInMs = $util.Long.fromValue(d.musicSongStartTimeInMs)).unsigned = false;
247
+ else if (typeof d.musicSongStartTimeInMs === "string")
248
+ m.musicSongStartTimeInMs = parseInt(d.musicSongStartTimeInMs, 10);
249
+ else if (typeof d.musicSongStartTimeInMs === "number")
250
+ m.musicSongStartTimeInMs = d.musicSongStartTimeInMs;
251
+ else if (typeof d.musicSongStartTimeInMs === "object")
252
+ m.musicSongStartTimeInMs = new $util.LongBits(d.musicSongStartTimeInMs.low >>> 0, d.musicSongStartTimeInMs.high >>> 0).toNumber();
253
+ }
254
+ if (d.derivedContentStartTimeInMs != null) {
255
+ if ($util.Long)
256
+ (m.derivedContentStartTimeInMs = $util.Long.fromValue(d.derivedContentStartTimeInMs)).unsigned = false;
257
+ else if (typeof d.derivedContentStartTimeInMs === "string")
258
+ m.derivedContentStartTimeInMs = parseInt(d.derivedContentStartTimeInMs, 10);
259
+ else if (typeof d.derivedContentStartTimeInMs === "number")
260
+ m.derivedContentStartTimeInMs = d.derivedContentStartTimeInMs;
261
+ else if (typeof d.derivedContentStartTimeInMs === "object")
262
+ m.derivedContentStartTimeInMs = new $util.LongBits(d.derivedContentStartTimeInMs.low >>> 0, d.derivedContentStartTimeInMs.high >>> 0).toNumber();
263
+ }
264
+ if (d.overlapDurationInMs != null) {
265
+ if ($util.Long)
266
+ (m.overlapDurationInMs = $util.Long.fromValue(d.overlapDurationInMs)).unsigned = false;
267
+ else if (typeof d.overlapDurationInMs === "string")
268
+ m.overlapDurationInMs = parseInt(d.overlapDurationInMs, 10);
269
+ else if (typeof d.overlapDurationInMs === "number")
270
+ m.overlapDurationInMs = d.overlapDurationInMs;
271
+ else if (typeof d.overlapDurationInMs === "object")
272
+ m.overlapDurationInMs = new $util.LongBits(d.overlapDurationInMs.low >>> 0, d.overlapDurationInMs.high >>> 0).toNumber();
273
+ }
274
+ return m;
275
+ };
276
+ EmbeddedMusic.toObject = function toObject(m, o) {
277
+ if (!o)
278
+ o = {};
279
+ var d = {};
280
+ if (m.musicContentMediaId != null && m.hasOwnProperty("musicContentMediaId")) {
281
+ d.musicContentMediaId = m.musicContentMediaId;
282
+ if (o.oneofs)
283
+ d._musicContentMediaId = "musicContentMediaId";
284
+ }
285
+ if (m.songId != null && m.hasOwnProperty("songId")) {
286
+ d.songId = m.songId;
287
+ if (o.oneofs)
288
+ d._songId = "songId";
289
+ }
290
+ if (m.author != null && m.hasOwnProperty("author")) {
291
+ d.author = m.author;
292
+ if (o.oneofs)
293
+ d._author = "author";
294
+ }
295
+ if (m.title != null && m.hasOwnProperty("title")) {
296
+ d.title = m.title;
297
+ if (o.oneofs)
298
+ d._title = "title";
299
+ }
300
+ if (m.artworkDirectPath != null && m.hasOwnProperty("artworkDirectPath")) {
301
+ d.artworkDirectPath = m.artworkDirectPath;
302
+ if (o.oneofs)
303
+ d._artworkDirectPath = "artworkDirectPath";
304
+ }
305
+ if (m.artworkSha256 != null && m.hasOwnProperty("artworkSha256")) {
306
+ d.artworkSha256 = o.bytes === String ? $util.base64.encode(m.artworkSha256, 0, m.artworkSha256.length) : o.bytes === Array ? Array.prototype.slice.call(m.artworkSha256) : m.artworkSha256;
307
+ if (o.oneofs)
308
+ d._artworkSha256 = "artworkSha256";
309
+ }
310
+ if (m.artworkEncSha256 != null && m.hasOwnProperty("artworkEncSha256")) {
311
+ d.artworkEncSha256 = o.bytes === String ? $util.base64.encode(m.artworkEncSha256, 0, m.artworkEncSha256.length) : o.bytes === Array ? Array.prototype.slice.call(m.artworkEncSha256) : m.artworkEncSha256;
312
+ if (o.oneofs)
313
+ d._artworkEncSha256 = "artworkEncSha256";
314
+ }
315
+ if (m.artistAttribution != null && m.hasOwnProperty("artistAttribution")) {
316
+ d.artistAttribution = m.artistAttribution;
317
+ if (o.oneofs)
318
+ d._artistAttribution = "artistAttribution";
319
+ }
320
+ if (m.countryBlocklist != null && m.hasOwnProperty("countryBlocklist")) {
321
+ d.countryBlocklist = o.bytes === String ? $util.base64.encode(m.countryBlocklist, 0, m.countryBlocklist.length) : o.bytes === Array ? Array.prototype.slice.call(m.countryBlocklist) : m.countryBlocklist;
322
+ if (o.oneofs)
323
+ d._countryBlocklist = "countryBlocklist";
324
+ }
325
+ if (m.isExplicit != null && m.hasOwnProperty("isExplicit")) {
326
+ d.isExplicit = m.isExplicit;
327
+ if (o.oneofs)
328
+ d._isExplicit = "isExplicit";
329
+ }
330
+ if (m.artworkMediaKey != null && m.hasOwnProperty("artworkMediaKey")) {
331
+ d.artworkMediaKey = o.bytes === String ? $util.base64.encode(m.artworkMediaKey, 0, m.artworkMediaKey.length) : o.bytes === Array ? Array.prototype.slice.call(m.artworkMediaKey) : m.artworkMediaKey;
332
+ if (o.oneofs)
333
+ d._artworkMediaKey = "artworkMediaKey";
334
+ }
335
+ if (m.musicSongStartTimeInMs != null && m.hasOwnProperty("musicSongStartTimeInMs")) {
336
+ if (typeof m.musicSongStartTimeInMs === "number")
337
+ d.musicSongStartTimeInMs = o.longs === String ? String(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
338
+ else
339
+ d.musicSongStartTimeInMs = o.longs === String ? longToString(m.musicSongStartTimeInMs) : o.longs === Number ? longToNumber(m.musicSongStartTimeInMs) : m.musicSongStartTimeInMs;
340
+ if (o.oneofs)
341
+ d._musicSongStartTimeInMs = "musicSongStartTimeInMs";
342
+ }
343
+ if (m.derivedContentStartTimeInMs != null && m.hasOwnProperty("derivedContentStartTimeInMs")) {
344
+ if (typeof m.derivedContentStartTimeInMs === "number")
345
+ d.derivedContentStartTimeInMs = o.longs === String ? String(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
346
+ else
347
+ d.derivedContentStartTimeInMs = o.longs === String ? longToString(m.derivedContentStartTimeInMs) : o.longs === Number ? longToNumber(m.derivedContentStartTimeInMs) : m.derivedContentStartTimeInMs;
348
+ if (o.oneofs)
349
+ d._derivedContentStartTimeInMs = "derivedContentStartTimeInMs";
350
+ }
351
+ if (m.overlapDurationInMs != null && m.hasOwnProperty("overlapDurationInMs")) {
352
+ if (typeof m.overlapDurationInMs === "number")
353
+ d.overlapDurationInMs = o.longs === String ? String(m.overlapDurationInMs) : m.overlapDurationInMs;
354
+ else
355
+ d.overlapDurationInMs = o.longs === String ? longToString(m.overlapDurationInMs) : o.longs === Number ? longToNumber(m.overlapDurationInMs) : m.overlapDurationInMs;
356
+ if (o.oneofs)
357
+ d._overlapDurationInMs = "overlapDurationInMs";
358
+ }
359
+ return d;
360
+ };
361
+ EmbeddedMusic.prototype.toJSON = function toJSON() {
362
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
363
+ };
364
+ EmbeddedMusic.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
365
+ if (typeUrlPrefix === undefined) {
366
+ typeUrlPrefix = "type.googleapis.com";
367
+ }
368
+ return typeUrlPrefix + "/proto.EmbeddedMusic";
369
+ };
370
+ return EmbeddedMusic;
@@ -0,0 +1,106 @@
1
+ "use strict";
2
+ function EncryptedPairingRequest(p) {
3
+ if (p)
4
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
5
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
6
+ this[ks[i]] = p[ks[i]];
7
+ }
8
+ EncryptedPairingRequest.prototype.encryptedPayload = null;
9
+ EncryptedPairingRequest.prototype.iv = null;
10
+ let $oneOfFields;
11
+ Object.defineProperty(EncryptedPairingRequest.prototype, "_encryptedPayload", {
12
+ get: $util.oneOfGetter($oneOfFields = ["encryptedPayload"]),
13
+ set: $util.oneOfSetter($oneOfFields)
14
+ });
15
+ Object.defineProperty(EncryptedPairingRequest.prototype, "_iv", {
16
+ get: $util.oneOfGetter($oneOfFields = ["iv"]),
17
+ set: $util.oneOfSetter($oneOfFields)
18
+ });
19
+ EncryptedPairingRequest.create = function create(properties) {
20
+ return new EncryptedPairingRequest(properties);
21
+ };
22
+ EncryptedPairingRequest.encode = function encode(m, w) {
23
+ if (!w)
24
+ w = $Writer.create();
25
+ if (m.encryptedPayload != null && Object.hasOwnProperty.call(m, "encryptedPayload"))
26
+ w.uint32(10).bytes(m.encryptedPayload);
27
+ if (m.iv != null && Object.hasOwnProperty.call(m, "iv"))
28
+ w.uint32(18).bytes(m.iv);
29
+ return w;
30
+ };
31
+ EncryptedPairingRequest.decode = function decode(r, l, e, n) {
32
+ if (!(r instanceof $Reader))
33
+ r = $Reader.create(r);
34
+ if (n === undefined)
35
+ n = 0;
36
+ if (n > $Reader.recursionLimit)
37
+ throw Error("maximum nesting depth exceeded");
38
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.EncryptedPairingRequest();
39
+ while (r.pos < c) {
40
+ var t = r.uint32();
41
+ if (t === e)
42
+ break;
43
+ switch (t >>> 3) {
44
+ case 1: {
45
+ m.encryptedPayload = r.bytes();
46
+ break;
47
+ }
48
+ case 2: {
49
+ m.iv = r.bytes();
50
+ break;
51
+ }
52
+ default:
53
+ r.skipType(t & 7, n);
54
+ break;
55
+ }
56
+ }
57
+ return m;
58
+ };
59
+ EncryptedPairingRequest.fromObject = function fromObject(d, n) {
60
+ if (d instanceof $root.proto.EncryptedPairingRequest)
61
+ return d;
62
+ if (n === undefined)
63
+ n = 0;
64
+ if (n > $util.recursionLimit)
65
+ throw Error("maximum nesting depth exceeded");
66
+ var m = new $root.proto.EncryptedPairingRequest();
67
+ if (d.encryptedPayload != null) {
68
+ if (typeof d.encryptedPayload === "string")
69
+ $util.base64.decode(d.encryptedPayload, m.encryptedPayload = $util.newBuffer($util.base64.length(d.encryptedPayload)), 0);
70
+ else if (d.encryptedPayload.length >= 0)
71
+ m.encryptedPayload = d.encryptedPayload;
72
+ }
73
+ if (d.iv != null) {
74
+ if (typeof d.iv === "string")
75
+ $util.base64.decode(d.iv, m.iv = $util.newBuffer($util.base64.length(d.iv)), 0);
76
+ else if (d.iv.length >= 0)
77
+ m.iv = d.iv;
78
+ }
79
+ return m;
80
+ };
81
+ EncryptedPairingRequest.toObject = function toObject(m, o) {
82
+ if (!o)
83
+ o = {};
84
+ var d = {};
85
+ if (m.encryptedPayload != null && m.hasOwnProperty("encryptedPayload")) {
86
+ d.encryptedPayload = o.bytes === String ? $util.base64.encode(m.encryptedPayload, 0, m.encryptedPayload.length) : o.bytes === Array ? Array.prototype.slice.call(m.encryptedPayload) : m.encryptedPayload;
87
+ if (o.oneofs)
88
+ d._encryptedPayload = "encryptedPayload";
89
+ }
90
+ if (m.iv != null && m.hasOwnProperty("iv")) {
91
+ d.iv = o.bytes === String ? $util.base64.encode(m.iv, 0, m.iv.length) : o.bytes === Array ? Array.prototype.slice.call(m.iv) : m.iv;
92
+ if (o.oneofs)
93
+ d._iv = "iv";
94
+ }
95
+ return d;
96
+ };
97
+ EncryptedPairingRequest.prototype.toJSON = function toJSON() {
98
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
99
+ };
100
+ EncryptedPairingRequest.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
101
+ if (typeUrlPrefix === undefined) {
102
+ typeUrlPrefix = "type.googleapis.com";
103
+ }
104
+ return typeUrlPrefix + "/proto.EncryptedPairingRequest";
105
+ };
106
+ return EncryptedPairingRequest;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ function EphemeralSetting(p) {
3
+ if (p)
4
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
5
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
6
+ this[ks[i]] = p[ks[i]];
7
+ }
8
+ EphemeralSetting.prototype.duration = null;
9
+ EphemeralSetting.prototype.timestamp = null;
10
+ let $oneOfFields;
11
+ Object.defineProperty(EphemeralSetting.prototype, "_duration", {
12
+ get: $util.oneOfGetter($oneOfFields = ["duration"]),
13
+ set: $util.oneOfSetter($oneOfFields)
14
+ });
15
+ Object.defineProperty(EphemeralSetting.prototype, "_timestamp", {
16
+ get: $util.oneOfGetter($oneOfFields = ["timestamp"]),
17
+ set: $util.oneOfSetter($oneOfFields)
18
+ });
19
+ EphemeralSetting.create = function create(properties) {
20
+ return new EphemeralSetting(properties);
21
+ };
22
+ EphemeralSetting.encode = function encode(m, w) {
23
+ if (!w)
24
+ w = $Writer.create();
25
+ if (m.duration != null && Object.hasOwnProperty.call(m, "duration"))
26
+ w.uint32(13).sfixed32(m.duration);
27
+ if (m.timestamp != null && Object.hasOwnProperty.call(m, "timestamp"))
28
+ w.uint32(17).sfixed64(m.timestamp);
29
+ return w;
30
+ };
31
+ EphemeralSetting.decode = function decode(r, l, e, n) {
32
+ if (!(r instanceof $Reader))
33
+ r = $Reader.create(r);
34
+ if (n === undefined)
35
+ n = 0;
36
+ if (n > $Reader.recursionLimit)
37
+ throw Error("maximum nesting depth exceeded");
38
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.EphemeralSetting();
39
+ while (r.pos < c) {
40
+ var t = r.uint32();
41
+ if (t === e)
42
+ break;
43
+ switch (t >>> 3) {
44
+ case 1: {
45
+ m.duration = r.sfixed32();
46
+ break;
47
+ }
48
+ case 2: {
49
+ m.timestamp = r.sfixed64();
50
+ break;
51
+ }
52
+ default:
53
+ r.skipType(t & 7, n);
54
+ break;
55
+ }
56
+ }
57
+ return m;
58
+ };
59
+ EphemeralSetting.fromObject = function fromObject(d, n) {
60
+ if (d instanceof $root.proto.EphemeralSetting)
61
+ return d;
62
+ if (n === undefined)
63
+ n = 0;
64
+ if (n > $util.recursionLimit)
65
+ throw Error("maximum nesting depth exceeded");
66
+ var m = new $root.proto.EphemeralSetting();
67
+ if (d.duration != null) {
68
+ m.duration = d.duration | 0;
69
+ }
70
+ if (d.timestamp != null) {
71
+ if ($util.Long)
72
+ (m.timestamp = $util.Long.fromValue(d.timestamp)).unsigned = false;
73
+ else if (typeof d.timestamp === "string")
74
+ m.timestamp = parseInt(d.timestamp, 10);
75
+ else if (typeof d.timestamp === "number")
76
+ m.timestamp = d.timestamp;
77
+ else if (typeof d.timestamp === "object")
78
+ m.timestamp = new $util.LongBits(d.timestamp.low >>> 0, d.timestamp.high >>> 0).toNumber();
79
+ }
80
+ return m;
81
+ };
82
+ EphemeralSetting.toObject = function toObject(m, o) {
83
+ if (!o)
84
+ o = {};
85
+ var d = {};
86
+ if (m.duration != null && m.hasOwnProperty("duration")) {
87
+ d.duration = m.duration;
88
+ if (o.oneofs)
89
+ d._duration = "duration";
90
+ }
91
+ if (m.timestamp != null && m.hasOwnProperty("timestamp")) {
92
+ if (typeof m.timestamp === "number")
93
+ d.timestamp = o.longs === String ? String(m.timestamp) : m.timestamp;
94
+ else
95
+ d.timestamp = o.longs === String ? longToString(m.timestamp) : o.longs === Number ? longToNumber(m.timestamp) : m.timestamp;
96
+ if (o.oneofs)
97
+ d._timestamp = "timestamp";
98
+ }
99
+ return d;
100
+ };
101
+ EphemeralSetting.prototype.toJSON = function toJSON() {
102
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
103
+ };
104
+ EphemeralSetting.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
105
+ if (typeUrlPrefix === undefined) {
106
+ typeUrlPrefix = "type.googleapis.com";
107
+ }
108
+ return typeUrlPrefix + "/proto.EphemeralSetting";
109
+ };
110
+ return EphemeralSetting;
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ function EventAdditionalMetadata(p) {
3
+ if (p)
4
+ for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
5
+ if (p[ks[i]] != null && ks[i] !== "__proto__")
6
+ this[ks[i]] = p[ks[i]];
7
+ }
8
+ EventAdditionalMetadata.prototype.isStale = null;
9
+ let $oneOfFields;
10
+ Object.defineProperty(EventAdditionalMetadata.prototype, "_isStale", {
11
+ get: $util.oneOfGetter($oneOfFields = ["isStale"]),
12
+ set: $util.oneOfSetter($oneOfFields)
13
+ });
14
+ EventAdditionalMetadata.create = function create(properties) {
15
+ return new EventAdditionalMetadata(properties);
16
+ };
17
+ EventAdditionalMetadata.encode = function encode(m, w) {
18
+ if (!w)
19
+ w = $Writer.create();
20
+ if (m.isStale != null && Object.hasOwnProperty.call(m, "isStale"))
21
+ w.uint32(8).bool(m.isStale);
22
+ return w;
23
+ };
24
+ EventAdditionalMetadata.decode = function decode(r, l, e, n) {
25
+ if (!(r instanceof $Reader))
26
+ r = $Reader.create(r);
27
+ if (n === undefined)
28
+ n = 0;
29
+ if (n > $Reader.recursionLimit)
30
+ throw Error("maximum nesting depth exceeded");
31
+ var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.EventAdditionalMetadata();
32
+ while (r.pos < c) {
33
+ var t = r.uint32();
34
+ if (t === e)
35
+ break;
36
+ switch (t >>> 3) {
37
+ case 1: {
38
+ m.isStale = r.bool();
39
+ break;
40
+ }
41
+ default:
42
+ r.skipType(t & 7, n);
43
+ break;
44
+ }
45
+ }
46
+ return m;
47
+ };
48
+ EventAdditionalMetadata.fromObject = function fromObject(d, n) {
49
+ if (d instanceof $root.proto.EventAdditionalMetadata)
50
+ return d;
51
+ if (n === undefined)
52
+ n = 0;
53
+ if (n > $util.recursionLimit)
54
+ throw Error("maximum nesting depth exceeded");
55
+ var m = new $root.proto.EventAdditionalMetadata();
56
+ if (d.isStale != null) {
57
+ m.isStale = Boolean(d.isStale);
58
+ }
59
+ return m;
60
+ };
61
+ EventAdditionalMetadata.toObject = function toObject(m, o) {
62
+ if (!o)
63
+ o = {};
64
+ var d = {};
65
+ if (m.isStale != null && m.hasOwnProperty("isStale")) {
66
+ d.isStale = m.isStale;
67
+ if (o.oneofs)
68
+ d._isStale = "isStale";
69
+ }
70
+ return d;
71
+ };
72
+ EventAdditionalMetadata.prototype.toJSON = function toJSON() {
73
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
74
+ };
75
+ EventAdditionalMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
76
+ if (typeUrlPrefix === undefined) {
77
+ typeUrlPrefix = "type.googleapis.com";
78
+ }
79
+ return typeUrlPrefix + "/proto.EventAdditionalMetadata";
80
+ };
81
+ return EventAdditionalMetadata;