Struct google_api_proto::google::cloud::video::stitcher::v1::LiveConfig
source · pub struct LiveConfig {
pub name: String,
pub source_uri: String,
pub ad_tag_uri: String,
pub gam_live_config: Option<GamLiveConfig>,
pub state: i32,
pub ad_tracking: i32,
pub default_slate: String,
pub stitching_policy: i32,
pub prefetch_config: Option<PrefetchConfig>,
pub source_fetch_options: Option<FetchOptions>,
}
Expand description
Metadata for used to register live configs.
Fields§
§name: String
Output only. The resource name of the live config, in the form of
projects/{project}/locations/{location}/liveConfigs/{id}
.
source_uri: String
Required. Source URI for the live stream manifest.
ad_tag_uri: String
The default ad tag associated with this live stream config.
gam_live_config: Option<GamLiveConfig>
Additional metadata used to register a live stream with Google Ad Manager (GAM)
state: i32
Output only. State of the live config.
ad_tracking: i32
Required. Determines how the ads are tracked.
default_slate: String
This must refer to a slate in the same
project. If Google Ad Manager (GAM) is used for ads, this string sets the
value of slateCreativeId
in
https://developers.google.com/ad-manager/api/reference/v202211/LiveStreamEventService.LiveStreamEvent#slateCreativeId
stitching_policy: i32
Defines the stitcher behavior in case an ad does not align exactly with
the ad break boundaries. If not specified, the default is CUT_CURRENT
.
prefetch_config: Option<PrefetchConfig>
The configuration for prefetching ads.
source_fetch_options: Option<FetchOptions>
Options for fetching source manifests and segments.
Implementations§
source§impl LiveConfig
impl LiveConfig
sourcepub fn state(&self) -> State
pub fn state(&self) -> State
Returns the enum value of state
, or the default if the field is set to an invalid enum value.
sourcepub fn ad_tracking(&self) -> AdTracking
pub fn ad_tracking(&self) -> AdTracking
Returns the enum value of ad_tracking
, or the default if the field is set to an invalid enum value.
sourcepub fn set_ad_tracking(&mut self, value: AdTracking)
pub fn set_ad_tracking(&mut self, value: AdTracking)
Sets ad_tracking
to the provided enum value.
sourcepub fn stitching_policy(&self) -> StitchingPolicy
pub fn stitching_policy(&self) -> StitchingPolicy
Returns the enum value of stitching_policy
, or the default if the field is set to an invalid enum value.
sourcepub fn set_stitching_policy(&mut self, value: StitchingPolicy)
pub fn set_stitching_policy(&mut self, value: StitchingPolicy)
Sets stitching_policy
to the provided enum value.
Trait Implementations§
source§impl Clone for LiveConfig
impl Clone for LiveConfig
source§fn clone(&self) -> LiveConfig
fn clone(&self) -> LiveConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LiveConfig
impl Debug for LiveConfig
source§impl Default for LiveConfig
impl Default for LiveConfig
source§impl Message for LiveConfig
impl Message for LiveConfig
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 LiveConfig
impl PartialEq for LiveConfig
source§fn eq(&self, other: &LiveConfig) -> bool
fn eq(&self, other: &LiveConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LiveConfig
Auto Trait Implementations§
impl Freeze for LiveConfig
impl RefUnwindSafe for LiveConfig
impl Send for LiveConfig
impl Sync for LiveConfig
impl Unpin for LiveConfig
impl UnwindSafe for LiveConfig
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