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

# PrimaryFeature

> Protobuf class PrimaryFeature generated from WAProto.

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

## Implements

* [`IPrimaryFeature`](/proto-reference/SyncActionValue/interfaces/IPrimaryFeature)

## Constructors

### new PrimaryFeature()

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

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

#### Parameters

##### p?

[`IPrimaryFeature`](/proto-reference/SyncActionValue/interfaces/IPrimaryFeature)

#### Returns

[`PrimaryFeature`](/proto-reference/SyncActionValue/classes/PrimaryFeature)

## Properties

### flags

> **flags**: `string`\[]

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

#### Implementation of

[`IPrimaryFeature`](/proto-reference/SyncActionValue/interfaces/IPrimaryFeature).[`flags`](/proto-reference/SyncActionValue/interfaces/IPrimaryFeature#flags)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IPrimaryFeature`](/proto-reference/SyncActionValue/interfaces/IPrimaryFeature)

#### Returns

[`PrimaryFeature`](/proto-reference/SyncActionValue/classes/PrimaryFeature)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`PrimaryFeature`](/proto-reference/SyncActionValue/classes/PrimaryFeature)

***

### encode()

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

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

#### Parameters

##### m

[`IPrimaryFeature`](/proto-reference/SyncActionValue/interfaces/IPrimaryFeature)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`PrimaryFeature`](/proto-reference/SyncActionValue/classes/PrimaryFeature)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`PrimaryFeature`](/proto-reference/SyncActionValue/classes/PrimaryFeature)

##### o?

`IConversionOptions`

#### Returns

`object`
