MediaFile

A media file.

Fields

resource_name

string

Immutable. The resource name of the media file. Media file resource names have the form:

customers/{customer_id}/mediaFiles/{media_file_id}

id

Int64Value

Output only. The ID of the media file.

type

MediaType

Immutable. Type of the media file.

mime_type

MimeType

Output only. The mime type of the media file.

source_url

StringValue

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.

name

StringValue

Immutable. The name of the media file. The name can be used by clients to help identify previously uploaded media.

file_size

Int64Value

Output only. The size of the media file in bytes.

Union field

mediatype

mediatype. The specific type of the media file. mediatype can be only one of the following:

image

MediaImage

Immutable. Encapsulates an Image.

media_bundle

MediaBundle

Immutable. A ZIP archive media the content of which contains HTML5 assets.

audio

MediaAudio

Output only. Encapsulates an Audio.

video

MediaVideo

Immutable. Encapsulates a Video.