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

# BotPluginMetadata

> Protobuf class BotPluginMetadata generated from WAProto.

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

## Implements

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

## Constructors

### new BotPluginMetadata()

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

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

#### Parameters

##### p?

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

#### Returns

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

## Properties

### deprecatedField?

> `optional` **deprecatedField**: `null` | [`PluginType`](/proto-reference/BotPluginMetadata/enumerations/PluginType)

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`deprecatedField`](/proto-reference/interfaces/IBotPluginMetadata#deprecatedfield)

***

### expectedLinksCount?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`expectedLinksCount`](/proto-reference/interfaces/IBotPluginMetadata#expectedlinkscount)

***

### faviconCdnUrl?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`faviconCdnUrl`](/proto-reference/interfaces/IBotPluginMetadata#faviconcdnurl)

***

### parentPluginMessageKey?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`parentPluginMessageKey`](/proto-reference/interfaces/IBotPluginMetadata#parentpluginmessagekey)

***

### parentPluginType?

> `optional` **parentPluginType**: `null` | [`PluginType`](/proto-reference/BotPluginMetadata/enumerations/PluginType)

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`parentPluginType`](/proto-reference/interfaces/IBotPluginMetadata#parentplugintype)

***

### pluginType?

> `optional` **pluginType**: `null` | [`PluginType`](/proto-reference/BotPluginMetadata/enumerations/PluginType)

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`pluginType`](/proto-reference/interfaces/IBotPluginMetadata#plugintype)

***

### profilePhotoCdnUrl?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`profilePhotoCdnUrl`](/proto-reference/interfaces/IBotPluginMetadata#profilephotocdnurl)

***

### provider?

> `optional` **provider**: `null` | [`SearchProvider`](/proto-reference/BotPluginMetadata/enumerations/SearchProvider)

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`provider`](/proto-reference/interfaces/IBotPluginMetadata#provider)

***

### referenceIndex?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`referenceIndex`](/proto-reference/interfaces/IBotPluginMetadata#referenceindex)

***

### searchProviderUrl?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`searchProviderUrl`](/proto-reference/interfaces/IBotPluginMetadata#searchproviderurl)

***

### searchQuery?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`searchQuery`](/proto-reference/interfaces/IBotPluginMetadata#searchquery)

***

### thumbnailCdnUrl?

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

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

#### Implementation of

[`IBotPluginMetadata`](/proto-reference/interfaces/IBotPluginMetadata).[`thumbnailCdnUrl`](/proto-reference/interfaces/IBotPluginMetadata#thumbnailcdnurl)

## Methods

### create()

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

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

#### Parameters

##### properties?

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

#### Returns

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

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

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

***

### encode()

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

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

#### Parameters

##### m

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

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

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

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

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

##### o?

`IConversionOptions`

#### Returns

`object`
