Optional. Inline context for the chat request. Use this to chat
statelessly (without managed conversation persistence and without an
Agent) by passing all context inline.
[[["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 ChatRequest (1.0.0-beta01)\n\n public sealed class ChatRequest : IMessage\u003cChatRequest\u003e, IEquatable\u003cChatRequest\u003e, IDeepCloneable\u003cChatRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Data Analytics API with Gemini v1beta API class ChatRequest.\n\nRequest for Chat. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ChatRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ChatRequest](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.ChatRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ChatRequest](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.ChatRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ChatRequest](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.ChatRequest), [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### ChatRequest()\n\n public ChatRequest()\n\n### ChatRequest(ChatRequest)\n\n public ChatRequest(ChatRequest other)\n\nProperties\n----------\n\n### ContextProviderCase\n\n public ChatRequest.ContextProviderOneofCase ContextProviderCase { get; }\n\n### ConversationReference\n\n public ConversationReference ConversationReference { get; set; }\n\nOptional. Reference to a persisted conversation and agent context.\nUse this to chat with an Agent using managed conversation persistence.\n\n### DataAgentContext\n\n public DataAgentContext DataAgentContext { get; set; }\n\nOptional. Context for the chat request. Use this to chat with an Agent\nstatelessly, without managed conversation persistence.\n\n### InlineContext\n\n public Context InlineContext { get; set; }\n\nOptional. Inline context for the chat request. Use this to chat\nstatelessly (without managed conversation persistence and without an\nAgent) by passing all context inline.\n\n### Messages\n\n public RepeatedField\u003cMessage\u003e Messages { get; }\n\nRequired. Content of current conversation.\n\n### Parent\n\n public string Parent { get; set; }\n\nRequired. The parent value for chat request.\nPattern: `projects/{project}/locations/{location}`\n\n### Project\n\n [Obsolete]\n public string Project { get; set; }\n\nOptional. The GCP project to be used for quota and billing.\n\n### ProjectAsProjectName\n\n [Obsolete]\n public ProjectName ProjectAsProjectName { get; set; }\n\n[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [Project](/dotnet/docs/reference/Google.Cloud.GeminiDataAnalytics.V1Beta/latest/Google.Cloud.GeminiDataAnalytics.V1Beta.ChatRequest#Google_Cloud_GeminiDataAnalytics_V1Beta_ChatRequest_Project) resource name property."]]