Skip to main content

Class: HydratedTemplateButton

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

Represents a HydratedTemplateButton.

Implements

Constructors

new HydratedTemplateButton()

new HydratedTemplateButton(properties?): HydratedTemplateButton

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

Constructs a new HydratedTemplateButton.

Parameters

properties?

IHydratedTemplateButton

Properties to set

Returns

HydratedTemplateButton

Properties

callButton?

optional callButton: null | IHydratedCallButton

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

HydratedTemplateButton callButton.

Implementation of

IHydratedTemplateButton.callButton


hydratedButton?

optional hydratedButton: "quickReplyButton" | "urlButton" | "callButton"

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

HydratedTemplateButton hydratedButton.


index?

optional index: null | number

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

HydratedTemplateButton index.

Implementation of

IHydratedTemplateButton.index


quickReplyButton?

optional quickReplyButton: null | IHydratedQuickReplyButton

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

HydratedTemplateButton quickReplyButton.

Implementation of

IHydratedTemplateButton.quickReplyButton


urlButton?

optional urlButton: null | IHydratedURLButton

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

HydratedTemplateButton urlButton.

Implementation of

IHydratedTemplateButton.urlButton

Methods

toJSON()

toJSON(): object

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

Converts this HydratedTemplateButton to JSON.

Returns

object

JSON object


create()

static create(properties?): HydratedTemplateButton

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

Creates a new HydratedTemplateButton instance using the specified properties.

Parameters

properties?

IHydratedTemplateButton

Properties to set

Returns

HydratedTemplateButton

HydratedTemplateButton instance


decode()

static decode(reader, length?): HydratedTemplateButton

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

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

HydratedTemplateButton

HydratedTemplateButton

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited()

static decodeDelimited(reader): HydratedTemplateButton

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

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

Parameters

reader

Reader or buffer to decode from

Uint8Array<ArrayBufferLike> | Reader

Returns

HydratedTemplateButton

HydratedTemplateButton

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

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

Parameters

message

IHydratedTemplateButton

HydratedTemplateButton 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:16139

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

Parameters

message

IHydratedTemplateButton

HydratedTemplateButton message or plain object to encode

writer?

Writer

Writer to encode to

Returns

Writer

Writer


fromObject()

static fromObject(object): HydratedTemplateButton

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

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

Parameters

object

Plain object

Returns

HydratedTemplateButton

HydratedTemplateButton


getTypeUrl()

static getTypeUrl(typeUrlPrefix?): string

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

Gets the default type url for HydratedTemplateButton

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

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

Parameters

message

HydratedTemplateButton

HydratedTemplateButton

options?

IConversionOptions

Conversion options

Returns

object

Plain object


verify()

static verify(message): null | string

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

Verifies a HydratedTemplateButton message.

Parameters

message

Plain object to verify

Returns

null | string

null if valid, otherwise the reason why it is not