Class WebSearch

  • All Implemented Interfaces:

    
    public abstract class WebSearch
    extends JsonSerializable
                        

    Standard web search for grounding and related configurations. Only text results are returned.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class WebSearch.Builder

      Builder for WebSearch.

    • Constructor Summary

      Constructors 
      Constructor Description
      WebSearch()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static WebSearch.Builder builder() Instantiates a builder for WebSearch.
      abstract WebSearch.Builder toBuilder() Creates a builder with the same values as this instance.
      static WebSearch fromJson(String jsonString) Deserializes a JSON string to a WebSearch 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