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 v1beta 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\u003eThis document provides reference material for the \u003ccode\u003eSearchSource\u003c/code\u003e class within the Google Cloud Discovery Engine v1beta API, specifically for version 1.0.0-beta18.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSearchSource\u003c/code\u003e class is used as a message for grounding with Vertex AI Search and is part of the \u003ccode\u003eGenerateGroundedContentRequest.Types.GroundingSource.Types\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties such as \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eMaxResultCount\u003c/code\u003e, \u003ccode\u003eSafeSearch\u003c/code\u003e, and \u003ccode\u003eServingConfig\u003c/code\u003e to configure and refine search requests, offering control over filtering, result quantity, safe search settings, and serving configurations.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements various interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling functionalities like message processing, comparison, deep cloning, and efficient buffer handling.\u003c/p\u003e\n"],["\u003cp\u003eThere are two constructors available, \u003ccode\u003eSearchSource()\u003c/code\u003e and \u003ccode\u003eSearchSource(SearchSource)\u003c/code\u003e, to construct a new instance of the \u003ccode\u003eSearchSource\u003c/code\u003e class either empty or by cloning from another \u003ccode\u003eSearchSource\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["# Discovery Engine v1beta API - Class GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource (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.Types.SearchSource)\n- [1.0.0-beta18](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/1.0.0-beta18/Google.Cloud.DiscoveryEngine.V1Beta.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 v1beta 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.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)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource), [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)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.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)[Types](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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.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### 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.v1beta.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.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ServingConfigName)-typed view over the [ServingConfig](/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource#Google_Cloud_DiscoveryEngine_V1Beta_GenerateGroundedContentRequest_Types_GroundingSource_Types_SearchSource_ServingConfig) resource\nname property."]]