# Discovery Engine v1beta API - Class GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource (1.0.0-beta23)

1.0.0-beta23 (latest) 1.0.0-beta22

    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.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[GenerateGroundedContentRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types)[GroundingSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](https://docs.cloud.google.com/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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types)[GroundingSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](https://docs.cloud.google.com/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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types)[GroundingSource](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource)[Types](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types)[SearchSource](https://docs.cloud.google.com/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)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### SearchSource()

    public SearchSource()

### SearchSource(SearchSource)

    public SearchSource(GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequesthttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSourcehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.GenerateGroundedContentRequest.Types.GroundingSource.Types.SearchSource` |

## Properties

### Filter

    public string Filter { get; set; }

Filter expression to be applied to the search.

The syntax is the same as
\[SearchRequest.filter\]\[google.cloud.discoveryengine.v1beta.SearchRequest.filter\].

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### MaxResultCount

    public int MaxResultCount { get; set; }

Number of search results to return.

The default value is 10. The maximumm allowed value is 10.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### SafeSearch

    public bool SafeSearch { get; set; }

If set, safe search is enabled in Vertex AI Search requests.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### ServingConfig

    public string ServingConfig { get; set; }

The resource name of the Engine to use.

Format:
`projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}/servingConfigs/{serving_config_id}`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ServingConfigAsServingConfigName

    public ServingConfigName ServingConfigAsServingConfigName { get; set; }

[ServingConfigName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ServingConfigName)-typed view over the [ServingConfig](https://docs.cloud.google.com/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
name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.ServingConfigName` |   |