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

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

Defines a conversation message.

Generated from protobuf messagegoogle.cloud.discoveryengine.v1.ConversationMessage

Namespace

Google \ Cloud \ DiscoveryEngine \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ user_inputTextInput

User text input.

↳ replyReply

Search reply.

↳ create_timeGoogle\Protobuf\Timestamp

Output only. Message creation timestamp.

getUserInput

User text input.

Returns
TypeDescription
TextInput|null

hasUserInput

setUserInput

User text input.

Parameter
NameDescription
varTextInput
Returns
TypeDescription
$this

getReply

Search reply.

Returns
TypeDescription
Reply|null

hasReply

setReply

Search reply.

Parameter
NameDescription
varReply
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
varGoogle\Protobuf\Timestamp
Returns
TypeDescription
$this

getMessage

Returns
TypeDescription
string

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-01-24 UTC.