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 datasource Currently supports both oauth token and api keys based credentials, as described in https://cloud.google.com/looker/docs/api-auth#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 datasource Currently supports both oauth token and api keys based credentials, as described in https://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk
Returns | |
---|---|
Type | Description |
Credentials|null |
hasCredentials
clearCredentials
setCredentials
Optional. The credentials to use when calling the looker datasource Currently supports both oauth token and api keys based credentials, as described in https://cloud.google.com/looker/docs/api-auth#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 |
setContextVersion
Optional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)
Parameter | |
---|---|
Name | Description |
var |
int
|
Returns | |
---|---|
Type | Description |
$this |