Class GroundingChunkWeb

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

public abstract class GroundingChunkWeb extends JsonSerializable
Chunk from the web.
  • Constructor Details

    • GroundingChunkWeb

      public GroundingChunkWeb()
  • Method Details

    • domain

      public abstract Optional<String> domain()
      Domain of the (original) URI.
    • title

      public abstract Optional<String> title()
      Title of the chunk.
    • uri

      public abstract Optional<String> uri()
      URI reference of the chunk.
    • builder

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

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

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