#![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 HeartbeatRequest {
pub audience: ::protobuf::MessageField<Audience>,
pub last_activity_unix_timestamp_utc: i64,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a HeartbeatRequest {
fn default() -> &'a HeartbeatRequest {
<HeartbeatRequest as ::protobuf::Message>::default_instance()
}
}
impl HeartbeatRequest {
pub fn new() -> HeartbeatRequest {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(2);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Audience>(
"audience",
|m: &HeartbeatRequest| { &m.audience },
|m: &mut HeartbeatRequest| { &mut m.audience },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"last_activity_unix_timestamp_utc",
|m: &HeartbeatRequest| { &m.last_activity_unix_timestamp_utc },
|m: &mut HeartbeatRequest| { &mut m.last_activity_unix_timestamp_utc },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<HeartbeatRequest>(
"HeartbeatRequest",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for HeartbeatRequest {
const NAME: &'static str = "HeartbeatRequest";
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)?;
},
16 => {
self.last_activity_unix_timestamp_utc = is.read_int64()?;
},
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 self.last_activity_unix_timestamp_utc != 0 {
my_size += ::protobuf::rt::int64_size(2, self.last_activity_unix_timestamp_utc);
}
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 self.last_activity_unix_timestamp_utc != 0 {
os.write_int64(2, self.last_activity_unix_timestamp_utc)?;
}
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() -> HeartbeatRequest {
HeartbeatRequest::new()
}
fn clear(&mut self) {
self.audience.clear();
self.last_activity_unix_timestamp_utc = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static HeartbeatRequest {
static instance: HeartbeatRequest = HeartbeatRequest {
audience: ::protobuf::MessageField::none(),
last_activity_unix_timestamp_utc: 0,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for HeartbeatRequest {
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("HeartbeatRequest").unwrap()).clone()
}
}
impl ::std::fmt::Display for HeartbeatRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for HeartbeatRequest {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct NotifyRequest {
pub rule_id: ::std::string::String,
pub rule_name: ::std::string::String,
pub audience: ::protobuf::MessageField<Audience>,
pub occurred_at_unix_ts_utc: i64,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a NotifyRequest {
fn default() -> &'a NotifyRequest {
<NotifyRequest as ::protobuf::Message>::default_instance()
}
}
impl NotifyRequest {
pub fn new() -> NotifyRequest {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(4);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"rule_id",
|m: &NotifyRequest| { &m.rule_id },
|m: &mut NotifyRequest| { &mut m.rule_id },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"rule_name",
|m: &NotifyRequest| { &m.rule_name },
|m: &mut NotifyRequest| { &mut m.rule_name },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Audience>(
"audience",
|m: &NotifyRequest| { &m.audience },
|m: &mut NotifyRequest| { &mut m.audience },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"occurred_at_unix_ts_utc",
|m: &NotifyRequest| { &m.occurred_at_unix_ts_utc },
|m: &mut NotifyRequest| { &mut m.occurred_at_unix_ts_utc },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<NotifyRequest>(
"NotifyRequest",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for NotifyRequest {
const NAME: &'static str = "NotifyRequest";
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.rule_id = is.read_string()?;
},
18 => {
self.rule_name = is.read_string()?;
},
26 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.audience)?;
},
32 => {
self.occurred_at_unix_ts_utc = is.read_int64()?;
},
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.rule_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.rule_id);
}
if !self.rule_name.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.rule_name);
}
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 self.occurred_at_unix_ts_utc != 0 {
my_size += ::protobuf::rt::int64_size(4, self.occurred_at_unix_ts_utc);
}
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.rule_id.is_empty() {
os.write_string(1, &self.rule_id)?;
}
if !self.rule_name.is_empty() {
os.write_string(2, &self.rule_name)?;
}
if let Some(v) = self.audience.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(3, v, os)?;
}
if self.occurred_at_unix_ts_utc != 0 {
os.write_int64(4, self.occurred_at_unix_ts_utc)?;
}
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() -> NotifyRequest {
NotifyRequest::new()
}
fn clear(&mut self) {
self.rule_id.clear();
self.rule_name.clear();
self.audience.clear();
self.occurred_at_unix_ts_utc = 0;
self.special_fields.clear();
}
fn default_instance() -> &'static NotifyRequest {
static instance: NotifyRequest = NotifyRequest {
rule_id: ::std::string::String::new(),
rule_name: ::std::string::String::new(),
audience: ::protobuf::MessageField::none(),
occurred_at_unix_ts_utc: 0,
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for NotifyRequest {
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("NotifyRequest").unwrap()).clone()
}
}
impl ::std::fmt::Display for NotifyRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for NotifyRequest {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct MetricsRequest {
pub rule_id: ::std::string::String,
pub rule_name: ::std::string::String,
pub audience: ::protobuf::MessageField<Audience>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a MetricsRequest {
fn default() -> &'a MetricsRequest {
<MetricsRequest as ::protobuf::Message>::default_instance()
}
}
impl MetricsRequest {
pub fn new() -> MetricsRequest {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"rule_id",
|m: &MetricsRequest| { &m.rule_id },
|m: &mut MetricsRequest| { &mut m.rule_id },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"rule_name",
|m: &MetricsRequest| { &m.rule_name },
|m: &mut MetricsRequest| { &mut m.rule_name },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Audience>(
"audience",
|m: &MetricsRequest| { &m.audience },
|m: &mut MetricsRequest| { &mut m.audience },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<MetricsRequest>(
"MetricsRequest",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for MetricsRequest {
const NAME: &'static str = "MetricsRequest";
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.rule_id = is.read_string()?;
},
18 => {
self.rule_name = is.read_string()?;
},
26 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.audience)?;
},
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.rule_id.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.rule_id);
}
if !self.rule_name.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.rule_name);
}
if let Some(v) = self.audience.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 !self.rule_id.is_empty() {
os.write_string(1, &self.rule_id)?;
}
if !self.rule_name.is_empty() {
os.write_string(2, &self.rule_name)?;
}
if let Some(v) = self.audience.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(3, 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() -> MetricsRequest {
MetricsRequest::new()
}
fn clear(&mut self) {
self.rule_id.clear();
self.rule_name.clear();
self.audience.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static MetricsRequest {
static instance: MetricsRequest = MetricsRequest {
rule_id: ::std::string::String::new(),
rule_name: ::std::string::String::new(),
audience: ::protobuf::MessageField::none(),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for MetricsRequest {
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("MetricsRequest").unwrap()).clone()
}
}
impl ::std::fmt::Display for MetricsRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for MetricsRequest {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct RegisterRequest {
pub service_name: ::std::string::String,
pub dry_run: bool,
pub _metadata: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a RegisterRequest {
fn default() -> &'a RegisterRequest {
<RegisterRequest as ::protobuf::Message>::default_instance()
}
}
impl RegisterRequest {
pub fn new() -> RegisterRequest {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"service_name",
|m: &RegisterRequest| { &m.service_name },
|m: &mut RegisterRequest| { &mut m.service_name },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"dry_run",
|m: &RegisterRequest| { &m.dry_run },
|m: &mut RegisterRequest| { &mut m.dry_run },
));
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>(
"_metadata",
|m: &RegisterRequest| { &m._metadata },
|m: &mut RegisterRequest| { &mut m._metadata },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<RegisterRequest>(
"RegisterRequest",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for RegisterRequest {
const NAME: &'static str = "RegisterRequest";
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.service_name = is.read_string()?;
},
16 => {
self.dry_run = is.read_bool()?;
},
8002 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => key = is.read_string()?,
18 => value = is.read_string()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self._metadata.insert(key, value);
},
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.service_name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.service_name);
}
if self.dry_run != false {
my_size += 1 + 1;
}
for (k, v) in &self._metadata {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
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.service_name.is_empty() {
os.write_string(1, &self.service_name)?;
}
if self.dry_run != false {
os.write_bool(2, self.dry_run)?;
}
for (k, v) in &self._metadata {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
os.write_raw_varint32(8002)?; os.write_raw_varint32(entry_size as u32)?;
os.write_string(1, &k)?;
os.write_string(2, &v)?;
};
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() -> RegisterRequest {
RegisterRequest::new()
}
fn clear(&mut self) {
self.service_name.clear();
self.dry_run = false;
self._metadata.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static RegisterRequest {
static instance: ::protobuf::rt::Lazy<RegisterRequest> = ::protobuf::rt::Lazy::new();
instance.get(RegisterRequest::new)
}
}
impl ::protobuf::MessageFull for RegisterRequest {
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("RegisterRequest").unwrap()).clone()
}
}
impl ::std::fmt::Display for RegisterRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for RegisterRequest {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(PartialEq,Clone,Default,Debug)]
pub struct CommandResponse {
pub type_: ::protobuf::EnumOrUnknown<CommandType>,
pub audience: ::protobuf::MessageField<Audience>,
pub _metadata: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
pub command: ::std::option::Option<command_response::Command>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a CommandResponse {
fn default() -> &'a CommandResponse {
<CommandResponse as ::protobuf::Message>::default_instance()
}
}
impl CommandResponse {
pub fn new() -> CommandResponse {
::std::default::Default::default()
}
pub fn set_pipeline(&self) -> &super::pipeline::SetPipelineCommand {
match self.command {
::std::option::Option::Some(command_response::Command::SetPipeline(ref v)) => v,
_ => <super::pipeline::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_response::Command::SetPipeline(..)) => true,
_ => false,
}
}
pub fn set_set_pipeline(&mut self, v: super::pipeline::SetPipelineCommand) {
self.command = ::std::option::Option::Some(command_response::Command::SetPipeline(v))
}
pub fn mut_set_pipeline(&mut self) -> &mut super::pipeline::SetPipelineCommand {
if let ::std::option::Option::Some(command_response::Command::SetPipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command_response::Command::SetPipeline(super::pipeline::SetPipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command_response::Command::SetPipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_set_pipeline(&mut self) -> super::pipeline::SetPipelineCommand {
if self.has_set_pipeline() {
match self.command.take() {
::std::option::Option::Some(command_response::Command::SetPipeline(v)) => v,
_ => panic!(),
}
} else {
super::pipeline::SetPipelineCommand::new()
}
}
pub fn delete_pipeline(&self) -> &super::pipeline::DeletePipelineCommand {
match self.command {
::std::option::Option::Some(command_response::Command::DeletePipeline(ref v)) => v,
_ => <super::pipeline::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_response::Command::DeletePipeline(..)) => true,
_ => false,
}
}
pub fn set_delete_pipeline(&mut self, v: super::pipeline::DeletePipelineCommand) {
self.command = ::std::option::Option::Some(command_response::Command::DeletePipeline(v))
}
pub fn mut_delete_pipeline(&mut self) -> &mut super::pipeline::DeletePipelineCommand {
if let ::std::option::Option::Some(command_response::Command::DeletePipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command_response::Command::DeletePipeline(super::pipeline::DeletePipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command_response::Command::DeletePipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_delete_pipeline(&mut self) -> super::pipeline::DeletePipelineCommand {
if self.has_delete_pipeline() {
match self.command.take() {
::std::option::Option::Some(command_response::Command::DeletePipeline(v)) => v,
_ => panic!(),
}
} else {
super::pipeline::DeletePipelineCommand::new()
}
}
pub fn pause_pipeline(&self) -> &super::pipeline::PausePipelineCommand {
match self.command {
::std::option::Option::Some(command_response::Command::PausePipeline(ref v)) => v,
_ => <super::pipeline::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_response::Command::PausePipeline(..)) => true,
_ => false,
}
}
pub fn set_pause_pipeline(&mut self, v: super::pipeline::PausePipelineCommand) {
self.command = ::std::option::Option::Some(command_response::Command::PausePipeline(v))
}
pub fn mut_pause_pipeline(&mut self) -> &mut super::pipeline::PausePipelineCommand {
if let ::std::option::Option::Some(command_response::Command::PausePipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command_response::Command::PausePipeline(super::pipeline::PausePipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command_response::Command::PausePipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_pause_pipeline(&mut self) -> super::pipeline::PausePipelineCommand {
if self.has_pause_pipeline() {
match self.command.take() {
::std::option::Option::Some(command_response::Command::PausePipeline(v)) => v,
_ => panic!(),
}
} else {
super::pipeline::PausePipelineCommand::new()
}
}
pub fn unpause_pipeline(&self) -> &super::pipeline::UnpausePipelineCommand {
match self.command {
::std::option::Option::Some(command_response::Command::UnpausePipeline(ref v)) => v,
_ => <super::pipeline::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_response::Command::UnpausePipeline(..)) => true,
_ => false,
}
}
pub fn set_unpause_pipeline(&mut self, v: super::pipeline::UnpausePipelineCommand) {
self.command = ::std::option::Option::Some(command_response::Command::UnpausePipeline(v))
}
pub fn mut_unpause_pipeline(&mut self) -> &mut super::pipeline::UnpausePipelineCommand {
if let ::std::option::Option::Some(command_response::Command::UnpausePipeline(_)) = self.command {
} else {
self.command = ::std::option::Option::Some(command_response::Command::UnpausePipeline(super::pipeline::UnpausePipelineCommand::new()));
}
match self.command {
::std::option::Option::Some(command_response::Command::UnpausePipeline(ref mut v)) => v,
_ => panic!(),
}
}
pub fn take_unpause_pipeline(&mut self) -> super::pipeline::UnpausePipelineCommand {
if self.has_unpause_pipeline() {
match self.command.take() {
::std::option::Option::Some(command_response::Command::UnpausePipeline(v)) => v,
_ => panic!(),
}
} else {
super::pipeline::UnpausePipelineCommand::new()
}
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(7);
let mut oneofs = ::std::vec::Vec::with_capacity(1);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"type",
|m: &CommandResponse| { &m.type_ },
|m: &mut CommandResponse| { &mut m.type_ },
));
fields.push(::protobuf::reflect::rt::v2::make_message_field_accessor::<_, Audience>(
"audience",
|m: &CommandResponse| { &m.audience },
|m: &mut CommandResponse| { &mut m.audience },
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::pipeline::SetPipelineCommand>(
"set_pipeline",
CommandResponse::has_set_pipeline,
CommandResponse::set_pipeline,
CommandResponse::mut_set_pipeline,
CommandResponse::set_set_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::pipeline::DeletePipelineCommand>(
"delete_pipeline",
CommandResponse::has_delete_pipeline,
CommandResponse::delete_pipeline,
CommandResponse::mut_delete_pipeline,
CommandResponse::set_delete_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::pipeline::PausePipelineCommand>(
"pause_pipeline",
CommandResponse::has_pause_pipeline,
CommandResponse::pause_pipeline,
CommandResponse::mut_pause_pipeline,
CommandResponse::set_pause_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_oneof_message_has_get_mut_set_accessor::<_, super::pipeline::UnpausePipelineCommand>(
"unpause_pipeline",
CommandResponse::has_unpause_pipeline,
CommandResponse::unpause_pipeline,
CommandResponse::mut_unpause_pipeline,
CommandResponse::set_unpause_pipeline,
));
fields.push(::protobuf::reflect::rt::v2::make_map_simpler_accessor::<_, _, _>(
"_metadata",
|m: &CommandResponse| { &m._metadata },
|m: &mut CommandResponse| { &mut m._metadata },
));
oneofs.push(command_response::Command::generated_oneof_descriptor_data());
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<CommandResponse>(
"CommandResponse",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for CommandResponse {
const NAME: &'static str = "CommandResponse";
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 {
8 => {
self.type_ = is.read_enum_or_unknown()?;
},
18 => {
::protobuf::rt::read_singular_message_into_field(is, &mut self.audience)?;
},
802 => {
self.command = ::std::option::Option::Some(command_response::Command::SetPipeline(is.read_message()?));
},
810 => {
self.command = ::std::option::Option::Some(command_response::Command::DeletePipeline(is.read_message()?));
},
818 => {
self.command = ::std::option::Option::Some(command_response::Command::PausePipeline(is.read_message()?));
},
826 => {
self.command = ::std::option::Option::Some(command_response::Command::UnpausePipeline(is.read_message()?));
},
8002 => {
let len = is.read_raw_varint32()?;
let old_limit = is.push_limit(len as u64)?;
let mut key = ::std::default::Default::default();
let mut value = ::std::default::Default::default();
while let Some(tag) = is.read_raw_tag_or_eof()? {
match tag {
10 => key = is.read_string()?,
18 => value = is.read_string()?,
_ => ::protobuf::rt::skip_field_for_tag(tag, is)?,
};
}
is.pop_limit(old_limit);
self._metadata.insert(key, value);
},
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.type_ != ::protobuf::EnumOrUnknown::new(CommandType::SNITCH_COMMAND_TYPE_UNSET) {
my_size += ::protobuf::rt::int32_size(1, self.type_.value());
}
if let Some(v) = self.audience.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
}
for (k, v) in &self._metadata {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(entry_size) + entry_size
};
if let ::std::option::Option::Some(ref v) = self.command {
match v {
&command_response::Command::SetPipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command_response::Command::DeletePipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command_response::Command::PausePipeline(ref v) => {
let len = v.compute_size();
my_size += 2 + ::protobuf::rt::compute_raw_varint64_size(len) + len;
},
&command_response::Command::UnpausePipeline(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 self.type_ != ::protobuf::EnumOrUnknown::new(CommandType::SNITCH_COMMAND_TYPE_UNSET) {
os.write_enum(1, ::protobuf::EnumOrUnknown::value(&self.type_))?;
}
if let Some(v) = self.audience.as_ref() {
::protobuf::rt::write_message_field_with_cached_size(2, v, os)?;
}
for (k, v) in &self._metadata {
let mut entry_size = 0;
entry_size += ::protobuf::rt::string_size(1, &k);
entry_size += ::protobuf::rt::string_size(2, &v);
os.write_raw_varint32(8002)?; os.write_raw_varint32(entry_size as u32)?;
os.write_string(1, &k)?;
os.write_string(2, &v)?;
};
if let ::std::option::Option::Some(ref v) = self.command {
match v {
&command_response::Command::SetPipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(100, v, os)?;
},
&command_response::Command::DeletePipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(101, v, os)?;
},
&command_response::Command::PausePipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(102, v, os)?;
},
&command_response::Command::UnpausePipeline(ref v) => {
::protobuf::rt::write_message_field_with_cached_size(103, 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() -> CommandResponse {
CommandResponse::new()
}
fn clear(&mut self) {
self.type_ = ::protobuf::EnumOrUnknown::new(CommandType::SNITCH_COMMAND_TYPE_UNSET);
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._metadata.clear();
self.special_fields.clear();
}
fn default_instance() -> &'static CommandResponse {
static instance: ::protobuf::rt::Lazy<CommandResponse> = ::protobuf::rt::Lazy::new();
instance.get(CommandResponse::new)
}
}
impl ::protobuf::MessageFull for CommandResponse {
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("CommandResponse").unwrap()).clone()
}
}
impl ::std::fmt::Display for CommandResponse {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for CommandResponse {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
pub mod command_response {
#[derive(Clone,PartialEq,Debug)]
#[non_exhaustive]
pub enum Command {
SetPipeline(super::super::pipeline::SetPipelineCommand),
DeletePipeline(super::super::pipeline::DeletePipelineCommand),
PausePipeline(super::super::pipeline::PausePipelineCommand),
UnpausePipeline(super::super::pipeline::UnpausePipelineCommand),
}
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::CommandResponse 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 Audience {
pub service_name: ::std::string::String,
pub component_name: ::std::string::String,
pub operation_type: ::protobuf::EnumOrUnknown<OperationType>,
pub special_fields: ::protobuf::SpecialFields,
}
impl<'a> ::std::default::Default for &'a Audience {
fn default() -> &'a Audience {
<Audience as ::protobuf::Message>::default_instance()
}
}
impl Audience {
pub fn new() -> Audience {
::std::default::Default::default()
}
fn generated_message_descriptor_data() -> ::protobuf::reflect::GeneratedMessageDescriptorData {
let mut fields = ::std::vec::Vec::with_capacity(3);
let mut oneofs = ::std::vec::Vec::with_capacity(0);
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"service_name",
|m: &Audience| { &m.service_name },
|m: &mut Audience| { &mut m.service_name },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"component_name",
|m: &Audience| { &m.component_name },
|m: &mut Audience| { &mut m.component_name },
));
fields.push(::protobuf::reflect::rt::v2::make_simpler_field_accessor::<_, _>(
"operation_type",
|m: &Audience| { &m.operation_type },
|m: &mut Audience| { &mut m.operation_type },
));
::protobuf::reflect::GeneratedMessageDescriptorData::new_2::<Audience>(
"Audience",
fields,
oneofs,
)
}
}
impl ::protobuf::Message for Audience {
const NAME: &'static str = "Audience";
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.service_name = is.read_string()?;
},
18 => {
self.component_name = is.read_string()?;
},
24 => {
self.operation_type = is.read_enum_or_unknown()?;
},
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.service_name.is_empty() {
my_size += ::protobuf::rt::string_size(1, &self.service_name);
}
if !self.component_name.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.component_name);
}
if self.operation_type != ::protobuf::EnumOrUnknown::new(OperationType::OPERATION_TYPE_UNSET) {
my_size += ::protobuf::rt::int32_size(3, self.operation_type.value());
}
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.service_name.is_empty() {
os.write_string(1, &self.service_name)?;
}
if !self.component_name.is_empty() {
os.write_string(2, &self.component_name)?;
}
if self.operation_type != ::protobuf::EnumOrUnknown::new(OperationType::OPERATION_TYPE_UNSET) {
os.write_enum(3, ::protobuf::EnumOrUnknown::value(&self.operation_type))?;
}
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() -> Audience {
Audience::new()
}
fn clear(&mut self) {
self.service_name.clear();
self.component_name.clear();
self.operation_type = ::protobuf::EnumOrUnknown::new(OperationType::OPERATION_TYPE_UNSET);
self.special_fields.clear();
}
fn default_instance() -> &'static Audience {
static instance: Audience = Audience {
service_name: ::std::string::String::new(),
component_name: ::std::string::String::new(),
operation_type: ::protobuf::EnumOrUnknown::from_i32(0),
special_fields: ::protobuf::SpecialFields::new(),
};
&instance
}
}
impl ::protobuf::MessageFull for Audience {
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("Audience").unwrap()).clone()
}
}
impl ::std::fmt::Display for Audience {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Audience {
type RuntimeType = ::protobuf::reflect::rt::RuntimeTypeMessage<Self>;
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum CommandType {
SNITCH_COMMAND_TYPE_UNSET = 0,
SNITCH_COMMAND_TYPE_KEEPALIVE = 1,
SNITCH_COMMAND_TYPE_SET_PIPELINE = 2,
SNITCH_COMMAND_TYPE_DELETE_PIPELINE = 3,
SNITCH_COMMAND_TYPE_PAUSE_PIPELINE = 4,
SNITCH_COMMAND_TYPE_UNPAUSE_PIPELINE = 5,
}
impl ::protobuf::Enum for CommandType {
const NAME: &'static str = "CommandType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<CommandType> {
match value {
0 => ::std::option::Option::Some(CommandType::SNITCH_COMMAND_TYPE_UNSET),
1 => ::std::option::Option::Some(CommandType::SNITCH_COMMAND_TYPE_KEEPALIVE),
2 => ::std::option::Option::Some(CommandType::SNITCH_COMMAND_TYPE_SET_PIPELINE),
3 => ::std::option::Option::Some(CommandType::SNITCH_COMMAND_TYPE_DELETE_PIPELINE),
4 => ::std::option::Option::Some(CommandType::SNITCH_COMMAND_TYPE_PAUSE_PIPELINE),
5 => ::std::option::Option::Some(CommandType::SNITCH_COMMAND_TYPE_UNPAUSE_PIPELINE),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [CommandType] = &[
CommandType::SNITCH_COMMAND_TYPE_UNSET,
CommandType::SNITCH_COMMAND_TYPE_KEEPALIVE,
CommandType::SNITCH_COMMAND_TYPE_SET_PIPELINE,
CommandType::SNITCH_COMMAND_TYPE_DELETE_PIPELINE,
CommandType::SNITCH_COMMAND_TYPE_PAUSE_PIPELINE,
CommandType::SNITCH_COMMAND_TYPE_UNPAUSE_PIPELINE,
];
}
impl ::protobuf::EnumFull for CommandType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("CommandType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for CommandType {
fn default() -> Self {
CommandType::SNITCH_COMMAND_TYPE_UNSET
}
}
impl CommandType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<CommandType>("CommandType")
}
}
#[derive(Clone,Copy,PartialEq,Eq,Debug,Hash)]
pub enum OperationType {
OPERATION_TYPE_UNSET = 0,
OPERATION_TYPE_CONSUMER = 1,
OPERATION_TYPE_PRODUCER = 2,
}
impl ::protobuf::Enum for OperationType {
const NAME: &'static str = "OperationType";
fn value(&self) -> i32 {
*self as i32
}
fn from_i32(value: i32) -> ::std::option::Option<OperationType> {
match value {
0 => ::std::option::Option::Some(OperationType::OPERATION_TYPE_UNSET),
1 => ::std::option::Option::Some(OperationType::OPERATION_TYPE_CONSUMER),
2 => ::std::option::Option::Some(OperationType::OPERATION_TYPE_PRODUCER),
_ => ::std::option::Option::None
}
}
const VALUES: &'static [OperationType] = &[
OperationType::OPERATION_TYPE_UNSET,
OperationType::OPERATION_TYPE_CONSUMER,
OperationType::OPERATION_TYPE_PRODUCER,
];
}
impl ::protobuf::EnumFull for OperationType {
fn enum_descriptor() -> ::protobuf::reflect::EnumDescriptor {
static descriptor: ::protobuf::rt::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::Lazy::new();
descriptor.get(|| file_descriptor().enum_by_package_relative_name("OperationType").unwrap()).clone()
}
fn descriptor(&self) -> ::protobuf::reflect::EnumValueDescriptor {
let index = *self as usize;
Self::enum_descriptor().value_by_index(index)
}
}
impl ::std::default::Default for OperationType {
fn default() -> Self {
OperationType::OPERATION_TYPE_UNSET
}
}
impl OperationType {
fn generated_enum_descriptor_data() -> ::protobuf::reflect::GeneratedEnumDescriptorData {
::protobuf::reflect::GeneratedEnumDescriptorData::new::<OperationType>("OperationType")
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\n\x12internal_api.proto\x12\x06protos\x1a\x0ccommon.proto\x1a\x0epipeli\
ne.proto\"\x88\x01\n\x10HeartbeatRequest\x12,\n\x08audience\x18\x01\x20\
\x01(\x0b2\x10.protos.AudienceR\x08audience\x12F\n\x20last_activity_unix\
_timestamp_utc\x18\x02\x20\x01(\x03R\x1clastActivityUnixTimestampUtc\"\
\xa9\x01\n\rNotifyRequest\x12\x17\n\x07rule_id\x18\x01\x20\x01(\tR\x06ru\
leId\x12\x1b\n\trule_name\x18\x02\x20\x01(\tR\x08ruleName\x12,\n\x08audi\
ence\x18\x03\x20\x01(\x0b2\x10.protos.AudienceR\x08audience\x124\n\x17oc\
curred_at_unix_ts_utc\x18\x04\x20\x01(\x03R\x13occurredAtUnixTsUtc\"t\n\
\x0eMetricsRequest\x12\x17\n\x07rule_id\x18\x01\x20\x01(\tR\x06ruleId\
\x12\x1b\n\trule_name\x18\x02\x20\x01(\tR\x08ruleName\x12,\n\x08audience\
\x18\x03\x20\x01(\x0b2\x10.protos.AudienceR\x08audience\"\xcf\x01\n\x0fR\
egisterRequest\x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bserviceName\
\x12\x17\n\x07dry_run\x18\x02\x20\x01(\x08R\x06dryRun\x12C\n\t_metadata\
\x18\xe8\x07\x20\x03(\x0b2%.protos.RegisterRequest.MetadataEntryR\x08Met\
adata\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\
\x12\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01\"\x94\x04\n\
\x0fCommandResponse\x12'\n\x04type\x18\x01\x20\x01(\x0e2\x13.protos.Comm\
andTypeR\x04type\x12,\n\x08audience\x18\x02\x20\x01(\x0b2\x10.protos.Aud\
ienceR\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\x0edeletePipeline\x12E\n\
\x0epause_pipeline\x18f\x20\x01(\x0b2\x1c.protos.PausePipelineCommandH\0\
R\rpausePipeline\x12K\n\x10unpause_pipeline\x18g\x20\x01(\x0b2\x1e.proto\
s.UnpausePipelineCommandH\0R\x0funpausePipeline\x12C\n\t_metadata\x18\
\xe8\x07\x20\x03(\x0b2%.protos.CommandResponse.MetadataEntryR\x08Metadat\
a\x1a;\n\rMetadataEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\
\x14\n\x05value\x18\x02\x20\x01(\tR\x05value:\x028\x01B\t\n\x07command\"\
\x92\x01\n\x08Audience\x12!\n\x0cservice_name\x18\x01\x20\x01(\tR\x0bser\
viceName\x12%\n\x0ecomponent_name\x18\x02\x20\x01(\tR\rcomponentName\x12\
<\n\x0eoperation_type\x18\x03\x20\x01(\x0e2\x15.protos.OperationTypeR\ro\
perationType*\xf0\x01\n\x0bCommandType\x12\x1d\n\x19SNITCH_COMMAND_TYPE_\
UNSET\x10\0\x12!\n\x1dSNITCH_COMMAND_TYPE_KEEPALIVE\x10\x01\x12$\n\x20SN\
ITCH_COMMAND_TYPE_SET_PIPELINE\x10\x02\x12'\n#SNITCH_COMMAND_TYPE_DELETE\
_PIPELINE\x10\x03\x12&\n\"SNITCH_COMMAND_TYPE_PAUSE_PIPELINE\x10\x04\x12\
(\n$SNITCH_COMMAND_TYPE_UNPAUSE_PIPELINE\x10\x05*c\n\rOperationType\x12\
\x18\n\x14OPERATION_TYPE_UNSET\x10\0\x12\x1b\n\x17OPERATION_TYPE_CONSUME\
R\x10\x01\x12\x1b\n\x17OPERATION_TYPE_PRODUCER\x10\x022\x83\x02\n\x08Int\
ernal\x12>\n\x08Register\x12\x17.protos.RegisterRequest\x1a\x17.protos.C\
ommandResponse0\x01\x12?\n\tHeartbeat\x12\x18.protos.HeartbeatRequest\
\x1a\x18.protos.StandardResponse\x129\n\x06Notify\x12\x15.protos.NotifyR\
equest\x1a\x18.protos.StandardResponse\x12;\n\x07Metrics\x12\x16.protos.\
MetricsRequest\x1a\x18.protos.StandardResponseB4Z2github.com/streamdal/s\
nitch-protos/build/go/protosJ\xff\x1c\n\x06\x12\x04\0\0m\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\n\n\n\x02\x06\0\x12\x04\
\t\0\x1b\x01\n\n\n\x03\x06\0\x01\x12\x03\t\x08\x10\n\xbc\x02\n\x04\x06\0\
\x02\0\x12\x03\x0f\x02A\x1a\xae\x02\x20Initial\x20method\x20that\x20an\
\x20SDK\x20should\x20call\x20to\x20register\x20itself\x20with\x20the\x20\
server.\n\x20The\x20server\x20will\x20use\x20this\x20stream\x20to\x20sen\
d\x20commands\x20to\x20the\x20SDK\x20via\x20the\n\x20`CommandResponse`\
\x20message.\x20Clients\x20should\x20continuously\x20listen\x20for\n\x20\
CommandResponse\x20messages\x20and\x20re-establish\x20registration\x20if\
\x20the\x20stream\x20gets\n\x20disconnected.\n\n\x0c\n\x05\x06\0\x02\0\
\x01\x12\x03\x0f\x06\x0e\n\x0c\n\x05\x06\0\x02\0\x02\x12\x03\x0f\x0f\x1e\
\n\x0c\n\x05\x06\0\x02\0\x06\x12\x03\x0f)/\n\x0c\n\x05\x06\0\x02\0\x03\
\x12\x03\x0f0?\n\x84\x01\n\x04\x06\0\x02\x01\x12\x03\x13\x02=\x1aw\x20SD\
K\x20is\x20responsible\x20for\x20sending\x20heartbeats\x20to\x20the\x20s\
erver\x20to\x20let\x20the\x20server\n\x20know\x20about\x20active\x20cons\
umers\x20and\x20producers.\n\n\x0c\n\x05\x06\0\x02\x01\x01\x12\x03\x13\
\x06\x0f\n\x0c\n\x05\x06\0\x02\x01\x02\x12\x03\x13\x10\x20\n\x0c\n\x05\
\x06\0\x02\x01\x03\x12\x03\x13+;\n\x86\x01\n\x04\x06\0\x02\x02\x12\x03\
\x17\x027\x1ay\x20Use\x20this\x20method\x20when\x20Notify\x20condition\
\x20has\x20been\x20triggered;\x20the\x20server\x20will\n\x20decide\x20on\
\x20what\x20to\x20do\x20about\x20the\x20notification.\n\n\x0c\n\x05\x06\
\0\x02\x02\x01\x12\x03\x17\x06\x0c\n\x0c\n\x05\x06\0\x02\x02\x02\x12\x03\
\x17\r\x1a\n\x0c\n\x05\x06\0\x02\x02\x03\x12\x03\x17%5\n2\n\x04\x06\0\
\x02\x03\x12\x03\x1a\x029\x1a%\x20Send\x20periodic\x20metrics\x20to\x20t\
he\x20server\n\n\x0c\n\x05\x06\0\x02\x03\x01\x12\x03\x1a\x06\r\n\x0c\n\
\x05\x06\0\x02\x03\x02\x12\x03\x1a\x0e\x1c\n\x0c\n\x05\x06\0\x02\x03\x03\
\x12\x03\x1a'7\n\x8a\x01\n\x02\x04\0\x12\x04\x1f\0\"\x01\x1a~\x20Each\
\x20consumer\x20and\x20producer\x20should\x20send\x20periodic\x20heartbe\
ats\x20to\x20the\x20server\n\x20to\x20let\x20the\x20server\x20know\x20th\
at\x20they\x20are\x20still\x20active.\n\n\n\n\x03\x04\0\x01\x12\x03\x1f\
\x08\x18\n\x0b\n\x04\x04\0\x02\0\x12\x03\x20\x02\x18\n\x0c\n\x05\x04\0\
\x02\0\x06\x12\x03\x20\x02\n\n\x0c\n\x05\x04\0\x02\0\x01\x12\x03\x20\x0b\
\x13\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x20\x16\x17\n\x0b\n\x04\x04\0\
\x02\x01\x12\x03!\x02-\n\x0c\n\x05\x04\0\x02\x01\x05\x12\x03!\x02\x07\n\
\x0c\n\x05\x04\0\x02\x01\x01\x12\x03!\x08(\n\x0c\n\x05\x04\0\x02\x01\x03\
\x12\x03!+,\n\n\n\x02\x04\x01\x12\x04$\0)\x01\n\n\n\x03\x04\x01\x01\x12\
\x03$\x08\x15\n\x0b\n\x04\x04\x01\x02\0\x12\x03%\x02\x15\n\x0c\n\x05\x04\
\x01\x02\0\x05\x12\x03%\x02\x08\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03%\t\
\x10\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03%\x13\x14\n\x0b\n\x04\x04\x01\
\x02\x01\x12\x03&\x02\x17\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03&\x02\
\x08\n\x0c\n\x05\x04\x01\x02\x01\x01\x12\x03&\t\x12\n\x0c\n\x05\x04\x01\
\x02\x01\x03\x12\x03&\x15\x16\n\x0b\n\x04\x04\x01\x02\x02\x12\x03'\x02\
\x18\n\x0c\n\x05\x04\x01\x02\x02\x06\x12\x03'\x02\n\n\x0c\n\x05\x04\x01\
\x02\x02\x01\x12\x03'\x0b\x13\n\x0c\n\x05\x04\x01\x02\x02\x03\x12\x03'\
\x16\x17\n\x0b\n\x04\x04\x01\x02\x03\x12\x03(\x02$\n\x0c\n\x05\x04\x01\
\x02\x03\x05\x12\x03(\x02\x07\n\x0c\n\x05\x04\x01\x02\x03\x01\x12\x03(\
\x08\x1f\n\x0c\n\x05\x04\x01\x02\x03\x03\x12\x03(\"#\n\n\n\x02\x04\x02\
\x12\x04+\0/\x01\n\n\n\x03\x04\x02\x01\x12\x03+\x08\x16\n\x0b\n\x04\x04\
\x02\x02\0\x12\x03,\x02\x15\n\x0c\n\x05\x04\x02\x02\0\x05\x12\x03,\x02\
\x08\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03,\t\x10\n\x0c\n\x05\x04\x02\
\x02\0\x03\x12\x03,\x13\x14\n\x0b\n\x04\x04\x02\x02\x01\x12\x03-\x02\x17\
\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03-\x02\x08\n\x0c\n\x05\x04\x02\
\x02\x01\x01\x12\x03-\t\x12\n\x0c\n\x05\x04\x02\x02\x01\x03\x12\x03-\x15\
\x16\n\x0b\n\x04\x04\x02\x02\x02\x12\x03.\x02\x18\n\x0c\n\x05\x04\x02\
\x02\x02\x06\x12\x03.\x02\n\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03.\x0b\
\x13\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03.\x16\x17\n\n\n\x02\x04\x03\
\x12\x041\0;\x01\n\n\n\x03\x04\x03\x01\x12\x031\x08\x17\n\x0b\n\x04\x04\
\x03\x02\0\x12\x032\x02\x1a\n\x0c\n\x05\x04\x03\x02\0\x05\x12\x032\x02\
\x08\n\x0c\n\x05\x04\x03\x02\0\x01\x12\x032\t\x15\n\x0c\n\x05\x04\x03\
\x02\0\x03\x12\x032\x18\x19\n\xcd\x01\n\x04\x04\x03\x02\x01\x12\x037\x02\
\x13\x1a\xbf\x01\x20If\x20set,\x20we\x20know\x20that\x20any\x20pipelines\
\x20or\x20steps\x20executed\x20in\x20this\x20SDK\x20will\x20NOT\n\x20mod\
ify\x20the\x20input/output\x20data.\x20As\x20in,\x20the\x20SDK\x20will\
\x20log\x20what\x20it\x20_would_\x20do\n\x20and\x20always\x20return\x20t\
he\x20original\x20data\x20set.\n\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03\
7\x02\x06\n\x0c\n\x05\x04\x03\x02\x01\x01\x12\x037\x07\x0e\n\x0c\n\x05\
\x04\x03\x02\x01\x03\x12\x037\x11\x12\n?\n\x04\x04\x03\x02\x02\x12\x03:\
\x02(\x1a2\x20snitch-server\x20uses\x20this\x20under\x20the\x20hood\x20f\
or\x20debug\n\n\x0c\n\x05\x04\x03\x02\x02\x06\x12\x03:\x02\x16\n\x0c\n\
\x05\x04\x03\x02\x02\x01\x12\x03:\x17\x20\n\x0c\n\x05\x04\x03\x02\x02\
\x03\x12\x03:#'\n\x9e\x01\n\x02\x04\x04\x12\x04?\0N\x01\x1a\x91\x01\x20T\
he\x20primary\x20method\x20to\x20send\x20commands\x20to\x20the\x20SDK;\
\x20server\x20will\x20send\x20zero\x20or\x20more\n\x20RegisterResponse's\
\x20with\x20SetPipelineRequest\x20on\x20SDK\x20instantiation.\n\n\n\n\
\x03\x04\x04\x01\x12\x03?\x08\x17\n=\n\x04\x04\x04\x02\0\x12\x03A\x02\
\x17\x1a0\x20Use\x20this\x20to\x20determine\x20what\x20to\x20expect\x20i\
n\x20one_of\n\n\x0c\n\x05\x04\x04\x02\0\x06\x12\x03A\x02\r\n\x0c\n\x05\
\x04\x04\x02\0\x01\x12\x03A\x0e\x12\n\x0c\n\x05\x04\x04\x02\0\x03\x12\
\x03A\x15\x16\n0\n\x04\x04\x04\x02\x01\x12\x03D\x02\x18\x1a#\x20Who\x20i\
s\x20this\x20command\x20intended\x20for?\n\n\x0c\n\x05\x04\x04\x02\x01\
\x06\x12\x03D\x02\n\n\x0c\n\x05\x04\x04\x02\x01\x01\x12\x03D\x0b\x13\n\
\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03D\x16\x17\n\x0c\n\x04\x04\x04\x08\
\0\x12\x04F\x02K\x03\n\x0c\n\x05\x04\x04\x08\0\x01\x12\x03F\x08\x0f\n\
\x0b\n\x04\x04\x04\x02\x02\x12\x03G\x041\n\x0c\n\x05\x04\x04\x02\x02\x06\
\x12\x03G\x04\x1d\n\x0c\n\x05\x04\x04\x02\x02\x01\x12\x03G\x1e*\n\x0c\n\
\x05\x04\x04\x02\x02\x03\x12\x03G-0\n(\n\x04\x04\x04\x02\x03\x12\x03H\
\x047\"\x1b\x20Hmm,\x20should\x20this\x20be\x20here?\n\n\x0c\n\x05\x04\
\x04\x02\x03\x06\x12\x03H\x04\x20\n\x0c\n\x05\x04\x04\x02\x03\x01\x12\
\x03H!0\n\x0c\n\x05\x04\x04\x02\x03\x03\x12\x03H36\n\x0b\n\x04\x04\x04\
\x02\x04\x12\x03I\x045\n\x0c\n\x05\x04\x04\x02\x04\x06\x12\x03I\x04\x1f\
\n\x0c\n\x05\x04\x04\x02\x04\x01\x12\x03I\x20.\n\x0c\n\x05\x04\x04\x02\
\x04\x03\x12\x03I14\n\x0b\n\x04\x04\x04\x02\x05\x12\x03J\x049\n\x0c\n\
\x05\x04\x04\x02\x05\x06\x12\x03J\x04!\n\x0c\n\x05\x04\x04\x02\x05\x01\
\x12\x03J\"2\n\x0c\n\x05\x04\x04\x02\x05\x03\x12\x03J58\n\x0b\n\x04\x04\
\x04\x02\x06\x12\x03M\x02(\n\x0c\n\x05\x04\x04\x02\x06\x06\x12\x03M\x02\
\x16\n\x0c\n\x05\x04\x04\x02\x06\x01\x12\x03M\x17\x20\n\x0c\n\x05\x04\
\x04\x02\x06\x03\x12\x03M#'\n;\n\x02\x05\0\x12\x04Q\0[\x01\x1a/\x20Types\
\x20of\x20commands\x20that\x20can\x20be\x20sent\x20to\x20the\x20SDK\n\n\
\n\n\x03\x05\0\x01\x12\x03Q\x05\x10\n\x0b\n\x04\x05\0\x02\0\x12\x03R\x02\
\x20\n\x0c\n\x05\x05\0\x02\0\x01\x12\x03R\x02\x1b\n\x0c\n\x05\x05\0\x02\
\0\x02\x12\x03R\x1e\x1f\n\x82\x01\n\x04\x05\0\x02\x01\x12\x03S\x02$\"u\
\x20Use\x20this\x20to\x20keep\x20connection\x20alive;\x20SDK\x20doesn't\
\x20need\x20to\x20do\x20anything\x20with\x20this\x20-\x20it's\x20there\
\x20just\x20to\x20keep\x20things\x20alive\n\n\x0c\n\x05\x05\0\x02\x01\
\x01\x12\x03S\x02\x1f\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03S\"#\n\x0b\n\
\x04\x05\0\x02\x02\x12\x03T\x02'\n\x0c\n\x05\x05\0\x02\x02\x01\x12\x03T\
\x02\"\n\x0c\n\x05\x05\0\x02\x02\x02\x12\x03T%&\n\x0b\n\x04\x05\0\x02\
\x03\x12\x03U\x02*\n\x0c\n\x05\x05\0\x02\x03\x01\x12\x03U\x02%\n\x0c\n\
\x05\x05\0\x02\x03\x02\x12\x03U()\n\x0b\n\x04\x05\0\x02\x04\x12\x03V\x02\
)\n\x0c\n\x05\x05\0\x02\x04\x01\x12\x03V\x02$\n\x0c\n\x05\x05\0\x02\x04\
\x02\x12\x03V'(\n\x0b\n\x04\x05\0\x02\x05\x12\x03W\x02+\n\x0c\n\x05\x05\
\0\x02\x05\x01\x12\x03W\x02&\n\x0c\n\x05\x05\0\x02\x05\x02\x12\x03W)*\n\
\n\n\x02\x05\x01\x12\x04]\0a\x01\n\n\n\x03\x05\x01\x01\x12\x03]\x05\x12\
\n\x0b\n\x04\x05\x01\x02\0\x12\x03^\x02\x1b\n\x0c\n\x05\x05\x01\x02\0\
\x01\x12\x03^\x02\x16\n\x0c\n\x05\x05\x01\x02\0\x02\x12\x03^\x19\x1a\n\
\x0b\n\x04\x05\x01\x02\x01\x12\x03_\x02\x1e\n\x0c\n\x05\x05\x01\x02\x01\
\x01\x12\x03_\x02\x19\n\x0c\n\x05\x05\x01\x02\x01\x02\x12\x03_\x1c\x1d\n\
\x0b\n\x04\x05\x01\x02\x02\x12\x03`\x02\x1e\n\x0c\n\x05\x05\x01\x02\x02\
\x01\x12\x03`\x02\x19\n\x0c\n\x05\x05\x01\x02\x02\x02\x12\x03`\x1c\x1d\n\
D\n\x02\x04\x05\x12\x04d\0m\x01\x1a8\x20Used\x20to\x20indicate\x20who\
\x20a\x20request/command\x20is\x20intended\x20for\n\n\n\n\x03\x04\x05\
\x01\x12\x03d\x08\x10\n\"\n\x04\x04\x05\x02\0\x12\x03f\x02\x1a\x1a\x15\
\x20Name\x20of\x20the\x20service\n\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03\
f\x02\x08\n\x0c\n\x05\x04\x05\x02\0\x01\x12\x03f\t\x15\n\x0c\n\x05\x04\
\x05\x02\0\x03\x12\x03f\x18\x19\nX\n\x04\x04\x05\x02\x01\x12\x03i\x02\
\x1c\x1aK\x20Name\x20of\x20the\x20component\x20the\x20SDK\x20is\x20inter\
acting\x20with\x20(ie.\x20kafka-$topic-name)\n\n\x0c\n\x05\x04\x05\x02\
\x01\x05\x12\x03i\x02\x08\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03i\t\x17\
\n\x0c\n\x05\x04\x05\x02\x01\x03\x12\x03i\x1a\x1b\n#\n\x04\x04\x05\x02\
\x02\x12\x03l\x02#\x1a\x16\x20Consumer\x20or\x20Producer\n\n\x0c\n\x05\
\x04\x05\x02\x02\x06\x12\x03l\x02\x0f\n\x0c\n\x05\x04\x05\x02\x02\x01\
\x12\x03l\x10\x1e\n\x0c\n\x05\x04\x05\x02\x02\x03\x12\x03l!\"b\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(HeartbeatRequest::generated_message_descriptor_data());
messages.push(NotifyRequest::generated_message_descriptor_data());
messages.push(MetricsRequest::generated_message_descriptor_data());
messages.push(RegisterRequest::generated_message_descriptor_data());
messages.push(CommandResponse::generated_message_descriptor_data());
messages.push(Audience::generated_message_descriptor_data());
let mut enums = ::std::vec::Vec::with_capacity(2);
enums.push(CommandType::generated_enum_descriptor_data());
enums.push(OperationType::generated_enum_descriptor_data());
::protobuf::reflect::GeneratedFileDescriptor::new_generated(
file_descriptor_proto(),
deps,
messages,
enums,
)
});
::protobuf::reflect::FileDescriptor::new_generated_2(generated_file_descriptor)
})
}