Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class ConversationEvent.
Represents a notification sent to Pub/Sub subscribers for conversation lifecycle events.
Generated from protobuf message google.cloud.dialogflow.v2.ConversationEvent
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ conversation
string
The unique identifier of the conversation this notification refers to. Format: projects/<Project ID>/conversations/<Conversation ID>
.
↳ type
int
The type of the event that this notification refers to.
↳ error_status
Google\Rpc\Status
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
↳ new_message_payload
getConversation
The unique identifier of the conversation this notification refers to.
Format: projects/<Project ID>/conversations/<Conversation ID>
.
string
setConversation
The unique identifier of the conversation this notification refers to.
Format: projects/<Project ID>/conversations/<Conversation ID>
.
var
string
$this
getType
The type of the event that this notification refers to.
int
setType
The type of the event that this notification refers to.
var
int
$this
getErrorStatus
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
hasErrorStatus
clearErrorStatus
setErrorStatus
More detailed information about an error. Only set for type UNRECOVERABLE_ERROR_IN_PHONE_CALL.
$this
getNewMessagePayload
Payload of NEW_MESSAGE event.
hasNewMessagePayload
setNewMessagePayload
Payload of NEW_MESSAGE event.
$this
getPayload
string