event_map.rs 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. // This file is generated by rust-protobuf 2.25.2. 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 `event_map.proto`
  18. /// Generated files are compatible only with the same version
  19. /// of protobuf runtime.
  20. // const _PROTOBUF_VERSION_CHECK: () = ::protobuf::VERSION_2_25_2;
  21. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  22. pub enum GridEvent {
  23. GetGridData = 0,
  24. GetGridBlocks = 1,
  25. GetFields = 10,
  26. UpdateField = 11,
  27. InsertField = 12,
  28. DeleteField = 13,
  29. SwitchToField = 14,
  30. DuplicateField = 15,
  31. GetEditFieldContext = 16,
  32. MoveItem = 17,
  33. NewSelectOption = 30,
  34. GetSelectOptionContext = 31,
  35. UpdateSelectOption = 32,
  36. CreateRow = 50,
  37. GetRow = 51,
  38. DeleteRow = 52,
  39. DuplicateRow = 53,
  40. GetCell = 70,
  41. UpdateCell = 71,
  42. UpdateCellSelectOption = 72,
  43. }
  44. impl ::protobuf::ProtobufEnum for GridEvent {
  45. fn value(&self) -> i32 {
  46. *self as i32
  47. }
  48. fn from_i32(value: i32) -> ::std::option::Option<GridEvent> {
  49. match value {
  50. 0 => ::std::option::Option::Some(GridEvent::GetGridData),
  51. 1 => ::std::option::Option::Some(GridEvent::GetGridBlocks),
  52. 10 => ::std::option::Option::Some(GridEvent::GetFields),
  53. 11 => ::std::option::Option::Some(GridEvent::UpdateField),
  54. 12 => ::std::option::Option::Some(GridEvent::InsertField),
  55. 13 => ::std::option::Option::Some(GridEvent::DeleteField),
  56. 14 => ::std::option::Option::Some(GridEvent::SwitchToField),
  57. 15 => ::std::option::Option::Some(GridEvent::DuplicateField),
  58. 16 => ::std::option::Option::Some(GridEvent::GetEditFieldContext),
  59. 17 => ::std::option::Option::Some(GridEvent::MoveItem),
  60. 30 => ::std::option::Option::Some(GridEvent::NewSelectOption),
  61. 31 => ::std::option::Option::Some(GridEvent::GetSelectOptionContext),
  62. 32 => ::std::option::Option::Some(GridEvent::UpdateSelectOption),
  63. 50 => ::std::option::Option::Some(GridEvent::CreateRow),
  64. 51 => ::std::option::Option::Some(GridEvent::GetRow),
  65. 52 => ::std::option::Option::Some(GridEvent::DeleteRow),
  66. 53 => ::std::option::Option::Some(GridEvent::DuplicateRow),
  67. 70 => ::std::option::Option::Some(GridEvent::GetCell),
  68. 71 => ::std::option::Option::Some(GridEvent::UpdateCell),
  69. 72 => ::std::option::Option::Some(GridEvent::UpdateCellSelectOption),
  70. _ => ::std::option::Option::None
  71. }
  72. }
  73. fn values() -> &'static [Self] {
  74. static values: &'static [GridEvent] = &[
  75. GridEvent::GetGridData,
  76. GridEvent::GetGridBlocks,
  77. GridEvent::GetFields,
  78. GridEvent::UpdateField,
  79. GridEvent::InsertField,
  80. GridEvent::DeleteField,
  81. GridEvent::SwitchToField,
  82. GridEvent::DuplicateField,
  83. GridEvent::GetEditFieldContext,
  84. GridEvent::MoveItem,
  85. GridEvent::NewSelectOption,
  86. GridEvent::GetSelectOptionContext,
  87. GridEvent::UpdateSelectOption,
  88. GridEvent::CreateRow,
  89. GridEvent::GetRow,
  90. GridEvent::DeleteRow,
  91. GridEvent::DuplicateRow,
  92. GridEvent::GetCell,
  93. GridEvent::UpdateCell,
  94. GridEvent::UpdateCellSelectOption,
  95. ];
  96. values
  97. }
  98. fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
  99. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
  100. descriptor.get(|| {
  101. ::protobuf::reflect::EnumDescriptor::new_pb_name::<GridEvent>("GridEvent", file_descriptor_proto())
  102. })
  103. }
  104. }
  105. impl ::std::marker::Copy for GridEvent {
  106. }
  107. impl ::std::default::Default for GridEvent {
  108. fn default() -> Self {
  109. GridEvent::GetGridData
  110. }
  111. }
  112. impl ::protobuf::reflect::ProtobufValue for GridEvent {
  113. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  114. ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
  115. }
  116. }
  117. static file_descriptor_proto_data: &'static [u8] = b"\
  118. \n\x0fevent_map.proto*\xfd\x02\n\tGridEvent\x12\x0f\n\x0bGetGridData\x10\
  119. \0\x12\x11\n\rGetGridBlocks\x10\x01\x12\r\n\tGetFields\x10\n\x12\x0f\n\
  120. \x0bUpdateField\x10\x0b\x12\x0f\n\x0bInsertField\x10\x0c\x12\x0f\n\x0bDe\
  121. leteField\x10\r\x12\x11\n\rSwitchToField\x10\x0e\x12\x12\n\x0eDuplicateF\
  122. ield\x10\x0f\x12\x17\n\x13GetEditFieldContext\x10\x10\x12\x0c\n\x08MoveI\
  123. tem\x10\x11\x12\x13\n\x0fNewSelectOption\x10\x1e\x12\x1a\n\x16GetSelectO\
  124. ptionContext\x10\x1f\x12\x16\n\x12UpdateSelectOption\x10\x20\x12\r\n\tCr\
  125. eateRow\x102\x12\n\n\x06GetRow\x103\x12\r\n\tDeleteRow\x104\x12\x10\n\
  126. \x0cDuplicateRow\x105\x12\x0b\n\x07GetCell\x10F\x12\x0e\n\nUpdateCell\
  127. \x10G\x12\x1a\n\x16UpdateCellSelectOption\x10Hb\x06proto3\
  128. ";
  129. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  130. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  131. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  132. }
  133. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  134. file_descriptor_proto_lazy.get(|| {
  135. parse_descriptor_proto()
  136. })
  137. }