@zendlora/baileys
Version:
WhatsApp API Modified By Zendlora
1,085 lines (891 loc) • 2.15 MB
TypeScript
import * as $protobuf from "protobufjs";
import Long = require("long");
/** Namespace proto. */
export namespace proto {
/** Properties of a ADVDeviceIdentity. */
interface IADVDeviceIdentity {
/** ADVDeviceIdentity rawId */
rawId?: (number|null);
/** ADVDeviceIdentity timestamp */
timestamp?: (number|Long|null);
/** ADVDeviceIdentity keyIndex */
keyIndex?: (number|null);
/** ADVDeviceIdentity accountType */
accountType?: (proto.ADVEncryptionType|null);
/** ADVDeviceIdentity deviceType */
deviceType?: (proto.ADVEncryptionType|null);
}
/** Represents a ADVDeviceIdentity. */
class ADVDeviceIdentity implements IADVDeviceIdentity {
/**
* Constructs a new ADVDeviceIdentity.
* @param [properties] Properties to set
*/
constructor(properties?: proto.IADVDeviceIdentity);
/** ADVDeviceIdentity rawId. */
public rawId: number;
/** ADVDeviceIdentity timestamp. */
public timestamp: (number|Long);
/** ADVDeviceIdentity keyIndex. */
public keyIndex: number;
/** ADVDeviceIdentity accountType. */
public accountType: proto.ADVEncryptionType;
/** ADVDeviceIdentity deviceType. */
public deviceType: proto.ADVEncryptionType;
/**
* Creates a new ADVDeviceIdentity instance using the specified properties.
* @param [properties] Properties to set
* @returns ADVDeviceIdentity instance
*/
public static create(properties?: proto.IADVDeviceIdentity): proto.ADVDeviceIdentity;
/**
* Encodes the specified ADVDeviceIdentity message. Does not implicitly {@link proto.ADVDeviceIdentity.verify|verify} messages.
* @param message ADVDeviceIdentity message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.IADVDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ADVDeviceIdentity message, length delimited. Does not implicitly {@link proto.ADVDeviceIdentity.verify|verify} messages.
* @param message ADVDeviceIdentity message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.IADVDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ADVDeviceIdentity message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ADVDeviceIdentity
* @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): proto.ADVDeviceIdentity;
/**
* Decodes a ADVDeviceIdentity message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ADVDeviceIdentity
* @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)): proto.ADVDeviceIdentity;
/**
* Verifies a ADVDeviceIdentity 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 ADVDeviceIdentity message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ADVDeviceIdentity
*/
public static fromObject(object: { [k: string]: any }): proto.ADVDeviceIdentity;
/**
* Creates a plain object from a ADVDeviceIdentity message. Also converts values to other types if specified.
* @param message ADVDeviceIdentity
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.ADVDeviceIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ADVDeviceIdentity to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ADVDeviceIdentity
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** ADVEncryptionType enum. */
enum ADVEncryptionType {
E2EE = 0,
HOSTED = 1
}
/** Properties of a ADVKeyIndexList. */
interface IADVKeyIndexList {
/** ADVKeyIndexList rawId */
rawId?: (number|null);
/** ADVKeyIndexList timestamp */
timestamp?: (number|Long|null);
/** ADVKeyIndexList currentIndex */
currentIndex?: (number|null);
/** ADVKeyIndexList validIndexes */
validIndexes?: (number[]|null);
/** ADVKeyIndexList accountType */
accountType?: (proto.ADVEncryptionType|null);
}
/** Represents a ADVKeyIndexList. */
class ADVKeyIndexList implements IADVKeyIndexList {
/**
* Constructs a new ADVKeyIndexList.
* @param [properties] Properties to set
*/
constructor(properties?: proto.IADVKeyIndexList);
/** ADVKeyIndexList rawId. */
public rawId: number;
/** ADVKeyIndexList timestamp. */
public timestamp: (number|Long);
/** ADVKeyIndexList currentIndex. */
public currentIndex: number;
/** ADVKeyIndexList validIndexes. */
public validIndexes: number[];
/** ADVKeyIndexList accountType. */
public accountType: proto.ADVEncryptionType;
/**
* Creates a new ADVKeyIndexList instance using the specified properties.
* @param [properties] Properties to set
* @returns ADVKeyIndexList instance
*/
public static create(properties?: proto.IADVKeyIndexList): proto.ADVKeyIndexList;
/**
* Encodes the specified ADVKeyIndexList message. Does not implicitly {@link proto.ADVKeyIndexList.verify|verify} messages.
* @param message ADVKeyIndexList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.IADVKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ADVKeyIndexList message, length delimited. Does not implicitly {@link proto.ADVKeyIndexList.verify|verify} messages.
* @param message ADVKeyIndexList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.IADVKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ADVKeyIndexList message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ADVKeyIndexList
* @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): proto.ADVKeyIndexList;
/**
* Decodes a ADVKeyIndexList message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ADVKeyIndexList
* @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)): proto.ADVKeyIndexList;
/**
* Verifies a ADVKeyIndexList 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 ADVKeyIndexList message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ADVKeyIndexList
*/
public static fromObject(object: { [k: string]: any }): proto.ADVKeyIndexList;
/**
* Creates a plain object from a ADVKeyIndexList message. Also converts values to other types if specified.
* @param message ADVKeyIndexList
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.ADVKeyIndexList, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ADVKeyIndexList to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ADVKeyIndexList
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ADVSignedDeviceIdentity. */
interface IADVSignedDeviceIdentity {
/** ADVSignedDeviceIdentity details */
details?: (Uint8Array|null);
/** ADVSignedDeviceIdentity accountSignatureKey */
accountSignatureKey?: (Uint8Array|null);
/** ADVSignedDeviceIdentity accountSignature */
accountSignature?: (Uint8Array|null);
/** ADVSignedDeviceIdentity deviceSignature */
deviceSignature?: (Uint8Array|null);
}
/** Represents a ADVSignedDeviceIdentity. */
class ADVSignedDeviceIdentity implements IADVSignedDeviceIdentity {
/**
* Constructs a new ADVSignedDeviceIdentity.
* @param [properties] Properties to set
*/
constructor(properties?: proto.IADVSignedDeviceIdentity);
/** ADVSignedDeviceIdentity details. */
public details: Uint8Array;
/** ADVSignedDeviceIdentity accountSignatureKey. */
public accountSignatureKey: Uint8Array;
/** ADVSignedDeviceIdentity accountSignature. */
public accountSignature: Uint8Array;
/** ADVSignedDeviceIdentity deviceSignature. */
public deviceSignature: Uint8Array;
/**
* Creates a new ADVSignedDeviceIdentity instance using the specified properties.
* @param [properties] Properties to set
* @returns ADVSignedDeviceIdentity instance
*/
public static create(properties?: proto.IADVSignedDeviceIdentity): proto.ADVSignedDeviceIdentity;
/**
* Encodes the specified ADVSignedDeviceIdentity message. Does not implicitly {@link proto.ADVSignedDeviceIdentity.verify|verify} messages.
* @param message ADVSignedDeviceIdentity message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.IADVSignedDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ADVSignedDeviceIdentity message, length delimited. Does not implicitly {@link proto.ADVSignedDeviceIdentity.verify|verify} messages.
* @param message ADVSignedDeviceIdentity message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.IADVSignedDeviceIdentity, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ADVSignedDeviceIdentity message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ADVSignedDeviceIdentity
* @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): proto.ADVSignedDeviceIdentity;
/**
* Decodes a ADVSignedDeviceIdentity message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ADVSignedDeviceIdentity
* @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)): proto.ADVSignedDeviceIdentity;
/**
* Verifies a ADVSignedDeviceIdentity 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 ADVSignedDeviceIdentity message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ADVSignedDeviceIdentity
*/
public static fromObject(object: { [k: string]: any }): proto.ADVSignedDeviceIdentity;
/**
* Creates a plain object from a ADVSignedDeviceIdentity message. Also converts values to other types if specified.
* @param message ADVSignedDeviceIdentity
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.ADVSignedDeviceIdentity, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ADVSignedDeviceIdentity to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ADVSignedDeviceIdentity
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ADVSignedDeviceIdentityHMAC. */
interface IADVSignedDeviceIdentityHMAC {
/** ADVSignedDeviceIdentityHMAC details */
details?: (Uint8Array|null);
/** ADVSignedDeviceIdentityHMAC hmac */
hmac?: (Uint8Array|null);
/** ADVSignedDeviceIdentityHMAC accountType */
accountType?: (proto.ADVEncryptionType|null);
}
/** Represents a ADVSignedDeviceIdentityHMAC. */
class ADVSignedDeviceIdentityHMAC implements IADVSignedDeviceIdentityHMAC {
/**
* Constructs a new ADVSignedDeviceIdentityHMAC.
* @param [properties] Properties to set
*/
constructor(properties?: proto.IADVSignedDeviceIdentityHMAC);
/** ADVSignedDeviceIdentityHMAC details. */
public details: Uint8Array;
/** ADVSignedDeviceIdentityHMAC hmac. */
public hmac: Uint8Array;
/** ADVSignedDeviceIdentityHMAC accountType. */
public accountType: proto.ADVEncryptionType;
/**
* Creates a new ADVSignedDeviceIdentityHMAC instance using the specified properties.
* @param [properties] Properties to set
* @returns ADVSignedDeviceIdentityHMAC instance
*/
public static create(properties?: proto.IADVSignedDeviceIdentityHMAC): proto.ADVSignedDeviceIdentityHMAC;
/**
* Encodes the specified ADVSignedDeviceIdentityHMAC message. Does not implicitly {@link proto.ADVSignedDeviceIdentityHMAC.verify|verify} messages.
* @param message ADVSignedDeviceIdentityHMAC message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.IADVSignedDeviceIdentityHMAC, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ADVSignedDeviceIdentityHMAC message, length delimited. Does not implicitly {@link proto.ADVSignedDeviceIdentityHMAC.verify|verify} messages.
* @param message ADVSignedDeviceIdentityHMAC message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.IADVSignedDeviceIdentityHMAC, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ADVSignedDeviceIdentityHMAC
* @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): proto.ADVSignedDeviceIdentityHMAC;
/**
* Decodes a ADVSignedDeviceIdentityHMAC message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ADVSignedDeviceIdentityHMAC
* @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)): proto.ADVSignedDeviceIdentityHMAC;
/**
* Verifies a ADVSignedDeviceIdentityHMAC 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 ADVSignedDeviceIdentityHMAC message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ADVSignedDeviceIdentityHMAC
*/
public static fromObject(object: { [k: string]: any }): proto.ADVSignedDeviceIdentityHMAC;
/**
* Creates a plain object from a ADVSignedDeviceIdentityHMAC message. Also converts values to other types if specified.
* @param message ADVSignedDeviceIdentityHMAC
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.ADVSignedDeviceIdentityHMAC, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ADVSignedDeviceIdentityHMAC to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ADVSignedDeviceIdentityHMAC
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ADVSignedKeyIndexList. */
interface IADVSignedKeyIndexList {
/** ADVSignedKeyIndexList details */
details?: (Uint8Array|null);
/** ADVSignedKeyIndexList accountSignature */
accountSignature?: (Uint8Array|null);
/** ADVSignedKeyIndexList accountSignatureKey */
accountSignatureKey?: (Uint8Array|null);
}
/** Represents a ADVSignedKeyIndexList. */
class ADVSignedKeyIndexList implements IADVSignedKeyIndexList {
/**
* Constructs a new ADVSignedKeyIndexList.
* @param [properties] Properties to set
*/
constructor(properties?: proto.IADVSignedKeyIndexList);
/** ADVSignedKeyIndexList details. */
public details: Uint8Array;
/** ADVSignedKeyIndexList accountSignature. */
public accountSignature: Uint8Array;
/** ADVSignedKeyIndexList accountSignatureKey. */
public accountSignatureKey: Uint8Array;
/**
* Creates a new ADVSignedKeyIndexList instance using the specified properties.
* @param [properties] Properties to set
* @returns ADVSignedKeyIndexList instance
*/
public static create(properties?: proto.IADVSignedKeyIndexList): proto.ADVSignedKeyIndexList;
/**
* Encodes the specified ADVSignedKeyIndexList message. Does not implicitly {@link proto.ADVSignedKeyIndexList.verify|verify} messages.
* @param message ADVSignedKeyIndexList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.IADVSignedKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ADVSignedKeyIndexList message, length delimited. Does not implicitly {@link proto.ADVSignedKeyIndexList.verify|verify} messages.
* @param message ADVSignedKeyIndexList message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.IADVSignedKeyIndexList, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ADVSignedKeyIndexList message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ADVSignedKeyIndexList
* @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): proto.ADVSignedKeyIndexList;
/**
* Decodes a ADVSignedKeyIndexList message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ADVSignedKeyIndexList
* @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)): proto.ADVSignedKeyIndexList;
/**
* Verifies a ADVSignedKeyIndexList 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 ADVSignedKeyIndexList message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ADVSignedKeyIndexList
*/
public static fromObject(object: { [k: string]: any }): proto.ADVSignedKeyIndexList;
/**
* Creates a plain object from a ADVSignedKeyIndexList message. Also converts values to other types if specified.
* @param message ADVSignedKeyIndexList
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.ADVSignedKeyIndexList, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ADVSignedKeyIndexList to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ADVSignedKeyIndexList
* @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?: (proto.AIRichResponseMessage.AIRichResponseMessageType|null);
/** AIRichResponseMessage submessages */
submessages?: (proto.AIRichResponseMessage.IAIRichResponseSubMessage[]|null);
}
/** Represents a AIRichResponseMessage. */
class AIRichResponseMessage implements IAIRichResponseMessage {
/**
* Constructs a new AIRichResponseMessage.
* @param [properties] Properties to set
*/
constructor(properties?: proto.IAIRichResponseMessage);
/** AIRichResponseMessage messageType. */
public messageType: proto.AIRichResponseMessage.AIRichResponseMessageType;
/** AIRichResponseMessage submessages. */
public submessages: proto.AIRichResponseMessage.IAIRichResponseSubMessage[];
/**
* Creates a new AIRichResponseMessage instance using the specified properties.
* @param [properties] Properties to set
* @returns AIRichResponseMessage instance
*/
public static create(properties?: proto.IAIRichResponseMessage): proto.AIRichResponseMessage;
/**
* Encodes the specified AIRichResponseMessage message. Does not implicitly {@link proto.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: proto.IAIRichResponseMessage, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIRichResponseMessage message, length delimited. Does not implicitly {@link proto.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: proto.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): proto.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)): proto.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 }): proto.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(message: proto.AIRichResponseMessage, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AIRichResponseMessage to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AIRichResponseMessage
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace AIRichResponseMessage {
/** Properties of a AIRichResponseCodeMetadata. */
interface IAIRichResponseCodeMetadata {
/** AIRichResponseCodeMetadata codeLanguage */
codeLanguage?: (string|null);
/** AIRichResponseCodeMetadata codeBlocks */
codeBlocks?: (proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[]|null);
}
/** Represents a AIRichResponseCodeMetadata. */
class AIRichResponseCodeMetadata implements IAIRichResponseCodeMetadata {
/**
* Constructs a new AIRichResponseCodeMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata);
/** AIRichResponseCodeMetadata codeLanguage. */
public codeLanguage: string;
/** AIRichResponseCodeMetadata codeBlocks. */
public codeBlocks: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock[];
/**
* Creates a new AIRichResponseCodeMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns AIRichResponseCodeMetadata instance
*/
public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata): proto.AIRichResponseMessage.AIRichResponseCodeMetadata;
/**
* Encodes the specified AIRichResponseCodeMetadata message. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseCodeMetadata.verify|verify} messages.
* @param message AIRichResponseCodeMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIRichResponseCodeMetadata message, length delimited. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseCodeMetadata.verify|verify} messages.
* @param message AIRichResponseCodeMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.AIRichResponseMessage.IAIRichResponseCodeMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIRichResponseCodeMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AIRichResponseCodeMetadata
* @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): proto.AIRichResponseMessage.AIRichResponseCodeMetadata;
/**
* Decodes a AIRichResponseCodeMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AIRichResponseCodeMetadata
* @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)): proto.AIRichResponseMessage.AIRichResponseCodeMetadata;
/**
* Verifies a AIRichResponseCodeMetadata 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 AIRichResponseCodeMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AIRichResponseCodeMetadata
*/
public static fromObject(object: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseCodeMetadata;
/**
* Creates a plain object from a AIRichResponseCodeMetadata message. Also converts values to other types if specified.
* @param message AIRichResponseCodeMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.AIRichResponseMessage.AIRichResponseCodeMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AIRichResponseCodeMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AIRichResponseCodeMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace AIRichResponseCodeMetadata {
/** Properties of a AIRichResponseCodeBlock. */
interface IAIRichResponseCodeBlock {
/** AIRichResponseCodeBlock highlightType */
highlightType?: (proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType|null);
/** AIRichResponseCodeBlock codeContent */
codeContent?: (string|null);
}
/** Represents a AIRichResponseCodeBlock. */
class AIRichResponseCodeBlock implements IAIRichResponseCodeBlock {
/**
* Constructs a new AIRichResponseCodeBlock.
* @param [properties] Properties to set
*/
constructor(properties?: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock);
/** AIRichResponseCodeBlock highlightType. */
public highlightType: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeHighlightType;
/** AIRichResponseCodeBlock codeContent. */
public codeContent: string;
/**
* Creates a new AIRichResponseCodeBlock instance using the specified properties.
* @param [properties] Properties to set
* @returns AIRichResponseCodeBlock instance
*/
public static create(properties?: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock;
/**
* Encodes the specified AIRichResponseCodeBlock message. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.verify|verify} messages.
* @param message AIRichResponseCodeBlock message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIRichResponseCodeBlock message, length delimited. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock.verify|verify} messages.
* @param message AIRichResponseCodeBlock message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.IAIRichResponseCodeBlock, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIRichResponseCodeBlock message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AIRichResponseCodeBlock
* @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): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock;
/**
* Decodes a AIRichResponseCodeBlock message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AIRichResponseCodeBlock
* @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)): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock;
/**
* Verifies a AIRichResponseCodeBlock 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 AIRichResponseCodeBlock message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AIRichResponseCodeBlock
*/
public static fromObject(object: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock;
/**
* Creates a plain object from a AIRichResponseCodeBlock message. Also converts values to other types if specified.
* @param message AIRichResponseCodeBlock
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.AIRichResponseMessage.AIRichResponseCodeMetadata.AIRichResponseCodeBlock, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AIRichResponseCodeBlock to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AIRichResponseCodeBlock
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** AIRichResponseCodeHighlightType enum. */
enum AIRichResponseCodeHighlightType {
AI_RICH_RESPONSE_CODE_HIGHLIGHT_DEFAULT = 0,
AI_RICH_RESPONSE_CODE_HIGHLIGHT_KEYWORD = 1,
AI_RICH_RESPONSE_CODE_HIGHLIGHT_METHOD = 2,
AI_RICH_RESPONSE_CODE_HIGHLIGHT_STRING = 3,
AI_RICH_RESPONSE_CODE_HIGHLIGHT_NUMBER = 4,
AI_RICH_RESPONSE_CODE_HIGHLIGHT_COMMENT = 5
}
}
/** Properties of a AIRichResponseDynamicMetadata. */
interface IAIRichResponseDynamicMetadata {
/** AIRichResponseDynamicMetadata type */
type?: (proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType|null);
/** AIRichResponseDynamicMetadata version */
version?: (number|Long|null);
/** AIRichResponseDynamicMetadata url */
url?: (string|null);
/** AIRichResponseDynamicMetadata loopCount */
loopCount?: (number|null);
}
/** Represents a AIRichResponseDynamicMetadata. */
class AIRichResponseDynamicMetadata implements IAIRichResponseDynamicMetadata {
/**
* Constructs a new AIRichResponseDynamicMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata);
/** AIRichResponseDynamicMetadata type. */
public type: proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.AIRichResponseDynamicMetadataType;
/** AIRichResponseDynamicMetadata version. */
public version: (number|Long);
/** AIRichResponseDynamicMetadata url. */
public url: string;
/** AIRichResponseDynamicMetadata loopCount. */
public loopCount: number;
/**
* Creates a new AIRichResponseDynamicMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns AIRichResponseDynamicMetadata instance
*/
public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata;
/**
* Encodes the specified AIRichResponseDynamicMetadata message. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.verify|verify} messages.
* @param message AIRichResponseDynamicMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIRichResponseDynamicMetadata message, length delimited. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseDynamicMetadata.verify|verify} messages.
* @param message AIRichResponseDynamicMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.AIRichResponseMessage.IAIRichResponseDynamicMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIRichResponseDynamicMetadata message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns AIRichResponseDynamicMetadata
* @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): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata;
/**
* Decodes a AIRichResponseDynamicMetadata message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns AIRichResponseDynamicMetadata
* @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)): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata;
/**
* Verifies a AIRichResponseDynamicMetadata 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 AIRichResponseDynamicMetadata message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns AIRichResponseDynamicMetadata
*/
public static fromObject(object: { [k: string]: any }): proto.AIRichResponseMessage.AIRichResponseDynamicMetadata;
/**
* Creates a plain object from a AIRichResponseDynamicMetadata message. Also converts values to other types if specified.
* @param message AIRichResponseDynamicMetadata
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: proto.AIRichResponseMessage.AIRichResponseDynamicMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this AIRichResponseDynamicMetadata to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for AIRichResponseDynamicMetadata
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
namespace AIRichResponseDynamicMetadata {
/** AIRichResponseDynamicMetadataType enum. */
enum AIRichResponseDynamicMetadataType {
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_UNKNOWN = 0,
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_IMAGE = 1,
AI_RICH_RESPONSE_DYNAMIC_METADATA_TYPE_GIF = 2
}
}
/** Properties of a AIRichResponseGridImageMetadata. */
interface IAIRichResponseGridImageMetadata {
/** AIRichResponseGridImageMetadata gridImageUrl */
gridImageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null);
/** AIRichResponseGridImageMetadata imageUrls */
imageUrls?: (proto.AIRichResponseMessage.IAIRichResponseImageURL[]|null);
}
/** Represents a AIRichResponseGridImageMetadata. */
class AIRichResponseGridImageMetadata implements IAIRichResponseGridImageMetadata {
/**
* Constructs a new AIRichResponseGridImageMetadata.
* @param [properties] Properties to set
*/
constructor(properties?: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata);
/** AIRichResponseGridImageMetadata gridImageUrl. */
public gridImageUrl?: (proto.AIRichResponseMessage.IAIRichResponseImageURL|null);
/** AIRichResponseGridImageMetadata imageUrls. */
public imageUrls: proto.AIRichResponseMessage.IAIRichResponseImageURL[];
/**
* Creates a new AIRichResponseGridImageMetadata instance using the specified properties.
* @param [properties] Properties to set
* @returns AIRichResponseGridImageMetadata instance
*/
public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata): proto.AIRichResponseMessage.AIRichResponseGridImageMetadata;
/**
* Encodes the specified AIRichResponseGridImageMetadata message. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.verify|verify} messages.
* @param message AIRichResponseGridImageMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified AIRichResponseGridImageMetadata message, length delimited. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseGridImageMetadata.verify|verify} messages.
* @param message AIRichResponseGridImageMetadata message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: proto.AIRichResponseMessage.IAIRichResponseGridImageMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a AIRichResponseGridImageMetadata message from the speci