Skip to main content

Class: BotMetricsMetadata

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

Represents a BotMetricsMetadata.

Implements

Constructors

new BotMetricsMetadata()

new BotMetricsMetadata(properties?): BotMetricsMetadata

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

Constructs a new BotMetricsMetadata.

Parameters

properties?

IBotMetricsMetadata

Properties to set

Returns

BotMetricsMetadata

Properties

destinationEntryPoint?

optional destinationEntryPoint: null | BotMetricsEntryPoint

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

BotMetricsMetadata destinationEntryPoint.

Implementation of

IBotMetricsMetadata.destinationEntryPoint


destinationId?

optional destinationId: null | string

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

BotMetricsMetadata destinationId.

Implementation of

IBotMetricsMetadata.destinationId

Methods

toJSON()

toJSON(): object

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

Converts this BotMetricsMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): BotMetricsMetadata

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

Creates a new BotMetricsMetadata instance using the specified properties.

Parameters

properties?

IBotMetricsMetadata

Properties to set

Returns

BotMetricsMetadata

BotMetricsMetadata instance


decode()

static decode(reader, length?): BotMetricsMetadata

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

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

BotMetricsMetadata

BotMetricsMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotMetricsMetadata

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotMetricsMetadata

BotMetricsMetadata

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

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

Parameters

message

IBotMetricsMetadata

BotMetricsMetadata 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:4666

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

Parameters

message

IBotMetricsMetadata

BotMetricsMetadata message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotMetricsMetadata

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

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

Parameters

object

Plain object

Returns

BotMetricsMetadata

BotMetricsMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for BotMetricsMetadata

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

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

Parameters

message

BotMetricsMetadata

BotMetricsMetadata

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a BotMetricsMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not