1#![allow(unknown_lints)]
6#![allow(clippy::all)]
7
8#![allow(unused_attributes)]
9#![cfg_attr(rustfmt, rustfmt::skip)]
10
11#![allow(box_pointers)]
12#![allow(dead_code)]
13#![allow(missing_docs)]
14#![allow(non_camel_case_types)]
15#![allow(non_snake_case)]
16#![allow(non_upper_case_globals)]
17#![allow(trivial_casts)]
18#![allow(unused_imports)]
19#![allow(unused_results)]
20#[derive(PartialEq,Clone,Default)]
27#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
28pub struct Request {
29    pub seqid: i32,
31    pub method: Method,
32    pub uri: ::std::string::String,
33    pub headers: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
34    pub body: ::bytes::Bytes,
35    #[cfg_attr(feature = "with-serde", serde(skip))]
37    pub unknown_fields: ::protobuf::UnknownFields,
38    #[cfg_attr(feature = "with-serde", serde(skip))]
39    pub cached_size: ::protobuf::CachedSize,
40}
41
42impl<'a> ::std::default::Default for &'a Request {
43    fn default() -> &'a Request {
44        <Request as ::protobuf::Message>::default_instance()
45    }
46}
47
48impl Request {
49    pub fn new() -> Request {
50        ::std::default::Default::default()
51    }
52
53    pub fn get_seqid(&self) -> i32 {
57        self.seqid
58    }
59    pub fn clear_seqid(&mut self) {
60        self.seqid = 0;
61    }
62
63    pub fn set_seqid(&mut self, v: i32) {
65        self.seqid = v;
66    }
67
68    pub fn get_method(&self) -> Method {
72        self.method
73    }
74    pub fn clear_method(&mut self) {
75        self.method = Method::GET;
76    }
77
78    pub fn set_method(&mut self, v: Method) {
80        self.method = v;
81    }
82
83    pub fn get_uri(&self) -> &str {
87        &self.uri
88    }
89    pub fn clear_uri(&mut self) {
90        self.uri.clear();
91    }
92
93    pub fn set_uri(&mut self, v: ::std::string::String) {
95        self.uri = v;
96    }
97
98    pub fn mut_uri(&mut self) -> &mut ::std::string::String {
101        &mut self.uri
102    }
103
104    pub fn take_uri(&mut self) -> ::std::string::String {
106        ::std::mem::replace(&mut self.uri, ::std::string::String::new())
107    }
108
109    pub fn get_headers(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
113        &self.headers
114    }
115    pub fn clear_headers(&mut self) {
116        self.headers.clear();
117    }
118
119    pub fn set_headers(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
121        self.headers = v;
122    }
123
124    pub fn mut_headers(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
126        &mut self.headers
127    }
128
129    pub fn take_headers(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
131        ::std::mem::replace(&mut self.headers, ::std::collections::HashMap::new())
132    }
133
134    pub fn get_body(&self) -> &[u8] {
138        &self.body
139    }
140    pub fn clear_body(&mut self) {
141        self.body.clear();
142    }
143
144    pub fn set_body(&mut self, v: ::bytes::Bytes) {
146        self.body = v;
147    }
148
149    pub fn mut_body(&mut self) -> &mut ::bytes::Bytes {
152        &mut self.body
153    }
154
155    pub fn take_body(&mut self) -> ::bytes::Bytes {
157        ::std::mem::replace(&mut self.body, ::bytes::Bytes::new())
158    }
159}
160
161impl ::protobuf::Message for Request {
162    fn is_initialized(&self) -> bool {
163        true
164    }
165
166    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
167        while !is.eof()? {
168            let (field_number, wire_type) = is.read_tag_unpack()?;
169            match field_number {
170                1 => {
171                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
172                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
173                    }
174                    let tmp = is.read_int32()?;
175                    self.seqid = tmp;
176                },
177                2 => {
178                    ::protobuf::rt::read_proto3_enum_with_unknown_fields_into(wire_type, is, &mut self.method, 2, &mut self.unknown_fields)?
179                },
180                3 => {
181                    ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.uri)?;
182                },
183                4 => {
184                    ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.headers)?;
185                },
186                5 => {
187                    ::protobuf::rt::read_singular_proto3_carllerche_bytes_into(wire_type, is, &mut self.body)?;
188                },
189                _ => {
190                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
191                },
192            };
193        }
194        ::std::result::Result::Ok(())
195    }
196
197    #[allow(unused_variables)]
199    fn compute_size(&self) -> u32 {
200        let mut my_size = 0;
201        if self.seqid != 0 {
202            my_size += ::protobuf::rt::value_size(1, self.seqid, ::protobuf::wire_format::WireTypeVarint);
203        }
204        if self.method != Method::GET {
205            my_size += ::protobuf::rt::enum_size(2, self.method);
206        }
207        if !self.uri.is_empty() {
208            my_size += ::protobuf::rt::string_size(3, &self.uri);
209        }
210        my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.headers);
211        if !self.body.is_empty() {
212            my_size += ::protobuf::rt::bytes_size(5, &self.body);
213        }
214        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
215        self.cached_size.set(my_size);
216        my_size
217    }
218
219    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
220        if self.seqid != 0 {
221            os.write_int32(1, self.seqid)?;
222        }
223        if self.method != Method::GET {
224            os.write_enum(2, ::protobuf::ProtobufEnum::value(&self.method))?;
225        }
226        if !self.uri.is_empty() {
227            os.write_string(3, &self.uri)?;
228        }
229        ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(4, &self.headers, os)?;
230        if !self.body.is_empty() {
231            os.write_bytes(5, &self.body)?;
232        }
233        os.write_unknown_fields(self.get_unknown_fields())?;
234        ::std::result::Result::Ok(())
235    }
236
237    fn get_cached_size(&self) -> u32 {
238        self.cached_size.get()
239    }
240
241    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
242        &self.unknown_fields
243    }
244
245    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
246        &mut self.unknown_fields
247    }
248
249    fn as_any(&self) -> &dyn (::std::any::Any) {
250        self as &dyn (::std::any::Any)
251    }
252    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
253        self as &mut dyn (::std::any::Any)
254    }
255    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
256        self
257    }
258
259    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
260        Self::descriptor_static()
261    }
262
263    fn new() -> Request {
264        Request::new()
265    }
266
267    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
268        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
269        descriptor.get(|| {
270            let mut fields = ::std::vec::Vec::new();
271            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
272                "seqid",
273                |m: &Request| { &m.seqid },
274                |m: &mut Request| { &mut m.seqid },
275            ));
276            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeEnum<Method>>(
277                "method",
278                |m: &Request| { &m.method },
279                |m: &mut Request| { &mut m.method },
280            ));
281            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
282                "uri",
283                |m: &Request| { &m.uri },
284                |m: &mut Request| { &mut m.uri },
285            ));
286            fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
287                "headers",
288                |m: &Request| { &m.headers },
289                |m: &mut Request| { &mut m.headers },
290            ));
291            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeCarllercheBytes>(
292                "body",
293                |m: &Request| { &m.body },
294                |m: &mut Request| { &mut m.body },
295            ));
296            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Request>(
297                "Request",
298                fields,
299                file_descriptor_proto()
300            )
301        })
302    }
303
304    fn default_instance() -> &'static Request {
305        static instance: ::protobuf::rt::LazyV2<Request> = ::protobuf::rt::LazyV2::INIT;
306        instance.get(Request::new)
307    }
308}
309
310impl ::protobuf::Clear for Request {
311    fn clear(&mut self) {
312        self.seqid = 0;
313        self.method = Method::GET;
314        self.uri.clear();
315        self.headers.clear();
316        self.body.clear();
317        self.unknown_fields.clear();
318    }
319}
320
321impl ::std::fmt::Debug for Request {
322    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
323        ::protobuf::text_format::fmt(self, f)
324    }
325}
326
327impl ::protobuf::reflect::ProtobufValue for Request {
328    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
329        ::protobuf::reflect::ReflectValueRef::Message(self)
330    }
331}
332
333#[derive(PartialEq,Clone,Default)]
334#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
335pub struct Response {
336    pub seqid: i32,
338    pub status: i32,
339    pub headers: ::std::collections::HashMap<::std::string::String, ::std::string::String>,
340    pub body: ::bytes::Bytes,
341    #[cfg_attr(feature = "with-serde", serde(skip))]
343    pub unknown_fields: ::protobuf::UnknownFields,
344    #[cfg_attr(feature = "with-serde", serde(skip))]
345    pub cached_size: ::protobuf::CachedSize,
346}
347
348impl<'a> ::std::default::Default for &'a Response {
349    fn default() -> &'a Response {
350        <Response as ::protobuf::Message>::default_instance()
351    }
352}
353
354impl Response {
355    pub fn new() -> Response {
356        ::std::default::Default::default()
357    }
358
359    pub fn get_seqid(&self) -> i32 {
363        self.seqid
364    }
365    pub fn clear_seqid(&mut self) {
366        self.seqid = 0;
367    }
368
369    pub fn set_seqid(&mut self, v: i32) {
371        self.seqid = v;
372    }
373
374    pub fn get_status(&self) -> i32 {
378        self.status
379    }
380    pub fn clear_status(&mut self) {
381        self.status = 0;
382    }
383
384    pub fn set_status(&mut self, v: i32) {
386        self.status = v;
387    }
388
389    pub fn get_headers(&self) -> &::std::collections::HashMap<::std::string::String, ::std::string::String> {
393        &self.headers
394    }
395    pub fn clear_headers(&mut self) {
396        self.headers.clear();
397    }
398
399    pub fn set_headers(&mut self, v: ::std::collections::HashMap<::std::string::String, ::std::string::String>) {
401        self.headers = v;
402    }
403
404    pub fn mut_headers(&mut self) -> &mut ::std::collections::HashMap<::std::string::String, ::std::string::String> {
406        &mut self.headers
407    }
408
409    pub fn take_headers(&mut self) -> ::std::collections::HashMap<::std::string::String, ::std::string::String> {
411        ::std::mem::replace(&mut self.headers, ::std::collections::HashMap::new())
412    }
413
414    pub fn get_body(&self) -> &[u8] {
418        &self.body
419    }
420    pub fn clear_body(&mut self) {
421        self.body.clear();
422    }
423
424    pub fn set_body(&mut self, v: ::bytes::Bytes) {
426        self.body = v;
427    }
428
429    pub fn mut_body(&mut self) -> &mut ::bytes::Bytes {
432        &mut self.body
433    }
434
435    pub fn take_body(&mut self) -> ::bytes::Bytes {
437        ::std::mem::replace(&mut self.body, ::bytes::Bytes::new())
438    }
439}
440
441impl ::protobuf::Message for Response {
442    fn is_initialized(&self) -> bool {
443        true
444    }
445
446    fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
447        while !is.eof()? {
448            let (field_number, wire_type) = is.read_tag_unpack()?;
449            match field_number {
450                1 => {
451                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
452                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
453                    }
454                    let tmp = is.read_int32()?;
455                    self.seqid = tmp;
456                },
457                2 => {
458                    if wire_type != ::protobuf::wire_format::WireTypeVarint {
459                        return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
460                    }
461                    let tmp = is.read_int32()?;
462                    self.status = tmp;
463                },
464                3 => {
465                    ::protobuf::rt::read_map_into::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(wire_type, is, &mut self.headers)?;
466                },
467                4 => {
468                    ::protobuf::rt::read_singular_proto3_carllerche_bytes_into(wire_type, is, &mut self.body)?;
469                },
470                _ => {
471                    ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
472                },
473            };
474        }
475        ::std::result::Result::Ok(())
476    }
477
478    #[allow(unused_variables)]
480    fn compute_size(&self) -> u32 {
481        let mut my_size = 0;
482        if self.seqid != 0 {
483            my_size += ::protobuf::rt::value_size(1, self.seqid, ::protobuf::wire_format::WireTypeVarint);
484        }
485        if self.status != 0 {
486            my_size += ::protobuf::rt::value_size(2, self.status, ::protobuf::wire_format::WireTypeVarint);
487        }
488        my_size += ::protobuf::rt::compute_map_size::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.headers);
489        if !self.body.is_empty() {
490            my_size += ::protobuf::rt::bytes_size(4, &self.body);
491        }
492        my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
493        self.cached_size.set(my_size);
494        my_size
495    }
496
497    fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
498        if self.seqid != 0 {
499            os.write_int32(1, self.seqid)?;
500        }
501        if self.status != 0 {
502            os.write_int32(2, self.status)?;
503        }
504        ::protobuf::rt::write_map_with_cached_sizes::<::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(3, &self.headers, os)?;
505        if !self.body.is_empty() {
506            os.write_bytes(4, &self.body)?;
507        }
508        os.write_unknown_fields(self.get_unknown_fields())?;
509        ::std::result::Result::Ok(())
510    }
511
512    fn get_cached_size(&self) -> u32 {
513        self.cached_size.get()
514    }
515
516    fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
517        &self.unknown_fields
518    }
519
520    fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
521        &mut self.unknown_fields
522    }
523
524    fn as_any(&self) -> &dyn (::std::any::Any) {
525        self as &dyn (::std::any::Any)
526    }
527    fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
528        self as &mut dyn (::std::any::Any)
529    }
530    fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
531        self
532    }
533
534    fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
535        Self::descriptor_static()
536    }
537
538    fn new() -> Response {
539        Response::new()
540    }
541
542    fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
543        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
544        descriptor.get(|| {
545            let mut fields = ::std::vec::Vec::new();
546            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
547                "seqid",
548                |m: &Response| { &m.seqid },
549                |m: &mut Response| { &mut m.seqid },
550            ));
551            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
552                "status",
553                |m: &Response| { &m.status },
554                |m: &mut Response| { &mut m.status },
555            ));
556            fields.push(::protobuf::reflect::accessor::make_map_accessor::<_, ::protobuf::types::ProtobufTypeString, ::protobuf::types::ProtobufTypeString>(
557                "headers",
558                |m: &Response| { &m.headers },
559                |m: &mut Response| { &mut m.headers },
560            ));
561            fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeCarllercheBytes>(
562                "body",
563                |m: &Response| { &m.body },
564                |m: &mut Response| { &mut m.body },
565            ));
566            ::protobuf::reflect::MessageDescriptor::new_pb_name::<Response>(
567                "Response",
568                fields,
569                file_descriptor_proto()
570            )
571        })
572    }
573
574    fn default_instance() -> &'static Response {
575        static instance: ::protobuf::rt::LazyV2<Response> = ::protobuf::rt::LazyV2::INIT;
576        instance.get(Response::new)
577    }
578}
579
580impl ::protobuf::Clear for Response {
581    fn clear(&mut self) {
582        self.seqid = 0;
583        self.status = 0;
584        self.headers.clear();
585        self.body.clear();
586        self.unknown_fields.clear();
587    }
588}
589
590impl ::std::fmt::Debug for Response {
591    fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
592        ::protobuf::text_format::fmt(self, f)
593    }
594}
595
596impl ::protobuf::reflect::ProtobufValue for Response {
597    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
598        ::protobuf::reflect::ReflectValueRef::Message(self)
599    }
600}
601
602#[derive(Clone,PartialEq,Eq,Debug,Hash)]
603#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
604pub enum Scheme {
605    HTTP = 0,
606    HTTPS = 1,
607    RPC = 2,
608    WNS = 3,
609}
610
611impl ::protobuf::ProtobufEnum for Scheme {
612    fn value(&self) -> i32 {
613        *self as i32
614    }
615
616    fn from_i32(value: i32) -> ::std::option::Option<Scheme> {
617        match value {
618            0 => ::std::option::Option::Some(Scheme::HTTP),
619            1 => ::std::option::Option::Some(Scheme::HTTPS),
620            2 => ::std::option::Option::Some(Scheme::RPC),
621            3 => ::std::option::Option::Some(Scheme::WNS),
622            _ => ::std::option::Option::None
623        }
624    }
625
626    fn values() -> &'static [Self] {
627        static values: &'static [Scheme] = &[
628            Scheme::HTTP,
629            Scheme::HTTPS,
630            Scheme::RPC,
631            Scheme::WNS,
632        ];
633        values
634    }
635
636    fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
637        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
638        descriptor.get(|| {
639            ::protobuf::reflect::EnumDescriptor::new_pb_name::<Scheme>("Scheme", file_descriptor_proto())
640        })
641    }
642}
643
644impl ::std::marker::Copy for Scheme {
645}
646
647impl ::std::default::Default for Scheme {
648    fn default() -> Self {
649        Scheme::HTTP
650    }
651}
652
653impl ::protobuf::reflect::ProtobufValue for Scheme {
654    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
655        ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
656    }
657}
658
659#[derive(Clone,PartialEq,Eq,Debug,Hash)]
660#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
661pub enum Method {
662    GET = 0,
663    HEAD = 1,
664    POST = 2,
665    PUT = 3,
666    DELETE = 4,
667    CONNECT = 5,
668    OPTIONS = 6,
669    TRACE = 7,
670    PATCH = 8,
671    ONEWAY = 9,
672}
673
674impl ::protobuf::ProtobufEnum for Method {
675    fn value(&self) -> i32 {
676        *self as i32
677    }
678
679    fn from_i32(value: i32) -> ::std::option::Option<Method> {
680        match value {
681            0 => ::std::option::Option::Some(Method::GET),
682            1 => ::std::option::Option::Some(Method::HEAD),
683            2 => ::std::option::Option::Some(Method::POST),
684            3 => ::std::option::Option::Some(Method::PUT),
685            4 => ::std::option::Option::Some(Method::DELETE),
686            5 => ::std::option::Option::Some(Method::CONNECT),
687            6 => ::std::option::Option::Some(Method::OPTIONS),
688            7 => ::std::option::Option::Some(Method::TRACE),
689            8 => ::std::option::Option::Some(Method::PATCH),
690            9 => ::std::option::Option::Some(Method::ONEWAY),
691            _ => ::std::option::Option::None
692        }
693    }
694
695    fn values() -> &'static [Self] {
696        static values: &'static [Method] = &[
697            Method::GET,
698            Method::HEAD,
699            Method::POST,
700            Method::PUT,
701            Method::DELETE,
702            Method::CONNECT,
703            Method::OPTIONS,
704            Method::TRACE,
705            Method::PATCH,
706            Method::ONEWAY,
707        ];
708        values
709    }
710
711    fn enum_descriptor_static() -> &'static ::protobuf::reflect::EnumDescriptor {
712        static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::EnumDescriptor> = ::protobuf::rt::LazyV2::INIT;
713        descriptor.get(|| {
714            ::protobuf::reflect::EnumDescriptor::new_pb_name::<Method>("Method", file_descriptor_proto())
715        })
716    }
717}
718
719impl ::std::marker::Copy for Method {
720}
721
722impl ::std::default::Default for Method {
723    fn default() -> Self {
724        Method::GET
725    }
726}
727
728impl ::protobuf::reflect::ProtobufValue for Method {
729    fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
730        ::protobuf::reflect::ReflectValueRef::Enum(::protobuf::ProtobufEnum::descriptor(self))
731    }
732}
733
734static file_descriptor_proto_data: &'static [u8] = b"\
735    \n\rmessage.proto\"\xd3\x01\n\x07Request\x12\x14\n\x05seqid\x18\x01\x20\
736    \x01(\x05R\x05seqid\x12\x1f\n\x06method\x18\x02\x20\x01(\x0e2\x07.Method\
737    R\x06method\x12\x10\n\x03uri\x18\x03\x20\x01(\tR\x03uri\x12/\n\x07header\
738    s\x18\x04\x20\x03(\x0b2\x15.Request.HeadersEntryR\x07headers\x12\x12\n\
739    \x04body\x18\x05\x20\x01(\x0cR\x04body\x1a:\n\x0cHeadersEntry\x12\x10\n\
740    \x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05value\x18\x02\x20\x01(\t\
741    R\x05value:\x028\x01\"\xba\x01\n\x08Response\x12\x14\n\x05seqid\x18\x01\
742    \x20\x01(\x05R\x05seqid\x12\x16\n\x06status\x18\x02\x20\x01(\x05R\x06sta\
743    tus\x120\n\x07headers\x18\x03\x20\x03(\x0b2\x16.Response.HeadersEntryR\
744    \x07headers\x12\x12\n\x04body\x18\x04\x20\x01(\x0cR\x04body\x1a:\n\x0cHe\
745    adersEntry\x12\x10\n\x03key\x18\x01\x20\x01(\tR\x03key\x12\x14\n\x05valu\
746    e\x18\x02\x20\x01(\tR\x05value:\x028\x01*/\n\x06Scheme\x12\x08\n\x04HTTP\
747    \x10\0\x12\t\n\x05HTTPS\x10\x01\x12\x07\n\x03RPC\x10\x02\x12\x07\n\x03WN\
748    S\x10\x03*v\n\x06Method\x12\x07\n\x03GET\x10\0\x12\x08\n\x04HEAD\x10\x01\
749    \x12\x08\n\x04POST\x10\x02\x12\x07\n\x03PUT\x10\x03\x12\n\n\x06DELETE\
750    \x10\x04\x12\x0b\n\x07CONNECT\x10\x05\x12\x0b\n\x07OPTIONS\x10\x06\x12\t\
751    \n\x05TRACE\x10\x07\x12\t\n\x05PATCH\x10\x08\x12\n\n\x06ONEWAY\x10\tb\
752    \x06proto3\
753";
754
755static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
756
757fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
758    ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
759}
760
761pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
762    file_descriptor_proto_lazy.get(|| {
763        parse_descriptor_proto()
764    })
765}