Class Citation

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

public abstract class Citation extends JsonSerializable
Source attributions for content.
  • Constructor Details

    • Citation

      public Citation()
  • Method Details

    • endIndex

      public abstract Optional<Integer> endIndex()
      Output only. End index into the content.
    • license

      public abstract Optional<String> license()
      Output only. License of the attribution.
    • publicationDate

      public abstract Optional<GoogleTypeDate> publicationDate()
      Output only. Publication date of the attribution.
    • startIndex

      public abstract Optional<Integer> startIndex()
      Output only. Start index into the content.
    • title

      public abstract Optional<String> title()
      Output only. Title of the attribution.
    • uri

      public abstract Optional<String> uri()
      Output only. Url reference of the attribution.
    • builder

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

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

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