workspace_query.rs 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446
  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 `workspace_query.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 QueryWorkspaceRequest {
  23. // message fields
  24. pub workspace_id: ::std::string::String,
  25. pub read_apps: bool,
  26. // special fields
  27. pub unknown_fields: ::protobuf::UnknownFields,
  28. pub cached_size: ::protobuf::CachedSize,
  29. }
  30. impl<'a> ::std::default::Default for &'a QueryWorkspaceRequest {
  31. fn default() -> &'a QueryWorkspaceRequest {
  32. <QueryWorkspaceRequest as ::protobuf::Message>::default_instance()
  33. }
  34. }
  35. impl QueryWorkspaceRequest {
  36. pub fn new() -> QueryWorkspaceRequest {
  37. ::std::default::Default::default()
  38. }
  39. // string workspace_id = 1;
  40. pub fn get_workspace_id(&self) -> &str {
  41. &self.workspace_id
  42. }
  43. pub fn clear_workspace_id(&mut self) {
  44. self.workspace_id.clear();
  45. }
  46. // Param is passed by value, moved
  47. pub fn set_workspace_id(&mut self, v: ::std::string::String) {
  48. self.workspace_id = v;
  49. }
  50. // Mutable pointer to the field.
  51. // If field is not initialized, it is initialized with default value first.
  52. pub fn mut_workspace_id(&mut self) -> &mut ::std::string::String {
  53. &mut self.workspace_id
  54. }
  55. // Take field
  56. pub fn take_workspace_id(&mut self) -> ::std::string::String {
  57. ::std::mem::replace(&mut self.workspace_id, ::std::string::String::new())
  58. }
  59. // bool read_apps = 2;
  60. pub fn get_read_apps(&self) -> bool {
  61. self.read_apps
  62. }
  63. pub fn clear_read_apps(&mut self) {
  64. self.read_apps = false;
  65. }
  66. // Param is passed by value, moved
  67. pub fn set_read_apps(&mut self, v: bool) {
  68. self.read_apps = v;
  69. }
  70. }
  71. impl ::protobuf::Message for QueryWorkspaceRequest {
  72. fn is_initialized(&self) -> bool {
  73. true
  74. }
  75. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  76. while !is.eof()? {
  77. let (field_number, wire_type) = is.read_tag_unpack()?;
  78. match field_number {
  79. 1 => {
  80. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.workspace_id)?;
  81. },
  82. 2 => {
  83. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  84. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  85. }
  86. let tmp = is.read_bool()?;
  87. self.read_apps = tmp;
  88. },
  89. _ => {
  90. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  91. },
  92. };
  93. }
  94. ::std::result::Result::Ok(())
  95. }
  96. // Compute sizes of nested messages
  97. #[allow(unused_variables)]
  98. fn compute_size(&self) -> u32 {
  99. let mut my_size = 0;
  100. if !self.workspace_id.is_empty() {
  101. my_size += ::protobuf::rt::string_size(1, &self.workspace_id);
  102. }
  103. if self.read_apps != false {
  104. my_size += 2;
  105. }
  106. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  107. self.cached_size.set(my_size);
  108. my_size
  109. }
  110. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  111. if !self.workspace_id.is_empty() {
  112. os.write_string(1, &self.workspace_id)?;
  113. }
  114. if self.read_apps != false {
  115. os.write_bool(2, self.read_apps)?;
  116. }
  117. os.write_unknown_fields(self.get_unknown_fields())?;
  118. ::std::result::Result::Ok(())
  119. }
  120. fn get_cached_size(&self) -> u32 {
  121. self.cached_size.get()
  122. }
  123. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  124. &self.unknown_fields
  125. }
  126. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  127. &mut self.unknown_fields
  128. }
  129. fn as_any(&self) -> &dyn (::std::any::Any) {
  130. self as &dyn (::std::any::Any)
  131. }
  132. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  133. self as &mut dyn (::std::any::Any)
  134. }
  135. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  136. self
  137. }
  138. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  139. Self::descriptor_static()
  140. }
  141. fn new() -> QueryWorkspaceRequest {
  142. QueryWorkspaceRequest::new()
  143. }
  144. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  145. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  146. descriptor.get(|| {
  147. let mut fields = ::std::vec::Vec::new();
  148. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  149. "workspace_id",
  150. |m: &QueryWorkspaceRequest| { &m.workspace_id },
  151. |m: &mut QueryWorkspaceRequest| { &mut m.workspace_id },
  152. ));
  153. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  154. "read_apps",
  155. |m: &QueryWorkspaceRequest| { &m.read_apps },
  156. |m: &mut QueryWorkspaceRequest| { &mut m.read_apps },
  157. ));
  158. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryWorkspaceRequest>(
  159. "QueryWorkspaceRequest",
  160. fields,
  161. file_descriptor_proto()
  162. )
  163. })
  164. }
  165. fn default_instance() -> &'static QueryWorkspaceRequest {
  166. static instance: ::protobuf::rt::LazyV2<QueryWorkspaceRequest> = ::protobuf::rt::LazyV2::INIT;
  167. instance.get(QueryWorkspaceRequest::new)
  168. }
  169. }
  170. impl ::protobuf::Clear for QueryWorkspaceRequest {
  171. fn clear(&mut self) {
  172. self.workspace_id.clear();
  173. self.read_apps = false;
  174. self.unknown_fields.clear();
  175. }
  176. }
  177. impl ::std::fmt::Debug for QueryWorkspaceRequest {
  178. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  179. ::protobuf::text_format::fmt(self, f)
  180. }
  181. }
  182. impl ::protobuf::reflect::ProtobufValue for QueryWorkspaceRequest {
  183. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  184. ::protobuf::reflect::ReflectValueRef::Message(self)
  185. }
  186. }
  187. #[derive(PartialEq,Clone,Default)]
  188. pub struct QueryWorkspaceParams {
  189. // message fields
  190. pub workspace_id: ::std::string::String,
  191. pub read_apps: bool,
  192. // special fields
  193. pub unknown_fields: ::protobuf::UnknownFields,
  194. pub cached_size: ::protobuf::CachedSize,
  195. }
  196. impl<'a> ::std::default::Default for &'a QueryWorkspaceParams {
  197. fn default() -> &'a QueryWorkspaceParams {
  198. <QueryWorkspaceParams as ::protobuf::Message>::default_instance()
  199. }
  200. }
  201. impl QueryWorkspaceParams {
  202. pub fn new() -> QueryWorkspaceParams {
  203. ::std::default::Default::default()
  204. }
  205. // string workspace_id = 1;
  206. pub fn get_workspace_id(&self) -> &str {
  207. &self.workspace_id
  208. }
  209. pub fn clear_workspace_id(&mut self) {
  210. self.workspace_id.clear();
  211. }
  212. // Param is passed by value, moved
  213. pub fn set_workspace_id(&mut self, v: ::std::string::String) {
  214. self.workspace_id = v;
  215. }
  216. // Mutable pointer to the field.
  217. // If field is not initialized, it is initialized with default value first.
  218. pub fn mut_workspace_id(&mut self) -> &mut ::std::string::String {
  219. &mut self.workspace_id
  220. }
  221. // Take field
  222. pub fn take_workspace_id(&mut self) -> ::std::string::String {
  223. ::std::mem::replace(&mut self.workspace_id, ::std::string::String::new())
  224. }
  225. // bool read_apps = 2;
  226. pub fn get_read_apps(&self) -> bool {
  227. self.read_apps
  228. }
  229. pub fn clear_read_apps(&mut self) {
  230. self.read_apps = false;
  231. }
  232. // Param is passed by value, moved
  233. pub fn set_read_apps(&mut self, v: bool) {
  234. self.read_apps = v;
  235. }
  236. }
  237. impl ::protobuf::Message for QueryWorkspaceParams {
  238. fn is_initialized(&self) -> bool {
  239. true
  240. }
  241. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  242. while !is.eof()? {
  243. let (field_number, wire_type) = is.read_tag_unpack()?;
  244. match field_number {
  245. 1 => {
  246. ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.workspace_id)?;
  247. },
  248. 2 => {
  249. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  250. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  251. }
  252. let tmp = is.read_bool()?;
  253. self.read_apps = tmp;
  254. },
  255. _ => {
  256. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  257. },
  258. };
  259. }
  260. ::std::result::Result::Ok(())
  261. }
  262. // Compute sizes of nested messages
  263. #[allow(unused_variables)]
  264. fn compute_size(&self) -> u32 {
  265. let mut my_size = 0;
  266. if !self.workspace_id.is_empty() {
  267. my_size += ::protobuf::rt::string_size(1, &self.workspace_id);
  268. }
  269. if self.read_apps != false {
  270. my_size += 2;
  271. }
  272. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  273. self.cached_size.set(my_size);
  274. my_size
  275. }
  276. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
  277. if !self.workspace_id.is_empty() {
  278. os.write_string(1, &self.workspace_id)?;
  279. }
  280. if self.read_apps != false {
  281. os.write_bool(2, self.read_apps)?;
  282. }
  283. os.write_unknown_fields(self.get_unknown_fields())?;
  284. ::std::result::Result::Ok(())
  285. }
  286. fn get_cached_size(&self) -> u32 {
  287. self.cached_size.get()
  288. }
  289. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  290. &self.unknown_fields
  291. }
  292. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  293. &mut self.unknown_fields
  294. }
  295. fn as_any(&self) -> &dyn (::std::any::Any) {
  296. self as &dyn (::std::any::Any)
  297. }
  298. fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
  299. self as &mut dyn (::std::any::Any)
  300. }
  301. fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
  302. self
  303. }
  304. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  305. Self::descriptor_static()
  306. }
  307. fn new() -> QueryWorkspaceParams {
  308. QueryWorkspaceParams::new()
  309. }
  310. fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
  311. static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
  312. descriptor.get(|| {
  313. let mut fields = ::std::vec::Vec::new();
  314. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  315. "workspace_id",
  316. |m: &QueryWorkspaceParams| { &m.workspace_id },
  317. |m: &mut QueryWorkspaceParams| { &mut m.workspace_id },
  318. ));
  319. fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeBool>(
  320. "read_apps",
  321. |m: &QueryWorkspaceParams| { &m.read_apps },
  322. |m: &mut QueryWorkspaceParams| { &mut m.read_apps },
  323. ));
  324. ::protobuf::reflect::MessageDescriptor::new_pb_name::<QueryWorkspaceParams>(
  325. "QueryWorkspaceParams",
  326. fields,
  327. file_descriptor_proto()
  328. )
  329. })
  330. }
  331. fn default_instance() -> &'static QueryWorkspaceParams {
  332. static instance: ::protobuf::rt::LazyV2<QueryWorkspaceParams> = ::protobuf::rt::LazyV2::INIT;
  333. instance.get(QueryWorkspaceParams::new)
  334. }
  335. }
  336. impl ::protobuf::Clear for QueryWorkspaceParams {
  337. fn clear(&mut self) {
  338. self.workspace_id.clear();
  339. self.read_apps = false;
  340. self.unknown_fields.clear();
  341. }
  342. }
  343. impl ::std::fmt::Debug for QueryWorkspaceParams {
  344. fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
  345. ::protobuf::text_format::fmt(self, f)
  346. }
  347. }
  348. impl ::protobuf::reflect::ProtobufValue for QueryWorkspaceParams {
  349. fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
  350. ::protobuf::reflect::ReflectValueRef::Message(self)
  351. }
  352. }
  353. static file_descriptor_proto_data: &'static [u8] = b"\
  354. \n\x15workspace_query.proto\"W\n\x15QueryWorkspaceRequest\x12!\n\x0cwork\
  355. space_id\x18\x01\x20\x01(\tR\x0bworkspaceId\x12\x1b\n\tread_apps\x18\x02\
  356. \x20\x01(\x08R\x08readApps\"V\n\x14QueryWorkspaceParams\x12!\n\x0cworksp\
  357. ace_id\x18\x01\x20\x01(\tR\x0bworkspaceId\x12\x1b\n\tread_apps\x18\x02\
  358. \x20\x01(\x08R\x08readAppsJ\x9e\x02\n\x06\x12\x04\0\0\t\x01\n\x08\n\x01\
  359. \x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\x05\x01\n\n\n\x03\x04\
  360. \0\x01\x12\x03\x02\x08\x1d\n\x0b\n\x04\x04\0\x02\0\x12\x03\x03\x04\x1c\n\
  361. \x0c\n\x05\x04\0\x02\0\x05\x12\x03\x03\x04\n\n\x0c\n\x05\x04\0\x02\0\x01\
  362. \x12\x03\x03\x0b\x17\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x03\x1a\x1b\n\
  363. \x0b\n\x04\x04\0\x02\x01\x12\x03\x04\x04\x17\n\x0c\n\x05\x04\0\x02\x01\
  364. \x05\x12\x03\x04\x04\x08\n\x0c\n\x05\x04\0\x02\x01\x01\x12\x03\x04\t\x12\
  365. \n\x0c\n\x05\x04\0\x02\x01\x03\x12\x03\x04\x15\x16\n\n\n\x02\x04\x01\x12\
  366. \x04\x06\0\t\x01\n\n\n\x03\x04\x01\x01\x12\x03\x06\x08\x1c\n\x0b\n\x04\
  367. \x04\x01\x02\0\x12\x03\x07\x04\x1c\n\x0c\n\x05\x04\x01\x02\0\x05\x12\x03\
  368. \x07\x04\n\n\x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x07\x0b\x17\n\x0c\n\x05\
  369. \x04\x01\x02\0\x03\x12\x03\x07\x1a\x1b\n\x0b\n\x04\x04\x01\x02\x01\x12\
  370. \x03\x08\x04\x17\n\x0c\n\x05\x04\x01\x02\x01\x05\x12\x03\x08\x04\x08\n\
  371. \x0c\n\x05\x04\x01\x02\x01\x01\x12\x03\x08\t\x12\n\x0c\n\x05\x04\x01\x02\
  372. \x01\x03\x12\x03\x08\x15\x16b\x06proto3\
  373. ";
  374. static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
  375. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  376. ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
  377. }
  378. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  379. file_descriptor_proto_lazy.get(|| {
  380. parse_descriptor_proto()
  381. })
  382. }