Skip to main content

Class: BotPluginMetadata

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

Represents a BotPluginMetadata.

Implements

Constructors

new BotPluginMetadata()

new BotPluginMetadata(properties?): BotPluginMetadata

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

Constructs a new BotPluginMetadata.

Parameters

properties?

IBotPluginMetadata

Properties to set

Returns

BotPluginMetadata

Properties

deprecatedField?

optional deprecatedField: null | PluginType

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

BotPluginMetadata deprecatedField.

Implementation of

IBotPluginMetadata.deprecatedField


expectedLinksCount?

optional expectedLinksCount: null | number

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

BotPluginMetadata expectedLinksCount.

Implementation of

IBotPluginMetadata.expectedLinksCount


faviconCdnUrl?

optional faviconCdnUrl: null | string

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

BotPluginMetadata faviconCdnUrl.

Implementation of

IBotPluginMetadata.faviconCdnUrl


parentPluginMessageKey?

optional parentPluginMessageKey: null | IMessageKey

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

BotPluginMetadata parentPluginMessageKey.

Implementation of

IBotPluginMetadata.parentPluginMessageKey


parentPluginType?

optional parentPluginType: null | PluginType

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

BotPluginMetadata parentPluginType.

Implementation of

IBotPluginMetadata.parentPluginType


pluginType?

optional pluginType: null | PluginType

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

BotPluginMetadata pluginType.

Implementation of

IBotPluginMetadata.pluginType


profilePhotoCdnUrl?

optional profilePhotoCdnUrl: null | string

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

BotPluginMetadata profilePhotoCdnUrl.

Implementation of

IBotPluginMetadata.profilePhotoCdnUrl


provider?

optional provider: null | SearchProvider

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

BotPluginMetadata provider.

Implementation of

IBotPluginMetadata.provider


referenceIndex?

optional referenceIndex: null | number

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

BotPluginMetadata referenceIndex.

Implementation of

IBotPluginMetadata.referenceIndex


searchProviderUrl?

optional searchProviderUrl: null | string

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

BotPluginMetadata searchProviderUrl.

Implementation of

IBotPluginMetadata.searchProviderUrl


searchQuery?

optional searchQuery: null | string

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

BotPluginMetadata searchQuery.

Implementation of

IBotPluginMetadata.searchQuery


thumbnailCdnUrl?

optional thumbnailCdnUrl: null | string

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

BotPluginMetadata thumbnailCdnUrl.

Implementation of

IBotPluginMetadata.thumbnailCdnUrl

Methods

toJSON()

toJSON(): object

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

Converts this BotPluginMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): BotPluginMetadata

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

Creates a new BotPluginMetadata instance using the specified properties.

Parameters

properties?

IBotPluginMetadata

Properties to set

Returns

BotPluginMetadata

BotPluginMetadata instance


decode()

static decode(reader, length?): BotPluginMetadata

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

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

BotPluginMetadata

BotPluginMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotPluginMetadata

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotPluginMetadata

BotPluginMetadata

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

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

Parameters

message

IBotPluginMetadata

BotPluginMetadata 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:4949

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

Parameters

message

IBotPluginMetadata

BotPluginMetadata message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotPluginMetadata

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

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

Parameters

object

Plain object

Returns

BotPluginMetadata

BotPluginMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for BotPluginMetadata

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

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

Parameters

message

BotPluginMetadata

BotPluginMetadata

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a BotPluginMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not