Reference documentation and code samples for the Google Cloud Video Live Stream V1 Client class Asset.
An asset represents a video or an image.
Generated from protobuf message google.cloud.video.livestream.v1.Asset
Namespace
Google \ Cloud \ Video \ LiveStream \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}
.
↳ create_time
↳ update_time
↳ labels
↳ video
↳ image
↳ crc32c
string
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 or 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 or ImageAsset.uri .
↳ state
int
Output only. The state of the asset resource.
↳ error
Google\Rpc\Status
Output only. Only present when state
is ERROR
. The reason for the error state of the asset.
getName
The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}
.
string
setName
The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}
.
var
string
$this
getCreateTime
Output only. The creation time.
hasCreateTime
clearCreateTime
setCreateTime
Output only. The creation time.
$this
getUpdateTime
Output only. The update time.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. The update time.
$this
getLabels
User-defined key/value metadata.
setLabels
User-defined key/value metadata.
$this
getVideo
VideoAsset represents a video.
hasVideo
setVideo
VideoAsset represents a video.
$this
getImage
ImageAsset represents an image.
hasImage
setImage
ImageAsset represents an image.
$this
getCrc32C
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 or 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 or ImageAsset.uri .
string
setCrc32C
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 or 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 or ImageAsset.uri .
var
string
$this
getState
Output only. The state of the asset resource.
int
setState
Output only. The state of the asset resource.
var
int
$this
getError
Output only. Only present when state
is ERROR
. The reason for the error
state of the asset.
hasError
clearError
setError
Output only. Only present when state
is ERROR
. The reason for the error
state of the asset.
$this
getResource
string