#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LiveAdTagDetail {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub ad_requests: ::prost::alloc::vec::Vec<AdRequest>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodAdTagDetail {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub ad_requests: ::prost::alloc::vec::Vec<AdRequest>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdRequest {
#[prost(string, tag = "1")]
pub uri: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub request_metadata: ::core::option::Option<RequestMetadata>,
#[prost(message, optional, tag = "3")]
pub response_metadata: ::core::option::Option<ResponseMetadata>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RequestMetadata {
#[prost(message, optional, tag = "1")]
pub headers: ::core::option::Option<::prost_types::Struct>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResponseMetadata {
#[prost(string, tag = "1")]
pub error: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub headers: ::core::option::Option<::prost_types::Struct>,
#[prost(string, tag = "3")]
pub status_code: ::prost::alloc::string::String,
#[prost(int32, tag = "4")]
pub size_bytes: i32,
#[prost(message, optional, tag = "5")]
pub duration: ::core::option::Option<::prost_types::Duration>,
#[prost(string, tag = "6")]
pub body: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CdnKey {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub hostname: ::prost::alloc::string::String,
#[prost(oneof = "cdn_key::CdnKeyConfig", tags = "5, 6, 8")]
pub cdn_key_config: ::core::option::Option<cdn_key::CdnKeyConfig>,
}
pub mod cdn_key {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum CdnKeyConfig {
#[prost(message, tag = "5")]
GoogleCdnKey(super::GoogleCdnKey),
#[prost(message, tag = "6")]
AkamaiCdnKey(super::AkamaiCdnKey),
#[prost(message, tag = "8")]
MediaCdnKey(super::MediaCdnKey),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GoogleCdnKey {
#[prost(bytes = "vec", tag = "1")]
pub private_key: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "2")]
pub key_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AkamaiCdnKey {
#[prost(bytes = "vec", tag = "1")]
pub token_key: ::prost::alloc::vec::Vec<u8>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MediaCdnKey {
#[prost(bytes = "vec", tag = "1")]
pub private_key: ::prost::alloc::vec::Vec<u8>,
#[prost(string, tag = "2")]
pub key_name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Event {
#[prost(enumeration = "event::EventType", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub uri: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "4")]
pub offset: ::core::option::Option<::prost_types::Duration>,
}
pub mod event {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum EventType {
Unspecified = 0,
CreativeView = 1,
Start = 2,
BreakStart = 3,
BreakEnd = 4,
Impression = 5,
FirstQuartile = 6,
Midpoint = 7,
ThirdQuartile = 8,
Complete = 9,
Progress = 10,
Mute = 11,
Unmute = 12,
Pause = 13,
Click = 14,
ClickThrough = 15,
Rewind = 16,
Resume = 17,
Error = 18,
Expand = 21,
Collapse = 22,
Close = 24,
CloseLinear = 25,
Skip = 26,
AcceptInvitation = 27,
}
impl EventType {
pub fn as_str_name(&self) -> &'static str {
match self {
EventType::Unspecified => "EVENT_TYPE_UNSPECIFIED",
EventType::CreativeView => "CREATIVE_VIEW",
EventType::Start => "START",
EventType::BreakStart => "BREAK_START",
EventType::BreakEnd => "BREAK_END",
EventType::Impression => "IMPRESSION",
EventType::FirstQuartile => "FIRST_QUARTILE",
EventType::Midpoint => "MIDPOINT",
EventType::ThirdQuartile => "THIRD_QUARTILE",
EventType::Complete => "COMPLETE",
EventType::Progress => "PROGRESS",
EventType::Mute => "MUTE",
EventType::Unmute => "UNMUTE",
EventType::Pause => "PAUSE",
EventType::Click => "CLICK",
EventType::ClickThrough => "CLICK_THROUGH",
EventType::Rewind => "REWIND",
EventType::Resume => "RESUME",
EventType::Error => "ERROR",
EventType::Expand => "EXPAND",
EventType::Collapse => "COLLAPSE",
EventType::Close => "CLOSE",
EventType::CloseLinear => "CLOSE_LINEAR",
EventType::Skip => "SKIP",
EventType::AcceptInvitation => "ACCEPT_INVITATION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"EVENT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"CREATIVE_VIEW" => Some(Self::CreativeView),
"START" => Some(Self::Start),
"BREAK_START" => Some(Self::BreakStart),
"BREAK_END" => Some(Self::BreakEnd),
"IMPRESSION" => Some(Self::Impression),
"FIRST_QUARTILE" => Some(Self::FirstQuartile),
"MIDPOINT" => Some(Self::Midpoint),
"THIRD_QUARTILE" => Some(Self::ThirdQuartile),
"COMPLETE" => Some(Self::Complete),
"PROGRESS" => Some(Self::Progress),
"MUTE" => Some(Self::Mute),
"UNMUTE" => Some(Self::Unmute),
"PAUSE" => Some(Self::Pause),
"CLICK" => Some(Self::Click),
"CLICK_THROUGH" => Some(Self::ClickThrough),
"REWIND" => Some(Self::Rewind),
"RESUME" => Some(Self::Resume),
"ERROR" => Some(Self::Error),
"EXPAND" => Some(Self::Expand),
"COLLAPSE" => Some(Self::Collapse),
"CLOSE" => Some(Self::Close),
"CLOSE_LINEAR" => Some(Self::CloseLinear),
"SKIP" => Some(Self::Skip),
"ACCEPT_INVITATION" => Some(Self::AcceptInvitation),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProgressEvent {
#[prost(message, optional, tag = "1")]
pub time_offset: ::core::option::Option<::prost_types::Duration>,
#[prost(message, repeated, tag = "2")]
pub events: ::prost::alloc::vec::Vec<Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompanionAds {
#[prost(enumeration = "companion_ads::DisplayRequirement", tag = "1")]
pub display_requirement: i32,
#[prost(message, repeated, tag = "2")]
pub companions: ::prost::alloc::vec::Vec<Companion>,
}
pub mod companion_ads {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum DisplayRequirement {
Unspecified = 0,
All = 1,
Any = 2,
None = 3,
}
impl DisplayRequirement {
pub fn as_str_name(&self) -> &'static str {
match self {
DisplayRequirement::Unspecified => "DISPLAY_REQUIREMENT_UNSPECIFIED",
DisplayRequirement::All => "ALL",
DisplayRequirement::Any => "ANY",
DisplayRequirement::None => "NONE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DISPLAY_REQUIREMENT_UNSPECIFIED" => Some(Self::Unspecified),
"ALL" => Some(Self::All),
"ANY" => Some(Self::Any),
"NONE" => Some(Self::None),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Companion {
#[prost(string, tag = "1")]
pub api_framework: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub height_px: i32,
#[prost(int32, tag = "3")]
pub width_px: i32,
#[prost(int32, tag = "4")]
pub asset_height_px: i32,
#[prost(int32, tag = "5")]
pub expanded_height_px: i32,
#[prost(int32, tag = "6")]
pub asset_width_px: i32,
#[prost(int32, tag = "7")]
pub expanded_width_px: i32,
#[prost(string, tag = "8")]
pub ad_slot_id: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "9")]
pub events: ::prost::alloc::vec::Vec<Event>,
#[prost(oneof = "companion::AdResource", tags = "10, 11, 12")]
pub ad_resource: ::core::option::Option<companion::AdResource>,
}
pub mod companion {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum AdResource {
#[prost(message, tag = "10")]
IframeAdResource(super::IframeAdResource),
#[prost(message, tag = "11")]
StaticAdResource(super::StaticAdResource),
#[prost(message, tag = "12")]
HtmlAdResource(super::HtmlAdResource),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HtmlAdResource {
#[prost(string, tag = "1")]
pub html_source: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IframeAdResource {
#[prost(string, tag = "1")]
pub uri: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StaticAdResource {
#[prost(string, tag = "1")]
pub uri: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub creative_type: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodSession {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub interstitials: ::core::option::Option<Interstitials>,
#[prost(string, tag = "4")]
pub play_uri: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub source_uri: ::prost::alloc::string::String,
#[prost(string, tag = "6")]
pub ad_tag_uri: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "7")]
pub ad_tag_macro_map: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(bool, tag = "8")]
pub client_ad_tracking: bool,
#[prost(message, optional, tag = "9")]
pub manifest_options: ::core::option::Option<ManifestOptions>,
#[prost(string, tag = "10")]
pub asset_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Interstitials {
#[prost(message, repeated, tag = "1")]
pub ad_breaks: ::prost::alloc::vec::Vec<VodSessionAdBreak>,
#[prost(message, optional, tag = "2")]
pub session_content: ::core::option::Option<VodSessionContent>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodSessionAd {
#[prost(message, optional, tag = "1")]
pub duration: ::core::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag = "2")]
pub companion_ads: ::core::option::Option<CompanionAds>,
#[prost(message, repeated, tag = "3")]
pub activity_events: ::prost::alloc::vec::Vec<Event>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodSessionContent {
#[prost(message, optional, tag = "1")]
pub duration: ::core::option::Option<::prost_types::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodSessionAdBreak {
#[prost(message, repeated, tag = "1")]
pub progress_events: ::prost::alloc::vec::Vec<ProgressEvent>,
#[prost(message, repeated, tag = "2")]
pub ads: ::prost::alloc::vec::Vec<VodSessionAd>,
#[prost(message, optional, tag = "3")]
pub end_time_offset: ::core::option::Option<::prost_types::Duration>,
#[prost(message, optional, tag = "4")]
pub start_time_offset: ::core::option::Option<::prost_types::Duration>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LiveSession {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub play_uri: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub source_uri: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub default_ad_tag_id: ::prost::alloc::string::String,
#[prost(map = "string, message", tag = "5")]
pub ad_tag_map: ::std::collections::HashMap<::prost::alloc::string::String, AdTag>,
#[prost(map = "string, string", tag = "6")]
pub ad_tag_macros: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(bool, tag = "7")]
pub client_ad_tracking: bool,
#[prost(string, tag = "8")]
pub default_slate_id: ::prost::alloc::string::String,
#[prost(enumeration = "live_session::StitchingPolicy", tag = "9")]
pub stitching_policy: i32,
#[prost(message, optional, tag = "10")]
pub manifest_options: ::core::option::Option<ManifestOptions>,
#[prost(string, tag = "11")]
pub stream_id: ::prost::alloc::string::String,
}
pub mod live_session {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum StitchingPolicy {
Unspecified = 0,
CompleteAd = 1,
CutCurrent = 3,
}
impl StitchingPolicy {
pub fn as_str_name(&self) -> &'static str {
match self {
StitchingPolicy::Unspecified => "STITCHING_POLICY_UNSPECIFIED",
StitchingPolicy::CompleteAd => "COMPLETE_AD",
StitchingPolicy::CutCurrent => "CUT_CURRENT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STITCHING_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
"COMPLETE_AD" => Some(Self::CompleteAd),
"CUT_CURRENT" => Some(Self::CutCurrent),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdTag {
#[prost(string, tag = "1")]
pub uri: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManifestOptions {
#[prost(message, repeated, tag = "1")]
pub include_renditions: ::prost::alloc::vec::Vec<RenditionFilter>,
#[prost(enumeration = "manifest_options::OrderPolicy", tag = "2")]
pub bitrate_order: i32,
}
pub mod manifest_options {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum OrderPolicy {
Unspecified = 0,
Ascending = 1,
Descending = 2,
}
impl OrderPolicy {
pub fn as_str_name(&self) -> &'static str {
match self {
OrderPolicy::Unspecified => "ORDER_POLICY_UNSPECIFIED",
OrderPolicy::Ascending => "ASCENDING",
OrderPolicy::Descending => "DESCENDING",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ORDER_POLICY_UNSPECIFIED" => Some(Self::Unspecified),
"ASCENDING" => Some(Self::Ascending),
"DESCENDING" => Some(Self::Descending),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RenditionFilter {
#[prost(int32, tag = "1")]
pub bitrate_bps: i32,
#[prost(string, tag = "2")]
pub codecs: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Slate {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub uri: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VodStitchDetail {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "3")]
pub ad_stitch_details: ::prost::alloc::vec::Vec<AdStitchDetail>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AdStitchDetail {
#[prost(string, tag = "1")]
pub ad_break_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub ad_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub ad_time_offset: ::core::option::Option<::prost_types::Duration>,
#[prost(string, tag = "4")]
pub skip_reason: ::prost::alloc::string::String,
#[prost(map = "string, message", tag = "5")]
pub media: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost_types::Value,
>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateCdnKeyRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub cdn_key: ::core::option::Option<CdnKey>,
#[prost(string, tag = "3")]
pub cdn_key_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCdnKeysRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub order_by: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListCdnKeysResponse {
#[prost(message, repeated, tag = "1")]
pub cdn_keys: ::prost::alloc::vec::Vec<CdnKey>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetCdnKeyRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteCdnKeyRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateCdnKeyRequest {
#[prost(message, optional, tag = "1")]
pub cdn_key: ::core::option::Option<CdnKey>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateVodSessionRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub vod_session: ::core::option::Option<VodSession>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVodSessionRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodStitchDetailsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodStitchDetailsResponse {
#[prost(message, repeated, tag = "1")]
pub vod_stitch_details: ::prost::alloc::vec::Vec<VodStitchDetail>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVodStitchDetailRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodAdTagDetailsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListVodAdTagDetailsResponse {
#[prost(message, repeated, tag = "1")]
pub vod_ad_tag_details: ::prost::alloc::vec::Vec<VodAdTagDetail>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetVodAdTagDetailRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLiveAdTagDetailsRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListLiveAdTagDetailsResponse {
#[prost(message, repeated, tag = "1")]
pub live_ad_tag_details: ::prost::alloc::vec::Vec<LiveAdTagDetail>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLiveAdTagDetailRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateSlateRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub slate_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub slate: ::core::option::Option<Slate>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetSlateRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSlatesRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(int32, tag = "2")]
pub page_size: i32,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub filter: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub order_by: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListSlatesResponse {
#[prost(message, repeated, tag = "1")]
pub slates: ::prost::alloc::vec::Vec<Slate>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
#[prost(string, repeated, tag = "3")]
pub unreachable: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateSlateRequest {
#[prost(message, optional, tag = "1")]
pub slate: ::core::option::Option<Slate>,
#[prost(message, optional, tag = "2")]
pub update_mask: ::core::option::Option<::prost_types::FieldMask>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteSlateRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateLiveSessionRequest {
#[prost(string, tag = "1")]
pub parent: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub live_session: ::core::option::Option<LiveSession>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetLiveSessionRequest {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
}
pub mod video_stitcher_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct VideoStitcherServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl VideoStitcherServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: std::convert::TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> VideoStitcherServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> VideoStitcherServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
VideoStitcherServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
pub async fn create_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::CreateCdnKeyRequest>,
) -> Result<tonic::Response<super::CdnKey>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateCdnKey",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_cdn_keys(
&mut self,
request: impl tonic::IntoRequest<super::ListCdnKeysRequest>,
) -> Result<tonic::Response<super::ListCdnKeysResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListCdnKeys",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::GetCdnKeyRequest>,
) -> Result<tonic::Response<super::CdnKey>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetCdnKey",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::DeleteCdnKeyRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteCdnKey",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_cdn_key(
&mut self,
request: impl tonic::IntoRequest<super::UpdateCdnKeyRequest>,
) -> Result<tonic::Response<super::CdnKey>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/UpdateCdnKey",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_vod_session(
&mut self,
request: impl tonic::IntoRequest<super::CreateVodSessionRequest>,
) -> Result<tonic::Response<super::VodSession>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateVodSession",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_vod_session(
&mut self,
request: impl tonic::IntoRequest<super::GetVodSessionRequest>,
) -> Result<tonic::Response<super::VodSession>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetVodSession",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_vod_stitch_details(
&mut self,
request: impl tonic::IntoRequest<super::ListVodStitchDetailsRequest>,
) -> Result<
tonic::Response<super::ListVodStitchDetailsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListVodStitchDetails",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_vod_stitch_detail(
&mut self,
request: impl tonic::IntoRequest<super::GetVodStitchDetailRequest>,
) -> Result<tonic::Response<super::VodStitchDetail>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetVodStitchDetail",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_vod_ad_tag_details(
&mut self,
request: impl tonic::IntoRequest<super::ListVodAdTagDetailsRequest>,
) -> Result<tonic::Response<super::ListVodAdTagDetailsResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListVodAdTagDetails",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_vod_ad_tag_detail(
&mut self,
request: impl tonic::IntoRequest<super::GetVodAdTagDetailRequest>,
) -> Result<tonic::Response<super::VodAdTagDetail>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetVodAdTagDetail",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_live_ad_tag_details(
&mut self,
request: impl tonic::IntoRequest<super::ListLiveAdTagDetailsRequest>,
) -> Result<
tonic::Response<super::ListLiveAdTagDetailsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListLiveAdTagDetails",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_live_ad_tag_detail(
&mut self,
request: impl tonic::IntoRequest<super::GetLiveAdTagDetailRequest>,
) -> Result<tonic::Response<super::LiveAdTagDetail>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetLiveAdTagDetail",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_slate(
&mut self,
request: impl tonic::IntoRequest<super::CreateSlateRequest>,
) -> Result<tonic::Response<super::Slate>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateSlate",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn list_slates(
&mut self,
request: impl tonic::IntoRequest<super::ListSlatesRequest>,
) -> Result<tonic::Response<super::ListSlatesResponse>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/ListSlates",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_slate(
&mut self,
request: impl tonic::IntoRequest<super::GetSlateRequest>,
) -> Result<tonic::Response<super::Slate>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetSlate",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn update_slate(
&mut self,
request: impl tonic::IntoRequest<super::UpdateSlateRequest>,
) -> Result<tonic::Response<super::Slate>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/UpdateSlate",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn delete_slate(
&mut self,
request: impl tonic::IntoRequest<super::DeleteSlateRequest>,
) -> Result<tonic::Response<()>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/DeleteSlate",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn create_live_session(
&mut self,
request: impl tonic::IntoRequest<super::CreateLiveSessionRequest>,
) -> Result<tonic::Response<super::LiveSession>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/CreateLiveSession",
);
self.inner.unary(request.into_request(), path, codec).await
}
pub async fn get_live_session(
&mut self,
request: impl tonic::IntoRequest<super::GetLiveSessionRequest>,
) -> Result<tonic::Response<super::LiveSession>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/google.cloud.video.stitcher.v1.VideoStitcherService/GetLiveSession",
);
self.inner.unary(request.into_request(), path, codec).await
}
}
}