From 586d89851075272858536bcc18bee48b922e904b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 17 Dec 2024 19:11:54 +0000 Subject: [PATCH] Update WAProto.proto --- WAProto.proto | 25 +- dist/index.d.ts | 440 +++++++++--------- dist/index.js | 1131 ++++++++++++++++++++++++++--------------------- 3 files changed, 861 insertions(+), 735 deletions(-) diff --git a/WAProto.proto b/WAProto.proto index 8ec0f14..8a9da88 100644 --- a/WAProto.proto +++ b/WAProto.proto @@ -1,7 +1,7 @@ syntax = "proto3"; package waproto; -/// WhatsApp Version: 2.3000.1018853814 +/// WhatsApp Version: 2.3000.1018934872 message ADVDeviceIdentity { optional uint32 rawId = 1; @@ -434,6 +434,7 @@ message ChatRowOpaqueData { message ClientPairingProps { optional bool isChatDbLidMigrated = 1; + optional bool isSyncdPureLidSession = 2; } message ClientPayload { @@ -705,6 +706,7 @@ message ContextInfo { optional bytes ctwaPayload = 55; optional ForwardedAIBotMessageInfo forwardedAiBotMessageInfo = 56; optional StatusAttributionType statusAttributionType = 57; + optional UrlTrackingMap urlTrackingMap = 58; message AdReplyInfo { optional string advertiserName = 1; optional MediaType mediaType = 2; @@ -1934,16 +1936,6 @@ message Message { } } - message UrlTrackingMap { - repeated UrlTrackingMapElement urlTrackingMapElements = 1; - message UrlTrackingMapElement { - optional string originalUrl = 1; - optional string unconsentedUsersUrl = 2; - optional string consentedUsersUrl = 3; - } - - } - } message InteractiveResponseMessage { @@ -3673,6 +3665,17 @@ message TemplateButton { } +message UrlTrackingMap { + repeated UrlTrackingMapElement urlTrackingMapElements = 1; + message UrlTrackingMapElement { + optional string originalUrl = 1; + optional string unconsentedUsersUrl = 2; + optional string consentedUsersUrl = 3; + optional uint32 cardIndex = 4; + } + +} + message UserPassword { optional Encoding encoding = 1; optional Transformer transformer = 2; diff --git a/dist/index.d.ts b/dist/index.d.ts index 1066f65..415aed6 100644 --- a/dist/index.d.ts +++ b/dist/index.d.ts @@ -4864,6 +4864,9 @@ export namespace waproto { /** ClientPairingProps isChatDbLidMigrated */ isChatDbLidMigrated?: (boolean|null); + + /** ClientPairingProps isSyncdPureLidSession */ + isSyncdPureLidSession?: (boolean|null); } /** Represents a ClientPairingProps. */ @@ -4878,6 +4881,9 @@ export namespace waproto { /** ClientPairingProps isChatDbLidMigrated. */ public isChatDbLidMigrated?: (boolean|null); + /** ClientPairingProps isSyncdPureLidSession. */ + public isSyncdPureLidSession?: (boolean|null); + /** * Creates a new ClientPairingProps instance using the specified properties. * @param [properties] Properties to set @@ -6821,6 +6827,9 @@ export namespace waproto { /** ContextInfo statusAttributionType */ statusAttributionType?: (waproto.ContextInfo.StatusAttributionType|null); + + /** ContextInfo urlTrackingMap */ + urlTrackingMap?: (waproto.IUrlTrackingMap|null); } /** Represents a ContextInfo. */ @@ -6955,6 +6964,9 @@ export namespace waproto { /** ContextInfo statusAttributionType. */ public statusAttributionType?: (waproto.ContextInfo.StatusAttributionType|null); + /** ContextInfo urlTrackingMap. */ + public urlTrackingMap?: (waproto.IUrlTrackingMap|null); + /** * Creates a new ContextInfo instance using the specified properties. * @param [properties] Properties to set @@ -20277,7 +20289,7 @@ export namespace waproto { contextInfo?: (waproto.IContextInfo|null); /** InteractiveMessage urlTrackingMap */ - urlTrackingMap?: (waproto.Message.InteractiveMessage.IUrlTrackingMap|null); + urlTrackingMap?: (waproto.IUrlTrackingMap|null); /** InteractiveMessage shopStorefrontMessage */ shopStorefrontMessage?: (waproto.Message.InteractiveMessage.IShopMessage|null); @@ -20314,7 +20326,7 @@ export namespace waproto { public contextInfo?: (waproto.IContextInfo|null); /** InteractiveMessage urlTrackingMap. */ - public urlTrackingMap?: (waproto.Message.InteractiveMessage.IUrlTrackingMap|null); + public urlTrackingMap?: (waproto.IUrlTrackingMap|null); /** InteractiveMessage shopStorefrontMessage. */ public shopStorefrontMessage?: (waproto.Message.InteractiveMessage.IShopMessage|null); @@ -21299,215 +21311,6 @@ export namespace waproto { WA = 3 } } - - /** Properties of an UrlTrackingMap. */ - interface IUrlTrackingMap { - - /** UrlTrackingMap urlTrackingMapElements */ - urlTrackingMapElements?: (waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement[]|null); - } - - /** Represents an UrlTrackingMap. */ - class UrlTrackingMap implements IUrlTrackingMap { - - /** - * Constructs a new UrlTrackingMap. - * @param [properties] Properties to set - */ - constructor(properties?: waproto.Message.InteractiveMessage.IUrlTrackingMap); - - /** UrlTrackingMap urlTrackingMapElements. */ - public urlTrackingMapElements: waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement[]; - - /** - * Creates a new UrlTrackingMap instance using the specified properties. - * @param [properties] Properties to set - * @returns UrlTrackingMap instance - */ - public static create(properties?: waproto.Message.InteractiveMessage.IUrlTrackingMap): waproto.Message.InteractiveMessage.UrlTrackingMap; - - /** - * Encodes the specified UrlTrackingMap message. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.verify|verify} messages. - * @param message UrlTrackingMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: waproto.Message.InteractiveMessage.IUrlTrackingMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UrlTrackingMap message, length delimited. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.verify|verify} messages. - * @param message UrlTrackingMap message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: waproto.Message.InteractiveMessage.IUrlTrackingMap, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UrlTrackingMap message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UrlTrackingMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.InteractiveMessage.UrlTrackingMap; - - /** - * Decodes an UrlTrackingMap message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UrlTrackingMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.InteractiveMessage.UrlTrackingMap; - - /** - * Verifies an UrlTrackingMap message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UrlTrackingMap message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UrlTrackingMap - */ - public static fromObject(object: { [k: string]: any }): waproto.Message.InteractiveMessage.UrlTrackingMap; - - /** - * Creates a plain object from an UrlTrackingMap message. Also converts values to other types if specified. - * @param message UrlTrackingMap - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: waproto.Message.InteractiveMessage.UrlTrackingMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UrlTrackingMap to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UrlTrackingMap - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - - namespace UrlTrackingMap { - - /** Properties of an UrlTrackingMapElement. */ - interface IUrlTrackingMapElement { - - /** UrlTrackingMapElement originalUrl */ - originalUrl?: (string|null); - - /** UrlTrackingMapElement unconsentedUsersUrl */ - unconsentedUsersUrl?: (string|null); - - /** UrlTrackingMapElement consentedUsersUrl */ - consentedUsersUrl?: (string|null); - } - - /** Represents an UrlTrackingMapElement. */ - class UrlTrackingMapElement implements IUrlTrackingMapElement { - - /** - * Constructs a new UrlTrackingMapElement. - * @param [properties] Properties to set - */ - constructor(properties?: waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement); - - /** UrlTrackingMapElement originalUrl. */ - public originalUrl?: (string|null); - - /** UrlTrackingMapElement unconsentedUsersUrl. */ - public unconsentedUsersUrl?: (string|null); - - /** UrlTrackingMapElement consentedUsersUrl. */ - public consentedUsersUrl?: (string|null); - - /** - * Creates a new UrlTrackingMapElement instance using the specified properties. - * @param [properties] Properties to set - * @returns UrlTrackingMapElement instance - */ - public static create(properties?: waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement): waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement; - - /** - * Encodes the specified UrlTrackingMapElement message. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. - * @param message UrlTrackingMapElement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified UrlTrackingMapElement message, length delimited. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. - * @param message UrlTrackingMapElement message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an UrlTrackingMapElement message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UrlTrackingMapElement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement; - - /** - * Decodes an UrlTrackingMapElement message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UrlTrackingMapElement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement; - - /** - * Verifies an UrlTrackingMapElement message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an UrlTrackingMapElement message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UrlTrackingMapElement - */ - public static fromObject(object: { [k: string]: any }): waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement; - - /** - * Creates a plain object from an UrlTrackingMapElement message. Also converts values to other types if specified. - * @param message UrlTrackingMapElement - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UrlTrackingMapElement to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - - /** - * Gets the default type url for UrlTrackingMapElement - * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns The default type url - */ - public static getTypeUrl(typeUrlPrefix?: string): string; - } - } } /** Properties of an InteractiveResponseMessage. */ @@ -45290,6 +45093,221 @@ export namespace waproto { } } + /** Properties of an UrlTrackingMap. */ + interface IUrlTrackingMap { + + /** UrlTrackingMap urlTrackingMapElements */ + urlTrackingMapElements?: (waproto.UrlTrackingMap.IUrlTrackingMapElement[]|null); + } + + /** Represents an UrlTrackingMap. */ + class UrlTrackingMap implements IUrlTrackingMap { + + /** + * Constructs a new UrlTrackingMap. + * @param [properties] Properties to set + */ + constructor(properties?: waproto.IUrlTrackingMap); + + /** UrlTrackingMap urlTrackingMapElements. */ + public urlTrackingMapElements: waproto.UrlTrackingMap.IUrlTrackingMapElement[]; + + /** + * Creates a new UrlTrackingMap instance using the specified properties. + * @param [properties] Properties to set + * @returns UrlTrackingMap instance + */ + public static create(properties?: waproto.IUrlTrackingMap): waproto.UrlTrackingMap; + + /** + * Encodes the specified UrlTrackingMap message. Does not implicitly {@link waproto.UrlTrackingMap.verify|verify} messages. + * @param message UrlTrackingMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: waproto.IUrlTrackingMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UrlTrackingMap message, length delimited. Does not implicitly {@link waproto.UrlTrackingMap.verify|verify} messages. + * @param message UrlTrackingMap message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: waproto.IUrlTrackingMap, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UrlTrackingMap message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UrlTrackingMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.UrlTrackingMap; + + /** + * Decodes an UrlTrackingMap message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UrlTrackingMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.UrlTrackingMap; + + /** + * Verifies an UrlTrackingMap message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UrlTrackingMap message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UrlTrackingMap + */ + public static fromObject(object: { [k: string]: any }): waproto.UrlTrackingMap; + + /** + * Creates a plain object from an UrlTrackingMap message. Also converts values to other types if specified. + * @param message UrlTrackingMap + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: waproto.UrlTrackingMap, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UrlTrackingMap to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UrlTrackingMap + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + + namespace UrlTrackingMap { + + /** Properties of an UrlTrackingMapElement. */ + interface IUrlTrackingMapElement { + + /** UrlTrackingMapElement originalUrl */ + originalUrl?: (string|null); + + /** UrlTrackingMapElement unconsentedUsersUrl */ + unconsentedUsersUrl?: (string|null); + + /** UrlTrackingMapElement consentedUsersUrl */ + consentedUsersUrl?: (string|null); + + /** UrlTrackingMapElement cardIndex */ + cardIndex?: (number|null); + } + + /** Represents an UrlTrackingMapElement. */ + class UrlTrackingMapElement implements IUrlTrackingMapElement { + + /** + * Constructs a new UrlTrackingMapElement. + * @param [properties] Properties to set + */ + constructor(properties?: waproto.UrlTrackingMap.IUrlTrackingMapElement); + + /** UrlTrackingMapElement originalUrl. */ + public originalUrl?: (string|null); + + /** UrlTrackingMapElement unconsentedUsersUrl. */ + public unconsentedUsersUrl?: (string|null); + + /** UrlTrackingMapElement consentedUsersUrl. */ + public consentedUsersUrl?: (string|null); + + /** UrlTrackingMapElement cardIndex. */ + public cardIndex?: (number|null); + + /** + * Creates a new UrlTrackingMapElement instance using the specified properties. + * @param [properties] Properties to set + * @returns UrlTrackingMapElement instance + */ + public static create(properties?: waproto.UrlTrackingMap.IUrlTrackingMapElement): waproto.UrlTrackingMap.UrlTrackingMapElement; + + /** + * Encodes the specified UrlTrackingMapElement message. Does not implicitly {@link waproto.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. + * @param message UrlTrackingMapElement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: waproto.UrlTrackingMap.IUrlTrackingMapElement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified UrlTrackingMapElement message, length delimited. Does not implicitly {@link waproto.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. + * @param message UrlTrackingMapElement message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: waproto.UrlTrackingMap.IUrlTrackingMapElement, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an UrlTrackingMapElement message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UrlTrackingMapElement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): waproto.UrlTrackingMap.UrlTrackingMapElement; + + /** + * Decodes an UrlTrackingMapElement message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UrlTrackingMapElement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): waproto.UrlTrackingMap.UrlTrackingMapElement; + + /** + * Verifies an UrlTrackingMapElement message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an UrlTrackingMapElement message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UrlTrackingMapElement + */ + public static fromObject(object: { [k: string]: any }): waproto.UrlTrackingMap.UrlTrackingMapElement; + + /** + * Creates a plain object from an UrlTrackingMapElement message. Also converts values to other types if specified. + * @param message UrlTrackingMapElement + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: waproto.UrlTrackingMap.UrlTrackingMapElement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UrlTrackingMapElement to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + + /** + * Gets the default type url for UrlTrackingMapElement + * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns The default type url + */ + public static getTypeUrl(typeUrlPrefix?: string): string; + } + } + /** Properties of a UserPassword. */ interface IUserPassword { diff --git a/dist/index.js b/dist/index.js index e7271ff..1394825 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14462,6 +14462,7 @@ $root.waproto = (function() { * @memberof waproto * @interface IClientPairingProps * @property {boolean|null} [isChatDbLidMigrated] ClientPairingProps isChatDbLidMigrated + * @property {boolean|null} [isSyncdPureLidSession] ClientPairingProps isSyncdPureLidSession */ /** @@ -14487,6 +14488,14 @@ $root.waproto = (function() { */ ClientPairingProps.prototype.isChatDbLidMigrated = null; + /** + * ClientPairingProps isSyncdPureLidSession. + * @member {boolean|null|undefined} isSyncdPureLidSession + * @memberof waproto.ClientPairingProps + * @instance + */ + ClientPairingProps.prototype.isSyncdPureLidSession = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -14496,6 +14505,12 @@ $root.waproto = (function() { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ClientPairingProps.prototype, "_isSyncdPureLidSession", { + get: $util.oneOfGetter($oneOfFields = ["isSyncdPureLidSession"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ClientPairingProps instance using the specified properties. * @function create @@ -14522,6 +14537,8 @@ $root.waproto = (function() { writer = $Writer.create(); if (message.isChatDbLidMigrated != null && Object.hasOwnProperty.call(message, "isChatDbLidMigrated")) writer.uint32(/* id 1, wireType 0 =*/8).bool(message.isChatDbLidMigrated); + if (message.isSyncdPureLidSession != null && Object.hasOwnProperty.call(message, "isSyncdPureLidSession")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isSyncdPureLidSession); return writer; }; @@ -14560,6 +14577,10 @@ $root.waproto = (function() { message.isChatDbLidMigrated = reader.bool(); break; } + case 2: { + message.isSyncdPureLidSession = reader.bool(); + break; + } default: reader.skipType(tag & 7); break; @@ -14601,6 +14622,11 @@ $root.waproto = (function() { if (typeof message.isChatDbLidMigrated !== "boolean") return "isChatDbLidMigrated: boolean expected"; } + if (message.isSyncdPureLidSession != null && message.hasOwnProperty("isSyncdPureLidSession")) { + properties._isSyncdPureLidSession = 1; + if (typeof message.isSyncdPureLidSession !== "boolean") + return "isSyncdPureLidSession: boolean expected"; + } return null; }; @@ -14618,6 +14644,8 @@ $root.waproto = (function() { var message = new $root.waproto.ClientPairingProps(); if (object.isChatDbLidMigrated != null) message.isChatDbLidMigrated = Boolean(object.isChatDbLidMigrated); + if (object.isSyncdPureLidSession != null) + message.isSyncdPureLidSession = Boolean(object.isSyncdPureLidSession); return message; }; @@ -14639,6 +14667,11 @@ $root.waproto = (function() { if (options.oneofs) object._isChatDbLidMigrated = "isChatDbLidMigrated"; } + if (message.isSyncdPureLidSession != null && message.hasOwnProperty("isSyncdPureLidSession")) { + object.isSyncdPureLidSession = message.isSyncdPureLidSession; + if (options.oneofs) + object._isSyncdPureLidSession = "isSyncdPureLidSession"; + } return object; }; @@ -20823,6 +20856,7 @@ $root.waproto = (function() { * @property {Uint8Array|null} [ctwaPayload] ContextInfo ctwaPayload * @property {waproto.ContextInfo.IForwardedAIBotMessageInfo|null} [forwardedAiBotMessageInfo] ContextInfo forwardedAiBotMessageInfo * @property {waproto.ContextInfo.StatusAttributionType|null} [statusAttributionType] ContextInfo statusAttributionType + * @property {waproto.IUrlTrackingMap|null} [urlTrackingMap] ContextInfo urlTrackingMap */ /** @@ -21170,6 +21204,14 @@ $root.waproto = (function() { */ ContextInfo.prototype.statusAttributionType = null; + /** + * ContextInfo urlTrackingMap. + * @member {waproto.IUrlTrackingMap|null|undefined} urlTrackingMap + * @memberof waproto.ContextInfo + * @instance + */ + ContextInfo.prototype.urlTrackingMap = null; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -21407,6 +21449,12 @@ $root.waproto = (function() { set: $util.oneOfSetter($oneOfFields) }); + // Virtual OneOf for proto3 optional field + Object.defineProperty(ContextInfo.prototype, "_urlTrackingMap", { + get: $util.oneOfGetter($oneOfFields = ["urlTrackingMap"]), + set: $util.oneOfSetter($oneOfFields) + }); + /** * Creates a new ContextInfo instance using the specified properties. * @function create @@ -21515,6 +21563,8 @@ $root.waproto = (function() { $root.waproto.ContextInfo.ForwardedAIBotMessageInfo.encode(message.forwardedAiBotMessageInfo, writer.uint32(/* id 56, wireType 2 =*/450).fork()).ldelim(); if (message.statusAttributionType != null && Object.hasOwnProperty.call(message, "statusAttributionType")) writer.uint32(/* id 57, wireType 0 =*/456).int32(message.statusAttributionType); + if (message.urlTrackingMap != null && Object.hasOwnProperty.call(message, "urlTrackingMap")) + $root.waproto.UrlTrackingMap.encode(message.urlTrackingMap, writer.uint32(/* id 58, wireType 2 =*/466).fork()).ldelim(); return writer; }; @@ -21717,6 +21767,10 @@ $root.waproto = (function() { message.statusAttributionType = reader.int32(); break; } + case 58: { + message.urlTrackingMap = $root.waproto.UrlTrackingMap.decode(reader, reader.uint32()); + break; + } default: reader.skipType(tag & 7); break; @@ -22005,6 +22059,14 @@ $root.waproto = (function() { break; } } + if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) { + properties._urlTrackingMap = 1; + { + var error = $root.waproto.UrlTrackingMap.verify(message.urlTrackingMap); + if (error) + return "urlTrackingMap." + error; + } + } return null; }; @@ -22181,6 +22243,11 @@ $root.waproto = (function() { message.statusAttributionType = 1; break; } + if (object.urlTrackingMap != null) { + if (typeof object.urlTrackingMap !== "object") + throw TypeError(".waproto.ContextInfo.urlTrackingMap: object expected"); + message.urlTrackingMap = $root.waproto.UrlTrackingMap.fromObject(object.urlTrackingMap); + } return message; }; @@ -22409,6 +22476,11 @@ $root.waproto = (function() { if (options.oneofs) object._statusAttributionType = "statusAttributionType"; } + if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) { + object.urlTrackingMap = $root.waproto.UrlTrackingMap.toObject(message.urlTrackingMap, options); + if (options.oneofs) + object._urlTrackingMap = "urlTrackingMap"; + } return object; }; @@ -64588,7 +64660,7 @@ $root.waproto = (function() { * @property {waproto.Message.InteractiveMessage.IBody|null} [body] InteractiveMessage body * @property {waproto.Message.InteractiveMessage.IFooter|null} [footer] InteractiveMessage footer * @property {waproto.IContextInfo|null} [contextInfo] InteractiveMessage contextInfo - * @property {waproto.Message.InteractiveMessage.IUrlTrackingMap|null} [urlTrackingMap] InteractiveMessage urlTrackingMap + * @property {waproto.IUrlTrackingMap|null} [urlTrackingMap] InteractiveMessage urlTrackingMap * @property {waproto.Message.InteractiveMessage.IShopMessage|null} [shopStorefrontMessage] InteractiveMessage shopStorefrontMessage * @property {waproto.Message.InteractiveMessage.ICollectionMessage|null} [collectionMessage] InteractiveMessage collectionMessage * @property {waproto.Message.InteractiveMessage.INativeFlowMessage|null} [nativeFlowMessage] InteractiveMessage nativeFlowMessage @@ -64644,7 +64716,7 @@ $root.waproto = (function() { /** * InteractiveMessage urlTrackingMap. - * @member {waproto.Message.InteractiveMessage.IUrlTrackingMap|null|undefined} urlTrackingMap + * @member {waproto.IUrlTrackingMap|null|undefined} urlTrackingMap * @memberof waproto.Message.InteractiveMessage * @instance */ @@ -64767,7 +64839,7 @@ $root.waproto = (function() { if (message.contextInfo != null && Object.hasOwnProperty.call(message, "contextInfo")) $root.waproto.ContextInfo.encode(message.contextInfo, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); if (message.urlTrackingMap != null && Object.hasOwnProperty.call(message, "urlTrackingMap")) - $root.waproto.Message.InteractiveMessage.UrlTrackingMap.encode(message.urlTrackingMap, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); + $root.waproto.UrlTrackingMap.encode(message.urlTrackingMap, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; @@ -64819,7 +64891,7 @@ $root.waproto = (function() { break; } case 16: { - message.urlTrackingMap = $root.waproto.Message.InteractiveMessage.UrlTrackingMap.decode(reader, reader.uint32()); + message.urlTrackingMap = $root.waproto.UrlTrackingMap.decode(reader, reader.uint32()); break; } case 4: { @@ -64909,7 +64981,7 @@ $root.waproto = (function() { if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) { properties._urlTrackingMap = 1; { - var error = $root.waproto.Message.InteractiveMessage.UrlTrackingMap.verify(message.urlTrackingMap); + var error = $root.waproto.UrlTrackingMap.verify(message.urlTrackingMap); if (error) return "urlTrackingMap." + error; } @@ -64990,7 +65062,7 @@ $root.waproto = (function() { if (object.urlTrackingMap != null) { if (typeof object.urlTrackingMap !== "object") throw TypeError(".waproto.Message.InteractiveMessage.urlTrackingMap: object expected"); - message.urlTrackingMap = $root.waproto.Message.InteractiveMessage.UrlTrackingMap.fromObject(object.urlTrackingMap); + message.urlTrackingMap = $root.waproto.UrlTrackingMap.fromObject(object.urlTrackingMap); } if (object.shopStorefrontMessage != null) { if (typeof object.shopStorefrontMessage !== "object") @@ -65069,7 +65141,7 @@ $root.waproto = (function() { object._contextInfo = "contextInfo"; } if (message.urlTrackingMap != null && message.hasOwnProperty("urlTrackingMap")) { - object.urlTrackingMap = $root.waproto.Message.InteractiveMessage.UrlTrackingMap.toObject(message.urlTrackingMap, options); + object.urlTrackingMap = $root.waproto.UrlTrackingMap.toObject(message.urlTrackingMap, options); if (options.oneofs) object._urlTrackingMap = "urlTrackingMap"; } @@ -67447,512 +67519,6 @@ $root.waproto = (function() { return ShopMessage; })(); - InteractiveMessage.UrlTrackingMap = (function() { - - /** - * Properties of an UrlTrackingMap. - * @memberof waproto.Message.InteractiveMessage - * @interface IUrlTrackingMap - * @property {Array.|null} [urlTrackingMapElements] UrlTrackingMap urlTrackingMapElements - */ - - /** - * Constructs a new UrlTrackingMap. - * @memberof waproto.Message.InteractiveMessage - * @classdesc Represents an UrlTrackingMap. - * @implements IUrlTrackingMap - * @constructor - * @param {waproto.Message.InteractiveMessage.IUrlTrackingMap=} [properties] Properties to set - */ - function UrlTrackingMap(properties) { - this.urlTrackingMapElements = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UrlTrackingMap urlTrackingMapElements. - * @member {Array.} urlTrackingMapElements - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @instance - */ - UrlTrackingMap.prototype.urlTrackingMapElements = $util.emptyArray; - - /** - * Creates a new UrlTrackingMap instance using the specified properties. - * @function create - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {waproto.Message.InteractiveMessage.IUrlTrackingMap=} [properties] Properties to set - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap} UrlTrackingMap instance - */ - UrlTrackingMap.create = function create(properties) { - return new UrlTrackingMap(properties); - }; - - /** - * Encodes the specified UrlTrackingMap message. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.verify|verify} messages. - * @function encode - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {waproto.Message.InteractiveMessage.IUrlTrackingMap} message UrlTrackingMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UrlTrackingMap.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.urlTrackingMapElements != null && message.urlTrackingMapElements.length) - for (var i = 0; i < message.urlTrackingMapElements.length; ++i) - $root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.encode(message.urlTrackingMapElements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified UrlTrackingMap message, length delimited. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.verify|verify} messages. - * @function encodeDelimited - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {waproto.Message.InteractiveMessage.IUrlTrackingMap} message UrlTrackingMap message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UrlTrackingMap.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UrlTrackingMap message from the specified reader or buffer. - * @function decode - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap} UrlTrackingMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UrlTrackingMap.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.InteractiveMessage.UrlTrackingMap(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - if (!(message.urlTrackingMapElements && message.urlTrackingMapElements.length)) - message.urlTrackingMapElements = []; - message.urlTrackingMapElements.push($root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.decode(reader, reader.uint32())); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UrlTrackingMap message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap} UrlTrackingMap - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UrlTrackingMap.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UrlTrackingMap message. - * @function verify - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UrlTrackingMap.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.urlTrackingMapElements != null && message.hasOwnProperty("urlTrackingMapElements")) { - if (!Array.isArray(message.urlTrackingMapElements)) - return "urlTrackingMapElements: array expected"; - for (var i = 0; i < message.urlTrackingMapElements.length; ++i) { - var error = $root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.verify(message.urlTrackingMapElements[i]); - if (error) - return "urlTrackingMapElements." + error; - } - } - return null; - }; - - /** - * Creates an UrlTrackingMap message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {Object.} object Plain object - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap} UrlTrackingMap - */ - UrlTrackingMap.fromObject = function fromObject(object) { - if (object instanceof $root.waproto.Message.InteractiveMessage.UrlTrackingMap) - return object; - var message = new $root.waproto.Message.InteractiveMessage.UrlTrackingMap(); - if (object.urlTrackingMapElements) { - if (!Array.isArray(object.urlTrackingMapElements)) - throw TypeError(".waproto.Message.InteractiveMessage.UrlTrackingMap.urlTrackingMapElements: array expected"); - message.urlTrackingMapElements = []; - for (var i = 0; i < object.urlTrackingMapElements.length; ++i) { - if (typeof object.urlTrackingMapElements[i] !== "object") - throw TypeError(".waproto.Message.InteractiveMessage.UrlTrackingMap.urlTrackingMapElements: object expected"); - message.urlTrackingMapElements[i] = $root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.fromObject(object.urlTrackingMapElements[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an UrlTrackingMap message. Also converts values to other types if specified. - * @function toObject - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {waproto.Message.InteractiveMessage.UrlTrackingMap} message UrlTrackingMap - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UrlTrackingMap.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.urlTrackingMapElements = []; - if (message.urlTrackingMapElements && message.urlTrackingMapElements.length) { - object.urlTrackingMapElements = []; - for (var j = 0; j < message.urlTrackingMapElements.length; ++j) - object.urlTrackingMapElements[j] = $root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.toObject(message.urlTrackingMapElements[j], options); - } - return object; - }; - - /** - * Converts this UrlTrackingMap to JSON. - * @function toJSON - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @instance - * @returns {Object.} JSON object - */ - UrlTrackingMap.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UrlTrackingMap - * @function getTypeUrl - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UrlTrackingMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/waproto.Message.InteractiveMessage.UrlTrackingMap"; - }; - - UrlTrackingMap.UrlTrackingMapElement = (function() { - - /** - * Properties of an UrlTrackingMapElement. - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @interface IUrlTrackingMapElement - * @property {string|null} [originalUrl] UrlTrackingMapElement originalUrl - * @property {string|null} [unconsentedUsersUrl] UrlTrackingMapElement unconsentedUsersUrl - * @property {string|null} [consentedUsersUrl] UrlTrackingMapElement consentedUsersUrl - */ - - /** - * Constructs a new UrlTrackingMapElement. - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap - * @classdesc Represents an UrlTrackingMapElement. - * @implements IUrlTrackingMapElement - * @constructor - * @param {waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement=} [properties] Properties to set - */ - function UrlTrackingMapElement(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * UrlTrackingMapElement originalUrl. - * @member {string|null|undefined} originalUrl - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @instance - */ - UrlTrackingMapElement.prototype.originalUrl = null; - - /** - * UrlTrackingMapElement unconsentedUsersUrl. - * @member {string|null|undefined} unconsentedUsersUrl - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @instance - */ - UrlTrackingMapElement.prototype.unconsentedUsersUrl = null; - - /** - * UrlTrackingMapElement consentedUsersUrl. - * @member {string|null|undefined} consentedUsersUrl - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @instance - */ - UrlTrackingMapElement.prototype.consentedUsersUrl = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UrlTrackingMapElement.prototype, "_originalUrl", { - get: $util.oneOfGetter($oneOfFields = ["originalUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UrlTrackingMapElement.prototype, "_unconsentedUsersUrl", { - get: $util.oneOfGetter($oneOfFields = ["unconsentedUsersUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - // Virtual OneOf for proto3 optional field - Object.defineProperty(UrlTrackingMapElement.prototype, "_consentedUsersUrl", { - get: $util.oneOfGetter($oneOfFields = ["consentedUsersUrl"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new UrlTrackingMapElement instance using the specified properties. - * @function create - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement=} [properties] Properties to set - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement instance - */ - UrlTrackingMapElement.create = function create(properties) { - return new UrlTrackingMapElement(properties); - }; - - /** - * Encodes the specified UrlTrackingMapElement message. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. - * @function encode - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement} message UrlTrackingMapElement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UrlTrackingMapElement.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.originalUrl != null && Object.hasOwnProperty.call(message, "originalUrl")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalUrl); - if (message.unconsentedUsersUrl != null && Object.hasOwnProperty.call(message, "unconsentedUsersUrl")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.unconsentedUsersUrl); - if (message.consentedUsersUrl != null && Object.hasOwnProperty.call(message, "consentedUsersUrl")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.consentedUsersUrl); - return writer; - }; - - /** - * Encodes the specified UrlTrackingMapElement message, length delimited. Does not implicitly {@link waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. - * @function encodeDelimited - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {waproto.Message.InteractiveMessage.UrlTrackingMap.IUrlTrackingMapElement} message UrlTrackingMapElement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - UrlTrackingMapElement.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an UrlTrackingMapElement message from the specified reader or buffer. - * @function decode - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UrlTrackingMapElement.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: { - message.originalUrl = reader.string(); - break; - } - case 2: { - message.unconsentedUsersUrl = reader.string(); - break; - } - case 3: { - message.consentedUsersUrl = reader.string(); - break; - } - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an UrlTrackingMapElement message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - UrlTrackingMapElement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an UrlTrackingMapElement message. - * @function verify - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - UrlTrackingMapElement.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.originalUrl != null && message.hasOwnProperty("originalUrl")) { - properties._originalUrl = 1; - if (!$util.isString(message.originalUrl)) - return "originalUrl: string expected"; - } - if (message.unconsentedUsersUrl != null && message.hasOwnProperty("unconsentedUsersUrl")) { - properties._unconsentedUsersUrl = 1; - if (!$util.isString(message.unconsentedUsersUrl)) - return "unconsentedUsersUrl: string expected"; - } - if (message.consentedUsersUrl != null && message.hasOwnProperty("consentedUsersUrl")) { - properties._consentedUsersUrl = 1; - if (!$util.isString(message.consentedUsersUrl)) - return "consentedUsersUrl: string expected"; - } - return null; - }; - - /** - * Creates an UrlTrackingMapElement message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {Object.} object Plain object - * @returns {waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement - */ - UrlTrackingMapElement.fromObject = function fromObject(object) { - if (object instanceof $root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement) - return object; - var message = new $root.waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement(); - if (object.originalUrl != null) - message.originalUrl = String(object.originalUrl); - if (object.unconsentedUsersUrl != null) - message.unconsentedUsersUrl = String(object.unconsentedUsersUrl); - if (object.consentedUsersUrl != null) - message.consentedUsersUrl = String(object.consentedUsersUrl); - return message; - }; - - /** - * Creates a plain object from an UrlTrackingMapElement message. Also converts values to other types if specified. - * @function toObject - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement} message UrlTrackingMapElement - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - UrlTrackingMapElement.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.originalUrl != null && message.hasOwnProperty("originalUrl")) { - object.originalUrl = message.originalUrl; - if (options.oneofs) - object._originalUrl = "originalUrl"; - } - if (message.unconsentedUsersUrl != null && message.hasOwnProperty("unconsentedUsersUrl")) { - object.unconsentedUsersUrl = message.unconsentedUsersUrl; - if (options.oneofs) - object._unconsentedUsersUrl = "unconsentedUsersUrl"; - } - if (message.consentedUsersUrl != null && message.hasOwnProperty("consentedUsersUrl")) { - object.consentedUsersUrl = message.consentedUsersUrl; - if (options.oneofs) - object._consentedUsersUrl = "consentedUsersUrl"; - } - return object; - }; - - /** - * Converts this UrlTrackingMapElement to JSON. - * @function toJSON - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @instance - * @returns {Object.} JSON object - */ - UrlTrackingMapElement.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Gets the default type url for UrlTrackingMapElement - * @function getTypeUrl - * @memberof waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement - * @static - * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") - * @returns {string} The default type url - */ - UrlTrackingMapElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { - if (typeUrlPrefix === undefined) { - typeUrlPrefix = "type.googleapis.com"; - } - return typeUrlPrefix + "/waproto.Message.InteractiveMessage.UrlTrackingMap.UrlTrackingMapElement"; - }; - - return UrlTrackingMapElement; - })(); - - return UrlTrackingMap; - })(); - return InteractiveMessage; })(); @@ -137177,6 +136743,545 @@ $root.waproto = (function() { return TemplateButton; })(); + waproto.UrlTrackingMap = (function() { + + /** + * Properties of an UrlTrackingMap. + * @memberof waproto + * @interface IUrlTrackingMap + * @property {Array.|null} [urlTrackingMapElements] UrlTrackingMap urlTrackingMapElements + */ + + /** + * Constructs a new UrlTrackingMap. + * @memberof waproto + * @classdesc Represents an UrlTrackingMap. + * @implements IUrlTrackingMap + * @constructor + * @param {waproto.IUrlTrackingMap=} [properties] Properties to set + */ + function UrlTrackingMap(properties) { + this.urlTrackingMapElements = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UrlTrackingMap urlTrackingMapElements. + * @member {Array.} urlTrackingMapElements + * @memberof waproto.UrlTrackingMap + * @instance + */ + UrlTrackingMap.prototype.urlTrackingMapElements = $util.emptyArray; + + /** + * Creates a new UrlTrackingMap instance using the specified properties. + * @function create + * @memberof waproto.UrlTrackingMap + * @static + * @param {waproto.IUrlTrackingMap=} [properties] Properties to set + * @returns {waproto.UrlTrackingMap} UrlTrackingMap instance + */ + UrlTrackingMap.create = function create(properties) { + return new UrlTrackingMap(properties); + }; + + /** + * Encodes the specified UrlTrackingMap message. Does not implicitly {@link waproto.UrlTrackingMap.verify|verify} messages. + * @function encode + * @memberof waproto.UrlTrackingMap + * @static + * @param {waproto.IUrlTrackingMap} message UrlTrackingMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlTrackingMap.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.urlTrackingMapElements != null && message.urlTrackingMapElements.length) + for (var i = 0; i < message.urlTrackingMapElements.length; ++i) + $root.waproto.UrlTrackingMap.UrlTrackingMapElement.encode(message.urlTrackingMapElements[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UrlTrackingMap message, length delimited. Does not implicitly {@link waproto.UrlTrackingMap.verify|verify} messages. + * @function encodeDelimited + * @memberof waproto.UrlTrackingMap + * @static + * @param {waproto.IUrlTrackingMap} message UrlTrackingMap message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlTrackingMap.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UrlTrackingMap message from the specified reader or buffer. + * @function decode + * @memberof waproto.UrlTrackingMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {waproto.UrlTrackingMap} UrlTrackingMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlTrackingMap.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.UrlTrackingMap(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (!(message.urlTrackingMapElements && message.urlTrackingMapElements.length)) + message.urlTrackingMapElements = []; + message.urlTrackingMapElements.push($root.waproto.UrlTrackingMap.UrlTrackingMapElement.decode(reader, reader.uint32())); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UrlTrackingMap message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof waproto.UrlTrackingMap + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {waproto.UrlTrackingMap} UrlTrackingMap + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlTrackingMap.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UrlTrackingMap message. + * @function verify + * @memberof waproto.UrlTrackingMap + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UrlTrackingMap.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.urlTrackingMapElements != null && message.hasOwnProperty("urlTrackingMapElements")) { + if (!Array.isArray(message.urlTrackingMapElements)) + return "urlTrackingMapElements: array expected"; + for (var i = 0; i < message.urlTrackingMapElements.length; ++i) { + var error = $root.waproto.UrlTrackingMap.UrlTrackingMapElement.verify(message.urlTrackingMapElements[i]); + if (error) + return "urlTrackingMapElements." + error; + } + } + return null; + }; + + /** + * Creates an UrlTrackingMap message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof waproto.UrlTrackingMap + * @static + * @param {Object.} object Plain object + * @returns {waproto.UrlTrackingMap} UrlTrackingMap + */ + UrlTrackingMap.fromObject = function fromObject(object) { + if (object instanceof $root.waproto.UrlTrackingMap) + return object; + var message = new $root.waproto.UrlTrackingMap(); + if (object.urlTrackingMapElements) { + if (!Array.isArray(object.urlTrackingMapElements)) + throw TypeError(".waproto.UrlTrackingMap.urlTrackingMapElements: array expected"); + message.urlTrackingMapElements = []; + for (var i = 0; i < object.urlTrackingMapElements.length; ++i) { + if (typeof object.urlTrackingMapElements[i] !== "object") + throw TypeError(".waproto.UrlTrackingMap.urlTrackingMapElements: object expected"); + message.urlTrackingMapElements[i] = $root.waproto.UrlTrackingMap.UrlTrackingMapElement.fromObject(object.urlTrackingMapElements[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an UrlTrackingMap message. Also converts values to other types if specified. + * @function toObject + * @memberof waproto.UrlTrackingMap + * @static + * @param {waproto.UrlTrackingMap} message UrlTrackingMap + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UrlTrackingMap.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.urlTrackingMapElements = []; + if (message.urlTrackingMapElements && message.urlTrackingMapElements.length) { + object.urlTrackingMapElements = []; + for (var j = 0; j < message.urlTrackingMapElements.length; ++j) + object.urlTrackingMapElements[j] = $root.waproto.UrlTrackingMap.UrlTrackingMapElement.toObject(message.urlTrackingMapElements[j], options); + } + return object; + }; + + /** + * Converts this UrlTrackingMap to JSON. + * @function toJSON + * @memberof waproto.UrlTrackingMap + * @instance + * @returns {Object.} JSON object + */ + UrlTrackingMap.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UrlTrackingMap + * @function getTypeUrl + * @memberof waproto.UrlTrackingMap + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UrlTrackingMap.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/waproto.UrlTrackingMap"; + }; + + UrlTrackingMap.UrlTrackingMapElement = (function() { + + /** + * Properties of an UrlTrackingMapElement. + * @memberof waproto.UrlTrackingMap + * @interface IUrlTrackingMapElement + * @property {string|null} [originalUrl] UrlTrackingMapElement originalUrl + * @property {string|null} [unconsentedUsersUrl] UrlTrackingMapElement unconsentedUsersUrl + * @property {string|null} [consentedUsersUrl] UrlTrackingMapElement consentedUsersUrl + * @property {number|null} [cardIndex] UrlTrackingMapElement cardIndex + */ + + /** + * Constructs a new UrlTrackingMapElement. + * @memberof waproto.UrlTrackingMap + * @classdesc Represents an UrlTrackingMapElement. + * @implements IUrlTrackingMapElement + * @constructor + * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement=} [properties] Properties to set + */ + function UrlTrackingMapElement(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UrlTrackingMapElement originalUrl. + * @member {string|null|undefined} originalUrl + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @instance + */ + UrlTrackingMapElement.prototype.originalUrl = null; + + /** + * UrlTrackingMapElement unconsentedUsersUrl. + * @member {string|null|undefined} unconsentedUsersUrl + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @instance + */ + UrlTrackingMapElement.prototype.unconsentedUsersUrl = null; + + /** + * UrlTrackingMapElement consentedUsersUrl. + * @member {string|null|undefined} consentedUsersUrl + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @instance + */ + UrlTrackingMapElement.prototype.consentedUsersUrl = null; + + /** + * UrlTrackingMapElement cardIndex. + * @member {number|null|undefined} cardIndex + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @instance + */ + UrlTrackingMapElement.prototype.cardIndex = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlTrackingMapElement.prototype, "_originalUrl", { + get: $util.oneOfGetter($oneOfFields = ["originalUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlTrackingMapElement.prototype, "_unconsentedUsersUrl", { + get: $util.oneOfGetter($oneOfFields = ["unconsentedUsersUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlTrackingMapElement.prototype, "_consentedUsersUrl", { + get: $util.oneOfGetter($oneOfFields = ["consentedUsersUrl"]), + set: $util.oneOfSetter($oneOfFields) + }); + + // Virtual OneOf for proto3 optional field + Object.defineProperty(UrlTrackingMapElement.prototype, "_cardIndex", { + get: $util.oneOfGetter($oneOfFields = ["cardIndex"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new UrlTrackingMapElement instance using the specified properties. + * @function create + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement=} [properties] Properties to set + * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement instance + */ + UrlTrackingMapElement.create = function create(properties) { + return new UrlTrackingMapElement(properties); + }; + + /** + * Encodes the specified UrlTrackingMapElement message. Does not implicitly {@link waproto.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. + * @function encode + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement} message UrlTrackingMapElement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlTrackingMapElement.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.originalUrl != null && Object.hasOwnProperty.call(message, "originalUrl")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.originalUrl); + if (message.unconsentedUsersUrl != null && Object.hasOwnProperty.call(message, "unconsentedUsersUrl")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.unconsentedUsersUrl); + if (message.consentedUsersUrl != null && Object.hasOwnProperty.call(message, "consentedUsersUrl")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.consentedUsersUrl); + if (message.cardIndex != null && Object.hasOwnProperty.call(message, "cardIndex")) + writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.cardIndex); + return writer; + }; + + /** + * Encodes the specified UrlTrackingMapElement message, length delimited. Does not implicitly {@link waproto.UrlTrackingMap.UrlTrackingMapElement.verify|verify} messages. + * @function encodeDelimited + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {waproto.UrlTrackingMap.IUrlTrackingMapElement} message UrlTrackingMapElement message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UrlTrackingMapElement.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UrlTrackingMapElement message from the specified reader or buffer. + * @function decode + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlTrackingMapElement.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.waproto.UrlTrackingMap.UrlTrackingMapElement(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + message.originalUrl = reader.string(); + break; + } + case 2: { + message.unconsentedUsersUrl = reader.string(); + break; + } + case 3: { + message.consentedUsersUrl = reader.string(); + break; + } + case 4: { + message.cardIndex = reader.uint32(); + break; + } + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UrlTrackingMapElement message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UrlTrackingMapElement.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UrlTrackingMapElement message. + * @function verify + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UrlTrackingMapElement.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.originalUrl != null && message.hasOwnProperty("originalUrl")) { + properties._originalUrl = 1; + if (!$util.isString(message.originalUrl)) + return "originalUrl: string expected"; + } + if (message.unconsentedUsersUrl != null && message.hasOwnProperty("unconsentedUsersUrl")) { + properties._unconsentedUsersUrl = 1; + if (!$util.isString(message.unconsentedUsersUrl)) + return "unconsentedUsersUrl: string expected"; + } + if (message.consentedUsersUrl != null && message.hasOwnProperty("consentedUsersUrl")) { + properties._consentedUsersUrl = 1; + if (!$util.isString(message.consentedUsersUrl)) + return "consentedUsersUrl: string expected"; + } + if (message.cardIndex != null && message.hasOwnProperty("cardIndex")) { + properties._cardIndex = 1; + if (!$util.isInteger(message.cardIndex)) + return "cardIndex: integer expected"; + } + return null; + }; + + /** + * Creates an UrlTrackingMapElement message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {Object.} object Plain object + * @returns {waproto.UrlTrackingMap.UrlTrackingMapElement} UrlTrackingMapElement + */ + UrlTrackingMapElement.fromObject = function fromObject(object) { + if (object instanceof $root.waproto.UrlTrackingMap.UrlTrackingMapElement) + return object; + var message = new $root.waproto.UrlTrackingMap.UrlTrackingMapElement(); + if (object.originalUrl != null) + message.originalUrl = String(object.originalUrl); + if (object.unconsentedUsersUrl != null) + message.unconsentedUsersUrl = String(object.unconsentedUsersUrl); + if (object.consentedUsersUrl != null) + message.consentedUsersUrl = String(object.consentedUsersUrl); + if (object.cardIndex != null) + message.cardIndex = object.cardIndex >>> 0; + return message; + }; + + /** + * Creates a plain object from an UrlTrackingMapElement message. Also converts values to other types if specified. + * @function toObject + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {waproto.UrlTrackingMap.UrlTrackingMapElement} message UrlTrackingMapElement + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UrlTrackingMapElement.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.originalUrl != null && message.hasOwnProperty("originalUrl")) { + object.originalUrl = message.originalUrl; + if (options.oneofs) + object._originalUrl = "originalUrl"; + } + if (message.unconsentedUsersUrl != null && message.hasOwnProperty("unconsentedUsersUrl")) { + object.unconsentedUsersUrl = message.unconsentedUsersUrl; + if (options.oneofs) + object._unconsentedUsersUrl = "unconsentedUsersUrl"; + } + if (message.consentedUsersUrl != null && message.hasOwnProperty("consentedUsersUrl")) { + object.consentedUsersUrl = message.consentedUsersUrl; + if (options.oneofs) + object._consentedUsersUrl = "consentedUsersUrl"; + } + if (message.cardIndex != null && message.hasOwnProperty("cardIndex")) { + object.cardIndex = message.cardIndex; + if (options.oneofs) + object._cardIndex = "cardIndex"; + } + return object; + }; + + /** + * Converts this UrlTrackingMapElement to JSON. + * @function toJSON + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @instance + * @returns {Object.} JSON object + */ + UrlTrackingMapElement.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * Gets the default type url for UrlTrackingMapElement + * @function getTypeUrl + * @memberof waproto.UrlTrackingMap.UrlTrackingMapElement + * @static + * @param {string} [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") + * @returns {string} The default type url + */ + UrlTrackingMapElement.getTypeUrl = function getTypeUrl(typeUrlPrefix) { + if (typeUrlPrefix === undefined) { + typeUrlPrefix = "type.googleapis.com"; + } + return typeUrlPrefix + "/waproto.UrlTrackingMap.UrlTrackingMapElement"; + }; + + return UrlTrackingMapElement; + })(); + + return UrlTrackingMap; + })(); + waproto.UserPassword = (function() { /**