Optional. The credentials to use when calling the Looker data source. Currently supports both OAuth token and API key-based credentials, as described inAuthentication 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 inAuthentication with an
SDK.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-09 UTC."],[],[],null,["# Google Cloud Gemini Data Analytics V1beta Client - Class DataAgentContext (0.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.1.1 (latest)](/php/docs/reference/cloud-geminidataanalytics/latest/V1beta.DataAgentContext)\n- [0.1.0](/php/docs/reference/cloud-geminidataanalytics/0.1.0/V1beta.DataAgentContext) \n| **Beta**\n|\n|\n| This library is covered by the [Pre-GA Offerings Terms](/terms/service-terms#1)\n| of the Terms of Service. Pre-GA libraries might have limited support,\n| and changes to pre-GA libraries might not be compatible with other pre-GA versions.\n| For more information, see the\n[launch stage descriptions](/products#product-launch-stages). \nReference documentation and code samples for the Google Cloud Gemini Data Analytics V1beta Client class DataAgentContext.\n\nContext for the chat request using a data agent.\n\nGenerated from protobuf message `google.cloud.geminidataanalytics.v1beta.DataAgentContext`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ GeminiDataAnalytics \\\\ V1beta\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getDataAgent\n\nRequired. The name of the data agent resource.\n\n### setDataAgent\n\nRequired. The name of the data agent resource.\n\n### getCredentials\n\nOptional. The credentials to use when calling the looker datasource\nCurrently supports both oauth token and api keys based credentials, as\ndescribed in\n\u003chttps://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk\u003e\n\n### hasCredentials\n\n### clearCredentials\n\n### setCredentials\n\nOptional. The credentials to use when calling the looker datasource\nCurrently supports both oauth token and api keys based credentials, as\ndescribed in\n\u003chttps://cloud.google.com/looker/docs/api-auth#authentication_with_an_sdk\u003e\n\n### getContextVersion\n\nOptional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)\n\n### setContextVersion\n\nOptional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)"]]