Struct google_api_proto::google::cloud::video::stitcher::v1::VodSession
source · pub struct VodSession {
pub name: String,
pub interstitials: Option<Interstitials>,
pub play_uri: String,
pub source_uri: String,
pub ad_tag_uri: String,
pub ad_tag_macro_map: BTreeMap<String, String>,
pub manifest_options: Option<ManifestOptions>,
pub asset_id: String,
pub ad_tracking: i32,
pub gam_settings: Option<GamSettings>,
pub vod_config: String,
}
Expand description
Metadata for a VOD session. The session expires 4 hours after its creation.
Fields§
§name: String
Output only. The name of the VOD session, in the form of
projects/{project_number}/locations/{location}/vodSessions/{id}
.
interstitials: Option<Interstitials>
Output only. Metadata of what was stitched into the content.
play_uri: String
Output only. The playback URI of the stitched content.
source_uri: String
URI of the media to stitch. For most use cases, you should create a [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information rather than setting this field directly.
ad_tag_uri: String
Ad tag URI. For most use cases, you should create a [VodConfig][google.cloud.video.stitcher.v1.VodConfig] with this information rather than setting this field directly.
ad_tag_macro_map: BTreeMap<String, String>
Key value pairs for ad tag macro replacement, only available for VOD 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 macro map: {"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.
asset_id: String
Output only. The generated ID of the VodSession’s source media.
ad_tracking: i32
Required. Determines how the ad should be tracked.
gam_settings: Option<GamSettings>
This field should be set with appropriate values if GAM is being used for ads.
vod_config: String
The resource name of the VOD config for this session, in the form of
projects/{project}/locations/{location}/vodConfigs/{id}
.
Implementations§
source§impl VodSession
impl VodSession
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 VodSession
impl Clone for VodSession
source§fn clone(&self) -> VodSession
fn clone(&self) -> VodSession
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VodSession
impl Debug for VodSession
source§impl Default for VodSession
impl Default for VodSession
source§impl Message for VodSession
impl Message for VodSession
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 VodSession
impl PartialEq for VodSession
source§fn eq(&self, other: &VodSession) -> bool
fn eq(&self, other: &VodSession) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for VodSession
Auto Trait Implementations§
impl Freeze for VodSession
impl RefUnwindSafe for VodSession
impl Send for VodSession
impl Sync for VodSession
impl Unpin for VodSession
impl UnwindSafe for VodSession
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