@hiroosy/baileys-lite 0.3.4 → 0.3.5
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
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function UserReceipt(p) {
|
|
3
|
+
this.pendingDeviceJid = [];
|
|
4
|
+
this.deliveredDeviceJid = [];
|
|
5
|
+
if (p)
|
|
6
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
7
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
8
|
+
this[ks[i]] = p[ks[i]];
|
|
9
|
+
}
|
|
10
|
+
UserReceipt.prototype.userJid = "";
|
|
11
|
+
UserReceipt.prototype.receiptTimestamp = null;
|
|
12
|
+
UserReceipt.prototype.readTimestamp = null;
|
|
13
|
+
UserReceipt.prototype.playedTimestamp = null;
|
|
14
|
+
UserReceipt.prototype.pendingDeviceJid = $util.emptyArray;
|
|
15
|
+
UserReceipt.prototype.deliveredDeviceJid = $util.emptyArray;
|
|
16
|
+
let $oneOfFields;
|
|
17
|
+
Object.defineProperty(UserReceipt.prototype, "_receiptTimestamp", {
|
|
18
|
+
get: $util.oneOfGetter($oneOfFields = ["receiptTimestamp"]),
|
|
19
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(UserReceipt.prototype, "_readTimestamp", {
|
|
22
|
+
get: $util.oneOfGetter($oneOfFields = ["readTimestamp"]),
|
|
23
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(UserReceipt.prototype, "_playedTimestamp", {
|
|
26
|
+
get: $util.oneOfGetter($oneOfFields = ["playedTimestamp"]),
|
|
27
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
28
|
+
});
|
|
29
|
+
UserReceipt.create = function create(properties) {
|
|
30
|
+
return new UserReceipt(properties);
|
|
31
|
+
};
|
|
32
|
+
UserReceipt.encode = function encode(m, w) {
|
|
33
|
+
if (!w)
|
|
34
|
+
w = $Writer.create();
|
|
35
|
+
if (m.userJid != null && Object.hasOwnProperty.call(m, "userJid"))
|
|
36
|
+
w.uint32(10).string(m.userJid);
|
|
37
|
+
if (m.receiptTimestamp != null && Object.hasOwnProperty.call(m, "receiptTimestamp"))
|
|
38
|
+
w.uint32(16).int64(m.receiptTimestamp);
|
|
39
|
+
if (m.readTimestamp != null && Object.hasOwnProperty.call(m, "readTimestamp"))
|
|
40
|
+
w.uint32(24).int64(m.readTimestamp);
|
|
41
|
+
if (m.playedTimestamp != null && Object.hasOwnProperty.call(m, "playedTimestamp"))
|
|
42
|
+
w.uint32(32).int64(m.playedTimestamp);
|
|
43
|
+
if (m.pendingDeviceJid != null && m.pendingDeviceJid.length) {
|
|
44
|
+
for (var i = 0; i < m.pendingDeviceJid.length; ++i)
|
|
45
|
+
w.uint32(42).string(m.pendingDeviceJid[i]);
|
|
46
|
+
}
|
|
47
|
+
if (m.deliveredDeviceJid != null && m.deliveredDeviceJid.length) {
|
|
48
|
+
for (var i = 0; i < m.deliveredDeviceJid.length; ++i)
|
|
49
|
+
w.uint32(50).string(m.deliveredDeviceJid[i]);
|
|
50
|
+
}
|
|
51
|
+
return w;
|
|
52
|
+
};
|
|
53
|
+
UserReceipt.decode = function decode(r, l, e, n) {
|
|
54
|
+
if (!(r instanceof $Reader))
|
|
55
|
+
r = $Reader.create(r);
|
|
56
|
+
if (n === undefined)
|
|
57
|
+
n = 0;
|
|
58
|
+
if (n > $Reader.recursionLimit)
|
|
59
|
+
throw Error("maximum nesting depth exceeded");
|
|
60
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.UserReceipt();
|
|
61
|
+
while (r.pos < c) {
|
|
62
|
+
var t = r.uint32();
|
|
63
|
+
if (t === e)
|
|
64
|
+
break;
|
|
65
|
+
switch (t >>> 3) {
|
|
66
|
+
case 1: {
|
|
67
|
+
m.userJid = r.string();
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
case 2: {
|
|
71
|
+
m.receiptTimestamp = r.int64();
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
case 3: {
|
|
75
|
+
m.readTimestamp = r.int64();
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
case 4: {
|
|
79
|
+
m.playedTimestamp = r.int64();
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
case 5: {
|
|
83
|
+
if (!(m.pendingDeviceJid && m.pendingDeviceJid.length))
|
|
84
|
+
m.pendingDeviceJid = [];
|
|
85
|
+
m.pendingDeviceJid.push(r.string());
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
case 6: {
|
|
89
|
+
if (!(m.deliveredDeviceJid && m.deliveredDeviceJid.length))
|
|
90
|
+
m.deliveredDeviceJid = [];
|
|
91
|
+
m.deliveredDeviceJid.push(r.string());
|
|
92
|
+
break;
|
|
93
|
+
}
|
|
94
|
+
default:
|
|
95
|
+
r.skipType(t & 7, n);
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return m;
|
|
100
|
+
};
|
|
101
|
+
UserReceipt.fromObject = function fromObject(d, n) {
|
|
102
|
+
if (d instanceof $root.proto.UserReceipt)
|
|
103
|
+
return d;
|
|
104
|
+
if (n === undefined)
|
|
105
|
+
n = 0;
|
|
106
|
+
if (n > $util.recursionLimit)
|
|
107
|
+
throw Error("maximum nesting depth exceeded");
|
|
108
|
+
var m = new $root.proto.UserReceipt();
|
|
109
|
+
if (d.userJid != null) {
|
|
110
|
+
m.userJid = String(d.userJid);
|
|
111
|
+
}
|
|
112
|
+
if (d.receiptTimestamp != null) {
|
|
113
|
+
if ($util.Long)
|
|
114
|
+
(m.receiptTimestamp = $util.Long.fromValue(d.receiptTimestamp)).unsigned = false;
|
|
115
|
+
else if (typeof d.receiptTimestamp === "string")
|
|
116
|
+
m.receiptTimestamp = parseInt(d.receiptTimestamp, 10);
|
|
117
|
+
else if (typeof d.receiptTimestamp === "number")
|
|
118
|
+
m.receiptTimestamp = d.receiptTimestamp;
|
|
119
|
+
else if (typeof d.receiptTimestamp === "object")
|
|
120
|
+
m.receiptTimestamp = new $util.LongBits(d.receiptTimestamp.low >>> 0, d.receiptTimestamp.high >>> 0).toNumber();
|
|
121
|
+
}
|
|
122
|
+
if (d.readTimestamp != null) {
|
|
123
|
+
if ($util.Long)
|
|
124
|
+
(m.readTimestamp = $util.Long.fromValue(d.readTimestamp)).unsigned = false;
|
|
125
|
+
else if (typeof d.readTimestamp === "string")
|
|
126
|
+
m.readTimestamp = parseInt(d.readTimestamp, 10);
|
|
127
|
+
else if (typeof d.readTimestamp === "number")
|
|
128
|
+
m.readTimestamp = d.readTimestamp;
|
|
129
|
+
else if (typeof d.readTimestamp === "object")
|
|
130
|
+
m.readTimestamp = new $util.LongBits(d.readTimestamp.low >>> 0, d.readTimestamp.high >>> 0).toNumber();
|
|
131
|
+
}
|
|
132
|
+
if (d.playedTimestamp != null) {
|
|
133
|
+
if ($util.Long)
|
|
134
|
+
(m.playedTimestamp = $util.Long.fromValue(d.playedTimestamp)).unsigned = false;
|
|
135
|
+
else if (typeof d.playedTimestamp === "string")
|
|
136
|
+
m.playedTimestamp = parseInt(d.playedTimestamp, 10);
|
|
137
|
+
else if (typeof d.playedTimestamp === "number")
|
|
138
|
+
m.playedTimestamp = d.playedTimestamp;
|
|
139
|
+
else if (typeof d.playedTimestamp === "object")
|
|
140
|
+
m.playedTimestamp = new $util.LongBits(d.playedTimestamp.low >>> 0, d.playedTimestamp.high >>> 0).toNumber();
|
|
141
|
+
}
|
|
142
|
+
if (d.pendingDeviceJid) {
|
|
143
|
+
if (!Array.isArray(d.pendingDeviceJid))
|
|
144
|
+
throw TypeError(".proto.UserReceipt.pendingDeviceJid: array expected");
|
|
145
|
+
m.pendingDeviceJid = [];
|
|
146
|
+
for (var i = 0; i < d.pendingDeviceJid.length; ++i) {
|
|
147
|
+
m.pendingDeviceJid[i] = String(d.pendingDeviceJid[i]);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
if (d.deliveredDeviceJid) {
|
|
151
|
+
if (!Array.isArray(d.deliveredDeviceJid))
|
|
152
|
+
throw TypeError(".proto.UserReceipt.deliveredDeviceJid: array expected");
|
|
153
|
+
m.deliveredDeviceJid = [];
|
|
154
|
+
for (var i = 0; i < d.deliveredDeviceJid.length; ++i) {
|
|
155
|
+
m.deliveredDeviceJid[i] = String(d.deliveredDeviceJid[i]);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
return m;
|
|
159
|
+
};
|
|
160
|
+
UserReceipt.toObject = function toObject(m, o) {
|
|
161
|
+
if (!o)
|
|
162
|
+
o = {};
|
|
163
|
+
var d = {};
|
|
164
|
+
if (o.arrays || o.defaults) {
|
|
165
|
+
d.pendingDeviceJid = [];
|
|
166
|
+
d.deliveredDeviceJid = [];
|
|
167
|
+
}
|
|
168
|
+
if (o.defaults) {
|
|
169
|
+
d.userJid = "";
|
|
170
|
+
}
|
|
171
|
+
if (m.userJid != null && m.hasOwnProperty("userJid")) {
|
|
172
|
+
d.userJid = m.userJid;
|
|
173
|
+
}
|
|
174
|
+
if (m.receiptTimestamp != null && m.hasOwnProperty("receiptTimestamp")) {
|
|
175
|
+
if (typeof m.receiptTimestamp === "number")
|
|
176
|
+
d.receiptTimestamp = o.longs === String ? String(m.receiptTimestamp) : m.receiptTimestamp;
|
|
177
|
+
else
|
|
178
|
+
d.receiptTimestamp = o.longs === String ? longToString(m.receiptTimestamp) : o.longs === Number ? longToNumber(m.receiptTimestamp) : m.receiptTimestamp;
|
|
179
|
+
if (o.oneofs)
|
|
180
|
+
d._receiptTimestamp = "receiptTimestamp";
|
|
181
|
+
}
|
|
182
|
+
if (m.readTimestamp != null && m.hasOwnProperty("readTimestamp")) {
|
|
183
|
+
if (typeof m.readTimestamp === "number")
|
|
184
|
+
d.readTimestamp = o.longs === String ? String(m.readTimestamp) : m.readTimestamp;
|
|
185
|
+
else
|
|
186
|
+
d.readTimestamp = o.longs === String ? longToString(m.readTimestamp) : o.longs === Number ? longToNumber(m.readTimestamp) : m.readTimestamp;
|
|
187
|
+
if (o.oneofs)
|
|
188
|
+
d._readTimestamp = "readTimestamp";
|
|
189
|
+
}
|
|
190
|
+
if (m.playedTimestamp != null && m.hasOwnProperty("playedTimestamp")) {
|
|
191
|
+
if (typeof m.playedTimestamp === "number")
|
|
192
|
+
d.playedTimestamp = o.longs === String ? String(m.playedTimestamp) : m.playedTimestamp;
|
|
193
|
+
else
|
|
194
|
+
d.playedTimestamp = o.longs === String ? longToString(m.playedTimestamp) : o.longs === Number ? longToNumber(m.playedTimestamp) : m.playedTimestamp;
|
|
195
|
+
if (o.oneofs)
|
|
196
|
+
d._playedTimestamp = "playedTimestamp";
|
|
197
|
+
}
|
|
198
|
+
if (m.pendingDeviceJid && m.pendingDeviceJid.length) {
|
|
199
|
+
d.pendingDeviceJid = [];
|
|
200
|
+
for (var j = 0; j < m.pendingDeviceJid.length; ++j) {
|
|
201
|
+
d.pendingDeviceJid[j] = m.pendingDeviceJid[j];
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
if (m.deliveredDeviceJid && m.deliveredDeviceJid.length) {
|
|
205
|
+
d.deliveredDeviceJid = [];
|
|
206
|
+
for (var j = 0; j < m.deliveredDeviceJid.length; ++j) {
|
|
207
|
+
d.deliveredDeviceJid[j] = m.deliveredDeviceJid[j];
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return d;
|
|
211
|
+
};
|
|
212
|
+
UserReceipt.prototype.toJSON = function toJSON() {
|
|
213
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
214
|
+
};
|
|
215
|
+
UserReceipt.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
216
|
+
if (typeUrlPrefix === undefined) {
|
|
217
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
218
|
+
}
|
|
219
|
+
return typeUrlPrefix + "/proto.UserReceipt";
|
|
220
|
+
};
|
|
221
|
+
return UserReceipt;
|
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function VerifiedNameCertificate(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
|
+
VerifiedNameCertificate.prototype.details = null;
|
|
9
|
+
VerifiedNameCertificate.prototype.signature = null;
|
|
10
|
+
VerifiedNameCertificate.prototype.serverSignature = null;
|
|
11
|
+
let $oneOfFields;
|
|
12
|
+
Object.defineProperty(VerifiedNameCertificate.prototype, "_details", {
|
|
13
|
+
get: $util.oneOfGetter($oneOfFields = ["details"]),
|
|
14
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(VerifiedNameCertificate.prototype, "_signature", {
|
|
17
|
+
get: $util.oneOfGetter($oneOfFields = ["signature"]),
|
|
18
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(VerifiedNameCertificate.prototype, "_serverSignature", {
|
|
21
|
+
get: $util.oneOfGetter($oneOfFields = ["serverSignature"]),
|
|
22
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23
|
+
});
|
|
24
|
+
VerifiedNameCertificate.create = function create(properties) {
|
|
25
|
+
return new VerifiedNameCertificate(properties);
|
|
26
|
+
};
|
|
27
|
+
VerifiedNameCertificate.encode = function encode(m, w) {
|
|
28
|
+
if (!w)
|
|
29
|
+
w = $Writer.create();
|
|
30
|
+
if (m.details != null && Object.hasOwnProperty.call(m, "details"))
|
|
31
|
+
w.uint32(10).bytes(m.details);
|
|
32
|
+
if (m.signature != null && Object.hasOwnProperty.call(m, "signature"))
|
|
33
|
+
w.uint32(18).bytes(m.signature);
|
|
34
|
+
if (m.serverSignature != null && Object.hasOwnProperty.call(m, "serverSignature"))
|
|
35
|
+
w.uint32(26).bytes(m.serverSignature);
|
|
36
|
+
return w;
|
|
37
|
+
};
|
|
38
|
+
VerifiedNameCertificate.decode = function decode(r, l, e, n) {
|
|
39
|
+
if (!(r instanceof $Reader))
|
|
40
|
+
r = $Reader.create(r);
|
|
41
|
+
if (n === undefined)
|
|
42
|
+
n = 0;
|
|
43
|
+
if (n > $Reader.recursionLimit)
|
|
44
|
+
throw Error("maximum nesting depth exceeded");
|
|
45
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.VerifiedNameCertificate();
|
|
46
|
+
while (r.pos < c) {
|
|
47
|
+
var t = r.uint32();
|
|
48
|
+
if (t === e)
|
|
49
|
+
break;
|
|
50
|
+
switch (t >>> 3) {
|
|
51
|
+
case 1: {
|
|
52
|
+
m.details = r.bytes();
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
case 2: {
|
|
56
|
+
m.signature = r.bytes();
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
case 3: {
|
|
60
|
+
m.serverSignature = r.bytes();
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
default:
|
|
64
|
+
r.skipType(t & 7, n);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return m;
|
|
69
|
+
};
|
|
70
|
+
VerifiedNameCertificate.fromObject = function fromObject(d, n) {
|
|
71
|
+
if (d instanceof $root.proto.VerifiedNameCertificate)
|
|
72
|
+
return d;
|
|
73
|
+
if (n === undefined)
|
|
74
|
+
n = 0;
|
|
75
|
+
if (n > $util.recursionLimit)
|
|
76
|
+
throw Error("maximum nesting depth exceeded");
|
|
77
|
+
var m = new $root.proto.VerifiedNameCertificate();
|
|
78
|
+
if (d.details != null) {
|
|
79
|
+
if (typeof d.details === "string")
|
|
80
|
+
$util.base64.decode(d.details, m.details = $util.newBuffer($util.base64.length(d.details)), 0);
|
|
81
|
+
else if (d.details.length >= 0)
|
|
82
|
+
m.details = d.details;
|
|
83
|
+
}
|
|
84
|
+
if (d.signature != null) {
|
|
85
|
+
if (typeof d.signature === "string")
|
|
86
|
+
$util.base64.decode(d.signature, m.signature = $util.newBuffer($util.base64.length(d.signature)), 0);
|
|
87
|
+
else if (d.signature.length >= 0)
|
|
88
|
+
m.signature = d.signature;
|
|
89
|
+
}
|
|
90
|
+
if (d.serverSignature != null) {
|
|
91
|
+
if (typeof d.serverSignature === "string")
|
|
92
|
+
$util.base64.decode(d.serverSignature, m.serverSignature = $util.newBuffer($util.base64.length(d.serverSignature)), 0);
|
|
93
|
+
else if (d.serverSignature.length >= 0)
|
|
94
|
+
m.serverSignature = d.serverSignature;
|
|
95
|
+
}
|
|
96
|
+
return m;
|
|
97
|
+
};
|
|
98
|
+
VerifiedNameCertificate.toObject = function toObject(m, o) {
|
|
99
|
+
if (!o)
|
|
100
|
+
o = {};
|
|
101
|
+
var d = {};
|
|
102
|
+
if (m.details != null && m.hasOwnProperty("details")) {
|
|
103
|
+
d.details = o.bytes === String ? $util.base64.encode(m.details, 0, m.details.length) : o.bytes === Array ? Array.prototype.slice.call(m.details) : m.details;
|
|
104
|
+
if (o.oneofs)
|
|
105
|
+
d._details = "details";
|
|
106
|
+
}
|
|
107
|
+
if (m.signature != null && m.hasOwnProperty("signature")) {
|
|
108
|
+
d.signature = o.bytes === String ? $util.base64.encode(m.signature, 0, m.signature.length) : o.bytes === Array ? Array.prototype.slice.call(m.signature) : m.signature;
|
|
109
|
+
if (o.oneofs)
|
|
110
|
+
d._signature = "signature";
|
|
111
|
+
}
|
|
112
|
+
if (m.serverSignature != null && m.hasOwnProperty("serverSignature")) {
|
|
113
|
+
d.serverSignature = o.bytes === String ? $util.base64.encode(m.serverSignature, 0, m.serverSignature.length) : o.bytes === Array ? Array.prototype.slice.call(m.serverSignature) : m.serverSignature;
|
|
114
|
+
if (o.oneofs)
|
|
115
|
+
d._serverSignature = "serverSignature";
|
|
116
|
+
}
|
|
117
|
+
return d;
|
|
118
|
+
};
|
|
119
|
+
VerifiedNameCertificate.prototype.toJSON = function toJSON() {
|
|
120
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
121
|
+
};
|
|
122
|
+
VerifiedNameCertificate.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
123
|
+
if (typeUrlPrefix === undefined) {
|
|
124
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
125
|
+
}
|
|
126
|
+
return typeUrlPrefix + "/proto.VerifiedNameCertificate";
|
|
127
|
+
};
|
|
128
|
+
$lazy(VerifiedNameCertificate, "Details", function() {
|
|
129
|
+
function Details(p) {
|
|
130
|
+
this.localizedNames = [];
|
|
131
|
+
if (p)
|
|
132
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
133
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
134
|
+
this[ks[i]] = p[ks[i]];
|
|
135
|
+
}
|
|
136
|
+
Details.prototype.serial = null;
|
|
137
|
+
Details.prototype.issuer = null;
|
|
138
|
+
Details.prototype.verifiedName = null;
|
|
139
|
+
Details.prototype.localizedNames = $util.emptyArray;
|
|
140
|
+
Details.prototype.issueTime = null;
|
|
141
|
+
let $oneOfFields;
|
|
142
|
+
Object.defineProperty(Details.prototype, "_serial", {
|
|
143
|
+
get: $util.oneOfGetter($oneOfFields = ["serial"]),
|
|
144
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
145
|
+
});
|
|
146
|
+
Object.defineProperty(Details.prototype, "_issuer", {
|
|
147
|
+
get: $util.oneOfGetter($oneOfFields = ["issuer"]),
|
|
148
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
149
|
+
});
|
|
150
|
+
Object.defineProperty(Details.prototype, "_verifiedName", {
|
|
151
|
+
get: $util.oneOfGetter($oneOfFields = ["verifiedName"]),
|
|
152
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
153
|
+
});
|
|
154
|
+
Object.defineProperty(Details.prototype, "_issueTime", {
|
|
155
|
+
get: $util.oneOfGetter($oneOfFields = ["issueTime"]),
|
|
156
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
157
|
+
});
|
|
158
|
+
Details.create = function create(properties) {
|
|
159
|
+
return new Details(properties);
|
|
160
|
+
};
|
|
161
|
+
Details.encode = function encode(m, w) {
|
|
162
|
+
if (!w)
|
|
163
|
+
w = $Writer.create();
|
|
164
|
+
if (m.serial != null && Object.hasOwnProperty.call(m, "serial"))
|
|
165
|
+
w.uint32(8).uint64(m.serial);
|
|
166
|
+
if (m.issuer != null && Object.hasOwnProperty.call(m, "issuer"))
|
|
167
|
+
w.uint32(18).string(m.issuer);
|
|
168
|
+
if (m.verifiedName != null && Object.hasOwnProperty.call(m, "verifiedName"))
|
|
169
|
+
w.uint32(34).string(m.verifiedName);
|
|
170
|
+
if (m.localizedNames != null && m.localizedNames.length) {
|
|
171
|
+
for (var i = 0; i < m.localizedNames.length; ++i)
|
|
172
|
+
$root.proto.LocalizedName.encode(m.localizedNames[i], w.uint32(66).fork()).ldelim();
|
|
173
|
+
}
|
|
174
|
+
if (m.issueTime != null && Object.hasOwnProperty.call(m, "issueTime"))
|
|
175
|
+
w.uint32(80).uint64(m.issueTime);
|
|
176
|
+
return w;
|
|
177
|
+
};
|
|
178
|
+
Details.decode = function decode(r, l, e, n) {
|
|
179
|
+
if (!(r instanceof $Reader))
|
|
180
|
+
r = $Reader.create(r);
|
|
181
|
+
if (n === undefined)
|
|
182
|
+
n = 0;
|
|
183
|
+
if (n > $Reader.recursionLimit)
|
|
184
|
+
throw Error("maximum nesting depth exceeded");
|
|
185
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.VerifiedNameCertificate.Details();
|
|
186
|
+
while (r.pos < c) {
|
|
187
|
+
var t = r.uint32();
|
|
188
|
+
if (t === e)
|
|
189
|
+
break;
|
|
190
|
+
switch (t >>> 3) {
|
|
191
|
+
case 1: {
|
|
192
|
+
m.serial = r.uint64();
|
|
193
|
+
break;
|
|
194
|
+
}
|
|
195
|
+
case 2: {
|
|
196
|
+
m.issuer = r.string();
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
case 4: {
|
|
200
|
+
m.verifiedName = r.string();
|
|
201
|
+
break;
|
|
202
|
+
}
|
|
203
|
+
case 8: {
|
|
204
|
+
if (!(m.localizedNames && m.localizedNames.length))
|
|
205
|
+
m.localizedNames = [];
|
|
206
|
+
m.localizedNames.push($root.proto.LocalizedName.decode(r, r.uint32(), undefined, n + 1));
|
|
207
|
+
break;
|
|
208
|
+
}
|
|
209
|
+
case 10: {
|
|
210
|
+
m.issueTime = r.uint64();
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
default:
|
|
214
|
+
r.skipType(t & 7, n);
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
return m;
|
|
219
|
+
};
|
|
220
|
+
Details.fromObject = function fromObject(d, n) {
|
|
221
|
+
if (d instanceof $root.proto.VerifiedNameCertificate.Details)
|
|
222
|
+
return d;
|
|
223
|
+
if (n === undefined)
|
|
224
|
+
n = 0;
|
|
225
|
+
if (n > $util.recursionLimit)
|
|
226
|
+
throw Error("maximum nesting depth exceeded");
|
|
227
|
+
var m = new $root.proto.VerifiedNameCertificate.Details();
|
|
228
|
+
if (d.serial != null) {
|
|
229
|
+
if ($util.Long)
|
|
230
|
+
(m.serial = $util.Long.fromValue(d.serial)).unsigned = true;
|
|
231
|
+
else if (typeof d.serial === "string")
|
|
232
|
+
m.serial = parseInt(d.serial, 10);
|
|
233
|
+
else if (typeof d.serial === "number")
|
|
234
|
+
m.serial = d.serial;
|
|
235
|
+
else if (typeof d.serial === "object")
|
|
236
|
+
m.serial = new $util.LongBits(d.serial.low >>> 0, d.serial.high >>> 0).toNumber(true);
|
|
237
|
+
}
|
|
238
|
+
if (d.issuer != null) {
|
|
239
|
+
m.issuer = String(d.issuer);
|
|
240
|
+
}
|
|
241
|
+
if (d.verifiedName != null) {
|
|
242
|
+
m.verifiedName = String(d.verifiedName);
|
|
243
|
+
}
|
|
244
|
+
if (d.localizedNames) {
|
|
245
|
+
if (!Array.isArray(d.localizedNames))
|
|
246
|
+
throw TypeError(".proto.VerifiedNameCertificate.Details.localizedNames: array expected");
|
|
247
|
+
m.localizedNames = [];
|
|
248
|
+
for (var i = 0; i < d.localizedNames.length; ++i) {
|
|
249
|
+
if (typeof d.localizedNames[i] !== "object")
|
|
250
|
+
throw TypeError(".proto.VerifiedNameCertificate.Details.localizedNames: object expected");
|
|
251
|
+
m.localizedNames[i] = $root.proto.LocalizedName.fromObject(d.localizedNames[i], n + 1);
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
if (d.issueTime != null) {
|
|
255
|
+
if ($util.Long)
|
|
256
|
+
(m.issueTime = $util.Long.fromValue(d.issueTime)).unsigned = true;
|
|
257
|
+
else if (typeof d.issueTime === "string")
|
|
258
|
+
m.issueTime = parseInt(d.issueTime, 10);
|
|
259
|
+
else if (typeof d.issueTime === "number")
|
|
260
|
+
m.issueTime = d.issueTime;
|
|
261
|
+
else if (typeof d.issueTime === "object")
|
|
262
|
+
m.issueTime = new $util.LongBits(d.issueTime.low >>> 0, d.issueTime.high >>> 0).toNumber(true);
|
|
263
|
+
}
|
|
264
|
+
return m;
|
|
265
|
+
};
|
|
266
|
+
Details.toObject = function toObject(m, o) {
|
|
267
|
+
if (!o)
|
|
268
|
+
o = {};
|
|
269
|
+
var d = {};
|
|
270
|
+
if (o.arrays || o.defaults) {
|
|
271
|
+
d.localizedNames = [];
|
|
272
|
+
}
|
|
273
|
+
if (m.serial != null && m.hasOwnProperty("serial")) {
|
|
274
|
+
if (typeof m.serial === "number")
|
|
275
|
+
d.serial = o.longs === String ? String(m.serial) : m.serial;
|
|
276
|
+
else
|
|
277
|
+
d.serial = o.longs === String ? longToString(m.serial, true) : o.longs === Number ? longToNumber(m.serial, true) : m.serial;
|
|
278
|
+
if (o.oneofs)
|
|
279
|
+
d._serial = "serial";
|
|
280
|
+
}
|
|
281
|
+
if (m.issuer != null && m.hasOwnProperty("issuer")) {
|
|
282
|
+
d.issuer = m.issuer;
|
|
283
|
+
if (o.oneofs)
|
|
284
|
+
d._issuer = "issuer";
|
|
285
|
+
}
|
|
286
|
+
if (m.verifiedName != null && m.hasOwnProperty("verifiedName")) {
|
|
287
|
+
d.verifiedName = m.verifiedName;
|
|
288
|
+
if (o.oneofs)
|
|
289
|
+
d._verifiedName = "verifiedName";
|
|
290
|
+
}
|
|
291
|
+
if (m.localizedNames && m.localizedNames.length) {
|
|
292
|
+
d.localizedNames = [];
|
|
293
|
+
for (var j = 0; j < m.localizedNames.length; ++j) {
|
|
294
|
+
d.localizedNames[j] = $root.proto.LocalizedName.toObject(m.localizedNames[j], o);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
if (m.issueTime != null && m.hasOwnProperty("issueTime")) {
|
|
298
|
+
if (typeof m.issueTime === "number")
|
|
299
|
+
d.issueTime = o.longs === String ? String(m.issueTime) : m.issueTime;
|
|
300
|
+
else
|
|
301
|
+
d.issueTime = o.longs === String ? longToString(m.issueTime, true) : o.longs === Number ? longToNumber(m.issueTime, true) : m.issueTime;
|
|
302
|
+
if (o.oneofs)
|
|
303
|
+
d._issueTime = "issueTime";
|
|
304
|
+
}
|
|
305
|
+
return d;
|
|
306
|
+
};
|
|
307
|
+
Details.prototype.toJSON = function toJSON() {
|
|
308
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
309
|
+
};
|
|
310
|
+
Details.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
311
|
+
if (typeUrlPrefix === undefined) {
|
|
312
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
313
|
+
}
|
|
314
|
+
return typeUrlPrefix + "/proto.VerifiedNameCertificate.Details";
|
|
315
|
+
};
|
|
316
|
+
return Details;
|
|
317
|
+
});
|
|
318
|
+
return VerifiedNameCertificate;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function WallpaperSettings(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
|
+
WallpaperSettings.prototype.filename = null;
|
|
9
|
+
WallpaperSettings.prototype.opacity = null;
|
|
10
|
+
WallpaperSettings.prototype.isGenAi = null;
|
|
11
|
+
let $oneOfFields;
|
|
12
|
+
Object.defineProperty(WallpaperSettings.prototype, "_filename", {
|
|
13
|
+
get: $util.oneOfGetter($oneOfFields = ["filename"]),
|
|
14
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(WallpaperSettings.prototype, "_opacity", {
|
|
17
|
+
get: $util.oneOfGetter($oneOfFields = ["opacity"]),
|
|
18
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(WallpaperSettings.prototype, "_isGenAi", {
|
|
21
|
+
get: $util.oneOfGetter($oneOfFields = ["isGenAi"]),
|
|
22
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23
|
+
});
|
|
24
|
+
WallpaperSettings.create = function create(properties) {
|
|
25
|
+
return new WallpaperSettings(properties);
|
|
26
|
+
};
|
|
27
|
+
WallpaperSettings.encode = function encode(m, w) {
|
|
28
|
+
if (!w)
|
|
29
|
+
w = $Writer.create();
|
|
30
|
+
if (m.filename != null && Object.hasOwnProperty.call(m, "filename"))
|
|
31
|
+
w.uint32(10).string(m.filename);
|
|
32
|
+
if (m.opacity != null && Object.hasOwnProperty.call(m, "opacity"))
|
|
33
|
+
w.uint32(16).uint32(m.opacity);
|
|
34
|
+
if (m.isGenAi != null && Object.hasOwnProperty.call(m, "isGenAi"))
|
|
35
|
+
w.uint32(24).bool(m.isGenAi);
|
|
36
|
+
return w;
|
|
37
|
+
};
|
|
38
|
+
WallpaperSettings.decode = function decode(r, l, e, n) {
|
|
39
|
+
if (!(r instanceof $Reader))
|
|
40
|
+
r = $Reader.create(r);
|
|
41
|
+
if (n === undefined)
|
|
42
|
+
n = 0;
|
|
43
|
+
if (n > $Reader.recursionLimit)
|
|
44
|
+
throw Error("maximum nesting depth exceeded");
|
|
45
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.WallpaperSettings();
|
|
46
|
+
while (r.pos < c) {
|
|
47
|
+
var t = r.uint32();
|
|
48
|
+
if (t === e)
|
|
49
|
+
break;
|
|
50
|
+
switch (t >>> 3) {
|
|
51
|
+
case 1: {
|
|
52
|
+
m.filename = r.string();
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
case 2: {
|
|
56
|
+
m.opacity = r.uint32();
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
case 3: {
|
|
60
|
+
m.isGenAi = r.bool();
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
default:
|
|
64
|
+
r.skipType(t & 7, n);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return m;
|
|
69
|
+
};
|
|
70
|
+
WallpaperSettings.fromObject = function fromObject(d, n) {
|
|
71
|
+
if (d instanceof $root.proto.WallpaperSettings)
|
|
72
|
+
return d;
|
|
73
|
+
if (n === undefined)
|
|
74
|
+
n = 0;
|
|
75
|
+
if (n > $util.recursionLimit)
|
|
76
|
+
throw Error("maximum nesting depth exceeded");
|
|
77
|
+
var m = new $root.proto.WallpaperSettings();
|
|
78
|
+
if (d.filename != null) {
|
|
79
|
+
m.filename = String(d.filename);
|
|
80
|
+
}
|
|
81
|
+
if (d.opacity != null) {
|
|
82
|
+
m.opacity = d.opacity >>> 0;
|
|
83
|
+
}
|
|
84
|
+
if (d.isGenAi != null) {
|
|
85
|
+
m.isGenAi = Boolean(d.isGenAi);
|
|
86
|
+
}
|
|
87
|
+
return m;
|
|
88
|
+
};
|
|
89
|
+
WallpaperSettings.toObject = function toObject(m, o) {
|
|
90
|
+
if (!o)
|
|
91
|
+
o = {};
|
|
92
|
+
var d = {};
|
|
93
|
+
if (m.filename != null && m.hasOwnProperty("filename")) {
|
|
94
|
+
d.filename = m.filename;
|
|
95
|
+
if (o.oneofs)
|
|
96
|
+
d._filename = "filename";
|
|
97
|
+
}
|
|
98
|
+
if (m.opacity != null && m.hasOwnProperty("opacity")) {
|
|
99
|
+
d.opacity = m.opacity;
|
|
100
|
+
if (o.oneofs)
|
|
101
|
+
d._opacity = "opacity";
|
|
102
|
+
}
|
|
103
|
+
if (m.isGenAi != null && m.hasOwnProperty("isGenAi")) {
|
|
104
|
+
d.isGenAi = m.isGenAi;
|
|
105
|
+
if (o.oneofs)
|
|
106
|
+
d._isGenAi = "isGenAi";
|
|
107
|
+
}
|
|
108
|
+
return d;
|
|
109
|
+
};
|
|
110
|
+
WallpaperSettings.prototype.toJSON = function toJSON() {
|
|
111
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
112
|
+
};
|
|
113
|
+
WallpaperSettings.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
114
|
+
if (typeUrlPrefix === undefined) {
|
|
115
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
116
|
+
}
|
|
117
|
+
return typeUrlPrefix + "/proto.WallpaperSettings";
|
|
118
|
+
};
|
|
119
|
+
return WallpaperSettings;
|