# Interface MessageOrBuilder (0.9.0)

0.9.0 (latest) 0.7.0 0.4.0 0.3.0 0.1.0

    public interface MessageOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getChunks(int index)

    public abstract Chunk getChunks(int index)

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

`repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Chunk` |   |

### getChunksCount()

    public abstract int getChunksCount()

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

`repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getChunksList()

    public abstract List<Chunk> getChunksList()

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

`repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.Chunk>` |   |

### getChunksOrBuilder(int index)

    public abstract ChunkOrBuilder getChunksOrBuilder(int index)

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

`repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-ces/latest/com.google.cloud.ces.v1.ChunkOrBuilder` |   |

### getChunksOrBuilderList()

    public abstract List<? extends ChunkOrBuilder> getChunksOrBuilderList()

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

`repeated .google.cloud.ces.v1.Chunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.cloud.ces.v1.ChunkOrBuilder>` |   |

### getEventTime()

    public abstract Timestamp getEventTime()

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

`.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The eventTime. |

### getEventTimeOrBuilder()

    public abstract TimestampOrBuilder getEventTimeOrBuilder()

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

`.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getRole()

    public abstract String getRole()

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

`string role = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The role. |

### getRoleBytes()

    public abstract ByteString getRoleBytes()

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

`string role = 1 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for role. |

### hasEventTime()

    public abstract boolean hasEventTime()

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

`.google.protobuf.Timestamp event_time = 4 [(.google.api.field_behavior) = OPTIONAL];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the eventTime field is set. |