# Interface ConversationReferenceOrBuilder (0.21.0)

0.21.0 (latest) 0.19.0 0.16.0 0.15.0 0.13.0 0.11.0 0.10.0 0.9.0 0.8.0 0.6.0 0.4.0 0.3.0 0.2.0 0.1.0

    public interface ConversationReferenceOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getConversation()

    public abstract String getConversation()

Required. Name of the conversation resource.
Format:
`projects/{project}/locations/{location}/conversations/{conversation_id}`

`
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getConversationBytes()

    public abstract ByteString getConversationBytes()

Required. Name of the conversation resource.
Format:
`projects/{project}/locations/{location}/conversations/{conversation_id}`

`
string conversation = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

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

### getDataAgentContext()

    public abstract DataAgentContext getDataAgentContext()

Required. Context for the chat request using a data agent.

`
.google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1.DataAgentContext` | The dataAgentContext. |

### getDataAgentContextOrBuilder()

    public abstract DataAgentContextOrBuilder getDataAgentContextOrBuilder()

Required. Context for the chat request using a data agent.

`
.google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasDataAgentContext()

    public abstract boolean hasDataAgentContext()

Required. Context for the chat request using a data agent.

`
.google.cloud.geminidataanalytics.v1.DataAgentContext data_agent_context = 3 [(.google.api.field_behavior) = REQUIRED];
`

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