AI-generated Key Takeaways
-
A media file resource is identified by a resource name in the format
customers/{customer_id}/mediaFiles/{media_file_id}. -
Key information about a media file includes its type, mime type, ID, source URL, name, and file size.
-
Media files can be of various specific types, including images, media bundles (HTML5 assets in a ZIP), audio, or video.
-
Some fields like
mime_type,id,file_size, and theaudiospecific type are output-only, meaning they are provided by the system and cannot be set. -
Some fields like
resource_name,type,source_url,name, and specific typesimage,media_bundle, andvideoare immutable, meaning they cannot be changed after creation.
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. |