Builder
A builder for FileCitation.
Functions
Returns an immutable instance of FileCitation.
Sets Builder.customMetadata to an arbitrary JSON value.
User provided metadata about the retrieved context.
Sets Builder.documentUri to an arbitrary JSON value.
The URI of the file.
Sets Builder.endIndex to an arbitrary JSON value.
End of the attributed segment, exclusive.
Sets Builder.fileName to an arbitrary JSON value.
The name of the file.
Sets Builder.mediaId to an arbitrary JSON value.
Media ID in-case of image citations, if applicable.
Sets Builder.pageNumber to an arbitrary JSON value.
Page number of the cited document, if applicable.
Sets Builder.source to an arbitrary JSON value.
Source attributed for a portion of the text.
Sets Builder.startIndex to an arbitrary JSON value.
Start of segment of the response that is attributed to this source.
Sets the field to an arbitrary JSON value.