> ## Documentation Index
> Fetch the complete documentation index at: https://baileys.wiki/llms.txt
> Use this file to discover all available pages before exploring further.

# AIRichResponseSubMessage

> Protobuf class AIRichResponseSubMessage generated from WAProto.

Defined in: [WAProto/index.d.ts:578](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L578)

## Implements

* [`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage)

## Constructors

### new AIRichResponseSubMessage()

> **new AIRichResponseSubMessage**(`p`?): [`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

Defined in: [WAProto/index.d.ts:579](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L579)

#### Parameters

##### p?

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage)

#### Returns

[`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

## Properties

### codeMetadata?

> `optional` **codeMetadata**: `null` | [`IAIRichResponseCodeMetadata`](/proto-reference/interfaces/IAIRichResponseCodeMetadata)

Defined in: [WAProto/index.d.ts:584](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L584)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`codeMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#codemetadata)

***

### contentItemsMetadata?

> `optional` **contentItemsMetadata**: `null` | [`IAIRichResponseContentItemsMetadata`](/proto-reference/interfaces/IAIRichResponseContentItemsMetadata)

Defined in: [WAProto/index.d.ts:589](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L589)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`contentItemsMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#contentitemsmetadata)

***

### dynamicMetadata?

> `optional` **dynamicMetadata**: `null` | [`IAIRichResponseDynamicMetadata`](/proto-reference/interfaces/IAIRichResponseDynamicMetadata)

Defined in: [WAProto/index.d.ts:586](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L586)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`dynamicMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#dynamicmetadata)

***

### gridImageMetadata?

> `optional` **gridImageMetadata**: `null` | [`IAIRichResponseGridImageMetadata`](/proto-reference/interfaces/IAIRichResponseGridImageMetadata)

Defined in: [WAProto/index.d.ts:581](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L581)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`gridImageMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#gridimagemetadata)

***

### imageMetadata?

> `optional` **imageMetadata**: `null` | [`IAIRichResponseInlineImageMetadata`](/proto-reference/interfaces/IAIRichResponseInlineImageMetadata)

Defined in: [WAProto/index.d.ts:583](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L583)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`imageMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#imagemetadata)

***

### latexMetadata?

> `optional` **latexMetadata**: `null` | [`IAIRichResponseLatexMetadata`](/proto-reference/interfaces/IAIRichResponseLatexMetadata)

Defined in: [WAProto/index.d.ts:587](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L587)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`latexMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#latexmetadata)

***

### mapMetadata?

> `optional` **mapMetadata**: `null` | [`IAIRichResponseMapMetadata`](/proto-reference/interfaces/IAIRichResponseMapMetadata)

Defined in: [WAProto/index.d.ts:588](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L588)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`mapMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#mapmetadata)

***

### messageText?

> `optional` **messageText**: `null` | `string`

Defined in: [WAProto/index.d.ts:582](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L582)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`messageText`](/proto-reference/interfaces/IAIRichResponseSubMessage#messagetext)

***

### messageType?

> `optional` **messageType**: `null` | [`AIRichResponseSubMessageType`](/proto-reference/enumerations/AIRichResponseSubMessageType)

Defined in: [WAProto/index.d.ts:580](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L580)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`messageType`](/proto-reference/interfaces/IAIRichResponseSubMessage#messagetype)

***

### tableMetadata?

> `optional` **tableMetadata**: `null` | [`IAIRichResponseTableMetadata`](/proto-reference/interfaces/IAIRichResponseTableMetadata)

Defined in: [WAProto/index.d.ts:585](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L585)

#### Implementation of

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage).[`tableMetadata`](/proto-reference/interfaces/IAIRichResponseSubMessage#tablemetadata)

## Methods

### create()

> `static` **create**(`properties`?): [`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

Defined in: [WAProto/index.d.ts:590](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L590)

#### Parameters

##### properties?

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage)

#### Returns

[`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

***

### decode()

> `static` **decode**(`r`, `l`?): [`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

Defined in: [WAProto/index.d.ts:592](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L592)

#### Parameters

##### r

`Uint8Array`\<`ArrayBufferLike`> | `Reader`

##### l?

`number`

#### Returns

[`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

***

### encode()

> `static` **encode**(`m`, `w`?): `Writer`

Defined in: [WAProto/index.d.ts:591](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L591)

#### Parameters

##### m

[`IAIRichResponseSubMessage`](/proto-reference/interfaces/IAIRichResponseSubMessage)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

> `static` **fromObject**(`d`): [`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

Defined in: [WAProto/index.d.ts:593](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L593)

#### Parameters

##### d

#### Returns

[`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

***

### getTypeUrl()

> `static` **getTypeUrl**(`typeUrlPrefix`?): `string`

Defined in: [WAProto/index.d.ts:596](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L596)

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

> **toJSON**(): `object`

Defined in: [WAProto/index.d.ts:595](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L595)

#### Returns

`object`

***

### toObject()

> `static` **toObject**(`m`, `o`?): `object`

Defined in: [WAProto/index.d.ts:594](https://github.com/WhiskeySockets/Baileys/blob/master/WAProto/index.d.ts#L594)

#### Parameters

##### m

[`AIRichResponseSubMessage`](/proto-reference/classes/AIRichResponseSubMessage)

##### o?

`IConversionOptions`

#### Returns

`object`
