mercury.rs 78 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131
  1. // This file is generated. Do not edit
  2. // @generated
  3. // https://github.com/Manishearth/rust-clippy/issues/702
  4. #![allow(unknown_lints)]
  5. #![allow(clippy)]
  6. #![cfg_attr(rustfmt, rustfmt_skip)]
  7. #![allow(box_pointers)]
  8. #![allow(dead_code)]
  9. #![allow(missing_docs)]
  10. #![allow(non_camel_case_types)]
  11. #![allow(non_snake_case)]
  12. #![allow(non_upper_case_globals)]
  13. #![allow(trivial_casts)]
  14. #![allow(unsafe_code)]
  15. #![allow(unused_imports)]
  16. #![allow(unused_results)]
  17. use protobuf::Message as Message_imported_for_functions;
  18. use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
  19. #[derive(PartialEq,Clone,Default)]
  20. pub struct MercuryMultiGetRequest {
  21. // message fields
  22. request: ::protobuf::RepeatedField<MercuryRequest>,
  23. // special fields
  24. unknown_fields: ::protobuf::UnknownFields,
  25. cached_size: ::protobuf::CachedSize,
  26. }
  27. // see codegen.rs for the explanation why impl Sync explicitly
  28. unsafe impl ::std::marker::Sync for MercuryMultiGetRequest {}
  29. impl MercuryMultiGetRequest {
  30. pub fn new() -> MercuryMultiGetRequest {
  31. ::std::default::Default::default()
  32. }
  33. pub fn default_instance() -> &'static MercuryMultiGetRequest {
  34. static mut instance: ::protobuf::lazy::Lazy<MercuryMultiGetRequest> = ::protobuf::lazy::Lazy {
  35. lock: ::protobuf::lazy::ONCE_INIT,
  36. ptr: 0 as *const MercuryMultiGetRequest,
  37. };
  38. unsafe {
  39. instance.get(MercuryMultiGetRequest::new)
  40. }
  41. }
  42. // repeated .MercuryRequest request = 1;
  43. pub fn clear_request(&mut self) {
  44. self.request.clear();
  45. }
  46. // Param is passed by value, moved
  47. pub fn set_request(&mut self, v: ::protobuf::RepeatedField<MercuryRequest>) {
  48. self.request = v;
  49. }
  50. // Mutable pointer to the field.
  51. pub fn mut_request(&mut self) -> &mut ::protobuf::RepeatedField<MercuryRequest> {
  52. &mut self.request
  53. }
  54. // Take field
  55. pub fn take_request(&mut self) -> ::protobuf::RepeatedField<MercuryRequest> {
  56. ::std::mem::replace(&mut self.request, ::protobuf::RepeatedField::new())
  57. }
  58. pub fn get_request(&self) -> &[MercuryRequest] {
  59. &self.request
  60. }
  61. fn get_request_for_reflect(&self) -> &::protobuf::RepeatedField<MercuryRequest> {
  62. &self.request
  63. }
  64. fn mut_request_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<MercuryRequest> {
  65. &mut self.request
  66. }
  67. }
  68. impl ::protobuf::Message for MercuryMultiGetRequest {
  69. fn is_initialized(&self) -> bool {
  70. true
  71. }
  72. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  73. while !is.eof()? {
  74. let (field_number, wire_type) = is.read_tag_unpack()?;
  75. match field_number {
  76. 1 => {
  77. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.request)?;
  78. },
  79. _ => {
  80. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  81. },
  82. };
  83. }
  84. ::std::result::Result::Ok(())
  85. }
  86. // Compute sizes of nested messages
  87. #[allow(unused_variables)]
  88. fn compute_size(&self) -> u32 {
  89. let mut my_size = 0;
  90. for value in &self.request {
  91. let len = value.compute_size();
  92. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  93. };
  94. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  95. self.cached_size.set(my_size);
  96. my_size
  97. }
  98. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  99. for v in &self.request {
  100. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  101. os.write_raw_varint32(v.get_cached_size())?;
  102. v.write_to_with_cached_sizes(os)?;
  103. };
  104. os.write_unknown_fields(self.get_unknown_fields())?;
  105. ::std::result::Result::Ok(())
  106. }
  107. fn get_cached_size(&self) -> u32 {
  108. self.cached_size.get()
  109. }
  110. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  111. &self.unknown_fields
  112. }
  113. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  114. &mut self.unknown_fields
  115. }
  116. fn as_any(&self) -> &::std::any::Any {
  117. self as &::std::any::Any
  118. }
  119. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  120. self as &mut ::std::any::Any
  121. }
  122. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  123. self
  124. }
  125. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  126. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  127. }
  128. }
  129. impl ::protobuf::MessageStatic for MercuryMultiGetRequest {
  130. fn new() -> MercuryMultiGetRequest {
  131. MercuryMultiGetRequest::new()
  132. }
  133. fn descriptor_static(_: ::std::option::Option<MercuryMultiGetRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
  134. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  135. lock: ::protobuf::lazy::ONCE_INIT,
  136. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  137. };
  138. unsafe {
  139. descriptor.get(|| {
  140. let mut fields = ::std::vec::Vec::new();
  141. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MercuryRequest>>(
  142. "request",
  143. MercuryMultiGetRequest::get_request_for_reflect,
  144. MercuryMultiGetRequest::mut_request_for_reflect,
  145. ));
  146. ::protobuf::reflect::MessageDescriptor::new::<MercuryMultiGetRequest>(
  147. "MercuryMultiGetRequest",
  148. fields,
  149. file_descriptor_proto()
  150. )
  151. })
  152. }
  153. }
  154. }
  155. impl ::protobuf::Clear for MercuryMultiGetRequest {
  156. fn clear(&mut self) {
  157. self.clear_request();
  158. self.unknown_fields.clear();
  159. }
  160. }
  161. impl ::std::fmt::Debug for MercuryMultiGetRequest {
  162. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  163. ::protobuf::text_format::fmt(self, f)
  164. }
  165. }
  166. impl ::protobuf::reflect::ProtobufValue for MercuryMultiGetRequest {
  167. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  168. ::protobuf::reflect::ProtobufValueRef::Message(self)
  169. }
  170. }
  171. #[derive(PartialEq,Clone,Default)]
  172. pub struct MercuryMultiGetReply {
  173. // message fields
  174. reply: ::protobuf::RepeatedField<MercuryReply>,
  175. // special fields
  176. unknown_fields: ::protobuf::UnknownFields,
  177. cached_size: ::protobuf::CachedSize,
  178. }
  179. // see codegen.rs for the explanation why impl Sync explicitly
  180. unsafe impl ::std::marker::Sync for MercuryMultiGetReply {}
  181. impl MercuryMultiGetReply {
  182. pub fn new() -> MercuryMultiGetReply {
  183. ::std::default::Default::default()
  184. }
  185. pub fn default_instance() -> &'static MercuryMultiGetReply {
  186. static mut instance: ::protobuf::lazy::Lazy<MercuryMultiGetReply> = ::protobuf::lazy::Lazy {
  187. lock: ::protobuf::lazy::ONCE_INIT,
  188. ptr: 0 as *const MercuryMultiGetReply,
  189. };
  190. unsafe {
  191. instance.get(MercuryMultiGetReply::new)
  192. }
  193. }
  194. // repeated .MercuryReply reply = 1;
  195. pub fn clear_reply(&mut self) {
  196. self.reply.clear();
  197. }
  198. // Param is passed by value, moved
  199. pub fn set_reply(&mut self, v: ::protobuf::RepeatedField<MercuryReply>) {
  200. self.reply = v;
  201. }
  202. // Mutable pointer to the field.
  203. pub fn mut_reply(&mut self) -> &mut ::protobuf::RepeatedField<MercuryReply> {
  204. &mut self.reply
  205. }
  206. // Take field
  207. pub fn take_reply(&mut self) -> ::protobuf::RepeatedField<MercuryReply> {
  208. ::std::mem::replace(&mut self.reply, ::protobuf::RepeatedField::new())
  209. }
  210. pub fn get_reply(&self) -> &[MercuryReply] {
  211. &self.reply
  212. }
  213. fn get_reply_for_reflect(&self) -> &::protobuf::RepeatedField<MercuryReply> {
  214. &self.reply
  215. }
  216. fn mut_reply_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<MercuryReply> {
  217. &mut self.reply
  218. }
  219. }
  220. impl ::protobuf::Message for MercuryMultiGetReply {
  221. fn is_initialized(&self) -> bool {
  222. true
  223. }
  224. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  225. while !is.eof()? {
  226. let (field_number, wire_type) = is.read_tag_unpack()?;
  227. match field_number {
  228. 1 => {
  229. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.reply)?;
  230. },
  231. _ => {
  232. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  233. },
  234. };
  235. }
  236. ::std::result::Result::Ok(())
  237. }
  238. // Compute sizes of nested messages
  239. #[allow(unused_variables)]
  240. fn compute_size(&self) -> u32 {
  241. let mut my_size = 0;
  242. for value in &self.reply {
  243. let len = value.compute_size();
  244. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  245. };
  246. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  247. self.cached_size.set(my_size);
  248. my_size
  249. }
  250. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  251. for v in &self.reply {
  252. os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  253. os.write_raw_varint32(v.get_cached_size())?;
  254. v.write_to_with_cached_sizes(os)?;
  255. };
  256. os.write_unknown_fields(self.get_unknown_fields())?;
  257. ::std::result::Result::Ok(())
  258. }
  259. fn get_cached_size(&self) -> u32 {
  260. self.cached_size.get()
  261. }
  262. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  263. &self.unknown_fields
  264. }
  265. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  266. &mut self.unknown_fields
  267. }
  268. fn as_any(&self) -> &::std::any::Any {
  269. self as &::std::any::Any
  270. }
  271. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  272. self as &mut ::std::any::Any
  273. }
  274. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  275. self
  276. }
  277. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  278. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  279. }
  280. }
  281. impl ::protobuf::MessageStatic for MercuryMultiGetReply {
  282. fn new() -> MercuryMultiGetReply {
  283. MercuryMultiGetReply::new()
  284. }
  285. fn descriptor_static(_: ::std::option::Option<MercuryMultiGetReply>) -> &'static ::protobuf::reflect::MessageDescriptor {
  286. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  287. lock: ::protobuf::lazy::ONCE_INIT,
  288. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  289. };
  290. unsafe {
  291. descriptor.get(|| {
  292. let mut fields = ::std::vec::Vec::new();
  293. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MercuryReply>>(
  294. "reply",
  295. MercuryMultiGetReply::get_reply_for_reflect,
  296. MercuryMultiGetReply::mut_reply_for_reflect,
  297. ));
  298. ::protobuf::reflect::MessageDescriptor::new::<MercuryMultiGetReply>(
  299. "MercuryMultiGetReply",
  300. fields,
  301. file_descriptor_proto()
  302. )
  303. })
  304. }
  305. }
  306. }
  307. impl ::protobuf::Clear for MercuryMultiGetReply {
  308. fn clear(&mut self) {
  309. self.clear_reply();
  310. self.unknown_fields.clear();
  311. }
  312. }
  313. impl ::std::fmt::Debug for MercuryMultiGetReply {
  314. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  315. ::protobuf::text_format::fmt(self, f)
  316. }
  317. }
  318. impl ::protobuf::reflect::ProtobufValue for MercuryMultiGetReply {
  319. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  320. ::protobuf::reflect::ProtobufValueRef::Message(self)
  321. }
  322. }
  323. #[derive(PartialEq,Clone,Default)]
  324. pub struct MercuryRequest {
  325. // message fields
  326. uri: ::protobuf::SingularField<::std::string::String>,
  327. content_type: ::protobuf::SingularField<::std::string::String>,
  328. body: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  329. etag: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  330. // special fields
  331. unknown_fields: ::protobuf::UnknownFields,
  332. cached_size: ::protobuf::CachedSize,
  333. }
  334. // see codegen.rs for the explanation why impl Sync explicitly
  335. unsafe impl ::std::marker::Sync for MercuryRequest {}
  336. impl MercuryRequest {
  337. pub fn new() -> MercuryRequest {
  338. ::std::default::Default::default()
  339. }
  340. pub fn default_instance() -> &'static MercuryRequest {
  341. static mut instance: ::protobuf::lazy::Lazy<MercuryRequest> = ::protobuf::lazy::Lazy {
  342. lock: ::protobuf::lazy::ONCE_INIT,
  343. ptr: 0 as *const MercuryRequest,
  344. };
  345. unsafe {
  346. instance.get(MercuryRequest::new)
  347. }
  348. }
  349. // optional string uri = 1;
  350. pub fn clear_uri(&mut self) {
  351. self.uri.clear();
  352. }
  353. pub fn has_uri(&self) -> bool {
  354. self.uri.is_some()
  355. }
  356. // Param is passed by value, moved
  357. pub fn set_uri(&mut self, v: ::std::string::String) {
  358. self.uri = ::protobuf::SingularField::some(v);
  359. }
  360. // Mutable pointer to the field.
  361. // If field is not initialized, it is initialized with default value first.
  362. pub fn mut_uri(&mut self) -> &mut ::std::string::String {
  363. if self.uri.is_none() {
  364. self.uri.set_default();
  365. };
  366. self.uri.as_mut().unwrap()
  367. }
  368. // Take field
  369. pub fn take_uri(&mut self) -> ::std::string::String {
  370. self.uri.take().unwrap_or_else(|| ::std::string::String::new())
  371. }
  372. pub fn get_uri(&self) -> &str {
  373. match self.uri.as_ref() {
  374. Some(v) => &v,
  375. None => "",
  376. }
  377. }
  378. fn get_uri_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  379. &self.uri
  380. }
  381. fn mut_uri_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  382. &mut self.uri
  383. }
  384. // optional string content_type = 2;
  385. pub fn clear_content_type(&mut self) {
  386. self.content_type.clear();
  387. }
  388. pub fn has_content_type(&self) -> bool {
  389. self.content_type.is_some()
  390. }
  391. // Param is passed by value, moved
  392. pub fn set_content_type(&mut self, v: ::std::string::String) {
  393. self.content_type = ::protobuf::SingularField::some(v);
  394. }
  395. // Mutable pointer to the field.
  396. // If field is not initialized, it is initialized with default value first.
  397. pub fn mut_content_type(&mut self) -> &mut ::std::string::String {
  398. if self.content_type.is_none() {
  399. self.content_type.set_default();
  400. };
  401. self.content_type.as_mut().unwrap()
  402. }
  403. // Take field
  404. pub fn take_content_type(&mut self) -> ::std::string::String {
  405. self.content_type.take().unwrap_or_else(|| ::std::string::String::new())
  406. }
  407. pub fn get_content_type(&self) -> &str {
  408. match self.content_type.as_ref() {
  409. Some(v) => &v,
  410. None => "",
  411. }
  412. }
  413. fn get_content_type_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  414. &self.content_type
  415. }
  416. fn mut_content_type_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  417. &mut self.content_type
  418. }
  419. // optional bytes body = 3;
  420. pub fn clear_body(&mut self) {
  421. self.body.clear();
  422. }
  423. pub fn has_body(&self) -> bool {
  424. self.body.is_some()
  425. }
  426. // Param is passed by value, moved
  427. pub fn set_body(&mut self, v: ::std::vec::Vec<u8>) {
  428. self.body = ::protobuf::SingularField::some(v);
  429. }
  430. // Mutable pointer to the field.
  431. // If field is not initialized, it is initialized with default value first.
  432. pub fn mut_body(&mut self) -> &mut ::std::vec::Vec<u8> {
  433. if self.body.is_none() {
  434. self.body.set_default();
  435. };
  436. self.body.as_mut().unwrap()
  437. }
  438. // Take field
  439. pub fn take_body(&mut self) -> ::std::vec::Vec<u8> {
  440. self.body.take().unwrap_or_else(|| ::std::vec::Vec::new())
  441. }
  442. pub fn get_body(&self) -> &[u8] {
  443. match self.body.as_ref() {
  444. Some(v) => &v,
  445. None => &[],
  446. }
  447. }
  448. fn get_body_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  449. &self.body
  450. }
  451. fn mut_body_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  452. &mut self.body
  453. }
  454. // optional bytes etag = 4;
  455. pub fn clear_etag(&mut self) {
  456. self.etag.clear();
  457. }
  458. pub fn has_etag(&self) -> bool {
  459. self.etag.is_some()
  460. }
  461. // Param is passed by value, moved
  462. pub fn set_etag(&mut self, v: ::std::vec::Vec<u8>) {
  463. self.etag = ::protobuf::SingularField::some(v);
  464. }
  465. // Mutable pointer to the field.
  466. // If field is not initialized, it is initialized with default value first.
  467. pub fn mut_etag(&mut self) -> &mut ::std::vec::Vec<u8> {
  468. if self.etag.is_none() {
  469. self.etag.set_default();
  470. };
  471. self.etag.as_mut().unwrap()
  472. }
  473. // Take field
  474. pub fn take_etag(&mut self) -> ::std::vec::Vec<u8> {
  475. self.etag.take().unwrap_or_else(|| ::std::vec::Vec::new())
  476. }
  477. pub fn get_etag(&self) -> &[u8] {
  478. match self.etag.as_ref() {
  479. Some(v) => &v,
  480. None => &[],
  481. }
  482. }
  483. fn get_etag_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  484. &self.etag
  485. }
  486. fn mut_etag_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  487. &mut self.etag
  488. }
  489. }
  490. impl ::protobuf::Message for MercuryRequest {
  491. fn is_initialized(&self) -> bool {
  492. true
  493. }
  494. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  495. while !is.eof()? {
  496. let (field_number, wire_type) = is.read_tag_unpack()?;
  497. match field_number {
  498. 1 => {
  499. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.uri)?;
  500. },
  501. 2 => {
  502. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.content_type)?;
  503. },
  504. 3 => {
  505. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.body)?;
  506. },
  507. 4 => {
  508. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.etag)?;
  509. },
  510. _ => {
  511. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  512. },
  513. };
  514. }
  515. ::std::result::Result::Ok(())
  516. }
  517. // Compute sizes of nested messages
  518. #[allow(unused_variables)]
  519. fn compute_size(&self) -> u32 {
  520. let mut my_size = 0;
  521. if let Some(v) = self.uri.as_ref() {
  522. my_size += ::protobuf::rt::string_size(1, &v);
  523. };
  524. if let Some(v) = self.content_type.as_ref() {
  525. my_size += ::protobuf::rt::string_size(2, &v);
  526. };
  527. if let Some(v) = self.body.as_ref() {
  528. my_size += ::protobuf::rt::bytes_size(3, &v);
  529. };
  530. if let Some(v) = self.etag.as_ref() {
  531. my_size += ::protobuf::rt::bytes_size(4, &v);
  532. };
  533. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  534. self.cached_size.set(my_size);
  535. my_size
  536. }
  537. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  538. if let Some(v) = self.uri.as_ref() {
  539. os.write_string(1, &v)?;
  540. };
  541. if let Some(v) = self.content_type.as_ref() {
  542. os.write_string(2, &v)?;
  543. };
  544. if let Some(v) = self.body.as_ref() {
  545. os.write_bytes(3, &v)?;
  546. };
  547. if let Some(v) = self.etag.as_ref() {
  548. os.write_bytes(4, &v)?;
  549. };
  550. os.write_unknown_fields(self.get_unknown_fields())?;
  551. ::std::result::Result::Ok(())
  552. }
  553. fn get_cached_size(&self) -> u32 {
  554. self.cached_size.get()
  555. }
  556. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  557. &self.unknown_fields
  558. }
  559. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  560. &mut self.unknown_fields
  561. }
  562. fn as_any(&self) -> &::std::any::Any {
  563. self as &::std::any::Any
  564. }
  565. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  566. self as &mut ::std::any::Any
  567. }
  568. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  569. self
  570. }
  571. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  572. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  573. }
  574. }
  575. impl ::protobuf::MessageStatic for MercuryRequest {
  576. fn new() -> MercuryRequest {
  577. MercuryRequest::new()
  578. }
  579. fn descriptor_static(_: ::std::option::Option<MercuryRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
  580. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  581. lock: ::protobuf::lazy::ONCE_INIT,
  582. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  583. };
  584. unsafe {
  585. descriptor.get(|| {
  586. let mut fields = ::std::vec::Vec::new();
  587. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  588. "uri",
  589. MercuryRequest::get_uri_for_reflect,
  590. MercuryRequest::mut_uri_for_reflect,
  591. ));
  592. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  593. "content_type",
  594. MercuryRequest::get_content_type_for_reflect,
  595. MercuryRequest::mut_content_type_for_reflect,
  596. ));
  597. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  598. "body",
  599. MercuryRequest::get_body_for_reflect,
  600. MercuryRequest::mut_body_for_reflect,
  601. ));
  602. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  603. "etag",
  604. MercuryRequest::get_etag_for_reflect,
  605. MercuryRequest::mut_etag_for_reflect,
  606. ));
  607. ::protobuf::reflect::MessageDescriptor::new::<MercuryRequest>(
  608. "MercuryRequest",
  609. fields,
  610. file_descriptor_proto()
  611. )
  612. })
  613. }
  614. }
  615. }
  616. impl ::protobuf::Clear for MercuryRequest {
  617. fn clear(&mut self) {
  618. self.clear_uri();
  619. self.clear_content_type();
  620. self.clear_body();
  621. self.clear_etag();
  622. self.unknown_fields.clear();
  623. }
  624. }
  625. impl ::std::fmt::Debug for MercuryRequest {
  626. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  627. ::protobuf::text_format::fmt(self, f)
  628. }
  629. }
  630. impl ::protobuf::reflect::ProtobufValue for MercuryRequest {
  631. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  632. ::protobuf::reflect::ProtobufValueRef::Message(self)
  633. }
  634. }
  635. #[derive(PartialEq,Clone,Default)]
  636. pub struct MercuryReply {
  637. // message fields
  638. status_code: ::std::option::Option<i32>,
  639. status_message: ::protobuf::SingularField<::std::string::String>,
  640. cache_policy: ::std::option::Option<MercuryReply_CachePolicy>,
  641. ttl: ::std::option::Option<i32>,
  642. etag: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  643. content_type: ::protobuf::SingularField<::std::string::String>,
  644. body: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  645. // special fields
  646. unknown_fields: ::protobuf::UnknownFields,
  647. cached_size: ::protobuf::CachedSize,
  648. }
  649. // see codegen.rs for the explanation why impl Sync explicitly
  650. unsafe impl ::std::marker::Sync for MercuryReply {}
  651. impl MercuryReply {
  652. pub fn new() -> MercuryReply {
  653. ::std::default::Default::default()
  654. }
  655. pub fn default_instance() -> &'static MercuryReply {
  656. static mut instance: ::protobuf::lazy::Lazy<MercuryReply> = ::protobuf::lazy::Lazy {
  657. lock: ::protobuf::lazy::ONCE_INIT,
  658. ptr: 0 as *const MercuryReply,
  659. };
  660. unsafe {
  661. instance.get(MercuryReply::new)
  662. }
  663. }
  664. // optional sint32 status_code = 1;
  665. pub fn clear_status_code(&mut self) {
  666. self.status_code = ::std::option::Option::None;
  667. }
  668. pub fn has_status_code(&self) -> bool {
  669. self.status_code.is_some()
  670. }
  671. // Param is passed by value, moved
  672. pub fn set_status_code(&mut self, v: i32) {
  673. self.status_code = ::std::option::Option::Some(v);
  674. }
  675. pub fn get_status_code(&self) -> i32 {
  676. self.status_code.unwrap_or(0)
  677. }
  678. fn get_status_code_for_reflect(&self) -> &::std::option::Option<i32> {
  679. &self.status_code
  680. }
  681. fn mut_status_code_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  682. &mut self.status_code
  683. }
  684. // optional string status_message = 2;
  685. pub fn clear_status_message(&mut self) {
  686. self.status_message.clear();
  687. }
  688. pub fn has_status_message(&self) -> bool {
  689. self.status_message.is_some()
  690. }
  691. // Param is passed by value, moved
  692. pub fn set_status_message(&mut self, v: ::std::string::String) {
  693. self.status_message = ::protobuf::SingularField::some(v);
  694. }
  695. // Mutable pointer to the field.
  696. // If field is not initialized, it is initialized with default value first.
  697. pub fn mut_status_message(&mut self) -> &mut ::std::string::String {
  698. if self.status_message.is_none() {
  699. self.status_message.set_default();
  700. };
  701. self.status_message.as_mut().unwrap()
  702. }
  703. // Take field
  704. pub fn take_status_message(&mut self) -> ::std::string::String {
  705. self.status_message.take().unwrap_or_else(|| ::std::string::String::new())
  706. }
  707. pub fn get_status_message(&self) -> &str {
  708. match self.status_message.as_ref() {
  709. Some(v) => &v,
  710. None => "",
  711. }
  712. }
  713. fn get_status_message_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  714. &self.status_message
  715. }
  716. fn mut_status_message_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  717. &mut self.status_message
  718. }
  719. // optional .MercuryReply.CachePolicy cache_policy = 3;
  720. pub fn clear_cache_policy(&mut self) {
  721. self.cache_policy = ::std::option::Option::None;
  722. }
  723. pub fn has_cache_policy(&self) -> bool {
  724. self.cache_policy.is_some()
  725. }
  726. // Param is passed by value, moved
  727. pub fn set_cache_policy(&mut self, v: MercuryReply_CachePolicy) {
  728. self.cache_policy = ::std::option::Option::Some(v);
  729. }
  730. pub fn get_cache_policy(&self) -> MercuryReply_CachePolicy {
  731. self.cache_policy.unwrap_or(MercuryReply_CachePolicy::CACHE_NO)
  732. }
  733. fn get_cache_policy_for_reflect(&self) -> &::std::option::Option<MercuryReply_CachePolicy> {
  734. &self.cache_policy
  735. }
  736. fn mut_cache_policy_for_reflect(&mut self) -> &mut ::std::option::Option<MercuryReply_CachePolicy> {
  737. &mut self.cache_policy
  738. }
  739. // optional sint32 ttl = 4;
  740. pub fn clear_ttl(&mut self) {
  741. self.ttl = ::std::option::Option::None;
  742. }
  743. pub fn has_ttl(&self) -> bool {
  744. self.ttl.is_some()
  745. }
  746. // Param is passed by value, moved
  747. pub fn set_ttl(&mut self, v: i32) {
  748. self.ttl = ::std::option::Option::Some(v);
  749. }
  750. pub fn get_ttl(&self) -> i32 {
  751. self.ttl.unwrap_or(0)
  752. }
  753. fn get_ttl_for_reflect(&self) -> &::std::option::Option<i32> {
  754. &self.ttl
  755. }
  756. fn mut_ttl_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  757. &mut self.ttl
  758. }
  759. // optional bytes etag = 5;
  760. pub fn clear_etag(&mut self) {
  761. self.etag.clear();
  762. }
  763. pub fn has_etag(&self) -> bool {
  764. self.etag.is_some()
  765. }
  766. // Param is passed by value, moved
  767. pub fn set_etag(&mut self, v: ::std::vec::Vec<u8>) {
  768. self.etag = ::protobuf::SingularField::some(v);
  769. }
  770. // Mutable pointer to the field.
  771. // If field is not initialized, it is initialized with default value first.
  772. pub fn mut_etag(&mut self) -> &mut ::std::vec::Vec<u8> {
  773. if self.etag.is_none() {
  774. self.etag.set_default();
  775. };
  776. self.etag.as_mut().unwrap()
  777. }
  778. // Take field
  779. pub fn take_etag(&mut self) -> ::std::vec::Vec<u8> {
  780. self.etag.take().unwrap_or_else(|| ::std::vec::Vec::new())
  781. }
  782. pub fn get_etag(&self) -> &[u8] {
  783. match self.etag.as_ref() {
  784. Some(v) => &v,
  785. None => &[],
  786. }
  787. }
  788. fn get_etag_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  789. &self.etag
  790. }
  791. fn mut_etag_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  792. &mut self.etag
  793. }
  794. // optional string content_type = 6;
  795. pub fn clear_content_type(&mut self) {
  796. self.content_type.clear();
  797. }
  798. pub fn has_content_type(&self) -> bool {
  799. self.content_type.is_some()
  800. }
  801. // Param is passed by value, moved
  802. pub fn set_content_type(&mut self, v: ::std::string::String) {
  803. self.content_type = ::protobuf::SingularField::some(v);
  804. }
  805. // Mutable pointer to the field.
  806. // If field is not initialized, it is initialized with default value first.
  807. pub fn mut_content_type(&mut self) -> &mut ::std::string::String {
  808. if self.content_type.is_none() {
  809. self.content_type.set_default();
  810. };
  811. self.content_type.as_mut().unwrap()
  812. }
  813. // Take field
  814. pub fn take_content_type(&mut self) -> ::std::string::String {
  815. self.content_type.take().unwrap_or_else(|| ::std::string::String::new())
  816. }
  817. pub fn get_content_type(&self) -> &str {
  818. match self.content_type.as_ref() {
  819. Some(v) => &v,
  820. None => "",
  821. }
  822. }
  823. fn get_content_type_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  824. &self.content_type
  825. }
  826. fn mut_content_type_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  827. &mut self.content_type
  828. }
  829. // optional bytes body = 7;
  830. pub fn clear_body(&mut self) {
  831. self.body.clear();
  832. }
  833. pub fn has_body(&self) -> bool {
  834. self.body.is_some()
  835. }
  836. // Param is passed by value, moved
  837. pub fn set_body(&mut self, v: ::std::vec::Vec<u8>) {
  838. self.body = ::protobuf::SingularField::some(v);
  839. }
  840. // Mutable pointer to the field.
  841. // If field is not initialized, it is initialized with default value first.
  842. pub fn mut_body(&mut self) -> &mut ::std::vec::Vec<u8> {
  843. if self.body.is_none() {
  844. self.body.set_default();
  845. };
  846. self.body.as_mut().unwrap()
  847. }
  848. // Take field
  849. pub fn take_body(&mut self) -> ::std::vec::Vec<u8> {
  850. self.body.take().unwrap_or_else(|| ::std::vec::Vec::new())
  851. }
  852. pub fn get_body(&self) -> &[u8] {
  853. match self.body.as_ref() {
  854. Some(v) => &v,
  855. None => &[],
  856. }
  857. }
  858. fn get_body_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  859. &self.body
  860. }
  861. fn mut_body_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  862. &mut self.body
  863. }
  864. }
  865. impl ::protobuf::Message for MercuryReply {
  866. fn is_initialized(&self) -> bool {
  867. true
  868. }
  869. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  870. while !is.eof()? {
  871. let (field_number, wire_type) = is.read_tag_unpack()?;
  872. match field_number {
  873. 1 => {
  874. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  875. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  876. };
  877. let tmp = is.read_sint32()?;
  878. self.status_code = ::std::option::Option::Some(tmp);
  879. },
  880. 2 => {
  881. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.status_message)?;
  882. },
  883. 3 => {
  884. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  885. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  886. };
  887. let tmp = is.read_enum()?;
  888. self.cache_policy = ::std::option::Option::Some(tmp);
  889. },
  890. 4 => {
  891. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  892. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  893. };
  894. let tmp = is.read_sint32()?;
  895. self.ttl = ::std::option::Option::Some(tmp);
  896. },
  897. 5 => {
  898. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.etag)?;
  899. },
  900. 6 => {
  901. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.content_type)?;
  902. },
  903. 7 => {
  904. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.body)?;
  905. },
  906. _ => {
  907. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  908. },
  909. };
  910. }
  911. ::std::result::Result::Ok(())
  912. }
  913. // Compute sizes of nested messages
  914. #[allow(unused_variables)]
  915. fn compute_size(&self) -> u32 {
  916. let mut my_size = 0;
  917. if let Some(v) = self.status_code {
  918. my_size += ::protobuf::rt::value_varint_zigzag_size(1, v);
  919. };
  920. if let Some(v) = self.status_message.as_ref() {
  921. my_size += ::protobuf::rt::string_size(2, &v);
  922. };
  923. if let Some(v) = self.cache_policy {
  924. my_size += ::protobuf::rt::enum_size(3, v);
  925. };
  926. if let Some(v) = self.ttl {
  927. my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
  928. };
  929. if let Some(v) = self.etag.as_ref() {
  930. my_size += ::protobuf::rt::bytes_size(5, &v);
  931. };
  932. if let Some(v) = self.content_type.as_ref() {
  933. my_size += ::protobuf::rt::string_size(6, &v);
  934. };
  935. if let Some(v) = self.body.as_ref() {
  936. my_size += ::protobuf::rt::bytes_size(7, &v);
  937. };
  938. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  939. self.cached_size.set(my_size);
  940. my_size
  941. }
  942. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  943. if let Some(v) = self.status_code {
  944. os.write_sint32(1, v)?;
  945. };
  946. if let Some(v) = self.status_message.as_ref() {
  947. os.write_string(2, &v)?;
  948. };
  949. if let Some(v) = self.cache_policy {
  950. os.write_enum(3, v.value())?;
  951. };
  952. if let Some(v) = self.ttl {
  953. os.write_sint32(4, v)?;
  954. };
  955. if let Some(v) = self.etag.as_ref() {
  956. os.write_bytes(5, &v)?;
  957. };
  958. if let Some(v) = self.content_type.as_ref() {
  959. os.write_string(6, &v)?;
  960. };
  961. if let Some(v) = self.body.as_ref() {
  962. os.write_bytes(7, &v)?;
  963. };
  964. os.write_unknown_fields(self.get_unknown_fields())?;
  965. ::std::result::Result::Ok(())
  966. }
  967. fn get_cached_size(&self) -> u32 {
  968. self.cached_size.get()
  969. }
  970. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  971. &self.unknown_fields
  972. }
  973. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  974. &mut self.unknown_fields
  975. }
  976. fn as_any(&self) -> &::std::any::Any {
  977. self as &::std::any::Any
  978. }
  979. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  980. self as &mut ::std::any::Any
  981. }
  982. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  983. self
  984. }
  985. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  986. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  987. }
  988. }
  989. impl ::protobuf::MessageStatic for MercuryReply {
  990. fn new() -> MercuryReply {
  991. MercuryReply::new()
  992. }
  993. fn descriptor_static(_: ::std::option::Option<MercuryReply>) -> &'static ::protobuf::reflect::MessageDescriptor {
  994. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  995. lock: ::protobuf::lazy::ONCE_INIT,
  996. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  997. };
  998. unsafe {
  999. descriptor.get(|| {
  1000. let mut fields = ::std::vec::Vec::new();
  1001. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint32>(
  1002. "status_code",
  1003. MercuryReply::get_status_code_for_reflect,
  1004. MercuryReply::mut_status_code_for_reflect,
  1005. ));
  1006. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1007. "status_message",
  1008. MercuryReply::get_status_message_for_reflect,
  1009. MercuryReply::mut_status_message_for_reflect,
  1010. ));
  1011. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MercuryReply_CachePolicy>>(
  1012. "cache_policy",
  1013. MercuryReply::get_cache_policy_for_reflect,
  1014. MercuryReply::mut_cache_policy_for_reflect,
  1015. ));
  1016. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint32>(
  1017. "ttl",
  1018. MercuryReply::get_ttl_for_reflect,
  1019. MercuryReply::mut_ttl_for_reflect,
  1020. ));
  1021. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1022. "etag",
  1023. MercuryReply::get_etag_for_reflect,
  1024. MercuryReply::mut_etag_for_reflect,
  1025. ));
  1026. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1027. "content_type",
  1028. MercuryReply::get_content_type_for_reflect,
  1029. MercuryReply::mut_content_type_for_reflect,
  1030. ));
  1031. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1032. "body",
  1033. MercuryReply::get_body_for_reflect,
  1034. MercuryReply::mut_body_for_reflect,
  1035. ));
  1036. ::protobuf::reflect::MessageDescriptor::new::<MercuryReply>(
  1037. "MercuryReply",
  1038. fields,
  1039. file_descriptor_proto()
  1040. )
  1041. })
  1042. }
  1043. }
  1044. }
  1045. impl ::protobuf::Clear for MercuryReply {
  1046. fn clear(&mut self) {
  1047. self.clear_status_code();
  1048. self.clear_status_message();
  1049. self.clear_cache_policy();
  1050. self.clear_ttl();
  1051. self.clear_etag();
  1052. self.clear_content_type();
  1053. self.clear_body();
  1054. self.unknown_fields.clear();
  1055. }
  1056. }
  1057. impl ::std::fmt::Debug for MercuryReply {
  1058. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1059. ::protobuf::text_format::fmt(self, f)
  1060. }
  1061. }
  1062. impl ::protobuf::reflect::ProtobufValue for MercuryReply {
  1063. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1064. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1065. }
  1066. }
  1067. #[derive(Clone,PartialEq,Eq,Debug,Hash)]
  1068. pub enum MercuryReply_CachePolicy {
  1069. CACHE_NO = 1,
  1070. CACHE_PRIVATE = 2,
  1071. CACHE_PUBLIC = 3,
  1072. }
  1073. impl ::protobuf::ProtobufEnum for MercuryReply_CachePolicy {
  1074. fn value(&self) -> i32 {
  1075. *self as i32
  1076. }
  1077. fn from_i32(value: i32) -> ::std::option::Option<MercuryReply_CachePolicy> {
  1078. match value {
  1079. 1 => ::std::option::Option::Some(MercuryReply_CachePolicy::CACHE_NO),
  1080. 2 => ::std::option::Option::Some(MercuryReply_CachePolicy::CACHE_PRIVATE),
  1081. 3 => ::std::option::Option::Some(MercuryReply_CachePolicy::CACHE_PUBLIC),
  1082. _ => ::std::option::Option::None
  1083. }
  1084. }
  1085. fn values() -> &'static [Self] {
  1086. static values: &'static [MercuryReply_CachePolicy] = &[
  1087. MercuryReply_CachePolicy::CACHE_NO,
  1088. MercuryReply_CachePolicy::CACHE_PRIVATE,
  1089. MercuryReply_CachePolicy::CACHE_PUBLIC,
  1090. ];
  1091. values
  1092. }
  1093. fn enum_descriptor_static(_: Option<MercuryReply_CachePolicy>) -> &'static ::protobuf::reflect::EnumDescriptor {
  1094. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
  1095. lock: ::protobuf::lazy::ONCE_INIT,
  1096. ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
  1097. };
  1098. unsafe {
  1099. descriptor.get(|| {
  1100. ::protobuf::reflect::EnumDescriptor::new("MercuryReply_CachePolicy", file_descriptor_proto())
  1101. })
  1102. }
  1103. }
  1104. }
  1105. impl ::std::marker::Copy for MercuryReply_CachePolicy {
  1106. }
  1107. impl ::protobuf::reflect::ProtobufValue for MercuryReply_CachePolicy {
  1108. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1109. ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
  1110. }
  1111. }
  1112. #[derive(PartialEq,Clone,Default)]
  1113. pub struct Header {
  1114. // message fields
  1115. uri: ::protobuf::SingularField<::std::string::String>,
  1116. content_type: ::protobuf::SingularField<::std::string::String>,
  1117. method: ::protobuf::SingularField<::std::string::String>,
  1118. status_code: ::std::option::Option<i32>,
  1119. user_fields: ::protobuf::RepeatedField<UserField>,
  1120. // special fields
  1121. unknown_fields: ::protobuf::UnknownFields,
  1122. cached_size: ::protobuf::CachedSize,
  1123. }
  1124. // see codegen.rs for the explanation why impl Sync explicitly
  1125. unsafe impl ::std::marker::Sync for Header {}
  1126. impl Header {
  1127. pub fn new() -> Header {
  1128. ::std::default::Default::default()
  1129. }
  1130. pub fn default_instance() -> &'static Header {
  1131. static mut instance: ::protobuf::lazy::Lazy<Header> = ::protobuf::lazy::Lazy {
  1132. lock: ::protobuf::lazy::ONCE_INIT,
  1133. ptr: 0 as *const Header,
  1134. };
  1135. unsafe {
  1136. instance.get(Header::new)
  1137. }
  1138. }
  1139. // optional string uri = 1;
  1140. pub fn clear_uri(&mut self) {
  1141. self.uri.clear();
  1142. }
  1143. pub fn has_uri(&self) -> bool {
  1144. self.uri.is_some()
  1145. }
  1146. // Param is passed by value, moved
  1147. pub fn set_uri(&mut self, v: ::std::string::String) {
  1148. self.uri = ::protobuf::SingularField::some(v);
  1149. }
  1150. // Mutable pointer to the field.
  1151. // If field is not initialized, it is initialized with default value first.
  1152. pub fn mut_uri(&mut self) -> &mut ::std::string::String {
  1153. if self.uri.is_none() {
  1154. self.uri.set_default();
  1155. };
  1156. self.uri.as_mut().unwrap()
  1157. }
  1158. // Take field
  1159. pub fn take_uri(&mut self) -> ::std::string::String {
  1160. self.uri.take().unwrap_or_else(|| ::std::string::String::new())
  1161. }
  1162. pub fn get_uri(&self) -> &str {
  1163. match self.uri.as_ref() {
  1164. Some(v) => &v,
  1165. None => "",
  1166. }
  1167. }
  1168. fn get_uri_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  1169. &self.uri
  1170. }
  1171. fn mut_uri_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  1172. &mut self.uri
  1173. }
  1174. // optional string content_type = 2;
  1175. pub fn clear_content_type(&mut self) {
  1176. self.content_type.clear();
  1177. }
  1178. pub fn has_content_type(&self) -> bool {
  1179. self.content_type.is_some()
  1180. }
  1181. // Param is passed by value, moved
  1182. pub fn set_content_type(&mut self, v: ::std::string::String) {
  1183. self.content_type = ::protobuf::SingularField::some(v);
  1184. }
  1185. // Mutable pointer to the field.
  1186. // If field is not initialized, it is initialized with default value first.
  1187. pub fn mut_content_type(&mut self) -> &mut ::std::string::String {
  1188. if self.content_type.is_none() {
  1189. self.content_type.set_default();
  1190. };
  1191. self.content_type.as_mut().unwrap()
  1192. }
  1193. // Take field
  1194. pub fn take_content_type(&mut self) -> ::std::string::String {
  1195. self.content_type.take().unwrap_or_else(|| ::std::string::String::new())
  1196. }
  1197. pub fn get_content_type(&self) -> &str {
  1198. match self.content_type.as_ref() {
  1199. Some(v) => &v,
  1200. None => "",
  1201. }
  1202. }
  1203. fn get_content_type_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  1204. &self.content_type
  1205. }
  1206. fn mut_content_type_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  1207. &mut self.content_type
  1208. }
  1209. // optional string method = 3;
  1210. pub fn clear_method(&mut self) {
  1211. self.method.clear();
  1212. }
  1213. pub fn has_method(&self) -> bool {
  1214. self.method.is_some()
  1215. }
  1216. // Param is passed by value, moved
  1217. pub fn set_method(&mut self, v: ::std::string::String) {
  1218. self.method = ::protobuf::SingularField::some(v);
  1219. }
  1220. // Mutable pointer to the field.
  1221. // If field is not initialized, it is initialized with default value first.
  1222. pub fn mut_method(&mut self) -> &mut ::std::string::String {
  1223. if self.method.is_none() {
  1224. self.method.set_default();
  1225. };
  1226. self.method.as_mut().unwrap()
  1227. }
  1228. // Take field
  1229. pub fn take_method(&mut self) -> ::std::string::String {
  1230. self.method.take().unwrap_or_else(|| ::std::string::String::new())
  1231. }
  1232. pub fn get_method(&self) -> &str {
  1233. match self.method.as_ref() {
  1234. Some(v) => &v,
  1235. None => "",
  1236. }
  1237. }
  1238. fn get_method_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  1239. &self.method
  1240. }
  1241. fn mut_method_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  1242. &mut self.method
  1243. }
  1244. // optional sint32 status_code = 4;
  1245. pub fn clear_status_code(&mut self) {
  1246. self.status_code = ::std::option::Option::None;
  1247. }
  1248. pub fn has_status_code(&self) -> bool {
  1249. self.status_code.is_some()
  1250. }
  1251. // Param is passed by value, moved
  1252. pub fn set_status_code(&mut self, v: i32) {
  1253. self.status_code = ::std::option::Option::Some(v);
  1254. }
  1255. pub fn get_status_code(&self) -> i32 {
  1256. self.status_code.unwrap_or(0)
  1257. }
  1258. fn get_status_code_for_reflect(&self) -> &::std::option::Option<i32> {
  1259. &self.status_code
  1260. }
  1261. fn mut_status_code_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
  1262. &mut self.status_code
  1263. }
  1264. // repeated .UserField user_fields = 6;
  1265. pub fn clear_user_fields(&mut self) {
  1266. self.user_fields.clear();
  1267. }
  1268. // Param is passed by value, moved
  1269. pub fn set_user_fields(&mut self, v: ::protobuf::RepeatedField<UserField>) {
  1270. self.user_fields = v;
  1271. }
  1272. // Mutable pointer to the field.
  1273. pub fn mut_user_fields(&mut self) -> &mut ::protobuf::RepeatedField<UserField> {
  1274. &mut self.user_fields
  1275. }
  1276. // Take field
  1277. pub fn take_user_fields(&mut self) -> ::protobuf::RepeatedField<UserField> {
  1278. ::std::mem::replace(&mut self.user_fields, ::protobuf::RepeatedField::new())
  1279. }
  1280. pub fn get_user_fields(&self) -> &[UserField] {
  1281. &self.user_fields
  1282. }
  1283. fn get_user_fields_for_reflect(&self) -> &::protobuf::RepeatedField<UserField> {
  1284. &self.user_fields
  1285. }
  1286. fn mut_user_fields_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<UserField> {
  1287. &mut self.user_fields
  1288. }
  1289. }
  1290. impl ::protobuf::Message for Header {
  1291. fn is_initialized(&self) -> bool {
  1292. true
  1293. }
  1294. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1295. while !is.eof()? {
  1296. let (field_number, wire_type) = is.read_tag_unpack()?;
  1297. match field_number {
  1298. 1 => {
  1299. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.uri)?;
  1300. },
  1301. 2 => {
  1302. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.content_type)?;
  1303. },
  1304. 3 => {
  1305. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.method)?;
  1306. },
  1307. 4 => {
  1308. if wire_type != ::protobuf::wire_format::WireTypeVarint {
  1309. return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
  1310. };
  1311. let tmp = is.read_sint32()?;
  1312. self.status_code = ::std::option::Option::Some(tmp);
  1313. },
  1314. 6 => {
  1315. ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.user_fields)?;
  1316. },
  1317. _ => {
  1318. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1319. },
  1320. };
  1321. }
  1322. ::std::result::Result::Ok(())
  1323. }
  1324. // Compute sizes of nested messages
  1325. #[allow(unused_variables)]
  1326. fn compute_size(&self) -> u32 {
  1327. let mut my_size = 0;
  1328. if let Some(v) = self.uri.as_ref() {
  1329. my_size += ::protobuf::rt::string_size(1, &v);
  1330. };
  1331. if let Some(v) = self.content_type.as_ref() {
  1332. my_size += ::protobuf::rt::string_size(2, &v);
  1333. };
  1334. if let Some(v) = self.method.as_ref() {
  1335. my_size += ::protobuf::rt::string_size(3, &v);
  1336. };
  1337. if let Some(v) = self.status_code {
  1338. my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
  1339. };
  1340. for value in &self.user_fields {
  1341. let len = value.compute_size();
  1342. my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
  1343. };
  1344. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1345. self.cached_size.set(my_size);
  1346. my_size
  1347. }
  1348. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1349. if let Some(v) = self.uri.as_ref() {
  1350. os.write_string(1, &v)?;
  1351. };
  1352. if let Some(v) = self.content_type.as_ref() {
  1353. os.write_string(2, &v)?;
  1354. };
  1355. if let Some(v) = self.method.as_ref() {
  1356. os.write_string(3, &v)?;
  1357. };
  1358. if let Some(v) = self.status_code {
  1359. os.write_sint32(4, v)?;
  1360. };
  1361. for v in &self.user_fields {
  1362. os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
  1363. os.write_raw_varint32(v.get_cached_size())?;
  1364. v.write_to_with_cached_sizes(os)?;
  1365. };
  1366. os.write_unknown_fields(self.get_unknown_fields())?;
  1367. ::std::result::Result::Ok(())
  1368. }
  1369. fn get_cached_size(&self) -> u32 {
  1370. self.cached_size.get()
  1371. }
  1372. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1373. &self.unknown_fields
  1374. }
  1375. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1376. &mut self.unknown_fields
  1377. }
  1378. fn as_any(&self) -> &::std::any::Any {
  1379. self as &::std::any::Any
  1380. }
  1381. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1382. self as &mut ::std::any::Any
  1383. }
  1384. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1385. self
  1386. }
  1387. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1388. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1389. }
  1390. }
  1391. impl ::protobuf::MessageStatic for Header {
  1392. fn new() -> Header {
  1393. Header::new()
  1394. }
  1395. fn descriptor_static(_: ::std::option::Option<Header>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1396. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1397. lock: ::protobuf::lazy::ONCE_INIT,
  1398. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1399. };
  1400. unsafe {
  1401. descriptor.get(|| {
  1402. let mut fields = ::std::vec::Vec::new();
  1403. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1404. "uri",
  1405. Header::get_uri_for_reflect,
  1406. Header::mut_uri_for_reflect,
  1407. ));
  1408. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1409. "content_type",
  1410. Header::get_content_type_for_reflect,
  1411. Header::mut_content_type_for_reflect,
  1412. ));
  1413. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1414. "method",
  1415. Header::get_method_for_reflect,
  1416. Header::mut_method_for_reflect,
  1417. ));
  1418. fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint32>(
  1419. "status_code",
  1420. Header::get_status_code_for_reflect,
  1421. Header::mut_status_code_for_reflect,
  1422. ));
  1423. fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UserField>>(
  1424. "user_fields",
  1425. Header::get_user_fields_for_reflect,
  1426. Header::mut_user_fields_for_reflect,
  1427. ));
  1428. ::protobuf::reflect::MessageDescriptor::new::<Header>(
  1429. "Header",
  1430. fields,
  1431. file_descriptor_proto()
  1432. )
  1433. })
  1434. }
  1435. }
  1436. }
  1437. impl ::protobuf::Clear for Header {
  1438. fn clear(&mut self) {
  1439. self.clear_uri();
  1440. self.clear_content_type();
  1441. self.clear_method();
  1442. self.clear_status_code();
  1443. self.clear_user_fields();
  1444. self.unknown_fields.clear();
  1445. }
  1446. }
  1447. impl ::std::fmt::Debug for Header {
  1448. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1449. ::protobuf::text_format::fmt(self, f)
  1450. }
  1451. }
  1452. impl ::protobuf::reflect::ProtobufValue for Header {
  1453. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1454. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1455. }
  1456. }
  1457. #[derive(PartialEq,Clone,Default)]
  1458. pub struct UserField {
  1459. // message fields
  1460. key: ::protobuf::SingularField<::std::string::String>,
  1461. value: ::protobuf::SingularField<::std::vec::Vec<u8>>,
  1462. // special fields
  1463. unknown_fields: ::protobuf::UnknownFields,
  1464. cached_size: ::protobuf::CachedSize,
  1465. }
  1466. // see codegen.rs for the explanation why impl Sync explicitly
  1467. unsafe impl ::std::marker::Sync for UserField {}
  1468. impl UserField {
  1469. pub fn new() -> UserField {
  1470. ::std::default::Default::default()
  1471. }
  1472. pub fn default_instance() -> &'static UserField {
  1473. static mut instance: ::protobuf::lazy::Lazy<UserField> = ::protobuf::lazy::Lazy {
  1474. lock: ::protobuf::lazy::ONCE_INIT,
  1475. ptr: 0 as *const UserField,
  1476. };
  1477. unsafe {
  1478. instance.get(UserField::new)
  1479. }
  1480. }
  1481. // optional string key = 1;
  1482. pub fn clear_key(&mut self) {
  1483. self.key.clear();
  1484. }
  1485. pub fn has_key(&self) -> bool {
  1486. self.key.is_some()
  1487. }
  1488. // Param is passed by value, moved
  1489. pub fn set_key(&mut self, v: ::std::string::String) {
  1490. self.key = ::protobuf::SingularField::some(v);
  1491. }
  1492. // Mutable pointer to the field.
  1493. // If field is not initialized, it is initialized with default value first.
  1494. pub fn mut_key(&mut self) -> &mut ::std::string::String {
  1495. if self.key.is_none() {
  1496. self.key.set_default();
  1497. };
  1498. self.key.as_mut().unwrap()
  1499. }
  1500. // Take field
  1501. pub fn take_key(&mut self) -> ::std::string::String {
  1502. self.key.take().unwrap_or_else(|| ::std::string::String::new())
  1503. }
  1504. pub fn get_key(&self) -> &str {
  1505. match self.key.as_ref() {
  1506. Some(v) => &v,
  1507. None => "",
  1508. }
  1509. }
  1510. fn get_key_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
  1511. &self.key
  1512. }
  1513. fn mut_key_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
  1514. &mut self.key
  1515. }
  1516. // optional bytes value = 2;
  1517. pub fn clear_value(&mut self) {
  1518. self.value.clear();
  1519. }
  1520. pub fn has_value(&self) -> bool {
  1521. self.value.is_some()
  1522. }
  1523. // Param is passed by value, moved
  1524. pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
  1525. self.value = ::protobuf::SingularField::some(v);
  1526. }
  1527. // Mutable pointer to the field.
  1528. // If field is not initialized, it is initialized with default value first.
  1529. pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
  1530. if self.value.is_none() {
  1531. self.value.set_default();
  1532. };
  1533. self.value.as_mut().unwrap()
  1534. }
  1535. // Take field
  1536. pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
  1537. self.value.take().unwrap_or_else(|| ::std::vec::Vec::new())
  1538. }
  1539. pub fn get_value(&self) -> &[u8] {
  1540. match self.value.as_ref() {
  1541. Some(v) => &v,
  1542. None => &[],
  1543. }
  1544. }
  1545. fn get_value_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
  1546. &self.value
  1547. }
  1548. fn mut_value_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
  1549. &mut self.value
  1550. }
  1551. }
  1552. impl ::protobuf::Message for UserField {
  1553. fn is_initialized(&self) -> bool {
  1554. true
  1555. }
  1556. fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
  1557. while !is.eof()? {
  1558. let (field_number, wire_type) = is.read_tag_unpack()?;
  1559. match field_number {
  1560. 1 => {
  1561. ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.key)?;
  1562. },
  1563. 2 => {
  1564. ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.value)?;
  1565. },
  1566. _ => {
  1567. ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
  1568. },
  1569. };
  1570. }
  1571. ::std::result::Result::Ok(())
  1572. }
  1573. // Compute sizes of nested messages
  1574. #[allow(unused_variables)]
  1575. fn compute_size(&self) -> u32 {
  1576. let mut my_size = 0;
  1577. if let Some(v) = self.key.as_ref() {
  1578. my_size += ::protobuf::rt::string_size(1, &v);
  1579. };
  1580. if let Some(v) = self.value.as_ref() {
  1581. my_size += ::protobuf::rt::bytes_size(2, &v);
  1582. };
  1583. my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
  1584. self.cached_size.set(my_size);
  1585. my_size
  1586. }
  1587. fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
  1588. if let Some(v) = self.key.as_ref() {
  1589. os.write_string(1, &v)?;
  1590. };
  1591. if let Some(v) = self.value.as_ref() {
  1592. os.write_bytes(2, &v)?;
  1593. };
  1594. os.write_unknown_fields(self.get_unknown_fields())?;
  1595. ::std::result::Result::Ok(())
  1596. }
  1597. fn get_cached_size(&self) -> u32 {
  1598. self.cached_size.get()
  1599. }
  1600. fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
  1601. &self.unknown_fields
  1602. }
  1603. fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
  1604. &mut self.unknown_fields
  1605. }
  1606. fn as_any(&self) -> &::std::any::Any {
  1607. self as &::std::any::Any
  1608. }
  1609. fn as_any_mut(&mut self) -> &mut ::std::any::Any {
  1610. self as &mut ::std::any::Any
  1611. }
  1612. fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
  1613. self
  1614. }
  1615. fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
  1616. ::protobuf::MessageStatic::descriptor_static(None::<Self>)
  1617. }
  1618. }
  1619. impl ::protobuf::MessageStatic for UserField {
  1620. fn new() -> UserField {
  1621. UserField::new()
  1622. }
  1623. fn descriptor_static(_: ::std::option::Option<UserField>) -> &'static ::protobuf::reflect::MessageDescriptor {
  1624. static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
  1625. lock: ::protobuf::lazy::ONCE_INIT,
  1626. ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
  1627. };
  1628. unsafe {
  1629. descriptor.get(|| {
  1630. let mut fields = ::std::vec::Vec::new();
  1631. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
  1632. "key",
  1633. UserField::get_key_for_reflect,
  1634. UserField::mut_key_for_reflect,
  1635. ));
  1636. fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
  1637. "value",
  1638. UserField::get_value_for_reflect,
  1639. UserField::mut_value_for_reflect,
  1640. ));
  1641. ::protobuf::reflect::MessageDescriptor::new::<UserField>(
  1642. "UserField",
  1643. fields,
  1644. file_descriptor_proto()
  1645. )
  1646. })
  1647. }
  1648. }
  1649. }
  1650. impl ::protobuf::Clear for UserField {
  1651. fn clear(&mut self) {
  1652. self.clear_key();
  1653. self.clear_value();
  1654. self.unknown_fields.clear();
  1655. }
  1656. }
  1657. impl ::std::fmt::Debug for UserField {
  1658. fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
  1659. ::protobuf::text_format::fmt(self, f)
  1660. }
  1661. }
  1662. impl ::protobuf::reflect::ProtobufValue for UserField {
  1663. fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
  1664. ::protobuf::reflect::ProtobufValueRef::Message(self)
  1665. }
  1666. }
  1667. static file_descriptor_proto_data: &'static [u8] = &[
  1668. 0x0a, 0x0d, 0x6d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22,
  1669. 0x43, 0x0a, 0x16, 0x4d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x4d, 0x75, 0x6c, 0x74, 0x69, 0x47,
  1670. 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x29, 0x0a, 0x07, 0x72, 0x65, 0x71,
  1671. 0x75, 0x65, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x4d, 0x65, 0x72,
  1672. 0x63, 0x75, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x52, 0x07, 0x72, 0x65, 0x71,
  1673. 0x75, 0x65, 0x73, 0x74, 0x22, 0x3b, 0x0a, 0x14, 0x4d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x4d,
  1674. 0x75, 0x6c, 0x74, 0x69, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x23, 0x0a, 0x05,
  1675. 0x72, 0x65, 0x70, 0x6c, 0x79, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x4d, 0x65,
  1676. 0x72, 0x63, 0x75, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6c,
  1677. 0x79, 0x22, 0x6d, 0x0a, 0x0e, 0x4d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75,
  1678. 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  1679. 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
  1680. 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e,
  1681. 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79,
  1682. 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x12, 0x0a, 0x04,
  1683. 0x65, 0x74, 0x61, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67,
  1684. 0x22, 0xb3, 0x02, 0x0a, 0x0c, 0x4d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c,
  1685. 0x79, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65,
  1686. 0x18, 0x01, 0x20, 0x01, 0x28, 0x11, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f,
  1687. 0x64, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x6d, 0x65, 0x73,
  1688. 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x73, 0x74, 0x61, 0x74,
  1689. 0x75, 0x73, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x3c, 0x0a, 0x0c, 0x63, 0x61, 0x63,
  1690. 0x68, 0x65, 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32,
  1691. 0x19, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x75, 0x72, 0x79, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x2e, 0x43,
  1692. 0x61, 0x63, 0x68, 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x0b, 0x63, 0x61, 0x63, 0x68,
  1693. 0x65, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x04,
  1694. 0x20, 0x01, 0x28, 0x11, 0x52, 0x03, 0x74, 0x74, 0x6c, 0x12, 0x12, 0x0a, 0x04, 0x65, 0x74, 0x61,
  1695. 0x67, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x65, 0x74, 0x61, 0x67, 0x12, 0x21, 0x0a,
  1696. 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74, 0x79, 0x70, 0x65, 0x18, 0x06, 0x20,
  1697. 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65,
  1698. 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04,
  1699. 0x62, 0x6f, 0x64, 0x79, 0x22, 0x40, 0x0a, 0x0b, 0x43, 0x61, 0x63, 0x68, 0x65, 0x50, 0x6f, 0x6c,
  1700. 0x69, 0x63, 0x79, 0x12, 0x0c, 0x0a, 0x08, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x4e, 0x4f, 0x10,
  1701. 0x01, 0x12, 0x11, 0x0a, 0x0d, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x50, 0x52, 0x49, 0x56, 0x41,
  1702. 0x54, 0x45, 0x10, 0x02, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x41, 0x43, 0x48, 0x45, 0x5f, 0x50, 0x55,
  1703. 0x42, 0x4c, 0x49, 0x43, 0x10, 0x03, 0x22, 0xa3, 0x01, 0x0a, 0x06, 0x48, 0x65, 0x61, 0x64, 0x65,
  1704. 0x72, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03,
  1705. 0x75, 0x72, 0x69, 0x12, 0x21, 0x0a, 0x0c, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x74,
  1706. 0x79, 0x70, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, 0x6f, 0x6e, 0x74, 0x65,
  1707. 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64,
  1708. 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x1f,
  1709. 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20,
  1710. 0x01, 0x28, 0x11, 0x52, 0x0a, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12,
  1711. 0x2b, 0x0a, 0x0b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x18, 0x06,
  1712. 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x55, 0x73, 0x65, 0x72, 0x46, 0x69, 0x65, 0x6c, 0x64,
  1713. 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x73, 0x22, 0x33, 0x0a, 0x09,
  1714. 0x55, 0x73, 0x65, 0x72, 0x46, 0x69, 0x65, 0x6c, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79,
  1715. 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76,
  1716. 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75,
  1717. 0x65, 0x4a, 0xaf, 0x0d, 0x0a, 0x06, 0x12, 0x04, 0x00, 0x00, 0x2c, 0x01, 0x0a, 0x08, 0x0a, 0x01,
  1718. 0x0c, 0x12, 0x03, 0x00, 0x00, 0x12, 0x0a, 0x0a, 0x0a, 0x02, 0x04, 0x00, 0x12, 0x04, 0x02, 0x00,
  1719. 0x04, 0x01, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x00, 0x01, 0x12, 0x03, 0x02, 0x08, 0x1e, 0x0a, 0x0b,
  1720. 0x0a, 0x04, 0x04, 0x00, 0x02, 0x00, 0x12, 0x03, 0x03, 0x04, 0x2a, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
  1721. 0x00, 0x02, 0x00, 0x04, 0x12, 0x03, 0x03, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x00, 0x02,
  1722. 0x00, 0x06, 0x12, 0x03, 0x03, 0x0d, 0x1b, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x00, 0x02, 0x00, 0x01,
  1723. 0x12, 0x03, 0x03, 0x1c, 0x23, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x00, 0x02, 0x00, 0x03, 0x12, 0x03,
  1724. 0x03, 0x26, 0x29, 0x0a, 0x0a, 0x0a, 0x02, 0x04, 0x01, 0x12, 0x04, 0x06, 0x00, 0x08, 0x01, 0x0a,
  1725. 0x0a, 0x0a, 0x03, 0x04, 0x01, 0x01, 0x12, 0x03, 0x06, 0x08, 0x1c, 0x0a, 0x0b, 0x0a, 0x04, 0x04,
  1726. 0x01, 0x02, 0x00, 0x12, 0x03, 0x07, 0x04, 0x26, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00,
  1727. 0x04, 0x12, 0x03, 0x07, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x06, 0x12,
  1728. 0x03, 0x07, 0x0d, 0x19, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x01, 0x12, 0x03, 0x07,
  1729. 0x1a, 0x1f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x01, 0x02, 0x00, 0x03, 0x12, 0x03, 0x07, 0x22, 0x25,
  1730. 0x0a, 0x0a, 0x0a, 0x02, 0x04, 0x02, 0x12, 0x04, 0x0a, 0x00, 0x0f, 0x01, 0x0a, 0x0a, 0x0a, 0x03,
  1731. 0x04, 0x02, 0x01, 0x12, 0x03, 0x0a, 0x08, 0x16, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x02, 0x02, 0x00,
  1732. 0x12, 0x03, 0x0b, 0x04, 0x1e, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x00, 0x04, 0x12, 0x03,
  1733. 0x0b, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x00, 0x05, 0x12, 0x03, 0x0b, 0x0d,
  1734. 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x00, 0x01, 0x12, 0x03, 0x0b, 0x14, 0x17, 0x0a,
  1735. 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x00, 0x03, 0x12, 0x03, 0x0b, 0x1a, 0x1d, 0x0a, 0x0b, 0x0a,
  1736. 0x04, 0x04, 0x02, 0x02, 0x01, 0x12, 0x03, 0x0c, 0x04, 0x27, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02,
  1737. 0x02, 0x01, 0x04, 0x12, 0x03, 0x0c, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x01,
  1738. 0x05, 0x12, 0x03, 0x0c, 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x01, 0x01, 0x12,
  1739. 0x03, 0x0c, 0x14, 0x20, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x01, 0x03, 0x12, 0x03, 0x0c,
  1740. 0x23, 0x26, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x02, 0x02, 0x02, 0x12, 0x03, 0x0d, 0x04, 0x1e, 0x0a,
  1741. 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x02, 0x04, 0x12, 0x03, 0x0d, 0x04, 0x0c, 0x0a, 0x0c, 0x0a,
  1742. 0x05, 0x04, 0x02, 0x02, 0x02, 0x05, 0x12, 0x03, 0x0d, 0x0d, 0x12, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
  1743. 0x02, 0x02, 0x02, 0x01, 0x12, 0x03, 0x0d, 0x13, 0x17, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02,
  1744. 0x02, 0x03, 0x12, 0x03, 0x0d, 0x1a, 0x1d, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x02, 0x02, 0x03, 0x12,
  1745. 0x03, 0x0e, 0x04, 0x1e, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x03, 0x04, 0x12, 0x03, 0x0e,
  1746. 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x03, 0x05, 0x12, 0x03, 0x0e, 0x0d, 0x12,
  1747. 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x02, 0x02, 0x03, 0x01, 0x12, 0x03, 0x0e, 0x13, 0x17, 0x0a, 0x0c,
  1748. 0x0a, 0x05, 0x04, 0x02, 0x02, 0x03, 0x03, 0x12, 0x03, 0x0e, 0x1a, 0x1d, 0x0a, 0x0a, 0x0a, 0x02,
  1749. 0x04, 0x03, 0x12, 0x04, 0x11, 0x00, 0x1e, 0x01, 0x0a, 0x0a, 0x0a, 0x03, 0x04, 0x03, 0x01, 0x12,
  1750. 0x03, 0x11, 0x08, 0x14, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x03, 0x02, 0x00, 0x12, 0x03, 0x12, 0x04,
  1751. 0x26, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x00, 0x04, 0x12, 0x03, 0x12, 0x04, 0x0c, 0x0a,
  1752. 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x00, 0x05, 0x12, 0x03, 0x12, 0x0d, 0x13, 0x0a, 0x0c, 0x0a,
  1753. 0x05, 0x04, 0x03, 0x02, 0x00, 0x01, 0x12, 0x03, 0x12, 0x14, 0x1f, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
  1754. 0x03, 0x02, 0x00, 0x03, 0x12, 0x03, 0x12, 0x22, 0x25, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x03, 0x02,
  1755. 0x01, 0x12, 0x03, 0x13, 0x04, 0x29, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x01, 0x04, 0x12,
  1756. 0x03, 0x13, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x01, 0x05, 0x12, 0x03, 0x13,
  1757. 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x01, 0x01, 0x12, 0x03, 0x13, 0x14, 0x22,
  1758. 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x01, 0x03, 0x12, 0x03, 0x13, 0x25, 0x28, 0x0a, 0x0b,
  1759. 0x0a, 0x04, 0x04, 0x03, 0x02, 0x02, 0x12, 0x03, 0x14, 0x04, 0x2c, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
  1760. 0x03, 0x02, 0x02, 0x04, 0x12, 0x03, 0x14, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02,
  1761. 0x02, 0x06, 0x12, 0x03, 0x14, 0x0d, 0x18, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x02, 0x01,
  1762. 0x12, 0x03, 0x14, 0x19, 0x25, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x02, 0x03, 0x12, 0x03,
  1763. 0x14, 0x28, 0x2b, 0x0a, 0x0c, 0x0a, 0x04, 0x04, 0x03, 0x04, 0x00, 0x12, 0x04, 0x15, 0x04, 0x19,
  1764. 0x05, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x04, 0x00, 0x01, 0x12, 0x03, 0x15, 0x09, 0x14, 0x0a,
  1765. 0x0d, 0x0a, 0x06, 0x04, 0x03, 0x04, 0x00, 0x02, 0x00, 0x12, 0x03, 0x16, 0x08, 0x17, 0x0a, 0x0e,
  1766. 0x0a, 0x07, 0x04, 0x03, 0x04, 0x00, 0x02, 0x00, 0x01, 0x12, 0x03, 0x16, 0x08, 0x10, 0x0a, 0x0e,
  1767. 0x0a, 0x07, 0x04, 0x03, 0x04, 0x00, 0x02, 0x00, 0x02, 0x12, 0x03, 0x16, 0x13, 0x16, 0x0a, 0x0d,
  1768. 0x0a, 0x06, 0x04, 0x03, 0x04, 0x00, 0x02, 0x01, 0x12, 0x03, 0x17, 0x08, 0x1c, 0x0a, 0x0e, 0x0a,
  1769. 0x07, 0x04, 0x03, 0x04, 0x00, 0x02, 0x01, 0x01, 0x12, 0x03, 0x17, 0x08, 0x15, 0x0a, 0x0e, 0x0a,
  1770. 0x07, 0x04, 0x03, 0x04, 0x00, 0x02, 0x01, 0x02, 0x12, 0x03, 0x17, 0x18, 0x1b, 0x0a, 0x0d, 0x0a,
  1771. 0x06, 0x04, 0x03, 0x04, 0x00, 0x02, 0x02, 0x12, 0x03, 0x18, 0x08, 0x1b, 0x0a, 0x0e, 0x0a, 0x07,
  1772. 0x04, 0x03, 0x04, 0x00, 0x02, 0x02, 0x01, 0x12, 0x03, 0x18, 0x08, 0x14, 0x0a, 0x0e, 0x0a, 0x07,
  1773. 0x04, 0x03, 0x04, 0x00, 0x02, 0x02, 0x02, 0x12, 0x03, 0x18, 0x17, 0x1a, 0x0a, 0x0b, 0x0a, 0x04,
  1774. 0x04, 0x03, 0x02, 0x03, 0x12, 0x03, 0x1a, 0x04, 0x1e, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02,
  1775. 0x03, 0x04, 0x12, 0x03, 0x1a, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x03, 0x05,
  1776. 0x12, 0x03, 0x1a, 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x03, 0x01, 0x12, 0x03,
  1777. 0x1a, 0x14, 0x17, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x03, 0x03, 0x12, 0x03, 0x1a, 0x1a,
  1778. 0x1d, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x03, 0x02, 0x04, 0x12, 0x03, 0x1b, 0x04, 0x1e, 0x0a, 0x0c,
  1779. 0x0a, 0x05, 0x04, 0x03, 0x02, 0x04, 0x04, 0x12, 0x03, 0x1b, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05,
  1780. 0x04, 0x03, 0x02, 0x04, 0x05, 0x12, 0x03, 0x1b, 0x0d, 0x12, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03,
  1781. 0x02, 0x04, 0x01, 0x12, 0x03, 0x1b, 0x13, 0x17, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x04,
  1782. 0x03, 0x12, 0x03, 0x1b, 0x1a, 0x1d, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x03, 0x02, 0x05, 0x12, 0x03,
  1783. 0x1c, 0x04, 0x27, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x05, 0x04, 0x12, 0x03, 0x1c, 0x04,
  1784. 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x05, 0x05, 0x12, 0x03, 0x1c, 0x0d, 0x13, 0x0a,
  1785. 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x05, 0x01, 0x12, 0x03, 0x1c, 0x14, 0x20, 0x0a, 0x0c, 0x0a,
  1786. 0x05, 0x04, 0x03, 0x02, 0x05, 0x03, 0x12, 0x03, 0x1c, 0x23, 0x26, 0x0a, 0x0b, 0x0a, 0x04, 0x04,
  1787. 0x03, 0x02, 0x06, 0x12, 0x03, 0x1d, 0x04, 0x1e, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x06,
  1788. 0x04, 0x12, 0x03, 0x1d, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x06, 0x05, 0x12,
  1789. 0x03, 0x1d, 0x0d, 0x12, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x06, 0x01, 0x12, 0x03, 0x1d,
  1790. 0x13, 0x17, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x03, 0x02, 0x06, 0x03, 0x12, 0x03, 0x1d, 0x1a, 0x1d,
  1791. 0x0a, 0x0a, 0x0a, 0x02, 0x04, 0x04, 0x12, 0x04, 0x21, 0x00, 0x27, 0x01, 0x0a, 0x0a, 0x0a, 0x03,
  1792. 0x04, 0x04, 0x01, 0x12, 0x03, 0x21, 0x08, 0x0e, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x04, 0x02, 0x00,
  1793. 0x12, 0x03, 0x22, 0x04, 0x1f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x04, 0x12, 0x03,
  1794. 0x22, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x05, 0x12, 0x03, 0x22, 0x0d,
  1795. 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x01, 0x12, 0x03, 0x22, 0x14, 0x17, 0x0a,
  1796. 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x00, 0x03, 0x12, 0x03, 0x22, 0x1a, 0x1e, 0x0a, 0x0b, 0x0a,
  1797. 0x04, 0x04, 0x04, 0x02, 0x01, 0x12, 0x03, 0x23, 0x04, 0x28, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04,
  1798. 0x02, 0x01, 0x04, 0x12, 0x03, 0x23, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x01,
  1799. 0x05, 0x12, 0x03, 0x23, 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x01, 0x01, 0x12,
  1800. 0x03, 0x23, 0x14, 0x20, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x01, 0x03, 0x12, 0x03, 0x23,
  1801. 0x23, 0x27, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x04, 0x02, 0x02, 0x12, 0x03, 0x24, 0x04, 0x22, 0x0a,
  1802. 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x02, 0x04, 0x12, 0x03, 0x24, 0x04, 0x0c, 0x0a, 0x0c, 0x0a,
  1803. 0x05, 0x04, 0x04, 0x02, 0x02, 0x05, 0x12, 0x03, 0x24, 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
  1804. 0x04, 0x02, 0x02, 0x01, 0x12, 0x03, 0x24, 0x14, 0x1a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02,
  1805. 0x02, 0x03, 0x12, 0x03, 0x24, 0x1d, 0x21, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x04, 0x02, 0x03, 0x12,
  1806. 0x03, 0x25, 0x04, 0x27, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x03, 0x04, 0x12, 0x03, 0x25,
  1807. 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x03, 0x05, 0x12, 0x03, 0x25, 0x0d, 0x13,
  1808. 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x03, 0x01, 0x12, 0x03, 0x25, 0x14, 0x1f, 0x0a, 0x0c,
  1809. 0x0a, 0x05, 0x04, 0x04, 0x02, 0x03, 0x03, 0x12, 0x03, 0x25, 0x22, 0x26, 0x0a, 0x0b, 0x0a, 0x04,
  1810. 0x04, 0x04, 0x02, 0x04, 0x12, 0x03, 0x26, 0x04, 0x2a, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02,
  1811. 0x04, 0x04, 0x12, 0x03, 0x26, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x04, 0x06,
  1812. 0x12, 0x03, 0x26, 0x0d, 0x16, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x04, 0x01, 0x12, 0x03,
  1813. 0x26, 0x17, 0x22, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x04, 0x02, 0x04, 0x03, 0x12, 0x03, 0x26, 0x25,
  1814. 0x29, 0x0a, 0x0a, 0x0a, 0x02, 0x04, 0x05, 0x12, 0x04, 0x29, 0x00, 0x2c, 0x01, 0x0a, 0x0a, 0x0a,
  1815. 0x03, 0x04, 0x05, 0x01, 0x12, 0x03, 0x29, 0x08, 0x11, 0x0a, 0x0b, 0x0a, 0x04, 0x04, 0x05, 0x02,
  1816. 0x00, 0x12, 0x03, 0x2a, 0x04, 0x1f, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x04, 0x12,
  1817. 0x03, 0x2a, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x05, 0x12, 0x03, 0x2a,
  1818. 0x0d, 0x13, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x01, 0x12, 0x03, 0x2a, 0x14, 0x17,
  1819. 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x00, 0x03, 0x12, 0x03, 0x2a, 0x1a, 0x1e, 0x0a, 0x0b,
  1820. 0x0a, 0x04, 0x04, 0x05, 0x02, 0x01, 0x12, 0x03, 0x2b, 0x04, 0x20, 0x0a, 0x0c, 0x0a, 0x05, 0x04,
  1821. 0x05, 0x02, 0x01, 0x04, 0x12, 0x03, 0x2b, 0x04, 0x0c, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02,
  1822. 0x01, 0x05, 0x12, 0x03, 0x2b, 0x0d, 0x12, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x01, 0x01,
  1823. 0x12, 0x03, 0x2b, 0x13, 0x18, 0x0a, 0x0c, 0x0a, 0x05, 0x04, 0x05, 0x02, 0x01, 0x03, 0x12, 0x03,
  1824. 0x2b, 0x1b, 0x1f,
  1825. ];
  1826. static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
  1827. lock: ::protobuf::lazy::ONCE_INIT,
  1828. ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
  1829. };
  1830. fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
  1831. ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
  1832. }
  1833. pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
  1834. unsafe {
  1835. file_descriptor_proto_lazy.get(|| {
  1836. parse_descriptor_proto()
  1837. })
  1838. }
  1839. }