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 \ V1Methods
__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 |
Google\Protobuf\Internal\RepeatedField |
|
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 |
Google\Protobuf\Timestamp|null |
|
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 |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|