Class: ActionLink
Defined in: WAProto/index.d.ts:2667
Represents an ActionLink.
Implements
Constructors
new ActionLink()
new ActionLink(
properties
?):ActionLink
Defined in: WAProto/index.d.ts:2673
Constructs a new ActionLink.
Parameters
properties?
Properties to set
Returns
Properties
buttonTitle?
optional
buttonTitle:null
|string
Defined in: WAProto/index.d.ts:2679
ActionLink buttonTitle.
Implementation of
url?
optional
url:null
|string
Defined in: WAProto/index.d.ts:2676
ActionLink url.
Implementation of
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:2749
Converts this ActionLink to JSON.
Returns
object
JSON object
create()
static
create(properties
?):ActionLink
Defined in: WAProto/index.d.ts:2686
Creates a new ActionLink instance using the specified properties.
Parameters
properties?
Properties to set
Returns
ActionLink instance
decode()
static
decode(reader
,length
?):ActionLink
Defined in: WAProto/index.d.ts:2712
Decodes an ActionLink 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
ActionLink
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):ActionLink
Defined in: WAProto/index.d.ts:2721
Decodes an ActionLink message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
ActionLink
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:2694
Encodes the specified ActionLink message. Does not implicitly verify messages.
Parameters
message
ActionLink 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:2702
Encodes the specified ActionLink message, length delimited. Does not implicitly verify messages.
Parameters
message
ActionLink message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):ActionLink
Defined in: WAProto/index.d.ts:2735
Creates an ActionLink message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
ActionLink
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:2756
Gets the default type url for ActionLink
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:2743
Creates a plain object from an ActionLink message. Also converts values to other types if specified.
Parameters
message
ActionLink
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:2728
Verifies an ActionLink message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not