Class GroundingChunkWeb.Builder

java.lang.Object
com.google.genai.types.GroundingChunkWeb.Builder
Enclosing class:
GroundingChunkWeb

public abstract static class GroundingChunkWeb.Builder extends Object
Builder for GroundingChunkWeb.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • domain

      public abstract GroundingChunkWeb.Builder domain(String domain)
      Setter for domain.

      domain: The domain of the web page that contains the evidence. This can be used to filter out low-quality sources. This field is not supported in Gemini API.

    • clearDomain

      @CanIgnoreReturnValue public GroundingChunkWeb.Builder clearDomain()
      Clears the value of domain field.
    • title

      public abstract GroundingChunkWeb.Builder title(String title)
      Setter for title.

      title: The title of the web page that contains the evidence.

    • clearTitle

      @CanIgnoreReturnValue public GroundingChunkWeb.Builder clearTitle()
      Clears the value of title field.
    • uri

      public abstract GroundingChunkWeb.Builder uri(String uri)
      Setter for uri.

      uri: The URI of the web page that contains the evidence.

    • clearUri

      @CanIgnoreReturnValue public GroundingChunkWeb.Builder clearUri()
      Clears the value of uri field.
    • build

      public abstract GroundingChunkWeb build()