public sealed class Asset : IMessage<Asset>, IEquatable<Asset>, IDeepCloneable<Asset>, IBufferMessage, IMessage
Reference documentation and code samples for the Live Stream v1 API class Asset.
An asset represents a video or an image.
Namespace
Google.Cloud.Video.LiveStream.V1Assembly
Google.Cloud.Video.LiveStream.V1.dll
Constructors
Asset()
public Asset()
Asset(Asset)
public Asset(Asset other)
Parameter | |
---|---|
Name | Description |
other |
Asset |
Properties
AssetName
public AssetName AssetName { get; set; }
Property Value | |
---|---|
Type | Description |
AssetName |
Crc32C
public string Crc32C { get; set; }
Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of the Cloud Storage Objects resource. If crc32c is omitted or left empty when the asset is created, this field is filled by the crc32c checksum of the Cloud Storage object indicated by [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri]. If crc32c is set, the asset can't be created if the crc32c value does not match with the crc32c checksum of the Cloud Storage object indicated by [VideoAsset.uri][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri].
Property Value | |
---|---|
Type | Description |
string |
CreateTime
public Timestamp CreateTime { get; set; }
Output only. The creation time.
Property Value | |
---|---|
Type | Description |
Timestamp |
Error
public Status Error { get; set; }
Output only. Only present when state
is ERROR
. The reason for the error
state of the asset.
Property Value | |
---|---|
Type | Description |
Status |
Image
public Asset.Types.ImageAsset Image { get; set; }
ImageAsset represents an image.
Property Value | |
---|---|
Type | Description |
AssetTypesImageAsset |
Labels
public MapField<string, string> Labels { get; }
User-defined key/value metadata.
Property Value | |
---|---|
Type | Description |
MapFieldstringstring |
Name
public string Name { get; set; }
The resource name of the asset, in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
Property Value | |
---|---|
Type | Description |
string |
ResourceCase
public Asset.ResourceOneofCase ResourceCase { get; }
Property Value | |
---|---|
Type | Description |
AssetResourceOneofCase |
State
public Asset.Types.State State { get; set; }
Output only. The state of the asset resource.
Property Value | |
---|---|
Type | Description |
AssetTypesState |
UpdateTime
public Timestamp UpdateTime { get; set; }
Output only. The update time.
Property Value | |
---|---|
Type | Description |
Timestamp |
Video
public Asset.Types.VideoAsset Video { get; set; }
VideoAsset represents a video.
Property Value | |
---|---|
Type | Description |
AssetTypesVideoAsset |