Class GroundingChunkMaps

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

public abstract class GroundingChunkMaps extends JsonSerializable
A `Maps` chunk is a piece of evidence that comes from Google Maps.

It contains information about a place, such as its name, address, and reviews. This is used to provide the user with rich, location-based information.

  • Constructor Details

    • GroundingChunkMaps

      public GroundingChunkMaps()
  • Method Details

    • placeAnswerSources

      public abstract Optional<GroundingChunkMapsPlaceAnswerSources> placeAnswerSources()
      The sources that were 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.

      This can be used to look up the place in the Google Maps API.

    • text

      public abstract Optional<String> text()
      The text of the place answer.
    • title

      public abstract Optional<String> title()
      The title of the place.
    • uri

      public abstract Optional<String> uri()
      The URI of the place.
    • 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.