Struct google_api_proto::google::cloud::video::stitcher::v1::LiveSession
source · pub struct LiveSession {
pub name: String,
pub play_uri: String,
pub ad_tag_macros: BTreeMap<String, String>,
pub manifest_options: Option<ManifestOptions>,
pub gam_settings: Option<GamSettings>,
pub live_config: String,
pub ad_tracking: i32,
}
Expand description
Metadata for a live session. The session expires 5 minutes after the client stops fetching the session’s playlists.
Fields§
§name: String
Output only. The name of the live session, in the form of
projects/{project}/locations/{location}/liveSessions/{id}
.
play_uri: String
Output only. The URI to play the live session’s ad-stitched stream.
ad_tag_macros: BTreeMap<String, String>
Key value pairs for ad tag macro replacement, only available for live sessions that do not implement Google Ad manager ad insertion. If the specified ad tag URI has macros, this field provides the mapping to the value that will replace the macro in the ad tag URI.
Macros are designated by square brackets, for example:
Ad tag URI: “https://doubleclick.google.com/ad/1?geo_id=\[geoId\]"
Ad tag macros: {"geoId": "123"}
Fully qualified ad tag:
"<https://doubleclick.google.com/ad/1?geo_id=123"
>
manifest_options: Option<ManifestOptions>
Additional options that affect the output of the manifest.
gam_settings: Option<GamSettings>
This field should be set with appropriate values if GAM is being used for ads.
live_config: String
Required. The resource name of the live config for this session, in the
form of projects/{project}/locations/{location}/liveConfigs/{id}
.
ad_tracking: i32
Determines how the ad should be tracked. This overrides the value set in the live config for this session.
Implementations§
source§impl LiveSession
impl LiveSession
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.
Trait Implementations§
source§impl Clone for LiveSession
impl Clone for LiveSession
source§fn clone(&self) -> LiveSession
fn clone(&self) -> LiveSession
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LiveSession
impl Debug for LiveSession
source§impl Default for LiveSession
impl Default for LiveSession
source§impl Message for LiveSession
impl Message for LiveSession
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 LiveSession
impl PartialEq for LiveSession
source§fn eq(&self, other: &LiveSession) -> bool
fn eq(&self, other: &LiveSession) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LiveSession
Auto Trait Implementations§
impl Freeze for LiveSession
impl RefUnwindSafe for LiveSession
impl Send for LiveSession
impl Sync for LiveSession
impl Unpin for LiveSession
impl UnwindSafe for LiveSession
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