Package com.google.genai.types
Class GoogleSearch
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GoogleSearch
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.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
toJson
-
Constructor Details
-
GoogleSearch
public GoogleSearch()
-
-
Method Details
-
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). -
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.
-