Table of Contents

Class EnterpriseWebSearch

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. This data type is not supported in Gemini API.

public record EnterpriseWebSearch : IEquatable<EnterpriseWebSearch>
Inheritance
EnterpriseWebSearch
Implements
Inherited Members

Properties

BlockingConfidence

Optional. Sites with confidence level chosen & above this value will be blocked from the search results.

[JsonPropertyName("blockingConfidence")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public PhishBlockThreshold? BlockingConfidence { get; set; }

Property Value

PhishBlockThreshold?

ExcludeDomains

Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.

[JsonPropertyName("excludeDomains")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public List<string>? ExcludeDomains { get; set; }

Property Value

List<string>

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a EnterpriseWebSearch object.

public static EnterpriseWebSearch? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

EnterpriseWebSearch

The deserialized EnterpriseWebSearch object, or null if deserialization fails.