1.1.0 (latest) 1.0.0

    public sealed class GoogleSearchTool : IMessage<GoogleSearchTool>, IEquatable<GoogleSearchTool>, IDeepCloneable<GoogleSearchTool>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class GoogleSearchTool.

Represents a tool to perform Google web searches for grounding.
See
<https://cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool#google-search>.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> GoogleSearchTool

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[GoogleSearchTool](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GoogleSearchTool.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[GoogleSearchTool](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GoogleSearchTool.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[GoogleSearchTool](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.GoogleSearchTool.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.Ces.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Ces.V1/latest/Google.Cloud.Ces.V1.md.txt)

## Assembly

Google.Cloud.Ces.V1.dll

## Constructors

### GoogleSearchTool()

    public GoogleSearchTool()

### GoogleSearchTool(GoogleSearchTool)

    public GoogleSearchTool(GoogleSearchTool other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `GoogleSearchTool` |

## Properties

### ContextUrls

    public RepeatedField<string> ContextUrls { get; }

Optional. Content will be fetched directly from these URLs for context and
grounding. Example: "<https://example.com/path.html>". A maximum of 20 URLs
are allowed.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### Description

    public string Description { get; set; }

Optional. Description of the tool's purpose.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### ExcludeDomains

    public RepeatedField<string> ExcludeDomains { get; }

Optional. List of domains to be excluded from the search results.
Example: "example.com".
A maximum of 2000 domains can be excluded.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### Name

    public string Name { get; set; }

Required. The name of the tool.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### PreferredDomains

    public RepeatedField<string> PreferredDomains { get; }

Optional. Specifies domains to restrict search results to.
Example: "example.com", "another.site". A maximum of 20 domains can be
specified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldstring` |   |

### PromptConfig

    public GoogleSearchTool.Types.PromptConfig PromptConfig { get; set; }

Optional. Prompt instructions passed to planner on how the search results
should be processed for text and voice.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `GoogleSearchToolTypesPromptConfig` |   |