Class GeminiFile
Metadata for a file uploaded to the File API.
public class GeminiFile
- Inheritance
-
GeminiFile
- Extension Methods
Fields
CreateTime
The timestamp of when the GeminiFile was created.
public DateTime CreateTime
Field Value
DisplayName
The human-readable display name for the GeminiFile.
public string DisplayName
Field Value
Error
Error status if GeminiFile processing failed.
public OperationStatus Error
Field Value
- OperationStatus
ExpirationTime
The timestamp of when the GeminiFile will be deleted. Only set if the GeminiFile is scheduled to expire.
public DateTime ExpirationTime
Field Value
MimeType
MIME type of the file.
public string MimeType
Field Value
Remarks
You can use ContentType(string) to convert string
values to their GeminiContentType equivalents, like:
"image/png".ContentType()
Name
The GeminiFile resource name.
public string Name
Field Value
Sha256Hash
SHA-256 hash of the uploaded bytes. A base64-encoded string.
public string Sha256Hash
Field Value
SizeBytes
Size of the file in bytes.
public long SizeBytes
Field Value
State
Processing state of the GeminiFile.
public GeminiFileState State
Field Value
Status
Error status if GeminiFile processing failed.
[Obsolete("Use GeminiFile.Error instead.")]
public OperationStatus Status
Field Value
- OperationStatus
UpdateTime
The timestamp of when the GeminiFile was last updated.
public DateTime UpdateTime
Field Value
Uri
The uri of the GeminiFile.
public string Uri
Field Value
VideoMetadata
Metadata for a video.
public GeminiFileVideoMetaData VideoMetadata