Class GroundingChunkMaps

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

public abstract class GroundingChunkMaps extends JsonSerializable
Chunk from Google Maps.
  • Constructor Details

    • GroundingChunkMaps

      public GroundingChunkMaps()
  • Method Details

    • placeAnswerSources

      public abstract Optional<GroundingChunkMapsPlaceAnswerSources> placeAnswerSources()
      Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content.
    • placeId

      public abstract Optional<String> placeId()
      This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place.
    • text

      public abstract Optional<String> text()
      Text of the chunk.
    • title

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

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

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

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

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