Skip to main content

Class: BotPromptSuggestions

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

Represents a BotPromptSuggestions.

Implements

Constructors

new BotPromptSuggestions()

new BotPromptSuggestions(properties?): BotPromptSuggestions

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

Constructs a new BotPromptSuggestions.

Parameters

properties?

IBotPromptSuggestions

Properties to set

Returns

BotPromptSuggestions

Properties

suggestions

suggestions: IBotPromptSuggestion[]

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

BotPromptSuggestions suggestions.

Implementation of

IBotPromptSuggestions.suggestions

Methods

toJSON()

toJSON(): object

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

Converts this BotPromptSuggestions to JSON.

Returns

object

JSON object


create()

static create(properties?): BotPromptSuggestions

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

Creates a new BotPromptSuggestions instance using the specified properties.

Parameters

properties?

IBotPromptSuggestions

Properties to set

Returns

BotPromptSuggestions

BotPromptSuggestions instance


decode()

static decode(reader, length?): BotPromptSuggestions

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

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

BotPromptSuggestions

BotPromptSuggestions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotPromptSuggestions

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotPromptSuggestions

BotPromptSuggestions

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

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

Parameters

message

IBotPromptSuggestions

BotPromptSuggestions 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:5531

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

Parameters

message

IBotPromptSuggestions

BotPromptSuggestions message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotPromptSuggestions

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

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

Parameters

object

Plain object

Returns

BotPromptSuggestions

BotPromptSuggestions


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for BotPromptSuggestions

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

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

Parameters

message

BotPromptSuggestions

BotPromptSuggestions

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a BotPromptSuggestions message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not