Class GeminiFile
Metadata for a file uploaded to the File API.
public class GeminiFile
- Inheritance
-
objectGeminiFile
- Extension Methods
Fields
CreateTime
The timestamp of when the GeminiFile was created.
public DateTime CreateTime
Field Value
- DateTime
DisplayName
The human-readable display name for the GeminiFile.
public string DisplayName
Field Value
- string
DownloadUri
The download uri of the GeminiFile.
public string DownloadUri
Field Value
- string
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
- DateTime
MimeType
MIME type of the file.
public string MimeType
Field Value
- string
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
- string
Sha256Hash
SHA-256 hash of the uploaded bytes. A base64-encoded string.
public string Sha256Hash
Field Value
- string
SizeBytes
Size of the file in bytes.
public long SizeBytes
Field Value
- long
Source
Source of the GeminiFile.
public GeminiFileSource Source
Field Value
State
Processing state of the GeminiFile.
public GeminiFileState State
Field Value
UpdateTime
The timestamp of when the GeminiFile was last updated.
public DateTime UpdateTime
Field Value
- DateTime
Uri
The uri of the GeminiFile.
public string Uri
Field Value
- string
VideoMetadata
Metadata for a video.
public GeminiFileVideoMetaData VideoMetadata
Field Value
Properties
Status
Error status if GeminiFile processing failed.
[Obsolete("Use GeminiFile.Error instead.")]
public OperationStatus Status { get; set; }
Property Value
- OperationStatus