Package com.google.genai.types
Class Citation
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.Citation
Source attributions for content.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Citation.Builder
builder()
Instantiates a builder for Citation.endIndex()
Output only.static Citation
Deserializes a JSON string to a Citation object.license()
Output only.abstract Optional<GoogleTypeDate>
Output only.Output only.title()
Output only.abstract Citation.Builder
Creates a builder with the same values as this instance.uri()
Output only.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
Citation
public Citation()
-
-
Method Details
-
endIndex
Output only. End index into the content. -
license
Output only. License of the attribution. -
publicationDate
Output only. Publication date of the attribution. -
startIndex
Output only. Start index into the content. -
title
Output only. Title of the attribution. -
uri
Output only. Url reference of the attribution. -
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.
-