Class: AIRichResponseMessage
Defined in: WAProto/index.d.ts:601
Represents a AIRichResponseMessage.
Implements
Constructors
new AIRichResponseMessage()
new AIRichResponseMessage(
properties
?):AIRichResponseMessage
Defined in: WAProto/index.d.ts:607
Constructs a new AIRichResponseMessage.
Parameters
properties?
Properties to set
Returns
Properties
abstractData?
optional
abstractData:null
|IAIRichResponseAbstractData
Defined in: WAProto/index.d.ts:616
AIRichResponseMessage abstractData.
Implementation of
IAIRichResponseMessage
.abstractData
messageType?
optional
messageType:null
|AIRichResponseMessageType
Defined in: WAProto/index.d.ts:610
AIRichResponseMessage messageType.
Implementation of
IAIRichResponseMessage
.messageType
submessages
submessages:
IAIRichResponseSubMessage
[]
Defined in: WAProto/index.d.ts:613
AIRichResponseMessage submessages.
Implementation of
IAIRichResponseMessage
.submessages
Methods
toJSON()
toJSON():
object
Defined in: WAProto/index.d.ts:686
Converts this AIRichResponseMessage to JSON.
Returns
object
JSON object
create()
static
create(properties
?):AIRichResponseMessage
Defined in: WAProto/index.d.ts:623
Creates a new AIRichResponseMessage instance using the specified properties.
Parameters
properties?
Properties to set
Returns
AIRichResponseMessage instance
decode()
static
decode(reader
,length
?):AIRichResponseMessage
Defined in: WAProto/index.d.ts:649
Decodes a AIRichResponseMessage 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
AIRichResponseMessage
Throws
If the payload is not a reader or valid buffer
Throws
If required fields are missing
decodeDelimited()
static
decodeDelimited(reader
):AIRichResponseMessage
Defined in: WAProto/index.d.ts:658
Decodes a AIRichResponseMessage message from the specified reader or buffer, length delimited.
Parameters
reader
Reader or buffer to decode from
Uint8Array
<ArrayBufferLike
> | Reader
Returns
AIRichResponseMessage
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:631
Encodes the specified AIRichResponseMessage message. Does not implicitly verify messages.
Parameters
message
AIRichResponseMessage 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:639
Encodes the specified AIRichResponseMessage message, length delimited. Does not implicitly verify messages.
Parameters
message
AIRichResponseMessage message or plain object to encode
writer?
Writer
Writer to encode to
Returns
Writer
Writer
fromObject()
static
fromObject(object
):AIRichResponseMessage
Defined in: WAProto/index.d.ts:672
Creates a AIRichResponseMessage message from a plain object. Also converts values to their respective internal types.
Parameters
object
Plain object
Returns
AIRichResponseMessage
getTypeUrl()
static
getTypeUrl(typeUrlPrefix
?):string
Defined in: WAProto/index.d.ts:693
Gets the default type url for AIRichResponseMessage
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:680
Creates a plain object from a AIRichResponseMessage message. Also converts values to other types if specified.
Parameters
message
AIRichResponseMessage
options?
IConversionOptions
Conversion options
Returns
object
Plain object
verify()
static
verify(message
):null
|string
Defined in: WAProto/index.d.ts:665
Verifies a AIRichResponseMessage message.
Parameters
message
Plain object to verify
Returns
null
| string
null
if valid, otherwise the reason why it is not