@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,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function LegacyMessage(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
|
+
LegacyMessage.prototype.eventResponseMessage = null;
|
|
9
|
+
LegacyMessage.prototype.pollVote = null;
|
|
10
|
+
let $oneOfFields;
|
|
11
|
+
Object.defineProperty(LegacyMessage.prototype, "_eventResponseMessage", {
|
|
12
|
+
get: $util.oneOfGetter($oneOfFields = ["eventResponseMessage"]),
|
|
13
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
14
|
+
});
|
|
15
|
+
Object.defineProperty(LegacyMessage.prototype, "_pollVote", {
|
|
16
|
+
get: $util.oneOfGetter($oneOfFields = ["pollVote"]),
|
|
17
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
18
|
+
});
|
|
19
|
+
LegacyMessage.create = function create(properties) {
|
|
20
|
+
return new LegacyMessage(properties);
|
|
21
|
+
};
|
|
22
|
+
LegacyMessage.encode = function encode(m, w) {
|
|
23
|
+
if (!w)
|
|
24
|
+
w = $Writer.create();
|
|
25
|
+
if (m.eventResponseMessage != null && Object.hasOwnProperty.call(m, "eventResponseMessage"))
|
|
26
|
+
$root.proto.Message.EventResponseMessage.encode(m.eventResponseMessage, w.uint32(10).fork()).ldelim();
|
|
27
|
+
if (m.pollVote != null && Object.hasOwnProperty.call(m, "pollVote"))
|
|
28
|
+
$root.proto.Message.PollVoteMessage.encode(m.pollVote, w.uint32(18).fork()).ldelim();
|
|
29
|
+
return w;
|
|
30
|
+
};
|
|
31
|
+
LegacyMessage.decode = function decode(r, l, e, n) {
|
|
32
|
+
if (!(r instanceof $Reader))
|
|
33
|
+
r = $Reader.create(r);
|
|
34
|
+
if (n === undefined)
|
|
35
|
+
n = 0;
|
|
36
|
+
if (n > $Reader.recursionLimit)
|
|
37
|
+
throw Error("maximum nesting depth exceeded");
|
|
38
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.LegacyMessage();
|
|
39
|
+
while (r.pos < c) {
|
|
40
|
+
var t = r.uint32();
|
|
41
|
+
if (t === e)
|
|
42
|
+
break;
|
|
43
|
+
switch (t >>> 3) {
|
|
44
|
+
case 1: {
|
|
45
|
+
m.eventResponseMessage = $root.proto.Message.EventResponseMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
case 2: {
|
|
49
|
+
m.pollVote = $root.proto.Message.PollVoteMessage.decode(r, r.uint32(), undefined, n + 1);
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
default:
|
|
53
|
+
r.skipType(t & 7, n);
|
|
54
|
+
break;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return m;
|
|
58
|
+
};
|
|
59
|
+
LegacyMessage.fromObject = function fromObject(d, n) {
|
|
60
|
+
if (d instanceof $root.proto.LegacyMessage)
|
|
61
|
+
return d;
|
|
62
|
+
if (n === undefined)
|
|
63
|
+
n = 0;
|
|
64
|
+
if (n > $util.recursionLimit)
|
|
65
|
+
throw Error("maximum nesting depth exceeded");
|
|
66
|
+
var m = new $root.proto.LegacyMessage();
|
|
67
|
+
if (d.eventResponseMessage != null) {
|
|
68
|
+
if (typeof d.eventResponseMessage !== "object")
|
|
69
|
+
throw TypeError(".proto.LegacyMessage.eventResponseMessage: object expected");
|
|
70
|
+
m.eventResponseMessage = $root.proto.Message.EventResponseMessage.fromObject(d.eventResponseMessage, n + 1);
|
|
71
|
+
}
|
|
72
|
+
if (d.pollVote != null) {
|
|
73
|
+
if (typeof d.pollVote !== "object")
|
|
74
|
+
throw TypeError(".proto.LegacyMessage.pollVote: object expected");
|
|
75
|
+
m.pollVote = $root.proto.Message.PollVoteMessage.fromObject(d.pollVote, n + 1);
|
|
76
|
+
}
|
|
77
|
+
return m;
|
|
78
|
+
};
|
|
79
|
+
LegacyMessage.toObject = function toObject(m, o) {
|
|
80
|
+
if (!o)
|
|
81
|
+
o = {};
|
|
82
|
+
var d = {};
|
|
83
|
+
if (m.eventResponseMessage != null && m.hasOwnProperty("eventResponseMessage")) {
|
|
84
|
+
d.eventResponseMessage = $root.proto.Message.EventResponseMessage.toObject(m.eventResponseMessage, o);
|
|
85
|
+
if (o.oneofs)
|
|
86
|
+
d._eventResponseMessage = "eventResponseMessage";
|
|
87
|
+
}
|
|
88
|
+
if (m.pollVote != null && m.hasOwnProperty("pollVote")) {
|
|
89
|
+
d.pollVote = $root.proto.Message.PollVoteMessage.toObject(m.pollVote, o);
|
|
90
|
+
if (o.oneofs)
|
|
91
|
+
d._pollVote = "pollVote";
|
|
92
|
+
}
|
|
93
|
+
return d;
|
|
94
|
+
};
|
|
95
|
+
LegacyMessage.prototype.toJSON = function toJSON() {
|
|
96
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
97
|
+
};
|
|
98
|
+
LegacyMessage.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
99
|
+
if (typeUrlPrefix === undefined) {
|
|
100
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
101
|
+
}
|
|
102
|
+
return typeUrlPrefix + "/proto.LegacyMessage";
|
|
103
|
+
};
|
|
104
|
+
return LegacyMessage;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function LimitSharing(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
|
+
LimitSharing.prototype.sharingLimited = null;
|
|
9
|
+
LimitSharing.prototype.trigger = null;
|
|
10
|
+
LimitSharing.prototype.limitSharingSettingTimestamp = null;
|
|
11
|
+
LimitSharing.prototype.initiatedByMe = null;
|
|
12
|
+
let $oneOfFields;
|
|
13
|
+
Object.defineProperty(LimitSharing.prototype, "_sharingLimited", {
|
|
14
|
+
get: $util.oneOfGetter($oneOfFields = ["sharingLimited"]),
|
|
15
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
16
|
+
});
|
|
17
|
+
Object.defineProperty(LimitSharing.prototype, "_trigger", {
|
|
18
|
+
get: $util.oneOfGetter($oneOfFields = ["trigger"]),
|
|
19
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(LimitSharing.prototype, "_limitSharingSettingTimestamp", {
|
|
22
|
+
get: $util.oneOfGetter($oneOfFields = ["limitSharingSettingTimestamp"]),
|
|
23
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
24
|
+
});
|
|
25
|
+
Object.defineProperty(LimitSharing.prototype, "_initiatedByMe", {
|
|
26
|
+
get: $util.oneOfGetter($oneOfFields = ["initiatedByMe"]),
|
|
27
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
28
|
+
});
|
|
29
|
+
LimitSharing.create = function create(properties) {
|
|
30
|
+
return new LimitSharing(properties);
|
|
31
|
+
};
|
|
32
|
+
LimitSharing.encode = function encode(m, w) {
|
|
33
|
+
if (!w)
|
|
34
|
+
w = $Writer.create();
|
|
35
|
+
if (m.sharingLimited != null && Object.hasOwnProperty.call(m, "sharingLimited"))
|
|
36
|
+
w.uint32(8).bool(m.sharingLimited);
|
|
37
|
+
if (m.trigger != null && Object.hasOwnProperty.call(m, "trigger"))
|
|
38
|
+
w.uint32(16).int32(m.trigger);
|
|
39
|
+
if (m.limitSharingSettingTimestamp != null && Object.hasOwnProperty.call(m, "limitSharingSettingTimestamp"))
|
|
40
|
+
w.uint32(24).int64(m.limitSharingSettingTimestamp);
|
|
41
|
+
if (m.initiatedByMe != null && Object.hasOwnProperty.call(m, "initiatedByMe"))
|
|
42
|
+
w.uint32(32).bool(m.initiatedByMe);
|
|
43
|
+
return w;
|
|
44
|
+
};
|
|
45
|
+
LimitSharing.decode = function decode(r, l, e, n) {
|
|
46
|
+
if (!(r instanceof $Reader))
|
|
47
|
+
r = $Reader.create(r);
|
|
48
|
+
if (n === undefined)
|
|
49
|
+
n = 0;
|
|
50
|
+
if (n > $Reader.recursionLimit)
|
|
51
|
+
throw Error("maximum nesting depth exceeded");
|
|
52
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.LimitSharing();
|
|
53
|
+
while (r.pos < c) {
|
|
54
|
+
var t = r.uint32();
|
|
55
|
+
if (t === e)
|
|
56
|
+
break;
|
|
57
|
+
switch (t >>> 3) {
|
|
58
|
+
case 1: {
|
|
59
|
+
m.sharingLimited = r.bool();
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
case 2: {
|
|
63
|
+
m.trigger = r.int32();
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
case 3: {
|
|
67
|
+
m.limitSharingSettingTimestamp = r.int64();
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
case 4: {
|
|
71
|
+
m.initiatedByMe = r.bool();
|
|
72
|
+
break;
|
|
73
|
+
}
|
|
74
|
+
default:
|
|
75
|
+
r.skipType(t & 7, n);
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
return m;
|
|
80
|
+
};
|
|
81
|
+
LimitSharing.fromObject = function fromObject(d, n) {
|
|
82
|
+
if (d instanceof $root.proto.LimitSharing)
|
|
83
|
+
return d;
|
|
84
|
+
if (n === undefined)
|
|
85
|
+
n = 0;
|
|
86
|
+
if (n > $util.recursionLimit)
|
|
87
|
+
throw Error("maximum nesting depth exceeded");
|
|
88
|
+
var m = new $root.proto.LimitSharing();
|
|
89
|
+
if (d.sharingLimited != null) {
|
|
90
|
+
m.sharingLimited = Boolean(d.sharingLimited);
|
|
91
|
+
}
|
|
92
|
+
switch (d.trigger) {
|
|
93
|
+
default:
|
|
94
|
+
if (typeof d.trigger === "number") {
|
|
95
|
+
m.trigger = d.trigger;
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
break;
|
|
99
|
+
case "UNKNOWN":
|
|
100
|
+
case 0:
|
|
101
|
+
m.trigger = 0;
|
|
102
|
+
break;
|
|
103
|
+
case "CHAT_SETTING":
|
|
104
|
+
case 1:
|
|
105
|
+
m.trigger = 1;
|
|
106
|
+
break;
|
|
107
|
+
case "BIZ_SUPPORTS_FB_HOSTING":
|
|
108
|
+
case 2:
|
|
109
|
+
m.trigger = 2;
|
|
110
|
+
break;
|
|
111
|
+
case "UNKNOWN_GROUP":
|
|
112
|
+
case 3:
|
|
113
|
+
m.trigger = 3;
|
|
114
|
+
break;
|
|
115
|
+
}
|
|
116
|
+
if (d.limitSharingSettingTimestamp != null) {
|
|
117
|
+
if ($util.Long)
|
|
118
|
+
(m.limitSharingSettingTimestamp = $util.Long.fromValue(d.limitSharingSettingTimestamp)).unsigned = false;
|
|
119
|
+
else if (typeof d.limitSharingSettingTimestamp === "string")
|
|
120
|
+
m.limitSharingSettingTimestamp = parseInt(d.limitSharingSettingTimestamp, 10);
|
|
121
|
+
else if (typeof d.limitSharingSettingTimestamp === "number")
|
|
122
|
+
m.limitSharingSettingTimestamp = d.limitSharingSettingTimestamp;
|
|
123
|
+
else if (typeof d.limitSharingSettingTimestamp === "object")
|
|
124
|
+
m.limitSharingSettingTimestamp = new $util.LongBits(d.limitSharingSettingTimestamp.low >>> 0, d.limitSharingSettingTimestamp.high >>> 0).toNumber();
|
|
125
|
+
}
|
|
126
|
+
if (d.initiatedByMe != null) {
|
|
127
|
+
m.initiatedByMe = Boolean(d.initiatedByMe);
|
|
128
|
+
}
|
|
129
|
+
return m;
|
|
130
|
+
};
|
|
131
|
+
LimitSharing.toObject = function toObject(m, o) {
|
|
132
|
+
if (!o)
|
|
133
|
+
o = {};
|
|
134
|
+
var d = {};
|
|
135
|
+
if (m.sharingLimited != null && m.hasOwnProperty("sharingLimited")) {
|
|
136
|
+
d.sharingLimited = m.sharingLimited;
|
|
137
|
+
if (o.oneofs)
|
|
138
|
+
d._sharingLimited = "sharingLimited";
|
|
139
|
+
}
|
|
140
|
+
if (m.trigger != null && m.hasOwnProperty("trigger")) {
|
|
141
|
+
d.trigger = o.enums === String ? $root.proto.LimitSharing.TriggerType[m.trigger] === undefined ? m.trigger : $root.proto.LimitSharing.TriggerType[m.trigger] : m.trigger;
|
|
142
|
+
if (o.oneofs)
|
|
143
|
+
d._trigger = "trigger";
|
|
144
|
+
}
|
|
145
|
+
if (m.limitSharingSettingTimestamp != null && m.hasOwnProperty("limitSharingSettingTimestamp")) {
|
|
146
|
+
if (typeof m.limitSharingSettingTimestamp === "number")
|
|
147
|
+
d.limitSharingSettingTimestamp = o.longs === String ? String(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
|
|
148
|
+
else
|
|
149
|
+
d.limitSharingSettingTimestamp = o.longs === String ? longToString(m.limitSharingSettingTimestamp) : o.longs === Number ? longToNumber(m.limitSharingSettingTimestamp) : m.limitSharingSettingTimestamp;
|
|
150
|
+
if (o.oneofs)
|
|
151
|
+
d._limitSharingSettingTimestamp = "limitSharingSettingTimestamp";
|
|
152
|
+
}
|
|
153
|
+
if (m.initiatedByMe != null && m.hasOwnProperty("initiatedByMe")) {
|
|
154
|
+
d.initiatedByMe = m.initiatedByMe;
|
|
155
|
+
if (o.oneofs)
|
|
156
|
+
d._initiatedByMe = "initiatedByMe";
|
|
157
|
+
}
|
|
158
|
+
return d;
|
|
159
|
+
};
|
|
160
|
+
LimitSharing.prototype.toJSON = function toJSON() {
|
|
161
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
162
|
+
};
|
|
163
|
+
LimitSharing.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
164
|
+
if (typeUrlPrefix === undefined) {
|
|
165
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
166
|
+
}
|
|
167
|
+
return typeUrlPrefix + "/proto.LimitSharing";
|
|
168
|
+
};
|
|
169
|
+
$lazy(LimitSharing, "TriggerType", function() {
|
|
170
|
+
const valuesById = {}, values = Object.create(valuesById);
|
|
171
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
172
|
+
values[valuesById[1] = "CHAT_SETTING"] = 1;
|
|
173
|
+
values[valuesById[2] = "BIZ_SUPPORTS_FB_HOSTING"] = 2;
|
|
174
|
+
values[valuesById[3] = "UNKNOWN_GROUP"] = 3;
|
|
175
|
+
return values;
|
|
176
|
+
});
|
|
177
|
+
return LimitSharing;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function LocalizedName(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
|
+
LocalizedName.prototype.lg = null;
|
|
9
|
+
LocalizedName.prototype.lc = null;
|
|
10
|
+
LocalizedName.prototype.verifiedName = null;
|
|
11
|
+
let $oneOfFields;
|
|
12
|
+
Object.defineProperty(LocalizedName.prototype, "_lg", {
|
|
13
|
+
get: $util.oneOfGetter($oneOfFields = ["lg"]),
|
|
14
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(LocalizedName.prototype, "_lc", {
|
|
17
|
+
get: $util.oneOfGetter($oneOfFields = ["lc"]),
|
|
18
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(LocalizedName.prototype, "_verifiedName", {
|
|
21
|
+
get: $util.oneOfGetter($oneOfFields = ["verifiedName"]),
|
|
22
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23
|
+
});
|
|
24
|
+
LocalizedName.create = function create(properties) {
|
|
25
|
+
return new LocalizedName(properties);
|
|
26
|
+
};
|
|
27
|
+
LocalizedName.encode = function encode(m, w) {
|
|
28
|
+
if (!w)
|
|
29
|
+
w = $Writer.create();
|
|
30
|
+
if (m.lg != null && Object.hasOwnProperty.call(m, "lg"))
|
|
31
|
+
w.uint32(10).string(m.lg);
|
|
32
|
+
if (m.lc != null && Object.hasOwnProperty.call(m, "lc"))
|
|
33
|
+
w.uint32(18).string(m.lc);
|
|
34
|
+
if (m.verifiedName != null && Object.hasOwnProperty.call(m, "verifiedName"))
|
|
35
|
+
w.uint32(26).string(m.verifiedName);
|
|
36
|
+
return w;
|
|
37
|
+
};
|
|
38
|
+
LocalizedName.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.LocalizedName();
|
|
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.lg = r.string();
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
case 2: {
|
|
56
|
+
m.lc = r.string();
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
case 3: {
|
|
60
|
+
m.verifiedName = r.string();
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
default:
|
|
64
|
+
r.skipType(t & 7, n);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return m;
|
|
69
|
+
};
|
|
70
|
+
LocalizedName.fromObject = function fromObject(d, n) {
|
|
71
|
+
if (d instanceof $root.proto.LocalizedName)
|
|
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.LocalizedName();
|
|
78
|
+
if (d.lg != null) {
|
|
79
|
+
m.lg = String(d.lg);
|
|
80
|
+
}
|
|
81
|
+
if (d.lc != null) {
|
|
82
|
+
m.lc = String(d.lc);
|
|
83
|
+
}
|
|
84
|
+
if (d.verifiedName != null) {
|
|
85
|
+
m.verifiedName = String(d.verifiedName);
|
|
86
|
+
}
|
|
87
|
+
return m;
|
|
88
|
+
};
|
|
89
|
+
LocalizedName.toObject = function toObject(m, o) {
|
|
90
|
+
if (!o)
|
|
91
|
+
o = {};
|
|
92
|
+
var d = {};
|
|
93
|
+
if (m.lg != null && m.hasOwnProperty("lg")) {
|
|
94
|
+
d.lg = m.lg;
|
|
95
|
+
if (o.oneofs)
|
|
96
|
+
d._lg = "lg";
|
|
97
|
+
}
|
|
98
|
+
if (m.lc != null && m.hasOwnProperty("lc")) {
|
|
99
|
+
d.lc = m.lc;
|
|
100
|
+
if (o.oneofs)
|
|
101
|
+
d._lc = "lc";
|
|
102
|
+
}
|
|
103
|
+
if (m.verifiedName != null && m.hasOwnProperty("verifiedName")) {
|
|
104
|
+
d.verifiedName = m.verifiedName;
|
|
105
|
+
if (o.oneofs)
|
|
106
|
+
d._verifiedName = "verifiedName";
|
|
107
|
+
}
|
|
108
|
+
return d;
|
|
109
|
+
};
|
|
110
|
+
LocalizedName.prototype.toJSON = function toJSON() {
|
|
111
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
112
|
+
};
|
|
113
|
+
LocalizedName.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
114
|
+
if (typeUrlPrefix === undefined) {
|
|
115
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
116
|
+
}
|
|
117
|
+
return typeUrlPrefix + "/proto.LocalizedName";
|
|
118
|
+
};
|
|
119
|
+
return LocalizedName;
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function Location(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
|
+
Location.prototype.degreesLatitude = null;
|
|
9
|
+
Location.prototype.degreesLongitude = null;
|
|
10
|
+
Location.prototype.name = null;
|
|
11
|
+
let $oneOfFields;
|
|
12
|
+
Object.defineProperty(Location.prototype, "_degreesLatitude", {
|
|
13
|
+
get: $util.oneOfGetter($oneOfFields = ["degreesLatitude"]),
|
|
14
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
15
|
+
});
|
|
16
|
+
Object.defineProperty(Location.prototype, "_degreesLongitude", {
|
|
17
|
+
get: $util.oneOfGetter($oneOfFields = ["degreesLongitude"]),
|
|
18
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
19
|
+
});
|
|
20
|
+
Object.defineProperty(Location.prototype, "_name", {
|
|
21
|
+
get: $util.oneOfGetter($oneOfFields = ["name"]),
|
|
22
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
23
|
+
});
|
|
24
|
+
Location.create = function create(properties) {
|
|
25
|
+
return new Location(properties);
|
|
26
|
+
};
|
|
27
|
+
Location.encode = function encode(m, w) {
|
|
28
|
+
if (!w)
|
|
29
|
+
w = $Writer.create();
|
|
30
|
+
if (m.degreesLatitude != null && Object.hasOwnProperty.call(m, "degreesLatitude"))
|
|
31
|
+
w.uint32(9).double(m.degreesLatitude);
|
|
32
|
+
if (m.degreesLongitude != null && Object.hasOwnProperty.call(m, "degreesLongitude"))
|
|
33
|
+
w.uint32(17).double(m.degreesLongitude);
|
|
34
|
+
if (m.name != null && Object.hasOwnProperty.call(m, "name"))
|
|
35
|
+
w.uint32(26).string(m.name);
|
|
36
|
+
return w;
|
|
37
|
+
};
|
|
38
|
+
Location.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.Location();
|
|
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.degreesLatitude = r.double();
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
case 2: {
|
|
56
|
+
m.degreesLongitude = r.double();
|
|
57
|
+
break;
|
|
58
|
+
}
|
|
59
|
+
case 3: {
|
|
60
|
+
m.name = r.string();
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
default:
|
|
64
|
+
r.skipType(t & 7, n);
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return m;
|
|
69
|
+
};
|
|
70
|
+
Location.fromObject = function fromObject(d, n) {
|
|
71
|
+
if (d instanceof $root.proto.Location)
|
|
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.Location();
|
|
78
|
+
if (d.degreesLatitude != null) {
|
|
79
|
+
m.degreesLatitude = Number(d.degreesLatitude);
|
|
80
|
+
}
|
|
81
|
+
if (d.degreesLongitude != null) {
|
|
82
|
+
m.degreesLongitude = Number(d.degreesLongitude);
|
|
83
|
+
}
|
|
84
|
+
if (d.name != null) {
|
|
85
|
+
m.name = String(d.name);
|
|
86
|
+
}
|
|
87
|
+
return m;
|
|
88
|
+
};
|
|
89
|
+
Location.toObject = function toObject(m, o) {
|
|
90
|
+
if (!o)
|
|
91
|
+
o = {};
|
|
92
|
+
var d = {};
|
|
93
|
+
if (m.degreesLatitude != null && m.hasOwnProperty("degreesLatitude")) {
|
|
94
|
+
d.degreesLatitude = o.json && !isFinite(m.degreesLatitude) ? String(m.degreesLatitude) : m.degreesLatitude;
|
|
95
|
+
if (o.oneofs)
|
|
96
|
+
d._degreesLatitude = "degreesLatitude";
|
|
97
|
+
}
|
|
98
|
+
if (m.degreesLongitude != null && m.hasOwnProperty("degreesLongitude")) {
|
|
99
|
+
d.degreesLongitude = o.json && !isFinite(m.degreesLongitude) ? String(m.degreesLongitude) : m.degreesLongitude;
|
|
100
|
+
if (o.oneofs)
|
|
101
|
+
d._degreesLongitude = "degreesLongitude";
|
|
102
|
+
}
|
|
103
|
+
if (m.name != null && m.hasOwnProperty("name")) {
|
|
104
|
+
d.name = m.name;
|
|
105
|
+
if (o.oneofs)
|
|
106
|
+
d._name = "name";
|
|
107
|
+
}
|
|
108
|
+
return d;
|
|
109
|
+
};
|
|
110
|
+
Location.prototype.toJSON = function toJSON() {
|
|
111
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
112
|
+
};
|
|
113
|
+
Location.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
114
|
+
if (typeUrlPrefix === undefined) {
|
|
115
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
116
|
+
}
|
|
117
|
+
return typeUrlPrefix + "/proto.Location";
|
|
118
|
+
};
|
|
119
|
+
return Location;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function MediaData(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
|
+
MediaData.prototype.localPath = null;
|
|
9
|
+
let $oneOfFields;
|
|
10
|
+
Object.defineProperty(MediaData.prototype, "_localPath", {
|
|
11
|
+
get: $util.oneOfGetter($oneOfFields = ["localPath"]),
|
|
12
|
+
set: $util.oneOfSetter($oneOfFields)
|
|
13
|
+
});
|
|
14
|
+
MediaData.create = function create(properties) {
|
|
15
|
+
return new MediaData(properties);
|
|
16
|
+
};
|
|
17
|
+
MediaData.encode = function encode(m, w) {
|
|
18
|
+
if (!w)
|
|
19
|
+
w = $Writer.create();
|
|
20
|
+
if (m.localPath != null && Object.hasOwnProperty.call(m, "localPath"))
|
|
21
|
+
w.uint32(10).string(m.localPath);
|
|
22
|
+
return w;
|
|
23
|
+
};
|
|
24
|
+
MediaData.decode = function decode(r, l, e, n) {
|
|
25
|
+
if (!(r instanceof $Reader))
|
|
26
|
+
r = $Reader.create(r);
|
|
27
|
+
if (n === undefined)
|
|
28
|
+
n = 0;
|
|
29
|
+
if (n > $Reader.recursionLimit)
|
|
30
|
+
throw Error("maximum nesting depth exceeded");
|
|
31
|
+
var c = l === undefined ? r.len : r.pos + l, m = new $root.proto.MediaData();
|
|
32
|
+
while (r.pos < c) {
|
|
33
|
+
var t = r.uint32();
|
|
34
|
+
if (t === e)
|
|
35
|
+
break;
|
|
36
|
+
switch (t >>> 3) {
|
|
37
|
+
case 1: {
|
|
38
|
+
m.localPath = r.string();
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
default:
|
|
42
|
+
r.skipType(t & 7, n);
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return m;
|
|
47
|
+
};
|
|
48
|
+
MediaData.fromObject = function fromObject(d, n) {
|
|
49
|
+
if (d instanceof $root.proto.MediaData)
|
|
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.MediaData();
|
|
56
|
+
if (d.localPath != null) {
|
|
57
|
+
m.localPath = String(d.localPath);
|
|
58
|
+
}
|
|
59
|
+
return m;
|
|
60
|
+
};
|
|
61
|
+
MediaData.toObject = function toObject(m, o) {
|
|
62
|
+
if (!o)
|
|
63
|
+
o = {};
|
|
64
|
+
var d = {};
|
|
65
|
+
if (m.localPath != null && m.hasOwnProperty("localPath")) {
|
|
66
|
+
d.localPath = m.localPath;
|
|
67
|
+
if (o.oneofs)
|
|
68
|
+
d._localPath = "localPath";
|
|
69
|
+
}
|
|
70
|
+
return d;
|
|
71
|
+
};
|
|
72
|
+
MediaData.prototype.toJSON = function toJSON() {
|
|
73
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
74
|
+
};
|
|
75
|
+
MediaData.getTypeUrl = function getTypeUrl(typeUrlPrefix) {
|
|
76
|
+
if (typeUrlPrefix === undefined) {
|
|
77
|
+
typeUrlPrefix = "type.googleapis.com";
|
|
78
|
+
}
|
|
79
|
+
return typeUrlPrefix + "/proto.MediaData";
|
|
80
|
+
};
|
|
81
|
+
return MediaData;
|