[ Web Proxy ]
URL:
Viewing: https://firebase.google.com/docs/reference/android/com/google/firebase/ai/type/Citation [Back]  [Original]

Citation  |  Firebase SDKs for Android Skip to main content
Overview Fundamentals AI Build Run Reference Samples
Firebase [Firebase]
Send feedback Stay organized with collections Save and categorize content based on your preferences.

Citation

public final class Citation


Represents a citation of content from an external source within the model's output.

When the language model generates text that includes content from another source, it should provide a citation to properly attribute the original source. This class encapsulates the metadata associated with that citation.

Summary

Public fields

final int

The (exclusive) ending index within the model output where the cited content ends.

final String

The license under which the cited content is distributed under, if available.

final Calendar

The date of publication of the cited source, if available.

final int

The (inclusive) starting index within the model output where the cited content begins.

final String

The title of the cited source, if available.

final String

The URI of the cited source, if available.

Public fields

endIndex

public final int endIndex

The (exclusive) ending index within the model output where the cited content ends.

license

public final String license

The license under which the cited content is distributed under, if available.

publicationDate

public final Calendar publicationDate

The date of publication of the cited source, if available.

startIndex

public final int startIndex

The (inclusive) starting index within the model output where the cited content begins.

title

public final String title

The title of the cited source, if available.

uri

public final String uri

The URI of the cited source, if available.

Send feedback

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-07-21 UTC.

Need to tell us more? [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-21 UTC."],[],[]]

Web Proxy Viewer  |  New URL  |  Original Page