Class GroundingChunkImage

  • All Implemented Interfaces:

    
    public abstract class GroundingChunkImage
    extends JsonSerializable
                        

    An `Image` chunk is a piece of evidence that comes from an image search result. It contains the URI of the image search result and the URI of the image. This is used to provide the user with a link to the source of the information.

    • Nested Class Summary

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

      Builder for GroundingChunkImage.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<String> sourceUri() The URI of the image search result page.
      abstract Optional<String> imageUri() The URI of the image.
      abstract Optional<String> title() The title of the image search result page.
      abstract Optional<String> domain() The domain of the image search result page.
      static GroundingChunkImage.Builder builder() Instantiates a builder for GroundingChunkImage.
      abstract GroundingChunkImage.Builder toBuilder() Creates a builder with the same values as this instance.
      static GroundingChunkImage fromJson(String jsonString) Deserializes a JSON string to a GroundingChunkImage 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