Reference documentation and code samples for the Live Stream V1 API class Google::Cloud::Video::LiveStream::V1::Asset.
An asset represents a video or an image.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#crc32c
def crc32c() -> ::String
Returns
- (::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].
#crc32c=
def crc32c=(value) -> ::String
Parameter
- value (::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].
Returns
- (::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].
#create_time
def create_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The creation time.
#error
def error() -> ::Google::Rpc::Status
Returns
-
(::Google::Rpc::Status) — Output only. Only present when
state
isERROR
. The reason for the error state of the asset.
#image
def image() -> ::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset
Returns
- (::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset) — ImageAsset represents an image.
#image=
def image=(value) -> ::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset
Parameter
- value (::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset) — ImageAsset represents an image.
Returns
- (::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset) — ImageAsset represents an image.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
Returns
- (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
Parameter
- value (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.
Returns
- (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.
#name
def name() -> ::String
Returns
-
(::String) — The resource name of the asset, in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
#name=
def name=(value) -> ::String
Parameter
-
value (::String) — The resource name of the asset, in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
Returns
-
(::String) — The resource name of the asset, in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
#state
def state() -> ::Google::Cloud::Video::LiveStream::V1::Asset::State
Returns
- (::Google::Cloud::Video::LiveStream::V1::Asset::State) — Output only. The state of the asset resource.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
Returns
- (::Google::Protobuf::Timestamp) — Output only. The update time.
#video
def video() -> ::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset
Returns
- (::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset) — VideoAsset represents a video.
#video=
def video=(value) -> ::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset
Parameter
- value (::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset) — VideoAsset represents a video.
Returns
- (::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset) — VideoAsset represents a video.