Class File
A file uploaded to the API.
Inheritance
Namespace: Glitch9.AIDevKit.Google
Assembly: .dll
Syntax
public class File
Properties
CreateTime
Output only.
The timestamp of when the File was created.
Declaration
public ZuluTime CreateTime { get; set; }
Property Value
Type | Description |
---|---|
ZuluTime |
DisplayName
Optional.
The human-readable display name for the File. The display name must be no more than 512 characters in length, including spaces. Example: "Welcome Image"
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
Error
Output only.
Error status if File processing failed.
Declaration
public Status Error { get; set; }
Property Value
Type | Description |
---|---|
Status |
ExpirationTime
Output only.
The timestamp of when the File will be deleted. Only set if the File is scheduled to expire.
Declaration
public string ExpirationTime { get; set; }
Property Value
Type | Description |
---|---|
string |
MimeType
Output only.
MIME type of the File.
Declaration
public string MimeType { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Immutable. Identifier.
The File 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
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Sha256Hash
Output only.
SHA-256 hash of the uploaded bytes.
Declaration
public string Sha256Hash { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
A base64-encoded string.
SizeBytes
Output only.
Size of the File in bytes.
Declaration
public string SizeBytes { get; set; }
Property Value
Type | Description |
---|---|
string |
State
Output only.
Processing state of the File.
Declaration
public FileState State { get; set; }
Property Value
Type | Description |
---|---|
FileState |
UpdateTime
Output only.
The timestamp of when the File was last updated.
Declaration
public string UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
string |
Uri
Output only.
The uri of the File.
Declaration
public string Uri { get; set; }
Property Value
Type | Description |
---|---|
string |
VideoMetadata
Output only.
Metadata for a video.
Declaration
public VideoMetadata VideoMetadata { get; set; }
Property Value
Type | Description |
---|---|
VideoMetadata |
Methods
Delete()
Declaration
public void Delete()