123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- // This file is generated by rust-protobuf 2.25.2. Do not edit
- // @generated
- // https://github.com/rust-lang/rust-clippy/issues/702
- #![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)]
- //! Generated file from `dart_notification.proto`
- /// Generated files are compatible only with the same version
- /// of protobuf runtime.
- // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_2;
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum UserNotification {
- Unknown = 0,
- UserAuthChanged = 1,
- UserProfileUpdated = 2,
- UserUnauthorized = 3,
- UserWsConnectStateChanged = 4,
- }
- impl ::protobuf::ProtobufEnum for UserNotification {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<UserNotification> {
- match value {
- 0 => ::std::option::Option::Some(UserNotification::Unknown),
- 1 => ::std::option::Option::Some(UserNotification::UserAuthChanged),
- 2 => ::std::option::Option::Some(UserNotification::UserProfileUpdated),
- 3 => ::std::option::Option::Some(UserNotification::UserUnauthorized),
- 4 => ::std::option::Option::Some(UserNotification::UserWsConnectStateChanged),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [UserNotification] = &[
- UserNotification::Unknown,
- UserNotification::UserAuthChanged,
- UserNotification::UserProfileUpdated,
- UserNotification::UserUnauthorized,
- UserNotification::UserWsConnectStateChanged,
- ];
- values
- }
- fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
- static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new_pb_name::<UserNotification>("UserNotification", file_descriptor_proto())
- })
- }
- }
- impl ::std::marker::Copy for UserNotification {
- }
- impl ::std::default::Default for UserNotification {
- fn default() -> Self {
- UserNotification::Unknown
- }
- }
- impl ::protobuf::reflect::ProtobufValue for UserNotification {
- fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
- ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
- }
- }
- static file_descriptor_proto_data: &'static [u8] = b"\
- \n\x17dart_notification.proto*\x81\x01\n\x10UserNotification\x12\x0b\n\
- \x07Unknown\x10\0\x12\x13\n\x0fUserAuthChanged\x10\x01\x12\x16\n\x12User\
- ProfileUpdated\x10\x02\x12\x14\n\x10UserUnauthorized\x10\x03\x12\x1d\n\
- \x19UserWsConnectStateChanged\x10\x04b\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()
- })
- }
|