Class GoogleFile
A file uploaded to the API.
Inherited Members
Namespace: Glitch9.AIDevKit.Google
Assembly: Glitch9.AIDevKit.Provider.Google.dll
Syntax
public class GoogleFile : IUploadedFile, IAIResource, IData, IHasId<string>, IHasName, IDeprecatable
Properties
| Edit this page View SourceApi
Declaration
[JsonIgnore]
public Api Api { get; }
Property Value
| Type | Description |
|---|---|
| Api |
ByteSize
Output only.
Size of the GoogleFile in bytes.
Declaration
[JsonProperty("sizeBytes")]
public int ByteSize { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
CreateTime
Output only.
The timestamp of when the GoogleFile was created.
Declaration
[JsonProperty("createTime")]
public ZuluTime? CreateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| ZuluTime? |
CreatedAt
Declaration
[JsonIgnore]
public UnixTime? CreatedAt { get; }
Property Value
| Type | Description |
|---|---|
| UnixTime? |
DownloadUri
Declaration
[JsonProperty("downloadUri")]
public string DownloadUri { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Error
Output only.
Error status if GoogleFile processing failed.
Declaration
[JsonProperty("error")]
public Status Error { get; set; }
Property Value
| Type | Description |
|---|---|
| Status |
ExpirationTime
Output only.
The timestamp of when the GoogleFile will be deleted. Only set if the GoogleFile is scheduled to expire.
Declaration
[JsonProperty("expirationTime")]
public ZuluTime? ExpirationTime { get; set; }
Property Value
| Type | Description |
|---|---|
| ZuluTime? |
ExpiresAt
Gets the file expiration timestamp, if the provider defines one.
Returns null when the file has no expiration policy.
Declaration
[JsonIgnore]
public UnixTime? ExpiresAt { get; }
Property Value
| Type | Description |
|---|---|
| UnixTime? |
Id
Immutable. Identifier.
The GoogleFile resource name. The ID (name excluding the "files/" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-).
The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated.
Example: files/123-456
Declaration
[JsonProperty("name")]
public string Id { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
MimeType
Gets the MIME type associated with the file. This can be used to select preview, parsing, or processing paths.
Declaration
[JsonIgnore]
public MimeType MimeType { get; }
Property Value
| Type | Description |
|---|---|
| MimeType |
MimeTypeAsString
Output only.
MIME type of the GoogleFile.
Declaration
[JsonProperty("mimeType")]
public string MimeTypeAsString { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Name
Optional.
The human-readable display name for the GoogleFile. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image"
Declaration
[JsonProperty("displayName")]
public string Name { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Sha256Hash
Output only.
SHA-256 hash of the uploaded bytes.
Declaration
[JsonProperty("sha256Hash")]
public string Sha256Hash { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Remarks
A base64-encoded string.
Source
Declaration
[JsonProperty("source")]
public GoogleFileSource? Source { get; set; }
Property Value
| Type | Description |
|---|---|
| GoogleFileSource? |
State
Output only.
Processing state of the GoogleFile.
Declaration
[JsonProperty("state")]
public FileState State { get; set; }
Property Value
| Type | Description |
|---|---|
| FileState |
UpdateTime
Output only.
The timestamp of when the GoogleFile was last updated.
Declaration
[JsonProperty("updateTime")]
public ZuluTime? UpdateTime { get; set; }
Property Value
| Type | Description |
|---|---|
| ZuluTime? |
Uri
Output only.
The uri of the GoogleFile.
Declaration
[JsonProperty("uri")]
public string Uri { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VideoMetadata
Output only.
Metadata for a video.
Declaration
[JsonProperty("videoMetadata")]
public VideoMetadata VideoMetadata { get; set; }
Property Value
| Type | Description |
|---|---|
| VideoMetadata |
Methods
| Edit this page View SourceGetMetadata()
Declaration
public SerializableMetadata GetMetadata()
Returns
| Type | Description |
|---|---|
| SerializableMetadata |