UNPKG

@whiskeysockets/baileys

Version:

A WebSockets library for interacting with WhatsApp Web

1,094 lines (900 loc) 2.38 MB
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|null); /** ADVDeviceIdentity timestamp. */ public timestamp?: (number|Long|null); /** ADVDeviceIdentity keyIndex. */ public keyIndex?: (number|null); /** ADVDeviceIdentity accountType. */ public accountType?: (proto.ADVEncryptionType|null); /** ADVDeviceIdentity deviceType. */ public deviceType?: (proto.ADVEncryptionType|null); /** * 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|null); /** ADVKeyIndexList timestamp. */ public timestamp?: (number|Long|null); /** ADVKeyIndexList currentIndex. */ public currentIndex?: (number|null); /** ADVKeyIndexList validIndexes. */ public validIndexes: number[]; /** ADVKeyIndexList accountType. */ public accountType?: (proto.ADVEncryptionType|null); /** * 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|null); /** ADVSignedDeviceIdentity accountSignatureKey. */ public accountSignatureKey?: (Uint8Array|null); /** ADVSignedDeviceIdentity accountSignature. */ public accountSignature?: (Uint8Array|null); /** ADVSignedDeviceIdentity deviceSignature. */ public deviceSignature?: (Uint8Array|null); /** * 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|null); /** ADVSignedDeviceIdentityHMAC hmac. */ public hmac?: (Uint8Array|null); /** ADVSignedDeviceIdentityHMAC accountType. */ public accountType?: (proto.ADVEncryptionType|null); /** * 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|null); /** ADVSignedKeyIndexList accountSignature. */ public accountSignature?: (Uint8Array|null); /** ADVSignedKeyIndexList accountSignatureKey. */ public accountSignatureKey?: (Uint8Array|null); /** * 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 AIQueryFanout. */ interface IAIQueryFanout { /** AIQueryFanout messageKey */ messageKey?: (proto.IMessageKey|null); /** AIQueryFanout message */ message?: (proto.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?: proto.IAIQueryFanout); /** AIQueryFanout messageKey. */ public messageKey?: (proto.IMessageKey|null); /** AIQueryFanout message. */ public message?: (proto.IMessage|null); /** AIQueryFanout timestamp. */ public timestamp?: (number|Long|null); /** * Creates a new AIQueryFanout instance using the specified properties. * @param [properties] Properties to set * @returns AIQueryFanout instance */ public static create(properties?: proto.IAIQueryFanout): proto.AIQueryFanout; /** * Encodes the specified AIQueryFanout message. Does not implicitly {@link proto.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: proto.IAIQueryFanout, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AIQueryFanout message, length delimited. Does not implicitly {@link proto.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: proto.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): proto.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)): proto.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 }): proto.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: proto.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?: (proto.AIRichResponseMessage.AIRichResponseMessageType|null); /** AIRichResponseMessage submessages */ submessages?: (proto.AIRichResponseMessage.IAIRichResponseSubMessage[]|null); /** AIRichResponseMessage unifiedResponse */ unifiedResponse?: (proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse|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|null); /** AIRichResponseMessage submessages. */ public submessages: proto.AIRichResponseMessage.IAIRichResponseSubMessage[]; /** AIRichResponseMessage unifiedResponse. */ public unifiedResponse?: (proto.AIRichResponseMessage.IAIRichResponseUnifiedResponse|null); /** * 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|null); /** 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|null); /** AIRichResponseCodeBlock codeContent. */ public codeContent?: (string|null); /** * 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 AIRichResponseContentItemsMetadata. */ interface IAIRichResponseContentItemsMetadata { /** AIRichResponseContentItemsMetadata itemsMetadata */ itemsMetadata?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]|null); /** AIRichResponseContentItemsMetadata contentType */ contentType?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType|null); } /** Represents a AIRichResponseContentItemsMetadata. */ class AIRichResponseContentItemsMetadata implements IAIRichResponseContentItemsMetadata { /** * Constructs a new AIRichResponseContentItemsMetadata. * @param [properties] Properties to set */ constructor(properties?: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata); /** AIRichResponseContentItemsMetadata itemsMetadata. */ public itemsMetadata: proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.IAIRichResponseContentItemMetadata[]; /** AIRichResponseContentItemsMetadata contentType. */ public contentType?: (proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.ContentType|null); /** * Creates a new AIRichResponseContentItemsMetadata instance using the specified properties. * @param [properties] Properties to set * @returns AIRichResponseContentItemsMetadata instance */ public static create(properties?: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata): proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata; /** * Encodes the specified AIRichResponseContentItemsMetadata message. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.verify|verify} messages. * @param message AIRichResponseContentItemsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified AIRichResponseContentItemsMetadata message, length delimited. Does not implicitly {@link proto.AIRichResponseMessage.AIRichResponseContentItemsMetadata.verify|verify} messages. * @param message AIRichResponseContentItemsMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: proto.AIRichResponseMessage.IAIRichResponseContentItemsMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a AIRichResponseContentItemsMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns AIRichResponseContentItemsMetadata * @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.AIRichResponseContentItemsMetadata; /** * Decodes a AIRichResponseContentItemsMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns AIRichResponseContentItemsMetadata * @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.AIRichResponseContentItemsMetadata; /** * Verifies a AIRichRespons