mercury.rs 77 KB

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