Google Cloud Ces V1 Client - Class Message (0.2.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class Message.

A message within a conversation.

Generated from protobuf message google.cloud.ces.v1.Message

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ role
string

Optional. The role within the conversation, e.g., user, agent.

↳ chunks
array< Chunk >

Optional. Content of the message as a series of chunks.

↳ event_time
Google\Protobuf\Timestamp

Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example .

getRole

Optional. The role within the conversation, e.g., user, agent.

Returns
Type
Description
string

setRole

Optional. The role within the conversation, e.g., user, agent.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getChunks

Optional. Content of the message as a series of chunks.

Returns
Type
Description

setChunks

Optional. Content of the message as a series of chunks.

Parameter
Name
Description
var
array< Chunk >
Returns
Type
Description
$this

getEventTime

Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example .

Returns
Type
Description

hasEventTime

clearEventTime

setEventTime

Optional. Timestamp when the message was sent or received. Should not be used if the message is part of an example .

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: