Resource: File
A file uploaded to the API.
JSON representation |
---|
{ "name": string, "displayName": string, "mimeType": string, "sizeBytes": string, "createTime": string, "updateTime": string, "expirationTime": string, "sha256Hash": string, "uri": string, "state": enum ( |
Fields | |
---|---|
name |
Immutable. Identifier. The |
displayName |
Optional. The human-readable display name for the |
mimeType |
Output only. MIME type of the file. |
sizeBytes |
Output only. Size of the file in bytes. |
createTime |
Output only. The timestamp of when the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The timestamp of when the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
expirationTime |
Output only. The timestamp of when the A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
sha256Hash |
Output only. SHA-256 hash of the uploaded bytes. A base64-encoded string. |
uri |
Output only. The uri of the |
state |
Output only. Processing state of the File. |
error |
Output only. Error status if File processing failed. |
Union field metadata . Metadata for the File. metadata can be only one of the following: |
|
videoMetadata |
Output only. Metadata for a video. |
VideoMetadata
Metadata for a video File
.
JSON representation |
---|
{ "videoDuration": string } |
Fields | |
---|---|
videoDuration |
Duration of the video. A duration in seconds with up to nine fractional digits, ending with ' |
State
States for the lifecycle of a File.
Enums | |
---|---|
STATE_UNSPECIFIED |
The default value. This value is used if the state is omitted. |
PROCESSING |
File is being processed and cannot be used for inference yet. |
ACTIVE |
File is processed and available for inference. |
FAILED |
File failed processing. |
Methods |
|
---|---|
|
Deletes the File . |
|
Gets the metadata for the given File . |
|
Lists the metadata for File s owned by the requesting project. |