@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,231 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function UrlTrackingMap(p) {
|
|
3
|
+
this.urlTrackingMapElements = [];
|
|
4
|
+
if (p)
|
|
5
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
6
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
7
|
+
this[ks[i]] = p[ks[i]];
|
|
8
|
+
}
|
|
9
|
+
UrlTrackingMap.prototype.urlTrackingMapElements = $util.emptyArray;
|
|
10
|
+
UrlTrackingMap.create = function create(properties) {
|
|
11
|
+
return new UrlTrackingMap(properties);
|
|
12
|
+
};
|
|
13
|
+
UrlTrackingMap.encode = function encode(m, w) {
|
|
14
|
+
if (!w)
|
|
15
|
+
w = $Writer.create();
|
|
16
|
+
if (m.urlTrackingMapElements != null && m.urlTrackingMapElements.length) {
|
|
17
|
+
for (var i = 0; i < m.urlTrackingMapElements.length; ++i)
|
|
18
|
+
$root.proto.UrlTrackingMap.UrlTrackingMapElement.encode(m.urlTrackingMapElements[i], w.uint32(10).fork()).ldelim();
|
|
19
|
+
}
|
|
20
|
+
return w;
|
|
21
|
+
};
|
|
22
|
+
UrlTrackingMap.decode = function decode(r, l, e, n) {
|
|
23
|
+
if (!(r instanceof $Reader))
|
|
24
|
+
r = $Reader.create(r);
|
|
25
|
+
if (n === undefined)
|
|
26
|
+
n = 0;
|
|
27
|
+
if (n > $Reader.recursionLimit)
|
|
28
|
+
throw Error("maximum nesting depth exceeded");
|
|
29
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.UrlTrackingMap();
|
|
30
|
+
while (r.pos < c) {
|
|
31
|
+
var t = r.uint32();
|
|
32
|
+
if (t === e)
|
|
33
|
+
break;
|
|
34
|
+
switch (t >>> 3) {
|
|
35
|
+
case 1: {
|
|
36
|
+
if (!(m.urlTrackingMapElements && m.urlTrackingMapElements.length))
|
|
37
|
+
m.urlTrackingMapElements = [];
|
|
38
|
+
m.urlTrackingMapElements.push($root.proto.UrlTrackingMap.UrlTrackingMapElement.decode(r, r.uint32(), undefined, n + 1));
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
default:
|
|
42
|
+
r.skipType(t & 7, n);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return m;
|
|
47
|
+
};
|
|
48
|
+
UrlTrackingMap.fromObject = function fromObject(d, n) {
|
|
49
|
+
if (d instanceof $root.proto.UrlTrackingMap)
|
|
50
|
+
return d;
|
|
51
|
+
if (n === undefined)
|
|
52
|
+
n = 0;
|
|
53
|
+
if (n > $util.recursionLimit)
|
|
54
|
+
throw Error("maximum nesting depth exceeded");
|
|
55
|
+
var m = new $root.proto.UrlTrackingMap();
|
|
56
|
+
if (d.urlTrackingMapElements) {
|
|
57
|
+
if (!Array.isArray(d.urlTrackingMapElements))
|
|
58
|
+
throw TypeError(".proto.UrlTrackingMap.urlTrackingMapElements: array expected");
|
|
59
|
+
m.urlTrackingMapElements = [];
|
|
60
|
+
for (var i = 0; i < d.urlTrackingMapElements.length; ++i) {
|
|
61
|
+
if (typeof d.urlTrackingMapElements[i] !== "object")
|
|
62
|
+
throw TypeError(".proto.UrlTrackingMap.urlTrackingMapElements: object expected");
|
|
63
|
+
m.urlTrackingMapElements[i] = $root.proto.UrlTrackingMap.UrlTrackingMapElement.fromObject(d.urlTrackingMapElements[i], n + 1);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return m;
|
|
67
|
+
};
|
|
68
|
+
UrlTrackingMap.toObject = function toObject(m, o) {
|
|
69
|
+
if (!o)
|
|
70
|
+
o = {};
|
|
71
|
+
var d = {};
|
|
72
|
+
if (o.arrays || o.defaults) {
|
|
73
|
+
d.urlTrackingMapElements = [];
|
|
74
|
+
}
|
|
75
|
+
if (m.urlTrackingMapElements && m.urlTrackingMapElements.length) {
|
|
76
|
+
d.urlTrackingMapElements = [];
|
|
77
|
+
for (var j = 0; j < m.urlTrackingMapElements.length; ++j) {
|
|
78
|
+
d.urlTrackingMapElements[j] = $root.proto.UrlTrackingMap.UrlTrackingMapElement.toObject(m.urlTrackingMapElements[j], o);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return d;
|
|
82
|
+
};
|
|
83
|
+
UrlTrackingMap.prototype.toJSON = function toJSON() {
|
|
84
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
85
|
+
};
|
|
86
|
+
UrlTrackingMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
87
|
+
if (typeUrlPrefix === undefined) {
|
|
88
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
89
|
+
}
|
|
90
|
+
return typeUrlPrefix + "/proto.UrlTrackingMap";
|
|
91
|
+
};
|
|
92
|
+
$lazy(UrlTrackingMap, "UrlTrackingMapElement", function() {
|
|
93
|
+
function UrlTrackingMapElement(p) {
|
|
94
|
+
if (p)
|
|
95
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
96
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
97
|
+
this[ks[i]] = p[ks[i]];
|
|
98
|
+
}
|
|
99
|
+
UrlTrackingMapElement.prototype.originalUrl = null;
|
|
100
|
+
UrlTrackingMapElement.prototype.unconsentedUsersUrl = null;
|
|
101
|
+
UrlTrackingMapElement.prototype.consentedUsersUrl = null;
|
|
102
|
+
UrlTrackingMapElement.prototype.cardIndex = null;
|
|
103
|
+
let $oneOfFields;
|
|
104
|
+
Object.defineProperty(UrlTrackingMapElement.prototype, "_originalUrl", {
|
|
105
|
+
get: $util.oneOfGetter($oneOfFields = ["originalUrl"]),
|
|
106
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
107
|
+
});
|
|
108
|
+
Object.defineProperty(UrlTrackingMapElement.prototype, "_unconsentedUsersUrl", {
|
|
109
|
+
get: $util.oneOfGetter($oneOfFields = ["unconsentedUsersUrl"]),
|
|
110
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(UrlTrackingMapElement.prototype, "_consentedUsersUrl", {
|
|
113
|
+
get: $util.oneOfGetter($oneOfFields = ["consentedUsersUrl"]),
|
|
114
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
115
|
+
});
|
|
116
|
+
Object.defineProperty(UrlTrackingMapElement.prototype, "_cardIndex", {
|
|
117
|
+
get: $util.oneOfGetter($oneOfFields = ["cardIndex"]),
|
|
118
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
119
|
+
});
|
|
120
|
+
UrlTrackingMapElement.create = function create(properties) {
|
|
121
|
+
return new UrlTrackingMapElement(properties);
|
|
122
|
+
};
|
|
123
|
+
UrlTrackingMapElement.encode = function encode(m, w) {
|
|
124
|
+
if (!w)
|
|
125
|
+
w = $Writer.create();
|
|
126
|
+
if (m.originalUrl != null && Object.hasOwnProperty.call(m, "originalUrl"))
|
|
127
|
+
w.uint32(10).string(m.originalUrl);
|
|
128
|
+
if (m.unconsentedUsersUrl != null && Object.hasOwnProperty.call(m, "unconsentedUsersUrl"))
|
|
129
|
+
w.uint32(18).string(m.unconsentedUsersUrl);
|
|
130
|
+
if (m.consentedUsersUrl != null && Object.hasOwnProperty.call(m, "consentedUsersUrl"))
|
|
131
|
+
w.uint32(26).string(m.consentedUsersUrl);
|
|
132
|
+
if (m.cardIndex != null && Object.hasOwnProperty.call(m, "cardIndex"))
|
|
133
|
+
w.uint32(32).uint32(m.cardIndex);
|
|
134
|
+
return w;
|
|
135
|
+
};
|
|
136
|
+
UrlTrackingMapElement.decode = function decode(r, l, e, n) {
|
|
137
|
+
if (!(r instanceof $Reader))
|
|
138
|
+
r = $Reader.create(r);
|
|
139
|
+
if (n === undefined)
|
|
140
|
+
n = 0;
|
|
141
|
+
if (n > $Reader.recursionLimit)
|
|
142
|
+
throw Error("maximum nesting depth exceeded");
|
|
143
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.UrlTrackingMap.UrlTrackingMapElement();
|
|
144
|
+
while (r.pos < c) {
|
|
145
|
+
var t = r.uint32();
|
|
146
|
+
if (t === e)
|
|
147
|
+
break;
|
|
148
|
+
switch (t >>> 3) {
|
|
149
|
+
case 1: {
|
|
150
|
+
m.originalUrl = r.string();
|
|
151
|
+
break;
|
|
152
|
+
}
|
|
153
|
+
case 2: {
|
|
154
|
+
m.unconsentedUsersUrl = r.string();
|
|
155
|
+
break;
|
|
156
|
+
}
|
|
157
|
+
case 3: {
|
|
158
|
+
m.consentedUsersUrl = r.string();
|
|
159
|
+
break;
|
|
160
|
+
}
|
|
161
|
+
case 4: {
|
|
162
|
+
m.cardIndex = r.uint32();
|
|
163
|
+
break;
|
|
164
|
+
}
|
|
165
|
+
default:
|
|
166
|
+
r.skipType(t & 7, n);
|
|
167
|
+
break;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return m;
|
|
171
|
+
};
|
|
172
|
+
UrlTrackingMapElement.fromObject = function fromObject(d, n) {
|
|
173
|
+
if (d instanceof $root.proto.UrlTrackingMap.UrlTrackingMapElement)
|
|
174
|
+
return d;
|
|
175
|
+
if (n === undefined)
|
|
176
|
+
n = 0;
|
|
177
|
+
if (n > $util.recursionLimit)
|
|
178
|
+
throw Error("maximum nesting depth exceeded");
|
|
179
|
+
var m = new $root.proto.UrlTrackingMap.UrlTrackingMapElement();
|
|
180
|
+
if (d.originalUrl != null) {
|
|
181
|
+
m.originalUrl = String(d.originalUrl);
|
|
182
|
+
}
|
|
183
|
+
if (d.unconsentedUsersUrl != null) {
|
|
184
|
+
m.unconsentedUsersUrl = String(d.unconsentedUsersUrl);
|
|
185
|
+
}
|
|
186
|
+
if (d.consentedUsersUrl != null) {
|
|
187
|
+
m.consentedUsersUrl = String(d.consentedUsersUrl);
|
|
188
|
+
}
|
|
189
|
+
if (d.cardIndex != null) {
|
|
190
|
+
m.cardIndex = d.cardIndex >>> 0;
|
|
191
|
+
}
|
|
192
|
+
return m;
|
|
193
|
+
};
|
|
194
|
+
UrlTrackingMapElement.toObject = function toObject(m, o) {
|
|
195
|
+
if (!o)
|
|
196
|
+
o = {};
|
|
197
|
+
var d = {};
|
|
198
|
+
if (m.originalUrl != null && m.hasOwnProperty("originalUrl")) {
|
|
199
|
+
d.originalUrl = m.originalUrl;
|
|
200
|
+
if (o.oneofs)
|
|
201
|
+
d._originalUrl = "originalUrl";
|
|
202
|
+
}
|
|
203
|
+
if (m.unconsentedUsersUrl != null && m.hasOwnProperty("unconsentedUsersUrl")) {
|
|
204
|
+
d.unconsentedUsersUrl = m.unconsentedUsersUrl;
|
|
205
|
+
if (o.oneofs)
|
|
206
|
+
d._unconsentedUsersUrl = "unconsentedUsersUrl";
|
|
207
|
+
}
|
|
208
|
+
if (m.consentedUsersUrl != null && m.hasOwnProperty("consentedUsersUrl")) {
|
|
209
|
+
d.consentedUsersUrl = m.consentedUsersUrl;
|
|
210
|
+
if (o.oneofs)
|
|
211
|
+
d._consentedUsersUrl = "consentedUsersUrl";
|
|
212
|
+
}
|
|
213
|
+
if (m.cardIndex != null && m.hasOwnProperty("cardIndex")) {
|
|
214
|
+
d.cardIndex = m.cardIndex;
|
|
215
|
+
if (o.oneofs)
|
|
216
|
+
d._cardIndex = "cardIndex";
|
|
217
|
+
}
|
|
218
|
+
return d;
|
|
219
|
+
};
|
|
220
|
+
UrlTrackingMapElement.prototype.toJSON = function toJSON() {
|
|
221
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
222
|
+
};
|
|
223
|
+
UrlTrackingMapElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
224
|
+
if (typeUrlPrefix === undefined) {
|
|
225
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
226
|
+
}
|
|
227
|
+
return typeUrlPrefix + "/proto.UrlTrackingMap.UrlTrackingMapElement";
|
|
228
|
+
};
|
|
229
|
+
return UrlTrackingMapElement;
|
|
230
|
+
});
|
|
231
|
+
return UrlTrackingMap;
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function UserPassword(p) {
|
|
3
|
+
this.transformerArg = [];
|
|
4
|
+
if (p)
|
|
5
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
6
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
7
|
+
this[ks[i]] = p[ks[i]];
|
|
8
|
+
}
|
|
9
|
+
UserPassword.prototype.encoding = null;
|
|
10
|
+
UserPassword.prototype.transformer = null;
|
|
11
|
+
UserPassword.prototype.transformerArg = $util.emptyArray;
|
|
12
|
+
UserPassword.prototype.transformedData = null;
|
|
13
|
+
let $oneOfFields;
|
|
14
|
+
Object.defineProperty(UserPassword.prototype, "_encoding", {
|
|
15
|
+
get: $util.oneOfGetter($oneOfFields = ["encoding"]),
|
|
16
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
17
|
+
});
|
|
18
|
+
Object.defineProperty(UserPassword.prototype, "_transformer", {
|
|
19
|
+
get: $util.oneOfGetter($oneOfFields = ["transformer"]),
|
|
20
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(UserPassword.prototype, "_transformedData", {
|
|
23
|
+
get: $util.oneOfGetter($oneOfFields = ["transformedData"]),
|
|
24
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
25
|
+
});
|
|
26
|
+
UserPassword.create = function create(properties) {
|
|
27
|
+
return new UserPassword(properties);
|
|
28
|
+
};
|
|
29
|
+
UserPassword.encode = function encode(m, w) {
|
|
30
|
+
if (!w)
|
|
31
|
+
w = $Writer.create();
|
|
32
|
+
if (m.encoding != null && Object.hasOwnProperty.call(m, "encoding"))
|
|
33
|
+
w.uint32(8).int32(m.encoding);
|
|
34
|
+
if (m.transformer != null && Object.hasOwnProperty.call(m, "transformer"))
|
|
35
|
+
w.uint32(16).int32(m.transformer);
|
|
36
|
+
if (m.transformerArg != null && m.transformerArg.length) {
|
|
37
|
+
for (var i = 0; i < m.transformerArg.length; ++i)
|
|
38
|
+
$root.proto.UserPassword.TransformerArg.encode(m.transformerArg[i], w.uint32(26).fork()).ldelim();
|
|
39
|
+
}
|
|
40
|
+
if (m.transformedData != null && Object.hasOwnProperty.call(m, "transformedData"))
|
|
41
|
+
w.uint32(34).bytes(m.transformedData);
|
|
42
|
+
return w;
|
|
43
|
+
};
|
|
44
|
+
UserPassword.decode = function decode(r, l, e, n) {
|
|
45
|
+
if (!(r instanceof $Reader))
|
|
46
|
+
r = $Reader.create(r);
|
|
47
|
+
if (n === undefined)
|
|
48
|
+
n = 0;
|
|
49
|
+
if (n > $Reader.recursionLimit)
|
|
50
|
+
throw Error("maximum nesting depth exceeded");
|
|
51
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.UserPassword();
|
|
52
|
+
while (r.pos < c) {
|
|
53
|
+
var t = r.uint32();
|
|
54
|
+
if (t === e)
|
|
55
|
+
break;
|
|
56
|
+
switch (t >>> 3) {
|
|
57
|
+
case 1: {
|
|
58
|
+
m.encoding = r.int32();
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
case 2: {
|
|
62
|
+
m.transformer = r.int32();
|
|
63
|
+
break;
|
|
64
|
+
}
|
|
65
|
+
case 3: {
|
|
66
|
+
if (!(m.transformerArg && m.transformerArg.length))
|
|
67
|
+
m.transformerArg = [];
|
|
68
|
+
m.transformerArg.push($root.proto.UserPassword.TransformerArg.decode(r, r.uint32(), undefined, n + 1));
|
|
69
|
+
break;
|
|
70
|
+
}
|
|
71
|
+
case 4: {
|
|
72
|
+
m.transformedData = r.bytes();
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
default:
|
|
76
|
+
r.skipType(t & 7, n);
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return m;
|
|
81
|
+
};
|
|
82
|
+
UserPassword.fromObject = function fromObject(d, n) {
|
|
83
|
+
if (d instanceof $root.proto.UserPassword)
|
|
84
|
+
return d;
|
|
85
|
+
if (n === undefined)
|
|
86
|
+
n = 0;
|
|
87
|
+
if (n > $util.recursionLimit)
|
|
88
|
+
throw Error("maximum nesting depth exceeded");
|
|
89
|
+
var m = new $root.proto.UserPassword();
|
|
90
|
+
switch (d.encoding) {
|
|
91
|
+
default:
|
|
92
|
+
if (typeof d.encoding === "number") {
|
|
93
|
+
m.encoding = d.encoding;
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
case "UTF8":
|
|
98
|
+
case 0:
|
|
99
|
+
m.encoding = 0;
|
|
100
|
+
break;
|
|
101
|
+
case "UTF8_BROKEN":
|
|
102
|
+
case 1:
|
|
103
|
+
m.encoding = 1;
|
|
104
|
+
break;
|
|
105
|
+
}
|
|
106
|
+
switch (d.transformer) {
|
|
107
|
+
default:
|
|
108
|
+
if (typeof d.transformer === "number") {
|
|
109
|
+
m.transformer = d.transformer;
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
break;
|
|
113
|
+
case "NONE":
|
|
114
|
+
case 0:
|
|
115
|
+
m.transformer = 0;
|
|
116
|
+
break;
|
|
117
|
+
case "PBKDF2_HMAC_SHA512":
|
|
118
|
+
case 1:
|
|
119
|
+
m.transformer = 1;
|
|
120
|
+
break;
|
|
121
|
+
case "PBKDF2_HMAC_SHA384":
|
|
122
|
+
case 2:
|
|
123
|
+
m.transformer = 2;
|
|
124
|
+
break;
|
|
125
|
+
}
|
|
126
|
+
if (d.transformerArg) {
|
|
127
|
+
if (!Array.isArray(d.transformerArg))
|
|
128
|
+
throw TypeError(".proto.UserPassword.transformerArg: array expected");
|
|
129
|
+
m.transformerArg = [];
|
|
130
|
+
for (var i = 0; i < d.transformerArg.length; ++i) {
|
|
131
|
+
if (typeof d.transformerArg[i] !== "object")
|
|
132
|
+
throw TypeError(".proto.UserPassword.transformerArg: object expected");
|
|
133
|
+
m.transformerArg[i] = $root.proto.UserPassword.TransformerArg.fromObject(d.transformerArg[i], n + 1);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
if (d.transformedData != null) {
|
|
137
|
+
if (typeof d.transformedData === "string")
|
|
138
|
+
$util.base64.decode(d.transformedData, m.transformedData = $util.newBuffer($util.base64.length(d.transformedData)), 0);
|
|
139
|
+
else if (d.transformedData.length >= 0)
|
|
140
|
+
m.transformedData = d.transformedData;
|
|
141
|
+
}
|
|
142
|
+
return m;
|
|
143
|
+
};
|
|
144
|
+
UserPassword.toObject = function toObject(m, o) {
|
|
145
|
+
if (!o)
|
|
146
|
+
o = {};
|
|
147
|
+
var d = {};
|
|
148
|
+
if (o.arrays || o.defaults) {
|
|
149
|
+
d.transformerArg = [];
|
|
150
|
+
}
|
|
151
|
+
if (m.encoding != null && m.hasOwnProperty("encoding")) {
|
|
152
|
+
d.encoding = o.enums === String ? $root.proto.UserPassword.Encoding[m.encoding] === undefined ? m.encoding : $root.proto.UserPassword.Encoding[m.encoding] : m.encoding;
|
|
153
|
+
if (o.oneofs)
|
|
154
|
+
d._encoding = "encoding";
|
|
155
|
+
}
|
|
156
|
+
if (m.transformer != null && m.hasOwnProperty("transformer")) {
|
|
157
|
+
d.transformer = o.enums === String ? $root.proto.UserPassword.Transformer[m.transformer] === undefined ? m.transformer : $root.proto.UserPassword.Transformer[m.transformer] : m.transformer;
|
|
158
|
+
if (o.oneofs)
|
|
159
|
+
d._transformer = "transformer";
|
|
160
|
+
}
|
|
161
|
+
if (m.transformerArg && m.transformerArg.length) {
|
|
162
|
+
d.transformerArg = [];
|
|
163
|
+
for (var j = 0; j < m.transformerArg.length; ++j) {
|
|
164
|
+
d.transformerArg[j] = $root.proto.UserPassword.TransformerArg.toObject(m.transformerArg[j], o);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
if (m.transformedData != null && m.hasOwnProperty("transformedData")) {
|
|
168
|
+
d.transformedData = o.bytes === String ? $util.base64.encode(m.transformedData, 0, m.transformedData.length) : o.bytes === Array ? Array.prototype.slice.call(m.transformedData) : m.transformedData;
|
|
169
|
+
if (o.oneofs)
|
|
170
|
+
d._transformedData = "transformedData";
|
|
171
|
+
}
|
|
172
|
+
return d;
|
|
173
|
+
};
|
|
174
|
+
UserPassword.prototype.toJSON = function toJSON() {
|
|
175
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
176
|
+
};
|
|
177
|
+
UserPassword.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
178
|
+
if (typeUrlPrefix === undefined) {
|
|
179
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
180
|
+
}
|
|
181
|
+
return typeUrlPrefix + "/proto.UserPassword";
|
|
182
|
+
};
|
|
183
|
+
$lazy(UserPassword, "Encoding", function() {
|
|
184
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
185
|
+
values[valuesById[0] = "UTF8"] = 0;
|
|
186
|
+
values[valuesById[1] = "UTF8_BROKEN"] = 1;
|
|
187
|
+
return values;
|
|
188
|
+
});
|
|
189
|
+
$lazy(UserPassword, "Transformer", function() {
|
|
190
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
191
|
+
values[valuesById[0] = "NONE"] = 0;
|
|
192
|
+
values[valuesById[1] = "PBKDF2_HMAC_SHA512"] = 1;
|
|
193
|
+
values[valuesById[2] = "PBKDF2_HMAC_SHA384"] = 2;
|
|
194
|
+
return values;
|
|
195
|
+
});
|
|
196
|
+
$lazy(UserPassword, "TransformerArg", function() {
|
|
197
|
+
function TransformerArg(p) {
|
|
198
|
+
if (p)
|
|
199
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
200
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
201
|
+
this[ks[i]] = p[ks[i]];
|
|
202
|
+
}
|
|
203
|
+
TransformerArg.prototype.key = null;
|
|
204
|
+
TransformerArg.prototype.value = null;
|
|
205
|
+
let $oneOfFields;
|
|
206
|
+
Object.defineProperty(TransformerArg.prototype, "_key", {
|
|
207
|
+
get: $util.oneOfGetter($oneOfFields = ["key"]),
|
|
208
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
209
|
+
});
|
|
210
|
+
Object.defineProperty(TransformerArg.prototype, "_value", {
|
|
211
|
+
get: $util.oneOfGetter($oneOfFields = ["value"]),
|
|
212
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
213
|
+
});
|
|
214
|
+
TransformerArg.create = function create(properties) {
|
|
215
|
+
return new TransformerArg(properties);
|
|
216
|
+
};
|
|
217
|
+
TransformerArg.encode = function encode(m, w) {
|
|
218
|
+
if (!w)
|
|
219
|
+
w = $Writer.create();
|
|
220
|
+
if (m.key != null && Object.hasOwnProperty.call(m, "key"))
|
|
221
|
+
w.uint32(10).string(m.key);
|
|
222
|
+
if (m.value != null && Object.hasOwnProperty.call(m, "value"))
|
|
223
|
+
$root.proto.UserPassword.TransformerArg.Value.encode(m.value, w.uint32(18).fork()).ldelim();
|
|
224
|
+
return w;
|
|
225
|
+
};
|
|
226
|
+
TransformerArg.decode = function decode(r, l, e, n) {
|
|
227
|
+
if (!(r instanceof $Reader))
|
|
228
|
+
r = $Reader.create(r);
|
|
229
|
+
if (n === undefined)
|
|
230
|
+
n = 0;
|
|
231
|
+
if (n > $Reader.recursionLimit)
|
|
232
|
+
throw Error("maximum nesting depth exceeded");
|
|
233
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.UserPassword.TransformerArg();
|
|
234
|
+
while (r.pos < c) {
|
|
235
|
+
var t = r.uint32();
|
|
236
|
+
if (t === e)
|
|
237
|
+
break;
|
|
238
|
+
switch (t >>> 3) {
|
|
239
|
+
case 1: {
|
|
240
|
+
m.key = r.string();
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
case 2: {
|
|
244
|
+
m.value = $root.proto.UserPassword.TransformerArg.Value.decode(r, r.uint32(), undefined, n + 1);
|
|
245
|
+
break;
|
|
246
|
+
}
|
|
247
|
+
default:
|
|
248
|
+
r.skipType(t & 7, n);
|
|
249
|
+
break;
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
return m;
|
|
253
|
+
};
|
|
254
|
+
TransformerArg.fromObject = function fromObject(d, n) {
|
|
255
|
+
if (d instanceof $root.proto.UserPassword.TransformerArg)
|
|
256
|
+
return d;
|
|
257
|
+
if (n === undefined)
|
|
258
|
+
n = 0;
|
|
259
|
+
if (n > $util.recursionLimit)
|
|
260
|
+
throw Error("maximum nesting depth exceeded");
|
|
261
|
+
var m = new $root.proto.UserPassword.TransformerArg();
|
|
262
|
+
if (d.key != null) {
|
|
263
|
+
m.key = String(d.key);
|
|
264
|
+
}
|
|
265
|
+
if (d.value != null) {
|
|
266
|
+
if (typeof d.value !== "object")
|
|
267
|
+
throw TypeError(".proto.UserPassword.TransformerArg.value: object expected");
|
|
268
|
+
m.value = $root.proto.UserPassword.TransformerArg.Value.fromObject(d.value, n + 1);
|
|
269
|
+
}
|
|
270
|
+
return m;
|
|
271
|
+
};
|
|
272
|
+
TransformerArg.toObject = function toObject(m, o) {
|
|
273
|
+
if (!o)
|
|
274
|
+
o = {};
|
|
275
|
+
var d = {};
|
|
276
|
+
if (m.key != null && m.hasOwnProperty("key")) {
|
|
277
|
+
d.key = m.key;
|
|
278
|
+
if (o.oneofs)
|
|
279
|
+
d._key = "key";
|
|
280
|
+
}
|
|
281
|
+
if (m.value != null && m.hasOwnProperty("value")) {
|
|
282
|
+
d.value = $root.proto.UserPassword.TransformerArg.Value.toObject(m.value, o);
|
|
283
|
+
if (o.oneofs)
|
|
284
|
+
d._value = "value";
|
|
285
|
+
}
|
|
286
|
+
return d;
|
|
287
|
+
};
|
|
288
|
+
TransformerArg.prototype.toJSON = function toJSON() {
|
|
289
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
290
|
+
};
|
|
291
|
+
TransformerArg.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
292
|
+
if (typeUrlPrefix === undefined) {
|
|
293
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
294
|
+
}
|
|
295
|
+
return typeUrlPrefix + "/proto.UserPassword.TransformerArg";
|
|
296
|
+
};
|
|
297
|
+
$lazy(TransformerArg, "Value", function() {
|
|
298
|
+
function Value(p) {
|
|
299
|
+
if (p)
|
|
300
|
+
for (var ks = Object.keys(p), i = 0; i < ks.length; ++i)
|
|
301
|
+
if (p[ks[i]] != null && ks[i] !== "__proto__")
|
|
302
|
+
this[ks[i]] = p[ks[i]];
|
|
303
|
+
}
|
|
304
|
+
Value.prototype.asBlob = null;
|
|
305
|
+
Value.prototype.asUnsignedInteger = null;
|
|
306
|
+
let $oneOfFields;
|
|
307
|
+
Object.defineProperty(Value.prototype, "value", {
|
|
308
|
+
get: $util.oneOfGetter($oneOfFields = ["asBlob", "asUnsignedInteger"]),
|
|
309
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
310
|
+
});
|
|
311
|
+
Value.create = function create(properties) {
|
|
312
|
+
return new Value(properties);
|
|
313
|
+
};
|
|
314
|
+
Value.encode = function encode(m, w) {
|
|
315
|
+
if (!w)
|
|
316
|
+
w = $Writer.create();
|
|
317
|
+
if (m.asBlob != null && Object.hasOwnProperty.call(m, "asBlob"))
|
|
318
|
+
w.uint32(10).bytes(m.asBlob);
|
|
319
|
+
if (m.asUnsignedInteger != null && Object.hasOwnProperty.call(m, "asUnsignedInteger"))
|
|
320
|
+
w.uint32(16).uint32(m.asUnsignedInteger);
|
|
321
|
+
return w;
|
|
322
|
+
};
|
|
323
|
+
Value.decode = function decode(r, l, e, n) {
|
|
324
|
+
if (!(r instanceof $Reader))
|
|
325
|
+
r = $Reader.create(r);
|
|
326
|
+
if (n === undefined)
|
|
327
|
+
n = 0;
|
|
328
|
+
if (n > $Reader.recursionLimit)
|
|
329
|
+
throw Error("maximum nesting depth exceeded");
|
|
330
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.UserPassword.TransformerArg.Value();
|
|
331
|
+
while (r.pos < c) {
|
|
332
|
+
var t = r.uint32();
|
|
333
|
+
if (t === e)
|
|
334
|
+
break;
|
|
335
|
+
switch (t >>> 3) {
|
|
336
|
+
case 1: {
|
|
337
|
+
m.asBlob = r.bytes();
|
|
338
|
+
break;
|
|
339
|
+
}
|
|
340
|
+
case 2: {
|
|
341
|
+
m.asUnsignedInteger = r.uint32();
|
|
342
|
+
break;
|
|
343
|
+
}
|
|
344
|
+
default:
|
|
345
|
+
r.skipType(t & 7, n);
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
return m;
|
|
350
|
+
};
|
|
351
|
+
Value.fromObject = function fromObject(d, n) {
|
|
352
|
+
if (d instanceof $root.proto.UserPassword.TransformerArg.Value)
|
|
353
|
+
return d;
|
|
354
|
+
if (n === undefined)
|
|
355
|
+
n = 0;
|
|
356
|
+
if (n > $util.recursionLimit)
|
|
357
|
+
throw Error("maximum nesting depth exceeded");
|
|
358
|
+
var m = new $root.proto.UserPassword.TransformerArg.Value();
|
|
359
|
+
if (d.asBlob != null) {
|
|
360
|
+
if (typeof d.asBlob === "string")
|
|
361
|
+
$util.base64.decode(d.asBlob, m.asBlob = $util.newBuffer($util.base64.length(d.asBlob)), 0);
|
|
362
|
+
else if (d.asBlob.length >= 0)
|
|
363
|
+
m.asBlob = d.asBlob;
|
|
364
|
+
}
|
|
365
|
+
if (d.asUnsignedInteger != null) {
|
|
366
|
+
m.asUnsignedInteger = d.asUnsignedInteger >>> 0;
|
|
367
|
+
}
|
|
368
|
+
return m;
|
|
369
|
+
};
|
|
370
|
+
Value.toObject = function toObject(m, o) {
|
|
371
|
+
if (!o)
|
|
372
|
+
o = {};
|
|
373
|
+
var d = {};
|
|
374
|
+
if (m.asBlob != null && m.hasOwnProperty("asBlob")) {
|
|
375
|
+
d.asBlob = o.bytes === String ? $util.base64.encode(m.asBlob, 0, m.asBlob.length) : o.bytes === Array ? Array.prototype.slice.call(m.asBlob) : m.asBlob;
|
|
376
|
+
if (o.oneofs)
|
|
377
|
+
d.value = "asBlob";
|
|
378
|
+
}
|
|
379
|
+
if (m.asUnsignedInteger != null && m.hasOwnProperty("asUnsignedInteger")) {
|
|
380
|
+
d.asUnsignedInteger = m.asUnsignedInteger;
|
|
381
|
+
if (o.oneofs)
|
|
382
|
+
d.value = "asUnsignedInteger";
|
|
383
|
+
}
|
|
384
|
+
return d;
|
|
385
|
+
};
|
|
386
|
+
Value.prototype.toJSON = function toJSON() {
|
|
387
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
388
|
+
};
|
|
389
|
+
Value.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
390
|
+
if (typeUrlPrefix === undefined) {
|
|
391
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
392
|
+
}
|
|
393
|
+
return typeUrlPrefix + "/proto.UserPassword.TransformerArg.Value";
|
|
394
|
+
};
|
|
395
|
+
return Value;
|
|
396
|
+
});
|
|
397
|
+
return TransformerArg;
|
|
398
|
+
});
|
|
399
|
+
return UserPassword;
|