#![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 set_pipeline(&self) -> &SetPipelineCommand {
match self.command {
::std::option::Option::Some(command::Command::SetPipeline(ref v)) => v,
_ => <SetPipelineCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_set_pipeline(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_set_pipeline(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::SetPipeline(..)) => true,
_ => false,
}
}
pub fn set_set_pipeline(&mut self, v: SetPipelineCommand) {
self.command = ::std::option::Option::Some(command::Command::SetPipeline(v))
}
pub fn mut_set_pipeline(&mut self) -> &mut SetPipelineCommand {
if let ::std::option::Option::Some(command::Command::SetPipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::SetPipeline(SetPipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::SetPipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_set_pipeline(&mut self) -> SetPipelineCommand {
if self.has_set_pipeline() {
match self.command.take() {
::std::option::Option::Some(command::Command::SetPipeline(v)) => v,
_ => panic!(),
}
} else {
SetPipelineCommand::new()
}
}
pub fn delete_pipeline(&self) -> &DeletePipelineCommand {
match self.command {
::std::option::Option::Some(command::Command::DeletePipeline(ref v)) => v,
_ => <DeletePipelineCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_delete_pipeline(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_delete_pipeline(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::DeletePipeline(..)) => true,
_ => false,
}
}
pub fn set_delete_pipeline(&mut self, v: DeletePipelineCommand) {
self.command = ::std::option::Option::Some(command::Command::DeletePipeline(v))
}
pub fn mut_delete_pipeline(&mut self) -> &mut DeletePipelineCommand {
if let ::std::option::Option::Some(command::Command::DeletePipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::DeletePipeline(DeletePipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::DeletePipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_delete_pipeline(&mut self) -> DeletePipelineCommand {
if self.has_delete_pipeline() {
match self.command.take() {
::std::option::Option::Some(command::Command::DeletePipeline(v)) => v,
_ => panic!(),
}
} else {
DeletePipelineCommand::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 unpause_pipeline(&self) -> &UnpausePipelineCommand {
match self.command {
::std::option::Option::Some(command::Command::UnpausePipeline(ref v)) => v,
_ => <UnpausePipelineCommand as ::protobuf::Message>::default_instance(),
}
}
pub fn clear_unpause_pipeline(&mut self) {
self.command = ::std::option::Option::None;
}
pub fn has_unpause_pipeline(&self) -> bool {
match self.command {
::std::option::Option::Some(command::Command::UnpausePipeline(..)) => true,
_ => false,
}
}
pub fn set_unpause_pipeline(&mut self, v: UnpausePipelineCommand) {
self.command = ::std::option::Option::Some(command::Command::UnpausePipeline(v))
}
pub fn mut_unpause_pipeline(&mut self) -> &mut UnpausePipelineCommand {
if let ::std::option::Option::Some(command::Command::UnpausePipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command::Command::UnpausePipeline(UnpausePipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command::Command::UnpausePipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_unpause_pipeline(&mut self) -> UnpausePipelineCommand {
if self.has_unpause_pipeline() {
match self.command.take() {
::std::option::Option::Some(command::Command::UnpausePipeline(v)) => v,
_ => panic!(),
}
} else {
UnpausePipelineCommand::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::<_, SetPipelineCommand>(
"set_pipeline",
Command::has_set_pipeline,
Command::set_pipeline,
Command::mut_set_pipeline,
Command::set_set_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, DeletePipelineCommand>(
"delete_pipeline",
Command::has_delete_pipeline,
Command::delete_pipeline,
Command::mut_delete_pipeline,
Command::set_delete_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::<_, UnpausePipelineCommand>(
"unpause_pipeline",
Command::has_unpause_pipeline,
Command::unpause_pipeline,
Command::mut_unpause_pipeline,
Command::set_unpause_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::SetPipeline(is.read_message()?));
},
810 => {
self.command = ::std::option::Option::Some(command::Command::DeletePipeline(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::UnpausePipeline(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::SetPipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command::Command::DeletePipeline(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::UnpausePipeline(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::SetPipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(100, v, os)?;
},
&command::Command::DeletePipeline(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::UnpausePipeline(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 {
SetPipeline(super::SetPipelineCommand),
DeletePipeline(super::DeletePipelineCommand),
PausePipeline(super::PausePipelineCommand),
UnpausePipeline(super::UnpausePipelineCommand),
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 SetPipelineCommand {
pub pipeline: ::protobuf::MessageField<super::pipeline::Pipeline>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a SetPipelineCommand {
fn default() -> &'a SetPipelineCommand {
<SetPipelineCommand as ::protobuf::Message>::default_instance()
}
}
impl SetPipelineCommand {
pub fn new() -> SetPipelineCommand {
::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: &SetPipelineCommand| { &m.pipeline },
|m: &mut SetPipelineCommand| { &mut m.pipeline },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<SetPipelineCommand>(
"SetPipelineCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for SetPipelineCommand {
const NAME: &'static str = "SetPipelineCommand";
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() -> SetPipelineCommand {
SetPipelineCommand::new()
}
fn clear(&mut self) {
self.pipeline.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static SetPipelineCommand {
static instance: SetPipelineCommand = SetPipelineCommand {
pipeline: ::protobuf::MessageField::none(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for SetPipelineCommand {
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("SetPipelineCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for SetPipelineCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for SetPipelineCommand {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct DeletePipelineCommand {
pub id: ::std::string::String,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a DeletePipelineCommand {
fn default() -> &'a DeletePipelineCommand {
<DeletePipelineCommand as ::protobuf::Message>::default_instance()
}
}
impl DeletePipelineCommand {
pub fn new() -> DeletePipelineCommand {
::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::<_, _>(
"id",
|m: &DeletePipelineCommand| { &m.id },
|m: &mut DeletePipelineCommand| { &mut m.id },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<DeletePipelineCommand>(
"DeletePipelineCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for DeletePipelineCommand {
const NAME: &'static str = "DeletePipelineCommand";
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.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.id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.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.id.is_empty() {
os.write_string(1, &self.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() -> DeletePipelineCommand {
DeletePipelineCommand::new()
}
fn clear(&mut self) {
self.id.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static DeletePipelineCommand {
static instance: DeletePipelineCommand = DeletePipelineCommand {
id: ::std::string::String::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for DeletePipelineCommand {
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("DeletePipelineCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for DeletePipelineCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for DeletePipelineCommand {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct PausePipelineCommand {
pub 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::<_, _>(
"id",
|m: &PausePipelineCommand| { &m.id },
|m: &mut PausePipelineCommand| { &mut m.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.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.id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.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.id.is_empty() {
os.write_string(1, &self.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.id.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static PausePipelineCommand {
static instance: PausePipelineCommand = PausePipelineCommand {
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 UnpausePipelineCommand {
pub id: ::std::string::String,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a UnpausePipelineCommand {
fn default() -> &'a UnpausePipelineCommand {
<UnpausePipelineCommand as ::protobuf::Message>::default_instance()
}
}
impl UnpausePipelineCommand {
pub fn new() -> UnpausePipelineCommand {
::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::<_, _>(
"id",
|m: &UnpausePipelineCommand| { &m.id },
|m: &mut UnpausePipelineCommand| { &mut m.id },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<UnpausePipelineCommand>(
"UnpausePipelineCommand",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for UnpausePipelineCommand {
const NAME: &'static str = "UnpausePipelineCommand";
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.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.id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.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.id.is_empty() {
os.write_string(1, &self.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() -> UnpausePipelineCommand {
UnpausePipelineCommand::new()
}
fn clear(&mut self) {
self.id.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static UnpausePipelineCommand {
static instance: UnpausePipelineCommand = UnpausePipelineCommand {
id: ::std::string::String::new(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for UnpausePipelineCommand {
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("UnpausePipelineCommand").unwrap()).clone()
}
}
impl ::std::fmt::Display for UnpausePipelineCommand {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for UnpausePipelineCommand {
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\"\x9c\x03\n\x07Command\x12,\n\x08audience\x18\x01\x20\x01(\x0b2\x10.pr\
otos.AudienceR\x08audience\x12?\n\x0cset_pipeline\x18d\x20\x01(\x0b2\x1a\
.protos.SetPipelineCommandH\0R\x0bsetPipeline\x12H\n\x0fdelete_pipeline\
\x18e\x20\x01(\x0b2\x1d.protos.DeletePipelineCommandH\0R\x0edeletePipeli\
ne\x12E\n\x0epause_pipeline\x18f\x20\x01(\x0b2\x1c.protos.PausePipelineC\
ommandH\0R\rpausePipeline\x12K\n\x10unpause_pipeline\x18g\x20\x01(\x0b2\
\x1e.protos.UnpausePipelineCommandH\0R\x0funpausePipeline\x129\n\nkeep_a\
live\x18h\x20\x01(\x0b2\x18.protos.KeepAliveCommandH\0R\tkeepAliveB\t\n\
\x07command\"B\n\x12SetPipelineCommand\x12,\n\x08pipeline\x18\x01\x20\
\x01(\x0b2\x10.protos.PipelineR\x08pipeline\"'\n\x15DeletePipelineComman\
d\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\"&\n\x14PausePipelineCommand\
\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\"(\n\x16UnpausePipelineComman\
d\x12\x0e\n\x02id\x18\x01\x20\x01(\tR\x02id\"\x12\n\x10KeepAliveCommandB\
4Z2github.com/streamdal/snitch-protos/build/go/protosJ\xb0\n\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\x20\
by\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\x20is\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\x041\n\x0c\n\x05\
\x04\0\x02\x01\x06\x12\x03\x0f\x04\x1d\n\x0c\n\x05\x04\0\x02\x01\x01\x12\
\x03\x0f\x1e*\n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x0f-0\n(\n\x04\x04\0\
\x02\x02\x12\x03\x10\x047\"\x1b\x20Hmm,\x20should\x20this\x20be\x20here?\
\n\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\x049\n\x0c\n\x05\x04\0\x02\x04\x06\x12\x03\x12\x04!\n\x0c\n\x05\
\x04\0\x02\x04\x01\x12\x03\x12\"2\n\x0c\n\x05\x04\0\x02\x04\x03\x12\x03\
\x1258\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\x02\x04\x01\x12\
\x04\x18\0\x1a\x01\x1a\x1e\x20Used\x20for\x20both\x20Add\x20and\x20Updat\
e\n\n\n\n\x03\x04\x01\x01\x12\x03\x18\x08\x1a\n\x0b\n\x04\x04\x01\x02\0\
\x12\x03\x19\x02\x1f\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03\x19\x02\x11\n\
\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x19\x12\x1a\n\x0c\n\x05\x04\x01\x02\
\0\x03\x12\x03\x19\x1d\x1e\n\n\n\x02\x04\x02\x12\x04\x1c\0\x1f\x01\n\n\n\
\x03\x04\x02\x01\x12\x03\x1c\x08\x1d\n\xa3\x01\n\x04\x04\x02\x02\0\x12\
\x03\x1e\x02\x10\x1a\x1c\x20Unique\x20ID\x20for\x20the\x20pipeline\n\"x\
\x20TODO:\x20Where\x20does\x20this\x20ID\x20come\x20from?\x20How\x20do\
\x20we\x20know\x20it?\x20A:\x20We\x20get\x20it\x20on\x20pipeline\x20crea\
tion\x20(CreatePipeline\x20external\x20RPC)\n\n\x0c\n\x05\x04\x02\x02\0\
\x05\x12\x03\x1e\x02\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\x1e\t\x0b\
\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x1e\x0e\x0f\n\n\n\x02\x04\x03\x12\
\x04!\0$\x01\n\n\n\x03\x04\x03\x01\x12\x03!\x08\x1c\n\x8d\x01\n\x04\x04\
\x03\x02\0\x12\x03#\x02\x10\x1a\x1c\x20Unique\x20ID\x20for\x20the\x20pip\
eline\n\"b\x20TODO:\x20Where\x20does\x20this\x20come\x20from?\x20A:\x20W\
e\x20get\x20it\x20on\x20pipeline\x20creation\x20(CreatePipeline\x20exter\
nal\x20RPC)\n\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x03#\x02\x08\n\x0c\n\x05\
\x04\x03\x02\0\x01\x12\x03#\t\x0b\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03#\
\x0e\x0f\n\n\n\x02\x04\x04\x12\x04&\0)\x01\n\n\n\x03\x04\x04\x01\x12\x03\
&\x08\x1e\n)\n\x04\x04\x04\x02\0\x12\x03(\x02\x10\x1a\x1c\x20Unique\x20I\
D\x20for\x20the\x20pipeline\n\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\x0b\n\x0c\n\x05\x04\x04\
\x02\0\x03\x12\x03(\x0e\x0f\nD\n\x02\x04\x05\x12\x04+\0-\x01\"8\x20Nothi\
ng\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(SetPipelineCommand::generated_message_descriptor_data());
messages.push(DeletePipelineCommand::generated_message_descriptor_data());
messages.push(PausePipelineCommand::generated_message_descriptor_data());
messages.push(UnpausePipelineCommand::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)
})
}