Citation

@Serializable
data class Citation(val endIndex: Int? = null, val license: String? = null, val publicationDate: GoogleTypeDate? = null, val startIndex: Int? = null, val title: String? = null, val uri: String? = null)

A citation for a piece of generatedcontent. This data type is not supported in Gemini API.

Constructors

Link copied to clipboard
constructor(endIndex: Int? = null, license: String? = null, publicationDate: GoogleTypeDate? = null, startIndex: Int? = null, title: String? = null, uri: String? = null)

Properties

Link copied to clipboard
val endIndex: Int? = null

Output only. The end index of the citation in the content.

Link copied to clipboard
val license: String? = null

Output only. The license of the source of the citation.

Link copied to clipboard

Output only. The publication date of the source of the citation.

Link copied to clipboard
val startIndex: Int? = null

Output only. The start index of the citation in the content.

Link copied to clipboard
val title: String? = null

Output only. The title of the source of the citation.

Link copied to clipboard
val uri: String? = null

Output only. The URI of the source of the citation.