Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class ClientManagedResourceContext.
Context with client managed resources.
Some clients may not use GDA managed resources including conversations and agents, instead they create and manage their own conversations and agents resources.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ inline_context |
Context
Required. Context for the chat request. Use this to chat without GDA API managed conversation and agent persistence by passing all context inline. |
↳ conversation_id |
string
Optional. The client managed conversation id. |
↳ agent_id |
string
Optional. The client managed agent id. |
getInlineContext
Required. Context for the chat request. Use this to chat without GDA API managed conversation and agent persistence by passing all context inline.
| Returns | |
|---|---|
| Type | Description |
Context|null |
|
hasInlineContext
clearInlineContext
setInlineContext
Required. Context for the chat request. Use this to chat without GDA API managed conversation and agent persistence by passing all context inline.
| Parameter | |
|---|---|
| Name | Description |
var |
Context
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getConversationId
Optional. The client managed conversation id.
| Returns | |
|---|---|
| Type | Description |
string |
|
setConversationId
Optional. The client managed conversation id.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAgentId
Optional. The client managed agent id.
| Returns | |
|---|---|
| Type | Description |
string |
|
setAgentId
Optional. The client managed agent id.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|