v2026.6.4
All Bundles
Bundle Google Gemini API client. Supports text generation, multimodal inputs (image, audio, video), chat sessions, function calling, and caching. Set GOOGLE_API_KEY before use. Compile with -lib gemini.

GeminiFile

A file resource uploaded via the Gemini Files API

Inherits: EndPoint

Operations

GetCreateTime #

Get file creation timestamp

method : public : GetCreateTime() ~ String

Return

TypeDescription
Stringcreation time (RFC 3339)

GetDisplayName #

Get human-readable display name

method : public : GetDisplayName() ~ String

Return

TypeDescription
Stringdisplay name

GetMimeType #

Get MIME type of the file

method : public : GetMimeType() ~ String

Return

TypeDescription
StringMIME type

GetName #

Get file resource name (e.g. "files/abc123")

method : public : GetName() ~ String

Return

TypeDescription
Stringresource name

GetSizeBytes #

Get size in bytes as a string

method : public : GetSizeBytes() ~ String

Return

TypeDescription
Stringsize bytes string

GetState #

Get processing state of the file

method : public : GetState() ~ String

Return

TypeDescription
Stringstate (ACTIVE, PROCESSING, FAILED)

GetUri #

Get the URI to reference this file in content parts

method : public : GetUri() ~ String

Return

TypeDescription
Stringfile URI

IsActive #

Check whether the file is ready for use

method : public : IsActive() ~ Bool

Return

TypeDescription
Booltrue if state is ACTIVE