public sealed class GenerateGroundedContentRequest.Types.GroundingSource : IMessage<GenerateGroundedContentRequest.Types.GroundingSource>, IEquatable<GenerateGroundedContentRequest.Types.GroundingSource>, IDeepCloneable<GenerateGroundedContentRequest.Types.GroundingSource>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1beta API class GenerateGroundedContentRequest.Types.GroundingSource.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference documentation for the \u003ccode\u003eGenerateGroundedContentRequest.Types.GroundingSource\u003c/code\u003e class in the Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eGroundingSource\u003c/code\u003e class is used to define the source for grounding content and is part of the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1Beta\u003c/code\u003e namespace, within the \u003ccode\u003eGoogle.Cloud.DiscoveryEngine.V1Beta.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class supports three grounding source types through its properties: \u003ccode\u003eGoogleSearchSource\u003c/code\u003e, \u003ccode\u003eInlineSource\u003c/code\u003e, and \u003ccode\u003eSearchSource\u003c/code\u003e, and uses the \u003ccode\u003eSourceCase\u003c/code\u003e property to check what type of source is set.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available: a default constructor, \u003ccode\u003eGroundingSource()\u003c/code\u003e, and one that accepts another \u003ccode\u003eGroundingSource\u003c/code\u003e object for copying, \u003ccode\u003eGroundingSource(GroundingSource)\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class GenerateGroundedContentRequest.Types.GroundingSource (1.0.0-beta19)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta19 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource) \n\n public sealed class GenerateGroundedContentRequest.Types.GroundingSource : IMessage\u003cGenerateGroundedContentRequest.Types.GroundingSource\u003e, IEquatable\u003cGenerateGroundedContentRequest.Types.GroundingSource\u003e, IDeepCloneable\u003cGenerateGroundedContentRequest.Types.GroundingSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1beta API class GenerateGroundedContentRequest.Types.GroundingSource.\n\nGrounding source. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GenerateGroundedContentRequest.Types.GroundingSource \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GenerateGroundedContentRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types)[GroundingSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenerateGroundedContentRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types)[GroundingSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GenerateGroundedContentRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types)[GroundingSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource), [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.DiscoveryEngine.V1Beta](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1Beta.dll\n\nConstructors\n------------\n\n### GroundingSource()\n\n public GroundingSource()\n\n### GroundingSource(GroundingSource)\n\n public GroundingSource(GenerateGroundedContentRequest.Types.GroundingSource other)\n\nProperties\n----------\n\n### GoogleSearchSource\n\n public GenerateGroundedContentRequest.Types.GroundingSource.Types.GoogleSearchSource GoogleSearchSource { get; set; }\n\nIf set, grounding is performed with Google Search.\n\n### InlineSource\n\n public GenerateGroundedContentRequest.Types.GroundingSource.Types.InlineSource InlineSource { get; set; }\n\nIf set, grounding is performed with inline content.\n\n### SearchSource\n\n public GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource SearchSource { get; set; }\n\nIf set, grounding is performed with Vertex AI Search.\n\n### SourceCase\n\n public GenerateGroundedContentRequest.Types.GroundingSource.SourceOneofCase SourceCase { get; }"]]