Based64-encoded CRC32c checksum of the asset file. For more information, see the crc32c checksum of theCloud 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 byVideoAsset.uriorImageAsset.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 byVideoAsset.uriorImageAsset.uri.
Based64-encoded CRC32c checksum of the asset file. For more information,
see the crc32c checksum of theCloud 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 byVideoAsset.uriorImageAsset.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 byVideoAsset.uriorImageAsset.uri.
Returns
Type
Description
string
setCrc32C
Based64-encoded CRC32c checksum of the asset file. For more information,
see the crc32c checksum of theCloud 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 byVideoAsset.uriorImageAsset.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 byVideoAsset.uriorImageAsset.uri.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getState
Output only. The state of the asset resource.
Returns
Type
Description
int
setState
Output only. The state of the asset resource.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getError
Output only. Only present whenstateisERROR. The reason for the error
state of the asset.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Video Live Stream V1 Client - Class Asset (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset)\n- [1.2.0](/php/docs/reference/cloud-video-live-stream/1.2.0/V1.Asset)\n- [1.1.3](/php/docs/reference/cloud-video-live-stream/1.1.3/V1.Asset)\n- [1.0.0](/php/docs/reference/cloud-video-live-stream/1.0.0/V1.Asset)\n- [0.7.5](/php/docs/reference/cloud-video-live-stream/0.7.5/V1.Asset)\n- [0.6.2](/php/docs/reference/cloud-video-live-stream/0.6.2/V1.Asset)\n- [0.5.0](/php/docs/reference/cloud-video-live-stream/0.5.0/V1.Asset)\n- [0.4.2](/php/docs/reference/cloud-video-live-stream/0.4.2/V1.Asset)\n- [0.3.2](/php/docs/reference/cloud-video-live-stream/0.3.2/V1.Asset)\n- [0.2.6](/php/docs/reference/cloud-video-live-stream/0.2.6/V1.Asset) \nReference documentation and code samples for the Google Cloud Video Live Stream V1 Client class Asset.\n\nAn asset represents a video or an image.\n\nGenerated from protobuf message `google.cloud.video.livestream.v1.Asset`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ LiveStream \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe resource name of the asset, in the form of:\n`projects/{project}/locations/{location}/assets/{assetId}`.\n\n### setName\n\nThe resource name of the asset, in the form of:\n`projects/{project}/locations/{location}/assets/{assetId}`.\n\n### getCreateTime\n\nOutput only. The creation time.\n\n### hasCreateTime\n\n### clearCreateTime\n\n### setCreateTime\n\nOutput only. The creation time.\n\n### getUpdateTime\n\nOutput only. The update time.\n\n### hasUpdateTime\n\n### clearUpdateTime\n\n### setUpdateTime\n\nOutput only. The update time.\n\n### getLabels\n\nUser-defined key/value metadata.\n\n### setLabels\n\nUser-defined key/value metadata.\n\n### getVideo\n\nVideoAsset represents a video.\n\n### hasVideo\n\n### setVideo\n\nVideoAsset represents a video.\n\n### getImage\n\nImageAsset represents an image.\n\n### hasImage\n\n### setImage\n\nImageAsset represents an image.\n\n### getCrc32C\n\nBased64-encoded CRC32c checksum of the asset file. For more information,\nsee the crc32c checksum of the [Cloud Storage Objects\nresource](https://cloud.google.com/storage/docs/json_api/v1/objects).\n\nIf crc32c is omitted or left empty when the asset is created, this field is\nfilled by the crc32c checksum of the Cloud Storage object indicated by\n[VideoAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.VideoAsset#_Google_Cloud_Video_LiveStream_V1_Asset_VideoAsset__getUri__) or\n[ImageAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.ImageAsset#_Google_Cloud_Video_LiveStream_V1_Asset_ImageAsset__getUri__). If\ncrc32c is set, the asset can't be created if the crc32c value does not\nmatch with the crc32c checksum of the Cloud Storage object indicated by\n[VideoAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.VideoAsset#_Google_Cloud_Video_LiveStream_V1_Asset_VideoAsset__getUri__) or\n[ImageAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.ImageAsset#_Google_Cloud_Video_LiveStream_V1_Asset_ImageAsset__getUri__).\n\n### setCrc32C\n\nBased64-encoded CRC32c checksum of the asset file. For more information,\nsee the crc32c checksum of the [Cloud Storage Objects\nresource](https://cloud.google.com/storage/docs/json_api/v1/objects).\n\nIf crc32c is omitted or left empty when the asset is created, this field is\nfilled by the crc32c checksum of the Cloud Storage object indicated by\n[VideoAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.VideoAsset#_Google_Cloud_Video_LiveStream_V1_Asset_VideoAsset__getUri__) or\n[ImageAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.ImageAsset#_Google_Cloud_Video_LiveStream_V1_Asset_ImageAsset__getUri__). If\ncrc32c is set, the asset can't be created if the crc32c value does not\nmatch with the crc32c checksum of the Cloud Storage object indicated by\n[VideoAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.VideoAsset#_Google_Cloud_Video_LiveStream_V1_Asset_VideoAsset__getUri__) or\n[ImageAsset.uri](/php/docs/reference/cloud-video-live-stream/latest/V1.Asset.ImageAsset#_Google_Cloud_Video_LiveStream_V1_Asset_ImageAsset__getUri__).\n\n### getState\n\nOutput only. The state of the asset resource.\n\n### setState\n\nOutput only. The state of the asset resource.\n\n### getError\n\nOutput only. Only present when `state` is `ERROR`. The reason for the error\nstate of the asset.\n\n### hasError\n\n### clearError\n\n### setError\n\nOutput only. Only present when `state` is `ERROR`. The reason for the error\nstate of the asset.\n\n### getResource"]]