Package com.google.genai.types
Class EnterpriseWebSearch
-
- All Implemented Interfaces:
public abstract class EnterpriseWebSearch extends JsonSerializable
Tool to search public web data, powered by Vertex AI Search and Sec4 compliance. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classEnterpriseWebSearch.BuilderBuilder for EnterpriseWebSearch.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description EnterpriseWebSearch()
-
Method Summary
Modifier and Type Method Description abstract Optional<PhishBlockThreshold>blockingConfidence()Optional. abstract Optional<List<String>>excludeDomains()Optional. static EnterpriseWebSearch.Builderbuilder()Instantiates a builder for EnterpriseWebSearch. abstract EnterpriseWebSearch.BuildertoBuilder()Creates a builder with the same values as this instance. static EnterpriseWebSearchfromJson(String jsonString)Deserializes a JSON string to a EnterpriseWebSearch object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
blockingConfidence
abstract Optional<PhishBlockThreshold> blockingConfidence()
Optional. Sites with confidence level chosen &above this value will be blocked from the search results.
-
excludeDomains
abstract Optional<List<String>> excludeDomains()
Optional. List of domains to be excluded from the search results. The default limit is 2000 domains.
-
builder
static EnterpriseWebSearch.Builder builder()
Instantiates a builder for EnterpriseWebSearch.
-
toBuilder
abstract EnterpriseWebSearch.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static EnterpriseWebSearch fromJson(String jsonString)
Deserializes a JSON string to a EnterpriseWebSearch object.
-
-
-
-