#![allow(unknown_lints)]
#![allow(clippy::all)]
#![allow(unused_attributes)]
#![cfg_attr(rustfmt, rustfmt::skip)]
#![allow(box_pointers)]
#![allow(dead_code)]
#![allow(missing_docs)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
#![allow(non_upper_case_globals)]
#![allow(trivial_casts)]
#![allow(unused_results)]
#![allow(unused_mut)]
const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_3_2_0;
#[derive(PartialEq,Clone,Default,Debug)]
pub struct Command {
pub audience: ::protobuf::MessageField<super::common::Audience>,
pub command: ::std::option::Option<command::Command>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a Command {
fn default() -> &'a Command {
<Command as ::protobuf::Message>::default_instance()
}
}
impl Command {
pub fn new() -> Command {
::std::default::Default::default()
}
pub fn attach_pipeline(&self) -> &AttachPipelineCommand {
match self.command {
::std::option::Option::Some(command::Command::AttachPipeline(ref v)) => v,
_ => <AttachPipelineCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_attach_pipeline(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_attach_pipeline(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::AttachPipeline(..)) => true,
_ => false,
}
}
pub fn set_attach_pipeline(&mut self, v: AttachPipelineCommand) {
self.command = ::std::option::Option::Some(command::Command::AttachPipeline(v))
}
pub fn mut_attach_pipeline(&mut self) -> &mut AttachPipelineCommand {
if let ::std::option::Option::Some(command::Command::AttachPipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::AttachPipeline(AttachPipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::AttachPipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_attach_pipeline(&mut self) -> AttachPipelineCommand {
if self.has_attach_pipeline() {
match self.command.take() {
::std::option::Option::Some(command::Command::AttachPipeline(v)) => v,
_ => panic!(),
}
} else {
AttachPipelineCommand::new()
}
}
pub fn detach_pipeline(&self) -> &DetachPipelineCommand {
match self.command {
::std::option::Option::Some(command::Command::DetachPipeline(ref v)) => v,
_ => <DetachPipelineCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_detach_pipeline(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_detach_pipeline(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::DetachPipeline(..)) => true,
_ => false,
}
}
pub fn set_detach_pipeline(&mut self, v: DetachPipelineCommand) {
self.command = ::std::option::Option::Some(command::Command::DetachPipeline(v))
}
pub fn mut_detach_pipeline(&mut self) -> &mut DetachPipelineCommand {
if let ::std::option::Option::Some(command::Command::DetachPipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::DetachPipeline(DetachPipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::DetachPipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_detach_pipeline(&mut self) -> DetachPipelineCommand {
if self.has_detach_pipeline() {
match self.command.take() {
::std::option::Option::Some(command::Command::DetachPipeline(v)) => v,
_ => panic!(),
}
} else {
DetachPipelineCommand::new()
}
}
pub fn pause_pipeline(&self) -> &PausePipelineCommand {
match self.command {
::std::option::Option::Some(command::Command::PausePipeline(ref v)) => v,
_ => <PausePipelineCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_pause_pipeline(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_pause_pipeline(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::PausePipeline(..)) => true,
_ => false,
}
}
pub fn set_pause_pipeline(&mut self, v: PausePipelineCommand) {
self.command = ::std::option::Option::Some(command::Command::PausePipeline(v))
}
pub fn mut_pause_pipeline(&mut self) -> &mut PausePipelineCommand {
if let ::std::option::Option::Some(command::Command::PausePipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::PausePipeline(PausePipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::PausePipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_pause_pipeline(&mut self) -> PausePipelineCommand {
if self.has_pause_pipeline() {
match self.command.take() {
::std::option::Option::Some(command::Command::PausePipeline(v)) => v,
_ => panic!(),
}
} else {
PausePipelineCommand::new()
}
}
pub fn resume_pipeline(&self) -> &ResumePipelineCommand {
match self.command {
::std::option::Option::Some(command::Command::ResumePipeline(ref v)) => v,
_ => <ResumePipelineCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_resume_pipeline(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_resume_pipeline(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::ResumePipeline(..)) => true,
_ => false,
}
}
pub fn set_resume_pipeline(&mut self, v: ResumePipelineCommand) {
self.command = ::std::option::Option::Some(command::Command::ResumePipeline(v))
}
pub fn mut_resume_pipeline(&mut self) -> &mut ResumePipelineCommand {
if let ::std::option::Option::Some(command::Command::ResumePipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::ResumePipeline(ResumePipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::ResumePipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_resume_pipeline(&mut self) -> ResumePipelineCommand {
if self.has_resume_pipeline() {
match self.command.take() {
::std::option::Option::Some(command::Command::ResumePipeline(v)) => v,
_ => panic!(),
}
} else {
ResumePipelineCommand::new()
}
}
pub fn keep_alive(&self) -> &KeepAliveCommand {
match self.command {
::std::option::Option::Some(command::Command::KeepAlive(ref v)) => v,
_ => <KeepAliveCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_keep_alive(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_keep_alive(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::KeepAlive(..)) => true,
_ => false,
}
}
pub fn set_keep_alive(&mut self, v: KeepAliveCommand) {
self.command = ::std::option::Option::Some(command::Command::KeepAlive(v))
}
pub fn mut_keep_alive(&mut self) -> &mut KeepAliveCommand {
if let ::std::option::Option::Some(command::Command::KeepAlive(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::KeepAlive(KeepAliveCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::KeepAlive(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_keep_alive(&mut self) -> KeepAliveCommand {
if self.has_keep_alive() {
match self.command.take() {
::std::option::Option::Some(command::Command::KeepAlive(v)) => v,
_ => panic!(),
}
} else {
KeepAliveCommand::new()
}
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(6);
let mut oneofs = ::std::vec::Vec::with_capacity(1);
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::common::Audience>(
"audience",
|m: &Command| { &m.audience },
|m: &mut Command| { &mut m.audience },
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, AttachPipelineCommand>(
"attach_pipeline",
Command::has_attach_pipeline,
Command::attach_pipeline,
Command::mut_attach_pipeline,
Command::set_attach_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, DetachPipelineCommand>(
"detach_pipeline",
Command::has_detach_pipeline,
Command::detach_pipeline,
Command::mut_detach_pipeline,
Command::set_detach_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, PausePipelineCommand>(
"pause_pipeline",
Command::has_pause_pipeline,
Command::pause_pipeline,
Command::mut_pause_pipeline,
Command::set_pause_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, ResumePipelineCommand>(
"resume_pipeline",
Command::has_resume_pipeline,
Command::resume_pipeline,
Command::mut_resume_pipeline,
Command::set_resume_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, KeepAliveCommand>(
"keep_alive",
Command::has_keep_alive,
Command::keep_alive,
Command::mut_keep_alive,
Command::set_keep_alive,
));
oneofs.push(command::Command::generated_oneof_descriptor_data());
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Command>(
"Command",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for Command {
const NAME: &'static str = "Command";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.audience)?;
},
802 => {
self.command = ::std::option::Option::Some(command::Command::AttachPipeline(is.read_message()?));
},
810 => {
self.command = ::std::option::Option::Some(command::Command::DetachPipeline(is.read_message()?));
},
818 => {
self.command = ::std::option::Option::Some(command::Command::PausePipeline(is.read_message()?));
},
826 => {
self.command = ::std::option::Option::Some(command::Command::ResumePipeline(is.read_message()?));
},
834 => {
self.command = ::std::option::Option::Some(command::Command::KeepAlive(is.read_message()?));
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.audience.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
if let ::std::option::Option::Some(ref v) = self.command {
match v {
&command::Command::AttachPipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command::Command::DetachPipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command::Command::PausePipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command::Command::ResumePipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command::Command::KeepAlive(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
};
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.audience.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
}
if let ::std::option::Option::Some(ref v) = self.command {
match v {
&command::Command::AttachPipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(100, v, os)?;
},
&command::Command::DetachPipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(101, v, os)?;
},
&command::Command::PausePipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(102, v, os)?;
},
&command::Command::ResumePipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(103, v, os)?;
},
&command::Command::KeepAlive(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(104, v, os)?;
},
};
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> Command {
Command::new()
}
fn clear(&mut self) {
self.audience.clear();
self.command = ::std::option::Option::None;
self.command = ::std::option::Option::None;
self.command = ::std::option::Option::None;
self.command = ::std::option::Option::None;
self.command = ::std::option::Option::None;
self.special_fields.clear();
}
fn default_instance() -> &'static Command {
static instance: Command = Command {
audience: ::protobuf::MessageField::none(),
command: ::std::option::Option::None,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for Command {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("Command").unwrap()).clone()
}
}
impl ::std::fmt::Display for Command {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Command {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
pub mod command {
#[derive(Clone,PartialEq,Debug)]
#[non_exhaustive]
pub enum Command {
AttachPipeline(super::AttachPipelineCommand),
DetachPipeline(super::DetachPipelineCommand),
PausePipeline(super::PausePipelineCommand),
ResumePipeline(super::ResumePipelineCommand),
KeepAlive(super::KeepAliveCommand),
}
impl ::protobuf::Oneof for Command {
}
impl ::protobuf::OneofFull for Command {
fn descriptor() -> ::protobuf::reflect::OneofDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::OneofDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| <super::Command as ::protobuf::MessageFull>::descriptor().oneof_by_name("command").unwrap()).clone()
}
}
impl Command {
pub(in super) fn generated_oneof_descriptor_data() -> ::protobuf::reflect::GeneratedOneofDescriptorData {
::protobuf::reflect::GeneratedOneofDescriptorData::new::<Command>("command")
}
}
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct AttachPipelineCommand {
pub pipeline: ::protobuf::MessageField<super::pipeline::Pipeline>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a AttachPipelineCommand {
fn default() -> &'a AttachPipelineCommand {
<AttachPipelineCommand as ::protobuf::Message>::default_instance()
}
}
impl AttachPipelineCommand {
pub fn new() -> AttachPipelineCommand {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, super::pipeline::Pipeline>(
"pipeline",
|m: &AttachPipelineCommand| { &m.pipeline },
|m: &mut AttachPipelineCommand| { &mut m.pipeline },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<AttachPipelineCommand>(
"AttachPipelineCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for AttachPipelineCommand {
const NAME: &'static str = "AttachPipelineCommand";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.pipeline)?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if let Some(v) = self.pipeline.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if let Some(v) = self.pipeline.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(1, v, os)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> AttachPipelineCommand {
AttachPipelineCommand::new()
}
fn clear(&mut self) {
self.pipeline.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static AttachPipelineCommand {
static instance: AttachPipelineCommand = AttachPipelineCommand {
pipeline: ::protobuf::MessageField::none(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for AttachPipelineCommand {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("AttachPipelineCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for AttachPipelineCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for AttachPipelineCommand {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DetachPipelineCommand {
pub pipeline_id: ::std::string::String,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DetachPipelineCommand {
fn default() -> &'a DetachPipelineCommand {
<DetachPipelineCommand as ::protobuf::Message>::default_instance()
}
}
impl DetachPipelineCommand {
pub fn new() -> DetachPipelineCommand {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"pipeline_id",
|m: &DetachPipelineCommand| { &m.pipeline_id },
|m: &mut DetachPipelineCommand| { &mut m.pipeline_id },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DetachPipelineCommand>(
"DetachPipelineCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DetachPipelineCommand {
const NAME: &'static str = "DetachPipelineCommand";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.pipeline_id = is.read_string()?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if !self.pipeline_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.pipeline_id);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if !self.pipeline_id.is_empty() {
os.write_string(1, &self.pipeline_id)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> DetachPipelineCommand {
DetachPipelineCommand::new()
}
fn clear(&mut self) {
self.pipeline_id.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static DetachPipelineCommand {
static instance: DetachPipelineCommand = DetachPipelineCommand {
pipeline_id: ::std::string::String::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DetachPipelineCommand {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("DetachPipelineCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for DetachPipelineCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DetachPipelineCommand {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct PausePipelineCommand {
pub pipeline_id: ::std::string::String,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a PausePipelineCommand {
fn default() -> &'a PausePipelineCommand {
<PausePipelineCommand as ::protobuf::Message>::default_instance()
}
}
impl PausePipelineCommand {
pub fn new() -> PausePipelineCommand {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"pipeline_id",
|m: &PausePipelineCommand| { &m.pipeline_id },
|m: &mut PausePipelineCommand| { &mut m.pipeline_id },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<PausePipelineCommand>(
"PausePipelineCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for PausePipelineCommand {
const NAME: &'static str = "PausePipelineCommand";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.pipeline_id = is.read_string()?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if !self.pipeline_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.pipeline_id);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if !self.pipeline_id.is_empty() {
os.write_string(1, &self.pipeline_id)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> PausePipelineCommand {
PausePipelineCommand::new()
}
fn clear(&mut self) {
self.pipeline_id.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static PausePipelineCommand {
static instance: PausePipelineCommand = PausePipelineCommand {
pipeline_id: ::std::string::String::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for PausePipelineCommand {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("PausePipelineCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for PausePipelineCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for PausePipelineCommand {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct ResumePipelineCommand {
pub pipeline_id: ::std::string::String,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a ResumePipelineCommand {
fn default() -> &'a ResumePipelineCommand {
<ResumePipelineCommand as ::protobuf::Message>::default_instance()
}
}
impl ResumePipelineCommand {
pub fn new() -> ResumePipelineCommand {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(1);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"pipeline_id",
|m: &ResumePipelineCommand| { &m.pipeline_id },
|m: &mut ResumePipelineCommand| { &mut m.pipeline_id },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<ResumePipelineCommand>(
"ResumePipelineCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for ResumePipelineCommand {
const NAME: &'static str = "ResumePipelineCommand";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => {
self.pipeline_id = is.read_string()?;
},
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
if !self.pipeline_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.pipeline_id);
}
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
if !self.pipeline_id.is_empty() {
os.write_string(1, &self.pipeline_id)?;
}
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> ResumePipelineCommand {
ResumePipelineCommand::new()
}
fn clear(&mut self) {
self.pipeline_id.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static ResumePipelineCommand {
static instance: ResumePipelineCommand = ResumePipelineCommand {
pipeline_id: ::std::string::String::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for ResumePipelineCommand {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("ResumePipelineCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for ResumePipelineCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ResumePipelineCommand {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct KeepAliveCommand {
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a KeepAliveCommand {
fn default() -> &'a KeepAliveCommand {
<KeepAliveCommand as ::protobuf::Message>::default_instance()
}
}
impl KeepAliveCommand {
pub fn new() -> KeepAliveCommand {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(0);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<KeepAliveCommand>(
"KeepAliveCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for KeepAliveCommand {
const NAME: &'static str = "KeepAliveCommand";
fn is_initialized(&self) -> bool {
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::Result<()> {
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
tag => {
::protobuf::rt::read_unknown_or_skip_group(tag, is, self.special_fields.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u64 {
let mut my_size = 0;
my_size += ::protobuf::rt::unknown_fields_size(self.special_fields.unknown_fields());
self.special_fields.cached_size().set(my_size as u32);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::Result<()> {
os.write_unknown_fields(self.special_fields.unknown_fields())?;
::std::result::Result::Ok(())
}
fn special_fields(&self) -> &::protobuf::SpecialFields {
&self.special_fields
}
fn mut_special_fields(&mut self) -> &mut ::protobuf::SpecialFields {
&mut self.special_fields
}
fn new() -> KeepAliveCommand {
KeepAliveCommand::new()
}
fn clear(&mut self) {
self.special_fields.clear();
}
fn default_instance() -> &'static KeepAliveCommand {
static instance: KeepAliveCommand = KeepAliveCommand {
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for KeepAliveCommand {
fn descriptor() -> ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().message_by_package_relative_name("KeepAliveCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for KeepAliveCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for KeepAliveCommand {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\rcommand.proto\x12\x06protos\x1a\x0ccommon.proto\x1a\x0epipeline.prot\
o\"\xa2\x03\n\x07Command\x12,\n\x08audience\x18\x01\x20\x01(\x0b2\x10.pr\
otos.AudienceR\x08audience\x12H\n\x0fattach_pipeline\x18d\x20\x01(\x0b2\
\x1d.protos.AttachPipelineCommandH\0R\x0eattachPipeline\x12H\n\x0fdetach\
_pipeline\x18e\x20\x01(\x0b2\x1d.protos.DetachPipelineCommandH\0R\x0edet\
achPipeline\x12E\n\x0epause_pipeline\x18f\x20\x01(\x0b2\x1c.protos.Pause\
PipelineCommandH\0R\rpausePipeline\x12H\n\x0fresume_pipeline\x18g\x20\
\x01(\x0b2\x1d.protos.ResumePipelineCommandH\0R\x0eresumePipeline\x129\n\
\nkeep_alive\x18h\x20\x01(\x0b2\x18.protos.KeepAliveCommandH\0R\tkeepAli\
veB\t\n\x07command\"E\n\x15AttachPipelineCommand\x12,\n\x08pipeline\x18\
\x01\x20\x01(\x0b2\x10.protos.PipelineR\x08pipeline\"8\n\x15DetachPipeli\
neCommand\x12\x1f\n\x0bpipeline_id\x18\x01\x20\x01(\tR\npipelineId\"7\n\
\x14PausePipelineCommand\x12\x1f\n\x0bpipeline_id\x18\x01\x20\x01(\tR\np\
ipelineId\"8\n\x15ResumePipelineCommand\x12\x1f\n\x0bpipeline_id\x18\x01\
\x20\x01(\tR\npipelineId\"\x12\n\x10KeepAliveCommandB4Z2github.com/strea\
mdal/snitch-protos/build/go/protosJ\xb9\x07\n\x06\x12\x04\0\0)\x01\n\x08\
\n\x01\x0c\x12\x03\0\0\x12\n\x08\n\x01\x02\x12\x03\x02\0\x0f\n\t\n\x02\
\x03\0\x12\x03\x04\0\x16\n\t\n\x02\x03\x01\x12\x03\x05\0\x18\n\x08\n\x01\
\x08\x12\x03\x07\0I\n\t\n\x02\x08\x0b\x12\x03\x07\0I\nK\n\x02\x04\0\x12\
\x04\n\0\x15\x01\x1a?\x20Command\x20is\x20used\x20by\x20snitch-server\
\x20for\x20sending\x20commands\x20to\x20SDKs\n\n\n\n\x03\x04\0\x01\x12\
\x03\n\x08\x0f\n0\n\x04\x04\0\x02\0\x12\x03\x0c\x02\x1f\x1a#\x20Who\x20i\
s\x20this\x20command\x20intended\x20for?\n\n\x0c\n\x05\x04\0\x02\0\x06\
\x12\x03\x0c\x02\x11\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x0c\x12\x1a\n\
\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x0c\x1d\x1e\n\x0c\n\x04\x04\0\x08\0\
\x12\x04\x0e\x02\x14\x03\n\x0c\n\x05\x04\0\x08\0\x01\x12\x03\x0e\x08\x0f\
\n\x0b\n\x04\x04\0\x02\x01\x12\x03\x0f\x047\n\x0c\n\x05\x04\0\x02\x01\
\x06\x12\x03\x0f\x04\x20\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x0f!0\n\
\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x0f36\n\x0b\n\x04\x04\0\x02\x02\x12\
\x03\x10\x047\n\x0c\n\x05\x04\0\x02\x02\x06\x12\x03\x10\x04\x20\n\x0c\n\
\x05\x04\0\x02\x02\x01\x12\x03\x10!0\n\x0c\n\x05\x04\0\x02\x02\x03\x12\
\x03\x1036\n\x0b\n\x04\x04\0\x02\x03\x12\x03\x11\x045\n\x0c\n\x05\x04\0\
\x02\x03\x06\x12\x03\x11\x04\x1f\n\x0c\n\x05\x04\0\x02\x03\x01\x12\x03\
\x11\x20.\n\x0c\n\x05\x04\0\x02\x03\x03\x12\x03\x1114\n\x0b\n\x04\x04\0\
\x02\x04\x12\x03\x12\x047\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03\x12\x04\
\x20\n\x0c\n\x05\x04\0\x02\x04\x01\x12\x03\x12!0\n\x0c\n\x05\x04\0\x02\
\x04\x03\x12\x03\x1236\n\x0b\n\x04\x04\0\x02\x05\x12\x03\x13\x04-\n\x0c\
\n\x05\x04\0\x02\x05\x06\x12\x03\x13\x04\x1b\n\x0c\n\x05\x04\0\x02\x05\
\x01\x12\x03\x13\x1c&\n\x0c\n\x05\x04\0\x02\x05\x03\x12\x03\x13),\n\n\n\
\x02\x04\x01\x12\x04\x17\0\x19\x01\n\n\n\x03\x04\x01\x01\x12\x03\x17\x08\
\x1d\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x18\x02\x1f\n\x0c\n\x05\x04\x01\
\x02\0\x06\x12\x03\x18\x02\x11\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x18\
\x12\x1a\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x18\x1d\x1e\n\n\n\x02\x04\
\x02\x12\x04\x1b\0\x1d\x01\n\n\n\x03\x04\x02\x01\x12\x03\x1b\x08\x1d\n\
\x0b\n\x04\x04\x02\x02\0\x12\x03\x1c\x02\x19\n\x0c\n\x05\x04\x02\x02\0\
\x05\x12\x03\x1c\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\x1c\t\x14\
\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x1c\x17\x18\n\n\n\x02\x04\x03\x12\
\x04\x1f\0!\x01\n\n\n\x03\x04\x03\x01\x12\x03\x1f\x08\x1c\n\x0b\n\x04\
\x04\x03\x02\0\x12\x03\x20\x02\x19\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03\
\x20\x02\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x03\x20\t\x14\n\x0c\n\x05\
\x04\x03\x02\0\x03\x12\x03\x20\x17\x18\n\n\n\x02\x04\x04\x12\x04#\0%\x01\
\n\n\n\x03\x04\x04\x01\x12\x03#\x08\x1d\n\x0b\n\x04\x04\x04\x02\0\x12\
\x03$\x02\x19\n\x0c\n\x05\x04\x04\x02\0\x05\x12\x03$\x02\x08\n\x0c\n\x05\
\x04\x04\x02\0\x01\x12\x03$\t\x14\n\x0c\n\x05\x04\x04\x02\0\x03\x12\x03$\
\x17\x18\nD\n\x02\x04\x05\x12\x04'\0)\x01\"8\x20Nothing\x20needed\x20in\
\x20here,\x20just\x20a\x20ping\x20from\x20server\x20to\x20SDK\n\n\n\n\
\x03\x04\x05\x01\x12\x03'\x08\x18b\x06proto3\
";
fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
static file_descriptor_proto_lazy: ::protobuf::rt::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::Lazy::new();
file_descriptor_proto_lazy.get(|| {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
})
}
pub fn file_descriptor() -> &'static ::protobuf::reflect::FileDescriptor {
static generated_file_descriptor_lazy: ::protobuf::rt::Lazy<::protobuf::reflect::GeneratedFileDescriptor> = ::protobuf::rt::Lazy::new();
static file_descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::FileDescriptor> = ::protobuf::rt::Lazy::new();
file_descriptor.get(|| {
let generated_file_descriptor = generated_file_descriptor_lazy.get(|| {
let mut deps = ::std::vec::Vec::with_capacity(2);
deps.push(super::common::file_descriptor().clone());
deps.push(super::pipeline::file_descriptor().clone());
let mut messages = ::std::vec::Vec::with_capacity(6);
messages.push(Command::generated_message_descriptor_data());
messages.push(AttachPipelineCommand::generated_message_descriptor_data());
messages.push(DetachPipelineCommand::generated_message_descriptor_data());
messages.push(PausePipelineCommand::generated_message_descriptor_data());
messages.push(ResumePipelineCommand::generated_message_descriptor_data());
messages.push(KeepAliveCommand::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(0);
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
file_descriptor_proto(),
deps,
messages,
enums,
)
});
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
})
}