Google Cloud Dialogflow V2 Client - Class MessageEntry (1.14.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class MessageEntry.

Represents a message entry of a conversation.

Generated from protobuf message google.cloud.dialogflow.v2.MessageEntry

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ role int

Optional. Participant role of the message.

↳ text string

Optional. Transcript content of the message.

↳ language_code string

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

↳ create_time Google\Protobuf\Timestamp

Optional. Create time of the message entry.

getRole

Optional. Participant role of the message.

Returns
Type Description
int

setRole

Optional. Participant role of the message.

Parameter
Name Description
var int
Returns
Type Description
$this

getText

Optional. Transcript content of the message.

Returns
Type Description
string

setText

Optional. Transcript content of the message.

Parameter
Name Description
var string
Returns
Type Description
$this

getLanguageCode

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

Returns
Type Description
string

setLanguageCode

Optional. The language of the text. See Language Support for a list of the currently supported language codes.

Parameter
Name Description
var string
Returns
Type Description
$this

getCreateTime

Optional. Create time of the message entry.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Optional. Create time of the message entry.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this