Struct google_api_proto::google::cloud::video::livestream::v1::Clip
source · pub struct Clip {
pub name: String,
pub create_time: Option<Timestamp>,
pub start_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: BTreeMap<String, String>,
pub state: i32,
pub output_uri: String,
pub error: Option<Status>,
pub slices: Vec<Slice>,
pub clip_manifests: Vec<ClipManifest>,
}
Expand description
Clip is a sub-resource under channel. Each clip represents a clipping operation that generates a VOD playlist from its channel given a set of timestamp ranges.
Fields§
§name: String
The resource name of the clip, in the following format:
projects/{project}/locations/{location}/channels/{c}/clips/{clipId}
.
{clipId}
is a user-specified resource id that conforms to the following
criteria:
- 1 character minimum, 63 characters maximum
- Only contains letters, digits, underscores, and hyphens
create_time: Option<Timestamp>
Output only. The creation timestamp of the clip resource.
start_time: Option<Timestamp>
Output only. The timestamp when the clip request starts to be processed.
update_time: Option<Timestamp>
Output only. The update timestamp of the clip resource.
labels: BTreeMap<String, String>
The labels associated with this resource. Each label is a key-value pair.
state: i32
Output only. The state of the clip.
output_uri: String
Specify the output_uri
to determine where to place the clip segments and
clip manifest files in Cloud Storage. The manifests specified in
clip_manifests
fields will be placed under this URI. The exact URI of the
generated manifests will be provided in clip_manifests.output_uri
for
each manifest.
Example:
“output_uri”: “gs://my-bucket/clip-outputs”
“clip_manifests.output_uri”: “gs://my-bucket/clip-outputs/main.m3u8”
error: Option<Status>
Output only. An error object that describes the reason for the failure.
This property only presents when state
is FAILED
.
slices: Vec<Slice>
The specified ranges of segments to generate a clip.
clip_manifests: Vec<ClipManifest>
Required. A list of clip manifests. Currently only one clip manifest is allowed.
Implementations§
Trait Implementations§
source§impl Message for Clip
impl Message for Clip
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 Clip
impl PartialEq for Clip
impl StructuralPartialEq for Clip
Auto Trait Implementations§
impl Freeze for Clip
impl RefUnwindSafe for Clip
impl Send for Clip
impl Sync for Clip
impl Unpin for Clip
impl UnwindSafe for Clip
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