Google Cloud Discovery Engine V1beta Client - Class ConversationMessage (0.11.3)

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

Defines a conversation message.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ user_input Google\Cloud\DiscoveryEngine\V1beta\TextInput

User text input.

↳ reply Google\Cloud\DiscoveryEngine\V1beta\Reply

Search reply.

↳ create_time Google\Protobuf\Timestamp

Output only. Message creation timestamp.

getUserInput

User text input.

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

hasUserInput

setUserInput

User text input.

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

getReply

Search reply.

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

hasReply

setReply

Search reply.

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