Class Asset (1.6.0)

Asset(mapping=None, *, ignore_unknown_fields=False, **kwargs)

An asset represents a video or an image.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

NameDescription
name str
The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. The creation time.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. The update time.
labels MutableMapping[str, str]
User-defined key/value metadata.
video google.cloud.video.live_stream_v1.types.Asset.VideoAsset
VideoAsset represents a video. This field is a member of oneof_ resource.
image google.cloud.video.live_stream_v1.types.Asset.ImageAsset
ImageAsset represents an image. This field is a member of oneof_ resource.
crc32c str
Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of the `Cloud Storage Objects resource
state google.cloud.video.live_stream_v1.types.Asset.State
Output only. The state of the asset resource.
error google.rpc.status_pb2.Status
Output only. Only present when state is ERROR. The reason for the error state of the asset.

Classes

ImageAsset

ImageAsset(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Image represents an image. The supported format is JPEG.

LabelsEntry

LabelsEntry(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The abstract base class for a message.

Parameters
NameDescription
kwargs dict

Keys and values corresponding to the fields of the message.

mapping Union[dict, .Message]

A dictionary or message to be used to determine the values for this message.

ignore_unknown_fields Optional(bool)

If True, do not raise errors for unknown fields. Only applied if mapping is a mapping type or there are keyword parameters.

State

State(value)

State of the asset resource.

Values: STATE_UNSPECIFIED (0): State is not specified. CREATING (1): The asset is being created. ACTIVE (2): The asset is ready for use. DELETING (3): The asset is being deleted. ERROR (4): The asset has an error.

VideoAsset

VideoAsset(mapping=None, *, ignore_unknown_fields=False, **kwargs)

VideoAsset represents a video. The supported formats are MP4, MPEG-TS, and FLV. The supported video codec is H264. The supported audio codecs are AAC, AC3, MP2, and MP3.