Skip to main content

Class: BotMetadata

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

Represents a BotMetadata.

Implements

Constructors

new BotMetadata()

new BotMetadata(properties?): BotMetadata

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

Constructs a new BotMetadata.

Parameters

properties?

IBotMetadata

Properties to set

Returns

BotMetadata

Properties

avatarMetadata?

optional avatarMetadata: null | IBotAvatarMetadata

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

BotMetadata avatarMetadata.

Implementation of

IBotMetadata.avatarMetadata


botLinkedAccountsMetadata?

optional botLinkedAccountsMetadata: null | IBotLinkedAccountsMetadata

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

BotMetadata botLinkedAccountsMetadata.

Implementation of

IBotMetadata.botLinkedAccountsMetadata


botMetricsMetadata?

optional botMetricsMetadata: null | IBotMetricsMetadata

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

BotMetadata botMetricsMetadata.

Implementation of

IBotMetadata.botMetricsMetadata


capabilityMetadata?

optional capabilityMetadata: null | IBotCapabilityMetadata

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

BotMetadata capabilityMetadata.

Implementation of

IBotMetadata.capabilityMetadata


imagineMetadata?

optional imagineMetadata: null | IBotImagineMetadata

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

BotMetadata imagineMetadata.

Implementation of

IBotMetadata.imagineMetadata


invokerJid?

optional invokerJid: null | string

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

BotMetadata invokerJid.

Implementation of

IBotMetadata.invokerJid


memoryMetadata?

optional memoryMetadata: null | IBotMemoryMetadata

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

BotMetadata memoryMetadata.

Implementation of

IBotMetadata.memoryMetadata


memuMetadata?

optional memuMetadata: null | IBotMemuMetadata

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

BotMetadata memuMetadata.

Implementation of

IBotMetadata.memuMetadata


messageDisclaimerText?

optional messageDisclaimerText: null | string

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

BotMetadata messageDisclaimerText.

Implementation of

IBotMetadata.messageDisclaimerText


modelMetadata?

optional modelMetadata: null | IBotModelMetadata

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

BotMetadata modelMetadata.

Implementation of

IBotMetadata.modelMetadata


personaId?

optional personaId: null | string

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

BotMetadata personaId.

Implementation of

IBotMetadata.personaId


pluginMetadata?

optional pluginMetadata: null | IBotPluginMetadata

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

BotMetadata pluginMetadata.

Implementation of

IBotMetadata.pluginMetadata


progressIndicatorMetadata?

optional progressIndicatorMetadata: null | IBotProgressIndicatorMetadata

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

BotMetadata progressIndicatorMetadata.

Implementation of

IBotMetadata.progressIndicatorMetadata


reminderMetadata?

optional reminderMetadata: null | IBotReminderMetadata

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

BotMetadata reminderMetadata.

Implementation of

IBotMetadata.reminderMetadata


renderingMetadata?

optional renderingMetadata: null | IBotRenderingMetadata

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

BotMetadata renderingMetadata.

Implementation of

IBotMetadata.renderingMetadata


sessionMetadata?

optional sessionMetadata: null | IBotSessionMetadata

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

BotMetadata sessionMetadata.

Implementation of

IBotMetadata.sessionMetadata


suggestedPromptMetadata?

optional suggestedPromptMetadata: null | IBotSuggestedPromptMetadata

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

BotMetadata suggestedPromptMetadata.

Implementation of

IBotMetadata.suggestedPromptMetadata


timezone?

optional timezone: null | string

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

BotMetadata timezone.

Implementation of

IBotMetadata.timezone

Methods

toJSON()

toJSON(): object

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

Converts this BotMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): BotMetadata

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

Creates a new BotMetadata instance using the specified properties.

Parameters

properties?

IBotMetadata

Properties to set

Returns

BotMetadata

BotMetadata instance


decode()

static decode(reader, length?): BotMetadata

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

Decodes a BotMetadata 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

BotMetadata

BotMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotMetadata

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotMetadata

BotMetadata

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:4534

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

Parameters

message

IBotMetadata

BotMetadata 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:4542

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

Parameters

message

IBotMetadata

BotMetadata message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotMetadata

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

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

Parameters

object

Plain object

Returns

BotMetadata

BotMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for BotMetadata

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:4583

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

Parameters

message

BotMetadata

BotMetadata

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a BotMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not