observable.rs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. // This file is generated by rust-protobuf 2.22.1. Do not edit
  2. // @generated
  3. // https://github.com/rust-lang/rust-clippy/issues/702
  4. #![allow(unknown_lints)]
  5. #![allow(clippy::all)]
  6. #![allow(unused_attributes)]
  7. #![cfg_attr(rustfmt, rustfmt::skip)]
  8. #![allow(box_pointers)]
  9. #![allow(dead_code)]
  10. #![allow(missing_docs)]
  11. #![allow(non_camel_case_types)]
  12. #![allow(non_snake_case)]
  13. #![allow(non_upper_case_globals)]
  14. #![allow(trivial_casts)]
  15. #![allow(unused_imports)]
  16. #![allow(unused_results)]
  17. //! Generated file from `observable.proto`
  18. /// Generated files are compatible only with the same version
  19. /// of protobuf runtime.
  20. // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_22_1;
  21. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  22. pub enum WorkspaceObservableType {
  23. Unknown = 0,
  24. WorkspaceUpdated = 10,
  25. AppDescUpdated = 20,
  26. AppViewsUpdated = 21,
  27. ViewUpdated = 30,
  28. }
  29. impl ::protobuf::ProtobufEnum for WorkspaceObservableType {
  30. fn value(&self) -> i32 {
  31. *self as i32
  32. }
  33. fn from_i32(value: i32) -> ::std::option::Option<WorkspaceObservableType> {
  34. match value {
  35. 0 => ::std::option::Option::Some(WorkspaceObservableType::Unknown),
  36. 10 => ::std::option::Option::Some(WorkspaceObservableType::WorkspaceUpdated),
  37. 20 => ::std::option::Option::Some(WorkspaceObservableType::AppDescUpdated),
  38. 21 => ::std::option::Option::Some(WorkspaceObservableType::AppViewsUpdated),
  39. 30 => ::std::option::Option::Some(WorkspaceObservableType::ViewUpdated),
  40. _ => ::std::option::Option::None
  41. }
  42. }
  43. fn values() -> &'static [Self] {
  44. static values: &'static [WorkspaceObservableType] = &[
  45. WorkspaceObservableType::Unknown,
  46. WorkspaceObservableType::WorkspaceUpdated,
  47. WorkspaceObservableType::AppDescUpdated,
  48. WorkspaceObservableType::AppViewsUpdated,
  49. WorkspaceObservableType::ViewUpdated,
  50. ];
  51. values
  52. }
  53. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  54. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
  55. descriptor.get(|| {
  56. ::protobuf::reflect::EnumDescriptor::new_pb_name::<WorkspaceObservableType>("WorkspaceObservableType", file_descriptor_proto())
  57. })
  58. }
  59. }
  60. impl ::std::marker::Copy for WorkspaceObservableType {
  61. }
  62. impl ::std::default::Default for WorkspaceObservableType {
  63. fn default() -> Self {
  64. WorkspaceObservableType::Unknown
  65. }
  66. }
  67. impl ::protobuf::reflect::ProtobufValue for WorkspaceObservableType {
  68. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  69. ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
  70. }
  71. }
  72. static file_descriptor_proto_data: &'static [u8] = b"\
  73. \n\x10observable.proto*v\n\x17WorkspaceObservableType\x12\x0b\n\x07Unkno\
  74. wn\x10\0\x12\x14\n\x10WorkspaceUpdated\x10\n\x12\x12\n\x0eAppDescUpdated\
  75. \x10\x14\x12\x13\n\x0fAppViewsUpdated\x10\x15\x12\x0f\n\x0bViewUpdated\
  76. \x10\x1eJ\xf7\x01\n\x06\x12\x04\0\0\x08\x01\n\x08\n\x01\x0c\x12\x03\0\0\
  77. \x12\n\n\n\x02\x05\0\x12\x04\x02\0\x08\x01\n\n\n\x03\x05\0\x01\x12\x03\
  78. \x02\x05\x1c\n\x0b\n\x04\x05\0\x02\0\x12\x03\x03\x04\x10\n\x0c\n\x05\x05\
  79. \0\x02\0\x01\x12\x03\x03\x04\x0b\n\x0c\n\x05\x05\0\x02\0\x02\x12\x03\x03\
  80. \x0e\x0f\n\x0b\n\x04\x05\0\x02\x01\x12\x03\x04\x04\x1a\n\x0c\n\x05\x05\0\
  81. \x02\x01\x01\x12\x03\x04\x04\x14\n\x0c\n\x05\x05\0\x02\x01\x02\x12\x03\
  82. \x04\x17\x19\n\x0b\n\x04\x05\0\x02\x02\x12\x03\x05\x04\x18\n\x0c\n\x05\
  83. \x05\0\x02\x02\x01\x12\x03\x05\x04\x12\n\x0c\n\x05\x05\0\x02\x02\x02\x12\
  84. \x03\x05\x15\x17\n\x0b\n\x04\x05\0\x02\x03\x12\x03\x06\x04\x19\n\x0c\n\
  85. \x05\x05\0\x02\x03\x01\x12\x03\x06\x04\x13\n\x0c\n\x05\x05\0\x02\x03\x02\
  86. \x12\x03\x06\x16\x18\n\x0b\n\x04\x05\0\x02\x04\x12\x03\x07\x04\x15\n\x0c\
  87. \n\x05\x05\0\x02\x04\x01\x12\x03\x07\x04\x0f\n\x0c\n\x05\x05\0\x02\x04\
  88. \x02\x12\x03\x07\x12\x14b\x06proto3\
  89. ";
  90. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  91. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  92. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  93. }
  94. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  95. file_descriptor_proto_lazy.get(|| {
  96. parse_descriptor_proto()
  97. })
  98. }