@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.
- package/WAProto/index.js +231 -113252
- package/WAProto/parts/ADVDeviceIdentity.part +201 -0
- package/WAProto/parts/ADVEncryptionType.part +6 -0
- package/WAProto/parts/ADVKeyIndexList.part +201 -0
- package/WAProto/parts/ADVSignedDeviceIdentity.part +150 -0
- package/WAProto/parts/ADVSignedDeviceIdentityHMAC.part +142 -0
- package/WAProto/parts/ADVSignedKeyIndexList.part +128 -0
- package/WAProto/parts/AIHomeState.part +405 -0
- package/WAProto/parts/AIMediaCollectionMessage.part +119 -0
- package/WAProto/parts/AIMediaCollectionMetadata.part +100 -0
- package/WAProto/parts/AIMetadataOperation.part +83 -0
- package/WAProto/parts/AIQueryFanout.part +133 -0
- package/WAProto/parts/AIRegenerateMetadata.part +112 -0
- package/WAProto/parts/AIRichResponseCodeMetadata.part +252 -0
- package/WAProto/parts/AIRichResponseContentItemsMetadata.part +354 -0
- package/WAProto/parts/AIRichResponseDynamicMetadata.part +172 -0
- package/WAProto/parts/AIRichResponseGridImageMetadata.part +114 -0
- package/WAProto/parts/AIRichResponseImageURL.part +119 -0
- package/WAProto/parts/AIRichResponseInlineImageMetadata.part +164 -0
- package/WAProto/parts/AIRichResponseLatexMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMapMetadata.part +346 -0
- package/WAProto/parts/AIRichResponseMessage.part +167 -0
- package/WAProto/parts/AIRichResponseMessageType.part +5 -0
- package/WAProto/parts/AIRichResponseSubMessage.part +313 -0
- package/WAProto/parts/AIRichResponseSubMessageType.part +13 -0
- package/WAProto/parts/AIRichResponseTableMetadata.part +223 -0
- package/WAProto/parts/AIRichResponseUnifiedResponse.part +84 -0
- package/WAProto/parts/AISubscriptionRequestType.part +7 -0
- package/WAProto/parts/AISubscriptionUpsellMetadata.part +102 -0
- package/WAProto/parts/AIThreadInfo.part +316 -0
- package/WAProto/parts/Account.part +138 -0
- package/WAProto/parts/ActionLink.part +100 -0
- package/WAProto/parts/AutoDownloadSettings.part +138 -0
- package/WAProto/parts/AvatarUserSettings.part +100 -0
- package/WAProto/parts/BizAccountLinkInfo.part +210 -0
- package/WAProto/parts/BizAccountPayload.part +105 -0
- package/WAProto/parts/BizIdentityInfo.part +298 -0
- package/WAProto/parts/BotAgeCollectionMetadata.part +138 -0
- package/WAProto/parts/BotAgentDeepLinkMetadata.part +81 -0
- package/WAProto/parts/BotAgentMetadata.part +83 -0
- package/WAProto/parts/BotCapabilityMetadata.part +437 -0
- package/WAProto/parts/BotCommandMetadata.part +119 -0
- package/WAProto/parts/BotDocumentMessageMetadata.part +100 -0
- package/WAProto/parts/BotFeedbackMessage.part +1366 -0
- package/WAProto/parts/BotGroupMetadata.part +92 -0
- package/WAProto/parts/BotGroupParticipantMetadata.part +81 -0
- package/WAProto/parts/BotImagineMetadata.part +134 -0
- package/WAProto/parts/BotInfrastructureDiagnostics.part +148 -0
- package/WAProto/parts/BotLinkedAccount.part +95 -0
- package/WAProto/parts/BotLinkedAccountsMetadata.part +134 -0
- package/WAProto/parts/BotMediaMetadata.part +229 -0
- package/WAProto/parts/BotMemoryFact.part +100 -0
- package/WAProto/parts/BotMemoryMetadata.part +141 -0
- package/WAProto/parts/BotMemuMetadata.part +92 -0
- package/WAProto/parts/BotMessageOrigin.part +95 -0
- package/WAProto/parts/BotMessageOriginMetadata.part +92 -0
- package/WAProto/parts/BotMessageSharingInfo.part +297 -0
- package/WAProto/parts/BotMetadata.part +934 -0
- package/WAProto/parts/BotMetricsEntryPoint.part +51 -0
- package/WAProto/parts/BotMetricsMetadata.part +341 -0
- package/WAProto/parts/BotMetricsThreadEntryPoint.part +8 -0
- package/WAProto/parts/BotModeSelectionMetadata.part +151 -0
- package/WAProto/parts/BotModelMetadata.part +167 -0
- package/WAProto/parts/BotPluginMetadata.part +379 -0
- package/WAProto/parts/BotProgressIndicatorMetadata.part +837 -0
- package/WAProto/parts/BotPromotionMessageMetadata.part +124 -0
- package/WAProto/parts/BotPromptSuggestion.part +100 -0
- package/WAProto/parts/BotPromptSuggestions.part +92 -0
- package/WAProto/parts/BotPttPromptMetadata.part +81 -0
- package/WAProto/parts/BotQuotaMetadata.part +241 -0
- package/WAProto/parts/BotReminderMetadata.part +232 -0
- package/WAProto/parts/BotRenderingConfigMetadata.part +100 -0
- package/WAProto/parts/BotRenderingMetadata.part +203 -0
- package/WAProto/parts/BotResolvedToolCallMetadata.part +100 -0
- package/WAProto/parts/BotSessionMetadata.part +137 -0
- package/WAProto/parts/BotSessionSource.part +11 -0
- package/WAProto/parts/BotSignatureVerificationMetadata.part +92 -0
- package/WAProto/parts/BotSignatureVerificationUseCaseProof.part +183 -0
- package/WAProto/parts/BotSourcesMetadata.part +322 -0
- package/WAProto/parts/BotSuggestedPromptMetadata.part +150 -0
- package/WAProto/parts/BotUnifiedResponseMutation.part +339 -0
- package/WAProto/parts/CallLogRecord.part +646 -0
- package/WAProto/parts/CertChain.part +392 -0
- package/WAProto/parts/ChatLockSettings.part +102 -0
- package/WAProto/parts/ChatRowOpaqueData.part +712 -0
- package/WAProto/parts/Citation.part +119 -0
- package/WAProto/parts/ClientPairingProps.part +160 -0
- package/WAProto/parts/ClientPayload.part +2892 -0
- package/WAProto/parts/CollectionName.part +9 -0
- package/WAProto/parts/CommentMetadata.part +102 -0
- package/WAProto/parts/CompanionCommitment.part +84 -0
- package/WAProto/parts/CompanionEphemeralIdentity.part +227 -0
- package/WAProto/parts/Config.part +136 -0
- package/WAProto/parts/ContextInfo.part +4137 -0
- package/WAProto/parts/Conversation.part +1472 -0
- package/WAProto/parts/DeviceCapabilities.part +670 -0
- package/WAProto/parts/DeviceConsistencyCodeMessage.part +103 -0
- package/WAProto/parts/DeviceListMetadata.part +306 -0
- package/WAProto/parts/DeviceProps.part +982 -0
- package/WAProto/parts/DisappearingMode.part +206 -0
- package/WAProto/parts/EmbeddedContent.part +100 -0
- package/WAProto/parts/EmbeddedMessage.part +102 -0
- package/WAProto/parts/EmbeddedMusic.part +370 -0
- package/WAProto/parts/EncryptedPairingRequest.part +106 -0
- package/WAProto/parts/EphemeralSetting.part +110 -0
- package/WAProto/parts/EventAdditionalMetadata.part +81 -0
- package/WAProto/parts/EventResponse.part +152 -0
- package/WAProto/parts/ExitCode.part +110 -0
- package/WAProto/parts/ExternalBlobReference.part +195 -0
- package/WAProto/parts/Field.part +193 -0
- package/WAProto/parts/ForwardedAIBotMessageInfo.part +119 -0
- package/WAProto/parts/GlobalSettings.part +497 -0
- package/WAProto/parts/GroupHistoryBundleInfo.part +141 -0
- package/WAProto/parts/GroupHistoryIndividualMessageInfo.part +102 -0
- package/WAProto/parts/GroupMention.part +100 -0
- package/WAProto/parts/GroupParticipant.part +142 -0
- package/WAProto/parts/GroupRootKeyShare.part +92 -0
- package/WAProto/parts/GroupRootKeyShareEntry.part +161 -0
- package/WAProto/parts/HandshakeMessage.part +815 -0
- package/WAProto/parts/HatchMetadataSync.part +132 -0
- package/WAProto/parts/HistorySync.part +605 -0
- package/WAProto/parts/HistorySyncMsg.part +112 -0
- package/WAProto/parts/HydratedTemplateButton.part +501 -0
- package/WAProto/parts/IdentityKeyPairStructure.part +106 -0
- package/WAProto/parts/InThreadSurveyMetadata.part +779 -0
- package/WAProto/parts/InlineContact.part +157 -0
- package/WAProto/parts/InteractiveAnnotation.part +246 -0
- package/WAProto/parts/InteractiveMessageAdditionalMetadata.part +81 -0
- package/WAProto/parts/KeepInChat.part +225 -0
- package/WAProto/parts/KeepType.part +6 -0
- package/WAProto/parts/KeyExchangeMessage.part +169 -0
- package/WAProto/parts/KeyId.part +84 -0
- package/WAProto/parts/LIDMigrationMapping.part +149 -0
- package/WAProto/parts/LIDMigrationMappingSyncMessage.part +84 -0
- package/WAProto/parts/LIDMigrationMappingSyncPayload.part +122 -0
- package/WAProto/parts/LegacyMessage.part +104 -0
- package/WAProto/parts/LimitSharing.part +177 -0
- package/WAProto/parts/LocalizedName.part +119 -0
- package/WAProto/parts/Location.part +119 -0
- package/WAProto/parts/MediaData.part +81 -0
- package/WAProto/parts/MediaDomainInfo.part +120 -0
- package/WAProto/parts/MediaKeyDomain.part +6 -0
- package/WAProto/parts/MediaNotifyMessage.part +132 -0
- package/WAProto/parts/MediaRetryNotification.part +170 -0
- package/WAProto/parts/MediaVisibility.part +6 -0
- package/WAProto/parts/MemberLabel.part +110 -0
- package/WAProto/parts/Message.part +32376 -0
- package/WAProto/parts/MessageAddOn.part +305 -0
- package/WAProto/parts/MessageAddOnContextInfo.part +113 -0
- package/WAProto/parts/MessageAssociation.part +235 -0
- package/WAProto/parts/MessageContextInfo.part +451 -0
- package/WAProto/parts/MessageKey.part +138 -0
- package/WAProto/parts/MessageSecretMessage.part +125 -0
- package/WAProto/parts/Money.part +129 -0
- package/WAProto/parts/MsgOpaqueData.part +1732 -0
- package/WAProto/parts/MsgRowOpaqueData.part +104 -0
- package/WAProto/parts/MutationProps.part +89 -0
- package/WAProto/parts/NoiseCertificate.part +277 -0
- package/WAProto/parts/NotificationMessageInfo.part +152 -0
- package/WAProto/parts/NotificationSettings.part +176 -0
- package/WAProto/parts/PairingRequest.part +128 -0
- package/WAProto/parts/PastParticipant.part +148 -0
- package/WAProto/parts/PastParticipants.part +112 -0
- package/WAProto/parts/PatchDebugData.part +358 -0
- package/WAProto/parts/PaymentBackground.part +460 -0
- package/WAProto/parts/PaymentInfo.part +602 -0
- package/WAProto/parts/PhoneNumberToLIDMapping.part +100 -0
- package/WAProto/parts/PhotoChange.part +125 -0
- package/WAProto/parts/PinInChat.part +205 -0
- package/WAProto/parts/Point.part +138 -0
- package/WAProto/parts/PollAdditionalMetadata.part +216 -0
- package/WAProto/parts/PollEncValue.part +106 -0
- package/WAProto/parts/PollUpdate.part +202 -0
- package/WAProto/parts/PreKeyRecordStructure.part +125 -0
- package/WAProto/parts/PreKeySignalMessage.part +185 -0
- package/WAProto/parts/PremiumMessageInfo.part +81 -0
- package/WAProto/parts/PrimaryEphemeralIdentity.part +106 -0
- package/WAProto/parts/PrivacySystemMessage.part +6 -0
- package/WAProto/parts/ProcessedVideo.part +266 -0
- package/WAProto/parts/ProloguePayload.part +105 -0
- package/WAProto/parts/Pushname.part +100 -0
- package/WAProto/parts/QuarantinedMessage.part +103 -0
- package/WAProto/parts/Reaction.part +169 -0
- package/WAProto/parts/RecentEmojiWeight.part +100 -0
- package/WAProto/parts/RecordStructure.part +114 -0
- package/WAProto/parts/Reportable.part +138 -0
- package/WAProto/parts/ReportingTokenInfo.part +84 -0
- package/WAProto/parts/ScheduledMessageMetadata.part +132 -0
- package/WAProto/parts/SenderKeyDistributionMessage.part +144 -0
- package/WAProto/parts/SenderKeyMessage.part +122 -0
- package/WAProto/parts/SenderKeyRecordStructure.part +92 -0
- package/WAProto/parts/SenderKeyStateStructure.part +469 -0
- package/WAProto/parts/ServerErrorReceipt.part +81 -0
- package/WAProto/parts/SessionStructure.part +1087 -0
- package/WAProto/parts/SessionTransparencyMetadata.part +132 -0
- package/WAProto/parts/SessionTransparencyType.part +5 -0
- package/WAProto/parts/SignalMessage.part +144 -0
- package/WAProto/parts/SignedPreKeyRecordStructure.part +176 -0
- package/WAProto/parts/StatusAttribution.part +1235 -0
- package/WAProto/parts/StatusMentionMessage.part +83 -0
- package/WAProto/parts/StatusPSA.part +121 -0
- package/WAProto/parts/StickerMetadata.part +357 -0
- package/WAProto/parts/SyncActionData.part +146 -0
- package/WAProto/parts/SyncActionValue.part +12959 -0
- package/WAProto/parts/SyncdIndex.part +84 -0
- package/WAProto/parts/SyncdMutation.part +121 -0
- package/WAProto/parts/SyncdMutations.part +92 -0
- package/WAProto/parts/SyncdPatch.part +262 -0
- package/WAProto/parts/SyncdRecord.part +125 -0
- package/WAProto/parts/SyncdSnapshot.part +157 -0
- package/WAProto/parts/SyncdValue.part +84 -0
- package/WAProto/parts/SyncdVersion.part +91 -0
- package/WAProto/parts/TapLinkAction.part +100 -0
- package/WAProto/parts/TemplateButton.part +449 -0
- package/WAProto/parts/ThreadID.part +126 -0
- package/WAProto/parts/UrlTrackingMap.part +231 -0
- package/WAProto/parts/UserPassword.part +399 -0
- package/WAProto/parts/UserReceipt.part +221 -0
- package/WAProto/parts/VerifiedNameCertificate.part +318 -0
- package/WAProto/parts/WallpaperSettings.part +119 -0
- package/WAProto/parts/WebFeatures.part +1870 -0
- package/WAProto/parts/WebLinkRenderConfig.part +5 -0
- package/WAProto/parts/WebMessageInfo.part +2851 -0
- package/WAProto/parts/WebNotificationsInfo.part +160 -0
- package/package.json +1 -1
- package/src/socket/messages-recv.js +3 -1
- package/src/socket/messages-send.js +25 -10
- package/src/socket/socket-core.js +53 -57
- package/src/utils/wa-protocol-core.js +3 -9
|
@@ -0,0 +1,4137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function ContextInfo(p) {
|
|
3
|
+
this.mentionedJid = [];
|
|
4
|
+
this.groupMentions = [];
|
|
5
|
+
this.statusAttributions = [];
|
|
6
|
+
if (p)
|
|
7
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
8
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
9
|
+
this[ks[i]] = p[ks[i]];
|
|
10
|
+
}
|
|
11
|
+
ContextInfo.prototype.stanzaId = null;
|
|
12
|
+
ContextInfo.prototype.participant = null;
|
|
13
|
+
ContextInfo.prototype.quotedMessage = null;
|
|
14
|
+
ContextInfo.prototype.remoteJid = null;
|
|
15
|
+
ContextInfo.prototype.mentionedJid = $util.emptyArray;
|
|
16
|
+
ContextInfo.prototype.conversionSource = null;
|
|
17
|
+
ContextInfo.prototype.conversionData = null;
|
|
18
|
+
ContextInfo.prototype.conversionDelaySeconds = null;
|
|
19
|
+
ContextInfo.prototype.forwardingScore = null;
|
|
20
|
+
ContextInfo.prototype.isForwarded = null;
|
|
21
|
+
ContextInfo.prototype.quotedAd = null;
|
|
22
|
+
ContextInfo.prototype.placeholderKey = null;
|
|
23
|
+
ContextInfo.prototype.expiration = null;
|
|
24
|
+
ContextInfo.prototype.ephemeralSettingTimestamp = null;
|
|
25
|
+
ContextInfo.prototype.ephemeralSharedSecret = null;
|
|
26
|
+
ContextInfo.prototype.externalAdReply = null;
|
|
27
|
+
ContextInfo.prototype.entryPointConversionSource = null;
|
|
28
|
+
ContextInfo.prototype.entryPointConversionApp = null;
|
|
29
|
+
ContextInfo.prototype.entryPointConversionDelaySeconds = null;
|
|
30
|
+
ContextInfo.prototype.disappearingMode = null;
|
|
31
|
+
ContextInfo.prototype.actionLink = null;
|
|
32
|
+
ContextInfo.prototype.groupSubject = null;
|
|
33
|
+
ContextInfo.prototype.parentGroupJid = null;
|
|
34
|
+
ContextInfo.prototype.trustBannerType = null;
|
|
35
|
+
ContextInfo.prototype.trustBannerAction = null;
|
|
36
|
+
ContextInfo.prototype.isSampled = null;
|
|
37
|
+
ContextInfo.prototype.groupMentions = $util.emptyArray;
|
|
38
|
+
ContextInfo.prototype.utm = null;
|
|
39
|
+
ContextInfo.prototype.forwardedNewsletterMessageInfo = null;
|
|
40
|
+
ContextInfo.prototype.businessMessageForwardInfo = null;
|
|
41
|
+
ContextInfo.prototype.smbClientCampaignId = null;
|
|
42
|
+
ContextInfo.prototype.smbServerCampaignId = null;
|
|
43
|
+
ContextInfo.prototype.dataSharingContext = null;
|
|
44
|
+
ContextInfo.prototype.alwaysShowAdAttribution = null;
|
|
45
|
+
ContextInfo.prototype.featureEligibilities = null;
|
|
46
|
+
ContextInfo.prototype.entryPointConversionExternalSource = null;
|
|
47
|
+
ContextInfo.prototype.entryPointConversionExternalMedium = null;
|
|
48
|
+
ContextInfo.prototype.ctwaSignals = null;
|
|
49
|
+
ContextInfo.prototype.ctwaPayload = null;
|
|
50
|
+
ContextInfo.prototype.forwardedAiBotMessageInfo = null;
|
|
51
|
+
ContextInfo.prototype.statusAttributionType = null;
|
|
52
|
+
ContextInfo.prototype.urlTrackingMap = null;
|
|
53
|
+
ContextInfo.prototype.pairedMediaType = null;
|
|
54
|
+
ContextInfo.prototype.rankingVersion = null;
|
|
55
|
+
ContextInfo.prototype.memberLabel = null;
|
|
56
|
+
ContextInfo.prototype.isQuestion = null;
|
|
57
|
+
ContextInfo.prototype.statusSourceType = null;
|
|
58
|
+
ContextInfo.prototype.statusAttributions = $util.emptyArray;
|
|
59
|
+
ContextInfo.prototype.isGroupStatus = null;
|
|
60
|
+
ContextInfo.prototype.forwardOrigin = null;
|
|
61
|
+
ContextInfo.prototype.questionReplyQuotedMessage = null;
|
|
62
|
+
ContextInfo.prototype.statusAudienceMetadata = null;
|
|
63
|
+
ContextInfo.prototype.nonJidMentions = null;
|
|
64
|
+
ContextInfo.prototype.quotedType = null;
|
|
65
|
+
ContextInfo.prototype.botMessageSharingInfo = null;
|
|
66
|
+
ContextInfo.prototype.isSpoiler = null;
|
|
67
|
+
ContextInfo.prototype.mediaDomainInfo = null;
|
|
68
|
+
ContextInfo.prototype.partiallySelectedContent = null;
|
|
69
|
+
ContextInfo.prototype.afterReadDuration = null;
|
|
70
|
+
ContextInfo.prototype.crossAppSource = null;
|
|
71
|
+
ContextInfo.prototype.businessInteractionPills = null;
|
|
72
|
+
ContextInfo.prototype.posterStatusId = null;
|
|
73
|
+
let $oneOfFields;
|
|
74
|
+
Object.defineProperty(ContextInfo.prototype, "_stanzaId", {
|
|
75
|
+
get: $util.oneOfGetter($oneOfFields = ["stanzaId"]),
|
|
76
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
77
|
+
});
|
|
78
|
+
Object.defineProperty(ContextInfo.prototype, "_participant", {
|
|
79
|
+
get: $util.oneOfGetter($oneOfFields = ["participant"]),
|
|
80
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
81
|
+
});
|
|
82
|
+
Object.defineProperty(ContextInfo.prototype, "_quotedMessage", {
|
|
83
|
+
get: $util.oneOfGetter($oneOfFields = ["quotedMessage"]),
|
|
84
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
85
|
+
});
|
|
86
|
+
Object.defineProperty(ContextInfo.prototype, "_remoteJid", {
|
|
87
|
+
get: $util.oneOfGetter($oneOfFields = ["remoteJid"]),
|
|
88
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
89
|
+
});
|
|
90
|
+
Object.defineProperty(ContextInfo.prototype, "_conversionSource", {
|
|
91
|
+
get: $util.oneOfGetter($oneOfFields = ["conversionSource"]),
|
|
92
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
93
|
+
});
|
|
94
|
+
Object.defineProperty(ContextInfo.prototype, "_conversionData", {
|
|
95
|
+
get: $util.oneOfGetter($oneOfFields = ["conversionData"]),
|
|
96
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
97
|
+
});
|
|
98
|
+
Object.defineProperty(ContextInfo.prototype, "_conversionDelaySeconds", {
|
|
99
|
+
get: $util.oneOfGetter($oneOfFields = ["conversionDelaySeconds"]),
|
|
100
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
101
|
+
});
|
|
102
|
+
Object.defineProperty(ContextInfo.prototype, "_forwardingScore", {
|
|
103
|
+
get: $util.oneOfGetter($oneOfFields = ["forwardingScore"]),
|
|
104
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
105
|
+
});
|
|
106
|
+
Object.defineProperty(ContextInfo.prototype, "_isForwarded", {
|
|
107
|
+
get: $util.oneOfGetter($oneOfFields = ["isForwarded"]),
|
|
108
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
109
|
+
});
|
|
110
|
+
Object.defineProperty(ContextInfo.prototype, "_quotedAd", {
|
|
111
|
+
get: $util.oneOfGetter($oneOfFields = ["quotedAd"]),
|
|
112
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
113
|
+
});
|
|
114
|
+
Object.defineProperty(ContextInfo.prototype, "_placeholderKey", {
|
|
115
|
+
get: $util.oneOfGetter($oneOfFields = ["placeholderKey"]),
|
|
116
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(ContextInfo.prototype, "_expiration", {
|
|
119
|
+
get: $util.oneOfGetter($oneOfFields = ["expiration"]),
|
|
120
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(ContextInfo.prototype, "_ephemeralSettingTimestamp", {
|
|
123
|
+
get: $util.oneOfGetter($oneOfFields = ["ephemeralSettingTimestamp"]),
|
|
124
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(ContextInfo.prototype, "_ephemeralSharedSecret", {
|
|
127
|
+
get: $util.oneOfGetter($oneOfFields = ["ephemeralSharedSecret"]),
|
|
128
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(ContextInfo.prototype, "_externalAdReply", {
|
|
131
|
+
get: $util.oneOfGetter($oneOfFields = ["externalAdReply"]),
|
|
132
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
133
|
+
});
|
|
134
|
+
Object.defineProperty(ContextInfo.prototype, "_entryPointConversionSource", {
|
|
135
|
+
get: $util.oneOfGetter($oneOfFields = ["entryPointConversionSource"]),
|
|
136
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
137
|
+
});
|
|
138
|
+
Object.defineProperty(ContextInfo.prototype, "_entryPointConversionApp", {
|
|
139
|
+
get: $util.oneOfGetter($oneOfFields = ["entryPointConversionApp"]),
|
|
140
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
141
|
+
});
|
|
142
|
+
Object.defineProperty(ContextInfo.prototype, "_entryPointConversionDelaySeconds", {
|
|
143
|
+
get: $util.oneOfGetter($oneOfFields = ["entryPointConversionDelaySeconds"]),
|
|
144
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(ContextInfo.prototype, "_disappearingMode", {
|
|
147
|
+
get: $util.oneOfGetter($oneOfFields = ["disappearingMode"]),
|
|
148
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(ContextInfo.prototype, "_actionLink", {
|
|
151
|
+
get: $util.oneOfGetter($oneOfFields = ["actionLink"]),
|
|
152
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(ContextInfo.prototype, "_groupSubject", {
|
|
155
|
+
get: $util.oneOfGetter($oneOfFields = ["groupSubject"]),
|
|
156
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
157
|
+
});
|
|
158
|
+
Object.defineProperty(ContextInfo.prototype, "_parentGroupJid", {
|
|
159
|
+
get: $util.oneOfGetter($oneOfFields = ["parentGroupJid"]),
|
|
160
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
161
|
+
});
|
|
162
|
+
Object.defineProperty(ContextInfo.prototype, "_trustBannerType", {
|
|
163
|
+
get: $util.oneOfGetter($oneOfFields = ["trustBannerType"]),
|
|
164
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
165
|
+
});
|
|
166
|
+
Object.defineProperty(ContextInfo.prototype, "_trustBannerAction", {
|
|
167
|
+
get: $util.oneOfGetter($oneOfFields = ["trustBannerAction"]),
|
|
168
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
169
|
+
});
|
|
170
|
+
Object.defineProperty(ContextInfo.prototype, "_isSampled", {
|
|
171
|
+
get: $util.oneOfGetter($oneOfFields = ["isSampled"]),
|
|
172
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
173
|
+
});
|
|
174
|
+
Object.defineProperty(ContextInfo.prototype, "_utm", {
|
|
175
|
+
get: $util.oneOfGetter($oneOfFields = ["utm"]),
|
|
176
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
177
|
+
});
|
|
178
|
+
Object.defineProperty(ContextInfo.prototype, "_forwardedNewsletterMessageInfo", {
|
|
179
|
+
get: $util.oneOfGetter($oneOfFields = ["forwardedNewsletterMessageInfo"]),
|
|
180
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
181
|
+
});
|
|
182
|
+
Object.defineProperty(ContextInfo.prototype, "_businessMessageForwardInfo", {
|
|
183
|
+
get: $util.oneOfGetter($oneOfFields = ["businessMessageForwardInfo"]),
|
|
184
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
185
|
+
});
|
|
186
|
+
Object.defineProperty(ContextInfo.prototype, "_smbClientCampaignId", {
|
|
187
|
+
get: $util.oneOfGetter($oneOfFields = ["smbClientCampaignId"]),
|
|
188
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
189
|
+
});
|
|
190
|
+
Object.defineProperty(ContextInfo.prototype, "_smbServerCampaignId", {
|
|
191
|
+
get: $util.oneOfGetter($oneOfFields = ["smbServerCampaignId"]),
|
|
192
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
193
|
+
});
|
|
194
|
+
Object.defineProperty(ContextInfo.prototype, "_dataSharingContext", {
|
|
195
|
+
get: $util.oneOfGetter($oneOfFields = ["dataSharingContext"]),
|
|
196
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
197
|
+
});
|
|
198
|
+
Object.defineProperty(ContextInfo.prototype, "_alwaysShowAdAttribution", {
|
|
199
|
+
get: $util.oneOfGetter($oneOfFields = ["alwaysShowAdAttribution"]),
|
|
200
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
201
|
+
});
|
|
202
|
+
Object.defineProperty(ContextInfo.prototype, "_featureEligibilities", {
|
|
203
|
+
get: $util.oneOfGetter($oneOfFields = ["featureEligibilities"]),
|
|
204
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
205
|
+
});
|
|
206
|
+
Object.defineProperty(ContextInfo.prototype, "_entryPointConversionExternalSource", {
|
|
207
|
+
get: $util.oneOfGetter($oneOfFields = ["entryPointConversionExternalSource"]),
|
|
208
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(ContextInfo.prototype, "_entryPointConversionExternalMedium", {
|
|
211
|
+
get: $util.oneOfGetter($oneOfFields = ["entryPointConversionExternalMedium"]),
|
|
212
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
213
|
+
});
|
|
214
|
+
Object.defineProperty(ContextInfo.prototype, "_ctwaSignals", {
|
|
215
|
+
get: $util.oneOfGetter($oneOfFields = ["ctwaSignals"]),
|
|
216
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
217
|
+
});
|
|
218
|
+
Object.defineProperty(ContextInfo.prototype, "_ctwaPayload", {
|
|
219
|
+
get: $util.oneOfGetter($oneOfFields = ["ctwaPayload"]),
|
|
220
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
221
|
+
});
|
|
222
|
+
Object.defineProperty(ContextInfo.prototype, "_forwardedAiBotMessageInfo", {
|
|
223
|
+
get: $util.oneOfGetter($oneOfFields = ["forwardedAiBotMessageInfo"]),
|
|
224
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
225
|
+
});
|
|
226
|
+
Object.defineProperty(ContextInfo.prototype, "_statusAttributionType", {
|
|
227
|
+
get: $util.oneOfGetter($oneOfFields = ["statusAttributionType"]),
|
|
228
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
229
|
+
});
|
|
230
|
+
Object.defineProperty(ContextInfo.prototype, "_urlTrackingMap", {
|
|
231
|
+
get: $util.oneOfGetter($oneOfFields = ["urlTrackingMap"]),
|
|
232
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
233
|
+
});
|
|
234
|
+
Object.defineProperty(ContextInfo.prototype, "_pairedMediaType", {
|
|
235
|
+
get: $util.oneOfGetter($oneOfFields = ["pairedMediaType"]),
|
|
236
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(ContextInfo.prototype, "_rankingVersion", {
|
|
239
|
+
get: $util.oneOfGetter($oneOfFields = ["rankingVersion"]),
|
|
240
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
241
|
+
});
|
|
242
|
+
Object.defineProperty(ContextInfo.prototype, "_memberLabel", {
|
|
243
|
+
get: $util.oneOfGetter($oneOfFields = ["memberLabel"]),
|
|
244
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(ContextInfo.prototype, "_isQuestion", {
|
|
247
|
+
get: $util.oneOfGetter($oneOfFields = ["isQuestion"]),
|
|
248
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
249
|
+
});
|
|
250
|
+
Object.defineProperty(ContextInfo.prototype, "_statusSourceType", {
|
|
251
|
+
get: $util.oneOfGetter($oneOfFields = ["statusSourceType"]),
|
|
252
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
253
|
+
});
|
|
254
|
+
Object.defineProperty(ContextInfo.prototype, "_isGroupStatus", {
|
|
255
|
+
get: $util.oneOfGetter($oneOfFields = ["isGroupStatus"]),
|
|
256
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
257
|
+
});
|
|
258
|
+
Object.defineProperty(ContextInfo.prototype, "_forwardOrigin", {
|
|
259
|
+
get: $util.oneOfGetter($oneOfFields = ["forwardOrigin"]),
|
|
260
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
261
|
+
});
|
|
262
|
+
Object.defineProperty(ContextInfo.prototype, "_questionReplyQuotedMessage", {
|
|
263
|
+
get: $util.oneOfGetter($oneOfFields = ["questionReplyQuotedMessage"]),
|
|
264
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
265
|
+
});
|
|
266
|
+
Object.defineProperty(ContextInfo.prototype, "_statusAudienceMetadata", {
|
|
267
|
+
get: $util.oneOfGetter($oneOfFields = ["statusAudienceMetadata"]),
|
|
268
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
269
|
+
});
|
|
270
|
+
Object.defineProperty(ContextInfo.prototype, "_nonJidMentions", {
|
|
271
|
+
get: $util.oneOfGetter($oneOfFields = ["nonJidMentions"]),
|
|
272
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
273
|
+
});
|
|
274
|
+
Object.defineProperty(ContextInfo.prototype, "_quotedType", {
|
|
275
|
+
get: $util.oneOfGetter($oneOfFields = ["quotedType"]),
|
|
276
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
277
|
+
});
|
|
278
|
+
Object.defineProperty(ContextInfo.prototype, "_botMessageSharingInfo", {
|
|
279
|
+
get: $util.oneOfGetter($oneOfFields = ["botMessageSharingInfo"]),
|
|
280
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
281
|
+
});
|
|
282
|
+
Object.defineProperty(ContextInfo.prototype, "_isSpoiler", {
|
|
283
|
+
get: $util.oneOfGetter($oneOfFields = ["isSpoiler"]),
|
|
284
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
285
|
+
});
|
|
286
|
+
Object.defineProperty(ContextInfo.prototype, "_mediaDomainInfo", {
|
|
287
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaDomainInfo"]),
|
|
288
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
289
|
+
});
|
|
290
|
+
Object.defineProperty(ContextInfo.prototype, "_partiallySelectedContent", {
|
|
291
|
+
get: $util.oneOfGetter($oneOfFields = ["partiallySelectedContent"]),
|
|
292
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
293
|
+
});
|
|
294
|
+
Object.defineProperty(ContextInfo.prototype, "_afterReadDuration", {
|
|
295
|
+
get: $util.oneOfGetter($oneOfFields = ["afterReadDuration"]),
|
|
296
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
297
|
+
});
|
|
298
|
+
Object.defineProperty(ContextInfo.prototype, "_crossAppSource", {
|
|
299
|
+
get: $util.oneOfGetter($oneOfFields = ["crossAppSource"]),
|
|
300
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
301
|
+
});
|
|
302
|
+
Object.defineProperty(ContextInfo.prototype, "_businessInteractionPills", {
|
|
303
|
+
get: $util.oneOfGetter($oneOfFields = ["businessInteractionPills"]),
|
|
304
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
305
|
+
});
|
|
306
|
+
Object.defineProperty(ContextInfo.prototype, "_posterStatusId", {
|
|
307
|
+
get: $util.oneOfGetter($oneOfFields = ["posterStatusId"]),
|
|
308
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
309
|
+
});
|
|
310
|
+
ContextInfo.create = function create(properties) {
|
|
311
|
+
return new ContextInfo(properties);
|
|
312
|
+
};
|
|
313
|
+
ContextInfo.encode = function encode(m, w) {
|
|
314
|
+
if (!w)
|
|
315
|
+
w = $Writer.create();
|
|
316
|
+
if (m.stanzaId != null && Object.hasOwnProperty.call(m, "stanzaId"))
|
|
317
|
+
w.uint32(10).string(m.stanzaId);
|
|
318
|
+
if (m.participant != null && Object.hasOwnProperty.call(m, "participant"))
|
|
319
|
+
w.uint32(18).string(m.participant);
|
|
320
|
+
if (m.quotedMessage != null && Object.hasOwnProperty.call(m, "quotedMessage"))
|
|
321
|
+
$root.proto.Message.encode(m.quotedMessage, w.uint32(26).fork()).ldelim();
|
|
322
|
+
if (m.remoteJid != null && Object.hasOwnProperty.call(m, "remoteJid"))
|
|
323
|
+
w.uint32(34).string(m.remoteJid);
|
|
324
|
+
if (m.mentionedJid != null && m.mentionedJid.length) {
|
|
325
|
+
for (var i = 0; i < m.mentionedJid.length; ++i)
|
|
326
|
+
w.uint32(122).string(m.mentionedJid[i]);
|
|
327
|
+
}
|
|
328
|
+
if (m.conversionSource != null && Object.hasOwnProperty.call(m, "conversionSource"))
|
|
329
|
+
w.uint32(146).string(m.conversionSource);
|
|
330
|
+
if (m.conversionData != null && Object.hasOwnProperty.call(m, "conversionData"))
|
|
331
|
+
w.uint32(154).bytes(m.conversionData);
|
|
332
|
+
if (m.conversionDelaySeconds != null && Object.hasOwnProperty.call(m, "conversionDelaySeconds"))
|
|
333
|
+
w.uint32(160).uint32(m.conversionDelaySeconds);
|
|
334
|
+
if (m.forwardingScore != null && Object.hasOwnProperty.call(m, "forwardingScore"))
|
|
335
|
+
w.uint32(168).uint32(m.forwardingScore);
|
|
336
|
+
if (m.isForwarded != null && Object.hasOwnProperty.call(m, "isForwarded"))
|
|
337
|
+
w.uint32(176).bool(m.isForwarded);
|
|
338
|
+
if (m.quotedAd != null && Object.hasOwnProperty.call(m, "quotedAd"))
|
|
339
|
+
$root.proto.ContextInfo.AdReplyInfo.encode(m.quotedAd, w.uint32(186).fork()).ldelim();
|
|
340
|
+
if (m.placeholderKey != null && Object.hasOwnProperty.call(m, "placeholderKey"))
|
|
341
|
+
$root.proto.MessageKey.encode(m.placeholderKey, w.uint32(194).fork()).ldelim();
|
|
342
|
+
if (m.expiration != null && Object.hasOwnProperty.call(m, "expiration"))
|
|
343
|
+
w.uint32(200).uint32(m.expiration);
|
|
344
|
+
if (m.ephemeralSettingTimestamp != null && Object.hasOwnProperty.call(m, "ephemeralSettingTimestamp"))
|
|
345
|
+
w.uint32(208).int64(m.ephemeralSettingTimestamp);
|
|
346
|
+
if (m.ephemeralSharedSecret != null && Object.hasOwnProperty.call(m, "ephemeralSharedSecret"))
|
|
347
|
+
w.uint32(218).bytes(m.ephemeralSharedSecret);
|
|
348
|
+
if (m.externalAdReply != null && Object.hasOwnProperty.call(m, "externalAdReply"))
|
|
349
|
+
$root.proto.ContextInfo.ExternalAdReplyInfo.encode(m.externalAdReply, w.uint32(226).fork()).ldelim();
|
|
350
|
+
if (m.entryPointConversionSource != null && Object.hasOwnProperty.call(m, "entryPointConversionSource"))
|
|
351
|
+
w.uint32(234).string(m.entryPointConversionSource);
|
|
352
|
+
if (m.entryPointConversionApp != null && Object.hasOwnProperty.call(m, "entryPointConversionApp"))
|
|
353
|
+
w.uint32(242).string(m.entryPointConversionApp);
|
|
354
|
+
if (m.entryPointConversionDelaySeconds != null && Object.hasOwnProperty.call(m, "entryPointConversionDelaySeconds"))
|
|
355
|
+
w.uint32(248).uint32(m.entryPointConversionDelaySeconds);
|
|
356
|
+
if (m.disappearingMode != null && Object.hasOwnProperty.call(m, "disappearingMode"))
|
|
357
|
+
$root.proto.DisappearingMode.encode(m.disappearingMode, w.uint32(258).fork()).ldelim();
|
|
358
|
+
if (m.actionLink != null && Object.hasOwnProperty.call(m, "actionLink"))
|
|
359
|
+
$root.proto.ActionLink.encode(m.actionLink, w.uint32(266).fork()).ldelim();
|
|
360
|
+
if (m.groupSubject != null && Object.hasOwnProperty.call(m, "groupSubject"))
|
|
361
|
+
w.uint32(274).string(m.groupSubject);
|
|
362
|
+
if (m.parentGroupJid != null && Object.hasOwnProperty.call(m, "parentGroupJid"))
|
|
363
|
+
w.uint32(282).string(m.parentGroupJid);
|
|
364
|
+
if (m.trustBannerType != null && Object.hasOwnProperty.call(m, "trustBannerType"))
|
|
365
|
+
w.uint32(298).string(m.trustBannerType);
|
|
366
|
+
if (m.trustBannerAction != null && Object.hasOwnProperty.call(m, "trustBannerAction"))
|
|
367
|
+
w.uint32(304).uint32(m.trustBannerAction);
|
|
368
|
+
if (m.isSampled != null && Object.hasOwnProperty.call(m, "isSampled"))
|
|
369
|
+
w.uint32(312).bool(m.isSampled);
|
|
370
|
+
if (m.groupMentions != null && m.groupMentions.length) {
|
|
371
|
+
for (var i = 0; i < m.groupMentions.length; ++i)
|
|
372
|
+
$root.proto.GroupMention.encode(m.groupMentions[i], w.uint32(322).fork()).ldelim();
|
|
373
|
+
}
|
|
374
|
+
if (m.utm != null && Object.hasOwnProperty.call(m, "utm"))
|
|
375
|
+
$root.proto.ContextInfo.UTMInfo.encode(m.utm, w.uint32(330).fork()).ldelim();
|
|
376
|
+
if (m.forwardedNewsletterMessageInfo != null && Object.hasOwnProperty.call(m, "forwardedNewsletterMessageInfo"))
|
|
377
|
+
$root.proto.ContextInfo.ForwardedNewsletterMessageInfo.encode(m.forwardedNewsletterMessageInfo, w.uint32(346).fork()).ldelim();
|
|
378
|
+
if (m.businessMessageForwardInfo != null && Object.hasOwnProperty.call(m, "businessMessageForwardInfo"))
|
|
379
|
+
$root.proto.ContextInfo.BusinessMessageForwardInfo.encode(m.businessMessageForwardInfo, w.uint32(354).fork()).ldelim();
|
|
380
|
+
if (m.smbClientCampaignId != null && Object.hasOwnProperty.call(m, "smbClientCampaignId"))
|
|
381
|
+
w.uint32(362).string(m.smbClientCampaignId);
|
|
382
|
+
if (m.smbServerCampaignId != null && Object.hasOwnProperty.call(m, "smbServerCampaignId"))
|
|
383
|
+
w.uint32(370).string(m.smbServerCampaignId);
|
|
384
|
+
if (m.dataSharingContext != null && Object.hasOwnProperty.call(m, "dataSharingContext"))
|
|
385
|
+
$root.proto.ContextInfo.DataSharingContext.encode(m.dataSharingContext, w.uint32(378).fork()).ldelim();
|
|
386
|
+
if (m.alwaysShowAdAttribution != null && Object.hasOwnProperty.call(m, "alwaysShowAdAttribution"))
|
|
387
|
+
w.uint32(384).bool(m.alwaysShowAdAttribution);
|
|
388
|
+
if (m.featureEligibilities != null && Object.hasOwnProperty.call(m, "featureEligibilities"))
|
|
389
|
+
$root.proto.ContextInfo.FeatureEligibilities.encode(m.featureEligibilities, w.uint32(394).fork()).ldelim();
|
|
390
|
+
if (m.entryPointConversionExternalSource != null && Object.hasOwnProperty.call(m, "entryPointConversionExternalSource"))
|
|
391
|
+
w.uint32(402).string(m.entryPointConversionExternalSource);
|
|
392
|
+
if (m.entryPointConversionExternalMedium != null && Object.hasOwnProperty.call(m, "entryPointConversionExternalMedium"))
|
|
393
|
+
w.uint32(410).string(m.entryPointConversionExternalMedium);
|
|
394
|
+
if (m.ctwaSignals != null && Object.hasOwnProperty.call(m, "ctwaSignals"))
|
|
395
|
+
w.uint32(434).string(m.ctwaSignals);
|
|
396
|
+
if (m.ctwaPayload != null && Object.hasOwnProperty.call(m, "ctwaPayload"))
|
|
397
|
+
w.uint32(442).bytes(m.ctwaPayload);
|
|
398
|
+
if (m.forwardedAiBotMessageInfo != null && Object.hasOwnProperty.call(m, "forwardedAiBotMessageInfo"))
|
|
399
|
+
$root.proto.ForwardedAIBotMessageInfo.encode(m.forwardedAiBotMessageInfo, w.uint32(450).fork()).ldelim();
|
|
400
|
+
if (m.statusAttributionType != null && Object.hasOwnProperty.call(m, "statusAttributionType"))
|
|
401
|
+
w.uint32(456).int32(m.statusAttributionType);
|
|
402
|
+
if (m.urlTrackingMap != null && Object.hasOwnProperty.call(m, "urlTrackingMap"))
|
|
403
|
+
$root.proto.UrlTrackingMap.encode(m.urlTrackingMap, w.uint32(466).fork()).ldelim();
|
|
404
|
+
if (m.pairedMediaType != null && Object.hasOwnProperty.call(m, "pairedMediaType"))
|
|
405
|
+
w.uint32(472).int32(m.pairedMediaType);
|
|
406
|
+
if (m.rankingVersion != null && Object.hasOwnProperty.call(m, "rankingVersion"))
|
|
407
|
+
w.uint32(480).uint32(m.rankingVersion);
|
|
408
|
+
if (m.memberLabel != null && Object.hasOwnProperty.call(m, "memberLabel"))
|
|
409
|
+
$root.proto.MemberLabel.encode(m.memberLabel, w.uint32(498).fork()).ldelim();
|
|
410
|
+
if (m.isQuestion != null && Object.hasOwnProperty.call(m, "isQuestion"))
|
|
411
|
+
w.uint32(504).bool(m.isQuestion);
|
|
412
|
+
if (m.statusSourceType != null && Object.hasOwnProperty.call(m, "statusSourceType"))
|
|
413
|
+
w.uint32(512).int32(m.statusSourceType);
|
|
414
|
+
if (m.statusAttributions != null && m.statusAttributions.length) {
|
|
415
|
+
for (var i = 0; i < m.statusAttributions.length; ++i)
|
|
416
|
+
$root.proto.StatusAttribution.encode(m.statusAttributions[i], w.uint32(522).fork()).ldelim();
|
|
417
|
+
}
|
|
418
|
+
if (m.isGroupStatus != null && Object.hasOwnProperty.call(m, "isGroupStatus"))
|
|
419
|
+
w.uint32(528).bool(m.isGroupStatus);
|
|
420
|
+
if (m.forwardOrigin != null && Object.hasOwnProperty.call(m, "forwardOrigin"))
|
|
421
|
+
w.uint32(536).int32(m.forwardOrigin);
|
|
422
|
+
if (m.questionReplyQuotedMessage != null && Object.hasOwnProperty.call(m, "questionReplyQuotedMessage"))
|
|
423
|
+
$root.proto.ContextInfo.QuestionReplyQuotedMessage.encode(m.questionReplyQuotedMessage, w.uint32(546).fork()).ldelim();
|
|
424
|
+
if (m.statusAudienceMetadata != null && Object.hasOwnProperty.call(m, "statusAudienceMetadata"))
|
|
425
|
+
$root.proto.ContextInfo.StatusAudienceMetadata.encode(m.statusAudienceMetadata, w.uint32(554).fork()).ldelim();
|
|
426
|
+
if (m.nonJidMentions != null && Object.hasOwnProperty.call(m, "nonJidMentions"))
|
|
427
|
+
w.uint32(560).uint32(m.nonJidMentions);
|
|
428
|
+
if (m.quotedType != null && Object.hasOwnProperty.call(m, "quotedType"))
|
|
429
|
+
w.uint32(568).int32(m.quotedType);
|
|
430
|
+
if (m.botMessageSharingInfo != null && Object.hasOwnProperty.call(m, "botMessageSharingInfo"))
|
|
431
|
+
$root.proto.BotMessageSharingInfo.encode(m.botMessageSharingInfo, w.uint32(578).fork()).ldelim();
|
|
432
|
+
if (m.isSpoiler != null && Object.hasOwnProperty.call(m, "isSpoiler"))
|
|
433
|
+
w.uint32(584).bool(m.isSpoiler);
|
|
434
|
+
if (m.mediaDomainInfo != null && Object.hasOwnProperty.call(m, "mediaDomainInfo"))
|
|
435
|
+
$root.proto.MediaDomainInfo.encode(m.mediaDomainInfo, w.uint32(594).fork()).ldelim();
|
|
436
|
+
if (m.partiallySelectedContent != null && Object.hasOwnProperty.call(m, "partiallySelectedContent"))
|
|
437
|
+
$root.proto.ContextInfo.PartiallySelectedContent.encode(m.partiallySelectedContent, w.uint32(602).fork()).ldelim();
|
|
438
|
+
if (m.afterReadDuration != null && Object.hasOwnProperty.call(m, "afterReadDuration"))
|
|
439
|
+
w.uint32(608).uint32(m.afterReadDuration);
|
|
440
|
+
if (m.crossAppSource != null && Object.hasOwnProperty.call(m, "crossAppSource"))
|
|
441
|
+
w.uint32(616).int32(m.crossAppSource);
|
|
442
|
+
if (m.businessInteractionPills != null && Object.hasOwnProperty.call(m, "businessInteractionPills"))
|
|
443
|
+
$root.proto.ContextInfo.BusinessInteractionPills.encode(m.businessInteractionPills, w.uint32(626).fork()).ldelim();
|
|
444
|
+
if (m.posterStatusId != null && Object.hasOwnProperty.call(m, "posterStatusId"))
|
|
445
|
+
w.uint32(634).string(m.posterStatusId);
|
|
446
|
+
return w;
|
|
447
|
+
};
|
|
448
|
+
ContextInfo.decode = function decode(r, l, e, n) {
|
|
449
|
+
if (!(r instanceof $Reader))
|
|
450
|
+
r = $Reader.create(r);
|
|
451
|
+
if (n === undefined)
|
|
452
|
+
n = 0;
|
|
453
|
+
if (n > $Reader.recursionLimit)
|
|
454
|
+
throw Error("maximum nesting depth exceeded");
|
|
455
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo();
|
|
456
|
+
while (r.pos < c) {
|
|
457
|
+
var t = r.uint32();
|
|
458
|
+
if (t === e)
|
|
459
|
+
break;
|
|
460
|
+
switch (t >>> 3) {
|
|
461
|
+
case 1: {
|
|
462
|
+
m.stanzaId = r.string();
|
|
463
|
+
break;
|
|
464
|
+
}
|
|
465
|
+
case 2: {
|
|
466
|
+
m.participant = r.string();
|
|
467
|
+
break;
|
|
468
|
+
}
|
|
469
|
+
case 3: {
|
|
470
|
+
m.quotedMessage = $root.proto.Message.decode(r, r.uint32(), undefined, n + 1);
|
|
471
|
+
break;
|
|
472
|
+
}
|
|
473
|
+
case 4: {
|
|
474
|
+
m.remoteJid = r.string();
|
|
475
|
+
break;
|
|
476
|
+
}
|
|
477
|
+
case 15: {
|
|
478
|
+
if (!(m.mentionedJid && m.mentionedJid.length))
|
|
479
|
+
m.mentionedJid = [];
|
|
480
|
+
m.mentionedJid.push(r.string());
|
|
481
|
+
break;
|
|
482
|
+
}
|
|
483
|
+
case 18: {
|
|
484
|
+
m.conversionSource = r.string();
|
|
485
|
+
break;
|
|
486
|
+
}
|
|
487
|
+
case 19: {
|
|
488
|
+
m.conversionData = r.bytes();
|
|
489
|
+
break;
|
|
490
|
+
}
|
|
491
|
+
case 20: {
|
|
492
|
+
m.conversionDelaySeconds = r.uint32();
|
|
493
|
+
break;
|
|
494
|
+
}
|
|
495
|
+
case 21: {
|
|
496
|
+
m.forwardingScore = r.uint32();
|
|
497
|
+
break;
|
|
498
|
+
}
|
|
499
|
+
case 22: {
|
|
500
|
+
m.isForwarded = r.bool();
|
|
501
|
+
break;
|
|
502
|
+
}
|
|
503
|
+
case 23: {
|
|
504
|
+
m.quotedAd = $root.proto.ContextInfo.AdReplyInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
505
|
+
break;
|
|
506
|
+
}
|
|
507
|
+
case 24: {
|
|
508
|
+
m.placeholderKey = $root.proto.MessageKey.decode(r, r.uint32(), undefined, n + 1);
|
|
509
|
+
break;
|
|
510
|
+
}
|
|
511
|
+
case 25: {
|
|
512
|
+
m.expiration = r.uint32();
|
|
513
|
+
break;
|
|
514
|
+
}
|
|
515
|
+
case 26: {
|
|
516
|
+
m.ephemeralSettingTimestamp = r.int64();
|
|
517
|
+
break;
|
|
518
|
+
}
|
|
519
|
+
case 27: {
|
|
520
|
+
m.ephemeralSharedSecret = r.bytes();
|
|
521
|
+
break;
|
|
522
|
+
}
|
|
523
|
+
case 28: {
|
|
524
|
+
m.externalAdReply = $root.proto.ContextInfo.ExternalAdReplyInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
525
|
+
break;
|
|
526
|
+
}
|
|
527
|
+
case 29: {
|
|
528
|
+
m.entryPointConversionSource = r.string();
|
|
529
|
+
break;
|
|
530
|
+
}
|
|
531
|
+
case 30: {
|
|
532
|
+
m.entryPointConversionApp = r.string();
|
|
533
|
+
break;
|
|
534
|
+
}
|
|
535
|
+
case 31: {
|
|
536
|
+
m.entryPointConversionDelaySeconds = r.uint32();
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
case 32: {
|
|
540
|
+
m.disappearingMode = $root.proto.DisappearingMode.decode(r, r.uint32(), undefined, n + 1);
|
|
541
|
+
break;
|
|
542
|
+
}
|
|
543
|
+
case 33: {
|
|
544
|
+
m.actionLink = $root.proto.ActionLink.decode(r, r.uint32(), undefined, n + 1);
|
|
545
|
+
break;
|
|
546
|
+
}
|
|
547
|
+
case 34: {
|
|
548
|
+
m.groupSubject = r.string();
|
|
549
|
+
break;
|
|
550
|
+
}
|
|
551
|
+
case 35: {
|
|
552
|
+
m.parentGroupJid = r.string();
|
|
553
|
+
break;
|
|
554
|
+
}
|
|
555
|
+
case 37: {
|
|
556
|
+
m.trustBannerType = r.string();
|
|
557
|
+
break;
|
|
558
|
+
}
|
|
559
|
+
case 38: {
|
|
560
|
+
m.trustBannerAction = r.uint32();
|
|
561
|
+
break;
|
|
562
|
+
}
|
|
563
|
+
case 39: {
|
|
564
|
+
m.isSampled = r.bool();
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
case 40: {
|
|
568
|
+
if (!(m.groupMentions && m.groupMentions.length))
|
|
569
|
+
m.groupMentions = [];
|
|
570
|
+
m.groupMentions.push($root.proto.GroupMention.decode(r, r.uint32(), undefined, n + 1));
|
|
571
|
+
break;
|
|
572
|
+
}
|
|
573
|
+
case 41: {
|
|
574
|
+
m.utm = $root.proto.ContextInfo.UTMInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
575
|
+
break;
|
|
576
|
+
}
|
|
577
|
+
case 43: {
|
|
578
|
+
m.forwardedNewsletterMessageInfo = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
case 44: {
|
|
582
|
+
m.businessMessageForwardInfo = $root.proto.ContextInfo.BusinessMessageForwardInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
583
|
+
break;
|
|
584
|
+
}
|
|
585
|
+
case 45: {
|
|
586
|
+
m.smbClientCampaignId = r.string();
|
|
587
|
+
break;
|
|
588
|
+
}
|
|
589
|
+
case 46: {
|
|
590
|
+
m.smbServerCampaignId = r.string();
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
case 47: {
|
|
594
|
+
m.dataSharingContext = $root.proto.ContextInfo.DataSharingContext.decode(r, r.uint32(), undefined, n + 1);
|
|
595
|
+
break;
|
|
596
|
+
}
|
|
597
|
+
case 48: {
|
|
598
|
+
m.alwaysShowAdAttribution = r.bool();
|
|
599
|
+
break;
|
|
600
|
+
}
|
|
601
|
+
case 49: {
|
|
602
|
+
m.featureEligibilities = $root.proto.ContextInfo.FeatureEligibilities.decode(r, r.uint32(), undefined, n + 1);
|
|
603
|
+
break;
|
|
604
|
+
}
|
|
605
|
+
case 50: {
|
|
606
|
+
m.entryPointConversionExternalSource = r.string();
|
|
607
|
+
break;
|
|
608
|
+
}
|
|
609
|
+
case 51: {
|
|
610
|
+
m.entryPointConversionExternalMedium = r.string();
|
|
611
|
+
break;
|
|
612
|
+
}
|
|
613
|
+
case 54: {
|
|
614
|
+
m.ctwaSignals = r.string();
|
|
615
|
+
break;
|
|
616
|
+
}
|
|
617
|
+
case 55: {
|
|
618
|
+
m.ctwaPayload = r.bytes();
|
|
619
|
+
break;
|
|
620
|
+
}
|
|
621
|
+
case 56: {
|
|
622
|
+
m.forwardedAiBotMessageInfo = $root.proto.ForwardedAIBotMessageInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
623
|
+
break;
|
|
624
|
+
}
|
|
625
|
+
case 57: {
|
|
626
|
+
m.statusAttributionType = r.int32();
|
|
627
|
+
break;
|
|
628
|
+
}
|
|
629
|
+
case 58: {
|
|
630
|
+
m.urlTrackingMap = $root.proto.UrlTrackingMap.decode(r, r.uint32(), undefined, n + 1);
|
|
631
|
+
break;
|
|
632
|
+
}
|
|
633
|
+
case 59: {
|
|
634
|
+
m.pairedMediaType = r.int32();
|
|
635
|
+
break;
|
|
636
|
+
}
|
|
637
|
+
case 60: {
|
|
638
|
+
m.rankingVersion = r.uint32();
|
|
639
|
+
break;
|
|
640
|
+
}
|
|
641
|
+
case 62: {
|
|
642
|
+
m.memberLabel = $root.proto.MemberLabel.decode(r, r.uint32(), undefined, n + 1);
|
|
643
|
+
break;
|
|
644
|
+
}
|
|
645
|
+
case 63: {
|
|
646
|
+
m.isQuestion = r.bool();
|
|
647
|
+
break;
|
|
648
|
+
}
|
|
649
|
+
case 64: {
|
|
650
|
+
m.statusSourceType = r.int32();
|
|
651
|
+
break;
|
|
652
|
+
}
|
|
653
|
+
case 65: {
|
|
654
|
+
if (!(m.statusAttributions && m.statusAttributions.length))
|
|
655
|
+
m.statusAttributions = [];
|
|
656
|
+
m.statusAttributions.push($root.proto.StatusAttribution.decode(r, r.uint32(), undefined, n + 1));
|
|
657
|
+
break;
|
|
658
|
+
}
|
|
659
|
+
case 66: {
|
|
660
|
+
m.isGroupStatus = r.bool();
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
663
|
+
case 67: {
|
|
664
|
+
m.forwardOrigin = r.int32();
|
|
665
|
+
break;
|
|
666
|
+
}
|
|
667
|
+
case 68: {
|
|
668
|
+
m.questionReplyQuotedMessage = $root.proto.ContextInfo.QuestionReplyQuotedMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
669
|
+
break;
|
|
670
|
+
}
|
|
671
|
+
case 69: {
|
|
672
|
+
m.statusAudienceMetadata = $root.proto.ContextInfo.StatusAudienceMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
673
|
+
break;
|
|
674
|
+
}
|
|
675
|
+
case 70: {
|
|
676
|
+
m.nonJidMentions = r.uint32();
|
|
677
|
+
break;
|
|
678
|
+
}
|
|
679
|
+
case 71: {
|
|
680
|
+
m.quotedType = r.int32();
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
case 72: {
|
|
684
|
+
m.botMessageSharingInfo = $root.proto.BotMessageSharingInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
685
|
+
break;
|
|
686
|
+
}
|
|
687
|
+
case 73: {
|
|
688
|
+
m.isSpoiler = r.bool();
|
|
689
|
+
break;
|
|
690
|
+
}
|
|
691
|
+
case 74: {
|
|
692
|
+
m.mediaDomainInfo = $root.proto.MediaDomainInfo.decode(r, r.uint32(), undefined, n + 1);
|
|
693
|
+
break;
|
|
694
|
+
}
|
|
695
|
+
case 75: {
|
|
696
|
+
m.partiallySelectedContent = $root.proto.ContextInfo.PartiallySelectedContent.decode(r, r.uint32(), undefined, n + 1);
|
|
697
|
+
break;
|
|
698
|
+
}
|
|
699
|
+
case 76: {
|
|
700
|
+
m.afterReadDuration = r.uint32();
|
|
701
|
+
break;
|
|
702
|
+
}
|
|
703
|
+
case 77: {
|
|
704
|
+
m.crossAppSource = r.int32();
|
|
705
|
+
break;
|
|
706
|
+
}
|
|
707
|
+
case 78: {
|
|
708
|
+
m.businessInteractionPills = $root.proto.ContextInfo.BusinessInteractionPills.decode(r, r.uint32(), undefined, n + 1);
|
|
709
|
+
break;
|
|
710
|
+
}
|
|
711
|
+
case 79: {
|
|
712
|
+
m.posterStatusId = r.string();
|
|
713
|
+
break;
|
|
714
|
+
}
|
|
715
|
+
default:
|
|
716
|
+
r.skipType(t & 7, n);
|
|
717
|
+
break;
|
|
718
|
+
}
|
|
719
|
+
}
|
|
720
|
+
return m;
|
|
721
|
+
};
|
|
722
|
+
ContextInfo.fromObject = function fromObject(d, n) {
|
|
723
|
+
if (d instanceof $root.proto.ContextInfo)
|
|
724
|
+
return d;
|
|
725
|
+
if (n === undefined)
|
|
726
|
+
n = 0;
|
|
727
|
+
if (n > $util.recursionLimit)
|
|
728
|
+
throw Error("maximum nesting depth exceeded");
|
|
729
|
+
var m = new $root.proto.ContextInfo();
|
|
730
|
+
if (d.stanzaId != null) {
|
|
731
|
+
m.stanzaId = String(d.stanzaId);
|
|
732
|
+
}
|
|
733
|
+
if (d.participant != null) {
|
|
734
|
+
m.participant = String(d.participant);
|
|
735
|
+
}
|
|
736
|
+
if (d.quotedMessage != null) {
|
|
737
|
+
if (typeof d.quotedMessage !== "object")
|
|
738
|
+
throw TypeError(".proto.ContextInfo.quotedMessage: object expected");
|
|
739
|
+
m.quotedMessage = $root.proto.Message.fromObject(d.quotedMessage, n + 1);
|
|
740
|
+
}
|
|
741
|
+
if (d.remoteJid != null) {
|
|
742
|
+
m.remoteJid = String(d.remoteJid);
|
|
743
|
+
}
|
|
744
|
+
if (d.mentionedJid) {
|
|
745
|
+
if (!Array.isArray(d.mentionedJid))
|
|
746
|
+
throw TypeError(".proto.ContextInfo.mentionedJid: array expected");
|
|
747
|
+
m.mentionedJid = [];
|
|
748
|
+
for (var i = 0; i < d.mentionedJid.length; ++i) {
|
|
749
|
+
m.mentionedJid[i] = String(d.mentionedJid[i]);
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
if (d.conversionSource != null) {
|
|
753
|
+
m.conversionSource = String(d.conversionSource);
|
|
754
|
+
}
|
|
755
|
+
if (d.conversionData != null) {
|
|
756
|
+
if (typeof d.conversionData === "string")
|
|
757
|
+
$util.base64.decode(d.conversionData, m.conversionData = $util.newBuffer($util.base64.length(d.conversionData)), 0);
|
|
758
|
+
else if (d.conversionData.length >= 0)
|
|
759
|
+
m.conversionData = d.conversionData;
|
|
760
|
+
}
|
|
761
|
+
if (d.conversionDelaySeconds != null) {
|
|
762
|
+
m.conversionDelaySeconds = d.conversionDelaySeconds >>> 0;
|
|
763
|
+
}
|
|
764
|
+
if (d.forwardingScore != null) {
|
|
765
|
+
m.forwardingScore = d.forwardingScore >>> 0;
|
|
766
|
+
}
|
|
767
|
+
if (d.isForwarded != null) {
|
|
768
|
+
m.isForwarded = Boolean(d.isForwarded);
|
|
769
|
+
}
|
|
770
|
+
if (d.quotedAd != null) {
|
|
771
|
+
if (typeof d.quotedAd !== "object")
|
|
772
|
+
throw TypeError(".proto.ContextInfo.quotedAd: object expected");
|
|
773
|
+
m.quotedAd = $root.proto.ContextInfo.AdReplyInfo.fromObject(d.quotedAd, n + 1);
|
|
774
|
+
}
|
|
775
|
+
if (d.placeholderKey != null) {
|
|
776
|
+
if (typeof d.placeholderKey !== "object")
|
|
777
|
+
throw TypeError(".proto.ContextInfo.placeholderKey: object expected");
|
|
778
|
+
m.placeholderKey = $root.proto.MessageKey.fromObject(d.placeholderKey, n + 1);
|
|
779
|
+
}
|
|
780
|
+
if (d.expiration != null) {
|
|
781
|
+
m.expiration = d.expiration >>> 0;
|
|
782
|
+
}
|
|
783
|
+
if (d.ephemeralSettingTimestamp != null) {
|
|
784
|
+
if ($util.Long)
|
|
785
|
+
(m.ephemeralSettingTimestamp = $util.Long.fromValue(d.ephemeralSettingTimestamp)).unsigned = false;
|
|
786
|
+
else if (typeof d.ephemeralSettingTimestamp === "string")
|
|
787
|
+
m.ephemeralSettingTimestamp = parseInt(d.ephemeralSettingTimestamp, 10);
|
|
788
|
+
else if (typeof d.ephemeralSettingTimestamp === "number")
|
|
789
|
+
m.ephemeralSettingTimestamp = d.ephemeralSettingTimestamp;
|
|
790
|
+
else if (typeof d.ephemeralSettingTimestamp === "object")
|
|
791
|
+
m.ephemeralSettingTimestamp = new $util.LongBits(d.ephemeralSettingTimestamp.low >>> 0, d.ephemeralSettingTimestamp.high >>> 0).toNumber();
|
|
792
|
+
}
|
|
793
|
+
if (d.ephemeralSharedSecret != null) {
|
|
794
|
+
if (typeof d.ephemeralSharedSecret === "string")
|
|
795
|
+
$util.base64.decode(d.ephemeralSharedSecret, m.ephemeralSharedSecret = $util.newBuffer($util.base64.length(d.ephemeralSharedSecret)), 0);
|
|
796
|
+
else if (d.ephemeralSharedSecret.length >= 0)
|
|
797
|
+
m.ephemeralSharedSecret = d.ephemeralSharedSecret;
|
|
798
|
+
}
|
|
799
|
+
if (d.externalAdReply != null) {
|
|
800
|
+
if (typeof d.externalAdReply !== "object")
|
|
801
|
+
throw TypeError(".proto.ContextInfo.externalAdReply: object expected");
|
|
802
|
+
m.externalAdReply = $root.proto.ContextInfo.ExternalAdReplyInfo.fromObject(d.externalAdReply, n + 1);
|
|
803
|
+
}
|
|
804
|
+
if (d.entryPointConversionSource != null) {
|
|
805
|
+
m.entryPointConversionSource = String(d.entryPointConversionSource);
|
|
806
|
+
}
|
|
807
|
+
if (d.entryPointConversionApp != null) {
|
|
808
|
+
m.entryPointConversionApp = String(d.entryPointConversionApp);
|
|
809
|
+
}
|
|
810
|
+
if (d.entryPointConversionDelaySeconds != null) {
|
|
811
|
+
m.entryPointConversionDelaySeconds = d.entryPointConversionDelaySeconds >>> 0;
|
|
812
|
+
}
|
|
813
|
+
if (d.disappearingMode != null) {
|
|
814
|
+
if (typeof d.disappearingMode !== "object")
|
|
815
|
+
throw TypeError(".proto.ContextInfo.disappearingMode: object expected");
|
|
816
|
+
m.disappearingMode = $root.proto.DisappearingMode.fromObject(d.disappearingMode, n + 1);
|
|
817
|
+
}
|
|
818
|
+
if (d.actionLink != null) {
|
|
819
|
+
if (typeof d.actionLink !== "object")
|
|
820
|
+
throw TypeError(".proto.ContextInfo.actionLink: object expected");
|
|
821
|
+
m.actionLink = $root.proto.ActionLink.fromObject(d.actionLink, n + 1);
|
|
822
|
+
}
|
|
823
|
+
if (d.groupSubject != null) {
|
|
824
|
+
m.groupSubject = String(d.groupSubject);
|
|
825
|
+
}
|
|
826
|
+
if (d.parentGroupJid != null) {
|
|
827
|
+
m.parentGroupJid = String(d.parentGroupJid);
|
|
828
|
+
}
|
|
829
|
+
if (d.trustBannerType != null) {
|
|
830
|
+
m.trustBannerType = String(d.trustBannerType);
|
|
831
|
+
}
|
|
832
|
+
if (d.trustBannerAction != null) {
|
|
833
|
+
m.trustBannerAction = d.trustBannerAction >>> 0;
|
|
834
|
+
}
|
|
835
|
+
if (d.isSampled != null) {
|
|
836
|
+
m.isSampled = Boolean(d.isSampled);
|
|
837
|
+
}
|
|
838
|
+
if (d.groupMentions) {
|
|
839
|
+
if (!Array.isArray(d.groupMentions))
|
|
840
|
+
throw TypeError(".proto.ContextInfo.groupMentions: array expected");
|
|
841
|
+
m.groupMentions = [];
|
|
842
|
+
for (var i = 0; i < d.groupMentions.length; ++i) {
|
|
843
|
+
if (typeof d.groupMentions[i] !== "object")
|
|
844
|
+
throw TypeError(".proto.ContextInfo.groupMentions: object expected");
|
|
845
|
+
m.groupMentions[i] = $root.proto.GroupMention.fromObject(d.groupMentions[i], n + 1);
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
if (d.utm != null) {
|
|
849
|
+
if (typeof d.utm !== "object")
|
|
850
|
+
throw TypeError(".proto.ContextInfo.utm: object expected");
|
|
851
|
+
m.utm = $root.proto.ContextInfo.UTMInfo.fromObject(d.utm, n + 1);
|
|
852
|
+
}
|
|
853
|
+
if (d.forwardedNewsletterMessageInfo != null) {
|
|
854
|
+
if (typeof d.forwardedNewsletterMessageInfo !== "object")
|
|
855
|
+
throw TypeError(".proto.ContextInfo.forwardedNewsletterMessageInfo: object expected");
|
|
856
|
+
m.forwardedNewsletterMessageInfo = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.fromObject(d.forwardedNewsletterMessageInfo, n + 1);
|
|
857
|
+
}
|
|
858
|
+
if (d.businessMessageForwardInfo != null) {
|
|
859
|
+
if (typeof d.businessMessageForwardInfo !== "object")
|
|
860
|
+
throw TypeError(".proto.ContextInfo.businessMessageForwardInfo: object expected");
|
|
861
|
+
m.businessMessageForwardInfo = $root.proto.ContextInfo.BusinessMessageForwardInfo.fromObject(d.businessMessageForwardInfo, n + 1);
|
|
862
|
+
}
|
|
863
|
+
if (d.smbClientCampaignId != null) {
|
|
864
|
+
m.smbClientCampaignId = String(d.smbClientCampaignId);
|
|
865
|
+
}
|
|
866
|
+
if (d.smbServerCampaignId != null) {
|
|
867
|
+
m.smbServerCampaignId = String(d.smbServerCampaignId);
|
|
868
|
+
}
|
|
869
|
+
if (d.dataSharingContext != null) {
|
|
870
|
+
if (typeof d.dataSharingContext !== "object")
|
|
871
|
+
throw TypeError(".proto.ContextInfo.dataSharingContext: object expected");
|
|
872
|
+
m.dataSharingContext = $root.proto.ContextInfo.DataSharingContext.fromObject(d.dataSharingContext, n + 1);
|
|
873
|
+
}
|
|
874
|
+
if (d.alwaysShowAdAttribution != null) {
|
|
875
|
+
m.alwaysShowAdAttribution = Boolean(d.alwaysShowAdAttribution);
|
|
876
|
+
}
|
|
877
|
+
if (d.featureEligibilities != null) {
|
|
878
|
+
if (typeof d.featureEligibilities !== "object")
|
|
879
|
+
throw TypeError(".proto.ContextInfo.featureEligibilities: object expected");
|
|
880
|
+
m.featureEligibilities = $root.proto.ContextInfo.FeatureEligibilities.fromObject(d.featureEligibilities, n + 1);
|
|
881
|
+
}
|
|
882
|
+
if (d.entryPointConversionExternalSource != null) {
|
|
883
|
+
m.entryPointConversionExternalSource = String(d.entryPointConversionExternalSource);
|
|
884
|
+
}
|
|
885
|
+
if (d.entryPointConversionExternalMedium != null) {
|
|
886
|
+
m.entryPointConversionExternalMedium = String(d.entryPointConversionExternalMedium);
|
|
887
|
+
}
|
|
888
|
+
if (d.ctwaSignals != null) {
|
|
889
|
+
m.ctwaSignals = String(d.ctwaSignals);
|
|
890
|
+
}
|
|
891
|
+
if (d.ctwaPayload != null) {
|
|
892
|
+
if (typeof d.ctwaPayload === "string")
|
|
893
|
+
$util.base64.decode(d.ctwaPayload, m.ctwaPayload = $util.newBuffer($util.base64.length(d.ctwaPayload)), 0);
|
|
894
|
+
else if (d.ctwaPayload.length >= 0)
|
|
895
|
+
m.ctwaPayload = d.ctwaPayload;
|
|
896
|
+
}
|
|
897
|
+
if (d.forwardedAiBotMessageInfo != null) {
|
|
898
|
+
if (typeof d.forwardedAiBotMessageInfo !== "object")
|
|
899
|
+
throw TypeError(".proto.ContextInfo.forwardedAiBotMessageInfo: object expected");
|
|
900
|
+
m.forwardedAiBotMessageInfo = $root.proto.ForwardedAIBotMessageInfo.fromObject(d.forwardedAiBotMessageInfo, n + 1);
|
|
901
|
+
}
|
|
902
|
+
switch (d.statusAttributionType) {
|
|
903
|
+
default:
|
|
904
|
+
if (typeof d.statusAttributionType === "number") {
|
|
905
|
+
m.statusAttributionType = d.statusAttributionType;
|
|
906
|
+
break;
|
|
907
|
+
}
|
|
908
|
+
break;
|
|
909
|
+
case "NONE":
|
|
910
|
+
case 0:
|
|
911
|
+
m.statusAttributionType = 0;
|
|
912
|
+
break;
|
|
913
|
+
case "RESHARED_FROM_MENTION":
|
|
914
|
+
case 1:
|
|
915
|
+
m.statusAttributionType = 1;
|
|
916
|
+
break;
|
|
917
|
+
case "RESHARED_FROM_POST":
|
|
918
|
+
case 2:
|
|
919
|
+
m.statusAttributionType = 2;
|
|
920
|
+
break;
|
|
921
|
+
case "RESHARED_FROM_POST_MANY_TIMES":
|
|
922
|
+
case 3:
|
|
923
|
+
m.statusAttributionType = 3;
|
|
924
|
+
break;
|
|
925
|
+
case "FORWARDED_FROM_STATUS":
|
|
926
|
+
case 4:
|
|
927
|
+
m.statusAttributionType = 4;
|
|
928
|
+
break;
|
|
929
|
+
}
|
|
930
|
+
if (d.urlTrackingMap != null) {
|
|
931
|
+
if (typeof d.urlTrackingMap !== "object")
|
|
932
|
+
throw TypeError(".proto.ContextInfo.urlTrackingMap: object expected");
|
|
933
|
+
m.urlTrackingMap = $root.proto.UrlTrackingMap.fromObject(d.urlTrackingMap, n + 1);
|
|
934
|
+
}
|
|
935
|
+
switch (d.pairedMediaType) {
|
|
936
|
+
default:
|
|
937
|
+
if (typeof d.pairedMediaType === "number") {
|
|
938
|
+
m.pairedMediaType = d.pairedMediaType;
|
|
939
|
+
break;
|
|
940
|
+
}
|
|
941
|
+
break;
|
|
942
|
+
case "NOT_PAIRED_MEDIA":
|
|
943
|
+
case 0:
|
|
944
|
+
m.pairedMediaType = 0;
|
|
945
|
+
break;
|
|
946
|
+
case "SD_VIDEO_PARENT":
|
|
947
|
+
case 1:
|
|
948
|
+
m.pairedMediaType = 1;
|
|
949
|
+
break;
|
|
950
|
+
case "HD_VIDEO_CHILD":
|
|
951
|
+
case 2:
|
|
952
|
+
m.pairedMediaType = 2;
|
|
953
|
+
break;
|
|
954
|
+
case "SD_IMAGE_PARENT":
|
|
955
|
+
case 3:
|
|
956
|
+
m.pairedMediaType = 3;
|
|
957
|
+
break;
|
|
958
|
+
case "HD_IMAGE_CHILD":
|
|
959
|
+
case 4:
|
|
960
|
+
m.pairedMediaType = 4;
|
|
961
|
+
break;
|
|
962
|
+
case "MOTION_PHOTO_PARENT":
|
|
963
|
+
case 5:
|
|
964
|
+
m.pairedMediaType = 5;
|
|
965
|
+
break;
|
|
966
|
+
case "MOTION_PHOTO_CHILD":
|
|
967
|
+
case 6:
|
|
968
|
+
m.pairedMediaType = 6;
|
|
969
|
+
break;
|
|
970
|
+
case "HEVC_VIDEO_PARENT":
|
|
971
|
+
case 7:
|
|
972
|
+
m.pairedMediaType = 7;
|
|
973
|
+
break;
|
|
974
|
+
case "HEVC_VIDEO_CHILD":
|
|
975
|
+
case 8:
|
|
976
|
+
m.pairedMediaType = 8;
|
|
977
|
+
break;
|
|
978
|
+
}
|
|
979
|
+
if (d.rankingVersion != null) {
|
|
980
|
+
m.rankingVersion = d.rankingVersion >>> 0;
|
|
981
|
+
}
|
|
982
|
+
if (d.memberLabel != null) {
|
|
983
|
+
if (typeof d.memberLabel !== "object")
|
|
984
|
+
throw TypeError(".proto.ContextInfo.memberLabel: object expected");
|
|
985
|
+
m.memberLabel = $root.proto.MemberLabel.fromObject(d.memberLabel, n + 1);
|
|
986
|
+
}
|
|
987
|
+
if (d.isQuestion != null) {
|
|
988
|
+
m.isQuestion = Boolean(d.isQuestion);
|
|
989
|
+
}
|
|
990
|
+
switch (d.statusSourceType) {
|
|
991
|
+
default:
|
|
992
|
+
if (typeof d.statusSourceType === "number") {
|
|
993
|
+
m.statusSourceType = d.statusSourceType;
|
|
994
|
+
break;
|
|
995
|
+
}
|
|
996
|
+
break;
|
|
997
|
+
case "IMAGE":
|
|
998
|
+
case 0:
|
|
999
|
+
m.statusSourceType = 0;
|
|
1000
|
+
break;
|
|
1001
|
+
case "VIDEO":
|
|
1002
|
+
case 1:
|
|
1003
|
+
m.statusSourceType = 1;
|
|
1004
|
+
break;
|
|
1005
|
+
case "GIF":
|
|
1006
|
+
case 2:
|
|
1007
|
+
m.statusSourceType = 2;
|
|
1008
|
+
break;
|
|
1009
|
+
case "AUDIO":
|
|
1010
|
+
case 3:
|
|
1011
|
+
m.statusSourceType = 3;
|
|
1012
|
+
break;
|
|
1013
|
+
case "TEXT":
|
|
1014
|
+
case 4:
|
|
1015
|
+
m.statusSourceType = 4;
|
|
1016
|
+
break;
|
|
1017
|
+
case "MUSIC_STANDALONE":
|
|
1018
|
+
case 5:
|
|
1019
|
+
m.statusSourceType = 5;
|
|
1020
|
+
break;
|
|
1021
|
+
}
|
|
1022
|
+
if (d.statusAttributions) {
|
|
1023
|
+
if (!Array.isArray(d.statusAttributions))
|
|
1024
|
+
throw TypeError(".proto.ContextInfo.statusAttributions: array expected");
|
|
1025
|
+
m.statusAttributions = [];
|
|
1026
|
+
for (var i = 0; i < d.statusAttributions.length; ++i) {
|
|
1027
|
+
if (typeof d.statusAttributions[i] !== "object")
|
|
1028
|
+
throw TypeError(".proto.ContextInfo.statusAttributions: object expected");
|
|
1029
|
+
m.statusAttributions[i] = $root.proto.StatusAttribution.fromObject(d.statusAttributions[i], n + 1);
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
if (d.isGroupStatus != null) {
|
|
1033
|
+
m.isGroupStatus = Boolean(d.isGroupStatus);
|
|
1034
|
+
}
|
|
1035
|
+
switch (d.forwardOrigin) {
|
|
1036
|
+
default:
|
|
1037
|
+
if (typeof d.forwardOrigin === "number") {
|
|
1038
|
+
m.forwardOrigin = d.forwardOrigin;
|
|
1039
|
+
break;
|
|
1040
|
+
}
|
|
1041
|
+
break;
|
|
1042
|
+
case "UNKNOWN":
|
|
1043
|
+
case 0:
|
|
1044
|
+
m.forwardOrigin = 0;
|
|
1045
|
+
break;
|
|
1046
|
+
case "CHAT":
|
|
1047
|
+
case 1:
|
|
1048
|
+
m.forwardOrigin = 1;
|
|
1049
|
+
break;
|
|
1050
|
+
case "STATUS":
|
|
1051
|
+
case 2:
|
|
1052
|
+
m.forwardOrigin = 2;
|
|
1053
|
+
break;
|
|
1054
|
+
case "CHANNELS":
|
|
1055
|
+
case 3:
|
|
1056
|
+
m.forwardOrigin = 3;
|
|
1057
|
+
break;
|
|
1058
|
+
case "META_AI":
|
|
1059
|
+
case 4:
|
|
1060
|
+
m.forwardOrigin = 4;
|
|
1061
|
+
break;
|
|
1062
|
+
case "UGC":
|
|
1063
|
+
case 5:
|
|
1064
|
+
m.forwardOrigin = 5;
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
1067
|
+
if (d.questionReplyQuotedMessage != null) {
|
|
1068
|
+
if (typeof d.questionReplyQuotedMessage !== "object")
|
|
1069
|
+
throw TypeError(".proto.ContextInfo.questionReplyQuotedMessage: object expected");
|
|
1070
|
+
m.questionReplyQuotedMessage = $root.proto.ContextInfo.QuestionReplyQuotedMessage.fromObject(d.questionReplyQuotedMessage, n + 1);
|
|
1071
|
+
}
|
|
1072
|
+
if (d.statusAudienceMetadata != null) {
|
|
1073
|
+
if (typeof d.statusAudienceMetadata !== "object")
|
|
1074
|
+
throw TypeError(".proto.ContextInfo.statusAudienceMetadata: object expected");
|
|
1075
|
+
m.statusAudienceMetadata = $root.proto.ContextInfo.StatusAudienceMetadata.fromObject(d.statusAudienceMetadata, n + 1);
|
|
1076
|
+
}
|
|
1077
|
+
if (d.nonJidMentions != null) {
|
|
1078
|
+
m.nonJidMentions = d.nonJidMentions >>> 0;
|
|
1079
|
+
}
|
|
1080
|
+
switch (d.quotedType) {
|
|
1081
|
+
default:
|
|
1082
|
+
if (typeof d.quotedType === "number") {
|
|
1083
|
+
m.quotedType = d.quotedType;
|
|
1084
|
+
break;
|
|
1085
|
+
}
|
|
1086
|
+
break;
|
|
1087
|
+
case "EXPLICIT":
|
|
1088
|
+
case 0:
|
|
1089
|
+
m.quotedType = 0;
|
|
1090
|
+
break;
|
|
1091
|
+
case "AUTO":
|
|
1092
|
+
case 1:
|
|
1093
|
+
m.quotedType = 1;
|
|
1094
|
+
break;
|
|
1095
|
+
}
|
|
1096
|
+
if (d.botMessageSharingInfo != null) {
|
|
1097
|
+
if (typeof d.botMessageSharingInfo !== "object")
|
|
1098
|
+
throw TypeError(".proto.ContextInfo.botMessageSharingInfo: object expected");
|
|
1099
|
+
m.botMessageSharingInfo = $root.proto.BotMessageSharingInfo.fromObject(d.botMessageSharingInfo, n + 1);
|
|
1100
|
+
}
|
|
1101
|
+
if (d.isSpoiler != null) {
|
|
1102
|
+
m.isSpoiler = Boolean(d.isSpoiler);
|
|
1103
|
+
}
|
|
1104
|
+
if (d.mediaDomainInfo != null) {
|
|
1105
|
+
if (typeof d.mediaDomainInfo !== "object")
|
|
1106
|
+
throw TypeError(".proto.ContextInfo.mediaDomainInfo: object expected");
|
|
1107
|
+
m.mediaDomainInfo = $root.proto.MediaDomainInfo.fromObject(d.mediaDomainInfo, n + 1);
|
|
1108
|
+
}
|
|
1109
|
+
if (d.partiallySelectedContent != null) {
|
|
1110
|
+
if (typeof d.partiallySelectedContent !== "object")
|
|
1111
|
+
throw TypeError(".proto.ContextInfo.partiallySelectedContent: object expected");
|
|
1112
|
+
m.partiallySelectedContent = $root.proto.ContextInfo.PartiallySelectedContent.fromObject(d.partiallySelectedContent, n + 1);
|
|
1113
|
+
}
|
|
1114
|
+
if (d.afterReadDuration != null) {
|
|
1115
|
+
m.afterReadDuration = d.afterReadDuration >>> 0;
|
|
1116
|
+
}
|
|
1117
|
+
switch (d.crossAppSource) {
|
|
1118
|
+
default:
|
|
1119
|
+
if (typeof d.crossAppSource === "number") {
|
|
1120
|
+
m.crossAppSource = d.crossAppSource;
|
|
1121
|
+
break;
|
|
1122
|
+
}
|
|
1123
|
+
break;
|
|
1124
|
+
case "CROSS_APP_SOURCE_UNKNOWN":
|
|
1125
|
+
case 0:
|
|
1126
|
+
m.crossAppSource = 0;
|
|
1127
|
+
break;
|
|
1128
|
+
case "CROSS_APP_SOURCE_INSTAGRAM":
|
|
1129
|
+
case 1:
|
|
1130
|
+
m.crossAppSource = 1;
|
|
1131
|
+
break;
|
|
1132
|
+
case "CROSS_APP_SOURCE_FACEBOOK":
|
|
1133
|
+
case 2:
|
|
1134
|
+
m.crossAppSource = 2;
|
|
1135
|
+
break;
|
|
1136
|
+
}
|
|
1137
|
+
if (d.businessInteractionPills != null) {
|
|
1138
|
+
if (typeof d.businessInteractionPills !== "object")
|
|
1139
|
+
throw TypeError(".proto.ContextInfo.businessInteractionPills: object expected");
|
|
1140
|
+
m.businessInteractionPills = $root.proto.ContextInfo.BusinessInteractionPills.fromObject(d.businessInteractionPills, n + 1);
|
|
1141
|
+
}
|
|
1142
|
+
if (d.posterStatusId != null) {
|
|
1143
|
+
m.posterStatusId = String(d.posterStatusId);
|
|
1144
|
+
}
|
|
1145
|
+
return m;
|
|
1146
|
+
};
|
|
1147
|
+
ContextInfo.toObject = function toObject(m, o) {
|
|
1148
|
+
if (!o)
|
|
1149
|
+
o = {};
|
|
1150
|
+
var d = {};
|
|
1151
|
+
if (o.arrays || o.defaults) {
|
|
1152
|
+
d.mentionedJid = [];
|
|
1153
|
+
d.groupMentions = [];
|
|
1154
|
+
d.statusAttributions = [];
|
|
1155
|
+
}
|
|
1156
|
+
if (m.stanzaId != null && m.hasOwnProperty("stanzaId")) {
|
|
1157
|
+
d.stanzaId = m.stanzaId;
|
|
1158
|
+
if (o.oneofs)
|
|
1159
|
+
d._stanzaId = "stanzaId";
|
|
1160
|
+
}
|
|
1161
|
+
if (m.participant != null && m.hasOwnProperty("participant")) {
|
|
1162
|
+
d.participant = m.participant;
|
|
1163
|
+
if (o.oneofs)
|
|
1164
|
+
d._participant = "participant";
|
|
1165
|
+
}
|
|
1166
|
+
if (m.quotedMessage != null && m.hasOwnProperty("quotedMessage")) {
|
|
1167
|
+
d.quotedMessage = $root.proto.Message.toObject(m.quotedMessage, o);
|
|
1168
|
+
if (o.oneofs)
|
|
1169
|
+
d._quotedMessage = "quotedMessage";
|
|
1170
|
+
}
|
|
1171
|
+
if (m.remoteJid != null && m.hasOwnProperty("remoteJid")) {
|
|
1172
|
+
d.remoteJid = m.remoteJid;
|
|
1173
|
+
if (o.oneofs)
|
|
1174
|
+
d._remoteJid = "remoteJid";
|
|
1175
|
+
}
|
|
1176
|
+
if (m.mentionedJid && m.mentionedJid.length) {
|
|
1177
|
+
d.mentionedJid = [];
|
|
1178
|
+
for (var j = 0; j < m.mentionedJid.length; ++j) {
|
|
1179
|
+
d.mentionedJid[j] = m.mentionedJid[j];
|
|
1180
|
+
}
|
|
1181
|
+
}
|
|
1182
|
+
if (m.conversionSource != null && m.hasOwnProperty("conversionSource")) {
|
|
1183
|
+
d.conversionSource = m.conversionSource;
|
|
1184
|
+
if (o.oneofs)
|
|
1185
|
+
d._conversionSource = "conversionSource";
|
|
1186
|
+
}
|
|
1187
|
+
if (m.conversionData != null && m.hasOwnProperty("conversionData")) {
|
|
1188
|
+
d.conversionData = o.bytes === String ? $util.base64.encode(m.conversionData, 0, m.conversionData.length) : o.bytes === Array ? Array.prototype.slice.call(m.conversionData) : m.conversionData;
|
|
1189
|
+
if (o.oneofs)
|
|
1190
|
+
d._conversionData = "conversionData";
|
|
1191
|
+
}
|
|
1192
|
+
if (m.conversionDelaySeconds != null && m.hasOwnProperty("conversionDelaySeconds")) {
|
|
1193
|
+
d.conversionDelaySeconds = m.conversionDelaySeconds;
|
|
1194
|
+
if (o.oneofs)
|
|
1195
|
+
d._conversionDelaySeconds = "conversionDelaySeconds";
|
|
1196
|
+
}
|
|
1197
|
+
if (m.forwardingScore != null && m.hasOwnProperty("forwardingScore")) {
|
|
1198
|
+
d.forwardingScore = m.forwardingScore;
|
|
1199
|
+
if (o.oneofs)
|
|
1200
|
+
d._forwardingScore = "forwardingScore";
|
|
1201
|
+
}
|
|
1202
|
+
if (m.isForwarded != null && m.hasOwnProperty("isForwarded")) {
|
|
1203
|
+
d.isForwarded = m.isForwarded;
|
|
1204
|
+
if (o.oneofs)
|
|
1205
|
+
d._isForwarded = "isForwarded";
|
|
1206
|
+
}
|
|
1207
|
+
if (m.quotedAd != null && m.hasOwnProperty("quotedAd")) {
|
|
1208
|
+
d.quotedAd = $root.proto.ContextInfo.AdReplyInfo.toObject(m.quotedAd, o);
|
|
1209
|
+
if (o.oneofs)
|
|
1210
|
+
d._quotedAd = "quotedAd";
|
|
1211
|
+
}
|
|
1212
|
+
if (m.placeholderKey != null && m.hasOwnProperty("placeholderKey")) {
|
|
1213
|
+
d.placeholderKey = $root.proto.MessageKey.toObject(m.placeholderKey, o);
|
|
1214
|
+
if (o.oneofs)
|
|
1215
|
+
d._placeholderKey = "placeholderKey";
|
|
1216
|
+
}
|
|
1217
|
+
if (m.expiration != null && m.hasOwnProperty("expiration")) {
|
|
1218
|
+
d.expiration = m.expiration;
|
|
1219
|
+
if (o.oneofs)
|
|
1220
|
+
d._expiration = "expiration";
|
|
1221
|
+
}
|
|
1222
|
+
if (m.ephemeralSettingTimestamp != null && m.hasOwnProperty("ephemeralSettingTimestamp")) {
|
|
1223
|
+
if (typeof m.ephemeralSettingTimestamp === "number")
|
|
1224
|
+
d.ephemeralSettingTimestamp = o.longs === String ? String(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
|
|
1225
|
+
else
|
|
1226
|
+
d.ephemeralSettingTimestamp = o.longs === String ? longToString(m.ephemeralSettingTimestamp) : o.longs === Number ? longToNumber(m.ephemeralSettingTimestamp) : m.ephemeralSettingTimestamp;
|
|
1227
|
+
if (o.oneofs)
|
|
1228
|
+
d._ephemeralSettingTimestamp = "ephemeralSettingTimestamp";
|
|
1229
|
+
}
|
|
1230
|
+
if (m.ephemeralSharedSecret != null && m.hasOwnProperty("ephemeralSharedSecret")) {
|
|
1231
|
+
d.ephemeralSharedSecret = o.bytes === String ? $util.base64.encode(m.ephemeralSharedSecret, 0, m.ephemeralSharedSecret.length) : o.bytes === Array ? Array.prototype.slice.call(m.ephemeralSharedSecret) : m.ephemeralSharedSecret;
|
|
1232
|
+
if (o.oneofs)
|
|
1233
|
+
d._ephemeralSharedSecret = "ephemeralSharedSecret";
|
|
1234
|
+
}
|
|
1235
|
+
if (m.externalAdReply != null && m.hasOwnProperty("externalAdReply")) {
|
|
1236
|
+
d.externalAdReply = $root.proto.ContextInfo.ExternalAdReplyInfo.toObject(m.externalAdReply, o);
|
|
1237
|
+
if (o.oneofs)
|
|
1238
|
+
d._externalAdReply = "externalAdReply";
|
|
1239
|
+
}
|
|
1240
|
+
if (m.entryPointConversionSource != null && m.hasOwnProperty("entryPointConversionSource")) {
|
|
1241
|
+
d.entryPointConversionSource = m.entryPointConversionSource;
|
|
1242
|
+
if (o.oneofs)
|
|
1243
|
+
d._entryPointConversionSource = "entryPointConversionSource";
|
|
1244
|
+
}
|
|
1245
|
+
if (m.entryPointConversionApp != null && m.hasOwnProperty("entryPointConversionApp")) {
|
|
1246
|
+
d.entryPointConversionApp = m.entryPointConversionApp;
|
|
1247
|
+
if (o.oneofs)
|
|
1248
|
+
d._entryPointConversionApp = "entryPointConversionApp";
|
|
1249
|
+
}
|
|
1250
|
+
if (m.entryPointConversionDelaySeconds != null && m.hasOwnProperty("entryPointConversionDelaySeconds")) {
|
|
1251
|
+
d.entryPointConversionDelaySeconds = m.entryPointConversionDelaySeconds;
|
|
1252
|
+
if (o.oneofs)
|
|
1253
|
+
d._entryPointConversionDelaySeconds = "entryPointConversionDelaySeconds";
|
|
1254
|
+
}
|
|
1255
|
+
if (m.disappearingMode != null && m.hasOwnProperty("disappearingMode")) {
|
|
1256
|
+
d.disappearingMode = $root.proto.DisappearingMode.toObject(m.disappearingMode, o);
|
|
1257
|
+
if (o.oneofs)
|
|
1258
|
+
d._disappearingMode = "disappearingMode";
|
|
1259
|
+
}
|
|
1260
|
+
if (m.actionLink != null && m.hasOwnProperty("actionLink")) {
|
|
1261
|
+
d.actionLink = $root.proto.ActionLink.toObject(m.actionLink, o);
|
|
1262
|
+
if (o.oneofs)
|
|
1263
|
+
d._actionLink = "actionLink";
|
|
1264
|
+
}
|
|
1265
|
+
if (m.groupSubject != null && m.hasOwnProperty("groupSubject")) {
|
|
1266
|
+
d.groupSubject = m.groupSubject;
|
|
1267
|
+
if (o.oneofs)
|
|
1268
|
+
d._groupSubject = "groupSubject";
|
|
1269
|
+
}
|
|
1270
|
+
if (m.parentGroupJid != null && m.hasOwnProperty("parentGroupJid")) {
|
|
1271
|
+
d.parentGroupJid = m.parentGroupJid;
|
|
1272
|
+
if (o.oneofs)
|
|
1273
|
+
d._parentGroupJid = "parentGroupJid";
|
|
1274
|
+
}
|
|
1275
|
+
if (m.trustBannerType != null && m.hasOwnProperty("trustBannerType")) {
|
|
1276
|
+
d.trustBannerType = m.trustBannerType;
|
|
1277
|
+
if (o.oneofs)
|
|
1278
|
+
d._trustBannerType = "trustBannerType";
|
|
1279
|
+
}
|
|
1280
|
+
if (m.trustBannerAction != null && m.hasOwnProperty("trustBannerAction")) {
|
|
1281
|
+
d.trustBannerAction = m.trustBannerAction;
|
|
1282
|
+
if (o.oneofs)
|
|
1283
|
+
d._trustBannerAction = "trustBannerAction";
|
|
1284
|
+
}
|
|
1285
|
+
if (m.isSampled != null && m.hasOwnProperty("isSampled")) {
|
|
1286
|
+
d.isSampled = m.isSampled;
|
|
1287
|
+
if (o.oneofs)
|
|
1288
|
+
d._isSampled = "isSampled";
|
|
1289
|
+
}
|
|
1290
|
+
if (m.groupMentions && m.groupMentions.length) {
|
|
1291
|
+
d.groupMentions = [];
|
|
1292
|
+
for (var j = 0; j < m.groupMentions.length; ++j) {
|
|
1293
|
+
d.groupMentions[j] = $root.proto.GroupMention.toObject(m.groupMentions[j], o);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
if (m.utm != null && m.hasOwnProperty("utm")) {
|
|
1297
|
+
d.utm = $root.proto.ContextInfo.UTMInfo.toObject(m.utm, o);
|
|
1298
|
+
if (o.oneofs)
|
|
1299
|
+
d._utm = "utm";
|
|
1300
|
+
}
|
|
1301
|
+
if (m.forwardedNewsletterMessageInfo != null && m.hasOwnProperty("forwardedNewsletterMessageInfo")) {
|
|
1302
|
+
d.forwardedNewsletterMessageInfo = $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.toObject(m.forwardedNewsletterMessageInfo, o);
|
|
1303
|
+
if (o.oneofs)
|
|
1304
|
+
d._forwardedNewsletterMessageInfo = "forwardedNewsletterMessageInfo";
|
|
1305
|
+
}
|
|
1306
|
+
if (m.businessMessageForwardInfo != null && m.hasOwnProperty("businessMessageForwardInfo")) {
|
|
1307
|
+
d.businessMessageForwardInfo = $root.proto.ContextInfo.BusinessMessageForwardInfo.toObject(m.businessMessageForwardInfo, o);
|
|
1308
|
+
if (o.oneofs)
|
|
1309
|
+
d._businessMessageForwardInfo = "businessMessageForwardInfo";
|
|
1310
|
+
}
|
|
1311
|
+
if (m.smbClientCampaignId != null && m.hasOwnProperty("smbClientCampaignId")) {
|
|
1312
|
+
d.smbClientCampaignId = m.smbClientCampaignId;
|
|
1313
|
+
if (o.oneofs)
|
|
1314
|
+
d._smbClientCampaignId = "smbClientCampaignId";
|
|
1315
|
+
}
|
|
1316
|
+
if (m.smbServerCampaignId != null && m.hasOwnProperty("smbServerCampaignId")) {
|
|
1317
|
+
d.smbServerCampaignId = m.smbServerCampaignId;
|
|
1318
|
+
if (o.oneofs)
|
|
1319
|
+
d._smbServerCampaignId = "smbServerCampaignId";
|
|
1320
|
+
}
|
|
1321
|
+
if (m.dataSharingContext != null && m.hasOwnProperty("dataSharingContext")) {
|
|
1322
|
+
d.dataSharingContext = $root.proto.ContextInfo.DataSharingContext.toObject(m.dataSharingContext, o);
|
|
1323
|
+
if (o.oneofs)
|
|
1324
|
+
d._dataSharingContext = "dataSharingContext";
|
|
1325
|
+
}
|
|
1326
|
+
if (m.alwaysShowAdAttribution != null && m.hasOwnProperty("alwaysShowAdAttribution")) {
|
|
1327
|
+
d.alwaysShowAdAttribution = m.alwaysShowAdAttribution;
|
|
1328
|
+
if (o.oneofs)
|
|
1329
|
+
d._alwaysShowAdAttribution = "alwaysShowAdAttribution";
|
|
1330
|
+
}
|
|
1331
|
+
if (m.featureEligibilities != null && m.hasOwnProperty("featureEligibilities")) {
|
|
1332
|
+
d.featureEligibilities = $root.proto.ContextInfo.FeatureEligibilities.toObject(m.featureEligibilities, o);
|
|
1333
|
+
if (o.oneofs)
|
|
1334
|
+
d._featureEligibilities = "featureEligibilities";
|
|
1335
|
+
}
|
|
1336
|
+
if (m.entryPointConversionExternalSource != null && m.hasOwnProperty("entryPointConversionExternalSource")) {
|
|
1337
|
+
d.entryPointConversionExternalSource = m.entryPointConversionExternalSource;
|
|
1338
|
+
if (o.oneofs)
|
|
1339
|
+
d._entryPointConversionExternalSource = "entryPointConversionExternalSource";
|
|
1340
|
+
}
|
|
1341
|
+
if (m.entryPointConversionExternalMedium != null && m.hasOwnProperty("entryPointConversionExternalMedium")) {
|
|
1342
|
+
d.entryPointConversionExternalMedium = m.entryPointConversionExternalMedium;
|
|
1343
|
+
if (o.oneofs)
|
|
1344
|
+
d._entryPointConversionExternalMedium = "entryPointConversionExternalMedium";
|
|
1345
|
+
}
|
|
1346
|
+
if (m.ctwaSignals != null && m.hasOwnProperty("ctwaSignals")) {
|
|
1347
|
+
d.ctwaSignals = m.ctwaSignals;
|
|
1348
|
+
if (o.oneofs)
|
|
1349
|
+
d._ctwaSignals = "ctwaSignals";
|
|
1350
|
+
}
|
|
1351
|
+
if (m.ctwaPayload != null && m.hasOwnProperty("ctwaPayload")) {
|
|
1352
|
+
d.ctwaPayload = o.bytes === String ? $util.base64.encode(m.ctwaPayload, 0, m.ctwaPayload.length) : o.bytes === Array ? Array.prototype.slice.call(m.ctwaPayload) : m.ctwaPayload;
|
|
1353
|
+
if (o.oneofs)
|
|
1354
|
+
d._ctwaPayload = "ctwaPayload";
|
|
1355
|
+
}
|
|
1356
|
+
if (m.forwardedAiBotMessageInfo != null && m.hasOwnProperty("forwardedAiBotMessageInfo")) {
|
|
1357
|
+
d.forwardedAiBotMessageInfo = $root.proto.ForwardedAIBotMessageInfo.toObject(m.forwardedAiBotMessageInfo, o);
|
|
1358
|
+
if (o.oneofs)
|
|
1359
|
+
d._forwardedAiBotMessageInfo = "forwardedAiBotMessageInfo";
|
|
1360
|
+
}
|
|
1361
|
+
if (m.statusAttributionType != null && m.hasOwnProperty("statusAttributionType")) {
|
|
1362
|
+
d.statusAttributionType = o.enums === String ? $root.proto.ContextInfo.StatusAttributionType[m.statusAttributionType] === undefined ? m.statusAttributionType : $root.proto.ContextInfo.StatusAttributionType[m.statusAttributionType] : m.statusAttributionType;
|
|
1363
|
+
if (o.oneofs)
|
|
1364
|
+
d._statusAttributionType = "statusAttributionType";
|
|
1365
|
+
}
|
|
1366
|
+
if (m.urlTrackingMap != null && m.hasOwnProperty("urlTrackingMap")) {
|
|
1367
|
+
d.urlTrackingMap = $root.proto.UrlTrackingMap.toObject(m.urlTrackingMap, o);
|
|
1368
|
+
if (o.oneofs)
|
|
1369
|
+
d._urlTrackingMap = "urlTrackingMap";
|
|
1370
|
+
}
|
|
1371
|
+
if (m.pairedMediaType != null && m.hasOwnProperty("pairedMediaType")) {
|
|
1372
|
+
d.pairedMediaType = o.enums === String ? $root.proto.ContextInfo.PairedMediaType[m.pairedMediaType] === undefined ? m.pairedMediaType : $root.proto.ContextInfo.PairedMediaType[m.pairedMediaType] : m.pairedMediaType;
|
|
1373
|
+
if (o.oneofs)
|
|
1374
|
+
d._pairedMediaType = "pairedMediaType";
|
|
1375
|
+
}
|
|
1376
|
+
if (m.rankingVersion != null && m.hasOwnProperty("rankingVersion")) {
|
|
1377
|
+
d.rankingVersion = m.rankingVersion;
|
|
1378
|
+
if (o.oneofs)
|
|
1379
|
+
d._rankingVersion = "rankingVersion";
|
|
1380
|
+
}
|
|
1381
|
+
if (m.memberLabel != null && m.hasOwnProperty("memberLabel")) {
|
|
1382
|
+
d.memberLabel = $root.proto.MemberLabel.toObject(m.memberLabel, o);
|
|
1383
|
+
if (o.oneofs)
|
|
1384
|
+
d._memberLabel = "memberLabel";
|
|
1385
|
+
}
|
|
1386
|
+
if (m.isQuestion != null && m.hasOwnProperty("isQuestion")) {
|
|
1387
|
+
d.isQuestion = m.isQuestion;
|
|
1388
|
+
if (o.oneofs)
|
|
1389
|
+
d._isQuestion = "isQuestion";
|
|
1390
|
+
}
|
|
1391
|
+
if (m.statusSourceType != null && m.hasOwnProperty("statusSourceType")) {
|
|
1392
|
+
d.statusSourceType = o.enums === String ? $root.proto.ContextInfo.StatusSourceType[m.statusSourceType] === undefined ? m.statusSourceType : $root.proto.ContextInfo.StatusSourceType[m.statusSourceType] : m.statusSourceType;
|
|
1393
|
+
if (o.oneofs)
|
|
1394
|
+
d._statusSourceType = "statusSourceType";
|
|
1395
|
+
}
|
|
1396
|
+
if (m.statusAttributions && m.statusAttributions.length) {
|
|
1397
|
+
d.statusAttributions = [];
|
|
1398
|
+
for (var j = 0; j < m.statusAttributions.length; ++j) {
|
|
1399
|
+
d.statusAttributions[j] = $root.proto.StatusAttribution.toObject(m.statusAttributions[j], o);
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
if (m.isGroupStatus != null && m.hasOwnProperty("isGroupStatus")) {
|
|
1403
|
+
d.isGroupStatus = m.isGroupStatus;
|
|
1404
|
+
if (o.oneofs)
|
|
1405
|
+
d._isGroupStatus = "isGroupStatus";
|
|
1406
|
+
}
|
|
1407
|
+
if (m.forwardOrigin != null && m.hasOwnProperty("forwardOrigin")) {
|
|
1408
|
+
d.forwardOrigin = o.enums === String ? $root.proto.ContextInfo.ForwardOrigin[m.forwardOrigin] === undefined ? m.forwardOrigin : $root.proto.ContextInfo.ForwardOrigin[m.forwardOrigin] : m.forwardOrigin;
|
|
1409
|
+
if (o.oneofs)
|
|
1410
|
+
d._forwardOrigin = "forwardOrigin";
|
|
1411
|
+
}
|
|
1412
|
+
if (m.questionReplyQuotedMessage != null && m.hasOwnProperty("questionReplyQuotedMessage")) {
|
|
1413
|
+
d.questionReplyQuotedMessage = $root.proto.ContextInfo.QuestionReplyQuotedMessage.toObject(m.questionReplyQuotedMessage, o);
|
|
1414
|
+
if (o.oneofs)
|
|
1415
|
+
d._questionReplyQuotedMessage = "questionReplyQuotedMessage";
|
|
1416
|
+
}
|
|
1417
|
+
if (m.statusAudienceMetadata != null && m.hasOwnProperty("statusAudienceMetadata")) {
|
|
1418
|
+
d.statusAudienceMetadata = $root.proto.ContextInfo.StatusAudienceMetadata.toObject(m.statusAudienceMetadata, o);
|
|
1419
|
+
if (o.oneofs)
|
|
1420
|
+
d._statusAudienceMetadata = "statusAudienceMetadata";
|
|
1421
|
+
}
|
|
1422
|
+
if (m.nonJidMentions != null && m.hasOwnProperty("nonJidMentions")) {
|
|
1423
|
+
d.nonJidMentions = m.nonJidMentions;
|
|
1424
|
+
if (o.oneofs)
|
|
1425
|
+
d._nonJidMentions = "nonJidMentions";
|
|
1426
|
+
}
|
|
1427
|
+
if (m.quotedType != null && m.hasOwnProperty("quotedType")) {
|
|
1428
|
+
d.quotedType = o.enums === String ? $root.proto.ContextInfo.QuotedType[m.quotedType] === undefined ? m.quotedType : $root.proto.ContextInfo.QuotedType[m.quotedType] : m.quotedType;
|
|
1429
|
+
if (o.oneofs)
|
|
1430
|
+
d._quotedType = "quotedType";
|
|
1431
|
+
}
|
|
1432
|
+
if (m.botMessageSharingInfo != null && m.hasOwnProperty("botMessageSharingInfo")) {
|
|
1433
|
+
d.botMessageSharingInfo = $root.proto.BotMessageSharingInfo.toObject(m.botMessageSharingInfo, o);
|
|
1434
|
+
if (o.oneofs)
|
|
1435
|
+
d._botMessageSharingInfo = "botMessageSharingInfo";
|
|
1436
|
+
}
|
|
1437
|
+
if (m.isSpoiler != null && m.hasOwnProperty("isSpoiler")) {
|
|
1438
|
+
d.isSpoiler = m.isSpoiler;
|
|
1439
|
+
if (o.oneofs)
|
|
1440
|
+
d._isSpoiler = "isSpoiler";
|
|
1441
|
+
}
|
|
1442
|
+
if (m.mediaDomainInfo != null && m.hasOwnProperty("mediaDomainInfo")) {
|
|
1443
|
+
d.mediaDomainInfo = $root.proto.MediaDomainInfo.toObject(m.mediaDomainInfo, o);
|
|
1444
|
+
if (o.oneofs)
|
|
1445
|
+
d._mediaDomainInfo = "mediaDomainInfo";
|
|
1446
|
+
}
|
|
1447
|
+
if (m.partiallySelectedContent != null && m.hasOwnProperty("partiallySelectedContent")) {
|
|
1448
|
+
d.partiallySelectedContent = $root.proto.ContextInfo.PartiallySelectedContent.toObject(m.partiallySelectedContent, o);
|
|
1449
|
+
if (o.oneofs)
|
|
1450
|
+
d._partiallySelectedContent = "partiallySelectedContent";
|
|
1451
|
+
}
|
|
1452
|
+
if (m.afterReadDuration != null && m.hasOwnProperty("afterReadDuration")) {
|
|
1453
|
+
d.afterReadDuration = m.afterReadDuration;
|
|
1454
|
+
if (o.oneofs)
|
|
1455
|
+
d._afterReadDuration = "afterReadDuration";
|
|
1456
|
+
}
|
|
1457
|
+
if (m.crossAppSource != null && m.hasOwnProperty("crossAppSource")) {
|
|
1458
|
+
d.crossAppSource = o.enums === String ? $root.proto.ContextInfo.CrossAppSource[m.crossAppSource] === undefined ? m.crossAppSource : $root.proto.ContextInfo.CrossAppSource[m.crossAppSource] : m.crossAppSource;
|
|
1459
|
+
if (o.oneofs)
|
|
1460
|
+
d._crossAppSource = "crossAppSource";
|
|
1461
|
+
}
|
|
1462
|
+
if (m.businessInteractionPills != null && m.hasOwnProperty("businessInteractionPills")) {
|
|
1463
|
+
d.businessInteractionPills = $root.proto.ContextInfo.BusinessInteractionPills.toObject(m.businessInteractionPills, o);
|
|
1464
|
+
if (o.oneofs)
|
|
1465
|
+
d._businessInteractionPills = "businessInteractionPills";
|
|
1466
|
+
}
|
|
1467
|
+
if (m.posterStatusId != null && m.hasOwnProperty("posterStatusId")) {
|
|
1468
|
+
d.posterStatusId = m.posterStatusId;
|
|
1469
|
+
if (o.oneofs)
|
|
1470
|
+
d._posterStatusId = "posterStatusId";
|
|
1471
|
+
}
|
|
1472
|
+
return d;
|
|
1473
|
+
};
|
|
1474
|
+
ContextInfo.prototype.toJSON = function toJSON() {
|
|
1475
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1476
|
+
};
|
|
1477
|
+
ContextInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1478
|
+
if (typeUrlPrefix === undefined) {
|
|
1479
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1480
|
+
}
|
|
1481
|
+
return typeUrlPrefix + "/proto.ContextInfo";
|
|
1482
|
+
};
|
|
1483
|
+
$lazy(ContextInfo, "AdReplyInfo", function() {
|
|
1484
|
+
function AdReplyInfo(p) {
|
|
1485
|
+
if (p)
|
|
1486
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1487
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1488
|
+
this[ks[i]] = p[ks[i]];
|
|
1489
|
+
}
|
|
1490
|
+
AdReplyInfo.prototype.advertiserName = null;
|
|
1491
|
+
AdReplyInfo.prototype.mediaType = null;
|
|
1492
|
+
AdReplyInfo.prototype.jpegThumbnail = null;
|
|
1493
|
+
AdReplyInfo.prototype.caption = null;
|
|
1494
|
+
let $oneOfFields;
|
|
1495
|
+
Object.defineProperty(AdReplyInfo.prototype, "_advertiserName", {
|
|
1496
|
+
get: $util.oneOfGetter($oneOfFields = ["advertiserName"]),
|
|
1497
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1498
|
+
});
|
|
1499
|
+
Object.defineProperty(AdReplyInfo.prototype, "_mediaType", {
|
|
1500
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaType"]),
|
|
1501
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1502
|
+
});
|
|
1503
|
+
Object.defineProperty(AdReplyInfo.prototype, "_jpegThumbnail", {
|
|
1504
|
+
get: $util.oneOfGetter($oneOfFields = ["jpegThumbnail"]),
|
|
1505
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1506
|
+
});
|
|
1507
|
+
Object.defineProperty(AdReplyInfo.prototype, "_caption", {
|
|
1508
|
+
get: $util.oneOfGetter($oneOfFields = ["caption"]),
|
|
1509
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1510
|
+
});
|
|
1511
|
+
AdReplyInfo.create = function create(properties) {
|
|
1512
|
+
return new AdReplyInfo(properties);
|
|
1513
|
+
};
|
|
1514
|
+
AdReplyInfo.encode = function encode(m, w) {
|
|
1515
|
+
if (!w)
|
|
1516
|
+
w = $Writer.create();
|
|
1517
|
+
if (m.advertiserName != null && Object.hasOwnProperty.call(m, "advertiserName"))
|
|
1518
|
+
w.uint32(10).string(m.advertiserName);
|
|
1519
|
+
if (m.mediaType != null && Object.hasOwnProperty.call(m, "mediaType"))
|
|
1520
|
+
w.uint32(16).int32(m.mediaType);
|
|
1521
|
+
if (m.jpegThumbnail != null && Object.hasOwnProperty.call(m, "jpegThumbnail"))
|
|
1522
|
+
w.uint32(130).bytes(m.jpegThumbnail);
|
|
1523
|
+
if (m.caption != null && Object.hasOwnProperty.call(m, "caption"))
|
|
1524
|
+
w.uint32(138).string(m.caption);
|
|
1525
|
+
return w;
|
|
1526
|
+
};
|
|
1527
|
+
AdReplyInfo.decode = function decode(r, l, e, n) {
|
|
1528
|
+
if (!(r instanceof $Reader))
|
|
1529
|
+
r = $Reader.create(r);
|
|
1530
|
+
if (n === undefined)
|
|
1531
|
+
n = 0;
|
|
1532
|
+
if (n > $Reader.recursionLimit)
|
|
1533
|
+
throw Error("maximum nesting depth exceeded");
|
|
1534
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.AdReplyInfo();
|
|
1535
|
+
while (r.pos < c) {
|
|
1536
|
+
var t = r.uint32();
|
|
1537
|
+
if (t === e)
|
|
1538
|
+
break;
|
|
1539
|
+
switch (t >>> 3) {
|
|
1540
|
+
case 1: {
|
|
1541
|
+
m.advertiserName = r.string();
|
|
1542
|
+
break;
|
|
1543
|
+
}
|
|
1544
|
+
case 2: {
|
|
1545
|
+
m.mediaType = r.int32();
|
|
1546
|
+
break;
|
|
1547
|
+
}
|
|
1548
|
+
case 16: {
|
|
1549
|
+
m.jpegThumbnail = r.bytes();
|
|
1550
|
+
break;
|
|
1551
|
+
}
|
|
1552
|
+
case 17: {
|
|
1553
|
+
m.caption = r.string();
|
|
1554
|
+
break;
|
|
1555
|
+
}
|
|
1556
|
+
default:
|
|
1557
|
+
r.skipType(t & 7, n);
|
|
1558
|
+
break;
|
|
1559
|
+
}
|
|
1560
|
+
}
|
|
1561
|
+
return m;
|
|
1562
|
+
};
|
|
1563
|
+
AdReplyInfo.fromObject = function fromObject(d, n) {
|
|
1564
|
+
if (d instanceof $root.proto.ContextInfo.AdReplyInfo)
|
|
1565
|
+
return d;
|
|
1566
|
+
if (n === undefined)
|
|
1567
|
+
n = 0;
|
|
1568
|
+
if (n > $util.recursionLimit)
|
|
1569
|
+
throw Error("maximum nesting depth exceeded");
|
|
1570
|
+
var m = new $root.proto.ContextInfo.AdReplyInfo();
|
|
1571
|
+
if (d.advertiserName != null) {
|
|
1572
|
+
m.advertiserName = String(d.advertiserName);
|
|
1573
|
+
}
|
|
1574
|
+
switch (d.mediaType) {
|
|
1575
|
+
default:
|
|
1576
|
+
if (typeof d.mediaType === "number") {
|
|
1577
|
+
m.mediaType = d.mediaType;
|
|
1578
|
+
break;
|
|
1579
|
+
}
|
|
1580
|
+
break;
|
|
1581
|
+
case "NONE":
|
|
1582
|
+
case 0:
|
|
1583
|
+
m.mediaType = 0;
|
|
1584
|
+
break;
|
|
1585
|
+
case "IMAGE":
|
|
1586
|
+
case 1:
|
|
1587
|
+
m.mediaType = 1;
|
|
1588
|
+
break;
|
|
1589
|
+
case "VIDEO":
|
|
1590
|
+
case 2:
|
|
1591
|
+
m.mediaType = 2;
|
|
1592
|
+
break;
|
|
1593
|
+
}
|
|
1594
|
+
if (d.jpegThumbnail != null) {
|
|
1595
|
+
if (typeof d.jpegThumbnail === "string")
|
|
1596
|
+
$util.base64.decode(d.jpegThumbnail, m.jpegThumbnail = $util.newBuffer($util.base64.length(d.jpegThumbnail)), 0);
|
|
1597
|
+
else if (d.jpegThumbnail.length >= 0)
|
|
1598
|
+
m.jpegThumbnail = d.jpegThumbnail;
|
|
1599
|
+
}
|
|
1600
|
+
if (d.caption != null) {
|
|
1601
|
+
m.caption = String(d.caption);
|
|
1602
|
+
}
|
|
1603
|
+
return m;
|
|
1604
|
+
};
|
|
1605
|
+
AdReplyInfo.toObject = function toObject(m, o) {
|
|
1606
|
+
if (!o)
|
|
1607
|
+
o = {};
|
|
1608
|
+
var d = {};
|
|
1609
|
+
if (m.advertiserName != null && m.hasOwnProperty("advertiserName")) {
|
|
1610
|
+
d.advertiserName = m.advertiserName;
|
|
1611
|
+
if (o.oneofs)
|
|
1612
|
+
d._advertiserName = "advertiserName";
|
|
1613
|
+
}
|
|
1614
|
+
if (m.mediaType != null && m.hasOwnProperty("mediaType")) {
|
|
1615
|
+
d.mediaType = o.enums === String ? $root.proto.ContextInfo.AdReplyInfo.MediaType[m.mediaType] === undefined ? m.mediaType : $root.proto.ContextInfo.AdReplyInfo.MediaType[m.mediaType] : m.mediaType;
|
|
1616
|
+
if (o.oneofs)
|
|
1617
|
+
d._mediaType = "mediaType";
|
|
1618
|
+
}
|
|
1619
|
+
if (m.jpegThumbnail != null && m.hasOwnProperty("jpegThumbnail")) {
|
|
1620
|
+
d.jpegThumbnail = o.bytes === String ? $util.base64.encode(m.jpegThumbnail, 0, m.jpegThumbnail.length) : o.bytes === Array ? Array.prototype.slice.call(m.jpegThumbnail) : m.jpegThumbnail;
|
|
1621
|
+
if (o.oneofs)
|
|
1622
|
+
d._jpegThumbnail = "jpegThumbnail";
|
|
1623
|
+
}
|
|
1624
|
+
if (m.caption != null && m.hasOwnProperty("caption")) {
|
|
1625
|
+
d.caption = m.caption;
|
|
1626
|
+
if (o.oneofs)
|
|
1627
|
+
d._caption = "caption";
|
|
1628
|
+
}
|
|
1629
|
+
return d;
|
|
1630
|
+
};
|
|
1631
|
+
AdReplyInfo.prototype.toJSON = function toJSON() {
|
|
1632
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1633
|
+
};
|
|
1634
|
+
AdReplyInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1635
|
+
if (typeUrlPrefix === undefined) {
|
|
1636
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1637
|
+
}
|
|
1638
|
+
return typeUrlPrefix + "/proto.ContextInfo.AdReplyInfo";
|
|
1639
|
+
};
|
|
1640
|
+
$lazy(AdReplyInfo, "MediaType", function() {
|
|
1641
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
1642
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
1643
|
+
values[valuesById[1] = "IMAGE"] = 1;
|
|
1644
|
+
values[valuesById[2] = "VIDEO"] = 2;
|
|
1645
|
+
return values;
|
|
1646
|
+
});
|
|
1647
|
+
return AdReplyInfo;
|
|
1648
|
+
});
|
|
1649
|
+
$lazy(ContextInfo, "BusinessInteractionPills", function() {
|
|
1650
|
+
function BusinessInteractionPills(p) {
|
|
1651
|
+
this.pills = [];
|
|
1652
|
+
if (p)
|
|
1653
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1654
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1655
|
+
this[ks[i]] = p[ks[i]];
|
|
1656
|
+
}
|
|
1657
|
+
BusinessInteractionPills.prototype.businessJid = null;
|
|
1658
|
+
BusinessInteractionPills.prototype.pills = $util.emptyArray;
|
|
1659
|
+
BusinessInteractionPills.prototype.entryPoint = null;
|
|
1660
|
+
BusinessInteractionPills.prototype.signedPayload = null;
|
|
1661
|
+
BusinessInteractionPills.prototype.signatureEnvelope = null;
|
|
1662
|
+
let $oneOfFields;
|
|
1663
|
+
Object.defineProperty(BusinessInteractionPills.prototype, "_businessJid", {
|
|
1664
|
+
get: $util.oneOfGetter($oneOfFields = ["businessJid"]),
|
|
1665
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1666
|
+
});
|
|
1667
|
+
Object.defineProperty(BusinessInteractionPills.prototype, "_entryPoint", {
|
|
1668
|
+
get: $util.oneOfGetter($oneOfFields = ["entryPoint"]),
|
|
1669
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1670
|
+
});
|
|
1671
|
+
Object.defineProperty(BusinessInteractionPills.prototype, "_signedPayload", {
|
|
1672
|
+
get: $util.oneOfGetter($oneOfFields = ["signedPayload"]),
|
|
1673
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1674
|
+
});
|
|
1675
|
+
Object.defineProperty(BusinessInteractionPills.prototype, "_signatureEnvelope", {
|
|
1676
|
+
get: $util.oneOfGetter($oneOfFields = ["signatureEnvelope"]),
|
|
1677
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1678
|
+
});
|
|
1679
|
+
BusinessInteractionPills.create = function create(properties) {
|
|
1680
|
+
return new BusinessInteractionPills(properties);
|
|
1681
|
+
};
|
|
1682
|
+
BusinessInteractionPills.encode = function encode(m, w) {
|
|
1683
|
+
if (!w)
|
|
1684
|
+
w = $Writer.create();
|
|
1685
|
+
if (m.businessJid != null && Object.hasOwnProperty.call(m, "businessJid"))
|
|
1686
|
+
w.uint32(10).string(m.businessJid);
|
|
1687
|
+
if (m.pills != null && m.pills.length) {
|
|
1688
|
+
for (var i = 0; i < m.pills.length; ++i)
|
|
1689
|
+
$root.proto.ContextInfo.BusinessInteractionPills.Pill.encode(m.pills[i], w.uint32(18).fork()).ldelim();
|
|
1690
|
+
}
|
|
1691
|
+
if (m.entryPoint != null && Object.hasOwnProperty.call(m, "entryPoint"))
|
|
1692
|
+
w.uint32(24).int32(m.entryPoint);
|
|
1693
|
+
if (m.signedPayload != null && Object.hasOwnProperty.call(m, "signedPayload"))
|
|
1694
|
+
w.uint32(34).bytes(m.signedPayload);
|
|
1695
|
+
if (m.signatureEnvelope != null && Object.hasOwnProperty.call(m, "signatureEnvelope"))
|
|
1696
|
+
$root.proto.BotSignatureVerificationMetadata.encode(m.signatureEnvelope, w.uint32(42).fork()).ldelim();
|
|
1697
|
+
return w;
|
|
1698
|
+
};
|
|
1699
|
+
BusinessInteractionPills.decode = function decode(r, l, e, n) {
|
|
1700
|
+
if (!(r instanceof $Reader))
|
|
1701
|
+
r = $Reader.create(r);
|
|
1702
|
+
if (n === undefined)
|
|
1703
|
+
n = 0;
|
|
1704
|
+
if (n > $Reader.recursionLimit)
|
|
1705
|
+
throw Error("maximum nesting depth exceeded");
|
|
1706
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.BusinessInteractionPills();
|
|
1707
|
+
while (r.pos < c) {
|
|
1708
|
+
var t = r.uint32();
|
|
1709
|
+
if (t === e)
|
|
1710
|
+
break;
|
|
1711
|
+
switch (t >>> 3) {
|
|
1712
|
+
case 1: {
|
|
1713
|
+
m.businessJid = r.string();
|
|
1714
|
+
break;
|
|
1715
|
+
}
|
|
1716
|
+
case 2: {
|
|
1717
|
+
if (!(m.pills && m.pills.length))
|
|
1718
|
+
m.pills = [];
|
|
1719
|
+
m.pills.push($root.proto.ContextInfo.BusinessInteractionPills.Pill.decode(r, r.uint32(), undefined, n + 1));
|
|
1720
|
+
break;
|
|
1721
|
+
}
|
|
1722
|
+
case 3: {
|
|
1723
|
+
m.entryPoint = r.int32();
|
|
1724
|
+
break;
|
|
1725
|
+
}
|
|
1726
|
+
case 4: {
|
|
1727
|
+
m.signedPayload = r.bytes();
|
|
1728
|
+
break;
|
|
1729
|
+
}
|
|
1730
|
+
case 5: {
|
|
1731
|
+
m.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
1732
|
+
break;
|
|
1733
|
+
}
|
|
1734
|
+
default:
|
|
1735
|
+
r.skipType(t & 7, n);
|
|
1736
|
+
break;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
return m;
|
|
1740
|
+
};
|
|
1741
|
+
BusinessInteractionPills.fromObject = function fromObject(d, n) {
|
|
1742
|
+
if (d instanceof $root.proto.ContextInfo.BusinessInteractionPills)
|
|
1743
|
+
return d;
|
|
1744
|
+
if (n === undefined)
|
|
1745
|
+
n = 0;
|
|
1746
|
+
if (n > $util.recursionLimit)
|
|
1747
|
+
throw Error("maximum nesting depth exceeded");
|
|
1748
|
+
var m = new $root.proto.ContextInfo.BusinessInteractionPills();
|
|
1749
|
+
if (d.businessJid != null) {
|
|
1750
|
+
m.businessJid = String(d.businessJid);
|
|
1751
|
+
}
|
|
1752
|
+
if (d.pills) {
|
|
1753
|
+
if (!Array.isArray(d.pills))
|
|
1754
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.pills: array expected");
|
|
1755
|
+
m.pills = [];
|
|
1756
|
+
for (var i = 0; i < d.pills.length; ++i) {
|
|
1757
|
+
if (typeof d.pills[i] !== "object")
|
|
1758
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.pills: object expected");
|
|
1759
|
+
m.pills[i] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.fromObject(d.pills[i], n + 1);
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
switch (d.entryPoint) {
|
|
1763
|
+
default:
|
|
1764
|
+
if (typeof d.entryPoint === "number") {
|
|
1765
|
+
m.entryPoint = d.entryPoint;
|
|
1766
|
+
break;
|
|
1767
|
+
}
|
|
1768
|
+
break;
|
|
1769
|
+
case "ENTRY_POINT_UNKNOWN":
|
|
1770
|
+
case 0:
|
|
1771
|
+
m.entryPoint = 0;
|
|
1772
|
+
break;
|
|
1773
|
+
case "P2P_LINK_SHARE":
|
|
1774
|
+
case 1:
|
|
1775
|
+
m.entryPoint = 1;
|
|
1776
|
+
break;
|
|
1777
|
+
case "CONTACT_CARD_SHARING":
|
|
1778
|
+
case 2:
|
|
1779
|
+
m.entryPoint = 2;
|
|
1780
|
+
break;
|
|
1781
|
+
case "PHONE_NUMBER":
|
|
1782
|
+
case 3:
|
|
1783
|
+
m.entryPoint = 3;
|
|
1784
|
+
break;
|
|
1785
|
+
case "STATUS":
|
|
1786
|
+
case 4:
|
|
1787
|
+
m.entryPoint = 4;
|
|
1788
|
+
break;
|
|
1789
|
+
case "IN_THREAD_CONTEXT_CARD":
|
|
1790
|
+
case 5:
|
|
1791
|
+
m.entryPoint = 5;
|
|
1792
|
+
break;
|
|
1793
|
+
}
|
|
1794
|
+
if (d.signedPayload != null) {
|
|
1795
|
+
if (typeof d.signedPayload === "string")
|
|
1796
|
+
$util.base64.decode(d.signedPayload, m.signedPayload = $util.newBuffer($util.base64.length(d.signedPayload)), 0);
|
|
1797
|
+
else if (d.signedPayload.length >= 0)
|
|
1798
|
+
m.signedPayload = d.signedPayload;
|
|
1799
|
+
}
|
|
1800
|
+
if (d.signatureEnvelope != null) {
|
|
1801
|
+
if (typeof d.signatureEnvelope !== "object")
|
|
1802
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.signatureEnvelope: object expected");
|
|
1803
|
+
m.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.fromObject(d.signatureEnvelope, n + 1);
|
|
1804
|
+
}
|
|
1805
|
+
return m;
|
|
1806
|
+
};
|
|
1807
|
+
BusinessInteractionPills.toObject = function toObject(m, o) {
|
|
1808
|
+
if (!o)
|
|
1809
|
+
o = {};
|
|
1810
|
+
var d = {};
|
|
1811
|
+
if (o.arrays || o.defaults) {
|
|
1812
|
+
d.pills = [];
|
|
1813
|
+
}
|
|
1814
|
+
if (m.businessJid != null && m.hasOwnProperty("businessJid")) {
|
|
1815
|
+
d.businessJid = m.businessJid;
|
|
1816
|
+
if (o.oneofs)
|
|
1817
|
+
d._businessJid = "businessJid";
|
|
1818
|
+
}
|
|
1819
|
+
if (m.pills && m.pills.length) {
|
|
1820
|
+
d.pills = [];
|
|
1821
|
+
for (var j = 0; j < m.pills.length; ++j) {
|
|
1822
|
+
d.pills[j] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.toObject(m.pills[j], o);
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
if (m.entryPoint != null && m.hasOwnProperty("entryPoint")) {
|
|
1826
|
+
d.entryPoint = o.enums === String ? $root.proto.ContextInfo.BusinessInteractionPills.EntryPoint[m.entryPoint] === undefined ? m.entryPoint : $root.proto.ContextInfo.BusinessInteractionPills.EntryPoint[m.entryPoint] : m.entryPoint;
|
|
1827
|
+
if (o.oneofs)
|
|
1828
|
+
d._entryPoint = "entryPoint";
|
|
1829
|
+
}
|
|
1830
|
+
if (m.signedPayload != null && m.hasOwnProperty("signedPayload")) {
|
|
1831
|
+
d.signedPayload = o.bytes === String ? $util.base64.encode(m.signedPayload, 0, m.signedPayload.length) : o.bytes === Array ? Array.prototype.slice.call(m.signedPayload) : m.signedPayload;
|
|
1832
|
+
if (o.oneofs)
|
|
1833
|
+
d._signedPayload = "signedPayload";
|
|
1834
|
+
}
|
|
1835
|
+
if (m.signatureEnvelope != null && m.hasOwnProperty("signatureEnvelope")) {
|
|
1836
|
+
d.signatureEnvelope = $root.proto.BotSignatureVerificationMetadata.toObject(m.signatureEnvelope, o);
|
|
1837
|
+
if (o.oneofs)
|
|
1838
|
+
d._signatureEnvelope = "signatureEnvelope";
|
|
1839
|
+
}
|
|
1840
|
+
return d;
|
|
1841
|
+
};
|
|
1842
|
+
BusinessInteractionPills.prototype.toJSON = function toJSON() {
|
|
1843
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1844
|
+
};
|
|
1845
|
+
BusinessInteractionPills.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1846
|
+
if (typeUrlPrefix === undefined) {
|
|
1847
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1848
|
+
}
|
|
1849
|
+
return typeUrlPrefix + "/proto.ContextInfo.BusinessInteractionPills";
|
|
1850
|
+
};
|
|
1851
|
+
$lazy(BusinessInteractionPills, "EntryPoint", function() {
|
|
1852
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
1853
|
+
values[valuesById[0] = "ENTRY_POINT_UNKNOWN"] = 0;
|
|
1854
|
+
values[valuesById[1] = "P2P_LINK_SHARE"] = 1;
|
|
1855
|
+
values[valuesById[2] = "CONTACT_CARD_SHARING"] = 2;
|
|
1856
|
+
values[valuesById[3] = "PHONE_NUMBER"] = 3;
|
|
1857
|
+
values[valuesById[4] = "STATUS"] = 4;
|
|
1858
|
+
values[valuesById[5] = "IN_THREAD_CONTEXT_CARD"] = 5;
|
|
1859
|
+
return values;
|
|
1860
|
+
});
|
|
1861
|
+
$lazy(BusinessInteractionPills, "Pill", function() {
|
|
1862
|
+
function Pill(p) {
|
|
1863
|
+
if (p)
|
|
1864
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1865
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1866
|
+
this[ks[i]] = p[ks[i]];
|
|
1867
|
+
}
|
|
1868
|
+
Pill.prototype.pillType = null;
|
|
1869
|
+
Pill.prototype.actionUrl = null;
|
|
1870
|
+
let $oneOfFields;
|
|
1871
|
+
Object.defineProperty(Pill.prototype, "_pillType", {
|
|
1872
|
+
get: $util.oneOfGetter($oneOfFields = ["pillType"]),
|
|
1873
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1874
|
+
});
|
|
1875
|
+
Object.defineProperty(Pill.prototype, "_actionUrl", {
|
|
1876
|
+
get: $util.oneOfGetter($oneOfFields = ["actionUrl"]),
|
|
1877
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1878
|
+
});
|
|
1879
|
+
Pill.create = function create(properties) {
|
|
1880
|
+
return new Pill(properties);
|
|
1881
|
+
};
|
|
1882
|
+
Pill.encode = function encode(m, w) {
|
|
1883
|
+
if (!w)
|
|
1884
|
+
w = $Writer.create();
|
|
1885
|
+
if (m.pillType != null && Object.hasOwnProperty.call(m, "pillType"))
|
|
1886
|
+
w.uint32(8).int32(m.pillType);
|
|
1887
|
+
if (m.actionUrl != null && Object.hasOwnProperty.call(m, "actionUrl"))
|
|
1888
|
+
w.uint32(18).string(m.actionUrl);
|
|
1889
|
+
return w;
|
|
1890
|
+
};
|
|
1891
|
+
Pill.decode = function decode(r, l, e, n) {
|
|
1892
|
+
if (!(r instanceof $Reader))
|
|
1893
|
+
r = $Reader.create(r);
|
|
1894
|
+
if (n === undefined)
|
|
1895
|
+
n = 0;
|
|
1896
|
+
if (n > $Reader.recursionLimit)
|
|
1897
|
+
throw Error("maximum nesting depth exceeded");
|
|
1898
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.BusinessInteractionPills.Pill();
|
|
1899
|
+
while (r.pos < c) {
|
|
1900
|
+
var t = r.uint32();
|
|
1901
|
+
if (t === e)
|
|
1902
|
+
break;
|
|
1903
|
+
switch (t >>> 3) {
|
|
1904
|
+
case 1: {
|
|
1905
|
+
m.pillType = r.int32();
|
|
1906
|
+
break;
|
|
1907
|
+
}
|
|
1908
|
+
case 2: {
|
|
1909
|
+
m.actionUrl = r.string();
|
|
1910
|
+
break;
|
|
1911
|
+
}
|
|
1912
|
+
default:
|
|
1913
|
+
r.skipType(t & 7, n);
|
|
1914
|
+
break;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
return m;
|
|
1918
|
+
};
|
|
1919
|
+
Pill.fromObject = function fromObject(d, n) {
|
|
1920
|
+
if (d instanceof $root.proto.ContextInfo.BusinessInteractionPills.Pill)
|
|
1921
|
+
return d;
|
|
1922
|
+
if (n === undefined)
|
|
1923
|
+
n = 0;
|
|
1924
|
+
if (n > $util.recursionLimit)
|
|
1925
|
+
throw Error("maximum nesting depth exceeded");
|
|
1926
|
+
var m = new $root.proto.ContextInfo.BusinessInteractionPills.Pill();
|
|
1927
|
+
switch (d.pillType) {
|
|
1928
|
+
default:
|
|
1929
|
+
if (typeof d.pillType === "number") {
|
|
1930
|
+
m.pillType = d.pillType;
|
|
1931
|
+
break;
|
|
1932
|
+
}
|
|
1933
|
+
break;
|
|
1934
|
+
case "UNKNOWN":
|
|
1935
|
+
case 0:
|
|
1936
|
+
m.pillType = 0;
|
|
1937
|
+
break;
|
|
1938
|
+
case "VIEW_BUSINESS":
|
|
1939
|
+
case 1:
|
|
1940
|
+
m.pillType = 1;
|
|
1941
|
+
break;
|
|
1942
|
+
case "CHAT":
|
|
1943
|
+
case 2:
|
|
1944
|
+
m.pillType = 2;
|
|
1945
|
+
break;
|
|
1946
|
+
case "CALL":
|
|
1947
|
+
case 3:
|
|
1948
|
+
m.pillType = 3;
|
|
1949
|
+
break;
|
|
1950
|
+
case "CATALOG":
|
|
1951
|
+
case 4:
|
|
1952
|
+
m.pillType = 4;
|
|
1953
|
+
break;
|
|
1954
|
+
case "CHANNEL":
|
|
1955
|
+
case 5:
|
|
1956
|
+
m.pillType = 5;
|
|
1957
|
+
break;
|
|
1958
|
+
case "BOOK_APPOINTMENT":
|
|
1959
|
+
case 6:
|
|
1960
|
+
m.pillType = 6;
|
|
1961
|
+
break;
|
|
1962
|
+
case "OFFERS":
|
|
1963
|
+
case 7:
|
|
1964
|
+
m.pillType = 7;
|
|
1965
|
+
break;
|
|
1966
|
+
case "BESTSELLERS":
|
|
1967
|
+
case 8:
|
|
1968
|
+
m.pillType = 8;
|
|
1969
|
+
break;
|
|
1970
|
+
case "MENU":
|
|
1971
|
+
case 9:
|
|
1972
|
+
m.pillType = 9;
|
|
1973
|
+
break;
|
|
1974
|
+
case "ABOUT":
|
|
1975
|
+
case 10:
|
|
1976
|
+
m.pillType = 10;
|
|
1977
|
+
break;
|
|
1978
|
+
case "SHOP":
|
|
1979
|
+
case 11:
|
|
1980
|
+
m.pillType = 11;
|
|
1981
|
+
break;
|
|
1982
|
+
case "ORDER":
|
|
1983
|
+
case 12:
|
|
1984
|
+
m.pillType = 12;
|
|
1985
|
+
break;
|
|
1986
|
+
}
|
|
1987
|
+
if (d.actionUrl != null) {
|
|
1988
|
+
m.actionUrl = String(d.actionUrl);
|
|
1989
|
+
}
|
|
1990
|
+
return m;
|
|
1991
|
+
};
|
|
1992
|
+
Pill.toObject = function toObject(m, o) {
|
|
1993
|
+
if (!o)
|
|
1994
|
+
o = {};
|
|
1995
|
+
var d = {};
|
|
1996
|
+
if (m.pillType != null && m.hasOwnProperty("pillType")) {
|
|
1997
|
+
d.pillType = o.enums === String ? $root.proto.ContextInfo.BusinessInteractionPills.PillType[m.pillType] === undefined ? m.pillType : $root.proto.ContextInfo.BusinessInteractionPills.PillType[m.pillType] : m.pillType;
|
|
1998
|
+
if (o.oneofs)
|
|
1999
|
+
d._pillType = "pillType";
|
|
2000
|
+
}
|
|
2001
|
+
if (m.actionUrl != null && m.hasOwnProperty("actionUrl")) {
|
|
2002
|
+
d.actionUrl = m.actionUrl;
|
|
2003
|
+
if (o.oneofs)
|
|
2004
|
+
d._actionUrl = "actionUrl";
|
|
2005
|
+
}
|
|
2006
|
+
return d;
|
|
2007
|
+
};
|
|
2008
|
+
Pill.prototype.toJSON = function toJSON() {
|
|
2009
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2010
|
+
};
|
|
2011
|
+
Pill.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2012
|
+
if (typeUrlPrefix === undefined) {
|
|
2013
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2014
|
+
}
|
|
2015
|
+
return typeUrlPrefix + "/proto.ContextInfo.BusinessInteractionPills.Pill";
|
|
2016
|
+
};
|
|
2017
|
+
return Pill;
|
|
2018
|
+
});
|
|
2019
|
+
$lazy(BusinessInteractionPills, "PillType", function() {
|
|
2020
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
2021
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
2022
|
+
values[valuesById[1] = "VIEW_BUSINESS"] = 1;
|
|
2023
|
+
values[valuesById[2] = "CHAT"] = 2;
|
|
2024
|
+
values[valuesById[3] = "CALL"] = 3;
|
|
2025
|
+
values[valuesById[4] = "CATALOG"] = 4;
|
|
2026
|
+
values[valuesById[5] = "CHANNEL"] = 5;
|
|
2027
|
+
values[valuesById[6] = "BOOK_APPOINTMENT"] = 6;
|
|
2028
|
+
values[valuesById[7] = "OFFERS"] = 7;
|
|
2029
|
+
values[valuesById[8] = "BESTSELLERS"] = 8;
|
|
2030
|
+
values[valuesById[9] = "MENU"] = 9;
|
|
2031
|
+
values[valuesById[10] = "ABOUT"] = 10;
|
|
2032
|
+
values[valuesById[11] = "SHOP"] = 11;
|
|
2033
|
+
values[valuesById[12] = "ORDER"] = 12;
|
|
2034
|
+
return values;
|
|
2035
|
+
});
|
|
2036
|
+
$lazy(BusinessInteractionPills, "SignedPayload", function() {
|
|
2037
|
+
function SignedPayload(p) {
|
|
2038
|
+
this.pills = [];
|
|
2039
|
+
if (p)
|
|
2040
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
2041
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
2042
|
+
this[ks[i]] = p[ks[i]];
|
|
2043
|
+
}
|
|
2044
|
+
SignedPayload.prototype.verifiedName = null;
|
|
2045
|
+
SignedPayload.prototype.pills = $util.emptyArray;
|
|
2046
|
+
let $oneOfFields;
|
|
2047
|
+
Object.defineProperty(SignedPayload.prototype, "_verifiedName", {
|
|
2048
|
+
get: $util.oneOfGetter($oneOfFields = ["verifiedName"]),
|
|
2049
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2050
|
+
});
|
|
2051
|
+
SignedPayload.create = function create(properties) {
|
|
2052
|
+
return new SignedPayload(properties);
|
|
2053
|
+
};
|
|
2054
|
+
SignedPayload.encode = function encode(m, w) {
|
|
2055
|
+
if (!w)
|
|
2056
|
+
w = $Writer.create();
|
|
2057
|
+
if (m.verifiedName != null && Object.hasOwnProperty.call(m, "verifiedName"))
|
|
2058
|
+
w.uint32(10).string(m.verifiedName);
|
|
2059
|
+
if (m.pills != null && m.pills.length) {
|
|
2060
|
+
for (var i = 0; i < m.pills.length; ++i)
|
|
2061
|
+
$root.proto.ContextInfo.BusinessInteractionPills.Pill.encode(m.pills[i], w.uint32(18).fork()).ldelim();
|
|
2062
|
+
}
|
|
2063
|
+
return w;
|
|
2064
|
+
};
|
|
2065
|
+
SignedPayload.decode = function decode(r, l, e, n) {
|
|
2066
|
+
if (!(r instanceof $Reader))
|
|
2067
|
+
r = $Reader.create(r);
|
|
2068
|
+
if (n === undefined)
|
|
2069
|
+
n = 0;
|
|
2070
|
+
if (n > $Reader.recursionLimit)
|
|
2071
|
+
throw Error("maximum nesting depth exceeded");
|
|
2072
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload();
|
|
2073
|
+
while (r.pos < c) {
|
|
2074
|
+
var t = r.uint32();
|
|
2075
|
+
if (t === e)
|
|
2076
|
+
break;
|
|
2077
|
+
switch (t >>> 3) {
|
|
2078
|
+
case 1: {
|
|
2079
|
+
m.verifiedName = r.string();
|
|
2080
|
+
break;
|
|
2081
|
+
}
|
|
2082
|
+
case 2: {
|
|
2083
|
+
if (!(m.pills && m.pills.length))
|
|
2084
|
+
m.pills = [];
|
|
2085
|
+
m.pills.push($root.proto.ContextInfo.BusinessInteractionPills.Pill.decode(r, r.uint32(), undefined, n + 1));
|
|
2086
|
+
break;
|
|
2087
|
+
}
|
|
2088
|
+
default:
|
|
2089
|
+
r.skipType(t & 7, n);
|
|
2090
|
+
break;
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
return m;
|
|
2094
|
+
};
|
|
2095
|
+
SignedPayload.fromObject = function fromObject(d, n) {
|
|
2096
|
+
if (d instanceof $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload)
|
|
2097
|
+
return d;
|
|
2098
|
+
if (n === undefined)
|
|
2099
|
+
n = 0;
|
|
2100
|
+
if (n > $util.recursionLimit)
|
|
2101
|
+
throw Error("maximum nesting depth exceeded");
|
|
2102
|
+
var m = new $root.proto.ContextInfo.BusinessInteractionPills.SignedPayload();
|
|
2103
|
+
if (d.verifiedName != null) {
|
|
2104
|
+
m.verifiedName = String(d.verifiedName);
|
|
2105
|
+
}
|
|
2106
|
+
if (d.pills) {
|
|
2107
|
+
if (!Array.isArray(d.pills))
|
|
2108
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.SignedPayload.pills: array expected");
|
|
2109
|
+
m.pills = [];
|
|
2110
|
+
for (var i = 0; i < d.pills.length; ++i) {
|
|
2111
|
+
if (typeof d.pills[i] !== "object")
|
|
2112
|
+
throw TypeError(".proto.ContextInfo.BusinessInteractionPills.SignedPayload.pills: object expected");
|
|
2113
|
+
m.pills[i] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.fromObject(d.pills[i], n + 1);
|
|
2114
|
+
}
|
|
2115
|
+
}
|
|
2116
|
+
return m;
|
|
2117
|
+
};
|
|
2118
|
+
SignedPayload.toObject = function toObject(m, o) {
|
|
2119
|
+
if (!o)
|
|
2120
|
+
o = {};
|
|
2121
|
+
var d = {};
|
|
2122
|
+
if (o.arrays || o.defaults) {
|
|
2123
|
+
d.pills = [];
|
|
2124
|
+
}
|
|
2125
|
+
if (m.verifiedName != null && m.hasOwnProperty("verifiedName")) {
|
|
2126
|
+
d.verifiedName = m.verifiedName;
|
|
2127
|
+
if (o.oneofs)
|
|
2128
|
+
d._verifiedName = "verifiedName";
|
|
2129
|
+
}
|
|
2130
|
+
if (m.pills && m.pills.length) {
|
|
2131
|
+
d.pills = [];
|
|
2132
|
+
for (var j = 0; j < m.pills.length; ++j) {
|
|
2133
|
+
d.pills[j] = $root.proto.ContextInfo.BusinessInteractionPills.Pill.toObject(m.pills[j], o);
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
2136
|
+
return d;
|
|
2137
|
+
};
|
|
2138
|
+
SignedPayload.prototype.toJSON = function toJSON() {
|
|
2139
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2140
|
+
};
|
|
2141
|
+
SignedPayload.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2142
|
+
if (typeUrlPrefix === undefined) {
|
|
2143
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2144
|
+
}
|
|
2145
|
+
return typeUrlPrefix + "/proto.ContextInfo.BusinessInteractionPills.SignedPayload";
|
|
2146
|
+
};
|
|
2147
|
+
return SignedPayload;
|
|
2148
|
+
});
|
|
2149
|
+
return BusinessInteractionPills;
|
|
2150
|
+
});
|
|
2151
|
+
$lazy(ContextInfo, "BusinessMessageForwardInfo", function() {
|
|
2152
|
+
function BusinessMessageForwardInfo(p) {
|
|
2153
|
+
if (p)
|
|
2154
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
2155
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
2156
|
+
this[ks[i]] = p[ks[i]];
|
|
2157
|
+
}
|
|
2158
|
+
BusinessMessageForwardInfo.prototype.businessOwnerJid = null;
|
|
2159
|
+
let $oneOfFields;
|
|
2160
|
+
Object.defineProperty(BusinessMessageForwardInfo.prototype, "_businessOwnerJid", {
|
|
2161
|
+
get: $util.oneOfGetter($oneOfFields = ["businessOwnerJid"]),
|
|
2162
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2163
|
+
});
|
|
2164
|
+
BusinessMessageForwardInfo.create = function create(properties) {
|
|
2165
|
+
return new BusinessMessageForwardInfo(properties);
|
|
2166
|
+
};
|
|
2167
|
+
BusinessMessageForwardInfo.encode = function encode(m, w) {
|
|
2168
|
+
if (!w)
|
|
2169
|
+
w = $Writer.create();
|
|
2170
|
+
if (m.businessOwnerJid != null && Object.hasOwnProperty.call(m, "businessOwnerJid"))
|
|
2171
|
+
w.uint32(10).string(m.businessOwnerJid);
|
|
2172
|
+
return w;
|
|
2173
|
+
};
|
|
2174
|
+
BusinessMessageForwardInfo.decode = function decode(r, l, e, n) {
|
|
2175
|
+
if (!(r instanceof $Reader))
|
|
2176
|
+
r = $Reader.create(r);
|
|
2177
|
+
if (n === undefined)
|
|
2178
|
+
n = 0;
|
|
2179
|
+
if (n > $Reader.recursionLimit)
|
|
2180
|
+
throw Error("maximum nesting depth exceeded");
|
|
2181
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.BusinessMessageForwardInfo();
|
|
2182
|
+
while (r.pos < c) {
|
|
2183
|
+
var t = r.uint32();
|
|
2184
|
+
if (t === e)
|
|
2185
|
+
break;
|
|
2186
|
+
switch (t >>> 3) {
|
|
2187
|
+
case 1: {
|
|
2188
|
+
m.businessOwnerJid = r.string();
|
|
2189
|
+
break;
|
|
2190
|
+
}
|
|
2191
|
+
default:
|
|
2192
|
+
r.skipType(t & 7, n);
|
|
2193
|
+
break;
|
|
2194
|
+
}
|
|
2195
|
+
}
|
|
2196
|
+
return m;
|
|
2197
|
+
};
|
|
2198
|
+
BusinessMessageForwardInfo.fromObject = function fromObject(d, n) {
|
|
2199
|
+
if (d instanceof $root.proto.ContextInfo.BusinessMessageForwardInfo)
|
|
2200
|
+
return d;
|
|
2201
|
+
if (n === undefined)
|
|
2202
|
+
n = 0;
|
|
2203
|
+
if (n > $util.recursionLimit)
|
|
2204
|
+
throw Error("maximum nesting depth exceeded");
|
|
2205
|
+
var m = new $root.proto.ContextInfo.BusinessMessageForwardInfo();
|
|
2206
|
+
if (d.businessOwnerJid != null) {
|
|
2207
|
+
m.businessOwnerJid = String(d.businessOwnerJid);
|
|
2208
|
+
}
|
|
2209
|
+
return m;
|
|
2210
|
+
};
|
|
2211
|
+
BusinessMessageForwardInfo.toObject = function toObject(m, o) {
|
|
2212
|
+
if (!o)
|
|
2213
|
+
o = {};
|
|
2214
|
+
var d = {};
|
|
2215
|
+
if (m.businessOwnerJid != null && m.hasOwnProperty("businessOwnerJid")) {
|
|
2216
|
+
d.businessOwnerJid = m.businessOwnerJid;
|
|
2217
|
+
if (o.oneofs)
|
|
2218
|
+
d._businessOwnerJid = "businessOwnerJid";
|
|
2219
|
+
}
|
|
2220
|
+
return d;
|
|
2221
|
+
};
|
|
2222
|
+
BusinessMessageForwardInfo.prototype.toJSON = function toJSON() {
|
|
2223
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2224
|
+
};
|
|
2225
|
+
BusinessMessageForwardInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2226
|
+
if (typeUrlPrefix === undefined) {
|
|
2227
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2228
|
+
}
|
|
2229
|
+
return typeUrlPrefix + "/proto.ContextInfo.BusinessMessageForwardInfo";
|
|
2230
|
+
};
|
|
2231
|
+
return BusinessMessageForwardInfo;
|
|
2232
|
+
});
|
|
2233
|
+
$lazy(ContextInfo, "CrossAppSource", function() {
|
|
2234
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
2235
|
+
values[valuesById[0] = "CROSS_APP_SOURCE_UNKNOWN"] = 0;
|
|
2236
|
+
values[valuesById[1] = "CROSS_APP_SOURCE_INSTAGRAM"] = 1;
|
|
2237
|
+
values[valuesById[2] = "CROSS_APP_SOURCE_FACEBOOK"] = 2;
|
|
2238
|
+
return values;
|
|
2239
|
+
});
|
|
2240
|
+
$lazy(ContextInfo, "DataSharingContext", function() {
|
|
2241
|
+
function DataSharingContext(p) {
|
|
2242
|
+
this.parameters = [];
|
|
2243
|
+
if (p)
|
|
2244
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
2245
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
2246
|
+
this[ks[i]] = p[ks[i]];
|
|
2247
|
+
}
|
|
2248
|
+
DataSharingContext.prototype.showMmDisclosure = null;
|
|
2249
|
+
DataSharingContext.prototype.encryptedSignalTokenConsented = null;
|
|
2250
|
+
DataSharingContext.prototype.parameters = $util.emptyArray;
|
|
2251
|
+
DataSharingContext.prototype.dataSharingFlags = null;
|
|
2252
|
+
let $oneOfFields;
|
|
2253
|
+
Object.defineProperty(DataSharingContext.prototype, "_showMmDisclosure", {
|
|
2254
|
+
get: $util.oneOfGetter($oneOfFields = ["showMmDisclosure"]),
|
|
2255
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2256
|
+
});
|
|
2257
|
+
Object.defineProperty(DataSharingContext.prototype, "_encryptedSignalTokenConsented", {
|
|
2258
|
+
get: $util.oneOfGetter($oneOfFields = ["encryptedSignalTokenConsented"]),
|
|
2259
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2260
|
+
});
|
|
2261
|
+
Object.defineProperty(DataSharingContext.prototype, "_dataSharingFlags", {
|
|
2262
|
+
get: $util.oneOfGetter($oneOfFields = ["dataSharingFlags"]),
|
|
2263
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2264
|
+
});
|
|
2265
|
+
DataSharingContext.create = function create(properties) {
|
|
2266
|
+
return new DataSharingContext(properties);
|
|
2267
|
+
};
|
|
2268
|
+
DataSharingContext.encode = function encode(m, w) {
|
|
2269
|
+
if (!w)
|
|
2270
|
+
w = $Writer.create();
|
|
2271
|
+
if (m.showMmDisclosure != null && Object.hasOwnProperty.call(m, "showMmDisclosure"))
|
|
2272
|
+
w.uint32(8).bool(m.showMmDisclosure);
|
|
2273
|
+
if (m.encryptedSignalTokenConsented != null && Object.hasOwnProperty.call(m, "encryptedSignalTokenConsented"))
|
|
2274
|
+
w.uint32(18).string(m.encryptedSignalTokenConsented);
|
|
2275
|
+
if (m.parameters != null && m.parameters.length) {
|
|
2276
|
+
for (var i = 0; i < m.parameters.length; ++i)
|
|
2277
|
+
$root.proto.ContextInfo.DataSharingContext.Parameters.encode(m.parameters[i], w.uint32(26).fork()).ldelim();
|
|
2278
|
+
}
|
|
2279
|
+
if (m.dataSharingFlags != null && Object.hasOwnProperty.call(m, "dataSharingFlags"))
|
|
2280
|
+
w.uint32(32).int32(m.dataSharingFlags);
|
|
2281
|
+
return w;
|
|
2282
|
+
};
|
|
2283
|
+
DataSharingContext.decode = function decode(r, l, e, n) {
|
|
2284
|
+
if (!(r instanceof $Reader))
|
|
2285
|
+
r = $Reader.create(r);
|
|
2286
|
+
if (n === undefined)
|
|
2287
|
+
n = 0;
|
|
2288
|
+
if (n > $Reader.recursionLimit)
|
|
2289
|
+
throw Error("maximum nesting depth exceeded");
|
|
2290
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.DataSharingContext();
|
|
2291
|
+
while (r.pos < c) {
|
|
2292
|
+
var t = r.uint32();
|
|
2293
|
+
if (t === e)
|
|
2294
|
+
break;
|
|
2295
|
+
switch (t >>> 3) {
|
|
2296
|
+
case 1: {
|
|
2297
|
+
m.showMmDisclosure = r.bool();
|
|
2298
|
+
break;
|
|
2299
|
+
}
|
|
2300
|
+
case 2: {
|
|
2301
|
+
m.encryptedSignalTokenConsented = r.string();
|
|
2302
|
+
break;
|
|
2303
|
+
}
|
|
2304
|
+
case 3: {
|
|
2305
|
+
if (!(m.parameters && m.parameters.length))
|
|
2306
|
+
m.parameters = [];
|
|
2307
|
+
m.parameters.push($root.proto.ContextInfo.DataSharingContext.Parameters.decode(r, r.uint32(), undefined, n + 1));
|
|
2308
|
+
break;
|
|
2309
|
+
}
|
|
2310
|
+
case 4: {
|
|
2311
|
+
m.dataSharingFlags = r.int32();
|
|
2312
|
+
break;
|
|
2313
|
+
}
|
|
2314
|
+
default:
|
|
2315
|
+
r.skipType(t & 7, n);
|
|
2316
|
+
break;
|
|
2317
|
+
}
|
|
2318
|
+
}
|
|
2319
|
+
return m;
|
|
2320
|
+
};
|
|
2321
|
+
DataSharingContext.fromObject = function fromObject(d, n) {
|
|
2322
|
+
if (d instanceof $root.proto.ContextInfo.DataSharingContext)
|
|
2323
|
+
return d;
|
|
2324
|
+
if (n === undefined)
|
|
2325
|
+
n = 0;
|
|
2326
|
+
if (n > $util.recursionLimit)
|
|
2327
|
+
throw Error("maximum nesting depth exceeded");
|
|
2328
|
+
var m = new $root.proto.ContextInfo.DataSharingContext();
|
|
2329
|
+
if (d.showMmDisclosure != null) {
|
|
2330
|
+
m.showMmDisclosure = Boolean(d.showMmDisclosure);
|
|
2331
|
+
}
|
|
2332
|
+
if (d.encryptedSignalTokenConsented != null) {
|
|
2333
|
+
m.encryptedSignalTokenConsented = String(d.encryptedSignalTokenConsented);
|
|
2334
|
+
}
|
|
2335
|
+
if (d.parameters) {
|
|
2336
|
+
if (!Array.isArray(d.parameters))
|
|
2337
|
+
throw TypeError(".proto.ContextInfo.DataSharingContext.parameters: array expected");
|
|
2338
|
+
m.parameters = [];
|
|
2339
|
+
for (var i = 0; i < d.parameters.length; ++i) {
|
|
2340
|
+
if (typeof d.parameters[i] !== "object")
|
|
2341
|
+
throw TypeError(".proto.ContextInfo.DataSharingContext.parameters: object expected");
|
|
2342
|
+
m.parameters[i] = $root.proto.ContextInfo.DataSharingContext.Parameters.fromObject(d.parameters[i], n + 1);
|
|
2343
|
+
}
|
|
2344
|
+
}
|
|
2345
|
+
if (d.dataSharingFlags != null) {
|
|
2346
|
+
m.dataSharingFlags = d.dataSharingFlags | 0;
|
|
2347
|
+
}
|
|
2348
|
+
return m;
|
|
2349
|
+
};
|
|
2350
|
+
DataSharingContext.toObject = function toObject(m, o) {
|
|
2351
|
+
if (!o)
|
|
2352
|
+
o = {};
|
|
2353
|
+
var d = {};
|
|
2354
|
+
if (o.arrays || o.defaults) {
|
|
2355
|
+
d.parameters = [];
|
|
2356
|
+
}
|
|
2357
|
+
if (m.showMmDisclosure != null && m.hasOwnProperty("showMmDisclosure")) {
|
|
2358
|
+
d.showMmDisclosure = m.showMmDisclosure;
|
|
2359
|
+
if (o.oneofs)
|
|
2360
|
+
d._showMmDisclosure = "showMmDisclosure";
|
|
2361
|
+
}
|
|
2362
|
+
if (m.encryptedSignalTokenConsented != null && m.hasOwnProperty("encryptedSignalTokenConsented")) {
|
|
2363
|
+
d.encryptedSignalTokenConsented = m.encryptedSignalTokenConsented;
|
|
2364
|
+
if (o.oneofs)
|
|
2365
|
+
d._encryptedSignalTokenConsented = "encryptedSignalTokenConsented";
|
|
2366
|
+
}
|
|
2367
|
+
if (m.parameters && m.parameters.length) {
|
|
2368
|
+
d.parameters = [];
|
|
2369
|
+
for (var j = 0; j < m.parameters.length; ++j) {
|
|
2370
|
+
d.parameters[j] = $root.proto.ContextInfo.DataSharingContext.Parameters.toObject(m.parameters[j], o);
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
if (m.dataSharingFlags != null && m.hasOwnProperty("dataSharingFlags")) {
|
|
2374
|
+
d.dataSharingFlags = m.dataSharingFlags;
|
|
2375
|
+
if (o.oneofs)
|
|
2376
|
+
d._dataSharingFlags = "dataSharingFlags";
|
|
2377
|
+
}
|
|
2378
|
+
return d;
|
|
2379
|
+
};
|
|
2380
|
+
DataSharingContext.prototype.toJSON = function toJSON() {
|
|
2381
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2382
|
+
};
|
|
2383
|
+
DataSharingContext.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2384
|
+
if (typeUrlPrefix === undefined) {
|
|
2385
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2386
|
+
}
|
|
2387
|
+
return typeUrlPrefix + "/proto.ContextInfo.DataSharingContext";
|
|
2388
|
+
};
|
|
2389
|
+
$lazy(DataSharingContext, "DataSharingFlags", function() {
|
|
2390
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
2391
|
+
values[valuesById[1] = "SHOW_MM_DISCLOSURE_ON_CLICK"] = 1;
|
|
2392
|
+
values[valuesById[2] = "SHOW_MM_DISCLOSURE_ON_READ"] = 2;
|
|
2393
|
+
return values;
|
|
2394
|
+
});
|
|
2395
|
+
$lazy(DataSharingContext, "Parameters", function() {
|
|
2396
|
+
function Parameters(p) {
|
|
2397
|
+
if (p)
|
|
2398
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
2399
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
2400
|
+
this[ks[i]] = p[ks[i]];
|
|
2401
|
+
}
|
|
2402
|
+
Parameters.prototype.key = null;
|
|
2403
|
+
Parameters.prototype.stringData = null;
|
|
2404
|
+
Parameters.prototype.intData = null;
|
|
2405
|
+
Parameters.prototype.floatData = null;
|
|
2406
|
+
Parameters.prototype.contents = null;
|
|
2407
|
+
let $oneOfFields;
|
|
2408
|
+
Object.defineProperty(Parameters.prototype, "_key", {
|
|
2409
|
+
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
2410
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2411
|
+
});
|
|
2412
|
+
Object.defineProperty(Parameters.prototype, "_stringData", {
|
|
2413
|
+
get: $util.oneOfGetter($oneOfFields = ["stringData"]),
|
|
2414
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2415
|
+
});
|
|
2416
|
+
Object.defineProperty(Parameters.prototype, "_intData", {
|
|
2417
|
+
get: $util.oneOfGetter($oneOfFields = ["intData"]),
|
|
2418
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2419
|
+
});
|
|
2420
|
+
Object.defineProperty(Parameters.prototype, "_floatData", {
|
|
2421
|
+
get: $util.oneOfGetter($oneOfFields = ["floatData"]),
|
|
2422
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2423
|
+
});
|
|
2424
|
+
Object.defineProperty(Parameters.prototype, "_contents", {
|
|
2425
|
+
get: $util.oneOfGetter($oneOfFields = ["contents"]),
|
|
2426
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2427
|
+
});
|
|
2428
|
+
Parameters.create = function create(properties) {
|
|
2429
|
+
return new Parameters(properties);
|
|
2430
|
+
};
|
|
2431
|
+
Parameters.encode = function encode(m, w) {
|
|
2432
|
+
if (!w)
|
|
2433
|
+
w = $Writer.create();
|
|
2434
|
+
if (m.key != null && Object.hasOwnProperty.call(m, "key"))
|
|
2435
|
+
w.uint32(10).string(m.key);
|
|
2436
|
+
if (m.stringData != null && Object.hasOwnProperty.call(m, "stringData"))
|
|
2437
|
+
w.uint32(18).string(m.stringData);
|
|
2438
|
+
if (m.intData != null && Object.hasOwnProperty.call(m, "intData"))
|
|
2439
|
+
w.uint32(24).int64(m.intData);
|
|
2440
|
+
if (m.floatData != null && Object.hasOwnProperty.call(m, "floatData"))
|
|
2441
|
+
w.uint32(37).float(m.floatData);
|
|
2442
|
+
if (m.contents != null && Object.hasOwnProperty.call(m, "contents"))
|
|
2443
|
+
$root.proto.ContextInfo.DataSharingContext.Parameters.encode(m.contents, w.uint32(42).fork()).ldelim();
|
|
2444
|
+
return w;
|
|
2445
|
+
};
|
|
2446
|
+
Parameters.decode = function decode(r, l, e, n) {
|
|
2447
|
+
if (!(r instanceof $Reader))
|
|
2448
|
+
r = $Reader.create(r);
|
|
2449
|
+
if (n === undefined)
|
|
2450
|
+
n = 0;
|
|
2451
|
+
if (n > $Reader.recursionLimit)
|
|
2452
|
+
throw Error("maximum nesting depth exceeded");
|
|
2453
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.DataSharingContext.Parameters();
|
|
2454
|
+
while (r.pos < c) {
|
|
2455
|
+
var t = r.uint32();
|
|
2456
|
+
if (t === e)
|
|
2457
|
+
break;
|
|
2458
|
+
switch (t >>> 3) {
|
|
2459
|
+
case 1: {
|
|
2460
|
+
m.key = r.string();
|
|
2461
|
+
break;
|
|
2462
|
+
}
|
|
2463
|
+
case 2: {
|
|
2464
|
+
m.stringData = r.string();
|
|
2465
|
+
break;
|
|
2466
|
+
}
|
|
2467
|
+
case 3: {
|
|
2468
|
+
m.intData = r.int64();
|
|
2469
|
+
break;
|
|
2470
|
+
}
|
|
2471
|
+
case 4: {
|
|
2472
|
+
m.floatData = r.float();
|
|
2473
|
+
break;
|
|
2474
|
+
}
|
|
2475
|
+
case 5: {
|
|
2476
|
+
m.contents = $root.proto.ContextInfo.DataSharingContext.Parameters.decode(r, r.uint32(), undefined, n + 1);
|
|
2477
|
+
break;
|
|
2478
|
+
}
|
|
2479
|
+
default:
|
|
2480
|
+
r.skipType(t & 7, n);
|
|
2481
|
+
break;
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
return m;
|
|
2485
|
+
};
|
|
2486
|
+
Parameters.fromObject = function fromObject(d, n) {
|
|
2487
|
+
if (d instanceof $root.proto.ContextInfo.DataSharingContext.Parameters)
|
|
2488
|
+
return d;
|
|
2489
|
+
if (n === undefined)
|
|
2490
|
+
n = 0;
|
|
2491
|
+
if (n > $util.recursionLimit)
|
|
2492
|
+
throw Error("maximum nesting depth exceeded");
|
|
2493
|
+
var m = new $root.proto.ContextInfo.DataSharingContext.Parameters();
|
|
2494
|
+
if (d.key != null) {
|
|
2495
|
+
m.key = String(d.key);
|
|
2496
|
+
}
|
|
2497
|
+
if (d.stringData != null) {
|
|
2498
|
+
m.stringData = String(d.stringData);
|
|
2499
|
+
}
|
|
2500
|
+
if (d.intData != null) {
|
|
2501
|
+
if ($util.Long)
|
|
2502
|
+
(m.intData = $util.Long.fromValue(d.intData)).unsigned = false;
|
|
2503
|
+
else if (typeof d.intData === "string")
|
|
2504
|
+
m.intData = parseInt(d.intData, 10);
|
|
2505
|
+
else if (typeof d.intData === "number")
|
|
2506
|
+
m.intData = d.intData;
|
|
2507
|
+
else if (typeof d.intData === "object")
|
|
2508
|
+
m.intData = new $util.LongBits(d.intData.low >>> 0, d.intData.high >>> 0).toNumber();
|
|
2509
|
+
}
|
|
2510
|
+
if (d.floatData != null) {
|
|
2511
|
+
m.floatData = Number(d.floatData);
|
|
2512
|
+
}
|
|
2513
|
+
if (d.contents != null) {
|
|
2514
|
+
if (typeof d.contents !== "object")
|
|
2515
|
+
throw TypeError(".proto.ContextInfo.DataSharingContext.Parameters.contents: object expected");
|
|
2516
|
+
m.contents = $root.proto.ContextInfo.DataSharingContext.Parameters.fromObject(d.contents, n + 1);
|
|
2517
|
+
}
|
|
2518
|
+
return m;
|
|
2519
|
+
};
|
|
2520
|
+
Parameters.toObject = function toObject(m, o) {
|
|
2521
|
+
if (!o)
|
|
2522
|
+
o = {};
|
|
2523
|
+
var d = {};
|
|
2524
|
+
if (m.key != null && m.hasOwnProperty("key")) {
|
|
2525
|
+
d.key = m.key;
|
|
2526
|
+
if (o.oneofs)
|
|
2527
|
+
d._key = "key";
|
|
2528
|
+
}
|
|
2529
|
+
if (m.stringData != null && m.hasOwnProperty("stringData")) {
|
|
2530
|
+
d.stringData = m.stringData;
|
|
2531
|
+
if (o.oneofs)
|
|
2532
|
+
d._stringData = "stringData";
|
|
2533
|
+
}
|
|
2534
|
+
if (m.intData != null && m.hasOwnProperty("intData")) {
|
|
2535
|
+
if (typeof m.intData === "number")
|
|
2536
|
+
d.intData = o.longs === String ? String(m.intData) : m.intData;
|
|
2537
|
+
else
|
|
2538
|
+
d.intData = o.longs === String ? longToString(m.intData) : o.longs === Number ? longToNumber(m.intData) : m.intData;
|
|
2539
|
+
if (o.oneofs)
|
|
2540
|
+
d._intData = "intData";
|
|
2541
|
+
}
|
|
2542
|
+
if (m.floatData != null && m.hasOwnProperty("floatData")) {
|
|
2543
|
+
d.floatData = o.json && !isFinite(m.floatData) ? String(m.floatData) : m.floatData;
|
|
2544
|
+
if (o.oneofs)
|
|
2545
|
+
d._floatData = "floatData";
|
|
2546
|
+
}
|
|
2547
|
+
if (m.contents != null && m.hasOwnProperty("contents")) {
|
|
2548
|
+
d.contents = $root.proto.ContextInfo.DataSharingContext.Parameters.toObject(m.contents, o);
|
|
2549
|
+
if (o.oneofs)
|
|
2550
|
+
d._contents = "contents";
|
|
2551
|
+
}
|
|
2552
|
+
return d;
|
|
2553
|
+
};
|
|
2554
|
+
Parameters.prototype.toJSON = function toJSON() {
|
|
2555
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2556
|
+
};
|
|
2557
|
+
Parameters.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
2558
|
+
if (typeUrlPrefix === undefined) {
|
|
2559
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
2560
|
+
}
|
|
2561
|
+
return typeUrlPrefix + "/proto.ContextInfo.DataSharingContext.Parameters";
|
|
2562
|
+
};
|
|
2563
|
+
return Parameters;
|
|
2564
|
+
});
|
|
2565
|
+
return DataSharingContext;
|
|
2566
|
+
});
|
|
2567
|
+
$lazy(ContextInfo, "ExternalAdReplyInfo", function() {
|
|
2568
|
+
function ExternalAdReplyInfo(p) {
|
|
2569
|
+
if (p)
|
|
2570
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
2571
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
2572
|
+
this[ks[i]] = p[ks[i]];
|
|
2573
|
+
}
|
|
2574
|
+
ExternalAdReplyInfo.prototype.title = null;
|
|
2575
|
+
ExternalAdReplyInfo.prototype.body = null;
|
|
2576
|
+
ExternalAdReplyInfo.prototype.mediaType = null;
|
|
2577
|
+
ExternalAdReplyInfo.prototype.thumbnailUrl = null;
|
|
2578
|
+
ExternalAdReplyInfo.prototype.mediaUrl = null;
|
|
2579
|
+
ExternalAdReplyInfo.prototype.thumbnail = null;
|
|
2580
|
+
ExternalAdReplyInfo.prototype.sourceType = null;
|
|
2581
|
+
ExternalAdReplyInfo.prototype.sourceId = null;
|
|
2582
|
+
ExternalAdReplyInfo.prototype.sourceUrl = null;
|
|
2583
|
+
ExternalAdReplyInfo.prototype.containsAutoReply = null;
|
|
2584
|
+
ExternalAdReplyInfo.prototype.renderLargerThumbnail = null;
|
|
2585
|
+
ExternalAdReplyInfo.prototype.showAdAttribution = null;
|
|
2586
|
+
ExternalAdReplyInfo.prototype.ctwaClid = null;
|
|
2587
|
+
ExternalAdReplyInfo.prototype.ref = null;
|
|
2588
|
+
ExternalAdReplyInfo.prototype.clickToWhatsappCall = null;
|
|
2589
|
+
ExternalAdReplyInfo.prototype.adContextPreviewDismissed = null;
|
|
2590
|
+
ExternalAdReplyInfo.prototype.sourceApp = null;
|
|
2591
|
+
ExternalAdReplyInfo.prototype.automatedGreetingMessageShown = null;
|
|
2592
|
+
ExternalAdReplyInfo.prototype.greetingMessageBody = null;
|
|
2593
|
+
ExternalAdReplyInfo.prototype.ctaPayload = null;
|
|
2594
|
+
ExternalAdReplyInfo.prototype.disableNudge = null;
|
|
2595
|
+
ExternalAdReplyInfo.prototype.originalImageUrl = null;
|
|
2596
|
+
ExternalAdReplyInfo.prototype.automatedGreetingMessageCtaType = null;
|
|
2597
|
+
ExternalAdReplyInfo.prototype.wtwaAdFormat = null;
|
|
2598
|
+
ExternalAdReplyInfo.prototype.adType = null;
|
|
2599
|
+
ExternalAdReplyInfo.prototype.wtwaWebsiteUrl = null;
|
|
2600
|
+
ExternalAdReplyInfo.prototype.adPreviewUrl = null;
|
|
2601
|
+
ExternalAdReplyInfo.prototype.containsCtwaFlowsAutoReply = null;
|
|
2602
|
+
ExternalAdReplyInfo.prototype.agmThumbnailStrategy = null;
|
|
2603
|
+
ExternalAdReplyInfo.prototype.agmTitleStrategy = null;
|
|
2604
|
+
ExternalAdReplyInfo.prototype.agmSubtitleStrategy = null;
|
|
2605
|
+
ExternalAdReplyInfo.prototype.agmHeaderInteractionStrategy = null;
|
|
2606
|
+
let $oneOfFields;
|
|
2607
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_title", {
|
|
2608
|
+
get: $util.oneOfGetter($oneOfFields = ["title"]),
|
|
2609
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2610
|
+
});
|
|
2611
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_body", {
|
|
2612
|
+
get: $util.oneOfGetter($oneOfFields = ["body"]),
|
|
2613
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2614
|
+
});
|
|
2615
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_mediaType", {
|
|
2616
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaType"]),
|
|
2617
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2618
|
+
});
|
|
2619
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_thumbnailUrl", {
|
|
2620
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnailUrl"]),
|
|
2621
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2622
|
+
});
|
|
2623
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_mediaUrl", {
|
|
2624
|
+
get: $util.oneOfGetter($oneOfFields = ["mediaUrl"]),
|
|
2625
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2626
|
+
});
|
|
2627
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_thumbnail", {
|
|
2628
|
+
get: $util.oneOfGetter($oneOfFields = ["thumbnail"]),
|
|
2629
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2630
|
+
});
|
|
2631
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_sourceType", {
|
|
2632
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceType"]),
|
|
2633
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2634
|
+
});
|
|
2635
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_sourceId", {
|
|
2636
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceId"]),
|
|
2637
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2638
|
+
});
|
|
2639
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_sourceUrl", {
|
|
2640
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceUrl"]),
|
|
2641
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2642
|
+
});
|
|
2643
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_containsAutoReply", {
|
|
2644
|
+
get: $util.oneOfGetter($oneOfFields = ["containsAutoReply"]),
|
|
2645
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2646
|
+
});
|
|
2647
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_renderLargerThumbnail", {
|
|
2648
|
+
get: $util.oneOfGetter($oneOfFields = ["renderLargerThumbnail"]),
|
|
2649
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2650
|
+
});
|
|
2651
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_showAdAttribution", {
|
|
2652
|
+
get: $util.oneOfGetter($oneOfFields = ["showAdAttribution"]),
|
|
2653
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2654
|
+
});
|
|
2655
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_ctwaClid", {
|
|
2656
|
+
get: $util.oneOfGetter($oneOfFields = ["ctwaClid"]),
|
|
2657
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2658
|
+
});
|
|
2659
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_ref", {
|
|
2660
|
+
get: $util.oneOfGetter($oneOfFields = ["ref"]),
|
|
2661
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2662
|
+
});
|
|
2663
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_clickToWhatsappCall", {
|
|
2664
|
+
get: $util.oneOfGetter($oneOfFields = ["clickToWhatsappCall"]),
|
|
2665
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2666
|
+
});
|
|
2667
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_adContextPreviewDismissed", {
|
|
2668
|
+
get: $util.oneOfGetter($oneOfFields = ["adContextPreviewDismissed"]),
|
|
2669
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2670
|
+
});
|
|
2671
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_sourceApp", {
|
|
2672
|
+
get: $util.oneOfGetter($oneOfFields = ["sourceApp"]),
|
|
2673
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2674
|
+
});
|
|
2675
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_automatedGreetingMessageShown", {
|
|
2676
|
+
get: $util.oneOfGetter($oneOfFields = ["automatedGreetingMessageShown"]),
|
|
2677
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2678
|
+
});
|
|
2679
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_greetingMessageBody", {
|
|
2680
|
+
get: $util.oneOfGetter($oneOfFields = ["greetingMessageBody"]),
|
|
2681
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2682
|
+
});
|
|
2683
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_ctaPayload", {
|
|
2684
|
+
get: $util.oneOfGetter($oneOfFields = ["ctaPayload"]),
|
|
2685
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2686
|
+
});
|
|
2687
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_disableNudge", {
|
|
2688
|
+
get: $util.oneOfGetter($oneOfFields = ["disableNudge"]),
|
|
2689
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2690
|
+
});
|
|
2691
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_originalImageUrl", {
|
|
2692
|
+
get: $util.oneOfGetter($oneOfFields = ["originalImageUrl"]),
|
|
2693
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2694
|
+
});
|
|
2695
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_automatedGreetingMessageCtaType", {
|
|
2696
|
+
get: $util.oneOfGetter($oneOfFields = ["automatedGreetingMessageCtaType"]),
|
|
2697
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2698
|
+
});
|
|
2699
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_wtwaAdFormat", {
|
|
2700
|
+
get: $util.oneOfGetter($oneOfFields = ["wtwaAdFormat"]),
|
|
2701
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2702
|
+
});
|
|
2703
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_adType", {
|
|
2704
|
+
get: $util.oneOfGetter($oneOfFields = ["adType"]),
|
|
2705
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2706
|
+
});
|
|
2707
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_wtwaWebsiteUrl", {
|
|
2708
|
+
get: $util.oneOfGetter($oneOfFields = ["wtwaWebsiteUrl"]),
|
|
2709
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2710
|
+
});
|
|
2711
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_adPreviewUrl", {
|
|
2712
|
+
get: $util.oneOfGetter($oneOfFields = ["adPreviewUrl"]),
|
|
2713
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2714
|
+
});
|
|
2715
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_containsCtwaFlowsAutoReply", {
|
|
2716
|
+
get: $util.oneOfGetter($oneOfFields = ["containsCtwaFlowsAutoReply"]),
|
|
2717
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2718
|
+
});
|
|
2719
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmThumbnailStrategy", {
|
|
2720
|
+
get: $util.oneOfGetter($oneOfFields = ["agmThumbnailStrategy"]),
|
|
2721
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2722
|
+
});
|
|
2723
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmTitleStrategy", {
|
|
2724
|
+
get: $util.oneOfGetter($oneOfFields = ["agmTitleStrategy"]),
|
|
2725
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2726
|
+
});
|
|
2727
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmSubtitleStrategy", {
|
|
2728
|
+
get: $util.oneOfGetter($oneOfFields = ["agmSubtitleStrategy"]),
|
|
2729
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2730
|
+
});
|
|
2731
|
+
Object.defineProperty(ExternalAdReplyInfo.prototype, "_agmHeaderInteractionStrategy", {
|
|
2732
|
+
get: $util.oneOfGetter($oneOfFields = ["agmHeaderInteractionStrategy"]),
|
|
2733
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
2734
|
+
});
|
|
2735
|
+
ExternalAdReplyInfo.create = function create(properties) {
|
|
2736
|
+
return new ExternalAdReplyInfo(properties);
|
|
2737
|
+
};
|
|
2738
|
+
ExternalAdReplyInfo.encode = function encode(m, w) {
|
|
2739
|
+
if (!w)
|
|
2740
|
+
w = $Writer.create();
|
|
2741
|
+
if (m.title != null && Object.hasOwnProperty.call(m, "title"))
|
|
2742
|
+
w.uint32(10).string(m.title);
|
|
2743
|
+
if (m.body != null && Object.hasOwnProperty.call(m, "body"))
|
|
2744
|
+
w.uint32(18).string(m.body);
|
|
2745
|
+
if (m.mediaType != null && Object.hasOwnProperty.call(m, "mediaType"))
|
|
2746
|
+
w.uint32(24).int32(m.mediaType);
|
|
2747
|
+
if (m.thumbnailUrl != null && Object.hasOwnProperty.call(m, "thumbnailUrl"))
|
|
2748
|
+
w.uint32(34).string(m.thumbnailUrl);
|
|
2749
|
+
if (m.mediaUrl != null && Object.hasOwnProperty.call(m, "mediaUrl"))
|
|
2750
|
+
w.uint32(42).string(m.mediaUrl);
|
|
2751
|
+
if (m.thumbnail != null && Object.hasOwnProperty.call(m, "thumbnail"))
|
|
2752
|
+
w.uint32(50).bytes(m.thumbnail);
|
|
2753
|
+
if (m.sourceType != null && Object.hasOwnProperty.call(m, "sourceType"))
|
|
2754
|
+
w.uint32(58).string(m.sourceType);
|
|
2755
|
+
if (m.sourceId != null && Object.hasOwnProperty.call(m, "sourceId"))
|
|
2756
|
+
w.uint32(66).string(m.sourceId);
|
|
2757
|
+
if (m.sourceUrl != null && Object.hasOwnProperty.call(m, "sourceUrl"))
|
|
2758
|
+
w.uint32(74).string(m.sourceUrl);
|
|
2759
|
+
if (m.containsAutoReply != null && Object.hasOwnProperty.call(m, "containsAutoReply"))
|
|
2760
|
+
w.uint32(80).bool(m.containsAutoReply);
|
|
2761
|
+
if (m.renderLargerThumbnail != null && Object.hasOwnProperty.call(m, "renderLargerThumbnail"))
|
|
2762
|
+
w.uint32(88).bool(m.renderLargerThumbnail);
|
|
2763
|
+
if (m.showAdAttribution != null && Object.hasOwnProperty.call(m, "showAdAttribution"))
|
|
2764
|
+
w.uint32(96).bool(m.showAdAttribution);
|
|
2765
|
+
if (m.ctwaClid != null && Object.hasOwnProperty.call(m, "ctwaClid"))
|
|
2766
|
+
w.uint32(106).string(m.ctwaClid);
|
|
2767
|
+
if (m.ref != null && Object.hasOwnProperty.call(m, "ref"))
|
|
2768
|
+
w.uint32(114).string(m.ref);
|
|
2769
|
+
if (m.clickToWhatsappCall != null && Object.hasOwnProperty.call(m, "clickToWhatsappCall"))
|
|
2770
|
+
w.uint32(120).bool(m.clickToWhatsappCall);
|
|
2771
|
+
if (m.adContextPreviewDismissed != null && Object.hasOwnProperty.call(m, "adContextPreviewDismissed"))
|
|
2772
|
+
w.uint32(128).bool(m.adContextPreviewDismissed);
|
|
2773
|
+
if (m.sourceApp != null && Object.hasOwnProperty.call(m, "sourceApp"))
|
|
2774
|
+
w.uint32(138).string(m.sourceApp);
|
|
2775
|
+
if (m.automatedGreetingMessageShown != null && Object.hasOwnProperty.call(m, "automatedGreetingMessageShown"))
|
|
2776
|
+
w.uint32(144).bool(m.automatedGreetingMessageShown);
|
|
2777
|
+
if (m.greetingMessageBody != null && Object.hasOwnProperty.call(m, "greetingMessageBody"))
|
|
2778
|
+
w.uint32(154).string(m.greetingMessageBody);
|
|
2779
|
+
if (m.ctaPayload != null && Object.hasOwnProperty.call(m, "ctaPayload"))
|
|
2780
|
+
w.uint32(162).string(m.ctaPayload);
|
|
2781
|
+
if (m.disableNudge != null && Object.hasOwnProperty.call(m, "disableNudge"))
|
|
2782
|
+
w.uint32(168).bool(m.disableNudge);
|
|
2783
|
+
if (m.originalImageUrl != null && Object.hasOwnProperty.call(m, "originalImageUrl"))
|
|
2784
|
+
w.uint32(178).string(m.originalImageUrl);
|
|
2785
|
+
if (m.automatedGreetingMessageCtaType != null && Object.hasOwnProperty.call(m, "automatedGreetingMessageCtaType"))
|
|
2786
|
+
w.uint32(186).string(m.automatedGreetingMessageCtaType);
|
|
2787
|
+
if (m.wtwaAdFormat != null && Object.hasOwnProperty.call(m, "wtwaAdFormat"))
|
|
2788
|
+
w.uint32(192).bool(m.wtwaAdFormat);
|
|
2789
|
+
if (m.adType != null && Object.hasOwnProperty.call(m, "adType"))
|
|
2790
|
+
w.uint32(200).int32(m.adType);
|
|
2791
|
+
if (m.wtwaWebsiteUrl != null && Object.hasOwnProperty.call(m, "wtwaWebsiteUrl"))
|
|
2792
|
+
w.uint32(210).string(m.wtwaWebsiteUrl);
|
|
2793
|
+
if (m.adPreviewUrl != null && Object.hasOwnProperty.call(m, "adPreviewUrl"))
|
|
2794
|
+
w.uint32(218).string(m.adPreviewUrl);
|
|
2795
|
+
if (m.containsCtwaFlowsAutoReply != null && Object.hasOwnProperty.call(m, "containsCtwaFlowsAutoReply"))
|
|
2796
|
+
w.uint32(224).bool(m.containsCtwaFlowsAutoReply);
|
|
2797
|
+
if (m.agmThumbnailStrategy != null && Object.hasOwnProperty.call(m, "agmThumbnailStrategy"))
|
|
2798
|
+
w.uint32(232).int32(m.agmThumbnailStrategy);
|
|
2799
|
+
if (m.agmTitleStrategy != null && Object.hasOwnProperty.call(m, "agmTitleStrategy"))
|
|
2800
|
+
w.uint32(240).int32(m.agmTitleStrategy);
|
|
2801
|
+
if (m.agmSubtitleStrategy != null && Object.hasOwnProperty.call(m, "agmSubtitleStrategy"))
|
|
2802
|
+
w.uint32(248).int32(m.agmSubtitleStrategy);
|
|
2803
|
+
if (m.agmHeaderInteractionStrategy != null && Object.hasOwnProperty.call(m, "agmHeaderInteractionStrategy"))
|
|
2804
|
+
w.uint32(256).int32(m.agmHeaderInteractionStrategy);
|
|
2805
|
+
return w;
|
|
2806
|
+
};
|
|
2807
|
+
ExternalAdReplyInfo.decode = function decode(r, l, e, n) {
|
|
2808
|
+
if (!(r instanceof $Reader))
|
|
2809
|
+
r = $Reader.create(r);
|
|
2810
|
+
if (n === undefined)
|
|
2811
|
+
n = 0;
|
|
2812
|
+
if (n > $Reader.recursionLimit)
|
|
2813
|
+
throw Error("maximum nesting depth exceeded");
|
|
2814
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.ExternalAdReplyInfo();
|
|
2815
|
+
while (r.pos < c) {
|
|
2816
|
+
var t = r.uint32();
|
|
2817
|
+
if (t === e)
|
|
2818
|
+
break;
|
|
2819
|
+
switch (t >>> 3) {
|
|
2820
|
+
case 1: {
|
|
2821
|
+
m.title = r.string();
|
|
2822
|
+
break;
|
|
2823
|
+
}
|
|
2824
|
+
case 2: {
|
|
2825
|
+
m.body = r.string();
|
|
2826
|
+
break;
|
|
2827
|
+
}
|
|
2828
|
+
case 3: {
|
|
2829
|
+
m.mediaType = r.int32();
|
|
2830
|
+
break;
|
|
2831
|
+
}
|
|
2832
|
+
case 4: {
|
|
2833
|
+
m.thumbnailUrl = r.string();
|
|
2834
|
+
break;
|
|
2835
|
+
}
|
|
2836
|
+
case 5: {
|
|
2837
|
+
m.mediaUrl = r.string();
|
|
2838
|
+
break;
|
|
2839
|
+
}
|
|
2840
|
+
case 6: {
|
|
2841
|
+
m.thumbnail = r.bytes();
|
|
2842
|
+
break;
|
|
2843
|
+
}
|
|
2844
|
+
case 7: {
|
|
2845
|
+
m.sourceType = r.string();
|
|
2846
|
+
break;
|
|
2847
|
+
}
|
|
2848
|
+
case 8: {
|
|
2849
|
+
m.sourceId = r.string();
|
|
2850
|
+
break;
|
|
2851
|
+
}
|
|
2852
|
+
case 9: {
|
|
2853
|
+
m.sourceUrl = r.string();
|
|
2854
|
+
break;
|
|
2855
|
+
}
|
|
2856
|
+
case 10: {
|
|
2857
|
+
m.containsAutoReply = r.bool();
|
|
2858
|
+
break;
|
|
2859
|
+
}
|
|
2860
|
+
case 11: {
|
|
2861
|
+
m.renderLargerThumbnail = r.bool();
|
|
2862
|
+
break;
|
|
2863
|
+
}
|
|
2864
|
+
case 12: {
|
|
2865
|
+
m.showAdAttribution = r.bool();
|
|
2866
|
+
break;
|
|
2867
|
+
}
|
|
2868
|
+
case 13: {
|
|
2869
|
+
m.ctwaClid = r.string();
|
|
2870
|
+
break;
|
|
2871
|
+
}
|
|
2872
|
+
case 14: {
|
|
2873
|
+
m.ref = r.string();
|
|
2874
|
+
break;
|
|
2875
|
+
}
|
|
2876
|
+
case 15: {
|
|
2877
|
+
m.clickToWhatsappCall = r.bool();
|
|
2878
|
+
break;
|
|
2879
|
+
}
|
|
2880
|
+
case 16: {
|
|
2881
|
+
m.adContextPreviewDismissed = r.bool();
|
|
2882
|
+
break;
|
|
2883
|
+
}
|
|
2884
|
+
case 17: {
|
|
2885
|
+
m.sourceApp = r.string();
|
|
2886
|
+
break;
|
|
2887
|
+
}
|
|
2888
|
+
case 18: {
|
|
2889
|
+
m.automatedGreetingMessageShown = r.bool();
|
|
2890
|
+
break;
|
|
2891
|
+
}
|
|
2892
|
+
case 19: {
|
|
2893
|
+
m.greetingMessageBody = r.string();
|
|
2894
|
+
break;
|
|
2895
|
+
}
|
|
2896
|
+
case 20: {
|
|
2897
|
+
m.ctaPayload = r.string();
|
|
2898
|
+
break;
|
|
2899
|
+
}
|
|
2900
|
+
case 21: {
|
|
2901
|
+
m.disableNudge = r.bool();
|
|
2902
|
+
break;
|
|
2903
|
+
}
|
|
2904
|
+
case 22: {
|
|
2905
|
+
m.originalImageUrl = r.string();
|
|
2906
|
+
break;
|
|
2907
|
+
}
|
|
2908
|
+
case 23: {
|
|
2909
|
+
m.automatedGreetingMessageCtaType = r.string();
|
|
2910
|
+
break;
|
|
2911
|
+
}
|
|
2912
|
+
case 24: {
|
|
2913
|
+
m.wtwaAdFormat = r.bool();
|
|
2914
|
+
break;
|
|
2915
|
+
}
|
|
2916
|
+
case 25: {
|
|
2917
|
+
m.adType = r.int32();
|
|
2918
|
+
break;
|
|
2919
|
+
}
|
|
2920
|
+
case 26: {
|
|
2921
|
+
m.wtwaWebsiteUrl = r.string();
|
|
2922
|
+
break;
|
|
2923
|
+
}
|
|
2924
|
+
case 27: {
|
|
2925
|
+
m.adPreviewUrl = r.string();
|
|
2926
|
+
break;
|
|
2927
|
+
}
|
|
2928
|
+
case 28: {
|
|
2929
|
+
m.containsCtwaFlowsAutoReply = r.bool();
|
|
2930
|
+
break;
|
|
2931
|
+
}
|
|
2932
|
+
case 29: {
|
|
2933
|
+
m.agmThumbnailStrategy = r.int32();
|
|
2934
|
+
break;
|
|
2935
|
+
}
|
|
2936
|
+
case 30: {
|
|
2937
|
+
m.agmTitleStrategy = r.int32();
|
|
2938
|
+
break;
|
|
2939
|
+
}
|
|
2940
|
+
case 31: {
|
|
2941
|
+
m.agmSubtitleStrategy = r.int32();
|
|
2942
|
+
break;
|
|
2943
|
+
}
|
|
2944
|
+
case 32: {
|
|
2945
|
+
m.agmHeaderInteractionStrategy = r.int32();
|
|
2946
|
+
break;
|
|
2947
|
+
}
|
|
2948
|
+
default:
|
|
2949
|
+
r.skipType(t & 7, n);
|
|
2950
|
+
break;
|
|
2951
|
+
}
|
|
2952
|
+
}
|
|
2953
|
+
return m;
|
|
2954
|
+
};
|
|
2955
|
+
ExternalAdReplyInfo.fromObject = function fromObject(d, n) {
|
|
2956
|
+
if (d instanceof $root.proto.ContextInfo.ExternalAdReplyInfo)
|
|
2957
|
+
return d;
|
|
2958
|
+
if (n === undefined)
|
|
2959
|
+
n = 0;
|
|
2960
|
+
if (n > $util.recursionLimit)
|
|
2961
|
+
throw Error("maximum nesting depth exceeded");
|
|
2962
|
+
var m = new $root.proto.ContextInfo.ExternalAdReplyInfo();
|
|
2963
|
+
if (d.title != null) {
|
|
2964
|
+
m.title = String(d.title);
|
|
2965
|
+
}
|
|
2966
|
+
if (d.body != null) {
|
|
2967
|
+
m.body = String(d.body);
|
|
2968
|
+
}
|
|
2969
|
+
switch (d.mediaType) {
|
|
2970
|
+
default:
|
|
2971
|
+
if (typeof d.mediaType === "number") {
|
|
2972
|
+
m.mediaType = d.mediaType;
|
|
2973
|
+
break;
|
|
2974
|
+
}
|
|
2975
|
+
break;
|
|
2976
|
+
case "NONE":
|
|
2977
|
+
case 0:
|
|
2978
|
+
m.mediaType = 0;
|
|
2979
|
+
break;
|
|
2980
|
+
case "IMAGE":
|
|
2981
|
+
case 1:
|
|
2982
|
+
m.mediaType = 1;
|
|
2983
|
+
break;
|
|
2984
|
+
case "VIDEO":
|
|
2985
|
+
case 2:
|
|
2986
|
+
m.mediaType = 2;
|
|
2987
|
+
break;
|
|
2988
|
+
}
|
|
2989
|
+
if (d.thumbnailUrl != null) {
|
|
2990
|
+
m.thumbnailUrl = String(d.thumbnailUrl);
|
|
2991
|
+
}
|
|
2992
|
+
if (d.mediaUrl != null) {
|
|
2993
|
+
m.mediaUrl = String(d.mediaUrl);
|
|
2994
|
+
}
|
|
2995
|
+
if (d.thumbnail != null) {
|
|
2996
|
+
if (typeof d.thumbnail === "string")
|
|
2997
|
+
$util.base64.decode(d.thumbnail, m.thumbnail = $util.newBuffer($util.base64.length(d.thumbnail)), 0);
|
|
2998
|
+
else if (d.thumbnail.length >= 0)
|
|
2999
|
+
m.thumbnail = d.thumbnail;
|
|
3000
|
+
}
|
|
3001
|
+
if (d.sourceType != null) {
|
|
3002
|
+
m.sourceType = String(d.sourceType);
|
|
3003
|
+
}
|
|
3004
|
+
if (d.sourceId != null) {
|
|
3005
|
+
m.sourceId = String(d.sourceId);
|
|
3006
|
+
}
|
|
3007
|
+
if (d.sourceUrl != null) {
|
|
3008
|
+
m.sourceUrl = String(d.sourceUrl);
|
|
3009
|
+
}
|
|
3010
|
+
if (d.containsAutoReply != null) {
|
|
3011
|
+
m.containsAutoReply = Boolean(d.containsAutoReply);
|
|
3012
|
+
}
|
|
3013
|
+
if (d.renderLargerThumbnail != null) {
|
|
3014
|
+
m.renderLargerThumbnail = Boolean(d.renderLargerThumbnail);
|
|
3015
|
+
}
|
|
3016
|
+
if (d.showAdAttribution != null) {
|
|
3017
|
+
m.showAdAttribution = Boolean(d.showAdAttribution);
|
|
3018
|
+
}
|
|
3019
|
+
if (d.ctwaClid != null) {
|
|
3020
|
+
m.ctwaClid = String(d.ctwaClid);
|
|
3021
|
+
}
|
|
3022
|
+
if (d.ref != null) {
|
|
3023
|
+
m.ref = String(d.ref);
|
|
3024
|
+
}
|
|
3025
|
+
if (d.clickToWhatsappCall != null) {
|
|
3026
|
+
m.clickToWhatsappCall = Boolean(d.clickToWhatsappCall);
|
|
3027
|
+
}
|
|
3028
|
+
if (d.adContextPreviewDismissed != null) {
|
|
3029
|
+
m.adContextPreviewDismissed = Boolean(d.adContextPreviewDismissed);
|
|
3030
|
+
}
|
|
3031
|
+
if (d.sourceApp != null) {
|
|
3032
|
+
m.sourceApp = String(d.sourceApp);
|
|
3033
|
+
}
|
|
3034
|
+
if (d.automatedGreetingMessageShown != null) {
|
|
3035
|
+
m.automatedGreetingMessageShown = Boolean(d.automatedGreetingMessageShown);
|
|
3036
|
+
}
|
|
3037
|
+
if (d.greetingMessageBody != null) {
|
|
3038
|
+
m.greetingMessageBody = String(d.greetingMessageBody);
|
|
3039
|
+
}
|
|
3040
|
+
if (d.ctaPayload != null) {
|
|
3041
|
+
m.ctaPayload = String(d.ctaPayload);
|
|
3042
|
+
}
|
|
3043
|
+
if (d.disableNudge != null) {
|
|
3044
|
+
m.disableNudge = Boolean(d.disableNudge);
|
|
3045
|
+
}
|
|
3046
|
+
if (d.originalImageUrl != null) {
|
|
3047
|
+
m.originalImageUrl = String(d.originalImageUrl);
|
|
3048
|
+
}
|
|
3049
|
+
if (d.automatedGreetingMessageCtaType != null) {
|
|
3050
|
+
m.automatedGreetingMessageCtaType = String(d.automatedGreetingMessageCtaType);
|
|
3051
|
+
}
|
|
3052
|
+
if (d.wtwaAdFormat != null) {
|
|
3053
|
+
m.wtwaAdFormat = Boolean(d.wtwaAdFormat);
|
|
3054
|
+
}
|
|
3055
|
+
switch (d.adType) {
|
|
3056
|
+
default:
|
|
3057
|
+
if (typeof d.adType === "number") {
|
|
3058
|
+
m.adType = d.adType;
|
|
3059
|
+
break;
|
|
3060
|
+
}
|
|
3061
|
+
break;
|
|
3062
|
+
case "CTWA":
|
|
3063
|
+
case 0:
|
|
3064
|
+
m.adType = 0;
|
|
3065
|
+
break;
|
|
3066
|
+
case "CAWC":
|
|
3067
|
+
case 1:
|
|
3068
|
+
m.adType = 1;
|
|
3069
|
+
break;
|
|
3070
|
+
}
|
|
3071
|
+
if (d.wtwaWebsiteUrl != null) {
|
|
3072
|
+
m.wtwaWebsiteUrl = String(d.wtwaWebsiteUrl);
|
|
3073
|
+
}
|
|
3074
|
+
if (d.adPreviewUrl != null) {
|
|
3075
|
+
m.adPreviewUrl = String(d.adPreviewUrl);
|
|
3076
|
+
}
|
|
3077
|
+
if (d.containsCtwaFlowsAutoReply != null) {
|
|
3078
|
+
m.containsCtwaFlowsAutoReply = Boolean(d.containsCtwaFlowsAutoReply);
|
|
3079
|
+
}
|
|
3080
|
+
if (d.agmThumbnailStrategy != null) {
|
|
3081
|
+
m.agmThumbnailStrategy = d.agmThumbnailStrategy | 0;
|
|
3082
|
+
}
|
|
3083
|
+
if (d.agmTitleStrategy != null) {
|
|
3084
|
+
m.agmTitleStrategy = d.agmTitleStrategy | 0;
|
|
3085
|
+
}
|
|
3086
|
+
if (d.agmSubtitleStrategy != null) {
|
|
3087
|
+
m.agmSubtitleStrategy = d.agmSubtitleStrategy | 0;
|
|
3088
|
+
}
|
|
3089
|
+
if (d.agmHeaderInteractionStrategy != null) {
|
|
3090
|
+
m.agmHeaderInteractionStrategy = d.agmHeaderInteractionStrategy | 0;
|
|
3091
|
+
}
|
|
3092
|
+
return m;
|
|
3093
|
+
};
|
|
3094
|
+
ExternalAdReplyInfo.toObject = function toObject(m, o) {
|
|
3095
|
+
if (!o)
|
|
3096
|
+
o = {};
|
|
3097
|
+
var d = {};
|
|
3098
|
+
if (m.title != null && m.hasOwnProperty("title")) {
|
|
3099
|
+
d.title = m.title;
|
|
3100
|
+
if (o.oneofs)
|
|
3101
|
+
d._title = "title";
|
|
3102
|
+
}
|
|
3103
|
+
if (m.body != null && m.hasOwnProperty("body")) {
|
|
3104
|
+
d.body = m.body;
|
|
3105
|
+
if (o.oneofs)
|
|
3106
|
+
d._body = "body";
|
|
3107
|
+
}
|
|
3108
|
+
if (m.mediaType != null && m.hasOwnProperty("mediaType")) {
|
|
3109
|
+
d.mediaType = o.enums === String ? $root.proto.ContextInfo.ExternalAdReplyInfo.MediaType[m.mediaType] === undefined ? m.mediaType : $root.proto.ContextInfo.ExternalAdReplyInfo.MediaType[m.mediaType] : m.mediaType;
|
|
3110
|
+
if (o.oneofs)
|
|
3111
|
+
d._mediaType = "mediaType";
|
|
3112
|
+
}
|
|
3113
|
+
if (m.thumbnailUrl != null && m.hasOwnProperty("thumbnailUrl")) {
|
|
3114
|
+
d.thumbnailUrl = m.thumbnailUrl;
|
|
3115
|
+
if (o.oneofs)
|
|
3116
|
+
d._thumbnailUrl = "thumbnailUrl";
|
|
3117
|
+
}
|
|
3118
|
+
if (m.mediaUrl != null && m.hasOwnProperty("mediaUrl")) {
|
|
3119
|
+
d.mediaUrl = m.mediaUrl;
|
|
3120
|
+
if (o.oneofs)
|
|
3121
|
+
d._mediaUrl = "mediaUrl";
|
|
3122
|
+
}
|
|
3123
|
+
if (m.thumbnail != null && m.hasOwnProperty("thumbnail")) {
|
|
3124
|
+
d.thumbnail = o.bytes === String ? $util.base64.encode(m.thumbnail, 0, m.thumbnail.length) : o.bytes === Array ? Array.prototype.slice.call(m.thumbnail) : m.thumbnail;
|
|
3125
|
+
if (o.oneofs)
|
|
3126
|
+
d._thumbnail = "thumbnail";
|
|
3127
|
+
}
|
|
3128
|
+
if (m.sourceType != null && m.hasOwnProperty("sourceType")) {
|
|
3129
|
+
d.sourceType = m.sourceType;
|
|
3130
|
+
if (o.oneofs)
|
|
3131
|
+
d._sourceType = "sourceType";
|
|
3132
|
+
}
|
|
3133
|
+
if (m.sourceId != null && m.hasOwnProperty("sourceId")) {
|
|
3134
|
+
d.sourceId = m.sourceId;
|
|
3135
|
+
if (o.oneofs)
|
|
3136
|
+
d._sourceId = "sourceId";
|
|
3137
|
+
}
|
|
3138
|
+
if (m.sourceUrl != null && m.hasOwnProperty("sourceUrl")) {
|
|
3139
|
+
d.sourceUrl = m.sourceUrl;
|
|
3140
|
+
if (o.oneofs)
|
|
3141
|
+
d._sourceUrl = "sourceUrl";
|
|
3142
|
+
}
|
|
3143
|
+
if (m.containsAutoReply != null && m.hasOwnProperty("containsAutoReply")) {
|
|
3144
|
+
d.containsAutoReply = m.containsAutoReply;
|
|
3145
|
+
if (o.oneofs)
|
|
3146
|
+
d._containsAutoReply = "containsAutoReply";
|
|
3147
|
+
}
|
|
3148
|
+
if (m.renderLargerThumbnail != null && m.hasOwnProperty("renderLargerThumbnail")) {
|
|
3149
|
+
d.renderLargerThumbnail = m.renderLargerThumbnail;
|
|
3150
|
+
if (o.oneofs)
|
|
3151
|
+
d._renderLargerThumbnail = "renderLargerThumbnail";
|
|
3152
|
+
}
|
|
3153
|
+
if (m.showAdAttribution != null && m.hasOwnProperty("showAdAttribution")) {
|
|
3154
|
+
d.showAdAttribution = m.showAdAttribution;
|
|
3155
|
+
if (o.oneofs)
|
|
3156
|
+
d._showAdAttribution = "showAdAttribution";
|
|
3157
|
+
}
|
|
3158
|
+
if (m.ctwaClid != null && m.hasOwnProperty("ctwaClid")) {
|
|
3159
|
+
d.ctwaClid = m.ctwaClid;
|
|
3160
|
+
if (o.oneofs)
|
|
3161
|
+
d._ctwaClid = "ctwaClid";
|
|
3162
|
+
}
|
|
3163
|
+
if (m.ref != null && m.hasOwnProperty("ref")) {
|
|
3164
|
+
d.ref = m.ref;
|
|
3165
|
+
if (o.oneofs)
|
|
3166
|
+
d._ref = "ref";
|
|
3167
|
+
}
|
|
3168
|
+
if (m.clickToWhatsappCall != null && m.hasOwnProperty("clickToWhatsappCall")) {
|
|
3169
|
+
d.clickToWhatsappCall = m.clickToWhatsappCall;
|
|
3170
|
+
if (o.oneofs)
|
|
3171
|
+
d._clickToWhatsappCall = "clickToWhatsappCall";
|
|
3172
|
+
}
|
|
3173
|
+
if (m.adContextPreviewDismissed != null && m.hasOwnProperty("adContextPreviewDismissed")) {
|
|
3174
|
+
d.adContextPreviewDismissed = m.adContextPreviewDismissed;
|
|
3175
|
+
if (o.oneofs)
|
|
3176
|
+
d._adContextPreviewDismissed = "adContextPreviewDismissed";
|
|
3177
|
+
}
|
|
3178
|
+
if (m.sourceApp != null && m.hasOwnProperty("sourceApp")) {
|
|
3179
|
+
d.sourceApp = m.sourceApp;
|
|
3180
|
+
if (o.oneofs)
|
|
3181
|
+
d._sourceApp = "sourceApp";
|
|
3182
|
+
}
|
|
3183
|
+
if (m.automatedGreetingMessageShown != null && m.hasOwnProperty("automatedGreetingMessageShown")) {
|
|
3184
|
+
d.automatedGreetingMessageShown = m.automatedGreetingMessageShown;
|
|
3185
|
+
if (o.oneofs)
|
|
3186
|
+
d._automatedGreetingMessageShown = "automatedGreetingMessageShown";
|
|
3187
|
+
}
|
|
3188
|
+
if (m.greetingMessageBody != null && m.hasOwnProperty("greetingMessageBody")) {
|
|
3189
|
+
d.greetingMessageBody = m.greetingMessageBody;
|
|
3190
|
+
if (o.oneofs)
|
|
3191
|
+
d._greetingMessageBody = "greetingMessageBody";
|
|
3192
|
+
}
|
|
3193
|
+
if (m.ctaPayload != null && m.hasOwnProperty("ctaPayload")) {
|
|
3194
|
+
d.ctaPayload = m.ctaPayload;
|
|
3195
|
+
if (o.oneofs)
|
|
3196
|
+
d._ctaPayload = "ctaPayload";
|
|
3197
|
+
}
|
|
3198
|
+
if (m.disableNudge != null && m.hasOwnProperty("disableNudge")) {
|
|
3199
|
+
d.disableNudge = m.disableNudge;
|
|
3200
|
+
if (o.oneofs)
|
|
3201
|
+
d._disableNudge = "disableNudge";
|
|
3202
|
+
}
|
|
3203
|
+
if (m.originalImageUrl != null && m.hasOwnProperty("originalImageUrl")) {
|
|
3204
|
+
d.originalImageUrl = m.originalImageUrl;
|
|
3205
|
+
if (o.oneofs)
|
|
3206
|
+
d._originalImageUrl = "originalImageUrl";
|
|
3207
|
+
}
|
|
3208
|
+
if (m.automatedGreetingMessageCtaType != null && m.hasOwnProperty("automatedGreetingMessageCtaType")) {
|
|
3209
|
+
d.automatedGreetingMessageCtaType = m.automatedGreetingMessageCtaType;
|
|
3210
|
+
if (o.oneofs)
|
|
3211
|
+
d._automatedGreetingMessageCtaType = "automatedGreetingMessageCtaType";
|
|
3212
|
+
}
|
|
3213
|
+
if (m.wtwaAdFormat != null && m.hasOwnProperty("wtwaAdFormat")) {
|
|
3214
|
+
d.wtwaAdFormat = m.wtwaAdFormat;
|
|
3215
|
+
if (o.oneofs)
|
|
3216
|
+
d._wtwaAdFormat = "wtwaAdFormat";
|
|
3217
|
+
}
|
|
3218
|
+
if (m.adType != null && m.hasOwnProperty("adType")) {
|
|
3219
|
+
d.adType = o.enums === String ? $root.proto.ContextInfo.ExternalAdReplyInfo.AdType[m.adType] === undefined ? m.adType : $root.proto.ContextInfo.ExternalAdReplyInfo.AdType[m.adType] : m.adType;
|
|
3220
|
+
if (o.oneofs)
|
|
3221
|
+
d._adType = "adType";
|
|
3222
|
+
}
|
|
3223
|
+
if (m.wtwaWebsiteUrl != null && m.hasOwnProperty("wtwaWebsiteUrl")) {
|
|
3224
|
+
d.wtwaWebsiteUrl = m.wtwaWebsiteUrl;
|
|
3225
|
+
if (o.oneofs)
|
|
3226
|
+
d._wtwaWebsiteUrl = "wtwaWebsiteUrl";
|
|
3227
|
+
}
|
|
3228
|
+
if (m.adPreviewUrl != null && m.hasOwnProperty("adPreviewUrl")) {
|
|
3229
|
+
d.adPreviewUrl = m.adPreviewUrl;
|
|
3230
|
+
if (o.oneofs)
|
|
3231
|
+
d._adPreviewUrl = "adPreviewUrl";
|
|
3232
|
+
}
|
|
3233
|
+
if (m.containsCtwaFlowsAutoReply != null && m.hasOwnProperty("containsCtwaFlowsAutoReply")) {
|
|
3234
|
+
d.containsCtwaFlowsAutoReply = m.containsCtwaFlowsAutoReply;
|
|
3235
|
+
if (o.oneofs)
|
|
3236
|
+
d._containsCtwaFlowsAutoReply = "containsCtwaFlowsAutoReply";
|
|
3237
|
+
}
|
|
3238
|
+
if (m.agmThumbnailStrategy != null && m.hasOwnProperty("agmThumbnailStrategy")) {
|
|
3239
|
+
d.agmThumbnailStrategy = m.agmThumbnailStrategy;
|
|
3240
|
+
if (o.oneofs)
|
|
3241
|
+
d._agmThumbnailStrategy = "agmThumbnailStrategy";
|
|
3242
|
+
}
|
|
3243
|
+
if (m.agmTitleStrategy != null && m.hasOwnProperty("agmTitleStrategy")) {
|
|
3244
|
+
d.agmTitleStrategy = m.agmTitleStrategy;
|
|
3245
|
+
if (o.oneofs)
|
|
3246
|
+
d._agmTitleStrategy = "agmTitleStrategy";
|
|
3247
|
+
}
|
|
3248
|
+
if (m.agmSubtitleStrategy != null && m.hasOwnProperty("agmSubtitleStrategy")) {
|
|
3249
|
+
d.agmSubtitleStrategy = m.agmSubtitleStrategy;
|
|
3250
|
+
if (o.oneofs)
|
|
3251
|
+
d._agmSubtitleStrategy = "agmSubtitleStrategy";
|
|
3252
|
+
}
|
|
3253
|
+
if (m.agmHeaderInteractionStrategy != null && m.hasOwnProperty("agmHeaderInteractionStrategy")) {
|
|
3254
|
+
d.agmHeaderInteractionStrategy = m.agmHeaderInteractionStrategy;
|
|
3255
|
+
if (o.oneofs)
|
|
3256
|
+
d._agmHeaderInteractionStrategy = "agmHeaderInteractionStrategy";
|
|
3257
|
+
}
|
|
3258
|
+
return d;
|
|
3259
|
+
};
|
|
3260
|
+
ExternalAdReplyInfo.prototype.toJSON = function toJSON() {
|
|
3261
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3262
|
+
};
|
|
3263
|
+
ExternalAdReplyInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3264
|
+
if (typeUrlPrefix === undefined) {
|
|
3265
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3266
|
+
}
|
|
3267
|
+
return typeUrlPrefix + "/proto.ContextInfo.ExternalAdReplyInfo";
|
|
3268
|
+
};
|
|
3269
|
+
$lazy(ExternalAdReplyInfo, "AdType", function() {
|
|
3270
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3271
|
+
values[valuesById[0] = "CTWA"] = 0;
|
|
3272
|
+
values[valuesById[1] = "CAWC"] = 1;
|
|
3273
|
+
return values;
|
|
3274
|
+
});
|
|
3275
|
+
$lazy(ExternalAdReplyInfo, "MediaType", function() {
|
|
3276
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3277
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
3278
|
+
values[valuesById[1] = "IMAGE"] = 1;
|
|
3279
|
+
values[valuesById[2] = "VIDEO"] = 2;
|
|
3280
|
+
return values;
|
|
3281
|
+
});
|
|
3282
|
+
return ExternalAdReplyInfo;
|
|
3283
|
+
});
|
|
3284
|
+
$lazy(ContextInfo, "FeatureEligibilities", function() {
|
|
3285
|
+
function FeatureEligibilities(p) {
|
|
3286
|
+
if (p)
|
|
3287
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
3288
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
3289
|
+
this[ks[i]] = p[ks[i]];
|
|
3290
|
+
}
|
|
3291
|
+
FeatureEligibilities.prototype.cannotBeReactedTo = null;
|
|
3292
|
+
FeatureEligibilities.prototype.cannotBeRanked = null;
|
|
3293
|
+
FeatureEligibilities.prototype.canRequestFeedback = null;
|
|
3294
|
+
FeatureEligibilities.prototype.canBeReshared = null;
|
|
3295
|
+
FeatureEligibilities.prototype.canReceiveMultiReact = null;
|
|
3296
|
+
let $oneOfFields;
|
|
3297
|
+
Object.defineProperty(FeatureEligibilities.prototype, "_cannotBeReactedTo", {
|
|
3298
|
+
get: $util.oneOfGetter($oneOfFields = ["cannotBeReactedTo"]),
|
|
3299
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3300
|
+
});
|
|
3301
|
+
Object.defineProperty(FeatureEligibilities.prototype, "_cannotBeRanked", {
|
|
3302
|
+
get: $util.oneOfGetter($oneOfFields = ["cannotBeRanked"]),
|
|
3303
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3304
|
+
});
|
|
3305
|
+
Object.defineProperty(FeatureEligibilities.prototype, "_canRequestFeedback", {
|
|
3306
|
+
get: $util.oneOfGetter($oneOfFields = ["canRequestFeedback"]),
|
|
3307
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3308
|
+
});
|
|
3309
|
+
Object.defineProperty(FeatureEligibilities.prototype, "_canBeReshared", {
|
|
3310
|
+
get: $util.oneOfGetter($oneOfFields = ["canBeReshared"]),
|
|
3311
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3312
|
+
});
|
|
3313
|
+
Object.defineProperty(FeatureEligibilities.prototype, "_canReceiveMultiReact", {
|
|
3314
|
+
get: $util.oneOfGetter($oneOfFields = ["canReceiveMultiReact"]),
|
|
3315
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3316
|
+
});
|
|
3317
|
+
FeatureEligibilities.create = function create(properties) {
|
|
3318
|
+
return new FeatureEligibilities(properties);
|
|
3319
|
+
};
|
|
3320
|
+
FeatureEligibilities.encode = function encode(m, w) {
|
|
3321
|
+
if (!w)
|
|
3322
|
+
w = $Writer.create();
|
|
3323
|
+
if (m.cannotBeReactedTo != null && Object.hasOwnProperty.call(m, "cannotBeReactedTo"))
|
|
3324
|
+
w.uint32(8).bool(m.cannotBeReactedTo);
|
|
3325
|
+
if (m.cannotBeRanked != null && Object.hasOwnProperty.call(m, "cannotBeRanked"))
|
|
3326
|
+
w.uint32(16).bool(m.cannotBeRanked);
|
|
3327
|
+
if (m.canRequestFeedback != null && Object.hasOwnProperty.call(m, "canRequestFeedback"))
|
|
3328
|
+
w.uint32(24).bool(m.canRequestFeedback);
|
|
3329
|
+
if (m.canBeReshared != null && Object.hasOwnProperty.call(m, "canBeReshared"))
|
|
3330
|
+
w.uint32(32).bool(m.canBeReshared);
|
|
3331
|
+
if (m.canReceiveMultiReact != null && Object.hasOwnProperty.call(m, "canReceiveMultiReact"))
|
|
3332
|
+
w.uint32(40).bool(m.canReceiveMultiReact);
|
|
3333
|
+
return w;
|
|
3334
|
+
};
|
|
3335
|
+
FeatureEligibilities.decode = function decode(r, l, e, n) {
|
|
3336
|
+
if (!(r instanceof $Reader))
|
|
3337
|
+
r = $Reader.create(r);
|
|
3338
|
+
if (n === undefined)
|
|
3339
|
+
n = 0;
|
|
3340
|
+
if (n > $Reader.recursionLimit)
|
|
3341
|
+
throw Error("maximum nesting depth exceeded");
|
|
3342
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.FeatureEligibilities();
|
|
3343
|
+
while (r.pos < c) {
|
|
3344
|
+
var t = r.uint32();
|
|
3345
|
+
if (t === e)
|
|
3346
|
+
break;
|
|
3347
|
+
switch (t >>> 3) {
|
|
3348
|
+
case 1: {
|
|
3349
|
+
m.cannotBeReactedTo = r.bool();
|
|
3350
|
+
break;
|
|
3351
|
+
}
|
|
3352
|
+
case 2: {
|
|
3353
|
+
m.cannotBeRanked = r.bool();
|
|
3354
|
+
break;
|
|
3355
|
+
}
|
|
3356
|
+
case 3: {
|
|
3357
|
+
m.canRequestFeedback = r.bool();
|
|
3358
|
+
break;
|
|
3359
|
+
}
|
|
3360
|
+
case 4: {
|
|
3361
|
+
m.canBeReshared = r.bool();
|
|
3362
|
+
break;
|
|
3363
|
+
}
|
|
3364
|
+
case 5: {
|
|
3365
|
+
m.canReceiveMultiReact = r.bool();
|
|
3366
|
+
break;
|
|
3367
|
+
}
|
|
3368
|
+
default:
|
|
3369
|
+
r.skipType(t & 7, n);
|
|
3370
|
+
break;
|
|
3371
|
+
}
|
|
3372
|
+
}
|
|
3373
|
+
return m;
|
|
3374
|
+
};
|
|
3375
|
+
FeatureEligibilities.fromObject = function fromObject(d, n) {
|
|
3376
|
+
if (d instanceof $root.proto.ContextInfo.FeatureEligibilities)
|
|
3377
|
+
return d;
|
|
3378
|
+
if (n === undefined)
|
|
3379
|
+
n = 0;
|
|
3380
|
+
if (n > $util.recursionLimit)
|
|
3381
|
+
throw Error("maximum nesting depth exceeded");
|
|
3382
|
+
var m = new $root.proto.ContextInfo.FeatureEligibilities();
|
|
3383
|
+
if (d.cannotBeReactedTo != null) {
|
|
3384
|
+
m.cannotBeReactedTo = Boolean(d.cannotBeReactedTo);
|
|
3385
|
+
}
|
|
3386
|
+
if (d.cannotBeRanked != null) {
|
|
3387
|
+
m.cannotBeRanked = Boolean(d.cannotBeRanked);
|
|
3388
|
+
}
|
|
3389
|
+
if (d.canRequestFeedback != null) {
|
|
3390
|
+
m.canRequestFeedback = Boolean(d.canRequestFeedback);
|
|
3391
|
+
}
|
|
3392
|
+
if (d.canBeReshared != null) {
|
|
3393
|
+
m.canBeReshared = Boolean(d.canBeReshared);
|
|
3394
|
+
}
|
|
3395
|
+
if (d.canReceiveMultiReact != null) {
|
|
3396
|
+
m.canReceiveMultiReact = Boolean(d.canReceiveMultiReact);
|
|
3397
|
+
}
|
|
3398
|
+
return m;
|
|
3399
|
+
};
|
|
3400
|
+
FeatureEligibilities.toObject = function toObject(m, o) {
|
|
3401
|
+
if (!o)
|
|
3402
|
+
o = {};
|
|
3403
|
+
var d = {};
|
|
3404
|
+
if (m.cannotBeReactedTo != null && m.hasOwnProperty("cannotBeReactedTo")) {
|
|
3405
|
+
d.cannotBeReactedTo = m.cannotBeReactedTo;
|
|
3406
|
+
if (o.oneofs)
|
|
3407
|
+
d._cannotBeReactedTo = "cannotBeReactedTo";
|
|
3408
|
+
}
|
|
3409
|
+
if (m.cannotBeRanked != null && m.hasOwnProperty("cannotBeRanked")) {
|
|
3410
|
+
d.cannotBeRanked = m.cannotBeRanked;
|
|
3411
|
+
if (o.oneofs)
|
|
3412
|
+
d._cannotBeRanked = "cannotBeRanked";
|
|
3413
|
+
}
|
|
3414
|
+
if (m.canRequestFeedback != null && m.hasOwnProperty("canRequestFeedback")) {
|
|
3415
|
+
d.canRequestFeedback = m.canRequestFeedback;
|
|
3416
|
+
if (o.oneofs)
|
|
3417
|
+
d._canRequestFeedback = "canRequestFeedback";
|
|
3418
|
+
}
|
|
3419
|
+
if (m.canBeReshared != null && m.hasOwnProperty("canBeReshared")) {
|
|
3420
|
+
d.canBeReshared = m.canBeReshared;
|
|
3421
|
+
if (o.oneofs)
|
|
3422
|
+
d._canBeReshared = "canBeReshared";
|
|
3423
|
+
}
|
|
3424
|
+
if (m.canReceiveMultiReact != null && m.hasOwnProperty("canReceiveMultiReact")) {
|
|
3425
|
+
d.canReceiveMultiReact = m.canReceiveMultiReact;
|
|
3426
|
+
if (o.oneofs)
|
|
3427
|
+
d._canReceiveMultiReact = "canReceiveMultiReact";
|
|
3428
|
+
}
|
|
3429
|
+
return d;
|
|
3430
|
+
};
|
|
3431
|
+
FeatureEligibilities.prototype.toJSON = function toJSON() {
|
|
3432
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3433
|
+
};
|
|
3434
|
+
FeatureEligibilities.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3435
|
+
if (typeUrlPrefix === undefined) {
|
|
3436
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3437
|
+
}
|
|
3438
|
+
return typeUrlPrefix + "/proto.ContextInfo.FeatureEligibilities";
|
|
3439
|
+
};
|
|
3440
|
+
return FeatureEligibilities;
|
|
3441
|
+
});
|
|
3442
|
+
$lazy(ContextInfo, "ForwardOrigin", function() {
|
|
3443
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3444
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
3445
|
+
values[valuesById[1] = "CHAT"] = 1;
|
|
3446
|
+
values[valuesById[2] = "STATUS"] = 2;
|
|
3447
|
+
values[valuesById[3] = "CHANNELS"] = 3;
|
|
3448
|
+
values[valuesById[4] = "META_AI"] = 4;
|
|
3449
|
+
values[valuesById[5] = "UGC"] = 5;
|
|
3450
|
+
return values;
|
|
3451
|
+
});
|
|
3452
|
+
$lazy(ContextInfo, "ForwardedNewsletterMessageInfo", function() {
|
|
3453
|
+
function ForwardedNewsletterMessageInfo(p) {
|
|
3454
|
+
if (p)
|
|
3455
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
3456
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
3457
|
+
this[ks[i]] = p[ks[i]];
|
|
3458
|
+
}
|
|
3459
|
+
ForwardedNewsletterMessageInfo.prototype.newsletterJid = null;
|
|
3460
|
+
ForwardedNewsletterMessageInfo.prototype.serverMessageId = null;
|
|
3461
|
+
ForwardedNewsletterMessageInfo.prototype.newsletterName = null;
|
|
3462
|
+
ForwardedNewsletterMessageInfo.prototype.contentType = null;
|
|
3463
|
+
ForwardedNewsletterMessageInfo.prototype.accessibilityText = null;
|
|
3464
|
+
ForwardedNewsletterMessageInfo.prototype.profileName = null;
|
|
3465
|
+
let $oneOfFields;
|
|
3466
|
+
Object.defineProperty(ForwardedNewsletterMessageInfo.prototype, "_newsletterJid", {
|
|
3467
|
+
get: $util.oneOfGetter($oneOfFields = ["newsletterJid"]),
|
|
3468
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3469
|
+
});
|
|
3470
|
+
Object.defineProperty(ForwardedNewsletterMessageInfo.prototype, "_serverMessageId", {
|
|
3471
|
+
get: $util.oneOfGetter($oneOfFields = ["serverMessageId"]),
|
|
3472
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3473
|
+
});
|
|
3474
|
+
Object.defineProperty(ForwardedNewsletterMessageInfo.prototype, "_newsletterName", {
|
|
3475
|
+
get: $util.oneOfGetter($oneOfFields = ["newsletterName"]),
|
|
3476
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3477
|
+
});
|
|
3478
|
+
Object.defineProperty(ForwardedNewsletterMessageInfo.prototype, "_contentType", {
|
|
3479
|
+
get: $util.oneOfGetter($oneOfFields = ["contentType"]),
|
|
3480
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3481
|
+
});
|
|
3482
|
+
Object.defineProperty(ForwardedNewsletterMessageInfo.prototype, "_accessibilityText", {
|
|
3483
|
+
get: $util.oneOfGetter($oneOfFields = ["accessibilityText"]),
|
|
3484
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3485
|
+
});
|
|
3486
|
+
Object.defineProperty(ForwardedNewsletterMessageInfo.prototype, "_profileName", {
|
|
3487
|
+
get: $util.oneOfGetter($oneOfFields = ["profileName"]),
|
|
3488
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3489
|
+
});
|
|
3490
|
+
ForwardedNewsletterMessageInfo.create = function create(properties) {
|
|
3491
|
+
return new ForwardedNewsletterMessageInfo(properties);
|
|
3492
|
+
};
|
|
3493
|
+
ForwardedNewsletterMessageInfo.encode = function encode(m, w) {
|
|
3494
|
+
if (!w)
|
|
3495
|
+
w = $Writer.create();
|
|
3496
|
+
if (m.newsletterJid != null && Object.hasOwnProperty.call(m, "newsletterJid"))
|
|
3497
|
+
w.uint32(10).string(m.newsletterJid);
|
|
3498
|
+
if (m.serverMessageId != null && Object.hasOwnProperty.call(m, "serverMessageId"))
|
|
3499
|
+
w.uint32(16).int32(m.serverMessageId);
|
|
3500
|
+
if (m.newsletterName != null && Object.hasOwnProperty.call(m, "newsletterName"))
|
|
3501
|
+
w.uint32(26).string(m.newsletterName);
|
|
3502
|
+
if (m.contentType != null && Object.hasOwnProperty.call(m, "contentType"))
|
|
3503
|
+
w.uint32(32).int32(m.contentType);
|
|
3504
|
+
if (m.accessibilityText != null && Object.hasOwnProperty.call(m, "accessibilityText"))
|
|
3505
|
+
w.uint32(42).string(m.accessibilityText);
|
|
3506
|
+
if (m.profileName != null && Object.hasOwnProperty.call(m, "profileName"))
|
|
3507
|
+
w.uint32(50).string(m.profileName);
|
|
3508
|
+
return w;
|
|
3509
|
+
};
|
|
3510
|
+
ForwardedNewsletterMessageInfo.decode = function decode(r, l, e, n) {
|
|
3511
|
+
if (!(r instanceof $Reader))
|
|
3512
|
+
r = $Reader.create(r);
|
|
3513
|
+
if (n === undefined)
|
|
3514
|
+
n = 0;
|
|
3515
|
+
if (n > $Reader.recursionLimit)
|
|
3516
|
+
throw Error("maximum nesting depth exceeded");
|
|
3517
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.ForwardedNewsletterMessageInfo();
|
|
3518
|
+
while (r.pos < c) {
|
|
3519
|
+
var t = r.uint32();
|
|
3520
|
+
if (t === e)
|
|
3521
|
+
break;
|
|
3522
|
+
switch (t >>> 3) {
|
|
3523
|
+
case 1: {
|
|
3524
|
+
m.newsletterJid = r.string();
|
|
3525
|
+
break;
|
|
3526
|
+
}
|
|
3527
|
+
case 2: {
|
|
3528
|
+
m.serverMessageId = r.int32();
|
|
3529
|
+
break;
|
|
3530
|
+
}
|
|
3531
|
+
case 3: {
|
|
3532
|
+
m.newsletterName = r.string();
|
|
3533
|
+
break;
|
|
3534
|
+
}
|
|
3535
|
+
case 4: {
|
|
3536
|
+
m.contentType = r.int32();
|
|
3537
|
+
break;
|
|
3538
|
+
}
|
|
3539
|
+
case 5: {
|
|
3540
|
+
m.accessibilityText = r.string();
|
|
3541
|
+
break;
|
|
3542
|
+
}
|
|
3543
|
+
case 6: {
|
|
3544
|
+
m.profileName = r.string();
|
|
3545
|
+
break;
|
|
3546
|
+
}
|
|
3547
|
+
default:
|
|
3548
|
+
r.skipType(t & 7, n);
|
|
3549
|
+
break;
|
|
3550
|
+
}
|
|
3551
|
+
}
|
|
3552
|
+
return m;
|
|
3553
|
+
};
|
|
3554
|
+
ForwardedNewsletterMessageInfo.fromObject = function fromObject(d, n) {
|
|
3555
|
+
if (d instanceof $root.proto.ContextInfo.ForwardedNewsletterMessageInfo)
|
|
3556
|
+
return d;
|
|
3557
|
+
if (n === undefined)
|
|
3558
|
+
n = 0;
|
|
3559
|
+
if (n > $util.recursionLimit)
|
|
3560
|
+
throw Error("maximum nesting depth exceeded");
|
|
3561
|
+
var m = new $root.proto.ContextInfo.ForwardedNewsletterMessageInfo();
|
|
3562
|
+
if (d.newsletterJid != null) {
|
|
3563
|
+
m.newsletterJid = String(d.newsletterJid);
|
|
3564
|
+
}
|
|
3565
|
+
if (d.serverMessageId != null) {
|
|
3566
|
+
m.serverMessageId = d.serverMessageId | 0;
|
|
3567
|
+
}
|
|
3568
|
+
if (d.newsletterName != null) {
|
|
3569
|
+
m.newsletterName = String(d.newsletterName);
|
|
3570
|
+
}
|
|
3571
|
+
switch (d.contentType) {
|
|
3572
|
+
default:
|
|
3573
|
+
if (typeof d.contentType === "number") {
|
|
3574
|
+
m.contentType = d.contentType;
|
|
3575
|
+
break;
|
|
3576
|
+
}
|
|
3577
|
+
break;
|
|
3578
|
+
case "UPDATE":
|
|
3579
|
+
case 1:
|
|
3580
|
+
m.contentType = 1;
|
|
3581
|
+
break;
|
|
3582
|
+
case "UPDATE_CARD":
|
|
3583
|
+
case 2:
|
|
3584
|
+
m.contentType = 2;
|
|
3585
|
+
break;
|
|
3586
|
+
case "LINK_CARD":
|
|
3587
|
+
case 3:
|
|
3588
|
+
m.contentType = 3;
|
|
3589
|
+
break;
|
|
3590
|
+
}
|
|
3591
|
+
if (d.accessibilityText != null) {
|
|
3592
|
+
m.accessibilityText = String(d.accessibilityText);
|
|
3593
|
+
}
|
|
3594
|
+
if (d.profileName != null) {
|
|
3595
|
+
m.profileName = String(d.profileName);
|
|
3596
|
+
}
|
|
3597
|
+
return m;
|
|
3598
|
+
};
|
|
3599
|
+
ForwardedNewsletterMessageInfo.toObject = function toObject(m, o) {
|
|
3600
|
+
if (!o)
|
|
3601
|
+
o = {};
|
|
3602
|
+
var d = {};
|
|
3603
|
+
if (m.newsletterJid != null && m.hasOwnProperty("newsletterJid")) {
|
|
3604
|
+
d.newsletterJid = m.newsletterJid;
|
|
3605
|
+
if (o.oneofs)
|
|
3606
|
+
d._newsletterJid = "newsletterJid";
|
|
3607
|
+
}
|
|
3608
|
+
if (m.serverMessageId != null && m.hasOwnProperty("serverMessageId")) {
|
|
3609
|
+
d.serverMessageId = m.serverMessageId;
|
|
3610
|
+
if (o.oneofs)
|
|
3611
|
+
d._serverMessageId = "serverMessageId";
|
|
3612
|
+
}
|
|
3613
|
+
if (m.newsletterName != null && m.hasOwnProperty("newsletterName")) {
|
|
3614
|
+
d.newsletterName = m.newsletterName;
|
|
3615
|
+
if (o.oneofs)
|
|
3616
|
+
d._newsletterName = "newsletterName";
|
|
3617
|
+
}
|
|
3618
|
+
if (m.contentType != null && m.hasOwnProperty("contentType")) {
|
|
3619
|
+
d.contentType = o.enums === String ? $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.ContentType[m.contentType] === undefined ? m.contentType : $root.proto.ContextInfo.ForwardedNewsletterMessageInfo.ContentType[m.contentType] : m.contentType;
|
|
3620
|
+
if (o.oneofs)
|
|
3621
|
+
d._contentType = "contentType";
|
|
3622
|
+
}
|
|
3623
|
+
if (m.accessibilityText != null && m.hasOwnProperty("accessibilityText")) {
|
|
3624
|
+
d.accessibilityText = m.accessibilityText;
|
|
3625
|
+
if (o.oneofs)
|
|
3626
|
+
d._accessibilityText = "accessibilityText";
|
|
3627
|
+
}
|
|
3628
|
+
if (m.profileName != null && m.hasOwnProperty("profileName")) {
|
|
3629
|
+
d.profileName = m.profileName;
|
|
3630
|
+
if (o.oneofs)
|
|
3631
|
+
d._profileName = "profileName";
|
|
3632
|
+
}
|
|
3633
|
+
return d;
|
|
3634
|
+
};
|
|
3635
|
+
ForwardedNewsletterMessageInfo.prototype.toJSON = function toJSON() {
|
|
3636
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3637
|
+
};
|
|
3638
|
+
ForwardedNewsletterMessageInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3639
|
+
if (typeUrlPrefix === undefined) {
|
|
3640
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3641
|
+
}
|
|
3642
|
+
return typeUrlPrefix + "/proto.ContextInfo.ForwardedNewsletterMessageInfo";
|
|
3643
|
+
};
|
|
3644
|
+
$lazy(ForwardedNewsletterMessageInfo, "ContentType", function() {
|
|
3645
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3646
|
+
values[valuesById[1] = "UPDATE"] = 1;
|
|
3647
|
+
values[valuesById[2] = "UPDATE_CARD"] = 2;
|
|
3648
|
+
values[valuesById[3] = "LINK_CARD"] = 3;
|
|
3649
|
+
return values;
|
|
3650
|
+
});
|
|
3651
|
+
return ForwardedNewsletterMessageInfo;
|
|
3652
|
+
});
|
|
3653
|
+
$lazy(ContextInfo, "PairedMediaType", function() {
|
|
3654
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3655
|
+
values[valuesById[0] = "NOT_PAIRED_MEDIA"] = 0;
|
|
3656
|
+
values[valuesById[1] = "SD_VIDEO_PARENT"] = 1;
|
|
3657
|
+
values[valuesById[2] = "HD_VIDEO_CHILD"] = 2;
|
|
3658
|
+
values[valuesById[3] = "SD_IMAGE_PARENT"] = 3;
|
|
3659
|
+
values[valuesById[4] = "HD_IMAGE_CHILD"] = 4;
|
|
3660
|
+
values[valuesById[5] = "MOTION_PHOTO_PARENT"] = 5;
|
|
3661
|
+
values[valuesById[6] = "MOTION_PHOTO_CHILD"] = 6;
|
|
3662
|
+
values[valuesById[7] = "HEVC_VIDEO_PARENT"] = 7;
|
|
3663
|
+
values[valuesById[8] = "HEVC_VIDEO_CHILD"] = 8;
|
|
3664
|
+
return values;
|
|
3665
|
+
});
|
|
3666
|
+
$lazy(ContextInfo, "PartiallySelectedContent", function() {
|
|
3667
|
+
function PartiallySelectedContent(p) {
|
|
3668
|
+
if (p)
|
|
3669
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
3670
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
3671
|
+
this[ks[i]] = p[ks[i]];
|
|
3672
|
+
}
|
|
3673
|
+
PartiallySelectedContent.prototype.text = null;
|
|
3674
|
+
let $oneOfFields;
|
|
3675
|
+
Object.defineProperty(PartiallySelectedContent.prototype, "_text", {
|
|
3676
|
+
get: $util.oneOfGetter($oneOfFields = ["text"]),
|
|
3677
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3678
|
+
});
|
|
3679
|
+
PartiallySelectedContent.create = function create(properties) {
|
|
3680
|
+
return new PartiallySelectedContent(properties);
|
|
3681
|
+
};
|
|
3682
|
+
PartiallySelectedContent.encode = function encode(m, w) {
|
|
3683
|
+
if (!w)
|
|
3684
|
+
w = $Writer.create();
|
|
3685
|
+
if (m.text != null && Object.hasOwnProperty.call(m, "text"))
|
|
3686
|
+
w.uint32(10).string(m.text);
|
|
3687
|
+
return w;
|
|
3688
|
+
};
|
|
3689
|
+
PartiallySelectedContent.decode = function decode(r, l, e, n) {
|
|
3690
|
+
if (!(r instanceof $Reader))
|
|
3691
|
+
r = $Reader.create(r);
|
|
3692
|
+
if (n === undefined)
|
|
3693
|
+
n = 0;
|
|
3694
|
+
if (n > $Reader.recursionLimit)
|
|
3695
|
+
throw Error("maximum nesting depth exceeded");
|
|
3696
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.PartiallySelectedContent();
|
|
3697
|
+
while (r.pos < c) {
|
|
3698
|
+
var t = r.uint32();
|
|
3699
|
+
if (t === e)
|
|
3700
|
+
break;
|
|
3701
|
+
switch (t >>> 3) {
|
|
3702
|
+
case 1: {
|
|
3703
|
+
m.text = r.string();
|
|
3704
|
+
break;
|
|
3705
|
+
}
|
|
3706
|
+
default:
|
|
3707
|
+
r.skipType(t & 7, n);
|
|
3708
|
+
break;
|
|
3709
|
+
}
|
|
3710
|
+
}
|
|
3711
|
+
return m;
|
|
3712
|
+
};
|
|
3713
|
+
PartiallySelectedContent.fromObject = function fromObject(d, n) {
|
|
3714
|
+
if (d instanceof $root.proto.ContextInfo.PartiallySelectedContent)
|
|
3715
|
+
return d;
|
|
3716
|
+
if (n === undefined)
|
|
3717
|
+
n = 0;
|
|
3718
|
+
if (n > $util.recursionLimit)
|
|
3719
|
+
throw Error("maximum nesting depth exceeded");
|
|
3720
|
+
var m = new $root.proto.ContextInfo.PartiallySelectedContent();
|
|
3721
|
+
if (d.text != null) {
|
|
3722
|
+
m.text = String(d.text);
|
|
3723
|
+
}
|
|
3724
|
+
return m;
|
|
3725
|
+
};
|
|
3726
|
+
PartiallySelectedContent.toObject = function toObject(m, o) {
|
|
3727
|
+
if (!o)
|
|
3728
|
+
o = {};
|
|
3729
|
+
var d = {};
|
|
3730
|
+
if (m.text != null && m.hasOwnProperty("text")) {
|
|
3731
|
+
d.text = m.text;
|
|
3732
|
+
if (o.oneofs)
|
|
3733
|
+
d._text = "text";
|
|
3734
|
+
}
|
|
3735
|
+
return d;
|
|
3736
|
+
};
|
|
3737
|
+
PartiallySelectedContent.prototype.toJSON = function toJSON() {
|
|
3738
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3739
|
+
};
|
|
3740
|
+
PartiallySelectedContent.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3741
|
+
if (typeUrlPrefix === undefined) {
|
|
3742
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3743
|
+
}
|
|
3744
|
+
return typeUrlPrefix + "/proto.ContextInfo.PartiallySelectedContent";
|
|
3745
|
+
};
|
|
3746
|
+
return PartiallySelectedContent;
|
|
3747
|
+
});
|
|
3748
|
+
$lazy(ContextInfo, "QuestionReplyQuotedMessage", function() {
|
|
3749
|
+
function QuestionReplyQuotedMessage(p) {
|
|
3750
|
+
if (p)
|
|
3751
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
3752
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
3753
|
+
this[ks[i]] = p[ks[i]];
|
|
3754
|
+
}
|
|
3755
|
+
QuestionReplyQuotedMessage.prototype.serverQuestionId = null;
|
|
3756
|
+
QuestionReplyQuotedMessage.prototype.quotedQuestion = null;
|
|
3757
|
+
QuestionReplyQuotedMessage.prototype.quotedResponse = null;
|
|
3758
|
+
let $oneOfFields;
|
|
3759
|
+
Object.defineProperty(QuestionReplyQuotedMessage.prototype, "_serverQuestionId", {
|
|
3760
|
+
get: $util.oneOfGetter($oneOfFields = ["serverQuestionId"]),
|
|
3761
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3762
|
+
});
|
|
3763
|
+
Object.defineProperty(QuestionReplyQuotedMessage.prototype, "_quotedQuestion", {
|
|
3764
|
+
get: $util.oneOfGetter($oneOfFields = ["quotedQuestion"]),
|
|
3765
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3766
|
+
});
|
|
3767
|
+
Object.defineProperty(QuestionReplyQuotedMessage.prototype, "_quotedResponse", {
|
|
3768
|
+
get: $util.oneOfGetter($oneOfFields = ["quotedResponse"]),
|
|
3769
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3770
|
+
});
|
|
3771
|
+
QuestionReplyQuotedMessage.create = function create(properties) {
|
|
3772
|
+
return new QuestionReplyQuotedMessage(properties);
|
|
3773
|
+
};
|
|
3774
|
+
QuestionReplyQuotedMessage.encode = function encode(m, w) {
|
|
3775
|
+
if (!w)
|
|
3776
|
+
w = $Writer.create();
|
|
3777
|
+
if (m.serverQuestionId != null && Object.hasOwnProperty.call(m, "serverQuestionId"))
|
|
3778
|
+
w.uint32(8).int32(m.serverQuestionId);
|
|
3779
|
+
if (m.quotedQuestion != null && Object.hasOwnProperty.call(m, "quotedQuestion"))
|
|
3780
|
+
$root.proto.Message.encode(m.quotedQuestion, w.uint32(18).fork()).ldelim();
|
|
3781
|
+
if (m.quotedResponse != null && Object.hasOwnProperty.call(m, "quotedResponse"))
|
|
3782
|
+
$root.proto.Message.encode(m.quotedResponse, w.uint32(26).fork()).ldelim();
|
|
3783
|
+
return w;
|
|
3784
|
+
};
|
|
3785
|
+
QuestionReplyQuotedMessage.decode = function decode(r, l, e, n) {
|
|
3786
|
+
if (!(r instanceof $Reader))
|
|
3787
|
+
r = $Reader.create(r);
|
|
3788
|
+
if (n === undefined)
|
|
3789
|
+
n = 0;
|
|
3790
|
+
if (n > $Reader.recursionLimit)
|
|
3791
|
+
throw Error("maximum nesting depth exceeded");
|
|
3792
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.QuestionReplyQuotedMessage();
|
|
3793
|
+
while (r.pos < c) {
|
|
3794
|
+
var t = r.uint32();
|
|
3795
|
+
if (t === e)
|
|
3796
|
+
break;
|
|
3797
|
+
switch (t >>> 3) {
|
|
3798
|
+
case 1: {
|
|
3799
|
+
m.serverQuestionId = r.int32();
|
|
3800
|
+
break;
|
|
3801
|
+
}
|
|
3802
|
+
case 2: {
|
|
3803
|
+
m.quotedQuestion = $root.proto.Message.decode(r, r.uint32(), undefined, n + 1);
|
|
3804
|
+
break;
|
|
3805
|
+
}
|
|
3806
|
+
case 3: {
|
|
3807
|
+
m.quotedResponse = $root.proto.Message.decode(r, r.uint32(), undefined, n + 1);
|
|
3808
|
+
break;
|
|
3809
|
+
}
|
|
3810
|
+
default:
|
|
3811
|
+
r.skipType(t & 7, n);
|
|
3812
|
+
break;
|
|
3813
|
+
}
|
|
3814
|
+
}
|
|
3815
|
+
return m;
|
|
3816
|
+
};
|
|
3817
|
+
QuestionReplyQuotedMessage.fromObject = function fromObject(d, n) {
|
|
3818
|
+
if (d instanceof $root.proto.ContextInfo.QuestionReplyQuotedMessage)
|
|
3819
|
+
return d;
|
|
3820
|
+
if (n === undefined)
|
|
3821
|
+
n = 0;
|
|
3822
|
+
if (n > $util.recursionLimit)
|
|
3823
|
+
throw Error("maximum nesting depth exceeded");
|
|
3824
|
+
var m = new $root.proto.ContextInfo.QuestionReplyQuotedMessage();
|
|
3825
|
+
if (d.serverQuestionId != null) {
|
|
3826
|
+
m.serverQuestionId = d.serverQuestionId | 0;
|
|
3827
|
+
}
|
|
3828
|
+
if (d.quotedQuestion != null) {
|
|
3829
|
+
if (typeof d.quotedQuestion !== "object")
|
|
3830
|
+
throw TypeError(".proto.ContextInfo.QuestionReplyQuotedMessage.quotedQuestion: object expected");
|
|
3831
|
+
m.quotedQuestion = $root.proto.Message.fromObject(d.quotedQuestion, n + 1);
|
|
3832
|
+
}
|
|
3833
|
+
if (d.quotedResponse != null) {
|
|
3834
|
+
if (typeof d.quotedResponse !== "object")
|
|
3835
|
+
throw TypeError(".proto.ContextInfo.QuestionReplyQuotedMessage.quotedResponse: object expected");
|
|
3836
|
+
m.quotedResponse = $root.proto.Message.fromObject(d.quotedResponse, n + 1);
|
|
3837
|
+
}
|
|
3838
|
+
return m;
|
|
3839
|
+
};
|
|
3840
|
+
QuestionReplyQuotedMessage.toObject = function toObject(m, o) {
|
|
3841
|
+
if (!o)
|
|
3842
|
+
o = {};
|
|
3843
|
+
var d = {};
|
|
3844
|
+
if (m.serverQuestionId != null && m.hasOwnProperty("serverQuestionId")) {
|
|
3845
|
+
d.serverQuestionId = m.serverQuestionId;
|
|
3846
|
+
if (o.oneofs)
|
|
3847
|
+
d._serverQuestionId = "serverQuestionId";
|
|
3848
|
+
}
|
|
3849
|
+
if (m.quotedQuestion != null && m.hasOwnProperty("quotedQuestion")) {
|
|
3850
|
+
d.quotedQuestion = $root.proto.Message.toObject(m.quotedQuestion, o);
|
|
3851
|
+
if (o.oneofs)
|
|
3852
|
+
d._quotedQuestion = "quotedQuestion";
|
|
3853
|
+
}
|
|
3854
|
+
if (m.quotedResponse != null && m.hasOwnProperty("quotedResponse")) {
|
|
3855
|
+
d.quotedResponse = $root.proto.Message.toObject(m.quotedResponse, o);
|
|
3856
|
+
if (o.oneofs)
|
|
3857
|
+
d._quotedResponse = "quotedResponse";
|
|
3858
|
+
}
|
|
3859
|
+
return d;
|
|
3860
|
+
};
|
|
3861
|
+
QuestionReplyQuotedMessage.prototype.toJSON = function toJSON() {
|
|
3862
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
3863
|
+
};
|
|
3864
|
+
QuestionReplyQuotedMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
3865
|
+
if (typeUrlPrefix === undefined) {
|
|
3866
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
3867
|
+
}
|
|
3868
|
+
return typeUrlPrefix + "/proto.ContextInfo.QuestionReplyQuotedMessage";
|
|
3869
|
+
};
|
|
3870
|
+
return QuestionReplyQuotedMessage;
|
|
3871
|
+
});
|
|
3872
|
+
$lazy(ContextInfo, "QuotedType", function() {
|
|
3873
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3874
|
+
values[valuesById[0] = "EXPLICIT"] = 0;
|
|
3875
|
+
values[valuesById[1] = "AUTO"] = 1;
|
|
3876
|
+
return values;
|
|
3877
|
+
});
|
|
3878
|
+
$lazy(ContextInfo, "StatusAttributionType", function() {
|
|
3879
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
3880
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
3881
|
+
values[valuesById[1] = "RESHARED_FROM_MENTION"] = 1;
|
|
3882
|
+
values[valuesById[2] = "RESHARED_FROM_POST"] = 2;
|
|
3883
|
+
values[valuesById[3] = "RESHARED_FROM_POST_MANY_TIMES"] = 3;
|
|
3884
|
+
values[valuesById[4] = "FORWARDED_FROM_STATUS"] = 4;
|
|
3885
|
+
return values;
|
|
3886
|
+
});
|
|
3887
|
+
$lazy(ContextInfo, "StatusAudienceMetadata", function() {
|
|
3888
|
+
function StatusAudienceMetadata(p) {
|
|
3889
|
+
if (p)
|
|
3890
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
3891
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
3892
|
+
this[ks[i]] = p[ks[i]];
|
|
3893
|
+
}
|
|
3894
|
+
StatusAudienceMetadata.prototype.audienceType = null;
|
|
3895
|
+
StatusAudienceMetadata.prototype.listName = null;
|
|
3896
|
+
StatusAudienceMetadata.prototype.listEmoji = null;
|
|
3897
|
+
let $oneOfFields;
|
|
3898
|
+
Object.defineProperty(StatusAudienceMetadata.prototype, "_audienceType", {
|
|
3899
|
+
get: $util.oneOfGetter($oneOfFields = ["audienceType"]),
|
|
3900
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3901
|
+
});
|
|
3902
|
+
Object.defineProperty(StatusAudienceMetadata.prototype, "_listName", {
|
|
3903
|
+
get: $util.oneOfGetter($oneOfFields = ["listName"]),
|
|
3904
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3905
|
+
});
|
|
3906
|
+
Object.defineProperty(StatusAudienceMetadata.prototype, "_listEmoji", {
|
|
3907
|
+
get: $util.oneOfGetter($oneOfFields = ["listEmoji"]),
|
|
3908
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
3909
|
+
});
|
|
3910
|
+
StatusAudienceMetadata.create = function create(properties) {
|
|
3911
|
+
return new StatusAudienceMetadata(properties);
|
|
3912
|
+
};
|
|
3913
|
+
StatusAudienceMetadata.encode = function encode(m, w) {
|
|
3914
|
+
if (!w)
|
|
3915
|
+
w = $Writer.create();
|
|
3916
|
+
if (m.audienceType != null && Object.hasOwnProperty.call(m, "audienceType"))
|
|
3917
|
+
w.uint32(8).int32(m.audienceType);
|
|
3918
|
+
if (m.listName != null && Object.hasOwnProperty.call(m, "listName"))
|
|
3919
|
+
w.uint32(18).string(m.listName);
|
|
3920
|
+
if (m.listEmoji != null && Object.hasOwnProperty.call(m, "listEmoji"))
|
|
3921
|
+
w.uint32(26).string(m.listEmoji);
|
|
3922
|
+
return w;
|
|
3923
|
+
};
|
|
3924
|
+
StatusAudienceMetadata.decode = function decode(r, l, e, n) {
|
|
3925
|
+
if (!(r instanceof $Reader))
|
|
3926
|
+
r = $Reader.create(r);
|
|
3927
|
+
if (n === undefined)
|
|
3928
|
+
n = 0;
|
|
3929
|
+
if (n > $Reader.recursionLimit)
|
|
3930
|
+
throw Error("maximum nesting depth exceeded");
|
|
3931
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.StatusAudienceMetadata();
|
|
3932
|
+
while (r.pos < c) {
|
|
3933
|
+
var t = r.uint32();
|
|
3934
|
+
if (t === e)
|
|
3935
|
+
break;
|
|
3936
|
+
switch (t >>> 3) {
|
|
3937
|
+
case 1: {
|
|
3938
|
+
m.audienceType = r.int32();
|
|
3939
|
+
break;
|
|
3940
|
+
}
|
|
3941
|
+
case 2: {
|
|
3942
|
+
m.listName = r.string();
|
|
3943
|
+
break;
|
|
3944
|
+
}
|
|
3945
|
+
case 3: {
|
|
3946
|
+
m.listEmoji = r.string();
|
|
3947
|
+
break;
|
|
3948
|
+
}
|
|
3949
|
+
default:
|
|
3950
|
+
r.skipType(t & 7, n);
|
|
3951
|
+
break;
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3954
|
+
return m;
|
|
3955
|
+
};
|
|
3956
|
+
StatusAudienceMetadata.fromObject = function fromObject(d, n) {
|
|
3957
|
+
if (d instanceof $root.proto.ContextInfo.StatusAudienceMetadata)
|
|
3958
|
+
return d;
|
|
3959
|
+
if (n === undefined)
|
|
3960
|
+
n = 0;
|
|
3961
|
+
if (n > $util.recursionLimit)
|
|
3962
|
+
throw Error("maximum nesting depth exceeded");
|
|
3963
|
+
var m = new $root.proto.ContextInfo.StatusAudienceMetadata();
|
|
3964
|
+
switch (d.audienceType) {
|
|
3965
|
+
default:
|
|
3966
|
+
if (typeof d.audienceType === "number") {
|
|
3967
|
+
m.audienceType = d.audienceType;
|
|
3968
|
+
break;
|
|
3969
|
+
}
|
|
3970
|
+
break;
|
|
3971
|
+
case "UNKNOWN":
|
|
3972
|
+
case 0:
|
|
3973
|
+
m.audienceType = 0;
|
|
3974
|
+
break;
|
|
3975
|
+
case "CLOSE_FRIENDS":
|
|
3976
|
+
case 1:
|
|
3977
|
+
m.audienceType = 1;
|
|
3978
|
+
break;
|
|
3979
|
+
}
|
|
3980
|
+
if (d.listName != null) {
|
|
3981
|
+
m.listName = String(d.listName);
|
|
3982
|
+
}
|
|
3983
|
+
if (d.listEmoji != null) {
|
|
3984
|
+
m.listEmoji = String(d.listEmoji);
|
|
3985
|
+
}
|
|
3986
|
+
return m;
|
|
3987
|
+
};
|
|
3988
|
+
StatusAudienceMetadata.toObject = function toObject(m, o) {
|
|
3989
|
+
if (!o)
|
|
3990
|
+
o = {};
|
|
3991
|
+
var d = {};
|
|
3992
|
+
if (m.audienceType != null && m.hasOwnProperty("audienceType")) {
|
|
3993
|
+
d.audienceType = o.enums === String ? $root.proto.ContextInfo.StatusAudienceMetadata.AudienceType[m.audienceType] === undefined ? m.audienceType : $root.proto.ContextInfo.StatusAudienceMetadata.AudienceType[m.audienceType] : m.audienceType;
|
|
3994
|
+
if (o.oneofs)
|
|
3995
|
+
d._audienceType = "audienceType";
|
|
3996
|
+
}
|
|
3997
|
+
if (m.listName != null && m.hasOwnProperty("listName")) {
|
|
3998
|
+
d.listName = m.listName;
|
|
3999
|
+
if (o.oneofs)
|
|
4000
|
+
d._listName = "listName";
|
|
4001
|
+
}
|
|
4002
|
+
if (m.listEmoji != null && m.hasOwnProperty("listEmoji")) {
|
|
4003
|
+
d.listEmoji = m.listEmoji;
|
|
4004
|
+
if (o.oneofs)
|
|
4005
|
+
d._listEmoji = "listEmoji";
|
|
4006
|
+
}
|
|
4007
|
+
return d;
|
|
4008
|
+
};
|
|
4009
|
+
StatusAudienceMetadata.prototype.toJSON = function toJSON() {
|
|
4010
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4011
|
+
};
|
|
4012
|
+
StatusAudienceMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
4013
|
+
if (typeUrlPrefix === undefined) {
|
|
4014
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
4015
|
+
}
|
|
4016
|
+
return typeUrlPrefix + "/proto.ContextInfo.StatusAudienceMetadata";
|
|
4017
|
+
};
|
|
4018
|
+
$lazy(StatusAudienceMetadata, "AudienceType", function() {
|
|
4019
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
4020
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
4021
|
+
values[valuesById[1] = "CLOSE_FRIENDS"] = 1;
|
|
4022
|
+
return values;
|
|
4023
|
+
});
|
|
4024
|
+
return StatusAudienceMetadata;
|
|
4025
|
+
});
|
|
4026
|
+
$lazy(ContextInfo, "StatusSourceType", function() {
|
|
4027
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
4028
|
+
values[valuesById[0] = "IMAGE"] = 0;
|
|
4029
|
+
values[valuesById[1] = "VIDEO"] = 1;
|
|
4030
|
+
values[valuesById[2] = "GIF"] = 2;
|
|
4031
|
+
values[valuesById[3] = "AUDIO"] = 3;
|
|
4032
|
+
values[valuesById[4] = "TEXT"] = 4;
|
|
4033
|
+
values[valuesById[5] = "MUSIC_STANDALONE"] = 5;
|
|
4034
|
+
return values;
|
|
4035
|
+
});
|
|
4036
|
+
$lazy(ContextInfo, "UTMInfo", function() {
|
|
4037
|
+
function UTMInfo(p) {
|
|
4038
|
+
if (p)
|
|
4039
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
4040
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
4041
|
+
this[ks[i]] = p[ks[i]];
|
|
4042
|
+
}
|
|
4043
|
+
UTMInfo.prototype.utmSource = null;
|
|
4044
|
+
UTMInfo.prototype.utmCampaign = null;
|
|
4045
|
+
let $oneOfFields;
|
|
4046
|
+
Object.defineProperty(UTMInfo.prototype, "_utmSource", {
|
|
4047
|
+
get: $util.oneOfGetter($oneOfFields = ["utmSource"]),
|
|
4048
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4049
|
+
});
|
|
4050
|
+
Object.defineProperty(UTMInfo.prototype, "_utmCampaign", {
|
|
4051
|
+
get: $util.oneOfGetter($oneOfFields = ["utmCampaign"]),
|
|
4052
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
4053
|
+
});
|
|
4054
|
+
UTMInfo.create = function create(properties) {
|
|
4055
|
+
return new UTMInfo(properties);
|
|
4056
|
+
};
|
|
4057
|
+
UTMInfo.encode = function encode(m, w) {
|
|
4058
|
+
if (!w)
|
|
4059
|
+
w = $Writer.create();
|
|
4060
|
+
if (m.utmSource != null && Object.hasOwnProperty.call(m, "utmSource"))
|
|
4061
|
+
w.uint32(10).string(m.utmSource);
|
|
4062
|
+
if (m.utmCampaign != null && Object.hasOwnProperty.call(m, "utmCampaign"))
|
|
4063
|
+
w.uint32(18).string(m.utmCampaign);
|
|
4064
|
+
return w;
|
|
4065
|
+
};
|
|
4066
|
+
UTMInfo.decode = function decode(r, l, e, n) {
|
|
4067
|
+
if (!(r instanceof $Reader))
|
|
4068
|
+
r = $Reader.create(r);
|
|
4069
|
+
if (n === undefined)
|
|
4070
|
+
n = 0;
|
|
4071
|
+
if (n > $Reader.recursionLimit)
|
|
4072
|
+
throw Error("maximum nesting depth exceeded");
|
|
4073
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.ContextInfo.UTMInfo();
|
|
4074
|
+
while (r.pos < c) {
|
|
4075
|
+
var t = r.uint32();
|
|
4076
|
+
if (t === e)
|
|
4077
|
+
break;
|
|
4078
|
+
switch (t >>> 3) {
|
|
4079
|
+
case 1: {
|
|
4080
|
+
m.utmSource = r.string();
|
|
4081
|
+
break;
|
|
4082
|
+
}
|
|
4083
|
+
case 2: {
|
|
4084
|
+
m.utmCampaign = r.string();
|
|
4085
|
+
break;
|
|
4086
|
+
}
|
|
4087
|
+
default:
|
|
4088
|
+
r.skipType(t & 7, n);
|
|
4089
|
+
break;
|
|
4090
|
+
}
|
|
4091
|
+
}
|
|
4092
|
+
return m;
|
|
4093
|
+
};
|
|
4094
|
+
UTMInfo.fromObject = function fromObject(d, n) {
|
|
4095
|
+
if (d instanceof $root.proto.ContextInfo.UTMInfo)
|
|
4096
|
+
return d;
|
|
4097
|
+
if (n === undefined)
|
|
4098
|
+
n = 0;
|
|
4099
|
+
if (n > $util.recursionLimit)
|
|
4100
|
+
throw Error("maximum nesting depth exceeded");
|
|
4101
|
+
var m = new $root.proto.ContextInfo.UTMInfo();
|
|
4102
|
+
if (d.utmSource != null) {
|
|
4103
|
+
m.utmSource = String(d.utmSource);
|
|
4104
|
+
}
|
|
4105
|
+
if (d.utmCampaign != null) {
|
|
4106
|
+
m.utmCampaign = String(d.utmCampaign);
|
|
4107
|
+
}
|
|
4108
|
+
return m;
|
|
4109
|
+
};
|
|
4110
|
+
UTMInfo.toObject = function toObject(m, o) {
|
|
4111
|
+
if (!o)
|
|
4112
|
+
o = {};
|
|
4113
|
+
var d = {};
|
|
4114
|
+
if (m.utmSource != null && m.hasOwnProperty("utmSource")) {
|
|
4115
|
+
d.utmSource = m.utmSource;
|
|
4116
|
+
if (o.oneofs)
|
|
4117
|
+
d._utmSource = "utmSource";
|
|
4118
|
+
}
|
|
4119
|
+
if (m.utmCampaign != null && m.hasOwnProperty("utmCampaign")) {
|
|
4120
|
+
d.utmCampaign = m.utmCampaign;
|
|
4121
|
+
if (o.oneofs)
|
|
4122
|
+
d._utmCampaign = "utmCampaign";
|
|
4123
|
+
}
|
|
4124
|
+
return d;
|
|
4125
|
+
};
|
|
4126
|
+
UTMInfo.prototype.toJSON = function toJSON() {
|
|
4127
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
4128
|
+
};
|
|
4129
|
+
UTMInfo.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
4130
|
+
if (typeUrlPrefix === undefined) {
|
|
4131
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
4132
|
+
}
|
|
4133
|
+
return typeUrlPrefix + "/proto.ContextInfo.UTMInfo";
|
|
4134
|
+
};
|
|
4135
|
+
return UTMInfo;
|
|
4136
|
+
});
|
|
4137
|
+
return ContextInfo;
|