Class: HydratedTemplateButton
Defined in: WAProto/index.d.ts:14660
Represents a HydratedTemplateButton.
Implements
Constructors
new HydratedTemplateButton()
new HydratedTemplateButton(
properties
?):HydratedTemplateButton
Defined in: WAProto/index.d.ts:14666
Constructs a new HydratedTemplateButton.
Parameters
properties?
Properties to set
Returns
Properties
callButton?
optional
callButton:null
|IHydratedCallButton
Defined in: WAProto/index.d.ts:14678
HydratedTemplateButton callButton.
Implementation of
IHydratedTemplateButton
.callButton
hydratedButton?
optional
hydratedButton:"quickReplyButton"
|"urlButton"
|"callButton"
Defined in: WAProto/index.d.ts:14681
HydratedTemplateButton hydratedButton.
index?
optional
index:null
|number
Defined in: WAProto/index.d.ts:14669
HydratedTemplateButton index.
Implementation of
quickReplyButton?
optional
quickReplyButton:null
|IHydratedQuickReplyButton
Defined in: WAProto/index.d.ts:14672
HydratedTemplateButton quickReplyButton.
Implementation of
IHydratedTemplateButton
.quickReplyButton
urlButton?
optional
urlButton:null
|IHydratedURLButton
Defined in: WAProto/index.d.ts:14675
HydratedTemplateButton urlButton.
Implementation of
IHydratedTemplateButton
.urlButton
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:14751
Converts this HydratedTemplateButton to JSON.
Returns
object
JSON object
create()
static
create(properties
?):HydratedTemplateButton
Defined in: WAProto/index.d.ts:14688
Creates a new HydratedTemplateButton instance using the specified properties.
Parameters
properties?
Properties to set
Returns
HydratedTemplateButton instance
decode()
static
decode(reader
,length
?):HydratedTemplateButton
Defined in: WAProto/index.d.ts:14714
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
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:14723
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
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:14696
Encodes the specified HydratedTemplateButton message. Does not implicitly verify messages.
Parameters
message
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:14704
Encodes the specified HydratedTemplateButton message, length delimited. Does not implicitly verify messages.
Parameters
message
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:14737
Creates a HydratedTemplateButton message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
HydratedTemplateButton
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:14758
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:14745
Creates a plain object from a HydratedTemplateButton message. Also converts values to other types if specified.
Parameters
message
HydratedTemplateButton
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:14730
Verifies a HydratedTemplateButton message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not