Class SearchEntryPoint

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SearchEntryPoint

public abstract class SearchEntryPoint extends JsonSerializable
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.
  • Constructor Details

    • SearchEntryPoint

      public SearchEntryPoint()
  • Method Details

    • renderedContent

      public abstract Optional<String> 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

      public abstract Optional<byte[]> 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

      public static SearchEntryPoint.Builder builder()
      Instantiates a builder for SearchEntryPoint.
    • toBuilder

      public abstract SearchEntryPoint.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static SearchEntryPoint fromJson(String jsonString)
      Deserializes a JSON string to a SearchEntryPoint object.