Skip to main content

Class: BotSourcesMetadata

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

Represents a BotSourcesMetadata.

Implements

Constructors

new BotSourcesMetadata()

new BotSourcesMetadata(properties?): BotSourcesMetadata

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

Constructs a new BotSourcesMetadata.

Parameters

properties?

IBotSourcesMetadata

Properties to set

Returns

BotSourcesMetadata

Properties

sources

sources: IBotSourceItem[]

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

BotSourcesMetadata sources.

Implementation of

IBotSourcesMetadata.sources

Methods

toJSON()

toJSON(): object

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

Converts this BotSourcesMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): BotSourcesMetadata

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

Creates a new BotSourcesMetadata instance using the specified properties.

Parameters

properties?

IBotSourcesMetadata

Properties to set

Returns

BotSourcesMetadata

BotSourcesMetadata instance


decode()

static decode(reader, length?): BotSourcesMetadata

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

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

BotSourcesMetadata

BotSourcesMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotSourcesMetadata

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotSourcesMetadata

BotSourcesMetadata

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

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

Parameters

message

IBotSourcesMetadata

BotSourcesMetadata 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:7180

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

Parameters

message

IBotSourcesMetadata

BotSourcesMetadata message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotSourcesMetadata

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

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

Parameters

object

Plain object

Returns

BotSourcesMetadata

BotSourcesMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for BotSourcesMetadata

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

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

Parameters

message

BotSourcesMetadata

BotSourcesMetadata

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a BotSourcesMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not