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

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
NameDescription
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
TypeDescription
Google\Cloud\DiscoveryEngine\V1beta\TextInput|null

hasUserInput

setUserInput

User text input.

Parameter
NameDescription
var Google\Cloud\DiscoveryEngine\V1beta\TextInput
Returns
TypeDescription
$this

getReply

Search reply.

Returns
TypeDescription
Google\Cloud\DiscoveryEngine\V1beta\Reply|null

hasReply

setReply

Search reply.

Parameter
NameDescription
var Google\Cloud\DiscoveryEngine\V1beta\Reply
Returns
TypeDescription
$this

getCreateTime

Output only. Message creation timestamp.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. Message creation timestamp.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getMessage

Returns
TypeDescription
string