Reference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class DataAgentContext.
Context for the chat request using a data agent.
Generated from protobuf message google.cloud.geminidataanalytics.v1beta.DataAgentContext
Namespace
Google \ Cloud \ GeminiDataAnalytics \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ data_agent |
string
Required. The name of the data agent resource. |
↳ credentials |
Credentials
Optional. The credentials to use when calling the Looker data source. Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK. |
↳ context_version |
int
Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED) |
getDataAgent
Required. The name of the data agent resource.
| Returns | |
|---|---|
| Type | Description |
string |
|
setDataAgent
Required. The name of the data agent resource.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCredentials
Optional. The credentials to use when calling the Looker data source.
Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.
| Returns | |
|---|---|
| Type | Description |
Credentials|null |
|
hasCredentials
clearCredentials
setCredentials
Optional. The credentials to use when calling the Looker data source.
Currently supports both OAuth token and API key-based credentials, as described in Authentication with an SDK.
| Parameter | |
|---|---|
| Name | Description |
var |
Credentials
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getContextVersion
Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)
| Returns | |
|---|---|
| Type | Description |
int |
Enum of type ContextVersion. |
setContextVersion
Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)
| Parameter | |
|---|---|
| Name | Description |
var |
int
Enum of type ContextVersion. |
| Returns | |
|---|---|
| Type | Description |
$this |
|