#![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_imports)]
#![allow(unused_results)]
#[derive(PartialEq,Clone,Default)]
pub struct ForwardRequest {
pub envelope: ::protobuf::SingularPtrField<Envelope>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a ForwardRequest {
fn default() -> &'a ForwardRequest {
<ForwardRequest as ::protobuf::Message>::default_instance()
}
}
impl ForwardRequest {
pub fn new() -> ForwardRequest {
::std::default::Default::default()
}
pub fn get_envelope(&self) -> &Envelope {
self.envelope.as_ref().unwrap_or_else(|| <Envelope as ::protobuf::Message>::default_instance())
}
pub fn clear_envelope(&mut self) {
self.envelope.clear();
}
pub fn has_envelope(&self) -> bool {
self.envelope.is_some()
}
pub fn set_envelope(&mut self, v: Envelope) {
self.envelope = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_envelope(&mut self) -> &mut Envelope {
if self.envelope.is_none() {
self.envelope.set_default();
}
self.envelope.as_mut().unwrap()
}
pub fn take_envelope(&mut self) -> Envelope {
self.envelope.take().unwrap_or_else(|| Envelope::new())
}
}
impl ::protobuf::Message for ForwardRequest {
fn is_initialized(&self) -> bool {
for v in &self.envelope {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.envelope)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.envelope.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.envelope.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> ForwardRequest {
ForwardRequest::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<Envelope>>(
"envelope",
|m: &ForwardRequest| { &m.envelope },
|m: &mut ForwardRequest| { &mut m.envelope },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<ForwardRequest>(
"ForwardRequest",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static ForwardRequest {
static instance: ::protobuf::rt::LazyV2<ForwardRequest> = ::protobuf::rt::LazyV2::INIT;
instance.get(ForwardRequest::new)
}
}
impl ::protobuf::Clear for ForwardRequest {
fn clear(&mut self) {
self.envelope.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for ForwardRequest {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for ForwardRequest {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
#[derive(PartialEq,Clone,Default)]
pub struct Envelope {
pub timestamp: ::protobuf::SingularPtrField<::protobuf::well_known_types::Timestamp>,
pub namespace: ::std::string::String,
pub topic: ::std::string::String,
pub event: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>,
pub unknown_fields: ::protobuf::UnknownFields,
pub cached_size: ::protobuf::CachedSize,
}
impl<'a> ::std::default::Default for &'a Envelope {
fn default() -> &'a Envelope {
<Envelope as ::protobuf::Message>::default_instance()
}
}
impl Envelope {
pub fn new() -> Envelope {
::std::default::Default::default()
}
pub fn get_timestamp(&self) -> &::protobuf::well_known_types::Timestamp {
self.timestamp.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Timestamp as ::protobuf::Message>::default_instance())
}
pub fn clear_timestamp(&mut self) {
self.timestamp.clear();
}
pub fn has_timestamp(&self) -> bool {
self.timestamp.is_some()
}
pub fn set_timestamp(&mut self, v: ::protobuf::well_known_types::Timestamp) {
self.timestamp = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_timestamp(&mut self) -> &mut ::protobuf::well_known_types::Timestamp {
if self.timestamp.is_none() {
self.timestamp.set_default();
}
self.timestamp.as_mut().unwrap()
}
pub fn take_timestamp(&mut self) -> ::protobuf::well_known_types::Timestamp {
self.timestamp.take().unwrap_or_else(|| ::protobuf::well_known_types::Timestamp::new())
}
pub fn get_namespace(&self) -> &str {
&self.namespace
}
pub fn clear_namespace(&mut self) {
self.namespace.clear();
}
pub fn set_namespace(&mut self, v: ::std::string::String) {
self.namespace = v;
}
pub fn mut_namespace(&mut self) -> &mut ::std::string::String {
&mut self.namespace
}
pub fn take_namespace(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.namespace, ::std::string::String::new())
}
pub fn get_topic(&self) -> &str {
&self.topic
}
pub fn clear_topic(&mut self) {
self.topic.clear();
}
pub fn set_topic(&mut self, v: ::std::string::String) {
self.topic = v;
}
pub fn mut_topic(&mut self) -> &mut ::std::string::String {
&mut self.topic
}
pub fn take_topic(&mut self) -> ::std::string::String {
::std::mem::replace(&mut self.topic, ::std::string::String::new())
}
pub fn get_event(&self) -> &::protobuf::well_known_types::Any {
self.event.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance())
}
pub fn clear_event(&mut self) {
self.event.clear();
}
pub fn has_event(&self) -> bool {
self.event.is_some()
}
pub fn set_event(&mut self, v: ::protobuf::well_known_types::Any) {
self.event = ::protobuf::SingularPtrField::some(v);
}
pub fn mut_event(&mut self) -> &mut ::protobuf::well_known_types::Any {
if self.event.is_none() {
self.event.set_default();
}
self.event.as_mut().unwrap()
}
pub fn take_event(&mut self) -> ::protobuf::well_known_types::Any {
self.event.take().unwrap_or_else(|| ::protobuf::well_known_types::Any::new())
}
}
impl ::protobuf::Message for Envelope {
fn is_initialized(&self) -> bool {
for v in &self.timestamp {
if !v.is_initialized() {
return false;
}
};
for v in &self.event {
if !v.is_initialized() {
return false;
}
};
true
}
fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
while !is.eof()? {
let (field_number, wire_type) = is.read_tag_unpack()?;
match field_number {
1 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.timestamp)?;
},
2 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.namespace)?;
},
3 => {
::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.topic)?;
},
4 => {
::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.event)?;
},
_ => {
::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
},
};
}
::std::result::Result::Ok(())
}
#[allow(unused_variables)]
fn compute_size(&self) -> u32 {
let mut my_size = 0;
if let Some(ref v) = self.timestamp.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
if !self.namespace.is_empty() {
my_size += ::protobuf::rt::string_size(2, &self.namespace);
}
if !self.topic.is_empty() {
my_size += ::protobuf::rt::string_size(3, &self.topic);
}
if let Some(ref v) = self.event.as_ref() {
let len = v.compute_size();
my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
}
my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
self.cached_size.set(my_size);
my_size
}
fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
if let Some(ref v) = self.timestamp.as_ref() {
os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
if !self.namespace.is_empty() {
os.write_string(2, &self.namespace)?;
}
if !self.topic.is_empty() {
os.write_string(3, &self.topic)?;
}
if let Some(ref v) = self.event.as_ref() {
os.write_tag(4, ::protobuf::wire_format::WireTypeLengthDelimited)?;
os.write_raw_varint32(v.get_cached_size())?;
v.write_to_with_cached_sizes(os)?;
}
os.write_unknown_fields(self.get_unknown_fields())?;
::std::result::Result::Ok(())
}
fn get_cached_size(&self) -> u32 {
self.cached_size.get()
}
fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
&self.unknown_fields
}
fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
&mut self.unknown_fields
}
fn as_any(&self) -> &dyn (::std::any::Any) {
self as &dyn (::std::any::Any)
}
fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
self as &mut dyn (::std::any::Any)
}
fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
self
}
fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
Self::descriptor_static()
}
fn new() -> Envelope {
Envelope::new()
}
fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
descriptor.get(|| {
let mut fields = ::std::vec::Vec::new();
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Timestamp>>(
"timestamp",
|m: &Envelope| { &m.timestamp },
|m: &mut Envelope| { &mut m.timestamp },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"namespace",
|m: &Envelope| { &m.namespace },
|m: &mut Envelope| { &mut m.namespace },
));
fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
"topic",
|m: &Envelope| { &m.topic },
|m: &mut Envelope| { &mut m.topic },
));
fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>(
"event",
|m: &Envelope| { &m.event },
|m: &mut Envelope| { &mut m.event },
));
::protobuf::reflect::MessageDescriptor::new_pb_name::<Envelope>(
"Envelope",
fields,
file_descriptor_proto()
)
})
}
fn default_instance() -> &'static Envelope {
static instance: ::protobuf::rt::LazyV2<Envelope> = ::protobuf::rt::LazyV2::INIT;
instance.get(Envelope::new)
}
}
impl ::protobuf::Clear for Envelope {
fn clear(&mut self) {
self.timestamp.clear();
self.namespace.clear();
self.topic.clear();
self.event.clear();
self.unknown_fields.clear();
}
}
impl ::std::fmt::Debug for Envelope {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
::protobuf::text_format::fmt(self, f)
}
}
impl ::protobuf::reflect::ProtobufValue for Envelope {
fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
::protobuf::reflect::ReflectValueRef::Message(self)
}
}
static file_descriptor_proto_data: &'static [u8] = b"\
\nJgithub.com/containerd/containerd/api/services/ttrpc/events/v1/events.\
proto\x12#containerd.services.events.ttrpc.v1\x1a@github.com/containerd/\
containerd/protobuf/plugin/fieldpath.proto\x1a\x14gogoproto/gogo.proto\
\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\
\x1fgoogle/protobuf/timestamp.protoX\0X\x01\"_\n\x0eForwardRequest\x12K\
\n\x08envelope\x18\x01\x20\x01(\x0b2-.containerd.services.events.ttrpc.v\
1.EnvelopeR\x08envelopeB\0:\0\"\xba\x01\n\x08Envelope\x12B\n\ttimestamp\
\x18\x01\x20\x01(\x0b2\x1a.google.protobuf.TimestampR\ttimestampB\x08\
\x90\xdf\x1f\x01\xc8\xde\x1f\0\x12\x1e\n\tnamespace\x18\x02\x20\x01(\tR\
\tnamespaceB\0\x12\x16\n\x05topic\x18\x03\x20\x01(\tR\x05topicB\0\x12,\n\
\x05event\x18\x04\x20\x01(\x0b2\x14.google.protobuf.AnyR\x05eventB\0:\
\x04\x80\xb9\x1f\x01B\0b\x06proto3\
";
static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
}
pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
file_descriptor_proto_lazy.get(|| {
parse_descriptor_proto()
})
}