Class FileCitation
java.lang.Object
com.google.genai.gaos.models.interactions.FileCitation
- All Implemented Interfaces:
Annotation
FileCitation
A file citation annotation.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileCitation.Builderbuilder()User provided metadata about the retrieved context.The URI of the file.endIndex()End of the attributed segment, exclusive.booleanfileName()The name of the file.inthashCode()mediaId()Media ID in-case of image citations, if applicable.Page number of the cited document, if applicable.source()Source attributed for a portion of the text.Start of segment of the response that is attributed to this source.toString()type()withCustomMetadata(Map<String, Object> customMetadata) User provided metadata about the retrieved context.withDocumentUri(String documentUri) The URI of the file.withEndIndex(Integer endIndex) End of the attributed segment, exclusive.withFileName(String fileName) The name of the file.withMediaId(String mediaId) Media ID in-case of image citations, if applicable.withPageNumber(Integer pageNumber) Page number of the cited document, if applicable.withSource(String source) Source attributed for a portion of the text.withStartIndex(Integer startIndex) Start of segment of the response that is attributed to this source.
-
Constructor Details
-
FileCitation
-
FileCitation
public FileCitation()
-
-
Method Details
-
customMetadata
User provided metadata about the retrieved context. -
documentUri
The URI of the file. -
endIndex
End of the attributed segment, exclusive. -
fileName
The name of the file. -
mediaId
Media ID in-case of image citations, if applicable. -
pageNumber
Page number of the cited document, if applicable. -
source
Source attributed for a portion of the text. -
startIndex
Start of segment of the response that is attributed to this source.Index indicates the start of the segment, measured in bytes.
-
type
- Specified by:
typein interfaceAnnotation
-
builder
-
withCustomMetadata
User provided metadata about the retrieved context. -
withDocumentUri
The URI of the file. -
withEndIndex
End of the attributed segment, exclusive. -
withFileName
The name of the file. -
withMediaId
Media ID in-case of image citations, if applicable. -
withPageNumber
Page number of the cited document, if applicable. -
withSource
Source attributed for a portion of the text. -
withStartIndex
Start of segment of the response that is attributed to this source.Index indicates the start of the segment, measured in bytes.
-
equals
-
hashCode
public int hashCode() -
toString
-