12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093 |
- // This file is generated. Do not edit
- // @generated
- // https://github.com/Manishearth/rust-clippy/issues/702
- #![allow(unknown_lints)]
- #![allow(clippy)]
- #![cfg_attr(rustfmt, rustfmt_skip)]
- #![allow(box_pointers)]
- #![allow(dead_code)]
- #![allow(missing_docs)]
- #![allow(non_camel_case_types)]
- #![allow(non_snake_case)]
- #![allow(non_upper_case_globals)]
- #![allow(trivial_casts)]
- #![allow(unsafe_code)]
- #![allow(unused_imports)]
- #![allow(unused_results)]
- use protobuf::Message as Message_imported_for_functions;
- use protobuf::ProtobufEnum as ProtobufEnum_imported_for_functions;
- #[derive(PartialEq,Clone,Default)]
- pub struct MercuryMultiGetRequest {
- // message fields
- request: ::protobuf::RepeatedField<MercuryRequest>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for MercuryMultiGetRequest {}
- impl MercuryMultiGetRequest {
- pub fn new() -> MercuryMultiGetRequest {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static MercuryMultiGetRequest {
- static mut instance: ::protobuf::lazy::Lazy<MercuryMultiGetRequest> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const MercuryMultiGetRequest,
- };
- unsafe {
- instance.get(MercuryMultiGetRequest::new)
- }
- }
- // repeated .MercuryRequest request = 1;
- pub fn clear_request(&mut self) {
- self.request.clear();
- }
- // Param is passed by value, moved
- pub fn set_request(&mut self, v: ::protobuf::RepeatedField<MercuryRequest>) {
- self.request = v;
- }
- // Mutable pointer to the field.
- pub fn mut_request(&mut self) -> &mut ::protobuf::RepeatedField<MercuryRequest> {
- &mut self.request
- }
- // Take field
- pub fn take_request(&mut self) -> ::protobuf::RepeatedField<MercuryRequest> {
- ::std::mem::replace(&mut self.request, ::protobuf::RepeatedField::new())
- }
- pub fn get_request(&self) -> &[MercuryRequest] {
- &self.request
- }
- fn get_request_for_reflect(&self) -> &::protobuf::RepeatedField<MercuryRequest> {
- &self.request
- }
- fn mut_request_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<MercuryRequest> {
- &mut self.request
- }
- }
- impl ::protobuf::Message for MercuryMultiGetRequest {
- fn is_initialized(&self) -> bool {
- for v in &self.request {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.request)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- for value in &self.request {
- let len = value.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- };
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- for v in &self.request {
- os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- };
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for MercuryMultiGetRequest {
- fn new() -> MercuryMultiGetRequest {
- MercuryMultiGetRequest::new()
- }
- fn descriptor_static(_: ::std::option::Option<MercuryMultiGetRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MercuryRequest>>(
- "request",
- MercuryMultiGetRequest::get_request_for_reflect,
- MercuryMultiGetRequest::mut_request_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<MercuryMultiGetRequest>(
- "MercuryMultiGetRequest",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for MercuryMultiGetRequest {
- fn clear(&mut self) {
- self.clear_request();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for MercuryMultiGetRequest {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for MercuryMultiGetRequest {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct MercuryMultiGetReply {
- // message fields
- reply: ::protobuf::RepeatedField<MercuryReply>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for MercuryMultiGetReply {}
- impl MercuryMultiGetReply {
- pub fn new() -> MercuryMultiGetReply {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static MercuryMultiGetReply {
- static mut instance: ::protobuf::lazy::Lazy<MercuryMultiGetReply> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const MercuryMultiGetReply,
- };
- unsafe {
- instance.get(MercuryMultiGetReply::new)
- }
- }
- // repeated .MercuryReply reply = 1;
- pub fn clear_reply(&mut self) {
- self.reply.clear();
- }
- // Param is passed by value, moved
- pub fn set_reply(&mut self, v: ::protobuf::RepeatedField<MercuryReply>) {
- self.reply = v;
- }
- // Mutable pointer to the field.
- pub fn mut_reply(&mut self) -> &mut ::protobuf::RepeatedField<MercuryReply> {
- &mut self.reply
- }
- // Take field
- pub fn take_reply(&mut self) -> ::protobuf::RepeatedField<MercuryReply> {
- ::std::mem::replace(&mut self.reply, ::protobuf::RepeatedField::new())
- }
- pub fn get_reply(&self) -> &[MercuryReply] {
- &self.reply
- }
- fn get_reply_for_reflect(&self) -> &::protobuf::RepeatedField<MercuryReply> {
- &self.reply
- }
- fn mut_reply_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<MercuryReply> {
- &mut self.reply
- }
- }
- impl ::protobuf::Message for MercuryMultiGetReply {
- fn is_initialized(&self) -> bool {
- for v in &self.reply {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.reply)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- for value in &self.reply {
- let len = value.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- };
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- for v in &self.reply {
- os.write_tag(1, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- };
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for MercuryMultiGetReply {
- fn new() -> MercuryMultiGetReply {
- MercuryMultiGetReply::new()
- }
- fn descriptor_static(_: ::std::option::Option<MercuryMultiGetReply>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<MercuryReply>>(
- "reply",
- MercuryMultiGetReply::get_reply_for_reflect,
- MercuryMultiGetReply::mut_reply_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<MercuryMultiGetReply>(
- "MercuryMultiGetReply",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for MercuryMultiGetReply {
- fn clear(&mut self) {
- self.clear_reply();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for MercuryMultiGetReply {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for MercuryMultiGetReply {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct MercuryRequest {
- // message fields
- uri: ::protobuf::SingularField<::std::string::String>,
- content_type: ::protobuf::SingularField<::std::string::String>,
- body: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- etag: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for MercuryRequest {}
- impl MercuryRequest {
- pub fn new() -> MercuryRequest {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static MercuryRequest {
- static mut instance: ::protobuf::lazy::Lazy<MercuryRequest> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const MercuryRequest,
- };
- unsafe {
- instance.get(MercuryRequest::new)
- }
- }
- // optional string uri = 1;
- pub fn clear_uri(&mut self) {
- self.uri.clear();
- }
- pub fn has_uri(&self) -> bool {
- self.uri.is_some()
- }
- // Param is passed by value, moved
- pub fn set_uri(&mut self, v: ::std::string::String) {
- self.uri = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_uri(&mut self) -> &mut ::std::string::String {
- if self.uri.is_none() {
- self.uri.set_default();
- }
- self.uri.as_mut().unwrap()
- }
- // Take field
- pub fn take_uri(&mut self) -> ::std::string::String {
- self.uri.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_uri(&self) -> &str {
- match self.uri.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_uri_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.uri
- }
- fn mut_uri_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.uri
- }
- // optional string content_type = 2;
- pub fn clear_content_type(&mut self) {
- self.content_type.clear();
- }
- pub fn has_content_type(&self) -> bool {
- self.content_type.is_some()
- }
- // Param is passed by value, moved
- pub fn set_content_type(&mut self, v: ::std::string::String) {
- self.content_type = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_content_type(&mut self) -> &mut ::std::string::String {
- if self.content_type.is_none() {
- self.content_type.set_default();
- }
- self.content_type.as_mut().unwrap()
- }
- // Take field
- pub fn take_content_type(&mut self) -> ::std::string::String {
- self.content_type.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_content_type(&self) -> &str {
- match self.content_type.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_content_type_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.content_type
- }
- fn mut_content_type_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.content_type
- }
- // optional bytes body = 3;
- pub fn clear_body(&mut self) {
- self.body.clear();
- }
- pub fn has_body(&self) -> bool {
- self.body.is_some()
- }
- // Param is passed by value, moved
- pub fn set_body(&mut self, v: ::std::vec::Vec<u8>) {
- self.body = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_body(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.body.is_none() {
- self.body.set_default();
- }
- self.body.as_mut().unwrap()
- }
- // Take field
- pub fn take_body(&mut self) -> ::std::vec::Vec<u8> {
- self.body.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_body(&self) -> &[u8] {
- match self.body.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_body_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.body
- }
- fn mut_body_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.body
- }
- // optional bytes etag = 4;
- pub fn clear_etag(&mut self) {
- self.etag.clear();
- }
- pub fn has_etag(&self) -> bool {
- self.etag.is_some()
- }
- // Param is passed by value, moved
- pub fn set_etag(&mut self, v: ::std::vec::Vec<u8>) {
- self.etag = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_etag(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.etag.is_none() {
- self.etag.set_default();
- }
- self.etag.as_mut().unwrap()
- }
- // Take field
- pub fn take_etag(&mut self) -> ::std::vec::Vec<u8> {
- self.etag.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_etag(&self) -> &[u8] {
- match self.etag.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_etag_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.etag
- }
- fn mut_etag_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.etag
- }
- }
- impl ::protobuf::Message for MercuryRequest {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.uri)?;
- },
- 2 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.content_type)?;
- },
- 3 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.body)?;
- },
- 4 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.etag)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.uri.as_ref() {
- my_size += ::protobuf::rt::string_size(1, &v);
- }
- if let Some(ref v) = self.content_type.as_ref() {
- my_size += ::protobuf::rt::string_size(2, &v);
- }
- if let Some(ref v) = self.body.as_ref() {
- my_size += ::protobuf::rt::bytes_size(3, &v);
- }
- if let Some(ref v) = self.etag.as_ref() {
- my_size += ::protobuf::rt::bytes_size(4, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.uri.as_ref() {
- os.write_string(1, &v)?;
- }
- if let Some(ref v) = self.content_type.as_ref() {
- os.write_string(2, &v)?;
- }
- if let Some(ref v) = self.body.as_ref() {
- os.write_bytes(3, &v)?;
- }
- if let Some(ref v) = self.etag.as_ref() {
- os.write_bytes(4, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for MercuryRequest {
- fn new() -> MercuryRequest {
- MercuryRequest::new()
- }
- fn descriptor_static(_: ::std::option::Option<MercuryRequest>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "uri",
- MercuryRequest::get_uri_for_reflect,
- MercuryRequest::mut_uri_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "content_type",
- MercuryRequest::get_content_type_for_reflect,
- MercuryRequest::mut_content_type_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "body",
- MercuryRequest::get_body_for_reflect,
- MercuryRequest::mut_body_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "etag",
- MercuryRequest::get_etag_for_reflect,
- MercuryRequest::mut_etag_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<MercuryRequest>(
- "MercuryRequest",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for MercuryRequest {
- fn clear(&mut self) {
- self.clear_uri();
- self.clear_content_type();
- self.clear_body();
- self.clear_etag();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for MercuryRequest {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for MercuryRequest {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct MercuryReply {
- // message fields
- status_code: ::std::option::Option<i32>,
- status_message: ::protobuf::SingularField<::std::string::String>,
- cache_policy: ::std::option::Option<MercuryReply_CachePolicy>,
- ttl: ::std::option::Option<i32>,
- etag: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- content_type: ::protobuf::SingularField<::std::string::String>,
- body: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for MercuryReply {}
- impl MercuryReply {
- pub fn new() -> MercuryReply {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static MercuryReply {
- static mut instance: ::protobuf::lazy::Lazy<MercuryReply> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const MercuryReply,
- };
- unsafe {
- instance.get(MercuryReply::new)
- }
- }
- // optional sint32 status_code = 1;
- pub fn clear_status_code(&mut self) {
- self.status_code = ::std::option::Option::None;
- }
- pub fn has_status_code(&self) -> bool {
- self.status_code.is_some()
- }
- // Param is passed by value, moved
- pub fn set_status_code(&mut self, v: i32) {
- self.status_code = ::std::option::Option::Some(v);
- }
- pub fn get_status_code(&self) -> i32 {
- self.status_code.unwrap_or(0)
- }
- fn get_status_code_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.status_code
- }
- fn mut_status_code_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.status_code
- }
- // optional string status_message = 2;
- pub fn clear_status_message(&mut self) {
- self.status_message.clear();
- }
- pub fn has_status_message(&self) -> bool {
- self.status_message.is_some()
- }
- // Param is passed by value, moved
- pub fn set_status_message(&mut self, v: ::std::string::String) {
- self.status_message = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_status_message(&mut self) -> &mut ::std::string::String {
- if self.status_message.is_none() {
- self.status_message.set_default();
- }
- self.status_message.as_mut().unwrap()
- }
- // Take field
- pub fn take_status_message(&mut self) -> ::std::string::String {
- self.status_message.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_status_message(&self) -> &str {
- match self.status_message.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_status_message_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.status_message
- }
- fn mut_status_message_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.status_message
- }
- // optional .MercuryReply.CachePolicy cache_policy = 3;
- pub fn clear_cache_policy(&mut self) {
- self.cache_policy = ::std::option::Option::None;
- }
- pub fn has_cache_policy(&self) -> bool {
- self.cache_policy.is_some()
- }
- // Param is passed by value, moved
- pub fn set_cache_policy(&mut self, v: MercuryReply_CachePolicy) {
- self.cache_policy = ::std::option::Option::Some(v);
- }
- pub fn get_cache_policy(&self) -> MercuryReply_CachePolicy {
- self.cache_policy.unwrap_or(MercuryReply_CachePolicy::CACHE_NO)
- }
- fn get_cache_policy_for_reflect(&self) -> &::std::option::Option<MercuryReply_CachePolicy> {
- &self.cache_policy
- }
- fn mut_cache_policy_for_reflect(&mut self) -> &mut ::std::option::Option<MercuryReply_CachePolicy> {
- &mut self.cache_policy
- }
- // optional sint32 ttl = 4;
- pub fn clear_ttl(&mut self) {
- self.ttl = ::std::option::Option::None;
- }
- pub fn has_ttl(&self) -> bool {
- self.ttl.is_some()
- }
- // Param is passed by value, moved
- pub fn set_ttl(&mut self, v: i32) {
- self.ttl = ::std::option::Option::Some(v);
- }
- pub fn get_ttl(&self) -> i32 {
- self.ttl.unwrap_or(0)
- }
- fn get_ttl_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.ttl
- }
- fn mut_ttl_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.ttl
- }
- // optional bytes etag = 5;
- pub fn clear_etag(&mut self) {
- self.etag.clear();
- }
- pub fn has_etag(&self) -> bool {
- self.etag.is_some()
- }
- // Param is passed by value, moved
- pub fn set_etag(&mut self, v: ::std::vec::Vec<u8>) {
- self.etag = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_etag(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.etag.is_none() {
- self.etag.set_default();
- }
- self.etag.as_mut().unwrap()
- }
- // Take field
- pub fn take_etag(&mut self) -> ::std::vec::Vec<u8> {
- self.etag.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_etag(&self) -> &[u8] {
- match self.etag.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_etag_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.etag
- }
- fn mut_etag_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.etag
- }
- // optional string content_type = 6;
- pub fn clear_content_type(&mut self) {
- self.content_type.clear();
- }
- pub fn has_content_type(&self) -> bool {
- self.content_type.is_some()
- }
- // Param is passed by value, moved
- pub fn set_content_type(&mut self, v: ::std::string::String) {
- self.content_type = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_content_type(&mut self) -> &mut ::std::string::String {
- if self.content_type.is_none() {
- self.content_type.set_default();
- }
- self.content_type.as_mut().unwrap()
- }
- // Take field
- pub fn take_content_type(&mut self) -> ::std::string::String {
- self.content_type.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_content_type(&self) -> &str {
- match self.content_type.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_content_type_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.content_type
- }
- fn mut_content_type_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.content_type
- }
- // optional bytes body = 7;
- pub fn clear_body(&mut self) {
- self.body.clear();
- }
- pub fn has_body(&self) -> bool {
- self.body.is_some()
- }
- // Param is passed by value, moved
- pub fn set_body(&mut self, v: ::std::vec::Vec<u8>) {
- self.body = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_body(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.body.is_none() {
- self.body.set_default();
- }
- self.body.as_mut().unwrap()
- }
- // Take field
- pub fn take_body(&mut self) -> ::std::vec::Vec<u8> {
- self.body.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_body(&self) -> &[u8] {
- match self.body.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_body_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.body
- }
- fn mut_body_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.body
- }
- }
- impl ::protobuf::Message for MercuryReply {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_sint32()?;
- self.status_code = ::std::option::Option::Some(tmp);
- },
- 2 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.status_message)?;
- },
- 3 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_enum()?;
- self.cache_policy = ::std::option::Option::Some(tmp);
- },
- 4 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_sint32()?;
- self.ttl = ::std::option::Option::Some(tmp);
- },
- 5 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.etag)?;
- },
- 6 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.content_type)?;
- },
- 7 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.body)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(v) = self.status_code {
- my_size += ::protobuf::rt::value_varint_zigzag_size(1, v);
- }
- if let Some(ref v) = self.status_message.as_ref() {
- my_size += ::protobuf::rt::string_size(2, &v);
- }
- if let Some(v) = self.cache_policy {
- my_size += ::protobuf::rt::enum_size(3, v);
- }
- if let Some(v) = self.ttl {
- my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
- }
- if let Some(ref v) = self.etag.as_ref() {
- my_size += ::protobuf::rt::bytes_size(5, &v);
- }
- if let Some(ref v) = self.content_type.as_ref() {
- my_size += ::protobuf::rt::string_size(6, &v);
- }
- if let Some(ref v) = self.body.as_ref() {
- my_size += ::protobuf::rt::bytes_size(7, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(v) = self.status_code {
- os.write_sint32(1, v)?;
- }
- if let Some(ref v) = self.status_message.as_ref() {
- os.write_string(2, &v)?;
- }
- if let Some(v) = self.cache_policy {
- os.write_enum(3, v.value())?;
- }
- if let Some(v) = self.ttl {
- os.write_sint32(4, v)?;
- }
- if let Some(ref v) = self.etag.as_ref() {
- os.write_bytes(5, &v)?;
- }
- if let Some(ref v) = self.content_type.as_ref() {
- os.write_string(6, &v)?;
- }
- if let Some(ref v) = self.body.as_ref() {
- os.write_bytes(7, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for MercuryReply {
- fn new() -> MercuryReply {
- MercuryReply::new()
- }
- fn descriptor_static(_: ::std::option::Option<MercuryReply>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint32>(
- "status_code",
- MercuryReply::get_status_code_for_reflect,
- MercuryReply::mut_status_code_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "status_message",
- MercuryReply::get_status_message_for_reflect,
- MercuryReply::mut_status_message_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeEnum<MercuryReply_CachePolicy>>(
- "cache_policy",
- MercuryReply::get_cache_policy_for_reflect,
- MercuryReply::mut_cache_policy_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint32>(
- "ttl",
- MercuryReply::get_ttl_for_reflect,
- MercuryReply::mut_ttl_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "etag",
- MercuryReply::get_etag_for_reflect,
- MercuryReply::mut_etag_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "content_type",
- MercuryReply::get_content_type_for_reflect,
- MercuryReply::mut_content_type_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "body",
- MercuryReply::get_body_for_reflect,
- MercuryReply::mut_body_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<MercuryReply>(
- "MercuryReply",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for MercuryReply {
- fn clear(&mut self) {
- self.clear_status_code();
- self.clear_status_message();
- self.clear_cache_policy();
- self.clear_ttl();
- self.clear_etag();
- self.clear_content_type();
- self.clear_body();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for MercuryReply {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for MercuryReply {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(Clone,PartialEq,Eq,Debug,Hash)]
- pub enum MercuryReply_CachePolicy {
- CACHE_NO = 1,
- CACHE_PRIVATE = 2,
- CACHE_PUBLIC = 3,
- }
- impl ::protobuf::ProtobufEnum for MercuryReply_CachePolicy {
- fn value(&self) -> i32 {
- *self as i32
- }
- fn from_i32(value: i32) -> ::std::option::Option<MercuryReply_CachePolicy> {
- match value {
- 1 => ::std::option::Option::Some(MercuryReply_CachePolicy::CACHE_NO),
- 2 => ::std::option::Option::Some(MercuryReply_CachePolicy::CACHE_PRIVATE),
- 3 => ::std::option::Option::Some(MercuryReply_CachePolicy::CACHE_PUBLIC),
- _ => ::std::option::Option::None
- }
- }
- fn values() -> &'static [Self] {
- static values: &'static [MercuryReply_CachePolicy] = &[
- MercuryReply_CachePolicy::CACHE_NO,
- MercuryReply_CachePolicy::CACHE_PRIVATE,
- MercuryReply_CachePolicy::CACHE_PUBLIC,
- ];
- values
- }
- fn enum_descriptor_static(_: ::std::option::Option<MercuryReply_CachePolicy>) -> &'static ::protobuf::reflect::EnumDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::EnumDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::EnumDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- ::protobuf::reflect::EnumDescriptor::new("MercuryReply_CachePolicy", file_descriptor_proto())
- })
- }
- }
- }
- impl ::std::marker::Copy for MercuryReply_CachePolicy {
- }
- impl ::protobuf::reflect::ProtobufValue for MercuryReply_CachePolicy {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Enum(self.descriptor())
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct Header {
- // message fields
- uri: ::protobuf::SingularField<::std::string::String>,
- content_type: ::protobuf::SingularField<::std::string::String>,
- method: ::protobuf::SingularField<::std::string::String>,
- status_code: ::std::option::Option<i32>,
- user_fields: ::protobuf::RepeatedField<UserField>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for Header {}
- impl Header {
- pub fn new() -> Header {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static Header {
- static mut instance: ::protobuf::lazy::Lazy<Header> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const Header,
- };
- unsafe {
- instance.get(Header::new)
- }
- }
- // optional string uri = 1;
- pub fn clear_uri(&mut self) {
- self.uri.clear();
- }
- pub fn has_uri(&self) -> bool {
- self.uri.is_some()
- }
- // Param is passed by value, moved
- pub fn set_uri(&mut self, v: ::std::string::String) {
- self.uri = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_uri(&mut self) -> &mut ::std::string::String {
- if self.uri.is_none() {
- self.uri.set_default();
- }
- self.uri.as_mut().unwrap()
- }
- // Take field
- pub fn take_uri(&mut self) -> ::std::string::String {
- self.uri.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_uri(&self) -> &str {
- match self.uri.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_uri_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.uri
- }
- fn mut_uri_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.uri
- }
- // optional string content_type = 2;
- pub fn clear_content_type(&mut self) {
- self.content_type.clear();
- }
- pub fn has_content_type(&self) -> bool {
- self.content_type.is_some()
- }
- // Param is passed by value, moved
- pub fn set_content_type(&mut self, v: ::std::string::String) {
- self.content_type = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_content_type(&mut self) -> &mut ::std::string::String {
- if self.content_type.is_none() {
- self.content_type.set_default();
- }
- self.content_type.as_mut().unwrap()
- }
- // Take field
- pub fn take_content_type(&mut self) -> ::std::string::String {
- self.content_type.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_content_type(&self) -> &str {
- match self.content_type.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_content_type_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.content_type
- }
- fn mut_content_type_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.content_type
- }
- // optional string method = 3;
- pub fn clear_method(&mut self) {
- self.method.clear();
- }
- pub fn has_method(&self) -> bool {
- self.method.is_some()
- }
- // Param is passed by value, moved
- pub fn set_method(&mut self, v: ::std::string::String) {
- self.method = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_method(&mut self) -> &mut ::std::string::String {
- if self.method.is_none() {
- self.method.set_default();
- }
- self.method.as_mut().unwrap()
- }
- // Take field
- pub fn take_method(&mut self) -> ::std::string::String {
- self.method.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_method(&self) -> &str {
- match self.method.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_method_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.method
- }
- fn mut_method_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.method
- }
- // optional sint32 status_code = 4;
- pub fn clear_status_code(&mut self) {
- self.status_code = ::std::option::Option::None;
- }
- pub fn has_status_code(&self) -> bool {
- self.status_code.is_some()
- }
- // Param is passed by value, moved
- pub fn set_status_code(&mut self, v: i32) {
- self.status_code = ::std::option::Option::Some(v);
- }
- pub fn get_status_code(&self) -> i32 {
- self.status_code.unwrap_or(0)
- }
- fn get_status_code_for_reflect(&self) -> &::std::option::Option<i32> {
- &self.status_code
- }
- fn mut_status_code_for_reflect(&mut self) -> &mut ::std::option::Option<i32> {
- &mut self.status_code
- }
- // repeated .UserField user_fields = 6;
- pub fn clear_user_fields(&mut self) {
- self.user_fields.clear();
- }
- // Param is passed by value, moved
- pub fn set_user_fields(&mut self, v: ::protobuf::RepeatedField<UserField>) {
- self.user_fields = v;
- }
- // Mutable pointer to the field.
- pub fn mut_user_fields(&mut self) -> &mut ::protobuf::RepeatedField<UserField> {
- &mut self.user_fields
- }
- // Take field
- pub fn take_user_fields(&mut self) -> ::protobuf::RepeatedField<UserField> {
- ::std::mem::replace(&mut self.user_fields, ::protobuf::RepeatedField::new())
- }
- pub fn get_user_fields(&self) -> &[UserField] {
- &self.user_fields
- }
- fn get_user_fields_for_reflect(&self) -> &::protobuf::RepeatedField<UserField> {
- &self.user_fields
- }
- fn mut_user_fields_for_reflect(&mut self) -> &mut ::protobuf::RepeatedField<UserField> {
- &mut self.user_fields
- }
- }
- impl ::protobuf::Message for Header {
- fn is_initialized(&self) -> bool {
- for v in &self.user_fields {
- if !v.is_initialized() {
- return false;
- }
- };
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.uri)?;
- },
- 2 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.content_type)?;
- },
- 3 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.method)?;
- },
- 4 => {
- if wire_type != ::protobuf::wire_format::WireTypeVarint {
- return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
- }
- let tmp = is.read_sint32()?;
- self.status_code = ::std::option::Option::Some(tmp);
- },
- 6 => {
- ::protobuf::rt::read_repeated_message_into(wire_type, is, &mut self.user_fields)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.uri.as_ref() {
- my_size += ::protobuf::rt::string_size(1, &v);
- }
- if let Some(ref v) = self.content_type.as_ref() {
- my_size += ::protobuf::rt::string_size(2, &v);
- }
- if let Some(ref v) = self.method.as_ref() {
- my_size += ::protobuf::rt::string_size(3, &v);
- }
- if let Some(v) = self.status_code {
- my_size += ::protobuf::rt::value_varint_zigzag_size(4, v);
- }
- for value in &self.user_fields {
- let len = value.compute_size();
- my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
- };
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.uri.as_ref() {
- os.write_string(1, &v)?;
- }
- if let Some(ref v) = self.content_type.as_ref() {
- os.write_string(2, &v)?;
- }
- if let Some(ref v) = self.method.as_ref() {
- os.write_string(3, &v)?;
- }
- if let Some(v) = self.status_code {
- os.write_sint32(4, v)?;
- }
- for v in &self.user_fields {
- os.write_tag(6, ::protobuf::wire_format::WireTypeLengthDelimited)?;
- os.write_raw_varint32(v.get_cached_size())?;
- v.write_to_with_cached_sizes(os)?;
- };
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for Header {
- fn new() -> Header {
- Header::new()
- }
- fn descriptor_static(_: ::std::option::Option<Header>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "uri",
- Header::get_uri_for_reflect,
- Header::mut_uri_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "content_type",
- Header::get_content_type_for_reflect,
- Header::mut_content_type_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "method",
- Header::get_method_for_reflect,
- Header::mut_method_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_option_accessor::<_, ::protobuf::types::ProtobufTypeSint32>(
- "status_code",
- Header::get_status_code_for_reflect,
- Header::mut_status_code_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_repeated_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<UserField>>(
- "user_fields",
- Header::get_user_fields_for_reflect,
- Header::mut_user_fields_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<Header>(
- "Header",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for Header {
- fn clear(&mut self) {
- self.clear_uri();
- self.clear_content_type();
- self.clear_method();
- self.clear_status_code();
- self.clear_user_fields();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for Header {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for Header {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- #[derive(PartialEq,Clone,Default)]
- pub struct UserField {
- // message fields
- key: ::protobuf::SingularField<::std::string::String>,
- value: ::protobuf::SingularField<::std::vec::Vec<u8>>,
- // special fields
- unknown_fields: ::protobuf::UnknownFields,
- cached_size: ::protobuf::CachedSize,
- }
- // see codegen.rs for the explanation why impl Sync explicitly
- unsafe impl ::std::marker::Sync for UserField {}
- impl UserField {
- pub fn new() -> UserField {
- ::std::default::Default::default()
- }
- pub fn default_instance() -> &'static UserField {
- static mut instance: ::protobuf::lazy::Lazy<UserField> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const UserField,
- };
- unsafe {
- instance.get(UserField::new)
- }
- }
- // optional string key = 1;
- pub fn clear_key(&mut self) {
- self.key.clear();
- }
- pub fn has_key(&self) -> bool {
- self.key.is_some()
- }
- // Param is passed by value, moved
- pub fn set_key(&mut self, v: ::std::string::String) {
- self.key = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_key(&mut self) -> &mut ::std::string::String {
- if self.key.is_none() {
- self.key.set_default();
- }
- self.key.as_mut().unwrap()
- }
- // Take field
- pub fn take_key(&mut self) -> ::std::string::String {
- self.key.take().unwrap_or_else(|| ::std::string::String::new())
- }
- pub fn get_key(&self) -> &str {
- match self.key.as_ref() {
- Some(v) => &v,
- None => "",
- }
- }
- fn get_key_for_reflect(&self) -> &::protobuf::SingularField<::std::string::String> {
- &self.key
- }
- fn mut_key_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::string::String> {
- &mut self.key
- }
- // optional bytes value = 2;
- pub fn clear_value(&mut self) {
- self.value.clear();
- }
- pub fn has_value(&self) -> bool {
- self.value.is_some()
- }
- // Param is passed by value, moved
- pub fn set_value(&mut self, v: ::std::vec::Vec<u8>) {
- self.value = ::protobuf::SingularField::some(v);
- }
- // Mutable pointer to the field.
- // If field is not initialized, it is initialized with default value first.
- pub fn mut_value(&mut self) -> &mut ::std::vec::Vec<u8> {
- if self.value.is_none() {
- self.value.set_default();
- }
- self.value.as_mut().unwrap()
- }
- // Take field
- pub fn take_value(&mut self) -> ::std::vec::Vec<u8> {
- self.value.take().unwrap_or_else(|| ::std::vec::Vec::new())
- }
- pub fn get_value(&self) -> &[u8] {
- match self.value.as_ref() {
- Some(v) => &v,
- None => &[],
- }
- }
- fn get_value_for_reflect(&self) -> &::protobuf::SingularField<::std::vec::Vec<u8>> {
- &self.value
- }
- fn mut_value_for_reflect(&mut self) -> &mut ::protobuf::SingularField<::std::vec::Vec<u8>> {
- &mut self.value
- }
- }
- impl ::protobuf::Message for UserField {
- fn is_initialized(&self) -> bool {
- true
- }
- fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream) -> ::protobuf::ProtobufResult<()> {
- while !is.eof()? {
- let (field_number, wire_type) = is.read_tag_unpack()?;
- match field_number {
- 1 => {
- ::protobuf::rt::read_singular_string_into(wire_type, is, &mut self.key)?;
- },
- 2 => {
- ::protobuf::rt::read_singular_bytes_into(wire_type, is, &mut self.value)?;
- },
- _ => {
- ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
- },
- };
- }
- ::std::result::Result::Ok(())
- }
- // Compute sizes of nested messages
- #[allow(unused_variables)]
- fn compute_size(&self) -> u32 {
- let mut my_size = 0;
- if let Some(ref v) = self.key.as_ref() {
- my_size += ::protobuf::rt::string_size(1, &v);
- }
- if let Some(ref v) = self.value.as_ref() {
- my_size += ::protobuf::rt::bytes_size(2, &v);
- }
- my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
- self.cached_size.set(my_size);
- my_size
- }
- fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream) -> ::protobuf::ProtobufResult<()> {
- if let Some(ref v) = self.key.as_ref() {
- os.write_string(1, &v)?;
- }
- if let Some(ref v) = self.value.as_ref() {
- os.write_bytes(2, &v)?;
- }
- os.write_unknown_fields(self.get_unknown_fields())?;
- ::std::result::Result::Ok(())
- }
- fn get_cached_size(&self) -> u32 {
- self.cached_size.get()
- }
- fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
- &self.unknown_fields
- }
- fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
- &mut self.unknown_fields
- }
- fn as_any(&self) -> &::std::any::Any {
- self as &::std::any::Any
- }
- fn as_any_mut(&mut self) -> &mut ::std::any::Any {
- self as &mut ::std::any::Any
- }
- fn into_any(self: Box<Self>) -> ::std::boxed::Box<::std::any::Any> {
- self
- }
- fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
- ::protobuf::MessageStatic::descriptor_static(None::<Self>)
- }
- }
- impl ::protobuf::MessageStatic for UserField {
- fn new() -> UserField {
- UserField::new()
- }
- fn descriptor_static(_: ::std::option::Option<UserField>) -> &'static ::protobuf::reflect::MessageDescriptor {
- static mut descriptor: ::protobuf::lazy::Lazy<::protobuf::reflect::MessageDescriptor> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::reflect::MessageDescriptor,
- };
- unsafe {
- descriptor.get(|| {
- let mut fields = ::std::vec::Vec::new();
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
- "key",
- UserField::get_key_for_reflect,
- UserField::mut_key_for_reflect,
- ));
- fields.push(::protobuf::reflect::accessor::make_singular_field_accessor::<_, ::protobuf::types::ProtobufTypeBytes>(
- "value",
- UserField::get_value_for_reflect,
- UserField::mut_value_for_reflect,
- ));
- ::protobuf::reflect::MessageDescriptor::new::<UserField>(
- "UserField",
- fields,
- file_descriptor_proto()
- )
- })
- }
- }
- }
- impl ::protobuf::Clear for UserField {
- fn clear(&mut self) {
- self.clear_key();
- self.clear_value();
- self.unknown_fields.clear();
- }
- }
- impl ::std::fmt::Debug for UserField {
- fn fmt(&self, f: &mut ::std::fmt::Formatter) -> ::std::fmt::Result {
- ::protobuf::text_format::fmt(self, f)
- }
- }
- impl ::protobuf::reflect::ProtobufValue for UserField {
- fn as_ref(&self) -> ::protobuf::reflect::ProtobufValueRef {
- ::protobuf::reflect::ProtobufValueRef::Message(self)
- }
- }
- static file_descriptor_proto_data: &'static [u8] = b"\
- \n\rmercury.proto\"C\n\x16MercuryMultiGetRequest\x12)\n\x07request\x18\
- \x01\x20\x03(\x0b2\x0f.MercuryRequestR\x07request\";\n\x14MercuryMultiGe\
- tReply\x12#\n\x05reply\x18\x01\x20\x03(\x0b2\r.MercuryReplyR\x05reply\"m\
- \n\x0eMercuryRequest\x12\x10\n\x03uri\x18\x01\x20\x01(\tR\x03uri\x12!\n\
- \x0ccontent_type\x18\x02\x20\x01(\tR\x0bcontentType\x12\x12\n\x04body\
- \x18\x03\x20\x01(\x0cR\x04body\x12\x12\n\x04etag\x18\x04\x20\x01(\x0cR\
- \x04etag\"\xb3\x02\n\x0cMercuryReply\x12\x1f\n\x0bstatus_code\x18\x01\
- \x20\x01(\x11R\nstatusCode\x12%\n\x0estatus_message\x18\x02\x20\x01(\tR\
- \rstatusMessage\x12<\n\x0ccache_policy\x18\x03\x20\x01(\x0e2\x19.Mercury\
- Reply.CachePolicyR\x0bcachePolicy\x12\x10\n\x03ttl\x18\x04\x20\x01(\x11R\
- \x03ttl\x12\x12\n\x04etag\x18\x05\x20\x01(\x0cR\x04etag\x12!\n\x0cconten\
- t_type\x18\x06\x20\x01(\tR\x0bcontentType\x12\x12\n\x04body\x18\x07\x20\
- \x01(\x0cR\x04body\"@\n\x0bCachePolicy\x12\x0c\n\x08CACHE_NO\x10\x01\x12\
- \x11\n\rCACHE_PRIVATE\x10\x02\x12\x10\n\x0cCACHE_PUBLIC\x10\x03\"\xa3\
- \x01\n\x06Header\x12\x10\n\x03uri\x18\x01\x20\x01(\tR\x03uri\x12!\n\x0cc\
- ontent_type\x18\x02\x20\x01(\tR\x0bcontentType\x12\x16\n\x06method\x18\
- \x03\x20\x01(\tR\x06method\x12\x1f\n\x0bstatus_code\x18\x04\x20\x01(\x11\
- R\nstatusCode\x12+\n\x0buser_fields\x18\x06\x20\x03(\x0b2\n.UserFieldR\n\
- userFields\"3\n\tUserField\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\
- \x12\x14\n\x05value\x18\x02\x20\x01(\x0cR\x05valueJ\xaf\r\n\x06\x12\x04\
- \0\0,\x01\n\x08\n\x01\x0c\x12\x03\0\0\x12\n\n\n\x02\x04\0\x12\x04\x02\0\
- \x04\x01\n\n\n\x03\x04\0\x01\x12\x03\x02\x08\x1e\n\x0b\n\x04\x04\0\x02\0\
- \x12\x03\x03\x04*\n\x0c\n\x05\x04\0\x02\0\x04\x12\x03\x03\x04\x0c\n\x0c\
- \n\x05\x04\0\x02\0\x06\x12\x03\x03\r\x1b\n\x0c\n\x05\x04\0\x02\0\x01\x12\
- \x03\x03\x1c#\n\x0c\n\x05\x04\0\x02\0\x03\x12\x03\x03&)\n\n\n\x02\x04\
- \x01\x12\x04\x06\0\x08\x01\n\n\n\x03\x04\x01\x01\x12\x03\x06\x08\x1c\n\
- \x0b\n\x04\x04\x01\x02\0\x12\x03\x07\x04&\n\x0c\n\x05\x04\x01\x02\0\x04\
- \x12\x03\x07\x04\x0c\n\x0c\n\x05\x04\x01\x02\0\x06\x12\x03\x07\r\x19\n\
- \x0c\n\x05\x04\x01\x02\0\x01\x12\x03\x07\x1a\x1f\n\x0c\n\x05\x04\x01\x02\
- \0\x03\x12\x03\x07\"%\n\n\n\x02\x04\x02\x12\x04\n\0\x0f\x01\n\n\n\x03\
- \x04\x02\x01\x12\x03\n\x08\x16\n\x0b\n\x04\x04\x02\x02\0\x12\x03\x0b\x04\
- \x1e\n\x0c\n\x05\x04\x02\x02\0\x04\x12\x03\x0b\x04\x0c\n\x0c\n\x05\x04\
- \x02\x02\0\x05\x12\x03\x0b\r\x13\n\x0c\n\x05\x04\x02\x02\0\x01\x12\x03\
- \x0b\x14\x17\n\x0c\n\x05\x04\x02\x02\0\x03\x12\x03\x0b\x1a\x1d\n\x0b\n\
- \x04\x04\x02\x02\x01\x12\x03\x0c\x04'\n\x0c\n\x05\x04\x02\x02\x01\x04\
- \x12\x03\x0c\x04\x0c\n\x0c\n\x05\x04\x02\x02\x01\x05\x12\x03\x0c\r\x13\n\
- \x0c\n\x05\x04\x02\x02\x01\x01\x12\x03\x0c\x14\x20\n\x0c\n\x05\x04\x02\
- \x02\x01\x03\x12\x03\x0c#&\n\x0b\n\x04\x04\x02\x02\x02\x12\x03\r\x04\x1e\
- \n\x0c\n\x05\x04\x02\x02\x02\x04\x12\x03\r\x04\x0c\n\x0c\n\x05\x04\x02\
- \x02\x02\x05\x12\x03\r\r\x12\n\x0c\n\x05\x04\x02\x02\x02\x01\x12\x03\r\
- \x13\x17\n\x0c\n\x05\x04\x02\x02\x02\x03\x12\x03\r\x1a\x1d\n\x0b\n\x04\
- \x04\x02\x02\x03\x12\x03\x0e\x04\x1e\n\x0c\n\x05\x04\x02\x02\x03\x04\x12\
- \x03\x0e\x04\x0c\n\x0c\n\x05\x04\x02\x02\x03\x05\x12\x03\x0e\r\x12\n\x0c\
- \n\x05\x04\x02\x02\x03\x01\x12\x03\x0e\x13\x17\n\x0c\n\x05\x04\x02\x02\
- \x03\x03\x12\x03\x0e\x1a\x1d\n\n\n\x02\x04\x03\x12\x04\x11\0\x1e\x01\n\n\
- \n\x03\x04\x03\x01\x12\x03\x11\x08\x14\n\x0b\n\x04\x04\x03\x02\0\x12\x03\
- \x12\x04&\n\x0c\n\x05\x04\x03\x02\0\x04\x12\x03\x12\x04\x0c\n\x0c\n\x05\
- \x04\x03\x02\0\x05\x12\x03\x12\r\x13\n\x0c\n\x05\x04\x03\x02\0\x01\x12\
- \x03\x12\x14\x1f\n\x0c\n\x05\x04\x03\x02\0\x03\x12\x03\x12\"%\n\x0b\n\
- \x04\x04\x03\x02\x01\x12\x03\x13\x04)\n\x0c\n\x05\x04\x03\x02\x01\x04\
- \x12\x03\x13\x04\x0c\n\x0c\n\x05\x04\x03\x02\x01\x05\x12\x03\x13\r\x13\n\
- \x0c\n\x05\x04\x03\x02\x01\x01\x12\x03\x13\x14\"\n\x0c\n\x05\x04\x03\x02\
- \x01\x03\x12\x03\x13%(\n\x0b\n\x04\x04\x03\x02\x02\x12\x03\x14\x04,\n\
- \x0c\n\x05\x04\x03\x02\x02\x04\x12\x03\x14\x04\x0c\n\x0c\n\x05\x04\x03\
- \x02\x02\x06\x12\x03\x14\r\x18\n\x0c\n\x05\x04\x03\x02\x02\x01\x12\x03\
- \x14\x19%\n\x0c\n\x05\x04\x03\x02\x02\x03\x12\x03\x14(+\n\x0c\n\x04\x04\
- \x03\x04\0\x12\x04\x15\x04\x19\x05\n\x0c\n\x05\x04\x03\x04\0\x01\x12\x03\
- \x15\t\x14\n\r\n\x06\x04\x03\x04\0\x02\0\x12\x03\x16\x08\x17\n\x0e\n\x07\
- \x04\x03\x04\0\x02\0\x01\x12\x03\x16\x08\x10\n\x0e\n\x07\x04\x03\x04\0\
- \x02\0\x02\x12\x03\x16\x13\x16\n\r\n\x06\x04\x03\x04\0\x02\x01\x12\x03\
- \x17\x08\x1c\n\x0e\n\x07\x04\x03\x04\0\x02\x01\x01\x12\x03\x17\x08\x15\n\
- \x0e\n\x07\x04\x03\x04\0\x02\x01\x02\x12\x03\x17\x18\x1b\n\r\n\x06\x04\
- \x03\x04\0\x02\x02\x12\x03\x18\x08\x1b\n\x0e\n\x07\x04\x03\x04\0\x02\x02\
- \x01\x12\x03\x18\x08\x14\n\x0e\n\x07\x04\x03\x04\0\x02\x02\x02\x12\x03\
- \x18\x17\x1a\n\x0b\n\x04\x04\x03\x02\x03\x12\x03\x1a\x04\x1e\n\x0c\n\x05\
- \x04\x03\x02\x03\x04\x12\x03\x1a\x04\x0c\n\x0c\n\x05\x04\x03\x02\x03\x05\
- \x12\x03\x1a\r\x13\n\x0c\n\x05\x04\x03\x02\x03\x01\x12\x03\x1a\x14\x17\n\
- \x0c\n\x05\x04\x03\x02\x03\x03\x12\x03\x1a\x1a\x1d\n\x0b\n\x04\x04\x03\
- \x02\x04\x12\x03\x1b\x04\x1e\n\x0c\n\x05\x04\x03\x02\x04\x04\x12\x03\x1b\
- \x04\x0c\n\x0c\n\x05\x04\x03\x02\x04\x05\x12\x03\x1b\r\x12\n\x0c\n\x05\
- \x04\x03\x02\x04\x01\x12\x03\x1b\x13\x17\n\x0c\n\x05\x04\x03\x02\x04\x03\
- \x12\x03\x1b\x1a\x1d\n\x0b\n\x04\x04\x03\x02\x05\x12\x03\x1c\x04'\n\x0c\
- \n\x05\x04\x03\x02\x05\x04\x12\x03\x1c\x04\x0c\n\x0c\n\x05\x04\x03\x02\
- \x05\x05\x12\x03\x1c\r\x13\n\x0c\n\x05\x04\x03\x02\x05\x01\x12\x03\x1c\
- \x14\x20\n\x0c\n\x05\x04\x03\x02\x05\x03\x12\x03\x1c#&\n\x0b\n\x04\x04\
- \x03\x02\x06\x12\x03\x1d\x04\x1e\n\x0c\n\x05\x04\x03\x02\x06\x04\x12\x03\
- \x1d\x04\x0c\n\x0c\n\x05\x04\x03\x02\x06\x05\x12\x03\x1d\r\x12\n\x0c\n\
- \x05\x04\x03\x02\x06\x01\x12\x03\x1d\x13\x17\n\x0c\n\x05\x04\x03\x02\x06\
- \x03\x12\x03\x1d\x1a\x1d\n\n\n\x02\x04\x04\x12\x04!\0'\x01\n\n\n\x03\x04\
- \x04\x01\x12\x03!\x08\x0e\n\x0b\n\x04\x04\x04\x02\0\x12\x03\"\x04\x1f\n\
- \x0c\n\x05\x04\x04\x02\0\x04\x12\x03\"\x04\x0c\n\x0c\n\x05\x04\x04\x02\0\
- \x05\x12\x03\"\r\x13\n\x0c\n\x05\x04\x04\x02\0\x01\x12\x03\"\x14\x17\n\
- \x0c\n\x05\x04\x04\x02\0\x03\x12\x03\"\x1a\x1e\n\x0b\n\x04\x04\x04\x02\
- \x01\x12\x03#\x04(\n\x0c\n\x05\x04\x04\x02\x01\x04\x12\x03#\x04\x0c\n\
- \x0c\n\x05\x04\x04\x02\x01\x05\x12\x03#\r\x13\n\x0c\n\x05\x04\x04\x02\
- \x01\x01\x12\x03#\x14\x20\n\x0c\n\x05\x04\x04\x02\x01\x03\x12\x03##'\n\
- \x0b\n\x04\x04\x04\x02\x02\x12\x03$\x04\"\n\x0c\n\x05\x04\x04\x02\x02\
- \x04\x12\x03$\x04\x0c\n\x0c\n\x05\x04\x04\x02\x02\x05\x12\x03$\r\x13\n\
- \x0c\n\x05\x04\x04\x02\x02\x01\x12\x03$\x14\x1a\n\x0c\n\x05\x04\x04\x02\
- \x02\x03\x12\x03$\x1d!\n\x0b\n\x04\x04\x04\x02\x03\x12\x03%\x04'\n\x0c\n\
- \x05\x04\x04\x02\x03\x04\x12\x03%\x04\x0c\n\x0c\n\x05\x04\x04\x02\x03\
- \x05\x12\x03%\r\x13\n\x0c\n\x05\x04\x04\x02\x03\x01\x12\x03%\x14\x1f\n\
- \x0c\n\x05\x04\x04\x02\x03\x03\x12\x03%\"&\n\x0b\n\x04\x04\x04\x02\x04\
- \x12\x03&\x04*\n\x0c\n\x05\x04\x04\x02\x04\x04\x12\x03&\x04\x0c\n\x0c\n\
- \x05\x04\x04\x02\x04\x06\x12\x03&\r\x16\n\x0c\n\x05\x04\x04\x02\x04\x01\
- \x12\x03&\x17\"\n\x0c\n\x05\x04\x04\x02\x04\x03\x12\x03&%)\n\n\n\x02\x04\
- \x05\x12\x04)\0,\x01\n\n\n\x03\x04\x05\x01\x12\x03)\x08\x11\n\x0b\n\x04\
- \x04\x05\x02\0\x12\x03*\x04\x1f\n\x0c\n\x05\x04\x05\x02\0\x04\x12\x03*\
- \x04\x0c\n\x0c\n\x05\x04\x05\x02\0\x05\x12\x03*\r\x13\n\x0c\n\x05\x04\
- \x05\x02\0\x01\x12\x03*\x14\x17\n\x0c\n\x05\x04\x05\x02\0\x03\x12\x03*\
- \x1a\x1e\n\x0b\n\x04\x04\x05\x02\x01\x12\x03+\x04\x20\n\x0c\n\x05\x04\
- \x05\x02\x01\x04\x12\x03+\x04\x0c\n\x0c\n\x05\x04\x05\x02\x01\x05\x12\
- \x03+\r\x12\n\x0c\n\x05\x04\x05\x02\x01\x01\x12\x03+\x13\x18\n\x0c\n\x05\
- \x04\x05\x02\x01\x03\x12\x03+\x1b\x1f\
- ";
- static mut file_descriptor_proto_lazy: ::protobuf::lazy::Lazy<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::lazy::Lazy {
- lock: ::protobuf::lazy::ONCE_INIT,
- ptr: 0 as *const ::protobuf::descriptor::FileDescriptorProto,
- };
- fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
- ::protobuf::parse_from_bytes(file_descriptor_proto_data).unwrap()
- }
- pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
- unsafe {
- file_descriptor_proto_lazy.get(|| {
- parse_descriptor_proto()
- })
- }
- }
|