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

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 Google\Cloud\DiscoveryEngine\V1\TextInput

User text input.

↳ reply Google\Cloud\DiscoveryEngine\V1\Reply

Search reply.

↳ create_time Google\Protobuf\Timestamp

Output only. Message creation timestamp.

getUserInput

User text input.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\TextInput|null

hasUserInput

setUserInput

User text input.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\TextInput
Returns
Type Description
$this

getReply

Search reply.

Returns
Type Description
Google\Cloud\DiscoveryEngine\V1\Reply|null

hasReply

setReply

Search reply.

Parameter
Name Description
var Google\Cloud\DiscoveryEngine\V1\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