All Bundles

Chunk

Google Gemini document chunk

Derived from: OAuthEndPoint

Operations

Create

Create a new document

function : Create(value:String, metadata:Map<String,String>, document:Document) ~ Chunk
Parameters
NameTypeDescription
valueStringcheck string value
metadataMap<String,String>document metadata
documentDocumentdocument to attach chunk

Return
TypeDescription
Chunknew Document

Delete

Delete existing chunk

method : public : Delete() ~ Bool
Return
TypeDescription
Booltrue if successful, false otherwise

Get

Get existing chunk

function : Get(name:String) ~ Chunk
Parameters
NameTypeDescription
nameStringchunk name

Return
TypeDescription
Chunkexisting chunk

GetCreateTime

Get creation time

method : public : GetCreateTime() ~ System.Time.Date
Return
TypeDescription
Datecreation time

GetId

Get chunk ID

method : public : GetId() ~ String
Return
TypeDescription
Stringchunk ID

GetUpdateTime

Get update time

method : public : GetUpdateTime() ~ System.Time.Date
Return
TypeDescription
Dateupdate time

List

Get all existing chunks

function : List(document:Document) ~ Collection.Vector<Chunk>
Parameters
NameTypeDescription
documentDocumentdocument of documents to list

Return
TypeDescription
Vector<Chunk>list of chunks

ToString

String representation of the object

method : public : ToString() ~ String
Return
TypeDescription
Stringstring representation