public sealed class DataAgentContext : IMessage<DataAgentContext>, IEquatable<DataAgentContext>, IDeepCloneable<DataAgentContext>, IBufferMessage, IMessage
Reference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataAgentContext.
[[["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-04 UTC."],[],[],null,["# Data Analytics API with Gemini v1beta API - Class DataAgentContext (1.0.0-beta01)\n\n public sealed class DataAgentContext : IMessage\u003cDataAgentContext\u003e, IEquatable\u003cDataAgentContext\u003e, IDeepCloneable\u003cDataAgentContext\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Data Analytics API with Gemini v1beta API class DataAgentContext.\n\nContext for the chat request using a data agent. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DataAgentContext \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DataAgentContext](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataAgentContext), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DataAgentContext](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataAgentContext), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DataAgentContext](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataAgentContext), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.GeminiDataAnalytics.V1Beta](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.GeminiDataAnalytics.V1Beta.dll\n\nConstructors\n------------\n\n### DataAgentContext()\n\n public DataAgentContext()\n\n### DataAgentContext(DataAgentContext)\n\n public DataAgentContext(DataAgentContext other)\n\nProperties\n----------\n\n### ContextVersion\n\n public DataAgentContext.Types.ContextVersion ContextVersion { get; set; }\n\nOptional. Version of context to be used by DCS (e.g. STAGING, PUBLISHED)\n\n### Credentials\n\n public Credentials Credentials { get; set; }\n\nOptional. The credentials to use when calling the looker datasource\n\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### DataAgent\n\n public string DataAgent { get; set; }\n\nRequired. The name of the data agent resource.\n\n### DataAgentAsDataAgentName\n\n public DataAgentName DataAgentAsDataAgentName { get; set; }\n\n[DataAgentName](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataAgentName)-typed view over the [DataAgent](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.DataAgentContext#Google_Cloud_GeminiDataAnalytics_V1Beta_DataAgentContext_DataAgent) resource name property."]]