Google Cloud Video Live Stream V1 Client - Class Asset (0.6.2)

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 \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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 Google\Protobuf\Timestamp

Output only. The creation time.

↳ update_time Google\Protobuf\Timestamp

Output only. The update time.

↳ labels array|Google\Protobuf\Internal\MapField

User-defined key/value metadata.

↳ video Google\Cloud\Video\LiveStream\V1\Asset\VideoAsset

VideoAsset represents a video.

↳ image Google\Cloud\Video\LiveStream\V1\Asset\ImageAsset

ImageAsset represents an 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}.

Returns
TypeDescription
string

setName

The resource name of the asset, in the form of: projects/{project}/locations/{location}/assets/{assetId}.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCreateTime

Output only. The creation time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Output only. The creation time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getUpdateTime

Output only. The update time.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

Output only. The update time.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getLabels

User-defined key/value metadata.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setLabels

User-defined key/value metadata.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getVideo

VideoAsset represents a video.

Returns
TypeDescription
Google\Cloud\Video\LiveStream\V1\Asset\VideoAsset|null

hasVideo

setVideo

VideoAsset represents a video.

Parameter
NameDescription
var Google\Cloud\Video\LiveStream\V1\Asset\VideoAsset
Returns
TypeDescription
$this

getImage

ImageAsset represents an image.

Returns
TypeDescription
Google\Cloud\Video\LiveStream\V1\Asset\ImageAsset|null

hasImage

setImage

ImageAsset represents an image.

Parameter
NameDescription
var Google\Cloud\Video\LiveStream\V1\Asset\ImageAsset
Returns
TypeDescription
$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].

Returns
TypeDescription
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].

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getState

Output only. The state of the asset resource.

Returns
TypeDescription
int

setState

Output only. The state of the asset resource.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getError

Output only. Only present when state is ERROR. The reason for the error state of the asset.

Returns
TypeDescription
Google\Rpc\Status|null

hasError

clearError

setError

Output only. Only present when state is ERROR. The reason for the error state of the asset.

Parameter
NameDescription
var Google\Rpc\Status
Returns
TypeDescription
$this

getResource

Returns
TypeDescription
string