@vreden/meta
Version:
Baileys is a lightweight JavaScript library for interacting with the WhatsApp Web API using WebSocket.
1,201 lines (957 loc) • 1.66 MB
TypeScript
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace MdStorageMsgRowOpaqueData. */
export namespace MdStorageMsgRowOpaqueData {
/** Properties of a MsgOpaqueData. */
interface IMsgOpaqueData {
/** MsgOpaqueData body */
body?: (string|null);
/** MsgOpaqueData caption */
caption?: (string|null);
/** MsgOpaqueData lng */
lng?: (number|null);
/** MsgOpaqueData isLive */
isLive?: (boolean|null);
/** MsgOpaqueData lat */
lat?: (number|null);
/** MsgOpaqueData paymentAmount1000 */
paymentAmount1000?: (number|null);
/** MsgOpaqueData paymentNoteMsgBody */
paymentNoteMsgBody?: (string|null);
/** MsgOpaqueData matchedText */
matchedText?: (string|null);
/** MsgOpaqueData title */
title?: (string|null);
/** MsgOpaqueData description */
description?: (string|null);
/** MsgOpaqueData futureproofBuffer */
futureproofBuffer?: (Uint8Array|null);
/** MsgOpaqueData clientUrl */
clientUrl?: (string|null);
/** MsgOpaqueData loc */
loc?: (string|null);
/** MsgOpaqueData pollName */
pollName?: (string|null);
/** MsgOpaqueData pollOptions */
pollOptions?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption[]|null);
/** MsgOpaqueData pollSelectableOptionsCount */
pollSelectableOptionsCount?: (number|null);
/** MsgOpaqueData messageSecret */
messageSecret?: (Uint8Array|null);
/** MsgOpaqueData originalSelfAuthor */
originalSelfAuthor?: (string|null);
/** MsgOpaqueData senderTimestampMs */
senderTimestampMs?: (number|Long|null);
/** MsgOpaqueData pollUpdateParentKey */
pollUpdateParentKey?: (string|null);
/** MsgOpaqueData encPollVote */
encPollVote?: (E2E.Message.IPollEncValue|null);
/** MsgOpaqueData isSentCagPollCreation */
isSentCagPollCreation?: (boolean|null);
/** MsgOpaqueData pollContentType */
pollContentType?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.PollContentType|null);
/** MsgOpaqueData pollVotesSnapshot */
pollVotesSnapshot?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVotesSnapshot|null);
/** MsgOpaqueData encReactionTargetMessageKey */
encReactionTargetMessageKey?: (string|null);
/** MsgOpaqueData encReactionEncPayload */
encReactionEncPayload?: (Uint8Array|null);
/** MsgOpaqueData encReactionEncIv */
encReactionEncIv?: (Uint8Array|null);
/** MsgOpaqueData botMessageSecret */
botMessageSecret?: (Uint8Array|null);
/** MsgOpaqueData targetMessageKey */
targetMessageKey?: (string|null);
/** MsgOpaqueData encPayload */
encPayload?: (Uint8Array|null);
/** MsgOpaqueData encIv */
encIv?: (Uint8Array|null);
/** MsgOpaqueData eventName */
eventName?: (string|null);
/** MsgOpaqueData isEventCanceled */
isEventCanceled?: (boolean|null);
/** MsgOpaqueData eventDescription */
eventDescription?: (string|null);
/** MsgOpaqueData eventJoinLink */
eventJoinLink?: (string|null);
/** MsgOpaqueData eventStartTime */
eventStartTime?: (number|Long|null);
/** MsgOpaqueData eventLocation */
eventLocation?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IEventLocation|null);
/** MsgOpaqueData eventEndTime */
eventEndTime?: (number|Long|null);
/** MsgOpaqueData eventIsScheduledCall */
eventIsScheduledCall?: (boolean|null);
/** MsgOpaqueData eventExtraGuestsAllowed */
eventExtraGuestsAllowed?: (boolean|null);
/** MsgOpaqueData plainProtobufBytes */
plainProtobufBytes?: (Uint8Array|null);
}
/** Represents a MsgOpaqueData. */
class MsgOpaqueData implements IMsgOpaqueData {
/**
* Constructs a new MsgOpaqueData.
* @param [properties] Properties to set
*/
constructor(properties?: MdStorageMsgRowOpaqueData.IMsgOpaqueData);
/** MsgOpaqueData body. */
public body: string;
/** MsgOpaqueData caption. */
public caption: string;
/** MsgOpaqueData lng. */
public lng: number;
/** MsgOpaqueData isLive. */
public isLive: boolean;
/** MsgOpaqueData lat. */
public lat: number;
/** MsgOpaqueData paymentAmount1000. */
public paymentAmount1000: number;
/** MsgOpaqueData paymentNoteMsgBody. */
public paymentNoteMsgBody: string;
/** MsgOpaqueData matchedText. */
public matchedText: string;
/** MsgOpaqueData title. */
public title: string;
/** MsgOpaqueData description. */
public description: string;
/** MsgOpaqueData futureproofBuffer. */
public futureproofBuffer: Uint8Array;
/** MsgOpaqueData clientUrl. */
public clientUrl: string;
/** MsgOpaqueData loc. */
public loc: string;
/** MsgOpaqueData pollName. */
public pollName: string;
/** MsgOpaqueData pollOptions. */
public pollOptions: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption[];
/** MsgOpaqueData pollSelectableOptionsCount. */
public pollSelectableOptionsCount: number;
/** MsgOpaqueData messageSecret. */
public messageSecret: Uint8Array;
/** MsgOpaqueData originalSelfAuthor. */
public originalSelfAuthor: string;
/** MsgOpaqueData senderTimestampMs. */
public senderTimestampMs: (number|Long);
/** MsgOpaqueData pollUpdateParentKey. */
public pollUpdateParentKey: string;
/** MsgOpaqueData encPollVote. */
public encPollVote?: (E2E.Message.IPollEncValue|null);
/** MsgOpaqueData isSentCagPollCreation. */
public isSentCagPollCreation: boolean;
/** MsgOpaqueData pollContentType. */
public pollContentType: MdStorageMsgRowOpaqueData.MsgOpaqueData.PollContentType;
/** MsgOpaqueData pollVotesSnapshot. */
public pollVotesSnapshot?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVotesSnapshot|null);
/** MsgOpaqueData encReactionTargetMessageKey. */
public encReactionTargetMessageKey: string;
/** MsgOpaqueData encReactionEncPayload. */
public encReactionEncPayload: Uint8Array;
/** MsgOpaqueData encReactionEncIv. */
public encReactionEncIv: Uint8Array;
/** MsgOpaqueData botMessageSecret. */
public botMessageSecret: Uint8Array;
/** MsgOpaqueData targetMessageKey. */
public targetMessageKey: string;
/** MsgOpaqueData encPayload. */
public encPayload: Uint8Array;
/** MsgOpaqueData encIv. */
public encIv: Uint8Array;
/** MsgOpaqueData eventName. */
public eventName: string;
/** MsgOpaqueData isEventCanceled. */
public isEventCanceled: boolean;
/** MsgOpaqueData eventDescription. */
public eventDescription: string;
/** MsgOpaqueData eventJoinLink. */
public eventJoinLink: string;
/** MsgOpaqueData eventStartTime. */
public eventStartTime: (number|Long);
/** MsgOpaqueData eventLocation. */
public eventLocation?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IEventLocation|null);
/** MsgOpaqueData eventEndTime. */
public eventEndTime: (number|Long);
/** MsgOpaqueData eventIsScheduledCall. */
public eventIsScheduledCall: boolean;
/** MsgOpaqueData eventExtraGuestsAllowed. */
public eventExtraGuestsAllowed: boolean;
/** MsgOpaqueData plainProtobufBytes. */
public plainProtobufBytes: Uint8Array;
/**
* Creates a new MsgOpaqueData instance using the specified properties.
* @param [properties] Properties to set
* @returns MsgOpaqueData instance
*/
public static create(properties?: MdStorageMsgRowOpaqueData.IMsgOpaqueData): MdStorageMsgRowOpaqueData.MsgOpaqueData;
/**
* Encodes the specified MsgOpaqueData message. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.verify|verify} messages.
* @param message MsgOpaqueData message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: MdStorageMsgRowOpaqueData.IMsgOpaqueData, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MsgOpaqueData message, length delimited. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.verify|verify} messages.
* @param message MsgOpaqueData message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: MdStorageMsgRowOpaqueData.IMsgOpaqueData, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a MsgOpaqueData message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns MsgOpaqueData
* @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): MdStorageMsgRowOpaqueData.MsgOpaqueData;
/**
* Decodes a MsgOpaqueData message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns MsgOpaqueData
* @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)): MdStorageMsgRowOpaqueData.MsgOpaqueData;
/**
* Verifies a MsgOpaqueData 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 a MsgOpaqueData message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns MsgOpaqueData
*/
public static fromObject(object: { [k: string]: any }): MdStorageMsgRowOpaqueData.MsgOpaqueData;
/**
* Creates a plain object from a MsgOpaqueData message. Also converts values to other types if specified.
* @param message MsgOpaqueData
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MdStorageMsgRowOpaqueData.MsgOpaqueData, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this MsgOpaqueData to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for MsgOpaqueData
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace MsgOpaqueData {
/** Properties of an EventLocation. */
interface IEventLocation {
/** EventLocation degreesLatitude */
degreesLatitude?: (number|null);
/** EventLocation degreesLongitude */
degreesLongitude?: (number|null);
/** EventLocation name */
name?: (string|null);
/** EventLocation address */
address?: (string|null);
/** EventLocation url */
url?: (string|null);
/** EventLocation jpegThumbnail */
jpegThumbnail?: (Uint8Array|null);
}
/** Represents an EventLocation. */
class EventLocation implements IEventLocation {
/**
* Constructs a new EventLocation.
* @param [properties] Properties to set
*/
constructor(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IEventLocation);
/** EventLocation degreesLatitude. */
public degreesLatitude: number;
/** EventLocation degreesLongitude. */
public degreesLongitude: number;
/** EventLocation name. */
public name: string;
/** EventLocation address. */
public address: string;
/** EventLocation url. */
public url: string;
/** EventLocation jpegThumbnail. */
public jpegThumbnail: Uint8Array;
/**
* Creates a new EventLocation instance using the specified properties.
* @param [properties] Properties to set
* @returns EventLocation instance
*/
public static create(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IEventLocation): MdStorageMsgRowOpaqueData.MsgOpaqueData.EventLocation;
/**
* Encodes the specified EventLocation message. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.EventLocation.verify|verify} messages.
* @param message EventLocation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IEventLocation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified EventLocation message, length delimited. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.EventLocation.verify|verify} messages.
* @param message EventLocation message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IEventLocation, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an EventLocation message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns EventLocation
* @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): MdStorageMsgRowOpaqueData.MsgOpaqueData.EventLocation;
/**
* Decodes an EventLocation message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns EventLocation
* @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)): MdStorageMsgRowOpaqueData.MsgOpaqueData.EventLocation;
/**
* Verifies an EventLocation 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 EventLocation message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns EventLocation
*/
public static fromObject(object: { [k: string]: any }): MdStorageMsgRowOpaqueData.MsgOpaqueData.EventLocation;
/**
* Creates a plain object from an EventLocation message. Also converts values to other types if specified.
* @param message EventLocation
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.EventLocation, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this EventLocation to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for EventLocation
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** PollContentType enum. */
enum PollContentType {
UNKNOWN = 0,
TEXT = 1,
IMAGE = 2
}
/** Properties of a PollOption. */
interface IPollOption {
/** PollOption name */
name?: (string|null);
/** PollOption hash */
hash?: (string|null);
}
/** Represents a PollOption. */
class PollOption implements IPollOption {
/**
* Constructs a new PollOption.
* @param [properties] Properties to set
*/
constructor(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption);
/** PollOption name. */
public name: string;
/** PollOption hash. */
public hash: string;
/**
* Creates a new PollOption instance using the specified properties.
* @param [properties] Properties to set
* @returns PollOption instance
*/
public static create(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollOption;
/**
* Encodes the specified PollOption message. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.PollOption.verify|verify} messages.
* @param message PollOption message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PollOption message, length delimited. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.PollOption.verify|verify} messages.
* @param message PollOption message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PollOption message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PollOption
* @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): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollOption;
/**
* Decodes a PollOption message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PollOption
* @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)): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollOption;
/**
* Verifies a PollOption 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 a PollOption message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PollOption
*/
public static fromObject(object: { [k: string]: any }): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollOption;
/**
* Creates a plain object from a PollOption message. Also converts values to other types if specified.
* @param message PollOption
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.PollOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PollOption to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PollOption
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a PollVoteSnapshot. */
interface IPollVoteSnapshot {
/** PollVoteSnapshot option */
option?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption|null);
/** PollVoteSnapshot optionVoteCount */
optionVoteCount?: (number|null);
}
/** Represents a PollVoteSnapshot. */
class PollVoteSnapshot implements IPollVoteSnapshot {
/**
* Constructs a new PollVoteSnapshot.
* @param [properties] Properties to set
*/
constructor(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVoteSnapshot);
/** PollVoteSnapshot option. */
public option?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollOption|null);
/** PollVoteSnapshot optionVoteCount. */
public optionVoteCount: number;
/**
* Creates a new PollVoteSnapshot instance using the specified properties.
* @param [properties] Properties to set
* @returns PollVoteSnapshot instance
*/
public static create(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVoteSnapshot): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVoteSnapshot;
/**
* Encodes the specified PollVoteSnapshot message. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVoteSnapshot.verify|verify} messages.
* @param message PollVoteSnapshot message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVoteSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PollVoteSnapshot message, length delimited. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVoteSnapshot.verify|verify} messages.
* @param message PollVoteSnapshot message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVoteSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PollVoteSnapshot message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PollVoteSnapshot
* @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): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVoteSnapshot;
/**
* Decodes a PollVoteSnapshot message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PollVoteSnapshot
* @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)): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVoteSnapshot;
/**
* Verifies a PollVoteSnapshot 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 a PollVoteSnapshot message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PollVoteSnapshot
*/
public static fromObject(object: { [k: string]: any }): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVoteSnapshot;
/**
* Creates a plain object from a PollVoteSnapshot message. Also converts values to other types if specified.
* @param message PollVoteSnapshot
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVoteSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PollVoteSnapshot to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PollVoteSnapshot
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a PollVotesSnapshot. */
interface IPollVotesSnapshot {
/** PollVotesSnapshot pollVotes */
pollVotes?: (MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVoteSnapshot[]|null);
}
/** Represents a PollVotesSnapshot. */
class PollVotesSnapshot implements IPollVotesSnapshot {
/**
* Constructs a new PollVotesSnapshot.
* @param [properties] Properties to set
*/
constructor(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVotesSnapshot);
/** PollVotesSnapshot pollVotes. */
public pollVotes: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVoteSnapshot[];
/**
* Creates a new PollVotesSnapshot instance using the specified properties.
* @param [properties] Properties to set
* @returns PollVotesSnapshot instance
*/
public static create(properties?: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVotesSnapshot): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVotesSnapshot;
/**
* Encodes the specified PollVotesSnapshot message. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVotesSnapshot.verify|verify} messages.
* @param message PollVotesSnapshot message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVotesSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PollVotesSnapshot message, length delimited. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVotesSnapshot.verify|verify} messages.
* @param message PollVotesSnapshot message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.IPollVotesSnapshot, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PollVotesSnapshot message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PollVotesSnapshot
* @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): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVotesSnapshot;
/**
* Decodes a PollVotesSnapshot message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PollVotesSnapshot
* @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)): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVotesSnapshot;
/**
* Verifies a PollVotesSnapshot 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 a PollVotesSnapshot message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PollVotesSnapshot
*/
public static fromObject(object: { [k: string]: any }): MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVotesSnapshot;
/**
* Creates a plain object from a PollVotesSnapshot message. Also converts values to other types if specified.
* @param message PollVotesSnapshot
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MdStorageMsgRowOpaqueData.MsgOpaqueData.PollVotesSnapshot, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PollVotesSnapshot to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PollVotesSnapshot
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Properties of a PollEncValue. */
interface IPollEncValue {
/** PollEncValue encPayload */
encPayload?: (Uint8Array|null);
/** PollEncValue encIv */
encIv?: (Uint8Array|null);
}
/** Represents a PollEncValue. */
class PollEncValue implements IPollEncValue {
/**
* Constructs a new PollEncValue.
* @param [properties] Properties to set
*/
constructor(properties?: MdStorageMsgRowOpaqueData.IPollEncValue);
/** PollEncValue encPayload. */
public encPayload: Uint8Array;
/** PollEncValue encIv. */
public encIv: Uint8Array;
/**
* Creates a new PollEncValue instance using the specified properties.
* @param [properties] Properties to set
* @returns PollEncValue instance
*/
public static create(properties?: MdStorageMsgRowOpaqueData.IPollEncValue): MdStorageMsgRowOpaqueData.PollEncValue;
/**
* Encodes the specified PollEncValue message. Does not implicitly {@link MdStorageMsgRowOpaqueData.PollEncValue.verify|verify} messages.
* @param message PollEncValue message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: MdStorageMsgRowOpaqueData.IPollEncValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PollEncValue message, length delimited. Does not implicitly {@link MdStorageMsgRowOpaqueData.PollEncValue.verify|verify} messages.
* @param message PollEncValue message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: MdStorageMsgRowOpaqueData.IPollEncValue, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PollEncValue message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PollEncValue
* @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): MdStorageMsgRowOpaqueData.PollEncValue;
/**
* Decodes a PollEncValue message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PollEncValue
* @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)): MdStorageMsgRowOpaqueData.PollEncValue;
/**
* Verifies a PollEncValue 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 a PollEncValue message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PollEncValue
*/
public static fromObject(object: { [k: string]: any }): MdStorageMsgRowOpaqueData.PollEncValue;
/**
* Creates a plain object from a PollEncValue message. Also converts values to other types if specified.
* @param message PollEncValue
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MdStorageMsgRowOpaqueData.PollEncValue, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PollEncValue to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PollEncValue
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a MsgRowOpaqueData. */
interface IMsgRowOpaqueData {
/** MsgRowOpaqueData currentMsg */
currentMsg?: (MdStorageMsgRowOpaqueData.IMsgOpaqueData|null);
/** MsgRowOpaqueData quotedMsg */
quotedMsg?: (MdStorageMsgRowOpaqueData.IMsgOpaqueData|null);
}
/** Represents a MsgRowOpaqueData. */
class MsgRowOpaqueData implements IMsgRowOpaqueData {
/**
* Constructs a new MsgRowOpaqueData.
* @param [properties] Properties to set
*/
constructor(properties?: MdStorageMsgRowOpaqueData.IMsgRowOpaqueData);
/** MsgRowOpaqueData currentMsg. */
public currentMsg?: (MdStorageMsgRowOpaqueData.IMsgOpaqueData|null);
/** MsgRowOpaqueData quotedMsg. */
public quotedMsg?: (MdStorageMsgRowOpaqueData.IMsgOpaqueData|null);
/**
* Creates a new MsgRowOpaqueData instance using the specified properties.
* @param [properties] Properties to set
* @returns MsgRowOpaqueData instance
*/
public static create(properties?: MdStorageMsgRowOpaqueData.IMsgRowOpaqueData): MdStorageMsgRowOpaqueData.MsgRowOpaqueData;
/**
* Encodes the specified MsgRowOpaqueData message. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgRowOpaqueData.verify|verify} messages.
* @param message MsgRowOpaqueData message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: MdStorageMsgRowOpaqueData.IMsgRowOpaqueData, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MsgRowOpaqueData message, length delimited. Does not implicitly {@link MdStorageMsgRowOpaqueData.MsgRowOpaqueData.verify|verify} messages.
* @param message MsgRowOpaqueData message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: MdStorageMsgRowOpaqueData.IMsgRowOpaqueData, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a MsgRowOpaqueData message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns MsgRowOpaqueData
* @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): MdStorageMsgRowOpaqueData.MsgRowOpaqueData;
/**
* Decodes a MsgRowOpaqueData message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns MsgRowOpaqueData
* @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)): MdStorageMsgRowOpaqueData.MsgRowOpaqueData;
/**
* Verifies a MsgRowOpaqueData 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 a MsgRowOpaqueData message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns MsgRowOpaqueData
*/
public static fromObject(object: { [k: string]: any }): MdStorageMsgRowOpaqueData.MsgRowOpaqueData;
/**
* Creates a plain object from a MsgRowOpaqueData message. Also converts values to other types if specified.
* @param message MsgRowOpaqueData
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: MdStorageMsgRowOpaqueData.MsgRowOpaqueData, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this MsgRowOpaqueData to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for MsgRowOpaqueData
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Namespace E2E. */
export namespace E2E {
/** Properties of a AIQueryFanout. */
interface IAIQueryFanout {
/** AIQueryFanout messageKey */
messageKey?: (Protocol.IMessageKey|null);
/** AIQueryFanout message */
message?: (E2E.IMessage|null);
/** AIQueryFanout timestamp */
timestamp?: (number|Long|null);
}
/** Represents a AIQueryFanout. */
class AIQueryFanout implements IAIQueryFanout {
/**
* Constructs a new AIQueryFanout.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IAIQueryFanout);
/** AIQueryFanout messageKey. */
public messageKey?: (Protocol.IMessageKey|null);
/** AIQueryFanout message. */
public message?: (E2E.IMessage|null);
/** AIQueryFanout timestamp. */
public timestamp: (number|Long);
/**
* Creates a new AIQueryFanout instance using the specified properties.
* @param [properties] Properties to set
* @returns AIQueryFanout instance
*/
public static create(properties?: E2E.IAIQueryFanout): E2E.AIQueryFanout;
/**
* Encodes the specified AIQueryFanout message. Does not implicitly {@link E2E.AIQueryFanout.verify|verify} messages.
* @param message AIQueryFanout message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IAIQueryFanout, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIQueryFanout message, length delimited. Does not implicitly {@link E2E.AIQueryFanout.verify|verify} messages.
* @param message AIQueryFanout message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IAIQueryFanout, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIQueryFanout message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AIQueryFanout
* @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): E2E.AIQueryFanout;
/**
* Decodes a AIQueryFanout message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AIQueryFanout
* @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)): E2E.AIQueryFanout;
/**
* Verifies a AIQueryFanout 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 a AIQueryFanout message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AIQueryFanout
*/
public static fromObject(object: { [k: string]: any }): E2E.AIQueryFanout;
/**
* Creates a plain object from a AIQueryFanout message. Also converts values to other types if specified.
* @param message AIQueryFanout
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: E2E.AIQueryFanout, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AIQueryFanout to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AIQueryFanout
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a AIRichResponseMessage. */
interface IAIRichResponseMessage {
/** AIRichResponseMessage messageType */
messageType?: (AICommon.AIRichResponseMessageType|null);
/** AIRichResponseMessage submessages */
submessages?: (AICommon.IAIRichResponseSubMessage[]|null);
/** AIRichResponseMessage unifiedResponse */
unifiedResponse?: (AICommon.IAIRichResponseUnifiedResponse|null);
/** AIRichResponseMessage contextInfo */
contextInfo?: (E2E.IContextInfo|null);
}
/** Represents a AIRichResponseMessage. */
class AIRichResponseMessage implements IAIRichResponseMessage {
/**
* Constructs a new AIRichResponseMessage.
* @param [properties] Properties to set
*/
constructor(properties?: E2E.IAIRichResponseMessage);
/** AIRichResponseMessage messageType. */
public messageType: AICommon.AIRichResponseMessageType;
/** AIRichResponseMessage submessages. */
public submessages: AICommon.IAIRichResponseSubMessage[];
/** AIRichResponseMessage unifiedResponse. */
public unifiedResponse?: (AICommon.IAIRichResponseUnifiedResponse|null);
/** AIRichResponseMessage contextInfo. */
public contextInfo?: (E2E.IContextInfo|null);
/**
* Creates a new AIRichResponseMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns AIRichResponseMessage instance
*/
public static create(properties?: E2E.IAIRichResponseMessage): E2E.AIRichResponseMessage;
/**
* Encodes the specified AIRichResponseMessage message. Does not implicitly {@link E2E.AIRichResponseMessage.verify|verify} messages.
* @param message AIRichResponseMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: E2E.IAIRichResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIRichResponseMessage message, length delimited. Does not implicitly {@link E2E.AIRichResponseMessage.verify|verify} messages.
* @param message AIRichResponseMessage message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: E2E.IAIRichResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIRichResponseMessage message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AIRichResponseMessage
* @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): E2E.AIRichResponseMessage;
/**
* Decodes a AIRichResponseMessage message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AIRichResponseMessage
* @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)): E2E.AIRichResponseMessage;
/**
* Verifies a AIRichResponseMessage 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 a AIRichResponseMessage message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AIRichResponseMessage
*/
public static fromObject(object: { [k: string]: any }): E2E.AIRichResponseMessage;
/**
* Creates a plain object from a AIRichResponseMessage message. Also converts values to other types if specified.
* @param message AIRichResponseMessage
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(