Google Cloud Discovery Engine V1 Client - Class ConversationMessage (1.3.2)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class ConversationMessage.

Defines a conversation message.

Generated from protobuf message google.cloud.discoveryengine.v1.ConversationMessage

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ user_input TextInput

User text input.

↳ reply Reply

Search reply.

↳ create_time Google\Protobuf\Timestamp

Output only. Message creation timestamp.

getUserInput

User text input.

Returns
Type Description
TextInput|null

hasUserInput

setUserInput

User text input.

Parameter
Name Description
var TextInput
Returns
Type Description
$this

getReply

Search reply.

Returns
Type Description
Reply|null

hasReply

setReply

Search reply.

Parameter
Name Description
var Reply
Returns
Type Description
$this

getCreateTime

Output only. Message creation timestamp.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Message creation timestamp.

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

getMessage

Returns
Type Description
string