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

# UserAgent

> Protobuf class UserAgent generated from WAProto.

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

## Implements

* [`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent)

## Constructors

### new UserAgent()

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

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

#### Parameters

##### p?

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent)

#### Returns

[`UserAgent`](/proto-reference/ClientPayload/classes/UserAgent)

## Properties

### appVersion?

> `optional` **appVersion**: `null` | [`IAppVersion`](/proto-reference/ClientPayload/UserAgent/interfaces/IAppVersion)

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`appVersion`](/proto-reference/ClientPayload/interfaces/IUserAgent#appversion)

***

### device?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`device`](/proto-reference/ClientPayload/interfaces/IUserAgent#device)

***

### deviceBoard?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`deviceBoard`](/proto-reference/ClientPayload/interfaces/IUserAgent#deviceboard)

***

### deviceExpId?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`deviceExpId`](/proto-reference/ClientPayload/interfaces/IUserAgent#deviceexpid)

***

### deviceModelType?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`deviceModelType`](/proto-reference/ClientPayload/interfaces/IUserAgent#devicemodeltype)

***

### deviceType?

> `optional` **deviceType**: `null` | [`DeviceType`](/proto-reference/ClientPayload/UserAgent/enumerations/DeviceType)

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`deviceType`](/proto-reference/ClientPayload/interfaces/IUserAgent#devicetype)

***

### localeCountryIso31661Alpha2?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`localeCountryIso31661Alpha2`](/proto-reference/ClientPayload/interfaces/IUserAgent#localecountryiso31661alpha2)

***

### localeLanguageIso6391?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`localeLanguageIso6391`](/proto-reference/ClientPayload/interfaces/IUserAgent#localelanguageiso6391)

***

### manufacturer?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`manufacturer`](/proto-reference/ClientPayload/interfaces/IUserAgent#manufacturer)

***

### mcc?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`mcc`](/proto-reference/ClientPayload/interfaces/IUserAgent#mcc)

***

### mnc?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`mnc`](/proto-reference/ClientPayload/interfaces/IUserAgent#mnc)

***

### osBuildNumber?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`osBuildNumber`](/proto-reference/ClientPayload/interfaces/IUserAgent#osbuildnumber)

***

### osVersion?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`osVersion`](/proto-reference/ClientPayload/interfaces/IUserAgent#osversion)

***

### phoneId?

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

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`phoneId`](/proto-reference/ClientPayload/interfaces/IUserAgent#phoneid)

***

### platform?

> `optional` **platform**: `null` | [`Platform`](/proto-reference/ClientPayload/UserAgent/enumerations/Platform)

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`platform`](/proto-reference/ClientPayload/interfaces/IUserAgent#platform)

***

### releaseChannel?

> `optional` **releaseChannel**: `null` | [`ReleaseChannel`](/proto-reference/ClientPayload/UserAgent/enumerations/ReleaseChannel)

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

#### Implementation of

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent).[`releaseChannel`](/proto-reference/ClientPayload/interfaces/IUserAgent#releasechannel)

## Methods

### create()

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

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

#### Parameters

##### properties?

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent)

#### Returns

[`UserAgent`](/proto-reference/ClientPayload/classes/UserAgent)

***

### decode()

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

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

#### Parameters

##### r

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

##### l?

`number`

#### Returns

[`UserAgent`](/proto-reference/ClientPayload/classes/UserAgent)

***

### encode()

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

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

#### Parameters

##### m

[`IUserAgent`](/proto-reference/ClientPayload/interfaces/IUserAgent)

##### w?

`Writer`

#### Returns

`Writer`

***

### fromObject()

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

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

#### Parameters

##### d

#### Returns

[`UserAgent`](/proto-reference/ClientPayload/classes/UserAgent)

***

### getTypeUrl()

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

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

#### Parameters

##### typeUrlPrefix?

`string`

#### Returns

`string`

***

### toJSON()

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

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

#### Returns

`object`

***

### toObject()

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

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

#### Parameters

##### m

[`UserAgent`](/proto-reference/ClientPayload/classes/UserAgent)

##### o?

`IConversionOptions`

#### Returns

`object`
