Package com.google.genai.types
Class Citation
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Citation
A citation for a piece of generatedcontent. This data type is not supported in Gemini API.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Citation.Builderbuilder()Instantiates a builder for Citation.endIndex()Output only.static CitationDeserializes a JSON string to a Citation object.license()Output only.abstract Optional<GoogleTypeDate>Output only.Output only.title()Output only.abstract Citation.BuilderCreates a builder with the same values as this instance.uri()Output only.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
Citation
public Citation()
-
-
Method Details
-
endIndex
Output only. The end index of the citation in the content. -
license
Output only. The license of the source of the citation. -
publicationDate
Output only. The publication date of the source of the citation. -
startIndex
Output only. The start index of the citation in the content. -
title
Output only. The title of the source of the citation. -
uri
Output only. The URI of the source of the citation. -
builder
Instantiates a builder for Citation. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a Citation object.
-