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 InArgs {
29 pub method: i32,
31 pub data: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>,
32 #[cfg_attr(feature = "with-serde", serde(skip))]
34 pub unknown_fields: ::protobuf::UnknownFields,
35 #[cfg_attr(feature = "with-serde", serde(skip))]
36 pub cached_size: ::protobuf::CachedSize,
37}
38
39impl<'a> ::std::default::Default for &'a InArgs {
40 fn default() -> &'a InArgs {
41 <InArgs as ::protobuf::Message>::default_instance()
42 }
43}
44
45impl InArgs {
46 pub fn new() -> InArgs {
47 ::std::default::Default::default()
48 }
49
50 pub fn get_method(&self) -> i32 {
54 self.method
55 }
56 pub fn clear_method(&mut self) {
57 self.method = 0;
58 }
59
60 pub fn set_method(&mut self, v: i32) {
62 self.method = v;
63 }
64
65 pub fn get_data(&self) -> &::protobuf::well_known_types::Any {
69 self.data.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance())
70 }
71 pub fn clear_data(&mut self) {
72 self.data.clear();
73 }
74
75 pub fn has_data(&self) -> bool {
76 self.data.is_some()
77 }
78
79 pub fn set_data(&mut self, v: ::protobuf::well_known_types::Any) {
81 self.data = ::protobuf::SingularPtrField::some(v);
82 }
83
84 pub fn mut_data(&mut self) -> &mut ::protobuf::well_known_types::Any {
87 if self.data.is_none() {
88 self.data.set_default();
89 }
90 self.data.as_mut().unwrap()
91 }
92
93 pub fn take_data(&mut self) -> ::protobuf::well_known_types::Any {
95 self.data.take().unwrap_or_else(|| ::protobuf::well_known_types::Any::new())
96 }
97}
98
99impl ::protobuf::Message for InArgs {
100 fn is_initialized(&self) -> bool {
101 for v in &self.data {
102 if !v.is_initialized() {
103 return false;
104 }
105 };
106 true
107 }
108
109 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
110 while !is.eof()? {
111 let (field_number, wire_type) = is.read_tag_unpack()?;
112 match field_number {
113 1 => {
114 if wire_type != ::protobuf::wire_format::WireTypeVarint {
115 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
116 }
117 let tmp = is.read_int32()?;
118 self.method = tmp;
119 },
120 2 => {
121 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.data)?;
122 },
123 _ => {
124 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
125 },
126 };
127 }
128 ::std::result::Result::Ok(())
129 }
130
131 #[allow(unused_variables)]
133 fn compute_size(&self) -> u32 {
134 let mut my_size = 0;
135 if self.method != 0 {
136 my_size += ::protobuf::rt::value_size(1, self.method, ::protobuf::wire_format::WireTypeVarint);
137 }
138 if let Some(ref v) = self.data.as_ref() {
139 let len = v.compute_size();
140 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
141 }
142 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
143 self.cached_size.set(my_size);
144 my_size
145 }
146
147 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
148 if self.method != 0 {
149 os.write_int32(1, self.method)?;
150 }
151 if let Some(ref v) = self.data.as_ref() {
152 os.write_tag(2, ::protobuf::wire_format::WireTypeLengthDelimited)?;
153 os.write_raw_varint32(v.get_cached_size())?;
154 v.write_to_with_cached_sizes(os)?;
155 }
156 os.write_unknown_fields(self.get_unknown_fields())?;
157 ::std::result::Result::Ok(())
158 }
159
160 fn get_cached_size(&self) -> u32 {
161 self.cached_size.get()
162 }
163
164 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
165 &self.unknown_fields
166 }
167
168 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
169 &mut self.unknown_fields
170 }
171
172 fn as_any(&self) -> &dyn (::std::any::Any) {
173 self as &dyn (::std::any::Any)
174 }
175 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
176 self as &mut dyn (::std::any::Any)
177 }
178 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
179 self
180 }
181
182 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
183 Self::descriptor_static()
184 }
185
186 fn new() -> InArgs {
187 InArgs::new()
188 }
189
190 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
191 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
192 descriptor.get(|| {
193 let mut fields = ::std::vec::Vec::new();
194 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
195 "method",
196 |m: &InArgs| { &m.method },
197 |m: &mut InArgs| { &mut m.method },
198 ));
199 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>(
200 "data",
201 |m: &InArgs| { &m.data },
202 |m: &mut InArgs| { &mut m.data },
203 ));
204 ::protobuf::reflect::MessageDescriptor::new_pb_name::<InArgs>(
205 "InArgs",
206 fields,
207 file_descriptor_proto()
208 )
209 })
210 }
211
212 fn default_instance() -> &'static InArgs {
213 static instance: ::protobuf::rt::LazyV2<InArgs> = ::protobuf::rt::LazyV2::INIT;
214 instance.get(InArgs::new)
215 }
216}
217
218impl ::protobuf::Clear for InArgs {
219 fn clear(&mut self) {
220 self.method = 0;
221 self.data.clear();
222 self.unknown_fields.clear();
223 }
224}
225
226impl ::std::fmt::Debug for InArgs {
227 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
228 ::protobuf::text_format::fmt(self, f)
229 }
230}
231
232impl ::protobuf::reflect::ProtobufValue for InArgs {
233 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
234 ::protobuf::reflect::ReflectValueRef::Message(self)
235 }
236}
237
238#[derive(PartialEq,Clone,Default)]
239#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
240pub struct OutRets {
241 pub code: i32,
243 pub msg: ::std::string::String,
244 pub data: ::protobuf::SingularPtrField<::protobuf::well_known_types::Any>,
245 #[cfg_attr(feature = "with-serde", serde(skip))]
247 pub unknown_fields: ::protobuf::UnknownFields,
248 #[cfg_attr(feature = "with-serde", serde(skip))]
249 pub cached_size: ::protobuf::CachedSize,
250}
251
252impl<'a> ::std::default::Default for &'a OutRets {
253 fn default() -> &'a OutRets {
254 <OutRets as ::protobuf::Message>::default_instance()
255 }
256}
257
258impl OutRets {
259 pub fn new() -> OutRets {
260 ::std::default::Default::default()
261 }
262
263 pub fn get_code(&self) -> i32 {
267 self.code
268 }
269 pub fn clear_code(&mut self) {
270 self.code = 0;
271 }
272
273 pub fn set_code(&mut self, v: i32) {
275 self.code = v;
276 }
277
278 pub fn get_msg(&self) -> &str {
282 &self.msg
283 }
284 pub fn clear_msg(&mut self) {
285 self.msg.clear();
286 }
287
288 pub fn set_msg(&mut self, v: ::std::string::String) {
290 self.msg = v;
291 }
292
293 pub fn mut_msg(&mut self) -> &mut ::std::string::String {
296 &mut self.msg
297 }
298
299 pub fn take_msg(&mut self) -> ::std::string::String {
301 ::std::mem::replace(&mut self.msg, ::std::string::String::new())
302 }
303
304 pub fn get_data(&self) -> &::protobuf::well_known_types::Any {
308 self.data.as_ref().unwrap_or_else(|| <::protobuf::well_known_types::Any as ::protobuf::Message>::default_instance())
309 }
310 pub fn clear_data(&mut self) {
311 self.data.clear();
312 }
313
314 pub fn has_data(&self) -> bool {
315 self.data.is_some()
316 }
317
318 pub fn set_data(&mut self, v: ::protobuf::well_known_types::Any) {
320 self.data = ::protobuf::SingularPtrField::some(v);
321 }
322
323 pub fn mut_data(&mut self) -> &mut ::protobuf::well_known_types::Any {
326 if self.data.is_none() {
327 self.data.set_default();
328 }
329 self.data.as_mut().unwrap()
330 }
331
332 pub fn take_data(&mut self) -> ::protobuf::well_known_types::Any {
334 self.data.take().unwrap_or_else(|| ::protobuf::well_known_types::Any::new())
335 }
336}
337
338impl ::protobuf::Message for OutRets {
339 fn is_initialized(&self) -> bool {
340 for v in &self.data {
341 if !v.is_initialized() {
342 return false;
343 }
344 };
345 true
346 }
347
348 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
349 while !is.eof()? {
350 let (field_number, wire_type) = is.read_tag_unpack()?;
351 match field_number {
352 1 => {
353 if wire_type != ::protobuf::wire_format::WireTypeVarint {
354 return ::std::result::Result::Err(::protobuf::rt::unexpected_wire_type(wire_type));
355 }
356 let tmp = is.read_int32()?;
357 self.code = tmp;
358 },
359 2 => {
360 ::protobuf::rt::read_singular_proto3_string_into(wire_type, is, &mut self.msg)?;
361 },
362 3 => {
363 ::protobuf::rt::read_singular_message_into(wire_type, is, &mut self.data)?;
364 },
365 _ => {
366 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
367 },
368 };
369 }
370 ::std::result::Result::Ok(())
371 }
372
373 #[allow(unused_variables)]
375 fn compute_size(&self) -> u32 {
376 let mut my_size = 0;
377 if self.code != 0 {
378 my_size += ::protobuf::rt::value_size(1, self.code, ::protobuf::wire_format::WireTypeVarint);
379 }
380 if !self.msg.is_empty() {
381 my_size += ::protobuf::rt::string_size(2, &self.msg);
382 }
383 if let Some(ref v) = self.data.as_ref() {
384 let len = v.compute_size();
385 my_size += 1 + ::protobuf::rt::compute_raw_varint32_size(len) + len;
386 }
387 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
388 self.cached_size.set(my_size);
389 my_size
390 }
391
392 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
393 if self.code != 0 {
394 os.write_int32(1, self.code)?;
395 }
396 if !self.msg.is_empty() {
397 os.write_string(2, &self.msg)?;
398 }
399 if let Some(ref v) = self.data.as_ref() {
400 os.write_tag(3, ::protobuf::wire_format::WireTypeLengthDelimited)?;
401 os.write_raw_varint32(v.get_cached_size())?;
402 v.write_to_with_cached_sizes(os)?;
403 }
404 os.write_unknown_fields(self.get_unknown_fields())?;
405 ::std::result::Result::Ok(())
406 }
407
408 fn get_cached_size(&self) -> u32 {
409 self.cached_size.get()
410 }
411
412 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
413 &self.unknown_fields
414 }
415
416 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
417 &mut self.unknown_fields
418 }
419
420 fn as_any(&self) -> &dyn (::std::any::Any) {
421 self as &dyn (::std::any::Any)
422 }
423 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
424 self as &mut dyn (::std::any::Any)
425 }
426 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
427 self
428 }
429
430 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
431 Self::descriptor_static()
432 }
433
434 fn new() -> OutRets {
435 OutRets::new()
436 }
437
438 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
439 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
440 descriptor.get(|| {
441 let mut fields = ::std::vec::Vec::new();
442 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeInt32>(
443 "code",
444 |m: &OutRets| { &m.code },
445 |m: &mut OutRets| { &mut m.code },
446 ));
447 fields.push(::protobuf::reflect::accessor::make_simple_field_accessor::<_, ::protobuf::types::ProtobufTypeString>(
448 "msg",
449 |m: &OutRets| { &m.msg },
450 |m: &mut OutRets| { &mut m.msg },
451 ));
452 fields.push(::protobuf::reflect::accessor::make_singular_ptr_field_accessor::<_, ::protobuf::types::ProtobufTypeMessage<::protobuf::well_known_types::Any>>(
453 "data",
454 |m: &OutRets| { &m.data },
455 |m: &mut OutRets| { &mut m.data },
456 ));
457 ::protobuf::reflect::MessageDescriptor::new_pb_name::<OutRets>(
458 "OutRets",
459 fields,
460 file_descriptor_proto()
461 )
462 })
463 }
464
465 fn default_instance() -> &'static OutRets {
466 static instance: ::protobuf::rt::LazyV2<OutRets> = ::protobuf::rt::LazyV2::INIT;
467 instance.get(OutRets::new)
468 }
469}
470
471impl ::protobuf::Clear for OutRets {
472 fn clear(&mut self) {
473 self.code = 0;
474 self.msg.clear();
475 self.data.clear();
476 self.unknown_fields.clear();
477 }
478}
479
480impl ::std::fmt::Debug for OutRets {
481 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
482 ::protobuf::text_format::fmt(self, f)
483 }
484}
485
486impl ::protobuf::reflect::ProtobufValue for OutRets {
487 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
488 ::protobuf::reflect::ReflectValueRef::Message(self)
489 }
490}
491
492#[derive(PartialEq,Clone,Default)]
493#[cfg_attr(feature = "with-serde", derive(::serde::Serialize, ::serde::Deserialize))]
494pub struct Empty {
495 #[cfg_attr(feature = "with-serde", serde(skip))]
497 pub unknown_fields: ::protobuf::UnknownFields,
498 #[cfg_attr(feature = "with-serde", serde(skip))]
499 pub cached_size: ::protobuf::CachedSize,
500}
501
502impl<'a> ::std::default::Default for &'a Empty {
503 fn default() -> &'a Empty {
504 <Empty as ::protobuf::Message>::default_instance()
505 }
506}
507
508impl Empty {
509 pub fn new() -> Empty {
510 ::std::default::Default::default()
511 }
512}
513
514impl ::protobuf::Message for Empty {
515 fn is_initialized(&self) -> bool {
516 true
517 }
518
519 fn merge_from(&mut self, is: &mut ::protobuf::CodedInputStream<'_>) -> ::protobuf::ProtobufResult<()> {
520 while !is.eof()? {
521 let (field_number, wire_type) = is.read_tag_unpack()?;
522 match field_number {
523 _ => {
524 ::protobuf::rt::read_unknown_or_skip_group(field_number, wire_type, is, self.mut_unknown_fields())?;
525 },
526 };
527 }
528 ::std::result::Result::Ok(())
529 }
530
531 #[allow(unused_variables)]
533 fn compute_size(&self) -> u32 {
534 let mut my_size = 0;
535 my_size += ::protobuf::rt::unknown_fields_size(self.get_unknown_fields());
536 self.cached_size.set(my_size);
537 my_size
538 }
539
540 fn write_to_with_cached_sizes(&self, os: &mut ::protobuf::CodedOutputStream<'_>) -> ::protobuf::ProtobufResult<()> {
541 os.write_unknown_fields(self.get_unknown_fields())?;
542 ::std::result::Result::Ok(())
543 }
544
545 fn get_cached_size(&self) -> u32 {
546 self.cached_size.get()
547 }
548
549 fn get_unknown_fields(&self) -> &::protobuf::UnknownFields {
550 &self.unknown_fields
551 }
552
553 fn mut_unknown_fields(&mut self) -> &mut ::protobuf::UnknownFields {
554 &mut self.unknown_fields
555 }
556
557 fn as_any(&self) -> &dyn (::std::any::Any) {
558 self as &dyn (::std::any::Any)
559 }
560 fn as_any_mut(&mut self) -> &mut dyn (::std::any::Any) {
561 self as &mut dyn (::std::any::Any)
562 }
563 fn into_any(self: ::std::boxed::Box<Self>) -> ::std::boxed::Box<dyn (::std::any::Any)> {
564 self
565 }
566
567 fn descriptor(&self) -> &'static ::protobuf::reflect::MessageDescriptor {
568 Self::descriptor_static()
569 }
570
571 fn new() -> Empty {
572 Empty::new()
573 }
574
575 fn descriptor_static() -> &'static ::protobuf::reflect::MessageDescriptor {
576 static descriptor: ::protobuf::rt::LazyV2<::protobuf::reflect::MessageDescriptor> = ::protobuf::rt::LazyV2::INIT;
577 descriptor.get(|| {
578 let fields = ::std::vec::Vec::new();
579 ::protobuf::reflect::MessageDescriptor::new_pb_name::<Empty>(
580 "Empty",
581 fields,
582 file_descriptor_proto()
583 )
584 })
585 }
586
587 fn default_instance() -> &'static Empty {
588 static instance: ::protobuf::rt::LazyV2<Empty> = ::protobuf::rt::LazyV2::INIT;
589 instance.get(Empty::new)
590 }
591}
592
593impl ::protobuf::Clear for Empty {
594 fn clear(&mut self) {
595 self.unknown_fields.clear();
596 }
597}
598
599impl ::std::fmt::Debug for Empty {
600 fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
601 ::protobuf::text_format::fmt(self, f)
602 }
603}
604
605impl ::protobuf::reflect::ProtobufValue for Empty {
606 fn as_ref(&self) -> ::protobuf::reflect::ReflectValueRef {
607 ::protobuf::reflect::ReflectValueRef::Message(self)
608 }
609}
610
611static file_descriptor_proto_data: &'static [u8] = b"\
612 \n\tabi.proto\x12\x03abi\x1a\x19google/protobuf/any.proto\"J\n\x06InArgs\
613 \x12\x16\n\x06method\x18\x01\x20\x01(\x05R\x06method\x12(\n\x04data\x18\
614 \x02\x20\x01(\x0b2\x14.google.protobuf.AnyR\x04data\"Y\n\x07OutRets\x12\
615 \x12\n\x04code\x18\x01\x20\x01(\x05R\x04code\x12\x10\n\x03msg\x18\x02\
616 \x20\x01(\tR\x03msg\x12(\n\x04data\x18\x03\x20\x01(\x0b2\x14.google.prot\
617 obuf.AnyR\x04data\"\x07\n\x05Emptyb\x06proto3\
618";
619
620static file_descriptor_proto_lazy: ::protobuf::rt::LazyV2<::protobuf::descriptor::FileDescriptorProto> = ::protobuf::rt::LazyV2::INIT;
621
622fn parse_descriptor_proto() -> ::protobuf::descriptor::FileDescriptorProto {
623 ::protobuf::Message::parse_from_bytes(file_descriptor_proto_data).unwrap()
624}
625
626pub fn file_descriptor_proto() -> &'static ::protobuf::descriptor::FileDescriptorProto {
627 file_descriptor_proto_lazy.get(|| {
628 parse_descriptor_proto()
629 })
630}