cell_entities.rs 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505
  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 `cell_entities.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(PartialEq,Clone,Default)]
  22. pub struct CreateSelectOptionPayload {
  23. // message fields
  24. pub field_identifier: ::protobuf::SingularPtrField<super::field_entities::FieldIdentifierPayload>,
  25. pub option_name: ::std::string::String,
  26. // special fields
  27. pub unknown_fields: ::protobuf::UnknownFields,
  28. pub cached_size: ::protobuf::CachedSize,
  29. }
  30. impl<'a> ::std::default::Default for &'a CreateSelectOptionPayload {
  31. fn default() -> &'a CreateSelectOptionPayload {
  32. <CreateSelectOptionPayload as ::protobuf::Message>::default_instance()
  33. }
  34. }
  35. impl CreateSelectOptionPayload {
  36. pub fn new() -> CreateSelectOptionPayload {
  37. ::std::default::Default::default()
  38. }
  39. // .FieldIdentifierPayload field_identifier = 1;
  40. pub fn get_field_identifier(&self) -> &super::field_entities::FieldIdentifierPayload {
  41. self.field_identifier.as_ref().unwrap_or_else(|| <super::field_entities::FieldIdentifierPayload as ::protobuf::Message>::default_instance())
  42. }
  43. pub fn clear_field_identifier(&mut self) {
  44. self.field_identifier.clear();
  45. }
  46. pub fn has_field_identifier(&self) -> bool {
  47. self.field_identifier.is_some()
  48. }
  49. // Param is passed by value, moved
  50. pub fn set_field_identifier(&mut self, v: super::field_entities::FieldIdentifierPayload) {
  51. self.field_identifier = ::protobuf::SingularPtrField::some(v);
  52. }
  53. // Mutable pointer to the field.
  54. // If field is not initialized, it is initialized with default value first.
  55. pub fn mut_field_identifier(&mut self) -> &mut super::field_entities::FieldIdentifierPayload {
  56. if self.field_identifier.is_none() {
  57. self.field_identifier.set_default();
  58. }
  59. self.field_identifier.as_mut().unwrap()
  60. }
  61. // Take field
  62. pub fn take_field_identifier(&mut self) -> super::field_entities::FieldIdentifierPayload {
  63. self.field_identifier.take().unwrap_or_else(|| super::field_entities::FieldIdentifierPayload::new())
  64. }
  65. // string option_name = 2;
  66. pub fn get_option_name(&self) -> &str {
  67. &self.option_name
  68. }
  69. pub fn clear_option_name(&mut self) {
  70. self.option_name.clear();
  71. }
  72. // Param is passed by value, moved
  73. pub fn set_option_name(&mut self, v: ::std::string::String) {
  74. self.option_name = v;
  75. }
  76. // Mutable pointer to the field.
  77. // If field is not initialized, it is initialized with default value first.
  78. pub fn mut_option_name(&mut self) -> &mut ::std::string::String {
  79. &mut self.option_name
  80. }
  81. // Take field
  82. pub fn take_option_name(&mut self) -> ::std::string::String {
  83. ::std::mem::replace(&mut self.option_name, ::std::string::String::new())
  84. }
  85. }
  86. impl ::protobuf::Message for CreateSelectOptionPayload {
  87. fn is_initialized(&self) -> bool {
  88. for v in &self.field_identifier {
  89. if !v.is_initialized() {
  90. return false;
  91. }
  92. };
  93. true
  94. }
  95. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  96. while !is.eof()? {
  97. let (field_number, wire_type) = is.read_tag_unpack()?;
  98. match field_number {
  99. 1 => {
  100. ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.field_identifier)?;
  101. },
  102. 2 => {
  103. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.option_name)?;
  104. },
  105. _ => {
  106. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  107. },
  108. };
  109. }
  110. ::std::result::Result::Ok(())
  111. }
  112. // Compute sizes of nested messages
  113. #[allow(unused_variables)]
  114. fn compute_size(&self) -> u32 {
  115. let mut my_size = 0;
  116. if let Some(ref v) = self.field_identifier.as_ref() {
  117. let len = v.compute_size();
  118. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  119. }
  120. if !self.option_name.is_empty() {
  121. my_size += ::protobuf::rt::string_size(2, &self.option_name);
  122. }
  123. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  124. self.cached_size.set(my_size);
  125. my_size
  126. }
  127. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  128. if let Some(ref v) = self.field_identifier.as_ref() {
  129. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  130. os.write_raw_varint32(v.get_cached_size())?;
  131. v.write_to_with_cached_sizes(os)?;
  132. }
  133. if !self.option_name.is_empty() {
  134. os.write_string(2, &self.option_name)?;
  135. }
  136. os.write_unknown_fields(self.get_unknown_fields())?;
  137. ::std::result::Result::Ok(())
  138. }
  139. fn get_cached_size(&self) -> u32 {
  140. self.cached_size.get()
  141. }
  142. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  143. &self.unknown_fields
  144. }
  145. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  146. &mut self.unknown_fields
  147. }
  148. fn as_any(&self) -> &dyn (::std::any::Any) {
  149. self as &dyn (::std::any::Any)
  150. }
  151. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  152. self as &mut dyn (::std::any::Any)
  153. }
  154. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  155. self
  156. }
  157. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  158. Self::descriptor_static()
  159. }
  160. fn new() -> CreateSelectOptionPayload {
  161. CreateSelectOptionPayload::new()
  162. }
  163. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  164. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  165. descriptor.get(|| {
  166. let mut fields = ::std::vec::Vec::new();
  167. fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<super::field_entities::FieldIdentifierPayload>>(
  168. "field_identifier",
  169. |m: &CreateSelectOptionPayload| { &m.field_identifier },
  170. |m: &mut CreateSelectOptionPayload| { &mut m.field_identifier },
  171. ));
  172. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  173. "option_name",
  174. |m: &CreateSelectOptionPayload| { &m.option_name },
  175. |m: &mut CreateSelectOptionPayload| { &mut m.option_name },
  176. ));
  177. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CreateSelectOptionPayload>(
  178. "CreateSelectOptionPayload",
  179. fields,
  180. file_descriptor_proto()
  181. )
  182. })
  183. }
  184. fn default_instance() -> &'static CreateSelectOptionPayload {
  185. static instance: ::protobuf::rt::LazyV2<CreateSelectOptionPayload> = ::protobuf::rt::LazyV2::INIT;
  186. instance.get(CreateSelectOptionPayload::new)
  187. }
  188. }
  189. impl ::protobuf::Clear for CreateSelectOptionPayload {
  190. fn clear(&mut self) {
  191. self.field_identifier.clear();
  192. self.option_name.clear();
  193. self.unknown_fields.clear();
  194. }
  195. }
  196. impl ::std::fmt::Debug for CreateSelectOptionPayload {
  197. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  198. ::protobuf::text_format::fmt(self, f)
  199. }
  200. }
  201. impl ::protobuf::reflect::ProtobufValue for CreateSelectOptionPayload {
  202. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  203. ::protobuf::reflect::ReflectValueRef::Message(self)
  204. }
  205. }
  206. #[derive(PartialEq,Clone,Default)]
  207. pub struct CellIdentifierPayload {
  208. // message fields
  209. pub grid_id: ::std::string::String,
  210. pub field_id: ::std::string::String,
  211. pub row_id: ::std::string::String,
  212. // special fields
  213. pub unknown_fields: ::protobuf::UnknownFields,
  214. pub cached_size: ::protobuf::CachedSize,
  215. }
  216. impl<'a> ::std::default::Default for &'a CellIdentifierPayload {
  217. fn default() -> &'a CellIdentifierPayload {
  218. <CellIdentifierPayload as ::protobuf::Message>::default_instance()
  219. }
  220. }
  221. impl CellIdentifierPayload {
  222. pub fn new() -> CellIdentifierPayload {
  223. ::std::default::Default::default()
  224. }
  225. // string grid_id = 1;
  226. pub fn get_grid_id(&self) -> &str {
  227. &self.grid_id
  228. }
  229. pub fn clear_grid_id(&mut self) {
  230. self.grid_id.clear();
  231. }
  232. // Param is passed by value, moved
  233. pub fn set_grid_id(&mut self, v: ::std::string::String) {
  234. self.grid_id = v;
  235. }
  236. // Mutable pointer to the field.
  237. // If field is not initialized, it is initialized with default value first.
  238. pub fn mut_grid_id(&mut self) -> &mut ::std::string::String {
  239. &mut self.grid_id
  240. }
  241. // Take field
  242. pub fn take_grid_id(&mut self) -> ::std::string::String {
  243. ::std::mem::replace(&mut self.grid_id, ::std::string::String::new())
  244. }
  245. // string field_id = 2;
  246. pub fn get_field_id(&self) -> &str {
  247. &self.field_id
  248. }
  249. pub fn clear_field_id(&mut self) {
  250. self.field_id.clear();
  251. }
  252. // Param is passed by value, moved
  253. pub fn set_field_id(&mut self, v: ::std::string::String) {
  254. self.field_id = v;
  255. }
  256. // Mutable pointer to the field.
  257. // If field is not initialized, it is initialized with default value first.
  258. pub fn mut_field_id(&mut self) -> &mut ::std::string::String {
  259. &mut self.field_id
  260. }
  261. // Take field
  262. pub fn take_field_id(&mut self) -> ::std::string::String {
  263. ::std::mem::replace(&mut self.field_id, ::std::string::String::new())
  264. }
  265. // string row_id = 3;
  266. pub fn get_row_id(&self) -> &str {
  267. &self.row_id
  268. }
  269. pub fn clear_row_id(&mut self) {
  270. self.row_id.clear();
  271. }
  272. // Param is passed by value, moved
  273. pub fn set_row_id(&mut self, v: ::std::string::String) {
  274. self.row_id = v;
  275. }
  276. // Mutable pointer to the field.
  277. // If field is not initialized, it is initialized with default value first.
  278. pub fn mut_row_id(&mut self) -> &mut ::std::string::String {
  279. &mut self.row_id
  280. }
  281. // Take field
  282. pub fn take_row_id(&mut self) -> ::std::string::String {
  283. ::std::mem::replace(&mut self.row_id, ::std::string::String::new())
  284. }
  285. }
  286. impl ::protobuf::Message for CellIdentifierPayload {
  287. fn is_initialized(&self) -> bool {
  288. true
  289. }
  290. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  291. while !is.eof()? {
  292. let (field_number, wire_type) = is.read_tag_unpack()?;
  293. match field_number {
  294. 1 => {
  295. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.grid_id)?;
  296. },
  297. 2 => {
  298. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.field_id)?;
  299. },
  300. 3 => {
  301. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.row_id)?;
  302. },
  303. _ => {
  304. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  305. },
  306. };
  307. }
  308. ::std::result::Result::Ok(())
  309. }
  310. // Compute sizes of nested messages
  311. #[allow(unused_variables)]
  312. fn compute_size(&self) -> u32 {
  313. let mut my_size = 0;
  314. if !self.grid_id.is_empty() {
  315. my_size += ::protobuf::rt::string_size(1, &self.grid_id);
  316. }
  317. if !self.field_id.is_empty() {
  318. my_size += ::protobuf::rt::string_size(2, &self.field_id);
  319. }
  320. if !self.row_id.is_empty() {
  321. my_size += ::protobuf::rt::string_size(3, &self.row_id);
  322. }
  323. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  324. self.cached_size.set(my_size);
  325. my_size
  326. }
  327. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  328. if !self.grid_id.is_empty() {
  329. os.write_string(1, &self.grid_id)?;
  330. }
  331. if !self.field_id.is_empty() {
  332. os.write_string(2, &self.field_id)?;
  333. }
  334. if !self.row_id.is_empty() {
  335. os.write_string(3, &self.row_id)?;
  336. }
  337. os.write_unknown_fields(self.get_unknown_fields())?;
  338. ::std::result::Result::Ok(())
  339. }
  340. fn get_cached_size(&self) -> u32 {
  341. self.cached_size.get()
  342. }
  343. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  344. &self.unknown_fields
  345. }
  346. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  347. &mut self.unknown_fields
  348. }
  349. fn as_any(&self) -> &dyn (::std::any::Any) {
  350. self as &dyn (::std::any::Any)
  351. }
  352. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  353. self as &mut dyn (::std::any::Any)
  354. }
  355. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  356. self
  357. }
  358. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  359. Self::descriptor_static()
  360. }
  361. fn new() -> CellIdentifierPayload {
  362. CellIdentifierPayload::new()
  363. }
  364. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  365. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  366. descriptor.get(|| {
  367. let mut fields = ::std::vec::Vec::new();
  368. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  369. "grid_id",
  370. |m: &CellIdentifierPayload| { &m.grid_id },
  371. |m: &mut CellIdentifierPayload| { &mut m.grid_id },
  372. ));
  373. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  374. "field_id",
  375. |m: &CellIdentifierPayload| { &m.field_id },
  376. |m: &mut CellIdentifierPayload| { &mut m.field_id },
  377. ));
  378. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  379. "row_id",
  380. |m: &CellIdentifierPayload| { &m.row_id },
  381. |m: &mut CellIdentifierPayload| { &mut m.row_id },
  382. ));
  383. ::protobuf::reflect::MessageDescriptor::new_pb_name::<CellIdentifierPayload>(
  384. "CellIdentifierPayload",
  385. fields,
  386. file_descriptor_proto()
  387. )
  388. })
  389. }
  390. fn default_instance() -> &'static CellIdentifierPayload {
  391. static instance: ::protobuf::rt::LazyV2<CellIdentifierPayload> = ::protobuf::rt::LazyV2::INIT;
  392. instance.get(CellIdentifierPayload::new)
  393. }
  394. }
  395. impl ::protobuf::Clear for CellIdentifierPayload {
  396. fn clear(&mut self) {
  397. self.grid_id.clear();
  398. self.field_id.clear();
  399. self.row_id.clear();
  400. self.unknown_fields.clear();
  401. }
  402. }
  403. impl ::std::fmt::Debug for CellIdentifierPayload {
  404. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  405. ::protobuf::text_format::fmt(self, f)
  406. }
  407. }
  408. impl ::protobuf::reflect::ProtobufValue for CellIdentifierPayload {
  409. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  410. ::protobuf::reflect::ReflectValueRef::Message(self)
  411. }
  412. }
  413. static file_descriptor_proto_data: &'static [u8] = b"\
  414. \n\x13cell_entities.proto\x1a\x14field_entities.proto\"\x80\x01\n\x19Cre\
  415. ateSelectOptionPayload\x12B\n\x10field_identifier\x18\x01\x20\x01(\x0b2\
  416. \x17.FieldIdentifierPayloadR\x0ffieldIdentifier\x12\x1f\n\x0boption_name\
  417. \x18\x02\x20\x01(\tR\noptionName\"b\n\x15CellIdentifierPayload\x12\x17\n\
  418. \x07grid_id\x18\x01\x20\x01(\tR\x06gridId\x12\x19\n\x08field_id\x18\x02\
  419. \x20\x01(\tR\x07fieldId\x12\x15\n\x06row_id\x18\x03\x20\x01(\tR\x05rowId\
  420. b\x06proto3\
  421. ";
  422. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  423. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  424. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  425. }
  426. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  427. file_descriptor_proto_lazy.get(|| {
  428. parse_descriptor_proto()
  429. })
  430. }