public sealed class GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource : IMessage<GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource>, IEquatable<GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource>, IDeepCloneable<GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource>, IBufferMessage, IMessage
Reference documentation and code samples for the Discovery Engine v1 API class GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource.
Message to be used for grounding with Vertex AI Search.
[[["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\u003eThe \u003ccode\u003eGenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource\u003c/code\u003e class is a message type used for grounding content with Vertex AI Search within the Discovery Engine v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class has several versions available, ranging from version 1.0.0-beta06 to the latest 1.6.0, and it implements \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 \u003ccode\u003eSearchSource\u003c/code\u003e class includes properties such as \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eMaxResultCount\u003c/code\u003e, \u003ccode\u003eSafeSearch\u003c/code\u003e, \u003ccode\u003eServingConfig\u003c/code\u003e, and \u003ccode\u003eServingConfigAsServingConfigName\u003c/code\u003e to configure and control the search behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows you to use the Vertex AI Search to apply a filter, enable safe search, and choose the amount of search results to return, with a default value of 10.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eServingConfig\u003c/code\u003e property is a resource name that identifies the specific engine and serving configuration to use for the search.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1 API - Class GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource (1.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.8.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.7.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.6.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.5.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.4.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.3.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.2.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.1.0/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource)\n- [1.0.0-beta06](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/1.0.0-beta06/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource) \n\n public sealed class GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource : IMessage\u003cGenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource\u003e, IEquatable\u003cGenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource\u003e, IDeepCloneable\u003cGenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Discovery Engine v1 API class GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource.\n\nMessage to be used for grounding with Vertex AI Search. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource \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.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types)[GroundingSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GenerateGroundedContentRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types)[GroundingSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[GenerateGroundedContentRequest](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types)[GroundingSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource), [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.V1](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.DiscoveryEngine.V1.dll\n\nConstructors\n------------\n\n### SearchSource()\n\n public SearchSource()\n\n### SearchSource(SearchSource)\n\n public SearchSource(GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource other)\n\nProperties\n----------\n\n### Filter\n\n public string Filter { get; set; }\n\nFilter expression to be applied to the search.\n\nThe syntax is the same as\n\\[SearchRequest.filter\\]\\[google.cloud.discoveryengine.v1.SearchRequest.filter\\].\n\n### MaxResultCount\n\n public int MaxResultCount { get; set; }\n\nNumber of search results to return.\n\nThe default value is 10. The maximumm allowed value is 10.\n\n### SafeSearch\n\n public bool SafeSearch { get; set; }\n\nIf set, safe search is enabled in Vertex AI Search requests.\n\n### ServingConfig\n\n public string ServingConfig { get; set; }\n\nThe resource name of the Engine to use.\n\nFormat:\n`projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`\n\n### ServingConfigAsServingConfigName\n\n public ServingConfigName ServingConfigAsServingConfigName { get; set; }\n\n[ServingConfigName](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.ServingConfigName)-typed view over the [ServingConfig](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1/latest/Google.Cloud.DiscoveryEngine.V1.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource#Google_Cloud_DiscoveryEngine_V1_GenerateGroundedContentRequest_Types_GroundingSource_Types_SearchSource_ServingConfig) resource\nname property."]]