Class FileCitation.Builder
java.lang.Object
com.google.genai.gaos.models.interactions.FileCitation.Builder
- Enclosing class:
- FileCitation
-
Method Summary
Modifier and TypeMethodDescriptionbuild()customMetadata(Map<String, Object> customMetadata) User provided metadata about the retrieved context.documentUri(String documentUri) The URI of the file.End of the attributed segment, exclusive.The name of the file.Media ID in-case of image citations, if applicable.pageNumber(Integer pageNumber) Page number of the cited document, if applicable.Source attributed for a portion of the text.startIndex(Integer startIndex) Start of segment of the response that is attributed to this source.
-
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.
-
build
-