Skip to main content

Class: BotFeedbackMessage

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

Represents a BotFeedbackMessage.

Implements

Constructors

new BotFeedbackMessage()

new BotFeedbackMessage(properties?): BotFeedbackMessage

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

Constructs a new BotFeedbackMessage.

Parameters

properties?

IBotFeedbackMessage

Properties to set

Returns

BotFeedbackMessage

Properties

kind?

optional kind: null | BotFeedbackKind

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

BotFeedbackMessage kind.

Implementation of

IBotFeedbackMessage.kind


kindNegative?

optional kindNegative: null | number | Long

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

BotFeedbackMessage kindNegative.

Implementation of

IBotFeedbackMessage.kindNegative


kindPositive?

optional kindPositive: null | number | Long

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

BotFeedbackMessage kindPositive.

Implementation of

IBotFeedbackMessage.kindPositive


kindReport?

optional kindReport: null | GENERIC

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

BotFeedbackMessage kindReport.

Implementation of

IBotFeedbackMessage.kindReport


messageKey?

optional messageKey: null | IMessageKey

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

BotFeedbackMessage messageKey.

Implementation of

IBotFeedbackMessage.messageKey


text?

optional text: null | string

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

BotFeedbackMessage text.

Implementation of

IBotFeedbackMessage.text

Methods

toJSON()

toJSON(): object

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

Converts this BotFeedbackMessage to JSON.

Returns

object

JSON object


create()

static create(properties?): BotFeedbackMessage

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

Creates a new BotFeedbackMessage instance using the specified properties.

Parameters

properties?

IBotFeedbackMessage

Properties to set

Returns

BotFeedbackMessage

BotFeedbackMessage instance


decode()

static decode(reader, length?): BotFeedbackMessage

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

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

BotFeedbackMessage

BotFeedbackMessage

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): BotFeedbackMessage

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

BotFeedbackMessage

BotFeedbackMessage

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

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

Parameters

message

IBotFeedbackMessage

BotFeedbackMessage 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:20150

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

Parameters

message

IBotFeedbackMessage

BotFeedbackMessage message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): BotFeedbackMessage

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

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

Parameters

object

Plain object

Returns

BotFeedbackMessage

BotFeedbackMessage


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for BotFeedbackMessage

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

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

Parameters

message

BotFeedbackMessage

BotFeedbackMessage

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a BotFeedbackMessage message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not