Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class Message.
Represents a message posted into a conversation.
Generated from protobuf message google.cloud.dialogflow.v2.Message
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Optional. The unique identifier of the message. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
↳ content
string
Required. The message content.
↳ language_code
↳ participant
string
Output only. The participant that sends this message.
↳ participant_role
int
Output only. The role of the participant.
↳ create_time
↳ send_time
↳ message_annotation
↳ sentiment_analysis
Google\Cloud\Dialogflow\V2\SentimentAnalysisResult
Output only. The sentiment analysis result for the message.
getName
Optional. The unique identifier of the message.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string
setName
Optional. The unique identifier of the message.
Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
var
string
$this
getContent
Required. The message content.
string
setContent
Required. The message content.
var
string
$this
getLanguageCode
Optional. The message language.
This should be a BCP-47 language tag. Example: "en-US".
string
setLanguageCode
Optional. The message language.
This should be a BCP-47 language tag. Example: "en-US".
var
string
$this
getParticipant
Output only. The participant that sends this message.
string
setParticipant
Output only. The participant that sends this message.
var
string
$this
getParticipantRole
Output only. The role of the participant.
int
setParticipantRole
Output only. The role of the participant.
var
int
$this
getCreateTime
Output only. The time when the message was created in Contact Center AI.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The time when the message was created in Contact Center AI.
$this
getSendTime
Optional. The time when the message was sent.
hasSendTime
clearSendTime
setSendTime
Optional. The time when the message was sent.
$this
getMessageAnnotation
Output only. The annotation for the message.
hasMessageAnnotation
clearMessageAnnotation
setMessageAnnotation
Output only. The annotation for the message.
$this
getSentimentAnalysis
Output only. The sentiment analysis result for the message.
hasSentimentAnalysis
clearSentimentAnalysis
setSentimentAnalysis
Output only. The sentiment analysis result for the message.
$this