0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 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](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.Example.md.txt). |

### 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\RepeatedField<Chunk>` |   |

### 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](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.Example.md.txt).

| **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](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.Example.md.txt).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |