Package com.google.genai.types
Class Citation
-
- All Implemented Interfaces:
public abstract class Citation extends JsonSerializable
A citation for a piece of generatedcontent. This data type is not supported in Gemini API.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classCitation.BuilderBuilder for Citation.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description Citation()
-
Method Summary
Modifier and Type Method Description abstract Optional<Integer>endIndex()Output only. abstract Optional<String>license()Output only. abstract Optional<GoogleTypeDate>publicationDate()Output only. abstract Optional<Integer>startIndex()Output only. abstract Optional<String>title()Output only. abstract Optional<String>uri()Output only. static Citation.Builderbuilder()Instantiates a builder for Citation. abstract Citation.BuildertoBuilder()Creates a builder with the same values as this instance. static CitationfromJson(String jsonString)Deserializes a JSON string to a Citation 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
-
-
Method Detail
-
endIndex
abstract Optional<Integer> endIndex()
Output only. The end index of the citation in the content.
-
publicationDate
abstract Optional<GoogleTypeDate> publicationDate()
Output only. The publication date of the source of the citation.
-
startIndex
abstract Optional<Integer> startIndex()
Output only. The start index of the citation in the content.
-
builder
static Citation.Builder builder()
Instantiates a builder for Citation.
-
toBuilder
abstract Citation.Builder toBuilder()
Creates a builder with the same values as this instance.
-
-
-
-