AI-generated Key Takeaways
-
A media file is identified by a resource name in the format
customers/{customer_id}/mediaFiles/{media_file_id}
and has a unique ID. -
Media files have an immutable type (AUDIO, IMAGE, MEDIA_BUNDLE, VIDEO) and an output-only mime type.
-
Optional immutable fields include the original download source URL (for AUDIO and IMAGE only) and a client-defined name.
-
The size of the media file in bytes is an output-only field.
-
The specific media type (image, media bundle, audio, or video) is encapsulated in a union field.
A media file.
Fields | |
---|---|
|
Immutable. The resource name of the media file. Media file resource names have the form:
|
| Immutable. Type of the media file. |
| Output only. The mime type of the media file. |
|
Output only. The ID of the media file. |
|
Immutable. The URL of where the original media file was downloaded from (or a file name). Only used for media of type AUDIO and IMAGE. |
|
Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media. |
|
Output only. The size of the media file in bytes. |
Union field
| |
| Immutable. Encapsulates an Image. |
| Immutable. A ZIP archive media the content of which contains HTML5 assets. |
| Output only. Encapsulates an Audio. |
| Immutable. Encapsulates a Video. |