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

# Metadata

> Protobuf class Metadata generated from WAProto.

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

## Implements

* [`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata)

## Constructors

### new Metadata()

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

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

#### Parameters

##### p?

[`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata)

#### Returns

[`Metadata`](/proto-reference/StatusAttribution/StatusReshare/classes/Metadata)

## Properties

### channelJid?

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

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

#### Implementation of

[`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata).[`channelJid`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata#channeljid)

***

### channelMessageId?

> `optional` **channelMessageId**: `null` | `number`

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

#### Implementation of

[`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata).[`channelMessageId`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata#channelmessageid)

***

### duration?

> `optional` **duration**: `null` | `number`

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

#### Implementation of

[`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata).[`duration`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata#duration)

***

### hasMultipleReshares?

> `optional` **hasMultipleReshares**: `null` | `boolean`

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

#### Implementation of

[`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata).[`hasMultipleReshares`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata#hasmultiplereshares)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata)

#### Returns

[`Metadata`](/proto-reference/StatusAttribution/StatusReshare/classes/Metadata)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`Metadata`](/proto-reference/StatusAttribution/StatusReshare/classes/Metadata)

***

### encode()

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

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

#### Parameters

##### m

[`IMetadata`](/proto-reference/StatusAttribution/StatusReshare/interfaces/IMetadata)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`Metadata`](/proto-reference/StatusAttribution/StatusReshare/classes/Metadata)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`Metadata`](/proto-reference/StatusAttribution/StatusReshare/classes/Metadata)

##### o?

`IConversionOptions`

#### Returns

`object`
