app_delete.rs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369
  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 `app_delete.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(PartialEq,Clone,Default)]
  22. pub struct DeleteAppRequest {
  23. // message fields
  24. pub app_id: ::std::string::String,
  25. // special fields
  26. pub unknown_fields: ::protobuf::UnknownFields,
  27. pub cached_size: ::protobuf::CachedSize,
  28. }
  29. impl<'a> ::std::default::Default for &'a DeleteAppRequest {
  30. fn default() -> &'a DeleteAppRequest {
  31. <DeleteAppRequest as ::protobuf::Message>::default_instance()
  32. }
  33. }
  34. impl DeleteAppRequest {
  35. pub fn new() -> DeleteAppRequest {
  36. ::std::default::Default::default()
  37. }
  38. // string app_id = 1;
  39. pub fn get_app_id(&self) -> &str {
  40. &self.app_id
  41. }
  42. pub fn clear_app_id(&mut self) {
  43. self.app_id.clear();
  44. }
  45. // Param is passed by value, moved
  46. pub fn set_app_id(&mut self, v: ::std::string::String) {
  47. self.app_id = v;
  48. }
  49. // Mutable pointer to the field.
  50. // If field is not initialized, it is initialized with default value first.
  51. pub fn mut_app_id(&mut self) -> &mut ::std::string::String {
  52. &mut self.app_id
  53. }
  54. // Take field
  55. pub fn take_app_id(&mut self) -> ::std::string::String {
  56. ::std::mem::replace(&mut self.app_id, ::std::string::String::new())
  57. }
  58. }
  59. impl ::protobuf::Message for DeleteAppRequest {
  60. fn is_initialized(&self) -> bool {
  61. true
  62. }
  63. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  64. while !is.eof()? {
  65. let (field_number, wire_type) = is.read_tag_unpack()?;
  66. match field_number {
  67. 1 => {
  68. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_id)?;
  69. },
  70. _ => {
  71. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  72. },
  73. };
  74. }
  75. ::std::result::Result::Ok(())
  76. }
  77. // Compute sizes of nested messages
  78. #[allow(unused_variables)]
  79. fn compute_size(&self) -> u32 {
  80. let mut my_size = 0;
  81. if !self.app_id.is_empty() {
  82. my_size += ::protobuf::rt::string_size(1, &self.app_id);
  83. }
  84. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  85. self.cached_size.set(my_size);
  86. my_size
  87. }
  88. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  89. if !self.app_id.is_empty() {
  90. os.write_string(1, &self.app_id)?;
  91. }
  92. os.write_unknown_fields(self.get_unknown_fields())?;
  93. ::std::result::Result::Ok(())
  94. }
  95. fn get_cached_size(&self) -> u32 {
  96. self.cached_size.get()
  97. }
  98. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  99. &self.unknown_fields
  100. }
  101. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  102. &mut self.unknown_fields
  103. }
  104. fn as_any(&self) -> &dyn (::std::any::Any) {
  105. self as &dyn (::std::any::Any)
  106. }
  107. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  108. self as &mut dyn (::std::any::Any)
  109. }
  110. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  111. self
  112. }
  113. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  114. Self::descriptor_static()
  115. }
  116. fn new() -> DeleteAppRequest {
  117. DeleteAppRequest::new()
  118. }
  119. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  120. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  121. descriptor.get(|| {
  122. let mut fields = ::std::vec::Vec::new();
  123. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  124. "app_id",
  125. |m: &DeleteAppRequest| { &m.app_id },
  126. |m: &mut DeleteAppRequest| { &mut m.app_id },
  127. ));
  128. ::protobuf::reflect::MessageDescriptor::new_pb_name::<DeleteAppRequest>(
  129. "DeleteAppRequest",
  130. fields,
  131. file_descriptor_proto()
  132. )
  133. })
  134. }
  135. fn default_instance() -> &'static DeleteAppRequest {
  136. static instance: ::protobuf::rt::LazyV2<DeleteAppRequest> = ::protobuf::rt::LazyV2::INIT;
  137. instance.get(DeleteAppRequest::new)
  138. }
  139. }
  140. impl ::protobuf::Clear for DeleteAppRequest {
  141. fn clear(&mut self) {
  142. self.app_id.clear();
  143. self.unknown_fields.clear();
  144. }
  145. }
  146. impl ::std::fmt::Debug for DeleteAppRequest {
  147. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  148. ::protobuf::text_format::fmt(self, f)
  149. }
  150. }
  151. impl ::protobuf::reflect::ProtobufValue for DeleteAppRequest {
  152. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  153. ::protobuf::reflect::ReflectValueRef::Message(self)
  154. }
  155. }
  156. #[derive(PartialEq,Clone,Default)]
  157. pub struct DeleteAppParams {
  158. // message fields
  159. pub app_id: ::std::string::String,
  160. // special fields
  161. pub unknown_fields: ::protobuf::UnknownFields,
  162. pub cached_size: ::protobuf::CachedSize,
  163. }
  164. impl<'a> ::std::default::Default for &'a DeleteAppParams {
  165. fn default() -> &'a DeleteAppParams {
  166. <DeleteAppParams as ::protobuf::Message>::default_instance()
  167. }
  168. }
  169. impl DeleteAppParams {
  170. pub fn new() -> DeleteAppParams {
  171. ::std::default::Default::default()
  172. }
  173. // string app_id = 1;
  174. pub fn get_app_id(&self) -> &str {
  175. &self.app_id
  176. }
  177. pub fn clear_app_id(&mut self) {
  178. self.app_id.clear();
  179. }
  180. // Param is passed by value, moved
  181. pub fn set_app_id(&mut self, v: ::std::string::String) {
  182. self.app_id = v;
  183. }
  184. // Mutable pointer to the field.
  185. // If field is not initialized, it is initialized with default value first.
  186. pub fn mut_app_id(&mut self) -> &mut ::std::string::String {
  187. &mut self.app_id
  188. }
  189. // Take field
  190. pub fn take_app_id(&mut self) -> ::std::string::String {
  191. ::std::mem::replace(&mut self.app_id, ::std::string::String::new())
  192. }
  193. }
  194. impl ::protobuf::Message for DeleteAppParams {
  195. fn is_initialized(&self) -> bool {
  196. true
  197. }
  198. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  199. while !is.eof()? {
  200. let (field_number, wire_type) = is.read_tag_unpack()?;
  201. match field_number {
  202. 1 => {
  203. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.app_id)?;
  204. },
  205. _ => {
  206. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  207. },
  208. };
  209. }
  210. ::std::result::Result::Ok(())
  211. }
  212. // Compute sizes of nested messages
  213. #[allow(unused_variables)]
  214. fn compute_size(&self) -> u32 {
  215. let mut my_size = 0;
  216. if !self.app_id.is_empty() {
  217. my_size += ::protobuf::rt::string_size(1, &self.app_id);
  218. }
  219. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  220. self.cached_size.set(my_size);
  221. my_size
  222. }
  223. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  224. if !self.app_id.is_empty() {
  225. os.write_string(1, &self.app_id)?;
  226. }
  227. os.write_unknown_fields(self.get_unknown_fields())?;
  228. ::std::result::Result::Ok(())
  229. }
  230. fn get_cached_size(&self) -> u32 {
  231. self.cached_size.get()
  232. }
  233. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  234. &self.unknown_fields
  235. }
  236. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  237. &mut self.unknown_fields
  238. }
  239. fn as_any(&self) -> &dyn (::std::any::Any) {
  240. self as &dyn (::std::any::Any)
  241. }
  242. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  243. self as &mut dyn (::std::any::Any)
  244. }
  245. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  246. self
  247. }
  248. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  249. Self::descriptor_static()
  250. }
  251. fn new() -> DeleteAppParams {
  252. DeleteAppParams::new()
  253. }
  254. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  255. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  256. descriptor.get(|| {
  257. let mut fields = ::std::vec::Vec::new();
  258. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  259. "app_id",
  260. |m: &DeleteAppParams| { &m.app_id },
  261. |m: &mut DeleteAppParams| { &mut m.app_id },
  262. ));
  263. ::protobuf::reflect::MessageDescriptor::new_pb_name::<DeleteAppParams>(
  264. "DeleteAppParams",
  265. fields,
  266. file_descriptor_proto()
  267. )
  268. })
  269. }
  270. fn default_instance() -> &'static DeleteAppParams {
  271. static instance: ::protobuf::rt::LazyV2<DeleteAppParams> = ::protobuf::rt::LazyV2::INIT;
  272. instance.get(DeleteAppParams::new)
  273. }
  274. }
  275. impl ::protobuf::Clear for DeleteAppParams {
  276. fn clear(&mut self) {
  277. self.app_id.clear();
  278. self.unknown_fields.clear();
  279. }
  280. }
  281. impl ::std::fmt::Debug for DeleteAppParams {
  282. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  283. ::protobuf::text_format::fmt(self, f)
  284. }
  285. }
  286. impl ::protobuf::reflect::ProtobufValue for DeleteAppParams {
  287. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  288. ::protobuf::reflect::ReflectValueRef::Message(self)
  289. }
  290. }
  291. static file_descriptor_proto_data: &'static [u8] = b"\
  292. \n\x10app_delete.proto\")\n\x10DeleteAppRequest\x12\x15\n\x06app_id\x18\
  293. \x01\x20\x01(\tR\x05appId\"(\n\x0fDeleteAppParams\x12\x15\n\x06app_id\
  294. \x18\x01\x20\x01(\tR\x05appIdJ\xb0\x01\n\x06\x12\x04\0\0\x07\x01\n\x08\n\
  295. \x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\x04\x01\n\n\n\x03\
  296. \x04\0\x01\x12\x03\x02\x08\x18\n\x0b\n\x04\x04\0\x02\0\x12\x03\x03\x04\
  297. \x16\n\x0c\n\x05\x04\0\x02\0\x05\x12\x03\x03\x04\n\n\x0c\n\x05\x04\0\x02\
  298. \0\x01\x12\x03\x03\x0b\x11\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x03\x14\
  299. \x15\n\n\n\x02\x04\x01\x12\x04\x05\0\x07\x01\n\n\n\x03\x04\x01\x01\x12\
  300. \x03\x05\x08\x17\n\x0b\n\x04\x04\x01\x02\0\x12\x03\x06\x04\x16\n\x0c\n\
  301. \x05\x04\x01\x02\0\x05\x12\x03\x06\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\
  302. \x12\x03\x06\x0b\x11\n\x0c\n\x05\x04\x01\x02\0\x03\x12\x03\x06\x14\x15b\
  303. \x06proto3\
  304. ";
  305. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  306. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  307. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  308. }
  309. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  310. file_descriptor_proto_lazy.get(|| {
  311. parse_descriptor_proto()
  312. })
  313. }