Skip to main content

Class: BotQuotaMetadata

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

Represents a BotQuotaMetadata.

Implements

Constructors

new BotQuotaMetadata()

new BotQuotaMetadata(properties?): BotQuotaMetadata

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

Constructs a new BotQuotaMetadata.

Parameters

properties?

IBotQuotaMetadata

Properties to set

Returns

BotQuotaMetadata

Properties

botFeatureQuotaMetadata

botFeatureQuotaMetadata: IBotFeatureQuotaMetadata[]

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

BotQuotaMetadata botFeatureQuotaMetadata.

Implementation of

IBotQuotaMetadata.botFeatureQuotaMetadata

Methods

toJSON()

toJSON(): object

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

Converts this BotQuotaMetadata to JSON.

Returns

object

JSON object


create()

static create(properties?): BotQuotaMetadata

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

Creates a new BotQuotaMetadata instance using the specified properties.

Parameters

properties?

IBotQuotaMetadata

Properties to set

Returns

BotQuotaMetadata

BotQuotaMetadata instance


decode()

static decode(reader, length?): BotQuotaMetadata

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

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

BotQuotaMetadata

BotQuotaMetadata

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotQuotaMetadata

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotQuotaMetadata

BotQuotaMetadata

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

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

Parameters

message

IBotQuotaMetadata

BotQuotaMetadata 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:6504

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

Parameters

message

IBotQuotaMetadata

BotQuotaMetadata message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotQuotaMetadata

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

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

Parameters

object

Plain object

Returns

BotQuotaMetadata

BotQuotaMetadata


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for BotQuotaMetadata

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

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

Parameters

message

BotQuotaMetadata

BotQuotaMetadata

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a BotQuotaMetadata message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not