Live Stream V1 API - Class Google::Cloud::Video::LiveStream::V1::Asset (v0.6.0)

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

#error

def error() -> ::Google::Rpc::Status
Returns
  • (::Google::Rpc::Status) — Output only. Only present when state is ERROR. The reason for the error state of the asset.

#image

def image() -> ::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset
Returns

#image=

def image=(value) -> ::Google::Cloud::Video::LiveStream::V1::Asset::ImageAsset
Parameter
Returns

#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

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns

#video

def video() -> ::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset
Returns

#video=

def video=(value) -> ::Google::Cloud::Video::LiveStream::V1::Asset::VideoAsset
Parameter
Returns