Struct google_api_proto::google::cloud::video::livestream::v1::Asset
source · pub struct Asset {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub crc32c: String,
pub state: i32,
pub error: Option<Status>,
pub resource: Option<Resource>,
}
Expand description
An asset represents a video or an image.
Fields§
§name: String
The resource name of the asset, in the form of:
projects/{project}/locations/{location}/assets/{assetId}
.
create_time: Option<Timestamp>
Output only. The creation time.
update_time: Option<Timestamp>
Output only. The update time.
labels: BTreeMap<String, String>
User-defined key/value metadata.
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][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.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][google.cloud.video.livestream.v1.Asset.VideoAsset.uri] or [ImageAsset.uri][google.cloud.video.livestream.v1.Asset.ImageAsset.uri].
state: i32
Output only. The state of the asset resource.
error: Option<Status>
Output only. Only present when state
is ERROR
. The reason for the error
state of the asset.
resource: Option<Resource>
The reference to the asset. The maximum size of the resource is 250 MB.
Implementations§
Trait Implementations§
source§impl Message for Asset
impl Message for Asset
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Asset
impl PartialEq for Asset
impl StructuralPartialEq for Asset
Auto Trait Implementations§
impl Freeze for Asset
impl RefUnwindSafe for Asset
impl Send for Asset
impl Sync for Asset
impl Unpin for Asset
impl UnwindSafe for Asset
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request