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
- (::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
- 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.
- (::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
- (::Google::Protobuf::Timestamp) — Output only. The creation time.
#error
def error() -> ::Google::Rpc::Status
-
(::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
-
(::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset) — ImageAsset represents an image.
Note: The following fields are mutually exclusive:
image
,video
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#image=
def image=(value) -> ::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset
-
value (::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset) — ImageAsset represents an image.
Note: The following fields are mutually exclusive:
image
,video
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset) — ImageAsset represents an image.
Note: The following fields are mutually exclusive:
image
,video
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#labels
def labels() -> ::Google::Protobuf::Map{::String => ::String}
- (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.
#labels=
def labels=(value) -> ::Google::Protobuf::Map{::String => ::String}
- value (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.
- (::Google::Protobuf::Map{::String => ::String}) — User-defined key/value metadata.
#name
def name() -> ::String
-
(::String) — The resource name of the asset, in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
#name=
def name=(value) -> ::String
-
value (::String) — The resource name of the asset, in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
-
(::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
- (::Google::Cloud::Video::LiveStream::V1::Asset::State) — Output only. The state of the asset resource.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Output only. The update time.
#video
def video() -> ::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset
-
(::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset) — VideoAsset represents a video.
Note: The following fields are mutually exclusive:
video
,image
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#video=
def video=(value) -> ::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset
-
value (::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset) — VideoAsset represents a video.
Note: The following fields are mutually exclusive:
video
,image
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset) — VideoAsset represents a video.
Note: The following fields are mutually exclusive:
video
,image
. If a field in that set is populated, all other fields in the set will automatically be cleared.