# Interface ClientManagedResourceContextOrBuilder (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 ClientManagedResourceContextOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getAgentId()

    public abstract String getAgentId()

Optional. The client managed agent id.

`string agent_id = 3 [(.google.api.field_behavior) = OPTIONAL];`

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

### getAgentIdBytes()

    public abstract ByteString getAgentIdBytes()

Optional. The client managed agent id.

`string agent_id = 3 [(.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 agentId. |

### getConversationId()

    public abstract String getConversationId()

Optional. The client managed conversation id.

`string conversation_id = 2 [(.google.api.field_behavior) = OPTIONAL];`

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

### getConversationIdBytes()

    public abstract ByteString getConversationIdBytes()

Optional. The client managed conversation id.

`string conversation_id = 2 [(.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 conversationId. |

### getInlineContext()

    public abstract Context getInlineContext()

Required. Context for the chat request. Use this to chat without GDA API
managed conversation and agent persistence by passing all context inline.

`
.google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/com.google.cloud.geminidataanalytics.v1beta.Context` | The inlineContext. |

### getInlineContextOrBuilder()

    public abstract ContextOrBuilder getInlineContextOrBuilder()

Required. Context for the chat request. Use this to chat without GDA API
managed conversation and agent persistence by passing all context inline.

`
.google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED];
`

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

### hasInlineContext()

    public abstract boolean hasInlineContext()

Required. Context for the chat request. Use this to chat without GDA API
managed conversation and agent persistence by passing all context inline.

`
.google.cloud.geminidataanalytics.v1beta.Context inline_context = 1 [(.google.api.field_behavior) = REQUIRED];
`

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