Package com.google.genai.types
Class SearchEntryPoint
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SearchEntryPoint
An entry point for displaying Google Search results. A `SearchEntryPoint` is populated when the
grounding source for a model's response is Google Search. It provides information that you can
use to display the search results in your application.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for SearchEntryPoint. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SearchEntryPoint.Builderbuilder()Instantiates a builder for SearchEntryPoint.static SearchEntryPointDeserializes a JSON string to a SearchEntryPoint object.Optional.abstract Optional<byte[]>sdkBlob()Optional.abstract SearchEntryPoint.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
SearchEntryPoint
public SearchEntryPoint()
-
-
Method Details
-
renderedContent
Optional. An HTML snippet that can be embedded in a web page or an application's webview. This snippet displays a search result, including the title, URL, and a brief description of the search result. -
sdkBlob
Optional. A base64-encoded JSON object that contains a list of search queries and their corresponding search URLs. This information can be used to build a custom search UI. -
builder
Instantiates a builder for SearchEntryPoint. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SearchEntryPoint object.
-