Google Cloud Gemini Data Analytics V1beta Client - Class Message (0.1.0)

Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class Message.

A message from an internaction between the user and the system.

Generated from protobuf message google.cloud.geminidataanalytics.v1beta.Message

Namespace

Google \ Cloud \ GeminiDataAnalytics \ V1beta

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ user_message UserMessage

A message from the user that is interacting with the system.

↳ system_message SystemMessage

A message from the system in response to the user.

↳ timestamp Google\Protobuf\Timestamp

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

↳ message_id string

Optional. unique id of the message in the conversation for persistence.

getUserMessage

A message from the user that is interacting with the system.

Returns
Type Description
UserMessage|null

hasUserMessage

setUserMessage

A message from the user that is interacting with the system.

Parameter
Name Description
var UserMessage
Returns
Type Description
$this

getSystemMessage

A message from the system in response to the user.

Returns
Type Description
SystemMessage|null

hasSystemMessage

setSystemMessage

A message from the system in response to the user.

Parameter
Name Description
var SystemMessage
Returns
Type Description
$this

getTimestamp

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasTimestamp

clearTimestamp

setTimestamp

Output only. For user messages, this is the time at which the system received the message. For system messages, this is the time at which the system generated the message.

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

getMessageId

Optional. unique id of the message in the conversation for persistence.

Returns
Type Description
string

setMessageId

Optional. unique id of the message in the conversation for persistence.

Parameter
Name Description
var string
Returns
Type Description
$this

getKind

Returns
Type Description
string