Skip to main content

Class: BotLinkedAccount

Defined in: WAProto/index.d.ts:3748

Represents a BotLinkedAccount.

Implements

Constructors

new BotLinkedAccount()

new BotLinkedAccount(properties?): BotLinkedAccount

Defined in: WAProto/index.d.ts:3754

Constructs a new BotLinkedAccount.

Parameters

properties?

IBotLinkedAccount

Properties to set

Returns

BotLinkedAccount

Properties

type?

optional type: null | BOT_LINKED_ACCOUNT_TYPE_1P

Defined in: WAProto/index.d.ts:3757

BotLinkedAccount type.

Implementation of

IBotLinkedAccount.type

Methods

toJSON()

toJSON(): object

Defined in: WAProto/index.d.ts:3827

Converts this BotLinkedAccount to JSON.

Returns

object

JSON object


create()

static create(properties?): BotLinkedAccount

Defined in: WAProto/index.d.ts:3764

Creates a new BotLinkedAccount instance using the specified properties.

Parameters

properties?

IBotLinkedAccount

Properties to set

Returns

BotLinkedAccount

BotLinkedAccount instance


decode()

static decode(reader, length?): BotLinkedAccount

Defined in: WAProto/index.d.ts:3790

Decodes a BotLinkedAccount message from the specified reader or buffer.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

length?

number

Message length if known beforehand

Returns

BotLinkedAccount

BotLinkedAccount

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotLinkedAccount

Defined in: WAProto/index.d.ts:3799

Decodes a BotLinkedAccount message from the specified reader or buffer, length delimited.

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotLinkedAccount

BotLinkedAccount

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode()

static encode(message, writer?): Writer

Defined in: WAProto/index.d.ts:3772

Encodes the specified BotLinkedAccount message. Does not implicitly verify messages.

Parameters

message

IBotLinkedAccount

BotLinkedAccount message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


encodeDelimited()

static encodeDelimited(message, writer?): Writer

Defined in: WAProto/index.d.ts:3780

Encodes the specified BotLinkedAccount message, length delimited. Does not implicitly verify messages.

Parameters

message

IBotLinkedAccount

BotLinkedAccount message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotLinkedAccount

Defined in: WAProto/index.d.ts:3813

Creates a BotLinkedAccount message from a plain object. Also converts values to their respective internal types.

Parameters

object

Plain object

Returns

BotLinkedAccount

BotLinkedAccount


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

Defined in: WAProto/index.d.ts:3834

Gets the default type url for BotLinkedAccount

Parameters

typeUrlPrefix?

string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject()

static toObject(message, options?): object

Defined in: WAProto/index.d.ts:3821

Creates a plain object from a BotLinkedAccount message. Also converts values to other types if specified.

Parameters

message

BotLinkedAccount

BotLinkedAccount

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

Defined in: WAProto/index.d.ts:3806

Verifies a BotLinkedAccount message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not