@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,1366 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function BotFeedbackMessage(p) {
|
|
3
|
+
if (p)
|
|
4
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
5
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
6
|
+
this[ks[i]] = p[ks[i]];
|
|
7
|
+
}
|
|
8
|
+
BotFeedbackMessage.prototype.messageKey = null;
|
|
9
|
+
BotFeedbackMessage.prototype.kind = null;
|
|
10
|
+
BotFeedbackMessage.prototype.text = null;
|
|
11
|
+
BotFeedbackMessage.prototype.kindNegative = null;
|
|
12
|
+
BotFeedbackMessage.prototype.kindPositive = null;
|
|
13
|
+
BotFeedbackMessage.prototype.kindReport = null;
|
|
14
|
+
BotFeedbackMessage.prototype.sideBySideSurveyMetadata = null;
|
|
15
|
+
let $oneOfFields;
|
|
16
|
+
Object.defineProperty(BotFeedbackMessage.prototype, "_messageKey", {
|
|
17
|
+
get: $util.oneOfGetter($oneOfFields = ["messageKey"]),
|
|
18
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(BotFeedbackMessage.prototype, "_kind", {
|
|
21
|
+
get: $util.oneOfGetter($oneOfFields = ["kind"]),
|
|
22
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23
|
+
});
|
|
24
|
+
Object.defineProperty(BotFeedbackMessage.prototype, "_text", {
|
|
25
|
+
get: $util.oneOfGetter($oneOfFields = ["text"]),
|
|
26
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(BotFeedbackMessage.prototype, "_kindNegative", {
|
|
29
|
+
get: $util.oneOfGetter($oneOfFields = ["kindNegative"]),
|
|
30
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
31
|
+
});
|
|
32
|
+
Object.defineProperty(BotFeedbackMessage.prototype, "_kindPositive", {
|
|
33
|
+
get: $util.oneOfGetter($oneOfFields = ["kindPositive"]),
|
|
34
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
35
|
+
});
|
|
36
|
+
Object.defineProperty(BotFeedbackMessage.prototype, "_kindReport", {
|
|
37
|
+
get: $util.oneOfGetter($oneOfFields = ["kindReport"]),
|
|
38
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(BotFeedbackMessage.prototype, "_sideBySideSurveyMetadata", {
|
|
41
|
+
get: $util.oneOfGetter($oneOfFields = ["sideBySideSurveyMetadata"]),
|
|
42
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
43
|
+
});
|
|
44
|
+
BotFeedbackMessage.create = function create(properties) {
|
|
45
|
+
return new BotFeedbackMessage(properties);
|
|
46
|
+
};
|
|
47
|
+
BotFeedbackMessage.encode = function encode(m, w) {
|
|
48
|
+
if (!w)
|
|
49
|
+
w = $Writer.create();
|
|
50
|
+
if (m.messageKey != null && Object.hasOwnProperty.call(m, "messageKey"))
|
|
51
|
+
$root.proto.MessageKey.encode(m.messageKey, w.uint32(10).fork()).ldelim();
|
|
52
|
+
if (m.kind != null && Object.hasOwnProperty.call(m, "kind"))
|
|
53
|
+
w.uint32(16).int32(m.kind);
|
|
54
|
+
if (m.text != null && Object.hasOwnProperty.call(m, "text"))
|
|
55
|
+
w.uint32(26).string(m.text);
|
|
56
|
+
if (m.kindNegative != null && Object.hasOwnProperty.call(m, "kindNegative"))
|
|
57
|
+
w.uint32(32).uint64(m.kindNegative);
|
|
58
|
+
if (m.kindPositive != null && Object.hasOwnProperty.call(m, "kindPositive"))
|
|
59
|
+
w.uint32(40).uint64(m.kindPositive);
|
|
60
|
+
if (m.kindReport != null && Object.hasOwnProperty.call(m, "kindReport"))
|
|
61
|
+
w.uint32(48).int32(m.kindReport);
|
|
62
|
+
if (m.sideBySideSurveyMetadata != null && Object.hasOwnProperty.call(m, "sideBySideSurveyMetadata"))
|
|
63
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.encode(m.sideBySideSurveyMetadata, w.uint32(58).fork()).ldelim();
|
|
64
|
+
return w;
|
|
65
|
+
};
|
|
66
|
+
BotFeedbackMessage.decode = function decode(r, l, e, n) {
|
|
67
|
+
if (!(r instanceof $Reader))
|
|
68
|
+
r = $Reader.create(r);
|
|
69
|
+
if (n === undefined)
|
|
70
|
+
n = 0;
|
|
71
|
+
if (n > $Reader.recursionLimit)
|
|
72
|
+
throw Error("maximum nesting depth exceeded");
|
|
73
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage();
|
|
74
|
+
while (r.pos < c) {
|
|
75
|
+
var t = r.uint32();
|
|
76
|
+
if (t === e)
|
|
77
|
+
break;
|
|
78
|
+
switch (t >>> 3) {
|
|
79
|
+
case 1: {
|
|
80
|
+
m.messageKey = $root.proto.MessageKey.decode(r, r.uint32(), undefined, n + 1);
|
|
81
|
+
break;
|
|
82
|
+
}
|
|
83
|
+
case 2: {
|
|
84
|
+
m.kind = r.int32();
|
|
85
|
+
break;
|
|
86
|
+
}
|
|
87
|
+
case 3: {
|
|
88
|
+
m.text = r.string();
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
case 4: {
|
|
92
|
+
m.kindNegative = r.uint64();
|
|
93
|
+
break;
|
|
94
|
+
}
|
|
95
|
+
case 5: {
|
|
96
|
+
m.kindPositive = r.uint64();
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
case 6: {
|
|
100
|
+
m.kindReport = r.int32();
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
case 7: {
|
|
104
|
+
m.sideBySideSurveyMetadata = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.decode(r, r.uint32(), undefined, n + 1);
|
|
105
|
+
break;
|
|
106
|
+
}
|
|
107
|
+
default:
|
|
108
|
+
r.skipType(t & 7, n);
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return m;
|
|
113
|
+
};
|
|
114
|
+
BotFeedbackMessage.fromObject = function fromObject(d, n) {
|
|
115
|
+
if (d instanceof $root.proto.BotFeedbackMessage)
|
|
116
|
+
return d;
|
|
117
|
+
if (n === undefined)
|
|
118
|
+
n = 0;
|
|
119
|
+
if (n > $util.recursionLimit)
|
|
120
|
+
throw Error("maximum nesting depth exceeded");
|
|
121
|
+
var m = new $root.proto.BotFeedbackMessage();
|
|
122
|
+
if (d.messageKey != null) {
|
|
123
|
+
if (typeof d.messageKey !== "object")
|
|
124
|
+
throw TypeError(".proto.BotFeedbackMessage.messageKey: object expected");
|
|
125
|
+
m.messageKey = $root.proto.MessageKey.fromObject(d.messageKey, n + 1);
|
|
126
|
+
}
|
|
127
|
+
switch (d.kind) {
|
|
128
|
+
default:
|
|
129
|
+
if (typeof d.kind === "number") {
|
|
130
|
+
m.kind = d.kind;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
break;
|
|
134
|
+
case "BOT_FEEDBACK_POSITIVE":
|
|
135
|
+
case 0:
|
|
136
|
+
m.kind = 0;
|
|
137
|
+
break;
|
|
138
|
+
case "BOT_FEEDBACK_NEGATIVE_GENERIC":
|
|
139
|
+
case 1:
|
|
140
|
+
m.kind = 1;
|
|
141
|
+
break;
|
|
142
|
+
case "BOT_FEEDBACK_NEGATIVE_HELPFUL":
|
|
143
|
+
case 2:
|
|
144
|
+
m.kind = 2;
|
|
145
|
+
break;
|
|
146
|
+
case "BOT_FEEDBACK_NEGATIVE_INTERESTING":
|
|
147
|
+
case 3:
|
|
148
|
+
m.kind = 3;
|
|
149
|
+
break;
|
|
150
|
+
case "BOT_FEEDBACK_NEGATIVE_ACCURATE":
|
|
151
|
+
case 4:
|
|
152
|
+
m.kind = 4;
|
|
153
|
+
break;
|
|
154
|
+
case "BOT_FEEDBACK_NEGATIVE_SAFE":
|
|
155
|
+
case 5:
|
|
156
|
+
m.kind = 5;
|
|
157
|
+
break;
|
|
158
|
+
case "BOT_FEEDBACK_NEGATIVE_OTHER":
|
|
159
|
+
case 6:
|
|
160
|
+
m.kind = 6;
|
|
161
|
+
break;
|
|
162
|
+
case "BOT_FEEDBACK_NEGATIVE_REFUSED":
|
|
163
|
+
case 7:
|
|
164
|
+
m.kind = 7;
|
|
165
|
+
break;
|
|
166
|
+
case "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING":
|
|
167
|
+
case 8:
|
|
168
|
+
m.kind = 8;
|
|
169
|
+
break;
|
|
170
|
+
case "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT":
|
|
171
|
+
case 9:
|
|
172
|
+
m.kind = 9;
|
|
173
|
+
break;
|
|
174
|
+
case "BOT_FEEDBACK_NEGATIVE_PERSONALIZED":
|
|
175
|
+
case 10:
|
|
176
|
+
m.kind = 10;
|
|
177
|
+
break;
|
|
178
|
+
case "BOT_FEEDBACK_NEGATIVE_CLARITY":
|
|
179
|
+
case 11:
|
|
180
|
+
m.kind = 11;
|
|
181
|
+
break;
|
|
182
|
+
case "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON":
|
|
183
|
+
case 12:
|
|
184
|
+
m.kind = 12;
|
|
185
|
+
break;
|
|
186
|
+
case "BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY":
|
|
187
|
+
case 13:
|
|
188
|
+
m.kind = 13;
|
|
189
|
+
break;
|
|
190
|
+
case "BOT_FEEDBACK_NEGATIVE":
|
|
191
|
+
case 14:
|
|
192
|
+
m.kind = 14;
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
if (d.text != null) {
|
|
196
|
+
m.text = String(d.text);
|
|
197
|
+
}
|
|
198
|
+
if (d.kindNegative != null) {
|
|
199
|
+
if ($util.Long)
|
|
200
|
+
(m.kindNegative = $util.Long.fromValue(d.kindNegative)).unsigned = true;
|
|
201
|
+
else if (typeof d.kindNegative === "string")
|
|
202
|
+
m.kindNegative = parseInt(d.kindNegative, 10);
|
|
203
|
+
else if (typeof d.kindNegative === "number")
|
|
204
|
+
m.kindNegative = d.kindNegative;
|
|
205
|
+
else if (typeof d.kindNegative === "object")
|
|
206
|
+
m.kindNegative = new $util.LongBits(d.kindNegative.low >>> 0, d.kindNegative.high >>> 0).toNumber(true);
|
|
207
|
+
}
|
|
208
|
+
if (d.kindPositive != null) {
|
|
209
|
+
if ($util.Long)
|
|
210
|
+
(m.kindPositive = $util.Long.fromValue(d.kindPositive)).unsigned = true;
|
|
211
|
+
else if (typeof d.kindPositive === "string")
|
|
212
|
+
m.kindPositive = parseInt(d.kindPositive, 10);
|
|
213
|
+
else if (typeof d.kindPositive === "number")
|
|
214
|
+
m.kindPositive = d.kindPositive;
|
|
215
|
+
else if (typeof d.kindPositive === "object")
|
|
216
|
+
m.kindPositive = new $util.LongBits(d.kindPositive.low >>> 0, d.kindPositive.high >>> 0).toNumber(true);
|
|
217
|
+
}
|
|
218
|
+
switch (d.kindReport) {
|
|
219
|
+
default:
|
|
220
|
+
if (typeof d.kindReport === "number") {
|
|
221
|
+
m.kindReport = d.kindReport;
|
|
222
|
+
break;
|
|
223
|
+
}
|
|
224
|
+
break;
|
|
225
|
+
case "NONE":
|
|
226
|
+
case 0:
|
|
227
|
+
m.kindReport = 0;
|
|
228
|
+
break;
|
|
229
|
+
case "GENERIC":
|
|
230
|
+
case 1:
|
|
231
|
+
m.kindReport = 1;
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
if (d.sideBySideSurveyMetadata != null) {
|
|
235
|
+
if (typeof d.sideBySideSurveyMetadata !== "object")
|
|
236
|
+
throw TypeError(".proto.BotFeedbackMessage.sideBySideSurveyMetadata: object expected");
|
|
237
|
+
m.sideBySideSurveyMetadata = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.fromObject(d.sideBySideSurveyMetadata, n + 1);
|
|
238
|
+
}
|
|
239
|
+
return m;
|
|
240
|
+
};
|
|
241
|
+
BotFeedbackMessage.toObject = function toObject(m, o) {
|
|
242
|
+
if (!o)
|
|
243
|
+
o = {};
|
|
244
|
+
var d = {};
|
|
245
|
+
if (m.messageKey != null && m.hasOwnProperty("messageKey")) {
|
|
246
|
+
d.messageKey = $root.proto.MessageKey.toObject(m.messageKey, o);
|
|
247
|
+
if (o.oneofs)
|
|
248
|
+
d._messageKey = "messageKey";
|
|
249
|
+
}
|
|
250
|
+
if (m.kind != null && m.hasOwnProperty("kind")) {
|
|
251
|
+
d.kind = o.enums === String ? $root.proto.BotFeedbackMessage.BotFeedbackKind[m.kind] === undefined ? m.kind : $root.proto.BotFeedbackMessage.BotFeedbackKind[m.kind] : m.kind;
|
|
252
|
+
if (o.oneofs)
|
|
253
|
+
d._kind = "kind";
|
|
254
|
+
}
|
|
255
|
+
if (m.text != null && m.hasOwnProperty("text")) {
|
|
256
|
+
d.text = m.text;
|
|
257
|
+
if (o.oneofs)
|
|
258
|
+
d._text = "text";
|
|
259
|
+
}
|
|
260
|
+
if (m.kindNegative != null && m.hasOwnProperty("kindNegative")) {
|
|
261
|
+
if (typeof m.kindNegative === "number")
|
|
262
|
+
d.kindNegative = o.longs === String ? String(m.kindNegative) : m.kindNegative;
|
|
263
|
+
else
|
|
264
|
+
d.kindNegative = o.longs === String ? longToString(m.kindNegative, true) : o.longs === Number ? longToNumber(m.kindNegative, true) : m.kindNegative;
|
|
265
|
+
if (o.oneofs)
|
|
266
|
+
d._kindNegative = "kindNegative";
|
|
267
|
+
}
|
|
268
|
+
if (m.kindPositive != null && m.hasOwnProperty("kindPositive")) {
|
|
269
|
+
if (typeof m.kindPositive === "number")
|
|
270
|
+
d.kindPositive = o.longs === String ? String(m.kindPositive) : m.kindPositive;
|
|
271
|
+
else
|
|
272
|
+
d.kindPositive = o.longs === String ? longToString(m.kindPositive, true) : o.longs === Number ? longToNumber(m.kindPositive, true) : m.kindPositive;
|
|
273
|
+
if (o.oneofs)
|
|
274
|
+
d._kindPositive = "kindPositive";
|
|
275
|
+
}
|
|
276
|
+
if (m.kindReport != null && m.hasOwnProperty("kindReport")) {
|
|
277
|
+
d.kindReport = o.enums === String ? $root.proto.BotFeedbackMessage.ReportKind[m.kindReport] === undefined ? m.kindReport : $root.proto.BotFeedbackMessage.ReportKind[m.kindReport] : m.kindReport;
|
|
278
|
+
if (o.oneofs)
|
|
279
|
+
d._kindReport = "kindReport";
|
|
280
|
+
}
|
|
281
|
+
if (m.sideBySideSurveyMetadata != null && m.hasOwnProperty("sideBySideSurveyMetadata")) {
|
|
282
|
+
d.sideBySideSurveyMetadata = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.toObject(m.sideBySideSurveyMetadata, o);
|
|
283
|
+
if (o.oneofs)
|
|
284
|
+
d._sideBySideSurveyMetadata = "sideBySideSurveyMetadata";
|
|
285
|
+
}
|
|
286
|
+
return d;
|
|
287
|
+
};
|
|
288
|
+
BotFeedbackMessage.prototype.toJSON = function toJSON() {
|
|
289
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
290
|
+
};
|
|
291
|
+
BotFeedbackMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
292
|
+
if (typeUrlPrefix === undefined) {
|
|
293
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
294
|
+
}
|
|
295
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage";
|
|
296
|
+
};
|
|
297
|
+
$lazy(BotFeedbackMessage, "BotFeedbackKind", function() {
|
|
298
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
299
|
+
values[valuesById[0] = "BOT_FEEDBACK_POSITIVE"] = 0;
|
|
300
|
+
values[valuesById[1] = "BOT_FEEDBACK_NEGATIVE_GENERIC"] = 1;
|
|
301
|
+
values[valuesById[2] = "BOT_FEEDBACK_NEGATIVE_HELPFUL"] = 2;
|
|
302
|
+
values[valuesById[3] = "BOT_FEEDBACK_NEGATIVE_INTERESTING"] = 3;
|
|
303
|
+
values[valuesById[4] = "BOT_FEEDBACK_NEGATIVE_ACCURATE"] = 4;
|
|
304
|
+
values[valuesById[5] = "BOT_FEEDBACK_NEGATIVE_SAFE"] = 5;
|
|
305
|
+
values[valuesById[6] = "BOT_FEEDBACK_NEGATIVE_OTHER"] = 6;
|
|
306
|
+
values[valuesById[7] = "BOT_FEEDBACK_NEGATIVE_REFUSED"] = 7;
|
|
307
|
+
values[valuesById[8] = "BOT_FEEDBACK_NEGATIVE_NOT_VISUALLY_APPEALING"] = 8;
|
|
308
|
+
values[valuesById[9] = "BOT_FEEDBACK_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 9;
|
|
309
|
+
values[valuesById[10] = "BOT_FEEDBACK_NEGATIVE_PERSONALIZED"] = 10;
|
|
310
|
+
values[valuesById[11] = "BOT_FEEDBACK_NEGATIVE_CLARITY"] = 11;
|
|
311
|
+
values[valuesById[12] = "BOT_FEEDBACK_NEGATIVE_DOESNT_LOOK_LIKE_THE_PERSON"] = 12;
|
|
312
|
+
values[valuesById[13] = "BOT_FEEDBACK_NEGATIVE_HALLUCINATION_INTERNAL_ONLY"] = 13;
|
|
313
|
+
values[valuesById[14] = "BOT_FEEDBACK_NEGATIVE"] = 14;
|
|
314
|
+
return values;
|
|
315
|
+
});
|
|
316
|
+
$lazy(BotFeedbackMessage, "BotFeedbackKindMultipleNegative", function() {
|
|
317
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
318
|
+
values[valuesById[1] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_GENERIC"] = 1;
|
|
319
|
+
values[valuesById[2] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_HELPFUL"] = 2;
|
|
320
|
+
values[valuesById[4] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_INTERESTING"] = 4;
|
|
321
|
+
values[valuesById[8] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_ACCURATE"] = 8;
|
|
322
|
+
values[valuesById[16] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_SAFE"] = 16;
|
|
323
|
+
values[valuesById[32] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_OTHER"] = 32;
|
|
324
|
+
values[valuesById[64] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_REFUSED"] = 64;
|
|
325
|
+
values[valuesById[128] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_VISUALLY_APPEALING"] = 128;
|
|
326
|
+
values[valuesById[256] = "BOT_FEEDBACK_MULTIPLE_NEGATIVE_NOT_RELEVANT_TO_TEXT"] = 256;
|
|
327
|
+
return values;
|
|
328
|
+
});
|
|
329
|
+
$lazy(BotFeedbackMessage, "BotFeedbackKindMultiplePositive", function() {
|
|
330
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
331
|
+
values[valuesById[1] = "BOT_FEEDBACK_MULTIPLE_POSITIVE_GENERIC"] = 1;
|
|
332
|
+
return values;
|
|
333
|
+
});
|
|
334
|
+
$lazy(BotFeedbackMessage, "ReportKind", function() {
|
|
335
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
336
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
337
|
+
values[valuesById[1] = "GENERIC"] = 1;
|
|
338
|
+
return values;
|
|
339
|
+
});
|
|
340
|
+
$lazy(BotFeedbackMessage, "SideBySideSurveyMetadata", function() {
|
|
341
|
+
function SideBySideSurveyMetadata(p) {
|
|
342
|
+
if (p)
|
|
343
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
344
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
345
|
+
this[ks[i]] = p[ks[i]];
|
|
346
|
+
}
|
|
347
|
+
SideBySideSurveyMetadata.prototype.selectedRequestId = null;
|
|
348
|
+
SideBySideSurveyMetadata.prototype.surveyId = null;
|
|
349
|
+
SideBySideSurveyMetadata.prototype.simonSessionFbid = null;
|
|
350
|
+
SideBySideSurveyMetadata.prototype.responseOtid = null;
|
|
351
|
+
SideBySideSurveyMetadata.prototype.responseTimestampMsString = null;
|
|
352
|
+
SideBySideSurveyMetadata.prototype.isSelectedResponsePrimary = null;
|
|
353
|
+
SideBySideSurveyMetadata.prototype.messageIdToEdit = null;
|
|
354
|
+
SideBySideSurveyMetadata.prototype.analyticsData = null;
|
|
355
|
+
SideBySideSurveyMetadata.prototype.metaAiAnalyticsData = null;
|
|
356
|
+
let $oneOfFields;
|
|
357
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_selectedRequestId", {
|
|
358
|
+
get: $util.oneOfGetter($oneOfFields = ["selectedRequestId"]),
|
|
359
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
360
|
+
});
|
|
361
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_surveyId", {
|
|
362
|
+
get: $util.oneOfGetter($oneOfFields = ["surveyId"]),
|
|
363
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
364
|
+
});
|
|
365
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_simonSessionFbid", {
|
|
366
|
+
get: $util.oneOfGetter($oneOfFields = ["simonSessionFbid"]),
|
|
367
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
368
|
+
});
|
|
369
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_responseOtid", {
|
|
370
|
+
get: $util.oneOfGetter($oneOfFields = ["responseOtid"]),
|
|
371
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
372
|
+
});
|
|
373
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_responseTimestampMsString", {
|
|
374
|
+
get: $util.oneOfGetter($oneOfFields = ["responseTimestampMsString"]),
|
|
375
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
376
|
+
});
|
|
377
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_isSelectedResponsePrimary", {
|
|
378
|
+
get: $util.oneOfGetter($oneOfFields = ["isSelectedResponsePrimary"]),
|
|
379
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
380
|
+
});
|
|
381
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_messageIdToEdit", {
|
|
382
|
+
get: $util.oneOfGetter($oneOfFields = ["messageIdToEdit"]),
|
|
383
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
384
|
+
});
|
|
385
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_analyticsData", {
|
|
386
|
+
get: $util.oneOfGetter($oneOfFields = ["analyticsData"]),
|
|
387
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
388
|
+
});
|
|
389
|
+
Object.defineProperty(SideBySideSurveyMetadata.prototype, "_metaAiAnalyticsData", {
|
|
390
|
+
get: $util.oneOfGetter($oneOfFields = ["metaAiAnalyticsData"]),
|
|
391
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
392
|
+
});
|
|
393
|
+
SideBySideSurveyMetadata.create = function create(properties) {
|
|
394
|
+
return new SideBySideSurveyMetadata(properties);
|
|
395
|
+
};
|
|
396
|
+
SideBySideSurveyMetadata.encode = function encode(m, w) {
|
|
397
|
+
if (!w)
|
|
398
|
+
w = $Writer.create();
|
|
399
|
+
if (m.selectedRequestId != null && Object.hasOwnProperty.call(m, "selectedRequestId"))
|
|
400
|
+
w.uint32(10).string(m.selectedRequestId);
|
|
401
|
+
if (m.surveyId != null && Object.hasOwnProperty.call(m, "surveyId"))
|
|
402
|
+
w.uint32(16).uint32(m.surveyId);
|
|
403
|
+
if (m.simonSessionFbid != null && Object.hasOwnProperty.call(m, "simonSessionFbid"))
|
|
404
|
+
w.uint32(26).string(m.simonSessionFbid);
|
|
405
|
+
if (m.responseOtid != null && Object.hasOwnProperty.call(m, "responseOtid"))
|
|
406
|
+
w.uint32(34).string(m.responseOtid);
|
|
407
|
+
if (m.responseTimestampMsString != null && Object.hasOwnProperty.call(m, "responseTimestampMsString"))
|
|
408
|
+
w.uint32(42).string(m.responseTimestampMsString);
|
|
409
|
+
if (m.isSelectedResponsePrimary != null && Object.hasOwnProperty.call(m, "isSelectedResponsePrimary"))
|
|
410
|
+
w.uint32(48).bool(m.isSelectedResponsePrimary);
|
|
411
|
+
if (m.messageIdToEdit != null && Object.hasOwnProperty.call(m, "messageIdToEdit"))
|
|
412
|
+
w.uint32(58).string(m.messageIdToEdit);
|
|
413
|
+
if (m.analyticsData != null && Object.hasOwnProperty.call(m, "analyticsData"))
|
|
414
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.encode(m.analyticsData, w.uint32(66).fork()).ldelim();
|
|
415
|
+
if (m.metaAiAnalyticsData != null && Object.hasOwnProperty.call(m, "metaAiAnalyticsData"))
|
|
416
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.encode(m.metaAiAnalyticsData, w.uint32(74).fork()).ldelim();
|
|
417
|
+
return w;
|
|
418
|
+
};
|
|
419
|
+
SideBySideSurveyMetadata.decode = function decode(r, l, e, n) {
|
|
420
|
+
if (!(r instanceof $Reader))
|
|
421
|
+
r = $Reader.create(r);
|
|
422
|
+
if (n === undefined)
|
|
423
|
+
n = 0;
|
|
424
|
+
if (n > $Reader.recursionLimit)
|
|
425
|
+
throw Error("maximum nesting depth exceeded");
|
|
426
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata();
|
|
427
|
+
while (r.pos < c) {
|
|
428
|
+
var t = r.uint32();
|
|
429
|
+
if (t === e)
|
|
430
|
+
break;
|
|
431
|
+
switch (t >>> 3) {
|
|
432
|
+
case 1: {
|
|
433
|
+
m.selectedRequestId = r.string();
|
|
434
|
+
break;
|
|
435
|
+
}
|
|
436
|
+
case 2: {
|
|
437
|
+
m.surveyId = r.uint32();
|
|
438
|
+
break;
|
|
439
|
+
}
|
|
440
|
+
case 3: {
|
|
441
|
+
m.simonSessionFbid = r.string();
|
|
442
|
+
break;
|
|
443
|
+
}
|
|
444
|
+
case 4: {
|
|
445
|
+
m.responseOtid = r.string();
|
|
446
|
+
break;
|
|
447
|
+
}
|
|
448
|
+
case 5: {
|
|
449
|
+
m.responseTimestampMsString = r.string();
|
|
450
|
+
break;
|
|
451
|
+
}
|
|
452
|
+
case 6: {
|
|
453
|
+
m.isSelectedResponsePrimary = r.bool();
|
|
454
|
+
break;
|
|
455
|
+
}
|
|
456
|
+
case 7: {
|
|
457
|
+
m.messageIdToEdit = r.string();
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
case 8: {
|
|
461
|
+
m.analyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.decode(r, r.uint32(), undefined, n + 1);
|
|
462
|
+
break;
|
|
463
|
+
}
|
|
464
|
+
case 9: {
|
|
465
|
+
m.metaAiAnalyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.decode(r, r.uint32(), undefined, n + 1);
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
default:
|
|
469
|
+
r.skipType(t & 7, n);
|
|
470
|
+
break;
|
|
471
|
+
}
|
|
472
|
+
}
|
|
473
|
+
return m;
|
|
474
|
+
};
|
|
475
|
+
SideBySideSurveyMetadata.fromObject = function fromObject(d, n) {
|
|
476
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata)
|
|
477
|
+
return d;
|
|
478
|
+
if (n === undefined)
|
|
479
|
+
n = 0;
|
|
480
|
+
if (n > $util.recursionLimit)
|
|
481
|
+
throw Error("maximum nesting depth exceeded");
|
|
482
|
+
var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata();
|
|
483
|
+
if (d.selectedRequestId != null) {
|
|
484
|
+
m.selectedRequestId = String(d.selectedRequestId);
|
|
485
|
+
}
|
|
486
|
+
if (d.surveyId != null) {
|
|
487
|
+
m.surveyId = d.surveyId >>> 0;
|
|
488
|
+
}
|
|
489
|
+
if (d.simonSessionFbid != null) {
|
|
490
|
+
m.simonSessionFbid = String(d.simonSessionFbid);
|
|
491
|
+
}
|
|
492
|
+
if (d.responseOtid != null) {
|
|
493
|
+
m.responseOtid = String(d.responseOtid);
|
|
494
|
+
}
|
|
495
|
+
if (d.responseTimestampMsString != null) {
|
|
496
|
+
m.responseTimestampMsString = String(d.responseTimestampMsString);
|
|
497
|
+
}
|
|
498
|
+
if (d.isSelectedResponsePrimary != null) {
|
|
499
|
+
m.isSelectedResponsePrimary = Boolean(d.isSelectedResponsePrimary);
|
|
500
|
+
}
|
|
501
|
+
if (d.messageIdToEdit != null) {
|
|
502
|
+
m.messageIdToEdit = String(d.messageIdToEdit);
|
|
503
|
+
}
|
|
504
|
+
if (d.analyticsData != null) {
|
|
505
|
+
if (typeof d.analyticsData !== "object")
|
|
506
|
+
throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.analyticsData: object expected");
|
|
507
|
+
m.analyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.fromObject(d.analyticsData, n + 1);
|
|
508
|
+
}
|
|
509
|
+
if (d.metaAiAnalyticsData != null) {
|
|
510
|
+
if (typeof d.metaAiAnalyticsData !== "object")
|
|
511
|
+
throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.metaAiAnalyticsData: object expected");
|
|
512
|
+
m.metaAiAnalyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.fromObject(d.metaAiAnalyticsData, n + 1);
|
|
513
|
+
}
|
|
514
|
+
return m;
|
|
515
|
+
};
|
|
516
|
+
SideBySideSurveyMetadata.toObject = function toObject(m, o) {
|
|
517
|
+
if (!o)
|
|
518
|
+
o = {};
|
|
519
|
+
var d = {};
|
|
520
|
+
if (m.selectedRequestId != null && m.hasOwnProperty("selectedRequestId")) {
|
|
521
|
+
d.selectedRequestId = m.selectedRequestId;
|
|
522
|
+
if (o.oneofs)
|
|
523
|
+
d._selectedRequestId = "selectedRequestId";
|
|
524
|
+
}
|
|
525
|
+
if (m.surveyId != null && m.hasOwnProperty("surveyId")) {
|
|
526
|
+
d.surveyId = m.surveyId;
|
|
527
|
+
if (o.oneofs)
|
|
528
|
+
d._surveyId = "surveyId";
|
|
529
|
+
}
|
|
530
|
+
if (m.simonSessionFbid != null && m.hasOwnProperty("simonSessionFbid")) {
|
|
531
|
+
d.simonSessionFbid = m.simonSessionFbid;
|
|
532
|
+
if (o.oneofs)
|
|
533
|
+
d._simonSessionFbid = "simonSessionFbid";
|
|
534
|
+
}
|
|
535
|
+
if (m.responseOtid != null && m.hasOwnProperty("responseOtid")) {
|
|
536
|
+
d.responseOtid = m.responseOtid;
|
|
537
|
+
if (o.oneofs)
|
|
538
|
+
d._responseOtid = "responseOtid";
|
|
539
|
+
}
|
|
540
|
+
if (m.responseTimestampMsString != null && m.hasOwnProperty("responseTimestampMsString")) {
|
|
541
|
+
d.responseTimestampMsString = m.responseTimestampMsString;
|
|
542
|
+
if (o.oneofs)
|
|
543
|
+
d._responseTimestampMsString = "responseTimestampMsString";
|
|
544
|
+
}
|
|
545
|
+
if (m.isSelectedResponsePrimary != null && m.hasOwnProperty("isSelectedResponsePrimary")) {
|
|
546
|
+
d.isSelectedResponsePrimary = m.isSelectedResponsePrimary;
|
|
547
|
+
if (o.oneofs)
|
|
548
|
+
d._isSelectedResponsePrimary = "isSelectedResponsePrimary";
|
|
549
|
+
}
|
|
550
|
+
if (m.messageIdToEdit != null && m.hasOwnProperty("messageIdToEdit")) {
|
|
551
|
+
d.messageIdToEdit = m.messageIdToEdit;
|
|
552
|
+
if (o.oneofs)
|
|
553
|
+
d._messageIdToEdit = "messageIdToEdit";
|
|
554
|
+
}
|
|
555
|
+
if (m.analyticsData != null && m.hasOwnProperty("analyticsData")) {
|
|
556
|
+
d.analyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData.toObject(m.analyticsData, o);
|
|
557
|
+
if (o.oneofs)
|
|
558
|
+
d._analyticsData = "analyticsData";
|
|
559
|
+
}
|
|
560
|
+
if (m.metaAiAnalyticsData != null && m.hasOwnProperty("metaAiAnalyticsData")) {
|
|
561
|
+
d.metaAiAnalyticsData = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.toObject(m.metaAiAnalyticsData, o);
|
|
562
|
+
if (o.oneofs)
|
|
563
|
+
d._metaAiAnalyticsData = "metaAiAnalyticsData";
|
|
564
|
+
}
|
|
565
|
+
return d;
|
|
566
|
+
};
|
|
567
|
+
SideBySideSurveyMetadata.prototype.toJSON = function toJSON() {
|
|
568
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
569
|
+
};
|
|
570
|
+
SideBySideSurveyMetadata.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
571
|
+
if (typeUrlPrefix === undefined) {
|
|
572
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
573
|
+
}
|
|
574
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata";
|
|
575
|
+
};
|
|
576
|
+
$lazy(SideBySideSurveyMetadata, "SideBySideSurveyAnalyticsData", function() {
|
|
577
|
+
function SideBySideSurveyAnalyticsData(p) {
|
|
578
|
+
if (p)
|
|
579
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
580
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
581
|
+
this[ks[i]] = p[ks[i]];
|
|
582
|
+
}
|
|
583
|
+
SideBySideSurveyAnalyticsData.prototype.tessaEvent = null;
|
|
584
|
+
SideBySideSurveyAnalyticsData.prototype.tessaSessionFbid = null;
|
|
585
|
+
SideBySideSurveyAnalyticsData.prototype.simonSessionFbid = null;
|
|
586
|
+
let $oneOfFields;
|
|
587
|
+
Object.defineProperty(SideBySideSurveyAnalyticsData.prototype, "_tessaEvent", {
|
|
588
|
+
get: $util.oneOfGetter($oneOfFields = ["tessaEvent"]),
|
|
589
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
590
|
+
});
|
|
591
|
+
Object.defineProperty(SideBySideSurveyAnalyticsData.prototype, "_tessaSessionFbid", {
|
|
592
|
+
get: $util.oneOfGetter($oneOfFields = ["tessaSessionFbid"]),
|
|
593
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
594
|
+
});
|
|
595
|
+
Object.defineProperty(SideBySideSurveyAnalyticsData.prototype, "_simonSessionFbid", {
|
|
596
|
+
get: $util.oneOfGetter($oneOfFields = ["simonSessionFbid"]),
|
|
597
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
598
|
+
});
|
|
599
|
+
SideBySideSurveyAnalyticsData.create = function create(properties) {
|
|
600
|
+
return new SideBySideSurveyAnalyticsData(properties);
|
|
601
|
+
};
|
|
602
|
+
SideBySideSurveyAnalyticsData.encode = function encode(m, w) {
|
|
603
|
+
if (!w)
|
|
604
|
+
w = $Writer.create();
|
|
605
|
+
if (m.tessaEvent != null && Object.hasOwnProperty.call(m, "tessaEvent"))
|
|
606
|
+
w.uint32(10).string(m.tessaEvent);
|
|
607
|
+
if (m.tessaSessionFbid != null && Object.hasOwnProperty.call(m, "tessaSessionFbid"))
|
|
608
|
+
w.uint32(18).string(m.tessaSessionFbid);
|
|
609
|
+
if (m.simonSessionFbid != null && Object.hasOwnProperty.call(m, "simonSessionFbid"))
|
|
610
|
+
w.uint32(26).string(m.simonSessionFbid);
|
|
611
|
+
return w;
|
|
612
|
+
};
|
|
613
|
+
SideBySideSurveyAnalyticsData.decode = function decode(r, l, e, n) {
|
|
614
|
+
if (!(r instanceof $Reader))
|
|
615
|
+
r = $Reader.create(r);
|
|
616
|
+
if (n === undefined)
|
|
617
|
+
n = 0;
|
|
618
|
+
if (n > $Reader.recursionLimit)
|
|
619
|
+
throw Error("maximum nesting depth exceeded");
|
|
620
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData();
|
|
621
|
+
while (r.pos < c) {
|
|
622
|
+
var t = r.uint32();
|
|
623
|
+
if (t === e)
|
|
624
|
+
break;
|
|
625
|
+
switch (t >>> 3) {
|
|
626
|
+
case 1: {
|
|
627
|
+
m.tessaEvent = r.string();
|
|
628
|
+
break;
|
|
629
|
+
}
|
|
630
|
+
case 2: {
|
|
631
|
+
m.tessaSessionFbid = r.string();
|
|
632
|
+
break;
|
|
633
|
+
}
|
|
634
|
+
case 3: {
|
|
635
|
+
m.simonSessionFbid = r.string();
|
|
636
|
+
break;
|
|
637
|
+
}
|
|
638
|
+
default:
|
|
639
|
+
r.skipType(t & 7, n);
|
|
640
|
+
break;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
return m;
|
|
644
|
+
};
|
|
645
|
+
SideBySideSurveyAnalyticsData.fromObject = function fromObject(d, n) {
|
|
646
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData)
|
|
647
|
+
return d;
|
|
648
|
+
if (n === undefined)
|
|
649
|
+
n = 0;
|
|
650
|
+
if (n > $util.recursionLimit)
|
|
651
|
+
throw Error("maximum nesting depth exceeded");
|
|
652
|
+
var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData();
|
|
653
|
+
if (d.tessaEvent != null) {
|
|
654
|
+
m.tessaEvent = String(d.tessaEvent);
|
|
655
|
+
}
|
|
656
|
+
if (d.tessaSessionFbid != null) {
|
|
657
|
+
m.tessaSessionFbid = String(d.tessaSessionFbid);
|
|
658
|
+
}
|
|
659
|
+
if (d.simonSessionFbid != null) {
|
|
660
|
+
m.simonSessionFbid = String(d.simonSessionFbid);
|
|
661
|
+
}
|
|
662
|
+
return m;
|
|
663
|
+
};
|
|
664
|
+
SideBySideSurveyAnalyticsData.toObject = function toObject(m, o) {
|
|
665
|
+
if (!o)
|
|
666
|
+
o = {};
|
|
667
|
+
var d = {};
|
|
668
|
+
if (m.tessaEvent != null && m.hasOwnProperty("tessaEvent")) {
|
|
669
|
+
d.tessaEvent = m.tessaEvent;
|
|
670
|
+
if (o.oneofs)
|
|
671
|
+
d._tessaEvent = "tessaEvent";
|
|
672
|
+
}
|
|
673
|
+
if (m.tessaSessionFbid != null && m.hasOwnProperty("tessaSessionFbid")) {
|
|
674
|
+
d.tessaSessionFbid = m.tessaSessionFbid;
|
|
675
|
+
if (o.oneofs)
|
|
676
|
+
d._tessaSessionFbid = "tessaSessionFbid";
|
|
677
|
+
}
|
|
678
|
+
if (m.simonSessionFbid != null && m.hasOwnProperty("simonSessionFbid")) {
|
|
679
|
+
d.simonSessionFbid = m.simonSessionFbid;
|
|
680
|
+
if (o.oneofs)
|
|
681
|
+
d._simonSessionFbid = "simonSessionFbid";
|
|
682
|
+
}
|
|
683
|
+
return d;
|
|
684
|
+
};
|
|
685
|
+
SideBySideSurveyAnalyticsData.prototype.toJSON = function toJSON() {
|
|
686
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
687
|
+
};
|
|
688
|
+
SideBySideSurveyAnalyticsData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
689
|
+
if (typeUrlPrefix === undefined) {
|
|
690
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
691
|
+
}
|
|
692
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SideBySideSurveyAnalyticsData";
|
|
693
|
+
};
|
|
694
|
+
return SideBySideSurveyAnalyticsData;
|
|
695
|
+
});
|
|
696
|
+
$lazy(SideBySideSurveyMetadata, "SidebySideSurveyMetaAiAnalyticsData", function() {
|
|
697
|
+
function SidebySideSurveyMetaAiAnalyticsData(p) {
|
|
698
|
+
if (p)
|
|
699
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
700
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
701
|
+
this[ks[i]] = p[ks[i]];
|
|
702
|
+
}
|
|
703
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.surveyId = null;
|
|
704
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.primaryResponseId = null;
|
|
705
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.testArmName = null;
|
|
706
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.timestampMsString = null;
|
|
707
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.ctaImpressionEvent = null;
|
|
708
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.ctaClickEvent = null;
|
|
709
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.cardImpressionEvent = null;
|
|
710
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.responseEvent = null;
|
|
711
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.abandonEvent = null;
|
|
712
|
+
let $oneOfFields;
|
|
713
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_surveyId", {
|
|
714
|
+
get: $util.oneOfGetter($oneOfFields = ["surveyId"]),
|
|
715
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
716
|
+
});
|
|
717
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_primaryResponseId", {
|
|
718
|
+
get: $util.oneOfGetter($oneOfFields = ["primaryResponseId"]),
|
|
719
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
720
|
+
});
|
|
721
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_testArmName", {
|
|
722
|
+
get: $util.oneOfGetter($oneOfFields = ["testArmName"]),
|
|
723
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
724
|
+
});
|
|
725
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_timestampMsString", {
|
|
726
|
+
get: $util.oneOfGetter($oneOfFields = ["timestampMsString"]),
|
|
727
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
728
|
+
});
|
|
729
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_ctaImpressionEvent", {
|
|
730
|
+
get: $util.oneOfGetter($oneOfFields = ["ctaImpressionEvent"]),
|
|
731
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
732
|
+
});
|
|
733
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_ctaClickEvent", {
|
|
734
|
+
get: $util.oneOfGetter($oneOfFields = ["ctaClickEvent"]),
|
|
735
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
736
|
+
});
|
|
737
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_cardImpressionEvent", {
|
|
738
|
+
get: $util.oneOfGetter($oneOfFields = ["cardImpressionEvent"]),
|
|
739
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
740
|
+
});
|
|
741
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_responseEvent", {
|
|
742
|
+
get: $util.oneOfGetter($oneOfFields = ["responseEvent"]),
|
|
743
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
744
|
+
});
|
|
745
|
+
Object.defineProperty(SidebySideSurveyMetaAiAnalyticsData.prototype, "_abandonEvent", {
|
|
746
|
+
get: $util.oneOfGetter($oneOfFields = ["abandonEvent"]),
|
|
747
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
748
|
+
});
|
|
749
|
+
SidebySideSurveyMetaAiAnalyticsData.create = function create(properties) {
|
|
750
|
+
return new SidebySideSurveyMetaAiAnalyticsData(properties);
|
|
751
|
+
};
|
|
752
|
+
SidebySideSurveyMetaAiAnalyticsData.encode = function encode(m, w) {
|
|
753
|
+
if (!w)
|
|
754
|
+
w = $Writer.create();
|
|
755
|
+
if (m.surveyId != null && Object.hasOwnProperty.call(m, "surveyId"))
|
|
756
|
+
w.uint32(8).uint32(m.surveyId);
|
|
757
|
+
if (m.primaryResponseId != null && Object.hasOwnProperty.call(m, "primaryResponseId"))
|
|
758
|
+
w.uint32(18).string(m.primaryResponseId);
|
|
759
|
+
if (m.testArmName != null && Object.hasOwnProperty.call(m, "testArmName"))
|
|
760
|
+
w.uint32(26).string(m.testArmName);
|
|
761
|
+
if (m.timestampMsString != null && Object.hasOwnProperty.call(m, "timestampMsString"))
|
|
762
|
+
w.uint32(34).string(m.timestampMsString);
|
|
763
|
+
if (m.ctaImpressionEvent != null && Object.hasOwnProperty.call(m, "ctaImpressionEvent"))
|
|
764
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.encode(m.ctaImpressionEvent, w.uint32(42).fork()).ldelim();
|
|
765
|
+
if (m.ctaClickEvent != null && Object.hasOwnProperty.call(m, "ctaClickEvent"))
|
|
766
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.encode(m.ctaClickEvent, w.uint32(50).fork()).ldelim();
|
|
767
|
+
if (m.cardImpressionEvent != null && Object.hasOwnProperty.call(m, "cardImpressionEvent"))
|
|
768
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.encode(m.cardImpressionEvent, w.uint32(58).fork()).ldelim();
|
|
769
|
+
if (m.responseEvent != null && Object.hasOwnProperty.call(m, "responseEvent"))
|
|
770
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.encode(m.responseEvent, w.uint32(66).fork()).ldelim();
|
|
771
|
+
if (m.abandonEvent != null && Object.hasOwnProperty.call(m, "abandonEvent"))
|
|
772
|
+
$root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.encode(m.abandonEvent, w.uint32(74).fork()).ldelim();
|
|
773
|
+
return w;
|
|
774
|
+
};
|
|
775
|
+
SidebySideSurveyMetaAiAnalyticsData.decode = function decode(r, l, e, n) {
|
|
776
|
+
if (!(r instanceof $Reader))
|
|
777
|
+
r = $Reader.create(r);
|
|
778
|
+
if (n === undefined)
|
|
779
|
+
n = 0;
|
|
780
|
+
if (n > $Reader.recursionLimit)
|
|
781
|
+
throw Error("maximum nesting depth exceeded");
|
|
782
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData();
|
|
783
|
+
while (r.pos < c) {
|
|
784
|
+
var t = r.uint32();
|
|
785
|
+
if (t === e)
|
|
786
|
+
break;
|
|
787
|
+
switch (t >>> 3) {
|
|
788
|
+
case 1: {
|
|
789
|
+
m.surveyId = r.uint32();
|
|
790
|
+
break;
|
|
791
|
+
}
|
|
792
|
+
case 2: {
|
|
793
|
+
m.primaryResponseId = r.string();
|
|
794
|
+
break;
|
|
795
|
+
}
|
|
796
|
+
case 3: {
|
|
797
|
+
m.testArmName = r.string();
|
|
798
|
+
break;
|
|
799
|
+
}
|
|
800
|
+
case 4: {
|
|
801
|
+
m.timestampMsString = r.string();
|
|
802
|
+
break;
|
|
803
|
+
}
|
|
804
|
+
case 5: {
|
|
805
|
+
m.ctaImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.decode(r, r.uint32(), undefined, n + 1);
|
|
806
|
+
break;
|
|
807
|
+
}
|
|
808
|
+
case 6: {
|
|
809
|
+
m.ctaClickEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.decode(r, r.uint32(), undefined, n + 1);
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
case 7: {
|
|
813
|
+
m.cardImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.decode(r, r.uint32(), undefined, n + 1);
|
|
814
|
+
break;
|
|
815
|
+
}
|
|
816
|
+
case 8: {
|
|
817
|
+
m.responseEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.decode(r, r.uint32(), undefined, n + 1);
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
case 9: {
|
|
821
|
+
m.abandonEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.decode(r, r.uint32(), undefined, n + 1);
|
|
822
|
+
break;
|
|
823
|
+
}
|
|
824
|
+
default:
|
|
825
|
+
r.skipType(t & 7, n);
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
}
|
|
829
|
+
return m;
|
|
830
|
+
};
|
|
831
|
+
SidebySideSurveyMetaAiAnalyticsData.fromObject = function fromObject(d, n) {
|
|
832
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData)
|
|
833
|
+
return d;
|
|
834
|
+
if (n === undefined)
|
|
835
|
+
n = 0;
|
|
836
|
+
if (n > $util.recursionLimit)
|
|
837
|
+
throw Error("maximum nesting depth exceeded");
|
|
838
|
+
var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData();
|
|
839
|
+
if (d.surveyId != null) {
|
|
840
|
+
m.surveyId = d.surveyId >>> 0;
|
|
841
|
+
}
|
|
842
|
+
if (d.primaryResponseId != null) {
|
|
843
|
+
m.primaryResponseId = String(d.primaryResponseId);
|
|
844
|
+
}
|
|
845
|
+
if (d.testArmName != null) {
|
|
846
|
+
m.testArmName = String(d.testArmName);
|
|
847
|
+
}
|
|
848
|
+
if (d.timestampMsString != null) {
|
|
849
|
+
m.timestampMsString = String(d.timestampMsString);
|
|
850
|
+
}
|
|
851
|
+
if (d.ctaImpressionEvent != null) {
|
|
852
|
+
if (typeof d.ctaImpressionEvent !== "object")
|
|
853
|
+
throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ctaImpressionEvent: object expected");
|
|
854
|
+
m.ctaImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.fromObject(d.ctaImpressionEvent, n + 1);
|
|
855
|
+
}
|
|
856
|
+
if (d.ctaClickEvent != null) {
|
|
857
|
+
if (typeof d.ctaClickEvent !== "object")
|
|
858
|
+
throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.ctaClickEvent: object expected");
|
|
859
|
+
m.ctaClickEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.fromObject(d.ctaClickEvent, n + 1);
|
|
860
|
+
}
|
|
861
|
+
if (d.cardImpressionEvent != null) {
|
|
862
|
+
if (typeof d.cardImpressionEvent !== "object")
|
|
863
|
+
throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.cardImpressionEvent: object expected");
|
|
864
|
+
m.cardImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.fromObject(d.cardImpressionEvent, n + 1);
|
|
865
|
+
}
|
|
866
|
+
if (d.responseEvent != null) {
|
|
867
|
+
if (typeof d.responseEvent !== "object")
|
|
868
|
+
throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.responseEvent: object expected");
|
|
869
|
+
m.responseEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.fromObject(d.responseEvent, n + 1);
|
|
870
|
+
}
|
|
871
|
+
if (d.abandonEvent != null) {
|
|
872
|
+
if (typeof d.abandonEvent !== "object")
|
|
873
|
+
throw TypeError(".proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.abandonEvent: object expected");
|
|
874
|
+
m.abandonEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.fromObject(d.abandonEvent, n + 1);
|
|
875
|
+
}
|
|
876
|
+
return m;
|
|
877
|
+
};
|
|
878
|
+
SidebySideSurveyMetaAiAnalyticsData.toObject = function toObject(m, o) {
|
|
879
|
+
if (!o)
|
|
880
|
+
o = {};
|
|
881
|
+
var d = {};
|
|
882
|
+
if (m.surveyId != null && m.hasOwnProperty("surveyId")) {
|
|
883
|
+
d.surveyId = m.surveyId;
|
|
884
|
+
if (o.oneofs)
|
|
885
|
+
d._surveyId = "surveyId";
|
|
886
|
+
}
|
|
887
|
+
if (m.primaryResponseId != null && m.hasOwnProperty("primaryResponseId")) {
|
|
888
|
+
d.primaryResponseId = m.primaryResponseId;
|
|
889
|
+
if (o.oneofs)
|
|
890
|
+
d._primaryResponseId = "primaryResponseId";
|
|
891
|
+
}
|
|
892
|
+
if (m.testArmName != null && m.hasOwnProperty("testArmName")) {
|
|
893
|
+
d.testArmName = m.testArmName;
|
|
894
|
+
if (o.oneofs)
|
|
895
|
+
d._testArmName = "testArmName";
|
|
896
|
+
}
|
|
897
|
+
if (m.timestampMsString != null && m.hasOwnProperty("timestampMsString")) {
|
|
898
|
+
d.timestampMsString = m.timestampMsString;
|
|
899
|
+
if (o.oneofs)
|
|
900
|
+
d._timestampMsString = "timestampMsString";
|
|
901
|
+
}
|
|
902
|
+
if (m.ctaImpressionEvent != null && m.hasOwnProperty("ctaImpressionEvent")) {
|
|
903
|
+
d.ctaImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData.toObject(m.ctaImpressionEvent, o);
|
|
904
|
+
if (o.oneofs)
|
|
905
|
+
d._ctaImpressionEvent = "ctaImpressionEvent";
|
|
906
|
+
}
|
|
907
|
+
if (m.ctaClickEvent != null && m.hasOwnProperty("ctaClickEvent")) {
|
|
908
|
+
d.ctaClickEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData.toObject(m.ctaClickEvent, o);
|
|
909
|
+
if (o.oneofs)
|
|
910
|
+
d._ctaClickEvent = "ctaClickEvent";
|
|
911
|
+
}
|
|
912
|
+
if (m.cardImpressionEvent != null && m.hasOwnProperty("cardImpressionEvent")) {
|
|
913
|
+
d.cardImpressionEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData.toObject(m.cardImpressionEvent, o);
|
|
914
|
+
if (o.oneofs)
|
|
915
|
+
d._cardImpressionEvent = "cardImpressionEvent";
|
|
916
|
+
}
|
|
917
|
+
if (m.responseEvent != null && m.hasOwnProperty("responseEvent")) {
|
|
918
|
+
d.responseEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData.toObject(m.responseEvent, o);
|
|
919
|
+
if (o.oneofs)
|
|
920
|
+
d._responseEvent = "responseEvent";
|
|
921
|
+
}
|
|
922
|
+
if (m.abandonEvent != null && m.hasOwnProperty("abandonEvent")) {
|
|
923
|
+
d.abandonEvent = $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData.toObject(m.abandonEvent, o);
|
|
924
|
+
if (o.oneofs)
|
|
925
|
+
d._abandonEvent = "abandonEvent";
|
|
926
|
+
}
|
|
927
|
+
return d;
|
|
928
|
+
};
|
|
929
|
+
SidebySideSurveyMetaAiAnalyticsData.prototype.toJSON = function toJSON() {
|
|
930
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
931
|
+
};
|
|
932
|
+
SidebySideSurveyMetaAiAnalyticsData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
933
|
+
if (typeUrlPrefix === undefined) {
|
|
934
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
935
|
+
}
|
|
936
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData";
|
|
937
|
+
};
|
|
938
|
+
$lazy(SidebySideSurveyMetaAiAnalyticsData, "SideBySideSurveyAbandonEventData", function() {
|
|
939
|
+
function SideBySideSurveyAbandonEventData(p) {
|
|
940
|
+
if (p)
|
|
941
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
942
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
943
|
+
this[ks[i]] = p[ks[i]];
|
|
944
|
+
}
|
|
945
|
+
SideBySideSurveyAbandonEventData.prototype.abandonDwellTimeMsString = null;
|
|
946
|
+
let $oneOfFields;
|
|
947
|
+
Object.defineProperty(SideBySideSurveyAbandonEventData.prototype, "_abandonDwellTimeMsString", {
|
|
948
|
+
get: $util.oneOfGetter($oneOfFields = ["abandonDwellTimeMsString"]),
|
|
949
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
950
|
+
});
|
|
951
|
+
SideBySideSurveyAbandonEventData.create = function create(properties) {
|
|
952
|
+
return new SideBySideSurveyAbandonEventData(properties);
|
|
953
|
+
};
|
|
954
|
+
SideBySideSurveyAbandonEventData.encode = function encode(m, w) {
|
|
955
|
+
if (!w)
|
|
956
|
+
w = $Writer.create();
|
|
957
|
+
if (m.abandonDwellTimeMsString != null && Object.hasOwnProperty.call(m, "abandonDwellTimeMsString"))
|
|
958
|
+
w.uint32(10).string(m.abandonDwellTimeMsString);
|
|
959
|
+
return w;
|
|
960
|
+
};
|
|
961
|
+
SideBySideSurveyAbandonEventData.decode = function decode(r, l, e, n) {
|
|
962
|
+
if (!(r instanceof $Reader))
|
|
963
|
+
r = $Reader.create(r);
|
|
964
|
+
if (n === undefined)
|
|
965
|
+
n = 0;
|
|
966
|
+
if (n > $Reader.recursionLimit)
|
|
967
|
+
throw Error("maximum nesting depth exceeded");
|
|
968
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData();
|
|
969
|
+
while (r.pos < c) {
|
|
970
|
+
var t = r.uint32();
|
|
971
|
+
if (t === e)
|
|
972
|
+
break;
|
|
973
|
+
switch (t >>> 3) {
|
|
974
|
+
case 1: {
|
|
975
|
+
m.abandonDwellTimeMsString = r.string();
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
default:
|
|
979
|
+
r.skipType(t & 7, n);
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
}
|
|
983
|
+
return m;
|
|
984
|
+
};
|
|
985
|
+
SideBySideSurveyAbandonEventData.fromObject = function fromObject(d, n) {
|
|
986
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData)
|
|
987
|
+
return d;
|
|
988
|
+
if (n === undefined)
|
|
989
|
+
n = 0;
|
|
990
|
+
if (n > $util.recursionLimit)
|
|
991
|
+
throw Error("maximum nesting depth exceeded");
|
|
992
|
+
var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData();
|
|
993
|
+
if (d.abandonDwellTimeMsString != null) {
|
|
994
|
+
m.abandonDwellTimeMsString = String(d.abandonDwellTimeMsString);
|
|
995
|
+
}
|
|
996
|
+
return m;
|
|
997
|
+
};
|
|
998
|
+
SideBySideSurveyAbandonEventData.toObject = function toObject(m, o) {
|
|
999
|
+
if (!o)
|
|
1000
|
+
o = {};
|
|
1001
|
+
var d = {};
|
|
1002
|
+
if (m.abandonDwellTimeMsString != null && m.hasOwnProperty("abandonDwellTimeMsString")) {
|
|
1003
|
+
d.abandonDwellTimeMsString = m.abandonDwellTimeMsString;
|
|
1004
|
+
if (o.oneofs)
|
|
1005
|
+
d._abandonDwellTimeMsString = "abandonDwellTimeMsString";
|
|
1006
|
+
}
|
|
1007
|
+
return d;
|
|
1008
|
+
};
|
|
1009
|
+
SideBySideSurveyAbandonEventData.prototype.toJSON = function toJSON() {
|
|
1010
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1011
|
+
};
|
|
1012
|
+
SideBySideSurveyAbandonEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1013
|
+
if (typeUrlPrefix === undefined) {
|
|
1014
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1015
|
+
}
|
|
1016
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyAbandonEventData";
|
|
1017
|
+
};
|
|
1018
|
+
return SideBySideSurveyAbandonEventData;
|
|
1019
|
+
});
|
|
1020
|
+
$lazy(SidebySideSurveyMetaAiAnalyticsData, "SideBySideSurveyCTAClickEventData", function() {
|
|
1021
|
+
function SideBySideSurveyCTAClickEventData(p) {
|
|
1022
|
+
if (p)
|
|
1023
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1024
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1025
|
+
this[ks[i]] = p[ks[i]];
|
|
1026
|
+
}
|
|
1027
|
+
SideBySideSurveyCTAClickEventData.prototype.isSurveyExpired = null;
|
|
1028
|
+
SideBySideSurveyCTAClickEventData.prototype.clickDwellTimeMsString = null;
|
|
1029
|
+
let $oneOfFields;
|
|
1030
|
+
Object.defineProperty(SideBySideSurveyCTAClickEventData.prototype, "_isSurveyExpired", {
|
|
1031
|
+
get: $util.oneOfGetter($oneOfFields = ["isSurveyExpired"]),
|
|
1032
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1033
|
+
});
|
|
1034
|
+
Object.defineProperty(SideBySideSurveyCTAClickEventData.prototype, "_clickDwellTimeMsString", {
|
|
1035
|
+
get: $util.oneOfGetter($oneOfFields = ["clickDwellTimeMsString"]),
|
|
1036
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1037
|
+
});
|
|
1038
|
+
SideBySideSurveyCTAClickEventData.create = function create(properties) {
|
|
1039
|
+
return new SideBySideSurveyCTAClickEventData(properties);
|
|
1040
|
+
};
|
|
1041
|
+
SideBySideSurveyCTAClickEventData.encode = function encode(m, w) {
|
|
1042
|
+
if (!w)
|
|
1043
|
+
w = $Writer.create();
|
|
1044
|
+
if (m.isSurveyExpired != null && Object.hasOwnProperty.call(m, "isSurveyExpired"))
|
|
1045
|
+
w.uint32(8).bool(m.isSurveyExpired);
|
|
1046
|
+
if (m.clickDwellTimeMsString != null && Object.hasOwnProperty.call(m, "clickDwellTimeMsString"))
|
|
1047
|
+
w.uint32(18).string(m.clickDwellTimeMsString);
|
|
1048
|
+
return w;
|
|
1049
|
+
};
|
|
1050
|
+
SideBySideSurveyCTAClickEventData.decode = function decode(r, l, e, n) {
|
|
1051
|
+
if (!(r instanceof $Reader))
|
|
1052
|
+
r = $Reader.create(r);
|
|
1053
|
+
if (n === undefined)
|
|
1054
|
+
n = 0;
|
|
1055
|
+
if (n > $Reader.recursionLimit)
|
|
1056
|
+
throw Error("maximum nesting depth exceeded");
|
|
1057
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData();
|
|
1058
|
+
while (r.pos < c) {
|
|
1059
|
+
var t = r.uint32();
|
|
1060
|
+
if (t === e)
|
|
1061
|
+
break;
|
|
1062
|
+
switch (t >>> 3) {
|
|
1063
|
+
case 1: {
|
|
1064
|
+
m.isSurveyExpired = r.bool();
|
|
1065
|
+
break;
|
|
1066
|
+
}
|
|
1067
|
+
case 2: {
|
|
1068
|
+
m.clickDwellTimeMsString = r.string();
|
|
1069
|
+
break;
|
|
1070
|
+
}
|
|
1071
|
+
default:
|
|
1072
|
+
r.skipType(t & 7, n);
|
|
1073
|
+
break;
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
return m;
|
|
1077
|
+
};
|
|
1078
|
+
SideBySideSurveyCTAClickEventData.fromObject = function fromObject(d, n) {
|
|
1079
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData)
|
|
1080
|
+
return d;
|
|
1081
|
+
if (n === undefined)
|
|
1082
|
+
n = 0;
|
|
1083
|
+
if (n > $util.recursionLimit)
|
|
1084
|
+
throw Error("maximum nesting depth exceeded");
|
|
1085
|
+
var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData();
|
|
1086
|
+
if (d.isSurveyExpired != null) {
|
|
1087
|
+
m.isSurveyExpired = Boolean(d.isSurveyExpired);
|
|
1088
|
+
}
|
|
1089
|
+
if (d.clickDwellTimeMsString != null) {
|
|
1090
|
+
m.clickDwellTimeMsString = String(d.clickDwellTimeMsString);
|
|
1091
|
+
}
|
|
1092
|
+
return m;
|
|
1093
|
+
};
|
|
1094
|
+
SideBySideSurveyCTAClickEventData.toObject = function toObject(m, o) {
|
|
1095
|
+
if (!o)
|
|
1096
|
+
o = {};
|
|
1097
|
+
var d = {};
|
|
1098
|
+
if (m.isSurveyExpired != null && m.hasOwnProperty("isSurveyExpired")) {
|
|
1099
|
+
d.isSurveyExpired = m.isSurveyExpired;
|
|
1100
|
+
if (o.oneofs)
|
|
1101
|
+
d._isSurveyExpired = "isSurveyExpired";
|
|
1102
|
+
}
|
|
1103
|
+
if (m.clickDwellTimeMsString != null && m.hasOwnProperty("clickDwellTimeMsString")) {
|
|
1104
|
+
d.clickDwellTimeMsString = m.clickDwellTimeMsString;
|
|
1105
|
+
if (o.oneofs)
|
|
1106
|
+
d._clickDwellTimeMsString = "clickDwellTimeMsString";
|
|
1107
|
+
}
|
|
1108
|
+
return d;
|
|
1109
|
+
};
|
|
1110
|
+
SideBySideSurveyCTAClickEventData.prototype.toJSON = function toJSON() {
|
|
1111
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1112
|
+
};
|
|
1113
|
+
SideBySideSurveyCTAClickEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1114
|
+
if (typeUrlPrefix === undefined) {
|
|
1115
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1116
|
+
}
|
|
1117
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAClickEventData";
|
|
1118
|
+
};
|
|
1119
|
+
return SideBySideSurveyCTAClickEventData;
|
|
1120
|
+
});
|
|
1121
|
+
$lazy(SidebySideSurveyMetaAiAnalyticsData, "SideBySideSurveyCTAImpressionEventData", function() {
|
|
1122
|
+
function SideBySideSurveyCTAImpressionEventData(p) {
|
|
1123
|
+
if (p)
|
|
1124
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1125
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1126
|
+
this[ks[i]] = p[ks[i]];
|
|
1127
|
+
}
|
|
1128
|
+
SideBySideSurveyCTAImpressionEventData.prototype.isSurveyExpired = null;
|
|
1129
|
+
let $oneOfFields;
|
|
1130
|
+
Object.defineProperty(SideBySideSurveyCTAImpressionEventData.prototype, "_isSurveyExpired", {
|
|
1131
|
+
get: $util.oneOfGetter($oneOfFields = ["isSurveyExpired"]),
|
|
1132
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1133
|
+
});
|
|
1134
|
+
SideBySideSurveyCTAImpressionEventData.create = function create(properties) {
|
|
1135
|
+
return new SideBySideSurveyCTAImpressionEventData(properties);
|
|
1136
|
+
};
|
|
1137
|
+
SideBySideSurveyCTAImpressionEventData.encode = function encode(m, w) {
|
|
1138
|
+
if (!w)
|
|
1139
|
+
w = $Writer.create();
|
|
1140
|
+
if (m.isSurveyExpired != null && Object.hasOwnProperty.call(m, "isSurveyExpired"))
|
|
1141
|
+
w.uint32(8).bool(m.isSurveyExpired);
|
|
1142
|
+
return w;
|
|
1143
|
+
};
|
|
1144
|
+
SideBySideSurveyCTAImpressionEventData.decode = function decode(r, l, e, n) {
|
|
1145
|
+
if (!(r instanceof $Reader))
|
|
1146
|
+
r = $Reader.create(r);
|
|
1147
|
+
if (n === undefined)
|
|
1148
|
+
n = 0;
|
|
1149
|
+
if (n > $Reader.recursionLimit)
|
|
1150
|
+
throw Error("maximum nesting depth exceeded");
|
|
1151
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData();
|
|
1152
|
+
while (r.pos < c) {
|
|
1153
|
+
var t = r.uint32();
|
|
1154
|
+
if (t === e)
|
|
1155
|
+
break;
|
|
1156
|
+
switch (t >>> 3) {
|
|
1157
|
+
case 1: {
|
|
1158
|
+
m.isSurveyExpired = r.bool();
|
|
1159
|
+
break;
|
|
1160
|
+
}
|
|
1161
|
+
default:
|
|
1162
|
+
r.skipType(t & 7, n);
|
|
1163
|
+
break;
|
|
1164
|
+
}
|
|
1165
|
+
}
|
|
1166
|
+
return m;
|
|
1167
|
+
};
|
|
1168
|
+
SideBySideSurveyCTAImpressionEventData.fromObject = function fromObject(d, n) {
|
|
1169
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData)
|
|
1170
|
+
return d;
|
|
1171
|
+
if (n === undefined)
|
|
1172
|
+
n = 0;
|
|
1173
|
+
if (n > $util.recursionLimit)
|
|
1174
|
+
throw Error("maximum nesting depth exceeded");
|
|
1175
|
+
var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData();
|
|
1176
|
+
if (d.isSurveyExpired != null) {
|
|
1177
|
+
m.isSurveyExpired = Boolean(d.isSurveyExpired);
|
|
1178
|
+
}
|
|
1179
|
+
return m;
|
|
1180
|
+
};
|
|
1181
|
+
SideBySideSurveyCTAImpressionEventData.toObject = function toObject(m, o) {
|
|
1182
|
+
if (!o)
|
|
1183
|
+
o = {};
|
|
1184
|
+
var d = {};
|
|
1185
|
+
if (m.isSurveyExpired != null && m.hasOwnProperty("isSurveyExpired")) {
|
|
1186
|
+
d.isSurveyExpired = m.isSurveyExpired;
|
|
1187
|
+
if (o.oneofs)
|
|
1188
|
+
d._isSurveyExpired = "isSurveyExpired";
|
|
1189
|
+
}
|
|
1190
|
+
return d;
|
|
1191
|
+
};
|
|
1192
|
+
SideBySideSurveyCTAImpressionEventData.prototype.toJSON = function toJSON() {
|
|
1193
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1194
|
+
};
|
|
1195
|
+
SideBySideSurveyCTAImpressionEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1196
|
+
if (typeUrlPrefix === undefined) {
|
|
1197
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1198
|
+
}
|
|
1199
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCTAImpressionEventData";
|
|
1200
|
+
};
|
|
1201
|
+
return SideBySideSurveyCTAImpressionEventData;
|
|
1202
|
+
});
|
|
1203
|
+
$lazy(SidebySideSurveyMetaAiAnalyticsData, "SideBySideSurveyCardImpressionEventData", function() {
|
|
1204
|
+
function SideBySideSurveyCardImpressionEventData(p) {
|
|
1205
|
+
if (p)
|
|
1206
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1207
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1208
|
+
this[ks[i]] = p[ks[i]];
|
|
1209
|
+
}
|
|
1210
|
+
SideBySideSurveyCardImpressionEventData.create = function create(properties) {
|
|
1211
|
+
return new SideBySideSurveyCardImpressionEventData(properties);
|
|
1212
|
+
};
|
|
1213
|
+
SideBySideSurveyCardImpressionEventData.encode = function encode(m, w) {
|
|
1214
|
+
if (!w)
|
|
1215
|
+
w = $Writer.create();
|
|
1216
|
+
return w;
|
|
1217
|
+
};
|
|
1218
|
+
SideBySideSurveyCardImpressionEventData.decode = function decode(r, l, e, n) {
|
|
1219
|
+
if (!(r instanceof $Reader))
|
|
1220
|
+
r = $Reader.create(r);
|
|
1221
|
+
if (n === undefined)
|
|
1222
|
+
n = 0;
|
|
1223
|
+
if (n > $Reader.recursionLimit)
|
|
1224
|
+
throw Error("maximum nesting depth exceeded");
|
|
1225
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData();
|
|
1226
|
+
while (r.pos < c) {
|
|
1227
|
+
var t = r.uint32();
|
|
1228
|
+
if (t === e)
|
|
1229
|
+
break;
|
|
1230
|
+
switch (t >>> 3) {
|
|
1231
|
+
default:
|
|
1232
|
+
r.skipType(t & 7, n);
|
|
1233
|
+
break;
|
|
1234
|
+
}
|
|
1235
|
+
}
|
|
1236
|
+
return m;
|
|
1237
|
+
};
|
|
1238
|
+
SideBySideSurveyCardImpressionEventData.fromObject = function fromObject(d, n) {
|
|
1239
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData)
|
|
1240
|
+
return d;
|
|
1241
|
+
if (n === undefined)
|
|
1242
|
+
n = 0;
|
|
1243
|
+
if (n > $util.recursionLimit)
|
|
1244
|
+
throw Error("maximum nesting depth exceeded");
|
|
1245
|
+
return new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData();
|
|
1246
|
+
};
|
|
1247
|
+
SideBySideSurveyCardImpressionEventData.toObject = function toObject() {
|
|
1248
|
+
return {};
|
|
1249
|
+
};
|
|
1250
|
+
SideBySideSurveyCardImpressionEventData.prototype.toJSON = function toJSON() {
|
|
1251
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1252
|
+
};
|
|
1253
|
+
SideBySideSurveyCardImpressionEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1254
|
+
if (typeUrlPrefix === undefined) {
|
|
1255
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1256
|
+
}
|
|
1257
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyCardImpressionEventData";
|
|
1258
|
+
};
|
|
1259
|
+
return SideBySideSurveyCardImpressionEventData;
|
|
1260
|
+
});
|
|
1261
|
+
$lazy(SidebySideSurveyMetaAiAnalyticsData, "SideBySideSurveyResponseEventData", function() {
|
|
1262
|
+
function SideBySideSurveyResponseEventData(p) {
|
|
1263
|
+
if (p)
|
|
1264
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
1265
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
1266
|
+
this[ks[i]] = p[ks[i]];
|
|
1267
|
+
}
|
|
1268
|
+
SideBySideSurveyResponseEventData.prototype.responseDwellTimeMsString = null;
|
|
1269
|
+
SideBySideSurveyResponseEventData.prototype.selectedResponseId = null;
|
|
1270
|
+
let $oneOfFields;
|
|
1271
|
+
Object.defineProperty(SideBySideSurveyResponseEventData.prototype, "_responseDwellTimeMsString", {
|
|
1272
|
+
get: $util.oneOfGetter($oneOfFields = ["responseDwellTimeMsString"]),
|
|
1273
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1274
|
+
});
|
|
1275
|
+
Object.defineProperty(SideBySideSurveyResponseEventData.prototype, "_selectedResponseId", {
|
|
1276
|
+
get: $util.oneOfGetter($oneOfFields = ["selectedResponseId"]),
|
|
1277
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
1278
|
+
});
|
|
1279
|
+
SideBySideSurveyResponseEventData.create = function create(properties) {
|
|
1280
|
+
return new SideBySideSurveyResponseEventData(properties);
|
|
1281
|
+
};
|
|
1282
|
+
SideBySideSurveyResponseEventData.encode = function encode(m, w) {
|
|
1283
|
+
if (!w)
|
|
1284
|
+
w = $Writer.create();
|
|
1285
|
+
if (m.responseDwellTimeMsString != null && Object.hasOwnProperty.call(m, "responseDwellTimeMsString"))
|
|
1286
|
+
w.uint32(10).string(m.responseDwellTimeMsString);
|
|
1287
|
+
if (m.selectedResponseId != null && Object.hasOwnProperty.call(m, "selectedResponseId"))
|
|
1288
|
+
w.uint32(18).string(m.selectedResponseId);
|
|
1289
|
+
return w;
|
|
1290
|
+
};
|
|
1291
|
+
SideBySideSurveyResponseEventData.decode = function decode(r, l, e, n) {
|
|
1292
|
+
if (!(r instanceof $Reader))
|
|
1293
|
+
r = $Reader.create(r);
|
|
1294
|
+
if (n === undefined)
|
|
1295
|
+
n = 0;
|
|
1296
|
+
if (n > $Reader.recursionLimit)
|
|
1297
|
+
throw Error("maximum nesting depth exceeded");
|
|
1298
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData();
|
|
1299
|
+
while (r.pos < c) {
|
|
1300
|
+
var t = r.uint32();
|
|
1301
|
+
if (t === e)
|
|
1302
|
+
break;
|
|
1303
|
+
switch (t >>> 3) {
|
|
1304
|
+
case 1: {
|
|
1305
|
+
m.responseDwellTimeMsString = r.string();
|
|
1306
|
+
break;
|
|
1307
|
+
}
|
|
1308
|
+
case 2: {
|
|
1309
|
+
m.selectedResponseId = r.string();
|
|
1310
|
+
break;
|
|
1311
|
+
}
|
|
1312
|
+
default:
|
|
1313
|
+
r.skipType(t & 7, n);
|
|
1314
|
+
break;
|
|
1315
|
+
}
|
|
1316
|
+
}
|
|
1317
|
+
return m;
|
|
1318
|
+
};
|
|
1319
|
+
SideBySideSurveyResponseEventData.fromObject = function fromObject(d, n) {
|
|
1320
|
+
if (d instanceof $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData)
|
|
1321
|
+
return d;
|
|
1322
|
+
if (n === undefined)
|
|
1323
|
+
n = 0;
|
|
1324
|
+
if (n > $util.recursionLimit)
|
|
1325
|
+
throw Error("maximum nesting depth exceeded");
|
|
1326
|
+
var m = new $root.proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData();
|
|
1327
|
+
if (d.responseDwellTimeMsString != null) {
|
|
1328
|
+
m.responseDwellTimeMsString = String(d.responseDwellTimeMsString);
|
|
1329
|
+
}
|
|
1330
|
+
if (d.selectedResponseId != null) {
|
|
1331
|
+
m.selectedResponseId = String(d.selectedResponseId);
|
|
1332
|
+
}
|
|
1333
|
+
return m;
|
|
1334
|
+
};
|
|
1335
|
+
SideBySideSurveyResponseEventData.toObject = function toObject(m, o) {
|
|
1336
|
+
if (!o)
|
|
1337
|
+
o = {};
|
|
1338
|
+
var d = {};
|
|
1339
|
+
if (m.responseDwellTimeMsString != null && m.hasOwnProperty("responseDwellTimeMsString")) {
|
|
1340
|
+
d.responseDwellTimeMsString = m.responseDwellTimeMsString;
|
|
1341
|
+
if (o.oneofs)
|
|
1342
|
+
d._responseDwellTimeMsString = "responseDwellTimeMsString";
|
|
1343
|
+
}
|
|
1344
|
+
if (m.selectedResponseId != null && m.hasOwnProperty("selectedResponseId")) {
|
|
1345
|
+
d.selectedResponseId = m.selectedResponseId;
|
|
1346
|
+
if (o.oneofs)
|
|
1347
|
+
d._selectedResponseId = "selectedResponseId";
|
|
1348
|
+
}
|
|
1349
|
+
return d;
|
|
1350
|
+
};
|
|
1351
|
+
SideBySideSurveyResponseEventData.prototype.toJSON = function toJSON() {
|
|
1352
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1353
|
+
};
|
|
1354
|
+
SideBySideSurveyResponseEventData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
1355
|
+
if (typeUrlPrefix === undefined) {
|
|
1356
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
1357
|
+
}
|
|
1358
|
+
return typeUrlPrefix + "/proto.BotFeedbackMessage.SideBySideSurveyMetadata.SidebySideSurveyMetaAiAnalyticsData.SideBySideSurveyResponseEventData";
|
|
1359
|
+
};
|
|
1360
|
+
return SideBySideSurveyResponseEventData;
|
|
1361
|
+
});
|
|
1362
|
+
return SidebySideSurveyMetaAiAnalyticsData;
|
|
1363
|
+
});
|
|
1364
|
+
return SideBySideSurveyMetadata;
|
|
1365
|
+
});
|
|
1366
|
+
return BotFeedbackMessage;
|