Package com.google.genai.types
Class GoogleSearch
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GoogleSearch
GoogleSearch tool type. Tool to support Google Search in Model. Powered by Google.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GoogleSearch.Builderbuilder()Instantiates a builder for GoogleSearch.Optional.static GoogleSearchDeserializes a JSON string to a GoogleSearch object.Optional.abstract GoogleSearch.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GoogleSearch
public GoogleSearch()
-
-
Method Details
-
excludeDomains
Optional. List of domains to be excluded from the search results. The default limit is 2000 domains. Example: ["amazon.com", "facebook.com"]. This field is not supported in Gemini API. -
timeRangeFilter
Optional. Filter search results to a specific time range. If customers set a start time, they must set an end time (and vice versa). This field is not supported in Vertex AI. -
builder
Instantiates a builder for GoogleSearch. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GoogleSearch object.
-